dsh-keys-manager 0.2.6 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +52 -0
- package/README.md +219 -269
- package/README.zh-CN.md +142 -136
- package/lib/client/format.d.ts +27 -3
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/types.d.ts +10 -2
- package/lib/client.js +155 -7
- package/lib/domain.d.ts +30 -5
- package/lib/index.d.ts +66 -5
- package/lib/index.js +295 -78
- package/lib/index.js.map +1 -1
- package/lib/quota/cache.d.ts +61 -0
- package/lib/quota/cache.js +88 -0
- package/lib/quota/cache.js.map +1 -0
- package/lib/quota/fetch.d.ts +33 -0
- package/lib/quota/fetch.js +36 -0
- package/lib/quota/fetch.js.map +1 -0
- package/lib/quota/model.d.ts +60 -0
- package/lib/quota/model.js +62 -0
- package/lib/quota/model.js.map +1 -0
- package/lib/quota/providers.d.ts +89 -0
- package/lib/quota/providers.js +533 -0
- package/lib/quota/providers.js.map +1 -0
- package/locale/en.json +7 -1
- package/locale/zh.json +7 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to dsh-keys-manager are documented here. Assembled from `.changes/unreleased/` fragments by the release-prep workflow.
|
|
4
4
|
|
|
5
|
+
## [0.2.9] - 2026-10-25
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Read a provider card's plan usage from the credential that actually serves the route: an OAuth account managed natively by DSH no longer shows "sign in again" (and no longer re-prompts after a successful sign-in), and when that credential is unreadable the row says "managed by DSH" instead of pretending the provider reports no usage.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Plan usage now renders as one muted line at the bottom of each key or account row (`W 61% · 5h 32% · 3 天后重置`) instead of a separate block on the provider card, so the card no longer grows a usage section.
|
|
14
|
+
- A route that cannot report usage shows nothing at all — no block, no line, no placeholder; the "sign in again" note stays for an OAuth account whose grant needs renewing.
|
|
15
|
+
- Usage coverage now includes Command Code, xAI SuperGrok and Cline, alongside Claude, Codex, Z.AI, Kimi, MiniMax and OpenCode Go.
|
|
16
|
+
|
|
17
|
+
## [0.2.8] - 2026-10-24
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Name all seven transport routes in the known limits, and stop describing `factory-droid` as deferred.
|
|
22
|
+
- Restructure both READMEs into grouped capability areas with comparison tables for accounts, transport routes and failure policy; the extra-provider catalog stays as a folded list.
|
|
23
|
+
- Regroup provider coverage into four groups — DSH built-in, plugin extra built-in, OAuth accounts and transport routes — with the supported and not-pooled lists folded into two details blocks; `kilo` and `zai` are OAuth accounts signed in by the plugin's bundled clients, not a separate category.
|
|
24
|
+
- Bump the `@oh-my-pi/*` build-time pin from 18.12.3 to 18.12.6 (whole cohort: pi-ai, pi-catalog, pi-utils, pi-natives, pi-wire, omptype) and regenerate the pi-ai patch; the cursor exec-frame handoff patch body is unchanged.
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Restore the `legacy-tier` case in the Google transport note — the README now names both `legacy-tier` and paid accounts that must set `GOOGLE_CLOUD_PROJECT` / `GOOGLE_CLOUD_PROJECT_ID`.
|
|
29
|
+
- Cursor route: native `shell` (batch and streamed), `mini_swe_agent_bash`,
|
|
30
|
+
- The handoff translation into DSH's tool schemas is lossy: every `GrepArgs`
|
|
31
|
+
- The pinned `@oh-my-pi/pi-ai@18.12.3` is now patched via
|
|
32
|
+
- A transport route with no stored credential no longer appears in DSH's model picker or the Settings → Models provider list; the route's provider card and sign-in entry stay on the Keys Manager page.
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
|
|
36
|
+
- Show each managed account's plan usage on its provider card: a compact one-line hint when collapsed, and an expanded strip with one thin bar per window (session and weekly), the used percentage and the reset countdown.
|
|
37
|
+
- Quota reads are pull-only, cached in memory with TTL jitter and failure backoff, and never touch key selection or cooldown; a provider whose plan cannot be read shows "not reported" (or "sign in again" on a stale OAuth account) instead of a zero bar.
|
|
38
|
+
|
|
39
|
+
## [0.2.7] - 2026-10-24
|
|
40
|
+
|
|
41
|
+
### Changed
|
|
42
|
+
|
|
43
|
+
- The published transport package's API docs and the root README (EN/ZH) now name every route the transport registers — all seven (`cursor`, `devin`, the two Google routes, `factory-droid` and the two GitLab Duo routes) — instead of claiming a Cursor-only plugin or four routes, so a reader sees the surface the package actually serves.
|
|
44
|
+
- An unmanaged extra provider's account button now shows a "signing in" label instead of "Adopting…" while it starts a sign-in, matching a path that never adopts.
|
|
45
|
+
- The static-bearer transport docs (README and known limits, EN/ZH) now say a grant with no expiry shows no expiry time and no countdown, matching the blank expiry cell instead of claiming there is no expiry line.
|
|
46
|
+
- A concurrent credential refresh no longer reports a missing credential for a healthy GitLab or Factory Droid account: the losing request now reads the refresh the winner already committed instead of failing.
|
|
47
|
+
- The model picker now projects the `gitlab-duo` (16 rows) and `gitlab-duo-agent` (1 row) catalogs: this plugin's route-to-accessor table was missing the two GitLab entries, so both routes reported a missing catalog and offered no models even though the transport package ships them.
|
|
48
|
+
- Bump the `@deepseek-ai/dsh-*` peer cohort to `^0.2.1-rc.3` (corridor `dsh-v0.2.1-rc.2` → `dsh-v0.2.1-rc.3`: More menus for browsing/creating plugins; New Session draft fix after switching sessions; DeepSeek API-key adapter model-list updates aligned with account sign-in). Session format v4 unchanged. README DSH badges follow.
|
|
49
|
+
|
|
50
|
+
### Added
|
|
51
|
+
|
|
52
|
+
- Add the bundled `factory-droid` transport (`lib/omp/factory-droid.mjs`, 200 modules / ~2.0 MB) with a 62-row catalog generated from the pinned KDL registry seed, a WorkOS device-code sign-in, a refreshing credential record and a configurable `providers.factory-droid` allow-list. Three entry-scoped build substitutions (empty catalog data, a verbatim lean provider registry, a lean env-key map) keep the artifact small; the stripped env-key map is documented in `packages/llm-omp/docs/known-limits.md`.
|
|
53
|
+
- Add the bundled `gitlab-duo` proxy transport (`lib/omp/gitlab-duo.mjs`, 231 modules / 2.65 MB) over GitLab's AI gateway, with a 16-row alias catalog (upstream id + wire + compat per row), OAuth sign-in with PKCE on a loopback `localhost:8080/callback` (no port fallback, paste as the fallback path), and a refreshing credential record. `GITLAB_CLIENT_ID`/`GITLAB_REDIRECT_URI` register a custom app and `GITLAB_TOKEN` works as the bearer.
|
|
54
|
+
- Add the bundled `gitlab-duo-agent` Duo Workflow transport (`lib/omp/gitlab-duo-agent.mjs`, 118 modules / ~1.0 MB) with a one-row static catalog, paste-only `vscode://` sign-in, and a fresh per-request workflow seed so each turn replays the goal transcript through DSH's native tool loop.
|
|
55
|
+
- Register all three routes with their five sibling-shaped surfaces: a Models-page entry (`declared: false`, `providers.<route>`), a catalog projection for host pickers (`factoryDroidCatalogModels()`, `gitlabDuoCatalogModels()`, `gitlabDuoAgentCatalogModels()`), a lazy artifact load (`TRANSPORT_UNAVAILABLE` at request time), and one credential record per route at `llm-omp-transports/<route>`. Factory Droid also forwards the stored account scope to the transport as `oauthIdentity`.
|
|
56
|
+
|
|
5
57
|
## [0.2.6] - 2026-10-24
|
|
6
58
|
|
|
7
59
|
### Added
|