zcode-acp-server 0.88.1 → 0.89.0
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/README.md +1 -1
- package/dist/code-fingerprint.json +2 -2
- package/dist/config/account-provider.d.ts.map +1 -1
- package/dist/config/account-provider.js +66 -18
- package/dist/config/account-provider.js.map +1 -1
- package/dist/config/deferred-probe-capability.d.ts +10 -1
- package/dist/config/deferred-probe-capability.d.ts.map +1 -1
- package/dist/config/deferred-probe-capability.js +41 -1
- package/dist/config/deferred-probe-capability.js.map +1 -1
- package/dist/config/start-plan-verdict.d.ts +45 -0
- package/dist/config/start-plan-verdict.d.ts.map +1 -0
- package/dist/config/start-plan-verdict.js +44 -0
- package/dist/config/start-plan-verdict.js.map +1 -0
- package/dist/handlers/account.d.ts +3 -1
- package/dist/handlers/account.d.ts.map +1 -1
- package/dist/handlers/account.js +7 -6
- package/dist/handlers/account.js.map +1 -1
- package/dist/handlers/background-tasks.d.ts +29 -0
- package/dist/handlers/background-tasks.d.ts.map +1 -1
- package/dist/handlers/background-tasks.js +97 -0
- package/dist/handlers/background-tasks.js.map +1 -1
- package/dist/handlers/replay.d.ts.map +1 -1
- package/dist/handlers/replay.js +22 -4
- package/dist/handlers/replay.js.map +1 -1
- package/dist/handlers/rewind.d.ts +55 -0
- package/dist/handlers/rewind.d.ts.map +1 -0
- package/dist/handlers/rewind.js +284 -0
- package/dist/handlers/rewind.js.map +1 -0
- package/dist/handlers/session.d.ts.map +1 -1
- package/dist/handlers/session.js +8 -0
- package/dist/handlers/session.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/quota/startplan.d.ts +24 -1
- package/dist/quota/startplan.d.ts.map +1 -1
- package/dist/quota/startplan.js +40 -2
- package/dist/quota/startplan.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +23 -1
- package/dist/server.js.map +1 -1
- package/docs/PROTOCOL.md +61 -10
- package/docs/REMOTE-CLIENTS.md +27 -0
- package/docs/TROUBLESHOOTING.md +20 -11
- package/package.json +1 -1
package/docs/TROUBLESHOOTING.md
CHANGED
|
@@ -116,14 +116,20 @@ the desktop's Settings → Model Provider ("Use API key") counts too (#344): it
|
|
|
116
116
|
lands in `~/.zcode/v2/provider_config.json` as a
|
|
117
117
|
`zhipu-coding-plan-api-key` rule and the bridge reads it as an entitlement +
|
|
118
118
|
request-key source. On 3.15+ / 3.17.x OAuth installs, Start Plan
|
|
119
|
-
(`account:<family>-start-plan`) is
|
|
120
|
-
|
|
121
|
-
`zcodejwttoken` (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
119
|
+
(`account:<family>-start-plan`) entitlement is BILLING-AUTHORITATIVE
|
|
120
|
+
(#406): the bridge queries `billing/balance` with the store's
|
|
121
|
+
`zcodejwttoken` (warmed at session create, bounded 2s) — an active plan
|
|
122
|
+
entitles the family's Start Plan even though the desktop's
|
|
123
|
+
`providerFamilyConnectionSelections` never flips past
|
|
124
|
+
`individual-coding-plan` (3.17+ serves Start Plan as an overlay; do NOT
|
|
125
|
+
hand-edit that flag — the desktop's own credential resolution reads it and
|
|
126
|
+
breaks). The grant's capability list also filters the advertised models
|
|
127
|
+
(e.g. only `GLM-5.3-Flash` under a glm-5.3-flash-only grant). When the
|
|
128
|
+
billing query cannot run (offline, no `zcodejwttoken`, rate-limited), the
|
|
129
|
+
legacy gate decides: entitled ONLY when `setting.json` records the family's
|
|
130
|
+
connection as `kind: "start-plan"` (a plain OAuth login is not a holding —
|
|
131
|
+
observed 2026-11-10: a Coding Plan login lit up GLM-5.2/GLM-5-Turbo for an
|
|
132
|
+
account that never activated Start Plan). Keyless Start
|
|
127
133
|
Plan requests stay declined (issue #123).
|
|
128
134
|
|
|
129
135
|
**Desktop 3.15+ after an OAuth sign-in:** the store holds no plan key at all,
|
|
@@ -561,9 +567,12 @@ edition level; the interactive branch is unreachable), the bridge
|
|
|
561
567
|
serves `zcodejwttoken` over `interaction/requestProviderRuntimeHeaders`
|
|
562
568
|
(`startPlanRequestAuthFor`) and injects `ZCODE_APP_VERSION` from the desktop
|
|
563
569
|
bundle (`builtinProviderEnv`), matching the desktop host's own
|
|
564
|
-
`AccountProviderRequestAuthService`.
|
|
565
|
-
|
|
566
|
-
|
|
570
|
+
`AccountProviderRequestAuthService`. Entitlement no longer requires that
|
|
571
|
+
selection: the billing verdict (see above, #406) entitles the family while
|
|
572
|
+
billing reports an active plan, and a plain OAuth login (Coding Plan) only
|
|
573
|
+
counts when billing says so — when the billing query cannot run, the
|
|
574
|
+
`kind: "start-plan"` selection is the fallback gate. If no Start Plan
|
|
575
|
+
credential is
|
|
567
576
|
present on
|
|
568
577
|
disk (or if a future edition re-enables browser captcha), switch the session's
|
|
569
578
|
provider to a GLM Coding Plan one; the bridge answers with
|