release: dsh-infstarapi 0.2.0
CI / test (push) Canceled after 0s

This commit is contained in:
Coldsmile_7 committed 2026-11-26 08:24:56 +08:00
1 parent a8f689e39c
commit c340aec110
59 files changed
+1108 -1590

No files matched your search

+11 -34
View File
@@ -1,22 +1,23 @@
# Repository agent guide
This file governs the entire `dsh-geek2api` repository.
This file governs the `dsh-infstarapi` repository.
## Repository identity
- Canonical repository: `https://github.com/CoderKuo/dsh-geek2api` (derived from `https://github.com/BaronCyrus/dsh-packycode-api`, MIT)
- Package name: `dsh-geek2api`, distributed as a GitHub Release tarball (`dsh-geek2api-<version>.tgz`); not published to npm
- DSH plugin row: `geek2api`
- Model group display name: `Geek2API`
- Gateway: Geek2API, a sub2api deployment. Entry points: `hk`, `hk2`, `hk3`, `hk4`, `www` `.geek2api.com`. Default endpoints are geek2api.com hosts only.
- LLM provider route key: `geek2api`
- Canonical repository: `https://git.infstar.cn/Coldsmile/dsh-infstarapi.git`, forked from `https://github.com/CoderKuo/dsh-geek2api` (MIT)
- Package name: `dsh-infstarapi`; release/update hosting is not configured yet
- DSH plugin row, provider route key, settings namespace, credential scope, and RPC channel: `infstarapi`
- Model group display name: `InfStarAPI`
- Gateway: sub2api deployment at `https://sub.infstar.org`; this is the only built-in endpoint
- Built-in models: GPT 6.1/6.2 Responses and DeepSeek V4 Chat Completions
- This fork must coexist with `dsh-geek2api`; do not reuse its DSH IDs, browser slots, web search IDs, or profile-patch markers
## Project boundaries
- This is a permanent DSH profile plugin, not a temporary dynamic Cordis Plugin.
- Host code belongs in `src/index.js` and its sibling modules; browser UI belongs in `src/client.jsx` and is built through the client wrapper in `tsdown.config.mjs`.
- The route is self-contained: the plugin builds its own pi-ai provider, catalog, key ring, and balance reader. It must never require the user to edit `cordis.patch.yml` or `llm-pi-ai` provider YAML.
- Never introduce a silent fallback to another provider, another credential source, or an ambient `GEEK2API_API_KEY`. Only keys the user added through this plugin may authenticate a request.
- Never introduce a silent fallback to another provider, another credential source, or an ambient `INFSTARAPI_API_KEY`. Only keys the user added through this plugin may authenticate a request.
- The catalog declares protocols and effort levels from vendor documentation. Changing a model's `api`, `baseUrl`, or `thinkingLevelMap` requires a note in `CHANGELOG.md` and a live check.
## Security requirements
@@ -47,30 +48,6 @@ Live gateway behavior is verified with `node scripts/live-check.mjs` after a bui
## Release authorization
Git tags and GitHub Releases are externally visible: installed copies offer the newest release as an update. Create them only when the user explicitly asks to release and confirms the target version. A request to modify, test, or commit alone is not release authorization.
Git tags and releases are externally visible. Create them only when the user explicitly asks to release and confirms the target version. A request to modify, test, or commit alone is not release authorization.
Never reuse, move, or delete a published tag or release asset. If a released version needs a correction, release a new patch version.
## Release checklist
1. Confirm a clean base and an unused version:
```sh
git status --short --branch
git ls-remote --exit-code --tags origin refs/tags/v<version> # must fail
```
2. Update `package.json` version and add a `## <version>` section to `CHANGELOG.md` (the release workflow uses that section as the release notes).
3. Validate: `pnpm install --frozen-lockfile && pnpm run check`, and commit the rebuilt `lib/`.
4. Push `main`, then tag and push the tag:
```sh
git tag -a v<version> -m "dsh-geek2api v<version>"
git push origin v<version>
```
[`.github/workflows/release.yml`](.github/workflows/release.yml) refuses a tag that does not match `package.json`, runs `pnpm run check`, refuses a stale `lib/`, and creates the release with `dsh-geek2api-<version>.tgz` attached. Every Geek2API entry point mirrors the release at `/dsh/` within about 10 minutes (origin timer `dsh-mirror-sync`); the plugin's update check reads the mirror's `latest.json` first and GitHub `releases/latest` as the fallback.
5. Confirm the workflow succeeded and the asset is attached before announcing the release.
The InfStarAPI Git service's release API and automation are not configured or verified yet. Do not advertise or enable in-plugin updates until a release source serving version metadata and `dsh-infstarapi-<version>.tgz` has been implemented and tested. The update card is intentionally hidden for now.