dsh-github-copilot 0.4.0-alpha.104 → 0.4.0-alpha.106
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 +12 -0
- package/README.md +10 -6
- package/README.zh.md +10 -6
- package/deployment-baseline.json +12 -1
- package/docs/automatic-model-routing.md +29 -4
- package/docs/copilot-accounts.md +21 -3
- package/lib/client.js +201 -28
- package/lib/client.js.map +1 -1
- package/lib/index.js +370 -94
- package/lib/remote.js +46 -0
- package/lib/types/context-evidence.d.ts +4 -4
- package/lib/types/copilot-accounts-card.d.ts +1 -0
- package/lib/types/copilot-accounts-host.d.ts +8 -0
- package/lib/types/copilot-accounts-remote.d.ts +7 -0
- package/lib/types/copilot-accounts-types.d.ts +1 -1
- package/lib/types/copilot-usage-card.d.ts +1 -1
- package/lib/types/session-accounts-controller.d.ts +2 -0
- package/lib/types/session-accounts-remote.d.ts +7 -0
- package/lib/types/turn-request-models.d.ts +55 -0
- package/lib/types/turn-selection-card.d.ts +10 -1
- package/lib/types/turn-selection-host.d.ts +2 -0
- package/lib/types/turn-selection-remote.d.ts +2 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -47,6 +47,8 @@ This repository owns eleven narrow surfaces:
|
|
|
47
47
|
|
|
48
48
|
## Approved multi-account ownership extension (#297)
|
|
49
49
|
|
|
50
|
+
Identity presentation uses additive `ensureIdentity` Remotes, including explicit-Agent Session lookup. Keep `get` metadata-only; visible surfaces may ensure on their sixty-second cadence. Fresh ten-minute cache avoids requests, same-account consumers join a bounded flight, and failures cool down thirty seconds unless explicitly refreshed. Credential notifications revoke pending work even when token bytes are unchanged; no late cache publication. Quota may settle independently only with account-coherent metadata. Presentation cache never replaces fresh identity validation for switch, reauthorization or duplicate checks. Preserve strict sanitized diagnostics and Session/turn ownership (#309).
|
|
51
|
+
|
|
50
52
|
The user approved independently authorized account records in the existing DSH credentials service. The canonical `llm-pi-ai/github-copilot` record remains unchanged as the compatibility account. Additional plugin-owned `github-copilot/account-<opaque-id>` records must be written directly by official pi-ai OAuth through public account-bound stores; never copy/move grants, refill the canonical record, introduce a separate credential storage service, patch Core, or implement another wire/catalog. Native `Models.getAuth()` and DSH `modifyRecord()` remain the refresh and serialization owners.
|
|
51
53
|
|
|
52
54
|
Settings store only the opaque global account selector and explicit `sessionAccounts` rows. Missing/invalid selectors or records fail explicitly, without another-account fallback. Models alone manages authorizations and the global default; Credits may select an already authorized account for this Session's subsequent turns or restore global inheritance (#305). An explicit choice equal to the default remains explicit. Freeze account ownership before Auto assessment and request admission, holding mutation fences until native `turn/end`/disposal; later Session/default changes never redirect running steps, retries or search. Account-local credentials, metadata, quota, proof cancellation and native adapter composition must remain isolated. Keep one public adapter/controller registration, with no second wire/catalog or Core changes. Reauthorization/removal of a pinned record stays blocked; global-default selection may continue independently.
|
|
@@ -291,7 +293,7 @@ Model preferences must survive the Client's owned-field projection before strict
|
|
|
291
293
|
|
|
292
294
|
Capture the traced `remote.githubCopilot` namespace once per account UI registration, shared by provider/footer/section renders. Native namespace property reads create fresh proxy identities; rereading during parent renders resets the mounted account controller and can block exclusion changes on redundant status/discovery work. Actual registration teardown and credential/connection invalidation retain their existing safety semantics.
|
|
293
295
|
|
|
294
|
-
Auto history compatibility (alpha.54, #204): official rc.2 `Session.append()` has no public ignorable-envelope option. Do not emit optional `github-copilot/auto-model-decision` events or borrow another event type; retain native real-model provenance and durable Auto selection without new durable decision recording. The assistant-actions selection footer reads bounded Host-lifetime decisions through native agent-scoped lookup and compatible historical events. Explicit captured fixed selection alone proves Manual; missing evidence is unknown, never reconstructed from today's picker.
|
|
296
|
+
Auto history compatibility (alpha.54, #204): official rc.2 `Session.append()` has no public ignorable-envelope option. Do not emit optional `github-copilot/auto-model-decision` events or borrow another event type; retain native real-model provenance and durable Auto selection without new durable decision recording. The assistant-actions selection footer reads bounded Host-lifetime decisions through native agent-scoped lookup and compatible historical events. Explicit captured fixed selection alone proves Manual; missing evidence is unknown, never reconstructed from today's picker. User-approved #310 permits model evidence only inside the existing selection dialog when native Usage lacks complete routes: successful same-turn assistant/message sources are Recorded models; public request/header snapshots inside a recorded same-turn open step are Requested model, never dispatch/execution/billing proof. Preserve multiple routes and incomplete failed-attempt attribution. Missing/invalid/paged evidence is unknown, read failures remain separate and Retry rereads the same Session/turn. Do not add a Model details/footer button, change native Usage/context metering or modify parent DOM; complete native routes avoid redundant model presentation. No closing message means no assistant-actions anchor. The independent bounded public Session projection refolds existing native events only, never emits events or inherits adjacent headers. `scripts/repair-auto-model-history.mjs` is explicit source-checkout maintenance, not a runtime hook: strict pinned official v4 validation, check-only by default, optional detached repaired copy plus byte-exact backup. It never replaces live history. Applying a copy requires separately approved stopped writers and a fresh source-hash check. See `docs/automatic-model-routing.md`.
|
|
295
297
|
|
|
296
298
|
Auto intent continuity (#293) uses the strict `githubCopilotAutoModelIntent` public Session projection of existing owner-explicit `model/selection` events. Execution headers cannot erase intent; fixed/other-provider choices replace it for future turns. Ignore copied fork/child prefixes, retain native pending and parent-follow precedence, and diagnose missing/invalid evidence. Freeze admitted Auto route configuration across late choices without writing history, settings or historical reasons. Projection disposal must remove only its own registration.
|
|
297
299
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.106 (prepared)
|
|
4
|
+
|
|
5
|
+
- Show truthful failed-turn model evidence inside the existing Auto/Manual info dialog, with selection reasons disclosed below (#310). Preserve successful same-turn models/providers and explicit incomplete failed-attempt attribution without changing native Usage.
|
|
6
|
+
- Add bounded public same-turn request-header evidence as Requested model, never dispatch, execution or billing proof. Missing/invalid evidence remains unknown; read-only Retry stays on the viewed Session/turn. No new footer button, durable events, history writes or entry for turns lacking a closing assistant-actions anchor.
|
|
7
|
+
|
|
8
|
+
## 0.4.0-alpha.105 (prepared)
|
|
9
|
+
|
|
10
|
+
- Renew expired account identity from visible Models and Credits through nonforcing, account-scoped ensure reads. Fresh ten-minute cache avoids requests; concurrent consumers share one bounded request and failed renewals retain a thirty-second cooldown (#309).
|
|
11
|
+
- Revoke pending identity on credential changes, selection changes and disposal, rejecting late results even when credentials retain the same bytes. Explicit account switching/reauthorization still validates fresh identity.
|
|
12
|
+
- Settle account-coherent Credits independently of slow identity renewal. Preserve Session account choices, running-turn pins, quota freshness semantics and metadata-only status reads.
|
|
13
|
+
- Add strict additive global/Session ensure Remotes and sanitized timeout, TLS, network, authentication, rate-limit and HTTP diagnostics. No authenticated provider calls, installation or restart are implied by synthetic evidence.
|
|
14
|
+
|
|
3
15
|
## 0.4.0-alpha.104 (prepared)
|
|
4
16
|
|
|
5
17
|
- Select an already authorized account inside Credits for this Session's subsequent turns, or follow the Models global default. Explicit same-as-default choices remain overrides; running turns keep their frozen account (#305).
|
package/README.md
CHANGED
|
@@ -15,7 +15,9 @@ Inside **Credits**, choose a saved account for this Session's subsequent turns o
|
|
|
15
15
|
restore **Follow global default**. Running turns retain their original account.
|
|
16
16
|
Identity display accepts GitHub Enterprise Managed User names, including their underscore-separated enterprise suffixes.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Visible Models and Credits renew expired identity without forcing fresh reads on every mount: ten-minute identity cache, shared per-account requests and a thirty-second failure cooldown. Explicit refresh retries immediately; quota can settle while identity renews. Unknown or revoked identity is never shown as current, and Session account isolation is unchanged. See [account lifecycle](./docs/copilot-accounts.md).
|
|
19
|
+
|
|
20
|
+
**Source candidate: `0.4.0-alpha.106` (unreleased). 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. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
|
|
19
21
|
|
|
20
22
|
## What you can do
|
|
21
23
|
|
|
@@ -55,10 +57,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
55
57
|
For a **standalone named profile**:
|
|
56
58
|
|
|
57
59
|
```sh
|
|
58
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
60
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/dsh-github-copilot-0.4.0-alpha.106.tgz
|
|
59
61
|
```
|
|
60
62
|
|
|
61
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
63
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.106` 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.
|
|
62
64
|
|
|
63
65
|
After an approved reload/restart:
|
|
64
66
|
|
|
@@ -97,6 +99,8 @@ The deadline is checked against a monotonic clock at preparation, native request
|
|
|
97
99
|
|
|
98
100
|
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.
|
|
99
101
|
|
|
102
|
+
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).
|
|
103
|
+
|
|
100
104
|
**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.
|
|
101
105
|
|
|
102
106
|
See [task assessment](./docs/auto-task-routing.md) and [routing contracts, exclusions and history recovery](./docs/automatic-model-routing.md).
|
|
@@ -204,14 +208,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
204
208
|
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.
|
|
205
209
|
|
|
206
210
|
```sh
|
|
207
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
208
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
211
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/dsh-github-copilot-0.4.0-alpha.106.tgz
|
|
212
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/SHA256SUMS
|
|
209
213
|
sha256sum --check SHA256SUMS
|
|
210
214
|
```
|
|
211
215
|
|
|
212
216
|
```powershell
|
|
213
217
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
214
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
218
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.106.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
215
219
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
216
220
|
```
|
|
217
221
|
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
在 Credits 内选择本 Session 后续 turn 的账号,或恢复跟随全局默认;正在运行的 turn 保持原账号。
|
|
14
14
|
身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
可见的 Models 和 Credits 会续期已过期身份,不会在每次挂载时强制请求:身份缓存十分钟,同账号共享请求,失败冷却三十秒。显式刷新可立即重试;额度可先于身份续期完成展示。未知或已撤销身份不会作为当前用户名展示,Session 账号隔离保持不变。参见[账号生命周期](./docs/copilot-accounts.md)。
|
|
17
|
+
|
|
18
|
+
**源码候选版本:`0.4.0-alpha.106`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
|
|
17
19
|
|
|
18
20
|
## 你可以做什么
|
|
19
21
|
|
|
@@ -53,10 +55,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
53
55
|
**独立具名 profile**:
|
|
54
56
|
|
|
55
57
|
```sh
|
|
56
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
58
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/dsh-github-copilot-0.4.0-alpha.106.tgz
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
61
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.106`。官方 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 或删除配置。
|
|
60
62
|
|
|
61
63
|
经批准 reload/restart 后:
|
|
62
64
|
|
|
@@ -95,6 +97,8 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
95
97
|
|
|
96
98
|
回复的选模说明展示捕获的理由和可选的不含内容的辅助里程碑。`uncertain`、`insufficient-evidence` 不等于会话没有上下文。**Selection unknown**表示记录未保留,**Selection unavailable → Retry**表示读取失败;Retry 只重读该 turn,不重新推理。证据有界且仅限 Host 生命周期,重启/淘汰可能丢失。
|
|
97
99
|
|
|
100
|
+
失败/不完整轮次的原生 Usage 没有模型行时,沿用现有 ⓘ 打开**本轮模型与选择记录**:本轮成功消息来源显示**已记录模型**并提示失败尝试归属不完整;可靠的本轮已记录请求配置仅显示**请求模型**,不证明发送、执行或计费。缺失证据显示**未知**,不从当前选择、全局默认或相邻轮次倒推。原选模说明折叠在下方;原生完整模型记录不重复展示,没有关闭消息的轮次没有现有入口。原生 Usage 与重试保持不变。[证据边界](./docs/automatic-model-routing.md#attribution-and-explanation)。
|
|
101
|
+
|
|
98
102
|
**模型排除**将精确 ID 移出托管 picker 与新 turn 的 Auto 候选。已选模型也能排除:已准入 turn 保持原模型,但新 turn/直接调用不得使用;固定选择不会静默替换。偏好状态未知时只读,不伪装为已启用。保存采用窄范围原生 CAS,不读凭据、不发现模型、不扫描会话。
|
|
99
103
|
|
|
100
104
|
详见[任务判断](./docs/auto-task-routing.md)与[路由合同、排除和历史恢复](./docs/automatic-model-routing.md)。
|
|
@@ -202,14 +206,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
202
206
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
203
207
|
|
|
204
208
|
```sh
|
|
205
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
206
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
209
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/dsh-github-copilot-0.4.0-alpha.106.tgz
|
|
210
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.106/SHA256SUMS
|
|
207
211
|
sha256sum --check SHA256SUMS
|
|
208
212
|
```
|
|
209
213
|
|
|
210
214
|
```powershell
|
|
211
215
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
212
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
216
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.106.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
213
217
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
214
218
|
```
|
|
215
219
|
|
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.106"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -315,6 +315,7 @@
|
|
|
315
315
|
"evidenceScope": "synthetic-public-services-native-adapter-and-ui-not-live-oauth-or-provider-access",
|
|
316
316
|
"activation": "managed-only-explicit-account-selector",
|
|
317
317
|
"sourceMarkers": [
|
|
318
|
+
{"file": "src/copilot-accounts-host.ts", "marker": "async ensureIdentityFor(accountId: string)"},
|
|
318
319
|
{"file": "AGENTS.md", "marker": "Approved multi-account ownership extension (#297)"},
|
|
319
320
|
{"file": "src/remote.ts", "marker": "...copilotAccountsRemote.descriptors"},
|
|
320
321
|
{"file": "src/copilot-accounts-card.ts", "marker": "removeAccount(accountId: string, expectedRevision: number)"},
|
|
@@ -322,6 +323,8 @@
|
|
|
322
323
|
{"file": "docs/copilot-accounts.md", "marker": "A mutable active-account lookup inside each store method is forbidden"}
|
|
323
324
|
],
|
|
324
325
|
"tests": [
|
|
326
|
+
{"file": "tests/copilot-identity-refresh.spec.ts", "name": "renews expired identity once for account %s without changing metadata-only reads"},
|
|
327
|
+
{"file": "tests/copilot-usage-card.spec.ts", "name": "settles quota before a slow identity renewal and uses nonforcing ensure on visible refresh cadence"},
|
|
325
328
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "never writes a captured A refresh into B after an external selection change"},
|
|
326
329
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "preserves uncertain commit ahead of missing-slot recovery"},
|
|
327
330
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "rechecks externally started canonical authorization before selector CAS"},
|
|
@@ -1214,6 +1217,11 @@
|
|
|
1214
1217
|
{"file": "src/auto-model-presentation.ts", "marker": "installAutoModelProjections"},
|
|
1215
1218
|
{"file": "src/auto-model-presentation.ts", "marker": "turnModelProvenanceDefinition"},
|
|
1216
1219
|
{"file": "src/turn-model-provenance.ts", "marker": "assistant/message"},
|
|
1220
|
+
{"file": "src/turn-request-models.ts", "marker": "stateVersion: 1"},
|
|
1221
|
+
{"file": "src/turn-request-models.ts", "marker": "active.step === null"},
|
|
1222
|
+
{"file": "src/turn-selection-card.ts", "marker": "Turn model and selection evidence"},
|
|
1223
|
+
{"file": "src/turn-selection-card.ts", "marker": "Recorded models"},
|
|
1224
|
+
{"file": "src/turn-selection-remote.ts", "marker": "RequestedModelsSchema"},
|
|
1217
1225
|
{"file": "src/turn-selection-card.ts", "marker": "Selection unknown"},
|
|
1218
1226
|
{"file": "src/turn-selection-remote.ts", "marker": "lookup: 'agent'"},
|
|
1219
1227
|
{"file": "src/turn-selection-host.ts", "marker": "extends TypertRemoteService"},
|
|
@@ -1250,6 +1258,9 @@
|
|
|
1250
1258
|
{"file": "tests/client.spec.ts", "name": "registers and disposes Auto actions while the optional conversation fiber remains pending"},
|
|
1251
1259
|
{"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders retained Auto evidence without optional projections through native %s and slots"},
|
|
1252
1260
|
{"file": "tests/turn-model-provenance.spec.ts", "name": "retains known models around zero-usage failed attempts without reading payloads"},
|
|
1261
|
+
{"file": "tests/turn-request-models.spec.ts", "name": "captures only headers inside a recorded step, never inherits adjacent or current selections"},
|
|
1262
|
+
{"file": "tests/turn-request-models-runtime.spec.ts", "name": "cold-folds same-turn requested models through the native public registry without changing events"},
|
|
1263
|
+
{"file": "tests/turn-selection-card.spec.ts", "name": "keeps model evidence first inside the existing dialog with multiple routes and overflow (%s)"},
|
|
1253
1264
|
{"file": "tests/preview-route.spec.ts", "name": "publishes Auto as a virtual picker entry but refuses unresolved adapter dispatch"},
|
|
1254
1265
|
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "shrinks durable history and rebuilds the switched model request without sending the oversized original"}
|
|
1255
1266
|
]
|
|
@@ -90,9 +90,33 @@ successful read has no record. Failed reads show **Selection unavailable → Ret
|
|
|
90
90
|
Retry rereads the same Session/turn; it never runs inference.
|
|
91
91
|
|
|
92
92
|
The public assistant-actions slot adds the plugin item after native Usage/time.
|
|
93
|
-
It cannot change the native fixed-height parent row
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
It cannot change the native fixed-height parent row and adds no Model details
|
|
94
|
+
or footer button. The existing info dialog is **Turn model and selection evidence**.
|
|
95
|
+
When native Usage lacks complete model routes, model evidence comes first and the
|
|
96
|
+
original selection explanation remains in a collapsed disclosure below:
|
|
97
|
+
|
|
98
|
+
- **Recorded models** lists independent successful same-turn `assistant/message`
|
|
99
|
+
sources, preserving multiple models/providers. Failed attempts, retries and
|
|
100
|
+
paged/missing history retain an explicit incomplete-attribution warning; known
|
|
101
|
+
sources do not prove which models every failed attempt used.
|
|
102
|
+
- **Requested model** is the fallback when no successful source exists. An
|
|
103
|
+
independent public Session projection folds native `turn/start`, `step/start`,
|
|
104
|
+
`request/header`, `step/end` and `turn/end`; only headers inside a recorded open
|
|
105
|
+
step bind to that turn. Native headers have no turn field and are not emitted
|
|
106
|
+
for every unchanged request. Therefore absent headers stay unknown, never
|
|
107
|
+
inherited from an earlier turn or today's `Session.requestHeader()`. Configuration
|
|
108
|
+
proves neither dispatch nor execution, usage or billing.
|
|
109
|
+
- Missing/invalid evidence stays **Unknown**. Requested-model read failures are
|
|
110
|
+
distinct from missing evidence and have same-Session/turn read-only Retry.
|
|
111
|
+
Selection mode and model evidence remain independent.
|
|
112
|
+
|
|
113
|
+
Complete native Usage routes avoid redundant model presentation. A turn without
|
|
114
|
+
a closing message has no assistant-actions anchor; pure failed turns without one
|
|
115
|
+
are not promised an injected entry. Optional conversation projections do not
|
|
116
|
+
control selection mounting. The request projection has its own `stateVersion: 1`,
|
|
117
|
+
retains at most 128 turns and 32 distinct routes per turn (overflow invalidates
|
|
118
|
+
that turn), and stores no message/tool/replay/credential content. Cold folding
|
|
119
|
+
uses existing recorded events only, not custom events or history conversion.
|
|
96
120
|
|
|
97
121
|
The bounded Host store retains 64 Agents and 128 turns per Agent. Disposal,
|
|
98
122
|
eviction and restart lose new records. Compatible historical Auto events remain
|
|
@@ -103,7 +127,8 @@ official rc.2 `Session.append()` has no public ignorable-envelope option.
|
|
|
103
127
|
`TurnSelectionController` extends public `TypertRemoteService` with `@Remote get`.
|
|
104
128
|
Client calls carry explicit viewed Session ID and turn, with no automatic
|
|
105
129
|
Client scope projection that would remove the ID. Native Host Agent lookup,
|
|
106
|
-
access checks and strict codecs remain.
|
|
130
|
+
access checks and strict codecs remain. Additive `requestedModels` preserves the
|
|
131
|
+
existing `get` descriptor and strict selection codec unchanged. Actual Client/Host gateway regressions
|
|
107
132
|
cover reachability, bound contexts and missing/denied identities; mock RPC
|
|
108
133
|
success is not sufficient evidence.
|
|
109
134
|
|
package/docs/copilot-accounts.md
CHANGED
|
@@ -200,7 +200,7 @@ These images render the actual candidate components with synthetic accounts
|
|
|
200
200
|
and quota in an isolated browser. They are not real authorization, supplier
|
|
201
201
|
availability or loaded Desktop evidence.
|
|
202
202
|
|
|
203
|
-
The separate `githubCopilotAccounts` namespace exposes `get`,
|
|
203
|
+
The separate `githubCopilotAccounts` namespace exposes `get`, `ensureIdentity`,
|
|
204
204
|
`refreshIdentity`, `add`, `cancel`, `switchAccount`, `reauthorize` and
|
|
205
205
|
`removeAccount`. Existing Remote descriptors are retained. The removal method
|
|
206
206
|
cannot be named `remove`: official rc.2 reserves that inherited service name
|
|
@@ -231,8 +231,26 @@ identity, grants or quota between surfaces. Failed reads never restore the
|
|
|
231
231
|
previous username as current.
|
|
232
232
|
Missing quota is not zero; pooled, stale, request-based and credit-based
|
|
233
233
|
snapshots retain their distinct meanings. Do not claim cross-app aggregation
|
|
234
|
-
or relabel request counts as AI credits.
|
|
235
|
-
|
|
234
|
+
or relabel request counts as AI credits.
|
|
235
|
+
|
|
236
|
+
Visible Models and Credits surfaces ensure identity on mount, visibility return
|
|
237
|
+
and their sixty-second display cadence. `get` and `viewForAccount` remain
|
|
238
|
+
metadata-only. Nonforcing ensure reuses a fresh ten-minute identity, joins
|
|
239
|
+
same-account in-flight work and observes a thirty-second failure cooldown;
|
|
240
|
+
explicit **Refresh account information** bypasses cooldown but joins active
|
|
241
|
+
work. There is no render-driven request loop or background polling after
|
|
242
|
+
unmount. Credential changes revoke identity and pending work; cancelled or
|
|
243
|
+
expired identity is never shown as current. Session ensure retains explicit
|
|
244
|
+
Agent lookup and rechecks account selection before returning.
|
|
245
|
+
|
|
246
|
+
Quota settles independently of identity renewal only after account-coherent
|
|
247
|
+
metadata checks. Identity failures cannot turn account quota into zero or
|
|
248
|
+
discard an otherwise valid same-account reading. Sanitized diagnostics separate
|
|
249
|
+
timeout, certificate, network, auth rejection, rate limiting and other HTTP
|
|
250
|
+
failures; no raw response/error text or credentials enter the Remote. These
|
|
251
|
+
diagnostics do not establish the cause of earlier screenshots or prove live
|
|
252
|
+
supplier health. Account switching, duplicate checks and reauthorization still
|
|
253
|
+
require fresh authenticated identity validation, not the presentation cache.
|
|
236
254
|
|
|
237
255
|
## Acceptance gates
|
|
238
256
|
|