dsh-github-copilot 0.4.0-alpha.98 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +97 -17
- package/CHANGELOG.md +217 -0
- package/CONTRIBUTING.md +9 -0
- package/README.md +108 -18
- package/README.zh.md +99 -18
- package/deployment-baseline.json +234 -8
- package/docs/account-management-experience.md +143 -0
- package/docs/auto-high-cost.md +154 -0
- package/docs/auto-iteration-review.json +22 -0
- package/docs/auto-review-sampling.md +60 -0
- package/docs/auto-task-routing.md +23 -7
- package/docs/automatic-model-routing.md +33 -5
- package/docs/copilot-accounts.md +376 -0
- package/docs/copilot-compaction.md +23 -2
- package/docs/copilot-usage.md +24 -4
- package/docs/evidence-driven-iteration.md +86 -0
- package/docs/images/copilot-accounts-credits.png +0 -0
- package/docs/images/copilot-accounts.png +0 -0
- package/docs/images/copilot-current-provenance.json +39 -0
- package/docs/images/copilot-model-preferences.png +0 -0
- package/docs/images/copilot-search-routing.png +0 -0
- package/docs/images/copilot-session-continuation.png +0 -0
- package/docs/manual-compaction-recovery.md +50 -7
- package/docs/mockups/copilot-account-dropdown.html +71 -0
- package/docs/mockups/copilot-account-management.html +393 -0
- package/docs/model-compatibility-acceptance.md +34 -16
- package/docs/official-first-020-rc2.md +1 -0
- package/docs/plugin-diagnostics.md +452 -0
- package/docs/session-continuation.md +141 -0
- package/docs/session-search-routing.md +1 -1
- package/docs/single-route-migration.md +5 -4
- package/lib/client.js +4415 -846
- package/lib/client.js.map +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 +10391 -6015
- package/lib/manual-compaction-recovery.js +163 -38
- package/lib/remote.js +593 -34
- package/lib/routed-web.js +1 -1
- package/lib/{search-routing-jzNYveyK.js → search-routing-CV2hs8as.js} +139 -139
- package/lib/types/account-dropdown.d.ts +22 -0
- package/lib/types/account-model-auth.d.ts +1 -1
- package/lib/types/authorization-code-clipboard.d.ts +4 -0
- package/lib/types/authorization-controller.d.ts +2 -0
- package/lib/types/auto-allocation-card.d.ts +9 -0
- package/lib/types/auto-allocation-evidence.d.ts +38 -0
- package/lib/types/auto-allocation.d.ts +24 -0
- package/lib/types/auto-model-host.d.ts +2 -0
- package/lib/types/auto-model-routing.d.ts +6 -2
- package/lib/types/auto-review-sampling.d.ts +6 -0
- package/lib/types/auto-task-assessment.d.ts +1 -1
- package/lib/types/auto-task-classifier.d.ts +2 -2
- package/lib/types/background-compaction.d.ts +2 -2
- package/lib/types/client.d.ts +19 -3
- package/lib/types/compaction-continuation-ui.d.ts +29 -0
- package/lib/types/compaction-continuation.d.ts +48 -0
- package/lib/types/compaction-input-estimate.d.ts +24 -0
- package/lib/types/compaction-replay.d.ts +18 -0
- package/lib/types/composer-notice-style.d.ts +7 -0
- package/lib/types/config.d.ts +42 -2
- package/lib/types/context-evidence-ui.d.ts +18 -1
- package/lib/types/context-evidence.d.ts +152 -4
- package/lib/types/copilot-account-presentation.d.ts +7 -0
- package/lib/types/copilot-accounts-card.d.ts +43 -0
- package/lib/types/copilot-accounts-host.d.ts +93 -0
- package/lib/types/copilot-accounts-remote.d.ts +85 -0
- package/lib/types/copilot-accounts-types.d.ts +43 -0
- package/lib/types/copilot-auth.d.ts +3 -1
- package/lib/types/copilot-usage-card.d.ts +23 -0
- package/lib/types/copilot-usage-host.d.ts +9 -1
- package/lib/types/copilot-usage-remote.d.ts +2 -1
- package/lib/types/copilot-usage-types.d.ts +1 -0
- package/lib/types/diagnostics-analysis-io.d.ts +23 -0
- package/lib/types/diagnostics-analysis.d.ts +295 -0
- package/lib/types/diagnostics-card.d.ts +11 -0
- package/lib/types/diagnostics-client.d.ts +13 -0
- package/lib/types/diagnostics-collector.d.ts +36 -0
- package/lib/types/diagnostics-host.d.ts +72 -0
- package/lib/types/diagnostics-remote.d.ts +109 -0
- package/lib/types/diagnostics-types.d.ts +431 -0
- package/lib/types/manual-compaction-recovery.d.ts +18 -3
- package/lib/types/model-preferences-card.d.ts +1 -1
- package/lib/types/native-settings-style.d.ts +10 -0
- package/lib/types/parent-model-follow-card.d.ts +2 -11
- package/lib/types/preview-provider.d.ts +6 -0
- package/lib/types/preview-route.d.ts +7 -5
- package/lib/types/remote.d.ts +9 -6
- package/lib/types/replay-recovery-host.d.ts +2 -2
- package/lib/types/replay-recovery-ui.d.ts +3 -1
- package/lib/types/request-body-evidence.d.ts +3 -1
- package/lib/types/responses-replay-compat.d.ts +2 -1
- package/lib/types/responses-request-compression.d.ts +33 -0
- package/lib/types/session-accounts-controller.d.ts +20 -0
- package/lib/types/session-accounts-host.d.ts +33 -0
- package/lib/types/session-accounts-remote.d.ts +114 -0
- package/lib/types/session-accounts.d.ts +38 -0
- package/lib/types/session-continuation-host.d.ts +45 -0
- package/lib/types/session-continuation-remote.d.ts +22 -0
- package/lib/types/session-continuation-types.d.ts +62 -0
- package/lib/types/session-continuation-ui.d.ts +49 -0
- package/lib/types/session-continuation.d.ts +14 -0
- package/lib/types/turn-request-models.d.ts +55 -0
- package/lib/types/turn-selection-card.d.ts +15 -1
- package/lib/types/turn-selection-host.d.ts +23 -0
- package/lib/types/turn-selection-remote.d.ts +4 -0
- package/lib/types/turn-selection.d.ts +19 -4
- package/package.json +19 -3
- package/scripts/analyze-diagnostics.mjs +91 -0
- package/scripts/iteration-review.mjs +53 -0
package/README.md
CHANGED
|
@@ -1,29 +1,79 @@
|
|
|
1
1
|
# dsh-github-copilot
|
|
2
2
|
|
|
3
3
|
[](https://github.com/cloga/dsh-github-copilot/actions/workflows/ci.yml)
|
|
4
|
-
[](https://github.com/cloga/dsh-github-copilot/releases)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|
|
|
7
7
|
**English** | [简体中文](./README.zh.md)
|
|
8
8
|
|
|
9
|
-
GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter
|
|
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
|
-
**
|
|
11
|
+
**First stable release: [`0.4.0`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** The stable version is also published on npm's `latest` dist-tag; prereleases remain on their channel tags. Stability-channel promotion does not expand the qualified host baseline or prove live account, model, search or Desktop health. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
|
|
12
12
|
|
|
13
13
|
## What you can do
|
|
14
14
|
|
|
15
|
+
**High-cost Auto:** in **Manage → Model preferences**, mark costly models with
|
|
16
|
+
**High cost**. Cost and task difficulty are independent: within the first
|
|
17
|
+
fitting category, ordinary models have weight `1`, marked models `0.2`, and the
|
|
18
|
+
previous model gets a finite `1.5×` bonus. All candidates keep a nonzero chance;
|
|
19
|
+
marking does not change fixed choices or admitted turns. This is a declared
|
|
20
|
+
policy, not a price/quality ranking or proven savings.
|
|
21
|
+
|
|
22
|
+
The existing turn selection dialog exposes **Auto allocation observations**:
|
|
23
|
+
local retained opportunities, expected shares and actual selections for this
|
|
24
|
+
Session, with a read-only JSON export. No automatic upload or durable history
|
|
25
|
+
is added; restart/eviction loses evidence. `autoAllocationEvidence: false`
|
|
26
|
+
stops future candidate capture without changing routing; previously retained
|
|
27
|
+
observations remain until disposal/eviction/restart. The auxiliary classifier
|
|
28
|
+
prefers unmarked eligible Lightweight models separately. Advisor calls are not
|
|
29
|
+
implemented. See [requirements](./docs/auto-high-cost.md) and the
|
|
30
|
+
[required iteration review](./docs/evidence-driven-iteration.md).
|
|
31
|
+
|
|
32
|
+
The [local diagnostics pilot](./docs/plugin-diagnostics.md) records bounded
|
|
33
|
+
account/Checking and compaction aggregates, **default off**. After installing
|
|
34
|
+
and loading the published build, open the plugin detail settings page →
|
|
35
|
+
**Local diagnostics → Read status → Enable local collection**. This enables
|
|
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.
|
|
51
|
+
|
|
15
52
|
| Task | Where to start |
|
|
16
53
|
|---|---|
|
|
17
54
|
| Sign in and manage account models | **Settings → Models → GitHub Copilot → Sign in** |
|
|
55
|
+
| Add or switch GitHub accounts | **Manage → Account management → Switch**; managed-only profiles |
|
|
56
|
+
| Select this Session's next-turn account | **Credits → Switch account**; saved authorizations only |
|
|
57
|
+
| Return this Session to the global default account | **Credits → Follow global default**; account selection only, not the model |
|
|
18
58
|
| Exclude or restore individual models | **Manage → Model preferences** |
|
|
19
59
|
| Choose models automatically | Pick **Auto · Balance**, **Auto · Efficiency** or **Auto · Intelligence** |
|
|
20
60
|
| Follow a parent model in supported subagents | **Plugins → dsh-github-copilot → Details → Follow parent model** |
|
|
21
61
|
| Choose primary/fallback search providers | **Plugin details → Web search** |
|
|
62
|
+
| Set the visible-history default for new Sessions | **Settings → Models → GitHub Copilot → Manage → New Session continuation default** |
|
|
63
|
+
| Enable visible-history for an existing Session | Select a managed Copilot model, open the composer **Credits/usage** pill → **Visible-history continuation** → **Session policy → On** |
|
|
22
64
|
| Read account Credits and context evidence | Copilot Session composer; native Turn Usage stays separate |
|
|
23
65
|
|
|
24
|
-

|
|
67
|
+
|
|
68
|
+
This 0.4.0 release-candidate capture uses the built Client with synthetic accounts and models. It shows the Models account controls, the expanded **New Session continuation default**, and exact-ID model preferences including High cost. The default applies only to eligible Sessions created after its policy epoch; it does not enroll existing or seeded histories. This is not live sign-in, model availability or loaded Desktop proof.
|
|
69
|
+
|
|
70
|
+

|
|
25
71
|
|
|
26
|
-
|
|
72
|
+

|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
These Credits captures use the 0.4.0 release-candidate Client and synthetic identities, quota and Session state. The account panel shows **Follow global default** for this Session's account choice; the continuation capture shows the persistent **Session policy → On** disclosure, same-account loss notice and next-turn boundary. No real account or billing data is shown; no message is sent or retried. [Capture provenance](./docs/images/copilot-current-provenance.json) accompanies the images.
|
|
27
77
|
|
|
28
78
|
## Install and sign in
|
|
29
79
|
|
|
@@ -40,10 +90,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
40
90
|
For a **standalone named profile**:
|
|
41
91
|
|
|
42
92
|
```sh
|
|
43
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
93
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/dsh-github-copilot-0.4.0.tgz
|
|
44
94
|
```
|
|
45
95
|
|
|
46
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-
|
|
96
|
+
For **Desktop**, its native package manager accepts the exact stable npm spec `dsh-github-copilot@0.4.0`; stable versions publish on npm's `latest` dist-tag. The official rc.2 **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.
|
|
47
97
|
|
|
48
98
|
After an approved reload/restart:
|
|
49
99
|
|
|
@@ -51,12 +101,22 @@ After an approved reload/restart:
|
|
|
51
101
|
2. Copy the displayed one-time code and complete GitHub's device flow in your own browser. Desktop uses its system-browser handoff; a selectable verification URL remains available if it does not open.
|
|
52
102
|
3. Wait for **Signed in** and account discovery, then choose a model. Opening Models and normal use ensure missing/stale metadata; **Manage → Refresh models** is an intentional forced refresh, not routine setup.
|
|
53
103
|
|
|
54
|
-
Sign-out requires an explicit action and removes only the
|
|
104
|
+
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.
|
|
105
|
+
|
|
106
|
+
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).
|
|
107
|
+
|
|
108
|
+
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.
|
|
109
|
+
|
|
110
|
+
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.
|
|
55
111
|
|
|
56
112
|
**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).
|
|
57
113
|
|
|
58
114
|
## Auto and model preferences
|
|
59
115
|
|
|
116
|
+
**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.
|
|
117
|
+
|
|
118
|
+
**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.
|
|
119
|
+
|
|
60
120
|
All three Auto preferences use the same account-verified, non-excluded eligible pool. Hard input/image capability checks run before soft task preferences.
|
|
61
121
|
|
|
62
122
|
| Task demand | Efficiency | Balance | Intelligence |
|
|
@@ -66,12 +126,16 @@ All three Auto preferences use the same account-verified, non-excluded eligible
|
|
|
66
126
|
| Complex | Powerful | Powerful | Powerful |
|
|
67
127
|
| Unknown | Versatile | Versatile | Powerful |
|
|
68
128
|
|
|
69
|
-
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings.
|
|
129
|
+
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.
|
|
70
130
|
|
|
71
131
|
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.
|
|
72
132
|
|
|
133
|
+
The deadline is checked against a monotonic clock at preparation, native request and result boundaries, even if the event loop delays the timer. Such delays can postpone settlement; they do not authorize late dispatch or late-result acceptance. Eligible Lightweight classifiers advertising reasoning `off` take precedence, with deterministic ID tie-breaking; the request uses `off` only if the public native model also supports it. This is not a measured speed ranking. Explanations distinguish the fitting category pool and previous-model continuity from semantic merit.
|
|
134
|
+
|
|
73
135
|
The reply's selection disclosure shows captured reasons and optional content-free auxiliary milestones. `uncertain` and `insufficient-evidence` do not mean the conversation is empty. **Selection unknown** means no retained record; **Selection unavailable → Retry** means the read failed. Retry rereads that turn, not inference. Evidence is bounded and Host-local, so restart/eviction can lose it.
|
|
74
136
|
|
|
137
|
+
When a failed/incomplete turn has no native Usage model row, the existing ⓘ opens **Turn model and selection evidence**: successful same-turn sources show **Recorded models** with incomplete failed-attempt attribution; reliable same-turn recorded request configuration shows **Requested model**, not dispatch, execution or billing proof. Missing evidence stays **Unknown**, never inferred from today's picker/default or adjacent turns. Selection reasons remain in a disclosure underneath. Complete native routes avoid repeated model UI; turns without a closing message have no existing assistant-actions entry. Native Usage and retries are unchanged. [Evidence boundaries](./docs/automatic-model-routing.md#attribution-and-explanation).
|
|
138
|
+
|
|
75
139
|
**Model exclusions** remove exact IDs from the managed picker and new Auto pools. Selected models are excludable: an admitted turn keeps its model, but a new turn/direct request cannot use an excluded ID. A fixed selection is never silently replaced. Unknown preference settings leave controls read-only, not falsely enabled. Saves use narrow native CAS without credentials, discovery or Session scans.
|
|
76
140
|
|
|
77
141
|
See [task assessment](./docs/auto-task-routing.md) and [routing contracts, exclusions and history recovery](./docs/automatic-model-routing.md).
|
|
@@ -80,11 +144,13 @@ Explicit Auto intent survives native pending-selection consumption and cold rest
|
|
|
80
144
|
|
|
81
145
|
## Subagents and search
|
|
82
146
|
|
|
83
|
-

|
|
148
|
+
|
|
149
|
+
This 0.4.0 release-candidate capture shows the built Client's parent-following switch, Web search routing and default-off local diagnostics together. Settings/providers and paused, empty diagnostics are synthetic. No search, collection or live service was invoked for the capture; see [provenance](./docs/images/copilot-current-provenance.json).
|
|
84
150
|
|
|
85
151
|
**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).
|
|
86
152
|
|
|
87
|
-
**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.
|
|
153
|
+
**Web search** has two ordinary controls in the plugin-detail page: primary provider and final fallback. Routing can be saved without Copilot sign-in or account-model discovery; the choices must be registered search providers. Saving only records routing and does not prove Copilot search capability, which is checked when a search runs. 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.
|
|
88
154
|
|
|
89
155
|
Copilot search requires current account/protocol evidence and capability proof. Fixed/fallback Copilot preserves a nonempty legacy `searchModel`; otherwise it considers at most three account-owned Responses candidates. The final user query is sent once, never replayed across those candidates. A saved choice or successful Chat request does not prove hosted search. [Search routing and composition](./docs/session-search-routing.md).
|
|
90
156
|
The legacy `github-copilot.searchFallback` setting applies only to its separate
|
|
@@ -94,20 +160,32 @@ canonical inline path; it is not a third routed fallback. Fetch is unchanged.
|
|
|
94
160
|
|
|
95
161
|
**Credits** shows validated account billing-cycle data, not context tokens or Session cost. Stale, pooled and unavailable readings keep their real meanings. The quota request alone uses Node plus system CA roots with TLS verification enabled; it does not change trust for sign-in, models, search or Desktop globally.
|
|
96
162
|
|
|
97
|
-
Native context occupancy and Turn Usage remain Core-owned. The plugin forwards usage unchanged, including zero samples on failure/cancellation.
|
|
163
|
+
Native context occupancy and Turn Usage remain Core-owned. The plugin forwards usage unchanged, including zero samples on failure/cancellation. Ordinary in-progress requests and missing new samples stay quiet; only a concrete failed-zero or invalid-sample incident opens the separate, dismissible context warning. Any retained count is labeled historical evidence, never current occupancy or a replacement percentage. **Turn Usage incomplete** explains missing samples/lifecycle and recorded local blocks; it invents neither zero usage nor partial totals. Cancellation can retain usage, but does not guarantee a final supplier receipt. [Usage boundaries](./docs/copilot-usage.md).
|
|
98
164
|
|
|
99
165
|
Owned timeout/replay errors preserve native usage before terminal failure restoration, including nonzero samples. A failed zero can still make the native ring show `0%`; this is not proof of an empty request. Retry-entry times describe backoff, not the failed request's duration. These accounting fixes do not cure supplier HTTP 408 or change retry policy.
|
|
100
166
|
|
|
101
|
-
|
|
167
|
+
Compaction planning prices model-facing content and tools, not native IDs/provenance or opaque replay envelopes, avoiding metadata-driven exhaustion of the 16-call limit. The original messages/replay remain unchanged; final native admission still checks converted input. A typed capacity fallback keeps fixed prefixes and balanced tool units, never repeats an indivisible rejected input. This is conservative planning, not provider-exact token accounting.
|
|
168
|
+
|
|
169
|
+
Managed request admission preserves truthful input/output limits and native transactions. Automatic pressure uses the initiating Agent's actual bound compaction service; a preset without an engine cannot borrow global recovery. The separately selected [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented fallback for oversized summaries or an explicit summary context-limit failure. Fitting summaries stay native; timeout/408/auth/quota failures do not trigger segmentation. Up to 16 calls may add time and charges; cancellation or incomplete recovery never commits a partial summary. `automaticRecovery: false` disables this fallback; native `auto: false` still disables automatic compaction. Installation alone does not select the engine: follow the explicit same-scope configuration migration, preserving preset/custom-engine ownership and existing policies.
|
|
102
170
|
|
|
103
171
|
For continuing steps with a committed managed route and no pending model change, known input pressure is reduced before Core opens the next model attempt. Successful native reduction avoids an unsampled local-pressure attempt that would make whole-turn Usage unavailable. First steps, pending selections, new fixed-prefix growth and final hard-budget refusals retain existing admission; this does not repair historical totals or invent missing usage.
|
|
104
172
|
|
|
173
|
+
**Visible-history continuation also covers this Session's native managed Responses compaction**, including automatic summaries: no extra manual recovery command or failure-first retry is required when enabled. Old encrypted reasoning and embedded summaries are omitted from outgoing input; hidden context may be lost. Visible messages/tool pairs and source history remain intact, and only the native transaction commits a smaller checkpoint. A composer notice identifies degradation and distinguishes committed, failed and cancelled outcomes. When off, an exact replay-scope rejection offers the same loss-disclosed enable control; unknown failures do not authorize loss. `/copilot-compact visible-history` remains a one-time alternative through the selected recovery engine. Read [recovery consent and limits](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery); this does not enable an absent engine or repair capacity, quota or timeout failures.
|
|
174
|
+
|
|
175
|
+
Compaction feedback separates **compaction completed** and **subsequent request succeeded** during the existing eight-second result window. It does not turn ordinary request progress or absence of a fresh sample into a persistent composer warning. A later concrete sampling incident can appear independently and may include a labeled historical count, but never an occupancy percentage. The plugin sends no extra test request, adds no retry and leaves the native context ring, Usage accounting and expandable compaction history unchanged. See [context evidence](./docs/copilot-usage.md#historical-context-evidence).
|
|
176
|
+
|
|
177
|
+
Running visible-history compaction notices stay visible. Confirmed success disappears eight seconds after first observation; settled failures, cancellation, unavailable status and enable prompts stay until **Close** (or the existing **Cancel**). Closing only hides this Session/operation/status notice, never changes consent, history or native proof, and never sends or retries. A bounded Client registration retains expiry/dismissal across incidental remounts and Session switches, not across teardown or eviction.
|
|
178
|
+
|
|
105
179
|
For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Image counts include native Responses tool outputs; older stored diagnostics may have counted those images as residual history. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
|
|
106
180
|
|
|
181
|
+
The experimental `github-copilot.responsesRequestCompression` option is **off by default**. When explicitly enabled, it losslessly gzips only eligible managed HTTP Responses requests through the existing native Fetch seam. It starts at 256 KiB, skips compression work above 32 MiB and requires at least 5% and 4 KiB savings; every skip sends the original request. This changes prepared HTTP body bytes, not context/token admission. Custom Fetch, explicit `auto`/WebSocket and other protocols remain native, and a gzip rejection is never automatically resent uncompressed. On a verified 408, diagnostics distinguish original JSON composition from the prepared gzip body size; neither proves delivery or cures every timeout. Installation does not enable the option.
|
|
182
|
+
|
|
107
183
|
The same failure can include request-scoped native local body-write/header milestones, negotiated TLS ALPN and a Node writable-buffer count. These are local submission observations, not kernel ACK or supplier receipt; missing events do not prove an incomplete upload. Unsupported or ambiguous transports report unavailable evidence. No request contents are logged and no connection, proxy, dispatcher or retry is changed.
|
|
108
184
|
|
|
109
185
|
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).
|
|
110
186
|
|
|
187
|
+
Native rc.2 Auto authorization review requests `temperature: 0`. The plugin now automatically omits it **only for the authenticated official Auto reviewer root on account-discovered managed OpenAI Responses**; no switch is needed. Concurrent ordinary Chat, even on the same Session/model, retains its temperature. Public Loader callback identity and same-profile package ownership authenticate the caller; unknown identity, aliases, descendants, other protocols/providers and canonical Core-owned Copilot remain native, with bounded diagnostics for unqualified reviewer scope. No capability is inferred from `supports.thinking`. Frozen inputs, native account/cancellation guards, strict verdicts and fail-closed tool denial remain intact; no retries, permission changes or settings migration occur. The independent legacy `github-copilot.responsesOmitTemperature` override remains default `false`; explicit `true` still omits temperature from **all** managed Responses requests, not just review. See [public scope and qualification limits](./docs/auto-review-sampling.md).
|
|
188
|
+
|
|
111
189
|
## Settings and troubleshooting
|
|
112
190
|
|
|
113
191
|
Configuration is under `github-copilot`. Credentials, endpoint definitions and a static model catalog are not plugin settings.
|
|
@@ -121,6 +199,8 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
|
|
|
121
199
|
| `accountModelFailureCooldownMs` | `300000` | 5min non-forcing discovery failure cooldown |
|
|
122
200
|
| `chatStreamLiveness` | `true` | Managed HTTP/SSE byte observation |
|
|
123
201
|
| `chatStreamIdleTimeoutMs` | `300000` | Byte-idle deadline; separate from search |
|
|
202
|
+
| `responsesRequestCompression` | `false` | Experimental lossless gzip for eligible managed HTTP Responses requests |
|
|
203
|
+
| `responsesOmitTemperature` | `false` | Explicitly omit temperature from every managed Responses request |
|
|
124
204
|
| `chatMaxRequestImageBytes` | `20971520` | Native 20 MiB outgoing-image budget, not a total JSON limit |
|
|
125
205
|
| `requestBudgetSafetyTokens` | `4096` | Estimated input safety allowance |
|
|
126
206
|
| `requestBudgetPressureRatio` | `0.9` | Early pressure with supported enabled recovery |
|
|
@@ -138,12 +218,22 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
|
|
|
138
218
|
| Selection unknown/unavailable | Distinguish lost evidence from read failure; Retry only rereads |
|
|
139
219
|
| Missing/cancelled Turn Usage | Read [usage limitations](./docs/copilot-usage.md); do not infer zero billing |
|
|
140
220
|
| History fails on `github-copilot/auto-model-decision` | Use [detached, check-first recovery](./docs/automatic-model-routing.md#recovering-affected-histories); never replace live history without stopped writers and approval |
|
|
141
|
-
| AUTH, Responses replay-scope or TLS failure | Review [request diagnostics](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics) and [usage TLS boundaries](./docs/copilot-usage.md#account-data-boundary). After an exact scope rejection, **Replay recovery**
|
|
221
|
+
| AUTH, Responses replay-scope or TLS failure | Review [request diagnostics](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics) and [usage TLS boundaries](./docs/copilot-usage.md#account-data-boundary). After an exact scope rejection, **Replay recovery** shows the same persistent Session continuation policy: when off, disclose loss and offer **Enable visible-history continuation** or Cancel; when already on, show diagnostic guidance without repeated authorization. No duration or next-turn-only choice. Evidence expiry does not disable the policy. Use native Retry separately; no automatic send/retry or history rewrite, and not a 408 fix. Never reset credentials or disable TLS as an automatic repair. |
|
|
142
222
|
| Hosted search unavailable | Check account/protocol/probe diagnostics; a legacy override stays authoritative until explicitly reset |
|
|
143
223
|
|
|
224
|
+
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.
|
|
225
|
+
|
|
226
|
+
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 for the account only—not the global model choice: enabling it clears this Session's account override; disabling it fixes the current account. Choosing any account also fixes it, even if it is today's default. The choice affects subsequent turns in this Session, not a running turn or another Session. 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).
|
|
227
|
+
|
|
228
|
+
[Visible-history continuation](./docs/session-continuation.md) has two controls: **Manage → New Session continuation default** sets what eligible new Sessions inherit; **Credits → Visible-history continuation → Session policy** controls the current Session. The initial default-on epoch is recorded at first successful activation. Only new, unseeded Sessions created after that epoch inherit it; existing, seeded/forked, or unknown histories are not enrolled retroactively. Changing the global default affects future Sessions only.
|
|
229
|
+
|
|
230
|
+
The name “New Session” describes default inheritance, not a one-message feature: an enabled Session policy is frozen at admission for each subsequent managed Copilot turn and also governs that Session's managed native compaction summaries. For an existing eligible Session, select the managed Copilot model, open the composer **Credits/usage** pill, expand **Visible-history continuation**, then choose **On** in **Session policy**. This control appears only for an open Session using the managed account-discovered route; it is not shown for the canonical/native route. The loss disclosure is shown before the choice. Enabling is explicit consent to omit prior encrypted reasoning and embedded summaries, even on the same account; hidden details may be lost, while visible messages, tool relations and source history remain. The policy persists across account switches and restarts until changed. It takes effect on the next turn; an already admitted turn keeps its captured policy. With continuation off, switching to a different account offers persistent enable, keep off or cancel—there is no next-turn-only choice. `/copilot-compact visible-history` is a separate one-time operation through the selected recovery engine, not the persistent Session setting. Neither path auto-sends/retries or cures quota/context limits; exact replay failures use the same persistent Session policy and require a separate native retry. The pinned Core lacks a public Models deep link, so Chat omits the nonfunctional management entry.
|
|
231
|
+
|
|
232
|
+
Context evidence and Replay recovery use compact, centered notices bounded by the native composer width. Model/item counts and status refresh live in collapsed technical details; loss consent remains explicit. Context sampling warns only for a concrete incident, can be dismissed for that Session/incident, and never asserts the native meter's current value; native statistics stay unchanged. Switching accounts does not make old encrypted reasoning portable. The concise scope error points to explicit recovery or a new conversation; bounded, sanitized dispatch counts stay in Host diagnostics, not the main error. **Authorized** means permission is ready, not that a message was sent or recovery succeeded.
|
|
233
|
+
|
|
144
234
|
## Ownership and further reading
|
|
145
235
|
|
|
146
|
-
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
|
|
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: `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.
|
|
147
237
|
|
|
148
238
|
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).
|
|
149
239
|
|
|
@@ -179,14 +269,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
179
269
|
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.
|
|
180
270
|
|
|
181
271
|
```sh
|
|
182
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
183
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
272
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/dsh-github-copilot-0.4.0.tgz
|
|
273
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/SHA256SUMS
|
|
184
274
|
sha256sum --check SHA256SUMS
|
|
185
275
|
```
|
|
186
276
|
|
|
187
277
|
```powershell
|
|
188
278
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
189
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0
|
|
279
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
190
280
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
191
281
|
```
|
|
192
282
|
|
package/README.zh.md
CHANGED
|
@@ -1,29 +1,70 @@
|
|
|
1
1
|
# dsh-github-copilot
|
|
2
2
|
|
|
3
3
|
[](https://github.com/cloga/dsh-github-copilot/actions/workflows/ci.yml)
|
|
4
|
-
[](https://github.com/cloga/dsh-github-copilot/releases)
|
|
5
5
|
[](./LICENSE)
|
|
6
6
|
|
|
7
7
|
[English](./README.md) | **简体中文**
|
|
8
8
|
|
|
9
|
-
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH
|
|
9
|
+
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器,保留 profile 全局默认账号,并支持 Session 后续 turn 指定独立账号;不修改 Core,也不维护第二套模型目录。
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
**首个稳定版:[`0.4.0`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.0)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 稳定版也发布到 npm 的 `latest` dist-tag;预发布版本仍使用各自渠道 tag。稳定渠道不扩大已验证的宿主基线,也不证明实时账号、模型、搜索或 Desktop 健康状态。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
|
|
12
12
|
|
|
13
13
|
## 你可以做什么
|
|
14
14
|
|
|
15
|
+
**高成本 Auto:**在 **Manage → Model preferences** 中用 **High cost** 标记
|
|
16
|
+
模型。成本与任务难度正交:第一个可容纳输入的同类候选池内,普通模型权重为 `1`,
|
|
17
|
+
高成本模型为 `0.2`,上一轮模型仅获得 `1.5×` 的有限加权。每个合格候选都有非零机会;
|
|
18
|
+
标记不改变手动选择或已接纳的 turn。这是路由政策,不是价格/质量排名,也不证明节省费用。
|
|
19
|
+
|
|
20
|
+
现有 turn 选择说明内提供 **Auto allocation observations**,显示当前 Session
|
|
21
|
+
保留的候选机会、预期份额与实际选择,并提供只读 JSON 导出。不自动上传,也不写入持久
|
|
22
|
+
历史;重启或淘汰会丢失观察。设置 `autoAllocationEvidence: false` 可停止后续候选
|
|
23
|
+
记录,不改变路由;此前观察保留至销毁、淘汰或重启。辅助分类器独立优先使用未标记的
|
|
24
|
+
合格 Lightweight 模型。顾问求助尚未实现。参见[完整需求](./docs/auto-high-cost.md)
|
|
25
|
+
与[强制迭代评审流程](./docs/evidence-driven-iteration.md)。
|
|
26
|
+
|
|
27
|
+
[本地诊断试点](./docs/plugin-diagnostics.md)记录有界的账号/Checking 与压缩
|
|
28
|
+
汇总,**默认关闭**。安装并加载已发布版本后,进入插件详情设置页 →
|
|
29
|
+
**Local diagnostics → Read status → Enable local collection**,开启本地持久化;
|
|
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)说明格式、边界及仅持久化证据的含义;不包含每日定时任务。
|
|
42
|
+
|
|
15
43
|
| 任务 | 入口 |
|
|
16
44
|
|---|---|
|
|
17
45
|
| 登录并管理账号模型 | **设置 → 模型 → GitHub Copilot → Sign in** |
|
|
46
|
+
| 添加/切换 GitHub 账号 | **Manage → 账号管理 → 切换**;仅限托管路由 profile |
|
|
47
|
+
| 指定本 Session 后续 turn 的账号 | **Credits → Switch account**;仅选择已保存授权 |
|
|
48
|
+
| 让本 Session 恢复跟随全局默认账号 | **Credits → Follow global default**;仅改变账号选择,不是模型 |
|
|
18
49
|
| 排除/恢复单个模型 | **Manage → Model preferences** |
|
|
19
50
|
| 自动选择模型 | 选择 **Auto · Balance / Efficiency / Intelligence** |
|
|
20
51
|
| 让受支持子代理跟随父模型 | **插件 → dsh-github-copilot → 详情 → Follow parent model** |
|
|
21
52
|
| 设置搜索主 provider 与最终 fallback | **插件详情 → Web search** |
|
|
53
|
+
| 设置新 Session 的可见历史默认 | **设置 → 模型 → GitHub Copilot → Manage → New Session continuation default** |
|
|
54
|
+
| 为已有 Session 开启可见历史续聊 | 选择托管 Copilot 模型,在输入框点 **Credits/usage** → **Visible-history continuation** → **Session policy → On** |
|
|
22
55
|
| 查看账号 Credits 与上下文证据 | Copilot 会话输入框;原生 Turn Usage 独立保留 |
|
|
23
56
|
|
|
24
|
-

|
|
25
58
|
|
|
26
|
-
|
|
59
|
+
此截图来自 0.4.0 候选版构建的 Client,账号与模型均为模拟数据。它展示 Models 账号控件、展开后的 **New Session continuation default** 以及精确 ID 模型偏好(包括 High cost)。默认值仅由策略 epoch 之后创建的合格 Session 继承,不会追溯授权已有或 seeded 历史。图片不证明真实登录、模型可用性或 Desktop 已加载。
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+

|
|
64
|
+
|
|
65
|
+

|
|
66
|
+
|
|
67
|
+
这些 Credits 截图使用 0.4.0 候选版 Client 构建,以及模拟身份、额度和 Session 状态。账号截图展示本 Session 账号选择的 **Follow global default**;续聊截图展示持久的 **Session policy → On**、同账号也适用的损失说明及下一轮边界。不含真实账号或账单数据,不会发送或重试消息。[截图来源](./docs/images/copilot-current-provenance.json)随图片一同分发。
|
|
27
68
|
|
|
28
69
|
## 安装与登录
|
|
29
70
|
|
|
@@ -40,10 +81,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
40
81
|
**独立具名 profile**:
|
|
41
82
|
|
|
42
83
|
```sh
|
|
43
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
84
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/dsh-github-copilot-0.4.0.tgz
|
|
44
85
|
```
|
|
45
86
|
|
|
46
|
-
**Desktop**
|
|
87
|
+
**Desktop** 原生包管理器接受精确稳定版 npm spec `dsh-github-copilot@0.4.0`;稳定版发布到 npm `latest` dist-tag。官方 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 或删除配置。
|
|
47
88
|
|
|
48
89
|
经批准 reload/restart 后:
|
|
49
90
|
|
|
@@ -51,12 +92,22 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
51
92
|
2. 复制一次性验证码,在自己的浏览器完成 GitHub device flow。Desktop 交给系统浏览器;未打开时仍可复制界面中的验证网址。
|
|
52
93
|
3. 等待 **Signed in** 和账号发现完成,再选择模型。打开 Models 和正常使用会确保缺失/过期元数据;**Manage → Refresh models**用于有意强制刷新,不是日常设置前提。
|
|
53
94
|
|
|
54
|
-
|
|
95
|
+
退出须显式操作,只删除活动账号的授权,保留其它授权与路由设置。升级保留已有原生 Copilot profile;在[显式单路由迁移](./docs/single-route-migration.md)前,仍可能存在两个分组。安装不迁移会话或默认模型。
|
|
96
|
+
|
|
97
|
+
在 **Manage → 账号管理**内,**切换**下拉菜单列出已保存账号,底部为**添加 GitHub 账号**。添加不会替换全局默认。设备授权期间显示验证网址、一次性授权码、**复制授权码**和**取消添加账号**;随后单独验证身份和模型。确认切换只影响后续继承默认的新 turn,不改变运行中 turn 或 Session 已指定账号。**管理已保存授权**包含**重新授权**和**移除**;移除仅影响非默认的本地已保存授权,不改变运行中 turn 锁定的账号或 GitHub 端访问。**刷新账号信息**只更新身份,不操作授权。原生路由或不完整证据阻止切换;账号缺失/失效不会自动回退。新账号可能缺少已选模型,旧加密 replay 也可能绑定原账号;不自动替换模型或删除历史。参见[账号需求](./docs/copilot-accounts.md)。
|
|
98
|
+
|
|
99
|
+
已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。准入时冻结已验证名称;缺失时针对本轮固定账号执行现有的有界、非强制查询,不阻塞模型输出,只能在同一 turn 仍运行时补齐身份。没有原生流返回就没有账号执行证据。未查到的身份仍显示不可用;不会根据当前设置补写已完成历史。证据仅在 Host 生命周期内有界保留,重启及冷历史显示未知。Credits 对身份未知的原始/已保存授权显示可读标签,不显示不透明账号 ID。
|
|
100
|
+
|
|
101
|
+
读取已保存账号名称不必激活账号。名称在 Host 生命周期内缓存,凭据变更或验证失败会失效,也不证明授权或模型可用。全局切换需要新鲜身份/模型验证及设置持久化确认。切换被阻止时,等待授权或锁定工作结束,再**刷新账号信息**;未知路由/活动证据仍是阻塞。选择入口是下拉菜单,不是每个已保存账号旁的按钮。
|
|
55
102
|
|
|
56
103
|
**Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
|
|
57
104
|
|
|
58
105
|
## Auto 与模型偏好
|
|
59
106
|
|
|
107
|
+
**保存偏好:**Exclude/Restore 和 High cost 即时保存,并等待设置读回确认。其它行仍可操作:最多 32 个不同行的修改显示 **Waiting…**,同时只有一个 **Saving…**。结果不明确或作用域变更时取消尚未发送的修改;**Retry** 只读取已保存设置,不重放写入。卸载后不保留队列。
|
|
108
|
+
|
|
109
|
+
**模型目录加载失败:**原生 Models 的 `llm/listProviders failed: Failed to fetch` 属于 Client 到 Host/网关的传输失败,不能证明强制 Copilot 发现。连接恢复后使用原生页面的 **Retry**;插件不以过期或空目录替代。
|
|
110
|
+
|
|
60
111
|
三档 Auto 共用账号验证、未排除的合格模型池。输入/图片能力等硬门槛先于任务偏好。
|
|
61
112
|
|
|
62
113
|
| 任务需求 | Efficiency | Balance | Intelligence |
|
|
@@ -66,12 +117,16 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
66
117
|
| 复杂 | Powerful | Powerful | Powerful |
|
|
67
118
|
| 未知 | Versatile | Versatile | Powerful |
|
|
68
119
|
|
|
69
|
-
|
|
120
|
+
分类来自认证后的供应方元数据,不按模型名、上下文容量或臆测质量排名。在第一个可容纳输入的分类内,按前述正成本权重和有限连续性加权选择;上一模型合适也不会无条件保留。分类回退明确说明。同一已准入 turn 的工具步骤和重试保持同一真实回答模型;压缩保留独立解析的原生摘要路由。
|
|
70
121
|
|
|
71
122
|
语义判断**默认开启,仅用于本地需求未知的任务**。最多一次辅助请求,**8 秒端到端期限、128 tokens 输出预算**。可用 `github-copilot.autoSemanticAssessment: false` 关闭。超时/无效结果保留未知,再按偏好兜底,不解释为简单,也不换分类模型重试。用户取消和账号失效仍终止请求。辅助调用增加延迟与供应方费用,不计入原生回答 Usage。
|
|
72
123
|
|
|
124
|
+
准备、原生请求和结果边界均用单调时钟检查期限,不依赖定时器及时执行。事件循环延迟可能推迟结束,但不授权超期发起请求或接受结果。合格 Lightweight 分类模型优先考虑声明 reasoning `off` 的候选,同级按 ID 确定顺序;只有公开原生模型也支持时才发送 `off`。这不是实测速率排名。解释分别说明该分类的可容纳候选数和上一模型连续性,不将保留上一模型说成语义优选。
|
|
125
|
+
|
|
73
126
|
回复的选模说明展示捕获的理由和可选的不含内容的辅助里程碑。`uncertain`、`insufficient-evidence` 不等于会话没有上下文。**Selection unknown**表示记录未保留,**Selection unavailable → Retry**表示读取失败;Retry 只重读该 turn,不重新推理。证据有界且仅限 Host 生命周期,重启/淘汰可能丢失。
|
|
74
127
|
|
|
128
|
+
失败/不完整轮次的原生 Usage 没有模型行时,沿用现有 ⓘ 打开**本轮模型与选择记录**:本轮成功消息来源显示**已记录模型**并提示失败尝试归属不完整;可靠的本轮已记录请求配置仅显示**请求模型**,不证明发送、执行或计费。缺失证据显示**未知**,不从当前选择、全局默认或相邻轮次倒推。原选模说明折叠在下方;原生完整模型记录不重复展示,没有关闭消息的轮次没有现有入口。原生 Usage 与重试保持不变。[证据边界](./docs/automatic-model-routing.md#attribution-and-explanation)。
|
|
129
|
+
|
|
75
130
|
**模型排除**将精确 ID 移出托管 picker 与新 turn 的 Auto 候选。已选模型也能排除:已准入 turn 保持原模型,但新 turn/直接调用不得使用;固定选择不会静默替换。偏好状态未知时只读,不伪装为已启用。保存采用窄范围原生 CAS,不读凭据、不发现模型、不扫描会话。
|
|
76
131
|
|
|
77
132
|
详见[任务判断](./docs/auto-task-routing.md)与[路由合同、排除和历史恢复](./docs/automatic-model-routing.md)。
|
|
@@ -80,11 +135,13 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
80
135
|
|
|
81
136
|
## 子代理与搜索
|
|
82
137
|
|
|
83
|
-

|
|
139
|
+
|
|
140
|
+
此截图来自 0.4.0 候选版构建的 Client,展示父模型跟随、Web search 路由和默认关闭的本地诊断。设置/provider 为模拟,诊断为暂停且无数据。截图没有发起搜索、采集或调用真实服务;参见[来源记录](./docs/images/copilot-current-provenance.json)。
|
|
84
141
|
|
|
85
142
|
**Follow parent model**默认关闭,在当前 profile 内作用于托管 Copilot 父会话的受支持原生子代理/Team mate。固定父模型从子会话下一 turn 生效;Auto 父会话传递准确偏好,子会话按自己的上下文选模。子会话的显式选择优先。运行中 turn、root、fork、其它 provider、旧专用策略不被改写;关闭宽泛开关也不移除旧绑定。[父模型跟随合同](./docs/parent-model-follow.md)。
|
|
86
143
|
|
|
87
|
-
**Web search
|
|
144
|
+
**Web search**位于插件详情页,仅有两个常规路由选项:主 provider 与最终 fallback。无需 Copilot 登录或发现账号模型即可保存路由,但选项必须是已注册的搜索 provider。保存只记录路由,不证明 Copilot 搜索能力;实际搜索时才检查能力。Auto 在存在对应搜索注册时跟随发起 Chat provider;固定 provider 不随 Chat 模型改变。最多尝试一个不同的最终 fallback,明确提示可能费用;取消或账号 proof 失效不授权 fallback。
|
|
88
145
|
|
|
89
146
|
Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallback Copilot 保留非空旧 `searchModel`;否则最多考虑三个账号 Responses 候选。最终用户查询只发送一次,不跨候选重放。设置保存或 Chat 成功不证明 hosted search 可用。[搜索路由与组合](./docs/session-search-routing.md)。
|
|
90
147
|
|
|
@@ -94,20 +151,32 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
|
|
|
94
151
|
|
|
95
152
|
**Credits**展示已验证账号计费周期数据,不是上下文 tokens 或会话成本。过期、组织共享及不可用数据保留真实语义。仅额度请求在保持 TLS 验签下合并 Node 与系统 CA;不改变登录、模型、搜索或整个 Desktop 的信任配置。
|
|
96
153
|
|
|
97
|
-
原生上下文占用与 Turn Usage 由 Core 所有。插件原样转发 usage
|
|
154
|
+
原生上下文占用与 Turn Usage 由 Core 所有。插件原样转发 usage,包括失败/取消时的零样本。普通请求进行中或暂时没有新采样时保持安静;只有明确的失败零采样或无效采样事件才显示可关闭的独立上下文警告。保留的计数只标记为历史证据,不推断当前占用或替代百分比。**Turn Usage incomplete**解释缺失样本/生命周期及已记录本地阻断,不编造零用量或部分总和。取消可以保留 usage,但不保证收到供应方最终回执。[用量边界](./docs/copilot-usage.md)。
|
|
98
155
|
|
|
99
156
|
插件恢复 timeout/replay 结构化错误前会保留原生 usage,包括非零采样。失败的零采样仍可能让原生圆环显示 `0%`,不代表请求上下文为空。重试条目的耗时表示退避等待,不是失败请求耗时;用量修复不等于解决供应方 HTTP 408,也不改变重试策略。
|
|
100
157
|
|
|
101
|
-
|
|
158
|
+
压缩规划只估算模型可见内容和工具,不把原生 ID/来源信息或不透明 replay 信封计入预算,避免元数据导致耗尽 16 次调用。原消息和 replay 保持不变,最终原生准入仍检查转换后的输入。明确容量错误的兜底保留固定前缀和完整工具调用组,不原样重发不可拆分的失败输入。这是保守规划,不是供应商精确 token 计量。
|
|
159
|
+
|
|
160
|
+
托管请求准入保留真实输入/输出上限和原生事务。自动压力使用发起 Agent 真正绑定的压缩服务;preset 无引擎时不能借用全局恢复。另行选用的[恢复引擎](./docs/manual-compaction-recovery.md)默认对已超限摘要或明确的摘要上下文超限错误启用自动分段兜底。能一次完成的摘要仍走原生流程;超时/408/认证/额度错误不会触发分段。最多 16 次调用可能增加耗时和费用,取消或恢复未完成不会提交半成品摘要。`automaticRecovery: false` 仅关闭自动分段,原生 `auto: false` 仍关闭自动压缩。仅安装插件不会选用该引擎:需按文档显式替换同一作用域的引擎配置,保留 preset/自定义引擎所有权及原有策略。
|
|
102
161
|
|
|
103
162
|
同一轮后续步骤已有托管路由、且没有待切换模型时,已知输入压力会在 Core 开始下次模型尝试之前压缩。原生压缩成功可避免一次无 usage 样本的本地压力拒绝导致整轮 Usage 不可用。首次步骤、待切换模型、新增固定前缀膨胀与最终硬预算拒绝仍保留原有准入;不会修复历史总量或虚构缺失用量。
|
|
104
163
|
|
|
164
|
+
**“降级续聊”也覆盖本 Session 的原生托管 Responses 压缩,包括自动摘要**:开启后不需要额外手动恢复命令,也不必先失败再重试。发出的输入省略旧加密 reasoning 及其内嵌摘要,隐藏上下文可能丢失;可见消息、工具调用/结果关系和原历史保留,仅由原生事务提交更小的检查点。输入区提示降级,并区分已提交、失败和取消。关闭时,明确的回放作用域拒绝提供同一个带损失说明的开启入口;未知错误不授权降级。`/copilot-compact visible-history` 保留为已选用恢复引擎的一次性高级入口。参见[授权与恢复限制](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery);这不启用缺失的引擎,也不修复容量、额度或超时问题。
|
|
165
|
+
|
|
166
|
+
输入区在原有八秒结果窗口内分别说明**压缩已完成**和**后续请求已成功**,不会把普通请求进度或暂时没有新采样变成常驻警告。后续明确的采样事件可独立出现,并可展示标记清楚的历史计数,但绝不推算占用百分比。插件不额外发送测试请求、不增加重试,保留原生圆环、Usage 记账及可展开的压缩历史。参见[上下文证据](./docs/copilot-usage.md#historical-context-evidence)。
|
|
167
|
+
|
|
168
|
+
可见历史压缩进行中时提示持续可见。确认成功后从首次观察起八秒自动消失;失败、取消、状态不可用和开启提示保留至手动**关闭**(或原有**取消**)。关闭仅隐藏当前 Session/操作/状态的提示,不改变授权、历史或原生证据,不发送或重试。Client 注册范围内的有界状态使临时重挂载和会话切换不会重置期限;注册销毁或记录淘汰后不保留。
|
|
169
|
+
|
|
105
170
|
严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
|
|
106
171
|
|
|
172
|
+
实验性配置 `github-copilot.responsesRequestCompression` **默认关闭**。显式开启后,仅通过现有原生 Fetch 接口对符合条件的托管 HTTP Responses 请求进行无损 gzip 编码。请求至少 256 KiB;超过 32 MiB 的压缩工作会跳过,且必须同时节省至少 5% 和 4 KiB;任何跳过都会发送原始请求。这只改变准备发送的 HTTP body 字节,不改变 context/token 准入。自定义 Fetch、显式 `auto`/WebSocket 和其他协议维持原生行为;gzip 被拒绝后绝不会自动改成未压缩请求重发。严格核验的 408 诊断会区分原始 JSON 组成字节与准备发送的 gzip body 大小;两者均不证明请求已送达,也不保证消除超时。安装不会启用此选项。
|
|
173
|
+
|
|
107
174
|
同一失败还可包含请求级原生客户端的本地请求体写入/响应头里程碑、协商出的 TLS ALPN 与 Node 写缓冲字节数。这些只是本地提交观测,不是内核 ACK 或供应方接收证明;缺失事件不代表上传未完成。不支持或存在歧义的传输会明确报告证据不可用。不记录请求内容,也不改变连接、代理、dispatcher 或重试。
|
|
108
175
|
|
|
109
176
|
HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
|
|
110
177
|
|
|
178
|
+
原生 rc.2 Auto 授权审查以 `temperature: 0` 请求模型。插件现在**仅对身份已验证的官方 Auto reviewer 根上下文、账号发现的托管 OpenAI Responses 请求自动省略此参数**,无需开启开关。同一 Session/模型的并发普通 Chat 仍保留 temperature。身份由公开 Loader 回调与同 profile 包归属共同验证;未知身份、别名、子上下文、其它协议/供应方以及 Core 所有的 canonical Copilot 保持原生行为,未验证的 reviewer 范围只报告有界诊断。不会从 `supports.thinking` 推断兼容性。冻结输入、账号/取消约束、严格 verdict 和失败关闭的工具拒绝保持不变;没有重试、权限变更或设置迁移。独立的旧兼容覆盖项 `github-copilot.responsesOmitTemperature` 仍默认 `false`;显式 `true` 才影响**所有**托管 Responses 请求,不限于 review。参见[公开范围与验证限制](./docs/auto-review-sampling.md)。
|
|
179
|
+
|
|
111
180
|
## 设置与排障
|
|
112
181
|
|
|
113
182
|
配置位于 `github-copilot`。凭据、endpoint 和静态模型目录不是插件设置。
|
|
@@ -121,6 +190,8 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
|
|
|
121
190
|
| `accountModelFailureCooldownMs` | `300000` | 非强制发现失败冷却 5min |
|
|
122
191
|
| `chatStreamLiveness` | `true` | 托管 HTTP/SSE 字节观察 |
|
|
123
192
|
| `chatStreamIdleTimeoutMs` | `300000` | 字节 idle 期限,与搜索独立 |
|
|
193
|
+
| `responsesRequestCompression` | `false` | 实验性托管 HTTP Responses 无损 gzip |
|
|
194
|
+
| `responsesOmitTemperature` | `false` | 从每个托管 Responses 请求显式省略 temperature |
|
|
124
195
|
| `chatMaxRequestImageBytes` | `20971520` | 原生 20 MiB 出站图片预算,非总 JSON 上限 |
|
|
125
196
|
| `requestBudgetSafetyTokens` | `4096` | 估算输入安全余量 |
|
|
126
197
|
| `requestBudgetPressureRatio` | `0.9` | 启用受支持恢复时的提前压力 |
|
|
@@ -138,12 +209,22 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
|
|
|
138
209
|
| 选模未知/不可读 | 区分记录丢失与读取失败;Retry 只重读 |
|
|
139
210
|
| 缺失/取消后的 Turn Usage | 查看[用量限制](./docs/copilot-usage.md),不推断零计费 |
|
|
140
211
|
| 历史加载报 `github-copilot/auto-model-decision` | 使用[独立副本、先检查的恢复](./docs/automatic-model-routing.md#recovering-affected-histories);未经批准且未停写不得替换实际历史 |
|
|
141
|
-
| AUTH、Responses replay scope 或 TLS 错误 | 查看[请求诊断](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics)及[额度 TLS 边界](./docs/copilot-usage.md#account-data-boundary)。精确 scope
|
|
212
|
+
| AUTH、Responses replay scope 或 TLS 错误 | 查看[请求诊断](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics)及[额度 TLS 边界](./docs/copilot-usage.md#account-data-boundary)。精确 scope 拒绝后,**回放恢复**使用同一个持久 Session 降级续聊策略:关闭时说明损失并提供**开启降级续聊**/取消,已开启时只显示诊断,不重复授权。不再选择授权范围或仅下一轮;失败证据过期不会关闭策略。需另行使用原生重试,不自动发送/重试、不改磁盘历史,也不是 408 修复。不自动重置凭据或关闭 TLS。 |
|
|
142
213
|
| Hosted search 不可用 | 检查账号/协议/probe 诊断;旧 override 保留至显式 reset |
|
|
143
214
|
|
|
215
|
+
账号保存确认后立即恢复控件,不等待额度读取。同账号仅改变跟随方式时保留已确认归属的额度,不重复读取;真正换账号时清除旧额度,独立加载新快照,不阻塞后续账号编辑。额度读取失败不会撤销已经确认的账号选择。
|
|
216
|
+
|
|
217
|
+
Credits 账号面板显示当前账号和 **切换**,下拉菜单只列已有账号,为当前实际账号打勾,长列表内部滚动。**跟随全局默认**是独立复选框,跟随的是全局默认**账号**,不是全局默认模型:开启时清除本 Session 的账号指定,关闭时固定当前账号;手动选择账号也会固定,即使所选恰好是当前全局默认。该选择只影响本 Session 后续 turn,不影响运行中的 turn 或其它 Session。两种操作均保持续聊确认和 revision 校验保存。添加账号只留在 Models,其 **管理** 展开账号管理与共享模型偏好,菜单底部添加账号但不自动选中,并保留重新授权与受保护的本地账号移除。两处都没有账号搜索框。按精确模型 ID 共享排除偏好,可用性仍按账号验证。参见[已确认体验与交互 mock](./docs/account-management-experience.md)。
|
|
218
|
+
|
|
219
|
+
[可见历史续聊模式](./docs/session-continuation.md)有两个控件:**Manage → New Session continuation default** 设置符合条件的新 Session 如何继承默认;**Credits → Visible-history continuation → Session policy** 控制当前 Session。首次成功激活时记录初始默认开启 epoch,只有在该 epoch 后创建的非 seeded 新 Session 才继承;已有、seeded/forked 或状态未知的历史不会追溯启用。更改全局默认只影响未来 Session。
|
|
220
|
+
|
|
221
|
+
“New Session”说的是默认继承对象,并非只处理第一条消息:启用的 Session policy 会在每个后续托管 Copilot turn 准入时冻结,并同样控制该 Session 的托管原生压缩摘要。为已有且符合条件的 Session 开启时,选择托管 Copilot 模型,点击输入框的 **Credits/usage** 控件,展开 **Visible-history continuation**,再于 **Session policy** 选择 **On**。此控件只出现在仍打开且使用托管账号发现路由的 Session;canonical/native 路由不显示。选择前可见有损说明。开启即明确同意省略旧加密推理及内嵌摘要,同账号也适用;隐藏细节可能丢失,可见消息、工具关系和原历史保留。该策略跨账号切换与重启持久保留,直到更改;从下一 turn 生效,已准入 turn 保持原先冻结的策略。关闭时切换到不同账号会提供持续开启、保持关闭或取消,没有仅下一轮模式。`/copilot-compact visible-history` 是通过已选恢复引擎执行的另一种一次性操作,不等同于持久 Session 设置。两者都不会自动发送/重试,也不解决额度或上下文超限;精确回放失败仍使用同一个持久策略,用户另行点击原生重试。当前 Core 没有公开 Models 直达 API,Chat 不展示不可用的管理入口。
|
|
222
|
+
|
|
223
|
+
上下文证据与回放恢复以紧凑、居中提示显示在输入框上方,宽度遵循原生输入框。模型、项数和状态刷新收进默认折叠的技术详情;有损恢复仍需明确确认。上下文采样只在明确事件时告警,可按 Session/事件关闭,且不会断言原生仪表当前值;原生统计不变。切换账号不会让旧加密推理自动变得可跨账号使用。简短 scope 错误指向显式恢复或新会话;有界、脱敏的请求结构计数留在 Host 诊断中,不挤占主错误。**已授权**只表示授权已准备好,不表示消息已发送或恢复已成功。
|
|
224
|
+
|
|
144
225
|
## 所有权与深入阅读
|
|
145
226
|
|
|
146
|
-
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host
|
|
227
|
+
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host:`llm-pi-ai/github-copilot` 是 canonical 兼容记录;额外账号在同一 DSH 凭据服务的插件所有记录中独立授权,不复制 grant。
|
|
147
228
|
|
|
148
229
|
公开接口不能替换 Core Edit/Delete、重构平铺 picker 或把原生 Add 变成单路由强制机制。已退役的[Model roles](./docs/dual-model.md)仅保留兼容。修复须遵循[plugin-only](./AGENTS.md#plugin-only-implementation-boundary)。
|
|
149
230
|
|
|
@@ -179,14 +260,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
179
260
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
180
261
|
|
|
181
262
|
```sh
|
|
182
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
183
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0
|
|
263
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/dsh-github-copilot-0.4.0.tgz
|
|
264
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0/SHA256SUMS
|
|
184
265
|
sha256sum --check SHA256SUMS
|
|
185
266
|
```
|
|
186
267
|
|
|
187
268
|
```powershell
|
|
188
269
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
189
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0
|
|
270
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
190
271
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
191
272
|
```
|
|
192
273
|
|