dsh-github-copilot 0.4.0-alpha.129 → 0.4.0-alpha.132
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 +3 -1
- package/CHANGELOG.md +17 -0
- package/README.md +37 -45
- package/README.zh.md +33 -40
- package/deployment-baseline.json +16 -1
- package/docs/images/copilot-accounts-credits.png +0 -0
- package/docs/images/copilot-accounts.png +0 -0
- package/docs/images/copilot-current-provenance.json +36 -0
- package/docs/images/copilot-model-preferences.png +0 -0
- package/docs/images/copilot-search-routing.png +0 -0
- package/docs/model-compatibility-acceptance.md +2 -0
- package/docs/official-first-020-rc2.md +1 -0
- package/docs/plugin-diagnostics.md +64 -0
- package/docs/session-search-routing.md +1 -1
- package/docs/single-route-migration.md +5 -4
- package/lib/client.js +1 -1
- package/lib/diagnostics-analysis-io.js +78 -0
- package/lib/diagnostics-analysis.js +425 -0
- package/lib/diagnostics-types-FVf6zjob.js +182 -0
- package/lib/index.js +10 -2
- package/lib/manual-compaction-recovery.js +2 -1
- package/lib/request-budget-DLY_aRq0.js +87 -0
- package/lib/types/account-model-catalog.d.ts +7 -0
- package/lib/types/diagnostics-analysis-io.d.ts +23 -0
- package/lib/types/diagnostics-analysis.d.ts +295 -0
- package/lib/types/preview-provider.d.ts +1 -0
- package/package.json +3 -1
- package/scripts/analyze-diagnostics.mjs +91 -0
- package/lib/request-budget-Cui2hCi1.js +0 -268
package/AGENTS.md
CHANGED
|
@@ -39,7 +39,7 @@ This repository owns twelve narrow surfaces:
|
|
|
39
39
|
4. Preserve intentional absence of `llm-pi-ai.providers.github-copilot`; reconcile only existing legacy profiles and verified ownership journals. Fresh installations use the single account-discovered route; existing profiles require explicit migration, never silent removal.
|
|
40
40
|
5. Direct provider-hosted search using the same Host-side credential lifecycle.
|
|
41
41
|
6. Provider-scoped tool-schema compatibility for Copilot payload behaviors; Core remains the tool and execution owner.
|
|
42
|
-
7. A bounded account-discovery route that supplies validated endpoint/capability metadata to the published native adapter, 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.
|
|
42
|
+
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.
|
|
43
43
|
8. Optional, provider-scoped Chat presentation for completed empty reasoning disclosures; durable content and encrypted replay metadata remain Core-owned.
|
|
44
44
|
9. Compatibility-only policy restoration and request recovery for existing dedicated planner/executor Sessions. Model roles UI, settings writes and new dedicated roots are retired (#158); never reintroduce them or migrate histories implicitly.
|
|
45
45
|
10. Managed-route estimated input/output admission, optional exact-request pressure signalling through official compaction recovery, supported low summary effort only when no effort is already resolved, and default-off lossless gzip for explicitly opted-in account-proven HTTP Responses requests. See [compaction budgets](./docs/copilot-compaction.md). Preserve truthful capacities, requested output caps, native errors/replay and transaction ownership; no hidden history trimming, wire chunking, competing compaction service or automatic model switch. The separately selected, single-service [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented recovery for known oversized summaries or one typed native capacity failure through the public subclass hook. Preserve `automaticRecovery: false`, native `auto: false`, scopes and custom engines; at most 16 physical calls including a failed first attempt, no recursive retry or 408/network/auth/quota fallback. Installation alone never selects or migrates an engine.
|
|
@@ -115,6 +115,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
115
115
|
accounting. Historical counts never become current occupancy; Core pressure,
|
|
116
116
|
billing and durable events stay under Core ownership.
|
|
117
117
|
- `src/current-provider.ts`: selected DSH route plus installed pi-ai catalog facts.
|
|
118
|
+
- `src/account-model-catalog.ts`, `src/preview-provider.ts`: validated account endpoint/capability descriptors and published adapter composition. Explicit supplier `supports.thinking` metadata controls only managed Responses temperature compatibility; unknown/malformed metadata never authorizes guessed omission.
|
|
118
119
|
- `src/temporary-models.ts`: exact, account-gated corrections with semantic protocol/capability retirement.
|
|
119
120
|
- `src/model-protocol.ts`: explicit Core capability detection and conservative legacy fallback.
|
|
120
121
|
- `src/responses-reasoning.ts`, `src/responses-reasoning-text.ts`: selected-model effort mapping and public summary assembly.
|
|
@@ -140,6 +141,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
140
141
|
|
|
141
142
|
- Do not implement a second general wire adapter or independently maintained static Copilot model catalog. The account-scoped route composes the published adapter and SDK with validated supplier metadata.
|
|
142
143
|
- Protocol and capability corrections must follow authenticated, current account metadata; new model IDs must not need new implementation tables. Native pi metadata may be reused only where it agrees with advertised endpoints and capabilities. Matching IDs alone do not prove correctness or authorize migration back into another Core catalog. Preserve old bounded ownership journals solely for verified restoration of legacy writes, never for new global protocol overrides.
|
|
144
|
+
- Native Auto review compatibility must preserve Core's frozen request and strict fail-closed verdict ownership. Omit temperature only from a new plugin-owned managed Responses options object when current supplier metadata explicitly marks it unsupported; never match reviewer prompts, model names or errors, intercept the canonical Core route, retry/resend, rewrite a verdict or change permission policy.
|
|
143
145
|
- Solve protocol gaps inside the plugin using existing published extension points. Do not require a new Core capability/service or patch Core to keep a single route. The managed account-model route reuses the published adapter with one shared OAuth grant; label multiple routes honestly. Keep canonical Core models/configuration under their existing owner instead of rewriting them from the companion's pi catalog.
|
|
144
146
|
- Preserve public Responses summaries and the effective selected-model reasoning effort. Never synthesize raw reasoning replay from summaries or read/decrypt opaque replay data; assistant reasoning/replay histories delegate to Core before probing.
|
|
145
147
|
- Do not require or silently support `copilot2api`, an external gateway, a pasted GitHub token, a placeholder key, or `dsh-web-search-provider`.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.132 (prepared)
|
|
4
|
+
|
|
5
|
+
- Publish the reviewed #374 native Auto-review compatibility update and its complete exact-Core descriptor fixtures under a fresh immutable version.
|
|
6
|
+
- Preserve the unused `v0.4.0-alpha.131` tag after its noncanonical manual annotation was rejected by the protected publication workflow; that version was not published to GitHub Releases or npm and is never moved, reused or repacked.
|
|
7
|
+
|
|
8
|
+
## 0.4.0-alpha.131 (not published)
|
|
9
|
+
|
|
10
|
+
- Make native rc.2 Auto authorization review compatible with managed Copilot Responses models that explicitly advertise `capabilities.supports.thinking`: omit the unsupported `temperature` field only at the plugin-owned native transport boundary (#374).
|
|
11
|
+
- Preserve the frozen reviewer request, supported or unknown temperature behavior, other protocols/providers, account and cancellation fences, and native allow/deny/malformed/error handling. No prompt matching, model-name rule, retry, permission bypass or canonical-route interception is added.
|
|
12
|
+
- Add exact tagged-source and published-artifact reviewer fixtures with synthetic metadata, credentials and responses. These tests do not attest a live selected model, provider endpoint, Desktop activation, installation or restart.
|
|
13
|
+
|
|
14
|
+
## 0.4.0-alpha.130 (prepared)
|
|
15
|
+
|
|
16
|
+
- Add explicit offline analysis for a caller-selected persisted diagnostics unit or reviewed aggregate view (#368). Bound reads, reject unsafe/changed inputs, and write strict reports only to a new explicitly selected local file.
|
|
17
|
+
- Keep version, Client/Host, operation, terminal outcome and duration populations distinct. Preserve overflow and collection gaps; do not infer failure rates, live pending state, root cause or improvement from unmatched or persisted-only evidence.
|
|
18
|
+
- Synthetic tests cover read safety and report semantics; the first descriptive report remains private local evidence. No live profile read, collection change, upload, schedule, install or restart is part of release validation.
|
|
19
|
+
|
|
3
20
|
## 0.4.0-alpha.129
|
|
4
21
|
|
|
5
22
|
- Keep ordinary post-compaction steps and requests without a fresh usage sample quiet instead of repeatedly showing context-sampling uncertainty (#367).
|
package/README.md
CHANGED
|
@@ -8,26 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter, retaining a profile-wide account default with independent Session next-turn choices; it does not patch Core or maintain a second model catalog.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
independent official authorizations in the existing credentials service.
|
|
13
|
-
**Models → Manage → GitHub accounts** manages authorizations and the global default.
|
|
14
|
-
Inside **Credits**, choose a saved account for this Session's subsequent turns or
|
|
15
|
-
restore **Follow global default**. Running turns retain their original account.
|
|
16
|
-
Selector-only switching permits their account-bound model preparation and
|
|
17
|
-
dispatch to continue; unbound requests and credential mutations remain fenced.
|
|
18
|
-
Identity display accepts GitHub Enterprise Managed User names, including their underscore-separated enterprise suffixes.
|
|
19
|
-
|
|
20
|
-
Models and Chat share an opaque, theme-aware account dropdown; translucent native menu tokens cannot reveal underlying controls or quota text. Both use restrained dark elevation in light and dark mode.
|
|
21
|
-
|
|
22
|
-
Plugin-owned Models, account, preferences and settings controls use DSH's native font family, setting/caption hierarchy, neutral control radii and keyboard focus treatment. Compact provider actions stay aligned with native Edit; Manage actions no longer stretch across the row. These presentation changes do not change authorization, model preferences or continuation policy.
|
|
23
|
-
|
|
24
|
-
Visible-history continuation no longer rejects entire requests at 16 MiB. It processes only bounded encrypted reasoning, yields to cancellation, and preserves ordinary tool/image content. Real token pressure still uses the enabled native automatic-compaction engine and request rebuild; processing limits are not context overflow. See [continuation boundaries](./docs/session-continuation.md).
|
|
25
|
-
|
|
26
|
-
Visible Models and Credits resolve missing names for saved accounts without activating them. Verified names remain cached for the Host lifetime, including inactive accounts; the ten-minute freshness interval governs revalidation, not name display. Credential changes, removal and failed identity verification invalidate names. Shared per-account requests and a thirty-second failure cooldown remain; explicit refresh retries immediately. Names do not prove authorization or model access. See [account lifecycle](./docs/copilot-accounts.md).
|
|
27
|
-
|
|
28
|
-
Adding an account now keeps the device-authorization link, selectable URL, one-time code, Copy code action and Cancel together while authorization is pending. After GitHub authorizes, identity and model verification are shown as a separate phase. Adding never changes the global default; use the existing explicit **Switch** action when ready. Technical diagnostics are secondary, and account/turn identity fallbacks never expose opaque account IDs or infer historical identity from today's settings.
|
|
29
|
-
|
|
30
|
-
**Package version: `0.4.0-alpha.129` (prepared). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
|
|
11
|
+
**Current release: [`0.4.0-alpha.132`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.132). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** This is still an alpha release, not a stable-channel promotion. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
|
|
31
12
|
|
|
32
13
|
## What you can do
|
|
33
14
|
|
|
@@ -52,15 +33,26 @@ The [local diagnostics pilot](./docs/plugin-diagnostics.md) records bounded
|
|
|
52
33
|
account/Checking and compaction aggregates, **default off**. After installing
|
|
53
34
|
and loading the published build, open the plugin detail settings page →
|
|
54
35
|
**Local diagnostics → Read status → Enable local collection**. This enables
|
|
55
|
-
local persistence, not uploads or
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
local persistence, not uploads or scheduled analysis. The package also has an
|
|
37
|
+
explicit offline analyzer for a caller-selected persisted unit or reviewed
|
|
38
|
+
aggregate view; it writes only to a new local report file and never scans,
|
|
39
|
+
uploads or changes collection. Pause preserves evidence; Clear requires
|
|
40
|
+
separate confirmation. Client/Host populations, uncovered paths and
|
|
41
|
+
reporting/storage gaps remain explicit. Descriptive counts are not reconstructed
|
|
42
|
+
history, failure rates or proof of an improvement.
|
|
43
|
+
|
|
44
|
+
To analyze an explicitly qualified file from a built package or source checkout:
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
node scripts/analyze-diagnostics.mjs --input "ABSOLUTE_UNIT_FILE.json" --mode persisted-unit --profile-name "PROFILE_NAME" --output "NEW_LOCAL_REPORT.json"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Replace the placeholders with the reviewed file/profile and a new absolute output path. For a reviewed aggregate view export, use `--mode reviewed-view` without `--profile-name`. [Read qualification and interpretation limits](./docs/plugin-diagnostics.md#explicit-offline-analysis-368) explain the accepted envelope, bounds and persisted-only evidence; no daily schedule is included.
|
|
59
51
|
|
|
60
52
|
| Task | Where to start |
|
|
61
53
|
|---|---|
|
|
62
54
|
| Sign in and manage account models | **Settings → Models → GitHub Copilot → Sign in** |
|
|
63
|
-
| Add or switch GitHub accounts | **Manage →
|
|
55
|
+
| Add or switch GitHub accounts | **Manage → Account management → Switch**; managed-only profiles |
|
|
64
56
|
| Select this Session's next-turn account | **Credits → Switch account**; saved authorizations only |
|
|
65
57
|
| Exclude or restore individual models | **Manage → Model preferences** |
|
|
66
58
|
| Choose models automatically | Pick **Auto · Balance**, **Auto · Efficiency** or **Auto · Intelligence** |
|
|
@@ -68,15 +60,15 @@ not reconstructed history or proof of an improvement.
|
|
|
68
60
|
| Choose primary/fallback search providers | **Plugin details → Web search** |
|
|
69
61
|
| Read account Credits and context evidence | Copilot Session composer; native Turn Usage stays separate |
|
|
70
62
|
|
|
71
|
-

|
|
72
64
|
|
|
73
|
-
|
|
65
|
+
Current alpha.130 built Client components in an isolated browser, with synthetic accounts and models. Manage contains account controls, continuation defaults and model preferences, including High cost. This is presentation evidence, not live sign-in, model availability or loaded Desktop proof.
|
|
74
66
|
|
|
75
67
|

|
|
76
68
|
|
|
77
|
-

|
|
78
70
|
|
|
79
|
-
|
|
71
|
+
These captures use the same current built components and synthetic identities/quota. Models changes the global default; Credits changes only this Session's subsequent turns. They do not show real accounts or billing data. [Capture provenance](./docs/images/copilot-current-provenance.json) accompanies the images.
|
|
80
72
|
|
|
81
73
|
## Install and sign in
|
|
82
74
|
|
|
@@ -93,10 +85,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
93
85
|
For a **standalone named profile**:
|
|
94
86
|
|
|
95
87
|
```sh
|
|
96
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
88
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
|
|
97
89
|
```
|
|
98
90
|
|
|
99
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
91
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.132` after publication. Official rc.2's **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
|
|
100
92
|
|
|
101
93
|
After an approved reload/restart:
|
|
102
94
|
|
|
@@ -106,23 +98,19 @@ After an approved reload/restart:
|
|
|
106
98
|
|
|
107
99
|
Sign-out requires an explicit action and removes only the active account's authorization, not other saved grants or route settings. Upgrades preserve existing native Copilot profiles; two groups can remain until [explicit single-route migration](./docs/single-route-migration.md). Installation never migrates conversations or defaults.
|
|
108
100
|
|
|
109
|
-
In **Manage →
|
|
101
|
+
In **Manage → Account management**, the **Switch** dropdown lists saved accounts and **Add GitHub account** at the bottom. Adding never replaces the global default. During device authorization, the card keeps the verification URL, one-time code, **Copy authorization code** and **Cancel adding account** together; identity/model verification follows separately. A confirmed switch changes future inherited turns, not running turns or explicit Session overrides. **Manage saved authorizations** contains **Reauthorize** and **Remove**; removal affects only a nondefault saved authorization, never a running turn's pinned account or GitHub-side access. **Refresh account information** updates identity, not authorization. Native-route or incomplete evidence blocks switching; missing/revoked accounts never fall back. A new account may lack your selected model, and encrypted replay may be account-bound: no automatic model substitution or history removal occurs. See [account requirements](./docs/copilot-accounts.md).
|
|
110
102
|
|
|
111
103
|
Completed managed turns show **Account** beside native Usage. It records the request account, not billing or subagent totals. A verified name is frozen at admission; if missing, an existing bounded non-forcing lookup for that exact account runs without delaying model delivery and can fill identity only while the same turn remains active. No account evidence exists before native delivery. Missing identity remains unavailable; completed history is never backfilled from current settings. Evidence is bounded to the Host lifetime; restart, cold history or missing delivery displays unknown. Credits labels an unidentified original or saved authorization without displaying opaque account IDs.
|
|
112
104
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
**Global switch waiting:** Models shows metadata first and hydrates identity names independently; background name checks do not lock Switch when route/activity evidence permits it. Fresh identity and model validation overlap, but both must succeed before CAS and strict readback. Failures cancel/drain outstanding preflight without retry; identity-cache display never authorizes switching. The confirmed account result is not discarded when parent callbacks change, and late name reads cannot roll it back. This is separate from Session **Follow global default**, and does not remove necessary network checks or establish live millisecond savings.
|
|
116
|
-
|
|
117
|
-
`COPILOT_ACCOUNTS_BUSY` is reevaluated from current activity, not retained after work ends. The authorization-in-progress state is presented as progress rather than a terminal busy error; unrelated unknown blockers remain unknown. Use **Refresh account information** to update the open card after relevant work settles. If only the active account is listed, first **Add GitHub account**; **Switch** appears beside another saved account.
|
|
105
|
+
Saved account names can load without activating the account. Names are cached for the Host lifetime, invalidated by credential changes or failed verification, and never prove authorization or model access. A global switch requires fresh identity/model validation and confirmed settings persistence. If switching is blocked, let authorization or pinned work settle and use **Refresh account information**; unknown route/activity evidence remains a blocker. The dropdown, not a button beside each saved account, is the selection control.
|
|
118
106
|
|
|
119
107
|
**Desktop lifecycle:** disable/remove/upgrade can require a full cold restart for Web service recomposition. If the plugin is Off and the native manager reports only `pending (waiting for service: web)`, do not repeatedly toggle or reinstall. Obtain restart approval and follow [rc.2 lifecycle guidance](./docs/web-lifecycle-rc2.md).
|
|
120
108
|
|
|
121
109
|
## Auto and model preferences
|
|
122
110
|
|
|
123
|
-
**Saving preferences:** Exclude/Restore and High cost
|
|
111
|
+
**Saving preferences:** Exclude/Restore and High cost save immediately with confirmed settings readback. Other rows remain usable: up to 32 distinct-row edits can wait, marked **Waiting…**, while one is **Saving…**. An unconfirmed result or changed scope cancels unsent edits; **Retry** reads saved settings without replaying writes. The queue does not survive unmount.
|
|
124
112
|
|
|
125
|
-
**Provider-directory load failures:** native Models `llm/listProviders failed: Failed to fetch` is a Client-to-Host/gateway transport failure, not proof of forced Copilot
|
|
113
|
+
**Provider-directory load failures:** native Models `llm/listProviders failed: Failed to fetch` is a Client-to-Host/gateway transport failure, not proof of forced Copilot discovery. Use the native page's **Retry** after the connection recovers; the plugin does not substitute a stale or empty catalog.
|
|
126
114
|
|
|
127
115
|
All three Auto preferences use the same account-verified, non-excluded eligible pool. Hard input/image capability checks run before soft task preferences.
|
|
128
116
|
|
|
@@ -133,7 +121,7 @@ All three Auto preferences use the same account-verified, non-excluded eligible
|
|
|
133
121
|
| Complex | Powerful | Powerful | Powerful |
|
|
134
122
|
| Unknown | Versatile | Versatile | Powerful |
|
|
135
123
|
|
|
136
|
-
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings.
|
|
124
|
+
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings. Within the first fitting category, positive cost weights and the finite continuity bonus described above choose the model; a suitable previous model is not unconditionally retained. Category fallback is explained explicitly. One real answer model stays fixed throughout each admitted turn's steps and retries; compaction preserves its independently resolved native summary route.
|
|
137
125
|
|
|
138
126
|
Semantic assessment is **enabled by default only for locally unknown tasks**. It makes at most one bounded auxiliary call with an **8-second end-to-end deadline** and **128-token output budget**. Set `github-copilot.autoSemanticAssessment: false` to opt out. Timeout/invalid output leaves demand unknown and uses the preference fallback; it never means simple or triggers another classifier. Caller cancellation and account invalidation remain terminal. Auxiliary calls add latency and supplier charges outside native answer Usage.
|
|
139
127
|
|
|
@@ -153,6 +141,8 @@ Explicit Auto intent survives native pending-selection consumption and cold rest
|
|
|
153
141
|
|
|
154
142
|

|
|
155
143
|
|
|
144
|
+
Current alpha.130 built plugin-detail page with synthetic settings/providers and paused, empty diagnostics. No search, collection or live service was invoked for this capture.
|
|
145
|
+
|
|
156
146
|
**Follow parent model** defaults Off and applies profile-wide to supported native children/Team mates of managed Copilot parents. Fixed parents apply on each child's next turn; Auto parents pass the exact preference while each child evaluates its own context. Child-owned explicit selections win. Running turns, roots, forks, other providers and dedicated legacy policies are not rewritten. Existing legacy bindings remain independent when the broad switch is Off. [Parent-following contract](./docs/parent-model-follow.md).
|
|
157
147
|
|
|
158
148
|
**Web search** has two ordinary controls: primary provider and final fallback. Auto follows the initiating Chat provider when a corresponding search registration exists; fixed choices stay fixed when Chat changes. At most one distinct final fallback is tried, with possible charges disclosed. Cancellation/account-proof loss never authorizes a fallback.
|
|
@@ -189,6 +179,8 @@ The same failure can include request-scoped native local body-write/header miles
|
|
|
189
179
|
|
|
190
180
|
HTTP/SSE liveness separates five-minute byte idle from bounded ten-minute assistant-output silence by default. Consumer work is excluded; WebSocket/explicit `auto` stays native-only. This does not cure supplier HTTP 408s. Images are admitted against actual native-projected MIME evidence; the plugin does not own conversion or infer format support from filenames. [Image compatibility](./docs/image-input-compatibility.md).
|
|
191
181
|
|
|
182
|
+
Native rc.2 Auto authorization review always asks its selected route with `temperature: 0`. On the managed account-discovered Responses route, the plugin now follows the supplier's explicit `capabilities.supports.thinking` fact and omits that unsupported field at the plugin-owned native transport boundary. An explicit `false` or absent capability preserves the caller's setting; other protocols/providers remain unchanged. The frozen reviewer request, strict verdict parser, cancellation and fail-closed tool denial are untouched, and no failed request is retried. Existing canonical Core-owned Copilot profiles are outside this mitigation because the plugin cannot intercept them without taking over another owner's adapter.
|
|
183
|
+
|
|
192
184
|
## Settings and troubleshooting
|
|
193
185
|
|
|
194
186
|
Configuration is under `github-copilot`. Credentials, endpoint definitions and a static model catalog are not plugin settings.
|
|
@@ -225,7 +217,7 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
|
|
|
225
217
|
|
|
226
218
|
Confirmed account saves restore controls immediately, independently of quota loading. Changing only follow mode for the same account retains its attributed quota without another read. Switching accounts clears the old quota and loads the new snapshot without blocking further account edits; quota errors do not undo a confirmed selection.
|
|
227
219
|
|
|
228
|
-
The Credits account panel shows the current account and **Switch**. Its dropdown lists only configured accounts, marks the effective account and scrolls long lists internally. **Follow global default** is a separate checkbox: enabling it clears the Session override; disabling it fixes the current account. Choosing any account also fixes it, even if it is today's default. Both actions retain continuation confirmation and revision-checked saving. Account addition belongs only in Models, where one **Manage** disclosure contains account management and shared model preferences. Models retains Add in its dropdown footer without selecting the new account, plus guarded local removal and reauthorization. Neither surface has account search. Exact-ID exclusions are shared across accounts; availability is account-specific. See the [approved experience and interactive mock](./docs/account-management-experience.md).
|
|
220
|
+
The Credits account panel shows the current account and **Switch account**. Its dropdown lists only configured accounts, marks the effective account and scrolls long lists internally. **Follow global default** is a separate checkbox: enabling it clears the Session override; disabling it fixes the current account. Choosing any account also fixes it, even if it is today's default. Both actions retain continuation confirmation and revision-checked saving. Account addition belongs only in Models, where one **Manage** disclosure contains account management and shared model preferences. Models retains Add in its dropdown footer without selecting the new account, plus guarded local removal and reauthorization. Neither surface has account search. Exact-ID exclusions are shared across accounts; availability is account-specific. See the [approved experience and interactive mock](./docs/account-management-experience.md).
|
|
229
221
|
|
|
230
222
|
[Visible-history continuation](./docs/session-continuation.md) is configured beside account switching, not permanently above the composer. New unseeded Sessions default on after the feature's first successful activation; existing Sessions and inherited histories remain off unless explicitly authorized. Global defaults affect new Sessions only; Session on/off overrides persist across accounts/restarts until disabled. With continuation off, a different-account switch offers persistent enable, keep off or cancel, without a one-turn mode. Each new enabled turn omits prior encrypted reasoning and embedded summaries, even on the same account; current-turn reasoning, visible messages, tools and disk history remain unchanged. Authorization never auto-sends/retries and is not a quota/context cure. Exact replay failures expose the same policy and require a separate native retry. The pinned Core lacks a public Models deep link; Chat omits the nonfunctional management entry. Full management remains in Settings → Models → GitHub Copilot → Manage.
|
|
231
223
|
|
|
@@ -233,7 +225,7 @@ Context evidence and Replay recovery use compact, centered notices bounded by th
|
|
|
233
225
|
|
|
234
226
|
## Ownership and further reading
|
|
235
227
|
|
|
236
|
-
DSH Core owns Sessions, tools, sandboxing, attachments, native accounting and other providers. `llm-pi-ai` owns OAuth, token exchange/refresh and normal model transport. This plugin composes the published adapter with authenticated account metadata; new supported account model IDs need no name-based routing patch. Credentials stay Host-only
|
|
228
|
+
DSH Core owns Sessions, tools, sandboxing, attachments, native accounting and other providers. `llm-pi-ai` owns OAuth, token exchange/refresh and normal model transport. This plugin composes the published adapter with authenticated account metadata; new supported account model IDs need no name-based routing patch. Credentials stay Host-only: `llm-pi-ai/github-copilot` is the canonical compatibility record; additional accounts are independently authorized plugin-owned records in the same DSH credentials service, never copied grants.
|
|
237
229
|
|
|
238
230
|
Public APIs cannot replace Core Edit/Delete, restructure its flat picker or make native Add a single-route enforcement mechanism. Retired [Model roles](./docs/dual-model.md) remain compatibility-only. Fixes must stay [plugin-only](./AGENTS.md#plugin-only-implementation-boundary).
|
|
239
231
|
|
|
@@ -269,14 +261,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
269
261
|
GitHub Releases and npm distribute the same original verified tarball. Pin a version; verify Release SHA-256 or npm `dist.integrity`. Never repack an immutable release or move/reuse its tag.
|
|
270
262
|
|
|
271
263
|
```sh
|
|
272
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
273
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
264
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
|
|
265
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/SHA256SUMS
|
|
274
266
|
sha256sum --check SHA256SUMS
|
|
275
267
|
```
|
|
276
268
|
|
|
277
269
|
```powershell
|
|
278
270
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
279
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
271
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.132.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
280
272
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
281
273
|
```
|
|
282
274
|
|
package/README.zh.md
CHANGED
|
@@ -8,23 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器,保留 profile 全局默认账号,并支持 Session 后续 turn 指定独立账号;不修改 Core,也不维护第二套模型目录。
|
|
10
10
|
|
|
11
|
-
[
|
|
12
|
-
分别保存独立官方授权。**模型 → Manage → GitHub accounts**管理授权和全局默认;
|
|
13
|
-
在 Credits 内选择本 Session 后续 turn 的账号,或恢复跟随全局默认;正在运行的 turn 保持原账号。
|
|
14
|
-
仅切换全局选择期间,已绑定账号的模型准备和发送可以继续;未绑定请求及授权记录变更仍受锁保护。
|
|
15
|
-
身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
|
|
16
|
-
|
|
17
|
-
Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜单 token 即使半透明,也不会透出底下的按钮或额度文字。明暗主题均使用克制的深色投影,不产生白色光晕。
|
|
18
|
-
|
|
19
|
-
插件的 Models、账号、模型偏好和设置控件统一使用 DSH 原生字体、设置/辅助文字层级、中性圆角及键盘焦点样式。紧凑操作与原生 Edit 对齐;Manage 内的操作按钮不再铺满整行。这些外观调整不会改变授权、模型偏好或降级续聊策略。
|
|
20
|
-
|
|
21
|
-
可见历史续聊不再按整包 16 MiB 拒绝请求。过滤只对加密推理做有界、可取消的处理,普通工具输出和图片内容保持不变。真实 token 压力仍交给已启用的原生自动 compact 引擎,完成摘要后重建请求;处理工作量上限不会被误报为上下文溢出。参见[续聊边界](./docs/session-continuation.md)。
|
|
22
|
-
|
|
23
|
-
可见的 Models 和 Credits 会补齐已保存账号缺失的名称,不需要先激活账号。已验证名称在 Host 生命周期内缓存,未激活账号也会保留;十分钟是重新验证的间隔,不是名字的显示期限。凭据变更、账号移除及身份验证失败会使名称失效。同账号共享请求、失败冷却三十秒,显式刷新可立即重试。名称不能证明授权有效或模型可用。参见[账号生命周期](./docs/copilot-accounts.md)。
|
|
24
|
-
|
|
25
|
-
添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
|
|
26
|
-
|
|
27
|
-
**包版本:`0.4.0-alpha.129`(准备中)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
|
|
11
|
+
**当前发布:[`0.4.0-alpha.132`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0-alpha.132)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 仍为 alpha 版本,未升级为稳定发布通道。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
|
|
28
12
|
|
|
29
13
|
## 你可以做什么
|
|
30
14
|
|
|
@@ -43,14 +27,23 @@ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜
|
|
|
43
27
|
[本地诊断试点](./docs/plugin-diagnostics.md)记录有界的账号/Checking 与压缩
|
|
44
28
|
汇总,**默认关闭**。安装并加载已发布版本后,进入插件详情设置页 →
|
|
45
29
|
**Local diagnostics → Read status → Enable local collection**,开启本地持久化;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
30
|
+
不上传,不启用定时分析。包内另提供显式离线分析器,只处理调用者指定的持久化单元
|
|
31
|
+
或经审阅的聚合视图,并且只新建本地报告文件;不会扫描、上传或更改采集设置。
|
|
32
|
+
暂停保留证据,清除需单独确认。Client/Host 分开统计,未覆盖路径、报告丢失与存储
|
|
33
|
+
故障明确显示。描述性计数不是历史重建、错误率,也不表示优化效果已被验证。
|
|
34
|
+
|
|
35
|
+
在已构建的包或源码 checkout 内,显式分析已核验的文件:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
node scripts/analyze-diagnostics.mjs --input "ABSOLUTE_UNIT_FILE.json" --mode persisted-unit --profile-name "PROFILE_NAME" --output "NEW_LOCAL_REPORT.json"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
请把占位符替换为经审阅的文件/profile 和新的绝对输出路径。分析经审阅的聚合视图导出时,使用 `--mode reviewed-view`,不传 `--profile-name`。[读取核验与解释限制](./docs/plugin-diagnostics.md#explicit-offline-analysis-368)说明格式、边界及仅持久化证据的含义;不包含每日定时任务。
|
|
49
42
|
|
|
50
43
|
| 任务 | 入口 |
|
|
51
44
|
|---|---|
|
|
52
45
|
| 登录并管理账号模型 | **设置 → 模型 → GitHub Copilot → Sign in** |
|
|
53
|
-
| 添加/切换 GitHub 账号 | **Manage →
|
|
46
|
+
| 添加/切换 GitHub 账号 | **Manage → 账号管理 → 切换**;仅限托管路由 profile |
|
|
54
47
|
| 指定本 Session 后续 turn 的账号 | **Credits → Switch account**;仅选择已保存授权 |
|
|
55
48
|
| 排除/恢复单个模型 | **Manage → Model preferences** |
|
|
56
49
|
| 自动选择模型 | 选择 **Auto · Balance / Efficiency / Intelligence** |
|
|
@@ -58,15 +51,15 @@ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜
|
|
|
58
51
|
| 设置搜索主 provider 与最终 fallback | **插件详情 → Web search** |
|
|
59
52
|
| 查看账号 Credits 与上下文证据 | Copilot 会话输入框;原生 Turn Usage 独立保留 |
|
|
60
53
|
|
|
61
|
-

|
|
62
55
|
|
|
63
|
-
|
|
56
|
+
当前 alpha.130 构建的真实 Client 组件,运行于隔离浏览器,账号与模型均为模拟。Manage 包含账号控件、续聊默认值和模型偏好(包括 High cost)。图片仅说明界面,不证明真实登录、模型可用性或 Desktop 已加载。
|
|
64
57
|
|
|
65
58
|

|
|
66
59
|
|
|
67
|
-

|
|
68
61
|
|
|
69
|
-
|
|
62
|
+
这两张截图使用相同的当前构建组件及模拟身份/额度。Models 更改全局默认,Credits 仅更改本 Session 后续 turn 的账号;不包含真实账号或账单数据。[截图来源](./docs/images/copilot-current-provenance.json)随图片一同分发。
|
|
70
63
|
|
|
71
64
|
## 安装与登录
|
|
72
65
|
|
|
@@ -83,10 +76,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
83
76
|
**独立具名 profile**:
|
|
84
77
|
|
|
85
78
|
```sh
|
|
86
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
79
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
|
|
87
80
|
```
|
|
88
81
|
|
|
89
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
82
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.132`。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
|
|
90
83
|
|
|
91
84
|
经批准 reload/restart 后:
|
|
92
85
|
|
|
@@ -96,23 +89,19 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
96
89
|
|
|
97
90
|
退出须显式操作,只删除活动账号的授权,保留其它授权与路由设置。升级保留已有原生 Copilot profile;在[显式单路由迁移](./docs/single-route-migration.md)前,仍可能存在两个分组。安装不迁移会话或默认模型。
|
|
98
91
|
|
|
99
|
-
在 **Manage →
|
|
92
|
+
在 **Manage → 账号管理**内,**切换**下拉菜单列出已保存账号,底部为**添加 GitHub 账号**。添加不会替换全局默认。设备授权期间显示验证网址、一次性授权码、**复制授权码**和**取消添加账号**;随后单独验证身份和模型。确认切换只影响后续继承默认的新 turn,不改变运行中 turn 或 Session 已指定账号。**管理已保存授权**包含**重新授权**和**移除**;移除仅影响非默认的本地已保存授权,不改变运行中 turn 锁定的账号或 GitHub 端访问。**刷新账号信息**只更新身份,不操作授权。原生路由或不完整证据阻止切换;账号缺失/失效不会自动回退。新账号可能缺少已选模型,旧加密 replay 也可能绑定原账号;不自动替换模型或删除历史。参见[账号需求](./docs/copilot-accounts.md)。
|
|
100
93
|
|
|
101
94
|
已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。准入时冻结已验证名称;缺失时针对本轮固定账号执行现有的有界、非强制查询,不阻塞模型输出,只能在同一 turn 仍运行时补齐身份。没有原生流返回就没有账号执行证据。未查到的身份仍显示不可用;不会根据当前设置补写已完成历史。证据仅在 Host 生命周期内有界保留,重启及冷历史显示未知。Credits 对身份未知的原始/已保存授权显示可读标签,不显示不透明账号 ID。
|
|
102
95
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
**全局切换等待:**Models 先显示账号元数据,再独立补齐身份名称;后台名称查询不再锁住满足路由/活动证据条件的 Switch。真正切换仍需新鲜身份和模型校验,两项并行但必须都成功,之后才能 CAS 保存并严格读回。失败会取消并收尾另一项,不自动重试;身份展示缓存不授权切换。父组件更换回调不再丢弃已确认结果,旧名称响应也不能覆盖新账号。这与 Session **Follow global default** 是不同路径,不意味着省略必要网络校验或已测得真实毫秒级提速。
|
|
106
|
-
|
|
107
|
-
`COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。授权进行中会显示为进度状态,而不是终止性 busy 错误;其它未知阻塞因素仍明确保持未知。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
|
|
96
|
+
读取已保存账号名称不必激活账号。名称在 Host 生命周期内缓存,凭据变更或验证失败会失效,也不证明授权或模型可用。全局切换需要新鲜身份/模型验证及设置持久化确认。切换被阻止时,等待授权或锁定工作结束,再**刷新账号信息**;未知路由/活动证据仍是阻塞。选择入口是下拉菜单,不是每个已保存账号旁的按钮。
|
|
108
97
|
|
|
109
98
|
**Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
|
|
110
99
|
|
|
111
100
|
## Auto 与模型偏好
|
|
112
101
|
|
|
113
|
-
**保存偏好:**Exclude/Restore 和 High cost
|
|
102
|
+
**保存偏好:**Exclude/Restore 和 High cost 即时保存,并等待设置读回确认。其它行仍可操作:最多 32 个不同行的修改显示 **Waiting…**,同时只有一个 **Saving…**。结果不明确或作用域变更时取消尚未发送的修改;**Retry** 只读取已保存设置,不重放写入。卸载后不保留队列。
|
|
114
103
|
|
|
115
|
-
**模型目录加载失败:**原生 Models 的 `llm/listProviders failed: Failed to fetch` 属于 Client 到 Host
|
|
104
|
+
**模型目录加载失败:**原生 Models 的 `llm/listProviders failed: Failed to fetch` 属于 Client 到 Host/网关的传输失败,不能证明强制 Copilot 发现。连接恢复后使用原生页面的 **Retry**;插件不以过期或空目录替代。
|
|
116
105
|
|
|
117
106
|
三档 Auto 共用账号验证、未排除的合格模型池。输入/图片能力等硬门槛先于任务偏好。
|
|
118
107
|
|
|
@@ -123,7 +112,7 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
123
112
|
| 复杂 | Powerful | Powerful | Powerful |
|
|
124
113
|
| 未知 | Versatile | Versatile | Powerful |
|
|
125
114
|
|
|
126
|
-
|
|
115
|
+
分类来自认证后的供应方元数据,不按模型名、上下文容量或臆测质量排名。在第一个可容纳输入的分类内,按前述正成本权重和有限连续性加权选择;上一模型合适也不会无条件保留。分类回退明确说明。同一已准入 turn 的工具步骤和重试保持同一真实回答模型;压缩保留独立解析的原生摘要路由。
|
|
127
116
|
|
|
128
117
|
语义判断**默认开启,仅用于本地需求未知的任务**。最多一次辅助请求,**8 秒端到端期限、128 tokens 输出预算**。可用 `github-copilot.autoSemanticAssessment: false` 关闭。超时/无效结果保留未知,再按偏好兜底,不解释为简单,也不换分类模型重试。用户取消和账号失效仍终止请求。辅助调用增加延迟与供应方费用,不计入原生回答 Usage。
|
|
129
118
|
|
|
@@ -143,6 +132,8 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
143
132
|
|
|
144
133
|

|
|
145
134
|
|
|
135
|
+
当前 alpha.130 构建的插件详情页,设置/provider 为模拟,诊断为暂停且无数据。截图没有发起搜索、采集或调用真实服务。
|
|
136
|
+
|
|
146
137
|
**Follow parent model**默认关闭,在当前 profile 内作用于托管 Copilot 父会话的受支持原生子代理/Team mate。固定父模型从子会话下一 turn 生效;Auto 父会话传递准确偏好,子会话按自己的上下文选模。子会话的显式选择优先。运行中 turn、root、fork、其它 provider、旧专用策略不被改写;关闭宽泛开关也不移除旧绑定。[父模型跟随合同](./docs/parent-model-follow.md)。
|
|
147
138
|
|
|
148
139
|
**Web search**仅有两个常规选项:主 provider 与最终 fallback。Auto 在存在对应搜索注册时跟随发起 Chat provider;固定 provider 不随 Chat 模型改变。最多尝试一个不同的最终 fallback,明确提示可能费用;取消或账号 proof 失效不授权 fallback。
|
|
@@ -179,6 +170,8 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
|
|
|
179
170
|
|
|
180
171
|
HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
|
|
181
172
|
|
|
173
|
+
原生 rc.2 Auto 授权审查始终以 `temperature: 0` 请求所选路由。对账号发现的托管 Responses 路由,插件现在只依据供应方明确的 `capabilities.supports.thinking` 事实,在插件所有的原生传输边界省略这个不受支持字段。明确为 `false` 或缺失时保留调用方设置;其它协议/provider 不变。冻结的审查请求、严格 verdict 解析、取消与失败关闭的工具拒绝均不变,也不会重试失败请求。现有 Core 所有的 canonical Copilot profile 不在此缓解范围内,因为插件不能在不接管其它 owner adapter 的情况下拦截它。
|
|
174
|
+
|
|
182
175
|
## 设置与排障
|
|
183
176
|
|
|
184
177
|
配置位于 `github-copilot`。凭据、endpoint 和静态模型目录不是插件设置。
|
|
@@ -223,7 +216,7 @@ Credits 账号面板显示当前账号和 **切换**,下拉菜单只列已有
|
|
|
223
216
|
|
|
224
217
|
## 所有权与深入阅读
|
|
225
218
|
|
|
226
|
-
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host
|
|
219
|
+
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host:`llm-pi-ai/github-copilot` 是 canonical 兼容记录;额外账号在同一 DSH 凭据服务的插件所有记录中独立授权,不复制 grant。
|
|
227
220
|
|
|
228
221
|
公开接口不能替换 Core Edit/Delete、重构平铺 picker 或把原生 Add 变成单路由强制机制。已退役的[Model roles](./docs/dual-model.md)仅保留兼容。修复须遵循[plugin-only](./AGENTS.md#plugin-only-implementation-boundary)。
|
|
229
222
|
|
|
@@ -259,14 +252,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
259
252
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
260
253
|
|
|
261
254
|
```sh
|
|
262
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
263
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
255
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/dsh-github-copilot-0.4.0-alpha.132.tgz
|
|
256
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.132/SHA256SUMS
|
|
264
257
|
sha256sum --check SHA256SUMS
|
|
265
258
|
```
|
|
266
259
|
|
|
267
260
|
```powershell
|
|
268
261
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
269
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
262
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.132.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
270
263
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
271
264
|
```
|
|
272
265
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.0-alpha.
|
|
11
|
+
"version": "0.4.0-alpha.132"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -919,6 +919,21 @@
|
|
|
919
919
|
{"file": "tests/account-model-auth.spec.ts", "name": "sanitizes credential backend failures and keeps account identity independent of token rotation"}
|
|
920
920
|
]
|
|
921
921
|
},
|
|
922
|
+
{
|
|
923
|
+
"id": "managed-auto-review-sampling-compatibility",
|
|
924
|
+
"required": true,
|
|
925
|
+
"sourceMarkers": [
|
|
926
|
+
{"file": "src/account-model-catalog.ts", "marker": "temperature: thinking === true ? 'unsupported'"},
|
|
927
|
+
{"file": "src/preview-provider.ts", "marker": "entry.temperatureCompatibility === 'unsupported'"},
|
|
928
|
+
{"file": "scripts/verify-tagged-core.mjs", "marker": "tests/fixtures/auto-review-copilot-core.fixture.ts"}
|
|
929
|
+
],
|
|
930
|
+
"tests": [
|
|
931
|
+
{"file": "tests/account-model-catalog.spec.ts", "name": "preserves explicit supplier temperature compatibility for thinking=%j"},
|
|
932
|
+
{"file": "tests/preview-provider.spec.ts", "name": "uses explicit Responses temperature compatibility without mutating frozen caller options, thinking=%j"},
|
|
933
|
+
{"file": "tests/preview-provider.spec.ts", "name": "does not change temperature on native %s when thinking is supported"},
|
|
934
|
+
{"file": "tests/fixtures/auto-review-copilot-core.fixture.ts", "name": "omits unsupported temperature without weakening the %s verdict boundary"}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
922
937
|
{
|
|
923
938
|
"id": "responses-public-reasoning-and-safe-replay-delegation",
|
|
924
939
|
"required": true,
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"clientVersion": "0.4.0-alpha.130",
|
|
3
|
+
"sourceCommit": "eb49c0c49933406d29d560e88c66469bae25e1b3",
|
|
4
|
+
"source": "Local pnpm build from the unchanged current release source; not extracted published archive bytes. Provenance accompanies packaged image assets.",
|
|
5
|
+
"builtClientSha256": "fc2c3b9a237bbb8e7f58f83152f76bd958d645e8258d6370c1320dcf8441cdf0",
|
|
6
|
+
"synthetic": true,
|
|
7
|
+
"fixture": "tests/browser/readme.html",
|
|
8
|
+
"reproduce": "pnpm build; node tests/browser/serve-search-routing.mjs; set PLAYWRIGHT_MODULE to an existing Playwright index.mjs; node tests/browser/capture-readme.mjs <printed-loopback-URL>",
|
|
9
|
+
"components": {
|
|
10
|
+
"copilot-model-preferences.png": "GitHubCopilotCompactAccount",
|
|
11
|
+
"copilot-accounts.png": "GitHubCopilotCompactAccount",
|
|
12
|
+
"copilot-accounts-credits.png": "CopilotUsageCard",
|
|
13
|
+
"copilot-search-routing.png": "CopilotPluginSettingsPage"
|
|
14
|
+
},
|
|
15
|
+
"imageSha256": {
|
|
16
|
+
"copilot-model-preferences.png": "4939f865e1c52d7a599af83cd5fe6547c3a012e1a4213134f024b00afb19f752",
|
|
17
|
+
"copilot-accounts.png": "f5b0fc126cdf8f48dadb79a9e7db74ce862310396f6549883f452e1ed9391b77",
|
|
18
|
+
"copilot-accounts-credits.png": "ab725db863334297e8a3e77c3aa38a4a0c8966519ec04b7055aed0b15e5157e6",
|
|
19
|
+
"copilot-search-routing.png": "ae9e20ecb480a517c218d70e179c8cf0680ef59b71874ef4467561c5fa81076a"
|
|
20
|
+
},
|
|
21
|
+
"capture": {
|
|
22
|
+
"browser": "Microsoft Edge 154.0.4258.62",
|
|
23
|
+
"viewports": [
|
|
24
|
+
920,
|
|
25
|
+
375
|
|
26
|
+
],
|
|
27
|
+
"themes": [
|
|
28
|
+
"dark",
|
|
29
|
+
"light"
|
|
30
|
+
],
|
|
31
|
+
"horizontalOverflow": false,
|
|
32
|
+
"pageErrors": [],
|
|
33
|
+
"externalRequests": false
|
|
34
|
+
},
|
|
35
|
+
"limits": "Actual current built Client components with synthetic settings, identities, models and quota. No live OAuth, model availability, search, billing, collection, persistence or loaded Desktop proof. Credits captures only the usage/account component, not its parent-owned continuation disclosure. Desktop images are committed; narrow/light states were checked for overflow and menu dismissal, not native Desktop integration."
|
|
36
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -14,12 +14,14 @@ Follow the [plugin-only boundary](../AGENTS.md#plugin-only-implementation-bounda
|
|
|
14
14
|
4. **One credential lifecycle.** All plugin-owned routes share the canonical Host-only Copilot OAuth record. Model discovery, refresh and in-flight requests remain bound to the same account generation. Account switches, entitlement removal, disposal and stale callbacks must fail closed without copying credentials or changing other providers.
|
|
15
15
|
5. **Thinking is included.** Preserve public summary deltas and final-only summaries without duplicate text. Validate selected effort and keep native default semantics. Empty or encrypted-only responses must not become fabricated explanations. Native replay, images and file projection retain their owning adapter's behavior; opaque replay is not displayed or rewritten into raw reasoning text.
|
|
16
16
|
6. **Current pi 0.87.1 compatibility.** The original acceptance target was 0.85.1; official DSH rc.2 now depends on `^0.87.1`. Pin and test the exact published SDK version, not just a GitHub release label. Its Copilot GPT-6 catalog protocol must not override contrary provider endpoint evidence. An updated catalog entry is not sufficient grounds to retire a correction if the protocol/capabilities are still wrong.
|
|
17
|
+
7. **Sampling compatibility follows supplier evidence.** Normalize only an explicit boolean `capabilities.supports.thinking` into supported/unsupported/unknown temperature compatibility; malformed metadata rejects the descriptor. For managed Responses only, explicit thinking support omits temperature from a new plugin-owned options object. Preserve Core's frozen request, explicit false/unknown values, other protocols/providers and the Core-owned canonical route. Never identify the native reviewer by prompt, model name or error; never retry a rejection, rewrite a verdict or change permission policy.
|
|
17
18
|
|
|
18
19
|
## Regression evidence
|
|
19
20
|
|
|
20
21
|
- Include GPT-6 Astra, Gemini 3.8 Flash and GPT-5.6 Sol Fast metadata fixtures, plus arbitrary unseen IDs on all three supported protocols. The unseen-ID cases must pass without adding those IDs to implementation tables.
|
|
21
22
|
- Cover missing/conflicting endpoints, missing/invalid limits, duplicate conflicting IDs, explicit denial, stale account snapshots, unsupported reasoning labels, unknown fields and hostile extra getters.
|
|
22
23
|
- Exercise real published adapter/SDK code against local synthetic HTTP for all supported protocols, including tools, public summaries, two-turn opaque replay, images and interruption/retry paths. Synthetic results are not claims of live account availability.
|
|
24
|
+
- The exact pinned rc.2 source trace must retain the reviewer's frozen `temperature: 0` request with no `purpose`/`sessionId`. Run that unchanged native reviewer through the managed route and real pi-ai serializer: explicit supplier thinking support omits temperature only from the Responses body without mutating caller input. Cover allow, deny, malformed verdict, HTTP error and cancellation with one wire attempt; only allow may execute the synthetic tool. Qualify the fixture against tagged source and exact published artifacts.
|
|
23
25
|
- Verify managed request-body timeout guidance only for the observed HTTP `408`, exact `user_request_timeout` code and request-body message. Bound clone reads to 8 KiB/250 ms, retain the original native response, and expose only fixed guidance plus final string-body UTF-8 bytes. Preserve failure code, retry metadata, cancellation, unchanged retry payloads and independent dispatches. Do not reclassify 408 as overflow, invent a safe byte threshold, change client timeouts, refresh OAuth, compact automatically or promise elimination of upstream failures.
|
|
24
26
|
- Verify byte-aware managed HTTP/SSE liveness through unchanged published and tagged adapters: heartbeat bytes may cross the original semantic deadline before actual output, but endless heartbeat-only output must hit the bounded native deadline. Real header/body stalls retain the original interval and a dispatch-local TIMEOUT; consumer think time, caller/credential cancellation, exact bytes, parser ownership and one native wire attempt remain unchanged. Explicit WebSocket/auto and opt-out retain native-only behavior. Preserve the 20 MiB native image budget by default; explicit smaller budgets must use native offload and retain mapped read-only paths/history, never hidden trimming or a claimed supplier threshold. These synthetic cases do not attest production heartbeat activity or cure HTTP 408.
|
|
25
27
|
- Run source/test typechecks, complete repository tests, built Host/Client/Remote smoke, archive verification, and relevant unchanged-Core compatibility fixtures. Do not suppress type or test failures to bridge incompatible SDK versions.
|
|
@@ -9,6 +9,7 @@ The sole admitted target is official [`dsh-v0.2.0-rc.2`](https://github.com/deep
|
|
|
9
9
|
| Surface | Official support / remaining gap | Decision and retirement trigger |
|
|
10
10
|
|---|---|---|
|
|
11
11
|
| Native model adapter and SDK | Published [`@deepseek-ai/dsh-llm-pi-ai@0.2.0-rc.2`](https://registry.npmjs.org/@deepseek-ai/dsh-llm-pi-ai/-/dsh-llm-pi-ai-0.2.0-rc.2.tgz) depends on pi-ai `^0.87.1`. The native SDK now passes branded `TranscriptContext` to providers, with prompt and tools folded into system messages. | **Migrate** the plugin-owned provider bridge and estimated admission to exact pi-ai `0.87.1`; count each normalized message as a lower bound even when earlier usage anchors omit changed prefixes. Retain native transport and the same stream object. Retire this bridge only when official account-scoped metadata and admission preserve these contracts. |
|
|
12
|
+
| Native Auto authorization review | rc.2 `classifyRisk` is strictly fail-closed but freezes `temperature: 0` into an unscoped public `ctx.llm.stream` request; pi-ai forwards every defined Responses temperature, while some Copilot models explicitly advertise thinking and reject temperature. | **Retain narrow plugin mitigation** on the managed account-discovered Responses route: normalize supplier `capabilities.supports.thinking` into a temperature compatibility fact and clone plugin-owned wire options with temperature omitted only when explicitly unsupported. Preserve the Core request, parser, cancellation, one attempt and nonmanaged routes. Retire when official review/adapters honor sampling compatibility without model-name rules and exact-source qualification preserves deny/malformed/error/cancel behavior. |
|
|
12
13
|
| Profile bundle patches | Public `bundlePatchPaths` accepts a bundle's string or ordered array of patches. Signed rc.2 `dsh-web-app` lists five patches, whereas the old plugin preflight accepted only one string. | **Migrate** read-only preflight to the published resolver and compose every patch in order, rejecting malformed manifests and unsupported routing. Retire only after an official installer provides equivalent fail-closed structural admission. |
|
|
13
14
|
| Models UI, authorization, Remote, Session and search | Published rc.2 package entrypoints and inspected public seams retain the rc.1 forms. The official rc.2 UI-agent-preset removes its `developerTools` injection, which this plugin does not use. | **Retain** the public Host/Client/Remote integrations and their guarded ownership. Retirement requires verified official equivalent behavior plus migration and runtime acceptance; lack of a new public seam is not evidence of complete parity. |
|
|
14
15
|
| Desktop package graph | Signed descriptor has the current shared peers; pi-ai and Zod are not shared Host packages. The bundled adapter resolves pi-ai 0.87.1 and Zod separately. | **Retain** required Host peers and Client external React; do not copy bundled dependencies or patch Core. Recheck effective profile resolution before Desktop installation because a stale profile-local Host peer may shadow the bundle. |
|