dsh-github-copilot 0.1.0-alpha.7.dsh.0.2.2.rc.3 → 0.1.0-alpha.9.dsh.0.2.2.rc.3
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/AGENTS.md +56 -20
- package/CHANGELOG.md +12 -0
- package/README.md +47 -20
- package/README.zh.md +27 -13
- package/deployment-baseline.json +49 -10
- package/docs/agent-readiness.md +1 -1
- package/docs/copilot-accounts.md +71 -49
- package/lib/client.js +293 -18
- package/lib/client.js.map +1 -1
- package/lib/copilot-identity-BpfZQOip.js +21 -0
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-eEWwFOFD.js → diagnostics-types-DSXrTSCU.js} +1 -1
- package/lib/index.js +931 -275
- package/lib/manual-compaction-recovery.js +2 -2
- package/lib/remote.js +88 -2
- package/lib/routed-web.js +2 -2
- package/lib/{traditional-search-CgIL4oRu.js → traditional-search-DP4tbmsO.js} +1 -1
- package/lib/types/account-model-catalog.d.ts +2 -0
- package/lib/types/authorization-controller.d.ts +32 -0
- package/lib/types/copilot-accounts-host.d.ts +4 -0
- package/lib/types/copilot-accounts-remote.d.ts +2 -0
- package/lib/types/copilot-accounts-types.d.ts +1 -1
- package/lib/types/copilot-identity.d.ts +2 -0
- package/lib/types/model-preferences-card.d.ts +1 -1
- package/lib/types/native-copilot-access.d.ts +8 -2
- package/lib/types/native-model-sync.d.ts +44 -0
- package/lib/types/preview-route.d.ts +9 -0
- package/lib/types/remote.d.ts +86 -1
- package/lib/types/session-accounts-remote.d.ts +2 -0
- package/package.json +1 -1
- package/lib/copilot-identity-BF8J8-9O.js +0 -12
package/AGENTS.md
CHANGED
|
@@ -7,10 +7,10 @@ This file is the authoritative entry point for humans and coding agents. Read it
|
|
|
7
7
|
This repository follows a **plugin-only** policy: implement fixes in `dsh-github-copilot` through existing published public Core/pi-ai APIs. This rule applies to agents, subagents, scripts, installers and release plans, not just the final diff.
|
|
8
8
|
|
|
9
9
|
- Do not edit DSH Core source, create Core implementation worktrees, prepare Core commits/PRs/releases, or rebuild/install a modified Core to complete this project's work.
|
|
10
|
-
- Do not patch deployed Core or dependency artifacts in `node_modules`, ship hidden Core patches, replace Core prototypes/private registries, or mutate shared upstream model catalogs. Create
|
|
10
|
+
- Do not patch deployed Core or dependency artifacts in `node_modules`, ship hidden Core patches, replace Core prototypes/private registries, or mutate shared upstream model catalogs. Create plugin-owned objects and reversible registrations through public APIs; the sole Core-owned credential exception is the user-confirmed native Copilot account switch described below.
|
|
11
11
|
- Do not make a Core patch, a new Core export, or an upstream Core PR being merged/released a prerequisite for delivering a plugin fix.
|
|
12
12
|
- Read-only Core/API inspection and isolated compatibility tests against unchanged pinned artifacts are allowed. Test-only fixtures must not alter tracked Core implementation or a live deployment and must clean up only their own temporary files. Historical controlled baselines are regression evidence, not permission for new Core changes.
|
|
13
|
-
- If the existing API cannot support the desired behavior, report the limit and choose a tested plugin-local alternative or defer that capability. Do not expand into Core work to preserve an earlier design claim. Reusing a published adapter class for an account-scoped, metadata-driven Copilot route is allowed; a second wire implementation, independently maintained static model catalog,
|
|
13
|
+
- If the existing API cannot support the desired behavior, report the limit and choose a tested plugin-local alternative or defer that capability. Do not expand into Core work to preserve an earlier design claim. Reusing a published adapter class for an account-scoped, metadata-driven Copilot route is allowed; a second wire implementation, independently maintained static model catalog, unapproved credential copies, or a fabricated single-route claim is not.
|
|
14
14
|
- General model compatibility must be data-driven: new account models with supported endpoint/capability metadata must work without adding model IDs or name-prefix branches to code. Unknown or incomplete metadata must produce a diagnostic rather than guessed capabilities. Follow [the current acceptance checklist](./docs/model-compatibility-acceptance.md), including Thinking, pi version compatibility, PR/merge/release and the requested local upgrade.
|
|
15
15
|
- Any future Core work requires a separate, explicit human request and separate task scope. Generic requests to fix compatibility, add models, optimize, or continue a goal do not grant that permission. Preserve abandoned Core work without resuming, publishing or deleting it automatically.
|
|
16
16
|
|
|
@@ -49,6 +49,17 @@ with four concurrent operations and configuration/credential/disposal fences.
|
|
|
49
49
|
The former plugin routing UI and managed Auto remain retired. Supplier calls,
|
|
50
50
|
live installation and restarts are separate from synthetic CI acceptance.
|
|
51
51
|
|
|
52
|
+
The user-authorized native model sync (#466) is a narrow exception to the
|
|
53
|
+
no-settings-rewrite rule: after an explicit preview and confirmation, one
|
|
54
|
+
revision-checked write may replace only
|
|
55
|
+
`llm-pi-ai.providers.github-copilot.models` in an existing canonical profile.
|
|
56
|
+
Prove current canonical-account metadata and the native adapter-owned catalog;
|
|
57
|
+
skip unrepresentable or uncertain model capabilities. Disclose additions,
|
|
58
|
+
updates, removals, skipped models and configured output request defaults.
|
|
59
|
+
Recheck account/catalog/preferences and Settings evidence before the one-shot
|
|
60
|
+
write, then read back both user and effective values. Never create a profile,
|
|
61
|
+
change other paths or perform this sync automatically.
|
|
62
|
+
|
|
52
63
|
The user-confirmed direction on 2026-11-14 supersedes conflicting legacy feature
|
|
53
64
|
requirements below: this plugin is a lightweight GitHub Copilot model integration
|
|
54
65
|
for DSH Desktop, not a second agent product. The qualification target is the exact
|
|
@@ -112,7 +123,7 @@ which runtime registrations, UI, and settings remain active:
|
|
|
112
123
|
1. A conditional authorization-service bootstrap plus Host controller that joins DSH authorization, credentials, and settings.
|
|
113
124
|
2. A Client Models provider-card contribution with one shared account-state owner, Client-safe Remote descriptors and a nested plugin-owned model-preferences disclosure; embed in an existing configured canonical row, suppress its separate footer controller, and retain footer/old-Core section fallback when no such row is mounted.
|
|
114
125
|
3. Strict JSON normalization of pi-ai's provider-owned Copilot OAuth grant.
|
|
115
|
-
4. Preserve intentional absence of `llm-pi-ai.providers.github-copilot`; reconcile only existing legacy profiles and verified ownership journals.
|
|
126
|
+
4. Preserve intentional absence of `llm-pi-ai.providers.github-copilot`; reconcile only existing legacy profiles and verified ownership journals. The confirmed #466 models-only sync is the narrow explicit exception above; never create or remove a native profile automatically.
|
|
116
127
|
5. Direct provider-hosted search using the same Host-side credential lifecycle.
|
|
117
128
|
6. Provider-scoped tool-schema compatibility for Copilot payload behaviors; Core remains the tool and execution owner.
|
|
118
129
|
7. A bounded account-discovery route that supplies validated endpoint/capability metadata to the published native adapter, including explicit managed Responses sampling compatibility, plus exact plugin-owned model exclusions enforced across its directory, Auto pools and direct admission, without maintaining model-ID routing rules or changing Core's catalog.
|
|
@@ -166,18 +177,43 @@ Safe background diagnostics use bounded Error cause chains and fixed allowlisted
|
|
|
166
177
|
codes, never raw errors. Installation alone neither selects nor invokes recovery.
|
|
167
178
|
See `src/compaction-replay.ts` and `docs/manual-compaction-recovery.md` (#349).
|
|
168
179
|
|
|
169
|
-
## Approved multi-account ownership extension (#297)
|
|
170
|
-
|
|
171
|
-
The
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
## Approved multi-account ownership extension (#297, #474)
|
|
181
|
+
|
|
182
|
+
The user-approved #297 extension allows independently authorized
|
|
183
|
+
`github-copilot/account-<opaque-id>` records in DSH's credentials service.
|
|
184
|
+
The later explicit #474 direction supersedes the earlier prohibition on
|
|
185
|
+
canonical writes only for a user-confirmed global account switch: copy the
|
|
186
|
+
selected normalized OAuth grant into `llm-pi-ai/github-copilot` through the
|
|
187
|
+
public serialized credential API so DSH's existing native provider uses it.
|
|
188
|
+
Do not intercept native reads, patch Core, create a second provider as the
|
|
189
|
+
switching solution, or change model/history/provider settings. The selected
|
|
190
|
+
account applies profile-wide to future native requests; in-progress requests
|
|
191
|
+
retain their admitted credentials.
|
|
192
|
+
|
|
193
|
+
Before replacing a different configured canonical grant, preserve it in a new
|
|
194
|
+
plugin-owned account record unless the previous selected account already owns
|
|
195
|
+
that exact grant. Refuse when preservation would exceed the account bound. On
|
|
196
|
+
later switches, synchronize the previous active account's saved grant from
|
|
197
|
+
canonical before replacement. Use exact per-record serialization/readback and
|
|
198
|
+
path-level Settings CAS. A failed Settings commit may roll back only while the
|
|
199
|
+
canonical record still exactly matches the attempted write; otherwise retain
|
|
200
|
+
data and report uncertainty. Fence native Agent turns, OAuth and account
|
|
201
|
+
mutations. Direct provider calls outside observable Agent turn lifecycle remain
|
|
202
|
+
outside the plugin's turn fence.
|
|
203
|
+
Refresh remains owned by native pi-ai `Models.getAuth()` and DSH
|
|
204
|
+
`modifyRecord()`; the pinned Copilot refresh keeps the refresh token stable.
|
|
205
|
+
If selection and canonical credential diverge after an external native sign-in,
|
|
206
|
+
show an actionable mismatch and require explicit recovery; never auto-migrate.
|
|
207
|
+
|
|
208
|
+
Keep the native UI and its canonical quota/search attribution. Existing
|
|
209
|
+
`github-copilot-preview` behavior and Session account overrides remain
|
|
210
|
+
separately plugin-owned legacy behavior; they are not required for native
|
|
211
|
+
switching. Disposal removes only plugin registrations. Native model selections
|
|
212
|
+
and explicit `web.searchProvider=github-copilot-hosted` still need user-selected
|
|
213
|
+
replacements before uninstall; missing configured Web backends return
|
|
214
|
+
`WEB_PROVIDER_CONFIGURED_MISSING`, not automatic fallback. Uninstall leaves the
|
|
215
|
+
last selected grant in the native canonical record. No automatic
|
|
216
|
+
Settings/history migration or sign-out.
|
|
181
217
|
|
|
182
218
|
Login environments (#424) use only pinned native pi-ai OAuth for GitHub.com and
|
|
183
219
|
validated single-label `tenant.ghe.com` Enterprise Cloud hosts. Preserve host
|
|
@@ -195,9 +231,9 @@ metadata-only Retry; late results and disposal cannot publish stale state.
|
|
|
195
231
|
Never apply this deadline to add/cancel/switch/reauthorize/remove mutations,
|
|
196
232
|
release their fences, cancel Host work or introduce an automatic retry.
|
|
197
233
|
|
|
198
|
-
Account display names survive freshness expiry in bounded Host memory, never credential invalidation or failed verification. Visible account lists may ensure missing configured names without activating accounts; no disk name cache, credential copying or identity-based authorization. Turn admission captures the first verified name for the frozen account. A missing name may be filled by one existing nonforcing account-bound lookup only during that exact active, uncancelled turn/signal; never after turn/end/disposal. Evidence still requires actual native delivery and never reconstructs completed history (#322).
|
|
234
|
+
Account display names survive freshness expiry in bounded Host memory, never credential invalidation or failed verification. Visible account lists may ensure missing configured names without activating accounts; no disk name cache, incidental credential copying or identity-based authorization. Only the explicit confirmed native-switch preservation/projection above may copy a normalized grant. Turn admission captures the first verified name for the frozen account. A missing name may be filled by one existing nonforcing account-bound lookup only during that exact active, uncancelled turn/signal; never after turn/end/disposal. Evidence still requires actual native delivery and never reconstructs completed history (#322).
|
|
199
235
|
|
|
200
|
-
|
|
236
|
+
Additional plugin-owned `github-copilot/account-<opaque-id>` records are written directly by official pi-ai OAuth through public account-bound stores. Only an explicit user-confirmed switch may project a selected normalized grant into the canonical record as specified above; preserve the former canonical grant before the first replacement. Never intercept Core credential reads, introduce a separate credential service, patch Core, or implement another wire/catalog. Native `Models.getAuth()` and DSH `modifyRecord()` remain the refresh and serialization owners.
|
|
201
237
|
|
|
202
238
|
Settings store only the opaque global account selector and explicit `sessionAccounts` rows. Missing/invalid selectors or records fail explicitly, without another-account fallback. Models manages reauthorization/removal and the global default; Credits may select an already authorized account for this Session's subsequent turns, restore global inheritance or run add-only authorization without selecting it (#305/#318). An explicit choice equal to the default remains explicit. Freeze account ownership before Auto assessment and request admission, holding mutation fences until native `turn/end`/disposal; later Session/default changes never redirect running steps, retries or search. Account-local credentials, metadata, quota, proof cancellation and native adapter composition must remain isolated. Keep one public adapter/controller registration, with no second wire/catalog or Core changes. Reauthorization/removal of a pinned record stays blocked; global-default selection may continue independently.
|
|
203
239
|
|
|
@@ -294,7 +330,7 @@ evidence is content-free and ephemeral, never a new persistent population.
|
|
|
294
330
|
See `docs/copilot-accounts.md` (#385).
|
|
295
331
|
- Copilot OAuth grant writes must rebuild only pi-ai's documented provider fields as a fresh plain JSON object; unrelated extension values never reach DSH credential storage.
|
|
296
332
|
- Settings changes are path-level. Never replace the whole `llm-pi-ai` section or unrelated provider profiles.
|
|
297
|
-
-
|
|
333
|
+
- Native sign-out deletes only `llm-pi-ai/github-copilot` and keeps plugin account records, the selector and route settings. A selected plugin account remains saved and must be explicitly applied again after sign-out; a missing selected slot fails explicitly, never automatic canonical fallback.
|
|
298
334
|
- Hosted search serves either an eligible initiating `github-copilot` / managed `github-copilot-preview` route, or provider-owned independent search selected by the web-search router. Independent search preserves a nonempty explicit `searchModel` override; otherwise the Host considers at most three eligible Responses models from current account route facts, in deterministic ID order, without a static model list. Metadata alone is not search proof, and the final user query is sent once after candidate proof, never replayed across models. Both paths require an account-available model and supported search protocol; custom inline transport remains legacy-canonical only. Never substitute the global chat default or another Session's identity. The default `probe: true` path requires successful capability proof; `probe: false` is an explicit trust override, not an implicit fallback. Any request containing a file block, including one nested in tool-result content, must bypass the custom wire through `next()` so Core retains file projection ownership.
|
|
299
335
|
- Misconfiguration and API drift fail loudly with a named missing seam. Do not fall back to process-local secrets or implicit machine state.
|
|
300
336
|
- Host, Client, and Remote package entries must stay independently buildable and exported.
|
|
@@ -308,7 +344,7 @@ evidence is content-free and ephemeral, never a new persistent population.
|
|
|
308
344
|
- Without `agents.currentInitiator`, traditional hosted search is unavailable with a named diagnostic; explicit marked `GenerateOptions` can still bind guarded inline requests, uncached if necessary. Credential notification during initial lazy discovery cannot distinguish own rotation from external account change via public status: fail closed with `WEB_PROVIDER_UNAVAILABLE` before probe/wire; a later user/driver request may retry, never automatically.
|
|
309
345
|
- The new native Copilot draft warning says Save adds another real group, not a second account. Public additive APIs cannot veto Add or disable Save; this is warning-only, not enforced single-route registration. Core Edit/Delete remain.
|
|
310
346
|
- Public `session.selectModel` also saves the future global default. Choose only approved Sessions/default; preserve other selected/history-backed Sessions, but do not promise unselected empty Sessions cannot inherit that default.
|
|
311
|
-
- Code does not
|
|
347
|
+
- Code does not automatically migrate settings, credentials or history; only a user-confirmed account switch updates the canonical credential as described above. After plugin release, approved Ops migration may compare-and-swap only the reviewed user-native `llm-pi-ai.providers.github-copilot` path after ruling out base/journal conflicts, then read back settings and registry. No hidden groups, bulk rewrites or credential copying outside the explicit switch. Search allowlist updates to the managed ID require a separate reviewed Ops edit; never silently broaden old lists.
|
|
312
348
|
|
|
313
349
|
## Live migration readiness (alpha.9, #101)
|
|
314
350
|
|
|
@@ -342,7 +378,7 @@ The release admission, development dependency and CI targets are exact official
|
|
|
342
378
|
|
|
343
379
|
These pins document compatibility evidence. They do not authorize creating another controlled Core patch or making one a prerequisite for new plugin fixes.
|
|
344
380
|
|
|
345
|
-
- Models UI: `0.1.2-rc.1`, `0.1.3-alpha.1`, `0.1.5-alpha.1`, `0.1.5-alpha.2`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.2.0-rc.1` and `0.2.0-rc.2` expose `settings.models.provider-card`, keyed by settings namespace `llm-pi-ai`, to embed login/status/Refresh/Manage in a mounted configured canonical `github-copilot` row and suppress the separate footer controller. With no such row mounted, retain footer fallback; historical 0.1.1-rc.2 uses a dedicated `settings.section`. Preserve the shared account-state owner across transfer only while another eligible surface remains mounted. Unmounting the last surface or replacing declarations without overlapping mounts stops polling; a later controller reads status and separately non-forcing ensures missing/idle/stale/error/loading signed-in metadata, without replaying the old forced-login action. Manual Refresh models lives inside Manage; errors expose Retry. Opening Models is no longer guaranteed network-free, but status/details themselves remain pure. This additive slot cannot replace Core Edit/Delete: retain the native editor, while normal plugin discovery needs no manual model definitions.
|
|
381
|
+
- Models UI: `0.1.2-rc.1`, `0.1.3-alpha.1`, `0.1.5-alpha.1`, `0.1.5-alpha.2`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.6-alpha.1`, `0.1.6-alpha.2`, `0.2.0-rc.1` and `0.2.0-rc.2` expose `settings.models.provider-card`, keyed by settings namespace `llm-pi-ai`, to embed login/status/Refresh/Manage in a mounted configured canonical `github-copilot` row and suppress the separate footer controller. With no such row mounted, retain footer fallback; historical 0.1.1-rc.2 uses a dedicated `settings.section`. Preserve the shared account-state owner across transfer only while another eligible surface remains mounted. Unmounting the last surface or replacing declarations without overlapping mounts stops polling; a later controller reads status and separately non-forcing ensures missing/idle/stale/error/loading signed-in metadata, without replaying the old forced-login action. Manual Refresh models lives inside Manage; errors expose Retry. Opening Models is no longer guaranteed network-free, but status/details themselves remain pure. This additive slot cannot replace Core Edit/Delete: retain the native editor, while normal plugin discovery needs no manual model definitions. Native account switching is the explicit, confirmed canonical credential exception above; other route, model, history and Settings ownership remains unchanged.
|
|
346
382
|
- Canonical authorization flow key: `llm-pi-ai/github-copilot`; additional account flows bind directly to their own plugin-owned record under the approved #297 contract.
|
|
347
383
|
- Authorization verification links recognize the public `window.dshDesktop.protocolVersion === 1` marker and use `_self` so Desktop's existing `will-navigate` handler opens the system browser without popup creation. Other hosts retain `_blank`; display a selectable manual URL in both cases. This does not confirm browser launch or OAuth success. Manage omits the compatibility disclosure but retains actionable legacy diagnostics and explicit repair; migration documentation and backend ownership are unchanged.
|
|
348
384
|
- Authorization service: rc.1 Core provides it; the rc.2 web/headless profiles rely on this package's runtime dependency and conditional bootstrap.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.9.dsh.0.2.2.rc.3 (prepared)
|
|
4
|
+
|
|
5
|
+
- Apply confirmed account switches to DSH's existing native `github-copilot` credential, preserving the replaced grant and protecting observable in-progress native Agent turns.
|
|
6
|
+
- Allow #466 native model sync for a saved-account selection only when its normalized grant matches the native canonical credential; mismatches and unavailable credentials remain blocked.
|
|
7
|
+
- Keep `github-copilot-preview` registered. This change does not complete #474's native-only route acceptance or retire the separate preview route.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.8.dsh.0.2.2.rc.3 (published)
|
|
10
|
+
|
|
11
|
+
- Preview and explicitly confirm a one-time sync of enabled canonical-account models to an existing native Copilot provider (#466).
|
|
12
|
+
- Preserve only models whose native protocol and account capability metadata can be safely represented; disclose skipped models, removals, updates, and per-request output defaults before replacing the native models setting.
|
|
13
|
+
- Recheck account, adapter-owned catalog, preference and Settings evidence before the path-level write and verify both stored and effective readback. Live Desktop activation and provider calls are not established by synthetic tests.
|
|
14
|
+
|
|
3
15
|
## 0.1.0-alpha.7.dsh.0.2.2.rc.3 (prepared)
|
|
4
16
|
|
|
5
17
|
- Qualify native search and Auto reviewer compatibility using the adapter-owned pi-ai catalog even when the plugin resolves a separate copy (#461).
|
package/README.md
CHANGED
|
@@ -67,15 +67,15 @@ After the exact compatible release is available and verified, download its
|
|
|
67
67
|
original asset and checksum in an empty directory:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
71
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
70
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.9.dsh.0.2.2.rc.3.tgz
|
|
71
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/SHA256SUMS
|
|
72
72
|
sha256sum --check SHA256SUMS
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
For the `web` profile, install the same Release asset:
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
78
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.9.dsh.0.2.2.rc.3.tgz
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Choose the intended profile explicitly. Then:
|
|
@@ -90,17 +90,42 @@ No manually defined Copilot model, pasted token, external gateway, or
|
|
|
90
90
|
successful sign-in does not guarantee every model or capability is available.
|
|
91
91
|
The plugin's account-discovered models and capabilities apply to the
|
|
92
92
|
`github-copilot-preview` route. DSH's native `github-copilot` route uses its
|
|
93
|
-
own bundled or configured catalog; the two routes do not share
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
93
|
+
own bundled or configured catalog; the two routes do not automatically share
|
|
94
|
+
model discovery.
|
|
95
|
+
|
|
96
|
+
To copy enabled models from the current canonical account into an existing
|
|
97
|
+
native provider, use **Manage → Model preferences → Preview enabled models**,
|
|
98
|
+
review the additions, updates, removals, skipped models and per-request output
|
|
99
|
+
defaults, then choose **Apply sync**. This one-time snapshot replaces only
|
|
100
|
+
`llm-pi-ai.providers.github-copilot.models` with Settings CAS and readback.
|
|
101
|
+
The nonempty saved list replaces the native built-in catalog and remains after
|
|
102
|
+
the plugin is unloaded or uninstalled. Copying model settings does not transfer
|
|
103
|
+
the managed route's image admission checks or tool-schema filtering to native
|
|
104
|
+
requests, nor prove that supplier calls will succeed.
|
|
105
|
+
Models with unproven or incompatible native catalog protocols, unknown or
|
|
106
|
+
narrower server input caps, unknown context or vision support, or unknown or
|
|
107
|
+
unsupported reasoning controls are skipped rather than guessed.
|
|
108
|
+
New Completions and Anthropic models without a native catalog compatibility
|
|
109
|
+
baseline are also skipped; catalog-backed models retain native compatibility.
|
|
110
|
+
Image models are included only when the account explicitly supports all four
|
|
111
|
+
native request formats: PNG, JPEG, WebP, and GIF. Custom native authentication,
|
|
112
|
+
endpoints, headers, nonempty model overrides, or route compatibility overrides
|
|
113
|
+
block sync rather than changing those settings. An existing native default
|
|
114
|
+
reasoning effort must also be supported by each synced model. Core uses each
|
|
115
|
+
configured `maxTokens` as that model's per-request output default. The sync does
|
|
116
|
+
not change credentials, select a model, alter history, or automatically follow
|
|
117
|
+
later account changes.
|
|
118
|
+
|
|
119
|
+
Use **Manage → Account management → Switch** in the native GitHub Copilot
|
|
120
|
+
account panel to apply a saved account to DSH's canonical
|
|
121
|
+
`llm-pi-ai/github-copilot` credential slot. This is profile-wide: subsequent
|
|
122
|
+
native requests use that account. The first switch preserves the prior native
|
|
123
|
+
OAuth grant as a saved account. In-progress requests are not redirected, and
|
|
124
|
+
the operation does not change model selections, provider settings or history.
|
|
125
|
+
Account switching does not change the native provider's bundled/configured
|
|
126
|
+
model catalog, which is not guaranteed to filter models by account entitlement.
|
|
127
|
+
The existing `github-copilot-preview` route remains a separate plugin-owned
|
|
128
|
+
model route; it is not required for native account switching.
|
|
104
129
|
Starting the plugin or completing sign-in does not automatically repair the
|
|
105
130
|
native provider's settings.
|
|
106
131
|
The plugin registers optional `github-copilot-hosted` search in DSH's existing
|
|
@@ -126,18 +151,20 @@ managed continuation service; they do not replace DSH's context meter.
|
|
|
126
151
|
### Removing the enhancement
|
|
127
152
|
|
|
128
153
|
Unloading the plugin removes its own routes, UI and listeners, not native
|
|
129
|
-
Copilot credentials, configuration, model selections or history.
|
|
130
|
-
|
|
131
|
-
Removing the plugin is not signing
|
|
132
|
-
|
|
154
|
+
Copilot credentials, configuration, model selections or history. Native
|
|
155
|
+
**GitHub Copilot** remains usable with whichever account was last explicitly
|
|
156
|
+
applied to the canonical credential slot. Removing the plugin is not signing
|
|
157
|
+
out; explicit sign-out or removal of that authorization is a different action
|
|
158
|
+
and can affect native login.
|
|
133
159
|
|
|
134
|
-
Plugin-
|
|
160
|
+
Plugin-only model selections do not become native automatically. Before removal,
|
|
135
161
|
explicitly select native models for Sessions/defaults using
|
|
136
162
|
`github-copilot-preview`. If Web is set to `github-copilot-hosted`, select another
|
|
137
163
|
available backend in native Web settings first. Removing the plugin does not
|
|
138
164
|
rewrite Web settings: a retained missing backend produces
|
|
139
165
|
`WEB_PROVIDER_CONFIGURED_MISSING`, not an automatic fallback. Additional-account
|
|
140
|
-
|
|
166
|
+
management and plugin-specific search require the plugin; the last selected
|
|
167
|
+
native OAuth grant remains in DSH's canonical credential record.
|
|
141
168
|
|
|
142
169
|
Desktop's native package manager and its bundled CLI have different contracts
|
|
143
170
|
from a standalone profile. Review the [Desktop CLI evidence](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)
|
package/README.zh.md
CHANGED
|
@@ -55,15 +55,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
|
|
|
55
55
|
精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
59
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
58
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.9.dsh.0.2.2.rc.3.tgz
|
|
59
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/SHA256SUMS
|
|
60
60
|
sha256sum --check SHA256SUMS
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
例如安装到 `web` profile:
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
66
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.9.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.9.dsh.0.2.2.rc.3.tgz
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
请明确选择目标 profile,然后:
|
|
@@ -75,14 +75,28 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
75
75
|
无需手工定义 Copilot 模型、粘贴 token、使用外部网关或安装
|
|
76
76
|
`copilot2api`。账号登录成功不代表所有模型及其能力都可用。
|
|
77
77
|
插件自动发现的账号模型及能力适用于 `github-copilot-preview` 路线;DSH 原生
|
|
78
|
-
`github-copilot`
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
`github-copilot` 路线使用自己的内置或用户配置目录,两条路线不会自动共享模型发现结果。
|
|
79
|
+
|
|
80
|
+
如需将当前 canonical 账号的已启用模型复制到已配置的原生 provider,请选择
|
|
81
|
+
**Manage → Model preferences → Preview enabled models**,检查新增、更新、移除、
|
|
82
|
+
跳过项和每次请求的输出默认值,然后选择 **Apply sync**。此显式单次快照只通过
|
|
83
|
+
Settings CAS 和回读替换 `llm-pi-ai.providers.github-copilot.models`。原生 profile
|
|
84
|
+
中保存的非空列表会替代原生内置目录,卸载或停用插件后仍然保留。复制模型设置不会将
|
|
85
|
+
托管路线的图像准入检查或工具 schema 过滤迁移到原生请求,也不能证明供应商调用成功。
|
|
86
|
+
无法证明或与原生目录不兼容的协议、未知或更窄的服务端输入上限、未知上下文或图像支持,
|
|
87
|
+
以及未知或不支持的推理控制会被跳过,不会猜测。缺少原生目录兼容性基线的新 Completions 和
|
|
88
|
+
Anthropic 模型也会被跳过;已有目录模型保留原生兼容性。只有账号明确支持 PNG、JPEG、WebP、GIF 四种原生请求图像格式时,
|
|
89
|
+
才会同步图像模型。原生 provider 存在自定义认证、端点、请求头、非空模型覆盖或路线兼容性覆盖时,
|
|
90
|
+
同步会停止,不会修改这些设置;已有的原生默认推理级别也必须受模型支持。Core 会将配置的
|
|
91
|
+
`maxTokens` 同时作为模型的单次请求输出默认值。同步不修改凭据、选择或历史,也不会自动
|
|
92
|
+
跟随后续账号变化。
|
|
93
|
+
|
|
94
|
+
在原生 GitHub Copilot 账号面板的 **Manage → 账号管理 → 切换** 中选择账号,
|
|
95
|
+
会将该账号应用到 DSH canonical 凭据槽 `llm-pi-ai/github-copilot`,供此 profile
|
|
96
|
+
后续的原生请求使用。首次切换会将原有原生 OAuth 授权保留为已保存账号。
|
|
97
|
+
切换不会重定向正在进行的请求,也不会更改模型选择、provider 设置或历史。
|
|
98
|
+
原生 provider 的内置/配置模型目录不会因此按账号权限过滤。现有
|
|
99
|
+
`github-copilot-preview` 仍是独立的插件模型路线,但原生账号切换不依赖它。
|
|
86
100
|
启动插件或完成登录时,不会自动修复原生 provider 设置。
|
|
87
101
|
插件在 DSH 现有 Web 服务中注册可选的 `github-copilot-hosted` 搜索后端。
|
|
88
102
|
请在原生 Web 设置中明确选择,并按需启用原生搜索工具;安装不会改变默认后端。
|
|
@@ -102,14 +116,14 @@ Web 服务替换或旧插件路由 UI。
|
|
|
102
116
|
### 移除增强
|
|
103
117
|
|
|
104
118
|
卸载插件只撤销插件自己的路线、界面和监听,不删除原生 Copilot 凭据、配置、模型选择或历史。
|
|
105
|
-
|
|
119
|
+
原生 **GitHub Copilot** 继续使用最近一次明确应用到 canonical 凭据槽的账号。卸载不是退出登录;
|
|
106
120
|
显式退出或移除原始授权是另一项操作,会影响原生登录。
|
|
107
121
|
|
|
108
122
|
依赖插件的选择不会自动变成原生选择。卸载前,请明确将使用 `github-copilot-preview`
|
|
109
123
|
的 Session/默认模型切回原生模型。如果 Web 选中了 `github-copilot-hosted`,
|
|
110
124
|
请先在原生 Web 设置中选择其他可用后端。卸载不会改写 Web 设置;
|
|
111
125
|
保留已缺失的后端会返回 `WEB_PROVIDER_CONFIGURED_MISSING`,不会自动回退。
|
|
112
|
-
|
|
126
|
+
附加账号管理和插件专属搜索仍然依赖插件;最近选中的原生 OAuth 授权会保留在 DSH canonical 凭据记录中。
|
|
113
127
|
|
|
114
128
|
Desktop 原生包管理器及其内置 CLI 与独立 profile 的操作约束不同。安装前请阅读
|
|
115
129
|
[Desktop CLI 证据](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及
|
package/deployment-baseline.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.1.0-alpha.
|
|
11
|
+
"version": "0.1.0-alpha.9.dsh.0.2.2.rc.3"
|
|
12
12
|
},
|
|
13
13
|
"releaseLines": [
|
|
14
14
|
{ "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
|
|
15
15
|
{ "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
|
|
16
16
|
{ "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
|
|
17
17
|
{ "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
|
|
18
|
-
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.
|
|
18
|
+
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.9.dsh.0.2.2.rc.3", "status": "pending" }
|
|
19
19
|
],
|
|
20
20
|
"evidence": {
|
|
21
21
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
"evidenceScope": "unchanged-tagged-source-target",
|
|
338
338
|
"standaloneNpmArtifacts": "not-tested",
|
|
339
339
|
"managedProviderValidation": "not-verified",
|
|
340
|
-
"runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts"]
|
|
340
|
+
"runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts", "tests/fixtures/native-model-sync-core.fixture.ts"]
|
|
341
341
|
}
|
|
342
342
|
],
|
|
343
343
|
"packages": [
|
|
@@ -461,40 +461,45 @@
|
|
|
461
461
|
{"file": "tests/session-accounts-host.spec.ts", "name": "ignores identity completion after the turn ends"},
|
|
462
462
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "switches only subsequent Session turns inside Credits and can restore inheritance"},
|
|
463
463
|
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds Session account choices and historical reads through native Client and %s Host gateways"},
|
|
464
|
-
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent
|
|
464
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent accounts and SettingsForms CAS across restart with native sign-out recovery"}
|
|
465
465
|
]
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
"id": "independent-copilot-accounts",
|
|
469
469
|
"required": true,
|
|
470
470
|
"evidenceScope": "synthetic-public-services-native-adapter-and-ui-not-live-oauth-or-provider-access",
|
|
471
|
-
"activation": "
|
|
471
|
+
"activation": "confirmed-profile-wide-native-canonical-switch-with-independent-native-route",
|
|
472
472
|
"sourceMarkers": [
|
|
473
473
|
{"file": "src/copilot-accounts-host.ts", "marker": "async ensureIdentityFor(accountId: string)"},
|
|
474
474
|
{"file": "src/copilot-login-environment.ts", "marker": "COPILOT_LOGIN_HOST_PATTERN"},
|
|
475
475
|
{"file": "src/copilot-accounts-host.ts", "marker": "event.verificationUri !== copilotVerificationUri(host)"},
|
|
476
476
|
{"file": "docs/copilot-accounts.md", "marker": "Native OAuth redirect control is unavailable"},
|
|
477
|
-
{"file": "AGENTS.md", "marker": "Approved multi-account ownership extension (#297)"},
|
|
477
|
+
{"file": "AGENTS.md", "marker": "Approved multi-account ownership extension (#297, #474)"},
|
|
478
|
+
{"file": "src/copilot-accounts-host.ts", "marker": "await this.writeGrant('canonical', previousCanonical, selectedGrant)"},
|
|
479
|
+
{"file": "docs/copilot-accounts.md", "marker": "The user-approved native switch (#474) applies the selected saved grant"},
|
|
478
480
|
{"file": "src/remote.ts", "marker": "...copilotAccountsRemote.descriptors"},
|
|
479
481
|
{"file": "src/copilot-accounts-card.ts", "marker": "removeAccount(accountId: string, expectedRevision: number)"},
|
|
480
482
|
{"file": "src/copilot-account-presentation.ts", "marker": "account data and credentials never travel between surfaces"},
|
|
481
483
|
{"file": "docs/copilot-accounts.md", "marker": "A mutable active-account lookup inside each store method is forbidden"}
|
|
482
484
|
],
|
|
483
485
|
"tests": [
|
|
484
|
-
{"file": "tests/native-account-coexistence.spec.ts", "name": "
|
|
486
|
+
{"file": "tests/native-account-coexistence.spec.ts", "name": "applies confirmed account switches to native credentials and retains the native route after disposal"},
|
|
485
487
|
{"file": "tests/scripts/copilot-login-environment.test.mjs", "name": "compares numeric identities within their host without relabeling legacy GitHub.com evidence"},
|
|
486
488
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "authorizes native GHE environments with host-scoped duplicates and immutable reauthorization hosts"},
|
|
487
489
|
{"file": "tests/copilot-accounts-card.spec.ts", "name": "chooses a validated GHE environment without selecting an account or changing GitHub.com login"},
|
|
488
490
|
{"file": "tests/copilot-identity-refresh.spec.ts", "name": "renews expired identity once for account %s without changing metadata-only reads"},
|
|
489
491
|
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "hydrates saved inactive names without activating them, then reuses them"},
|
|
490
492
|
{"file": "tests/account-dropdown.spec.ts", "name": "backs translucent native menu tokens with opaque Canvas and uses a dark elevation shadow"},
|
|
491
|
-
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "retains inactive verified names after freshness expiry without
|
|
493
|
+
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "retains inactive verified names after freshness expiry without identity discovery in status"},
|
|
492
494
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "settles quota before a slow identity renewal and uses nonforcing ensure on visible refresh cadence"},
|
|
493
495
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "freezes the effective account when following is unchecked and restores following through the same CAS"},
|
|
494
496
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "retains confirmed following when consent is cancelled and disables it during confirmation"},
|
|
495
497
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "disables following when the Session selection cannot be read instead of treating it as a fixed account"},
|
|
496
498
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "never writes a captured A refresh into B after an external selection change"},
|
|
497
499
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "runs fresh switch identity and model preflight concurrently but commits only after both settle"},
|
|
500
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "switches the native credential slot and preserves both accounts for later switches"},
|
|
501
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "lets the user explicitly reconcile a selected account with externally changed native credentials"},
|
|
502
|
+
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rolls back the canonical grant and its temporary backup when selector CAS fails unchanged"},
|
|
498
503
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "permits record-bound requests during selector switching without admitting global requests or credential mutations"},
|
|
499
504
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "cancels and drains sibling switch preflight before releasing its mutation fence"},
|
|
500
505
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rejects a changed credential identity during overlapping switch checks without saving"},
|
|
@@ -503,8 +508,9 @@
|
|
|
503
508
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "preserves uncertain commit ahead of missing-slot recovery"},
|
|
504
509
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rechecks externally started canonical authorization before selector CAS"},
|
|
505
510
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "retains canonical admission through polling and cancellation settlement"},
|
|
506
|
-
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent
|
|
511
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent accounts and SettingsForms CAS across restart with native sign-out recovery"},
|
|
507
512
|
{"file": "tests/copilot-accounts-card.spec.ts", "name": "requires a separate confirmation and uses the captured selector revision"},
|
|
513
|
+
{"file": "tests/copilot-accounts-card.spec.ts", "name": "requires confirmation before applying the selected account to mismatched native credentials"},
|
|
508
514
|
{"file": "tests/copilot-accounts-card.spec.ts", "name": "reauthorizes the existing slot without requesting a new account or switching"},
|
|
509
515
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "shows current identity only in details without a Chat switching control"},
|
|
510
516
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "refuses to combine account B identity with account A quota"},
|
|
@@ -741,6 +747,39 @@
|
|
|
741
747
|
{"file": "tests/preview-route.spec.ts", "name": "binds explicit summary capacity proof to its Agent rather than the current default"}
|
|
742
748
|
]
|
|
743
749
|
},
|
|
750
|
+
{
|
|
751
|
+
"id": "confirmed-native-model-sync",
|
|
752
|
+
"required": true,
|
|
753
|
+
"activation": "explicit-preview-and-one-shot-confirmation",
|
|
754
|
+
"evidenceScope": "tagged-native-settings-and-resolution-with-synthetic-catalog-proof-plus-separate-adapter-ownership-tests-not-live-provider",
|
|
755
|
+
"sourceMarkers": [
|
|
756
|
+
{"file": "src/native-model-sync.ts", "marker": "NATIVE_INHERITED_API_MISMATCH"},
|
|
757
|
+
{"file": "src/native-copilot-access.ts", "marker": "captureNativeCopilotCatalog"},
|
|
758
|
+
{"file": "src/authorization-controller.ts", "marker": "path: ['providers', GITHUB_COPILOT_PROVIDER_ID, 'models']"},
|
|
759
|
+
{"file": "src/model-preferences-card.ts", "marker": "Preview enabled models"},
|
|
760
|
+
{"file": "src/remote.ts", "marker": "GitHubCopilotNativeModelSyncPreviewSchema"}
|
|
761
|
+
],
|
|
762
|
+
"tests": [
|
|
763
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "copies only enabled account models and reports additions, removals, and changed model definitions"},
|
|
764
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "does not repoint a known native model when its inherited catalog protocol differs"},
|
|
765
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "skips new non-Responses models without a native compatibility baseline"},
|
|
766
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "skips narrower or unknown server input caps that cannot be represented natively"},
|
|
767
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "skips missing vision or reasoning evidence rather than treating it as disabled"},
|
|
768
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "does not expose an off control that the managed account model does not expose"},
|
|
769
|
+
{"file": "tests/preview-route.spec.ts", "name": "binds native sync discovery and proof to the global account, not the initiating Session"},
|
|
770
|
+
{"file": "tests/native-model-sync.spec.ts", "name": "syncs vision only when account metadata covers every native request image format"},
|
|
771
|
+
{"file": "tests/account-model-catalog.spec.ts", "name": "distinguishes absent vision and reasoning metadata from explicitly declared empty support"},
|
|
772
|
+
{"file": "tests/native-copilot-access.spec.ts", "name": "exposes the proven unfiltered adapter catalog independently of the configured model list"},
|
|
773
|
+
{"file": "tests/native-copilot-access.spec.ts", "name": "revokes a catalog snapshot when its native Loader entry is removed"},
|
|
774
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "previews enabled canonical models and applies only the confirmed native models path with CAS/readback"},
|
|
775
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "reports an uncertain commit if the proven native catalog changes during the write"},
|
|
776
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "previews a native model sync and applies it only after the explicit confirmation action"},
|
|
777
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "does not dispatch duplicate preview or apply actions before React renders the busy state"},
|
|
778
|
+
{"file": "tests/remote-codec.spec.ts", "name": "accepts named native-sync safety diagnostics without accepting extra fields"},
|
|
779
|
+
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds native model sync through actual Client and %s Host gateways"},
|
|
780
|
+
{"file": "tests/fixtures/native-model-sync-core.fixture.ts", "name": "syncs a confirmed snapshot through real native Settings and model resolution across restart using synthetic catalog proof"}
|
|
781
|
+
]
|
|
782
|
+
},
|
|
744
783
|
{
|
|
745
784
|
"id": "account-driven-provider-metadata",
|
|
746
785
|
"required": true,
|
|
@@ -1372,7 +1411,7 @@
|
|
|
1372
1411
|
{"file": "tests/auto-allocation-evidence.spec.ts", "name": "keeps legacy-only summaries v1 and separates mixed-policy decisions explicitly"},
|
|
1373
1412
|
{"file": "tests/auto-allocation-evidence.spec.ts", "name": "counts each turn once, bounds retention and never recovers missing evidence after removal"},
|
|
1374
1413
|
{"file": "tests/client.spec.ts", "name": "does not expose retired Auto cost controls or treat saved cost marks as model availability"},
|
|
1375
|
-
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent
|
|
1414
|
+
{"file": "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "name": "persists independent accounts and SettingsForms CAS across restart with native sign-out recovery"}
|
|
1376
1415
|
]
|
|
1377
1416
|
},
|
|
1378
1417
|
{
|
package/docs/agent-readiness.md
CHANGED
|
@@ -61,7 +61,7 @@ The provider integration introduced in `0.4.0-alpha.5` replaces the older indepe
|
|
|
61
61
|
- **Discovery triggers (#95):** successful explicit UI **Start sign-in**/account switch forces one bounded discovery after immediate or polled completion. Opening Models separately calls non-forcing `ensureModels()` once for missing/idle/stale/error/loading signed-in metadata; error re-entry retries only after shared cooldown with no same-mount loop; loading joins the existing Host flight to observe completion without extra network. Fresh ready cache needs no request, and true unavailable/empty models do not auto-retry. Status/details remain network-free, not the entire opening flow. Background credential/reset events clear Client state and read status, not force discovery on every token event; next open/use ensures metadata.
|
|
62
62
|
- **Freshness and authority (#95):** `github-copilot` settings default to `accountModelTtlMs: 86400000` (24h maximum reuse) and `accountModelFailureCooldownMs: 300000` (5min failure cooldown). One shared Host flight serves callers; no periodic metadata polling timer (the timestamp's display-only timer is separate). Last same-account metadata may display during TTL refresh/loading/error but never authorize requests. Credential/account/permission invalidation or proof expiry revokes request evidence immediately; the TTL does not extend tokens. Definitive `UNKNOWN_MODEL` triggers one bounded metadata refresh without message replay/model switching; generic HTTP/network errors are not guessed into that category.
|
|
63
63
|
- **Last-success display (#97):** `snapshot.discoveredAt` appears beside the model count outside **Manage**, without a duplicate inside. Past times use English relative text; the tooltip and accessible semantic `time` expose the full local date, time and time zone. Missing/invalid timestamps or no account hide it; future times use an absolute label. One mounted 60-second display-only timer updates the relative text without RPC/status/discovery, and is disposed when the timestamp disappears or the view unmounts. Pending/failed refresh keeps the last success time; successful refresh replaces it and sign-out clears it. Cache/discovery and authorization rules are unchanged.
|
|
64
|
-
- **Honest integration limit:** the published provider-card slot is additive and cannot replace Core **Edit/Delete**. Normal plugin discovery needs no manual model definitions, but the native editor stays available. Embedding account controls does not merge/remove canonical `github-copilot` and managed `github-copilot-preview`, copy credentials, rewrite configuration/history or migrate selection. Any optional real route removal still requires the [separate reviewed migration](./single-route-migration.md).
|
|
64
|
+
- **Honest integration limit:** the published provider-card slot is additive and cannot replace Core **Edit/Delete**. Normal plugin discovery needs no manual model definitions, but the native editor stays available. Embedding account controls does not merge/remove canonical `github-copilot` and managed `github-copilot-preview`, or automatically copy credentials, rewrite configuration/history or migrate selection. The later explicit native account switch is the only credential-projection exception; see [account ownership](./copilot-accounts.md). Any optional real route removal still requires the [separate reviewed migration](./single-route-migration.md).
|
|
65
65
|
- **Acceptance still required:** test missing/idle/stale/error/loading open-time ensure versus fresh-cache no-request, shared Host flight, TTL/cooldown boundaries, display-only stale data, immediate revocation, definitive unknown-model refresh without replay, Manage-only manual refresh and visible Retry. Retain provider/footer/old-Core fallback, overlapping-owner transfer, final-unmount cleanup and once-per-explicit-login tests. Read the implementation PR's actual results before claiming these checks passed; documentation is not runtime or live OAuth evidence.
|
|
66
66
|
- **Browser/media evidence:** `copilot-search-routing.png` shows the current built plugin-detail routing card in isolated Edge with synthetic providers. It is presentation evidence only, not proof of live credentials, provider availability, search success or Desktop activation. Host TTL/cooldown timing and account-control lifecycle remain unit-test evidence rather than screenshot evidence.
|
|
67
67
|
|