dsh-github-copilot 0.4.0-alpha.106 → 0.4.0-alpha.108
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 +6 -0
- package/CHANGELOG.md +12 -0
- package/README.md +13 -9
- package/README.zh.md +13 -9
- package/deployment-baseline.json +5 -1
- package/docs/copilot-accounts.md +17 -1
- package/docs/model-compatibility-acceptance.md +19 -4
- package/lib/client.js +394 -71
- package/lib/client.js.map +1 -1
- package/lib/index.js +11 -3
- package/lib/remote.js +5 -1
- package/lib/types/authorization-code-clipboard.d.ts +4 -0
- package/lib/types/client.d.ts +11 -3
- package/lib/types/composer-notice-style.d.ts +5 -0
- package/lib/types/copilot-accounts-card.d.ts +1 -0
- package/lib/types/copilot-accounts-remote.d.ts +1 -0
- package/lib/types/copilot-accounts-types.d.ts +1 -1
- package/lib/types/responses-replay-compat.d.ts +1 -0
- package/lib/types/session-accounts-remote.d.ts +1 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -254,6 +254,12 @@ Never say GPT-6/search works merely because settings, typecheck or a package imp
|
|
|
254
254
|
|
|
255
255
|
## Changing capabilities
|
|
256
256
|
|
|
257
|
+
Context evidence and replay recovery use the public full-width `conversation.input.dock`
|
|
258
|
+
above the composer, with shared native secondary typography. Do not restore long
|
|
259
|
+
notices to the nonwrapping statistics row or mutate its parent DOM. Scope errors
|
|
260
|
+
keep concise recovery guidance; bounded dispatch counts are separate Host diagnostics,
|
|
261
|
+
not proof of the rejected item, account-switch failure or recovery success.
|
|
262
|
+
|
|
257
263
|
Completed-turn Usage diagnostics (#259) are read-only plugin conversation data and an additive assistant-actions explanation. Official rc.2 hides its total if any attempt lacks complete accounting; the plugin's finish-only pre-dispatch pressure block can trigger this rule even after recovery. Never fabricate zero usage or replace it with successful-step partial totals. Identify local interception only from its exact recorded finish-only diagnostic, keep other missing samples and paged evidence uncertain, and suppress the explanation whenever native `tokenUsage` exists. Preserve native accounting, history, pressure and recovery; see `docs/copilot-usage.md`.
|
|
258
264
|
|
|
259
265
|
Auto task routing (#258) uses current `model_picker_category` facts, never model
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.108 (prepared)
|
|
4
|
+
|
|
5
|
+
- Align context evidence and replay recovery with native secondary typography throughout, including explanations and controls. Use the public full-width input dock above the composer instead of the non-wrapping statistics row (#315).
|
|
6
|
+
- Replace verbose replay-scope failure text with concise account/connection guidance, explicit recovery consent and a new-conversation alternative. Retain bounded sanitized dispatch counts separately in Host diagnostics; do not infer which encrypted item failed.
|
|
7
|
+
- Keep recovery default-off and lossy, with unchanged duration, expiry, native Send/Retry and stored-history semantics. No automatic replay, account reset, history deletion or Core change.
|
|
8
|
+
|
|
9
|
+
## 0.4.0-alpha.107 (prepared)
|
|
10
|
+
|
|
11
|
+
- Present an in-flight multi-account device authorization as progress with the verification URL, one-time code, copy action and cancel together; distinguish Host-confirmed post-OAuth identity/model verification from pending authorization. Adding an account never changes the global default.
|
|
12
|
+
- Keep technical account diagnostics secondary, show only supported blocker evidence, and clarify that account-information refresh is identity-only.
|
|
13
|
+
- Show turn identity only when captured for that turn and replace opaque unknown account IDs in Credits selectors with localized readable authorization labels (#313).
|
|
14
|
+
|
|
3
15
|
## 0.4.0-alpha.106 (prepared)
|
|
4
16
|
|
|
5
17
|
- 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.
|
package/README.md
CHANGED
|
@@ -17,7 +17,9 @@ Identity display accepts GitHub Enterprise Managed User names, including their u
|
|
|
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
19
|
|
|
20
|
-
|
|
20
|
+
Adding an account now keeps the device-authorization link, selectable URL, one-time code, Copy code action and Cancel together while authorization is pending. After GitHub authorizes, identity and model verification are shown as a separate phase. Adding never changes the global default; use the existing explicit **Switch** action when ready. Technical diagnostics are secondary, and account/turn identity fallbacks never expose opaque account IDs or infer historical identity from today's settings.
|
|
21
|
+
|
|
22
|
+
**Source candidate: `0.4.0-alpha.108` (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.
|
|
21
23
|
|
|
22
24
|
## What you can do
|
|
23
25
|
|
|
@@ -57,10 +59,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
57
59
|
For a **standalone named profile**:
|
|
58
60
|
|
|
59
61
|
```sh
|
|
60
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
62
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
61
63
|
```
|
|
62
64
|
|
|
63
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
65
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.108` 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.
|
|
64
66
|
|
|
65
67
|
After an approved reload/restart:
|
|
66
68
|
|
|
@@ -70,13 +72,13 @@ After an approved reload/restart:
|
|
|
70
72
|
|
|
71
73
|
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.
|
|
72
74
|
|
|
73
|
-
In **Manage → GitHub accounts**, adding an account never replaces the global default. A confirmed switch changes future inherited turns, not running turns or explicit Session overrides. **Credits → Switch account** persists a choice only for this Session's subsequent turns; **Follow global default** clears it. Explicitly choosing today's default still remains a Session override. Native-route or incomplete evidence blocks account switching. The new account may not offer your selected model, and old encrypted replay may be account-bound: no automatic model substitution or history removal occurs. **Reauthorize** renews the same saved identity; **Remove** deletes only an inactive saved authorization and cannot mutate a running turn's pinned account. Missing/revoked accounts never fall back.
|
|
75
|
+
In **Manage → GitHub accounts**, adding an account never replaces the global default. During device authorization, the card keeps the verification link and selectable URL, one-time code, **Copy authorization code**, and **Cancel adding account** together. Once authorization succeeds, the card separately verifies identity and available models; a completed addition is still not a default switch. Diagnostic codes remain in a collapsed technical-details disclosure. **Refresh account information** renews identity only; it does not complete or cancel authorization. A confirmed switch changes future inherited turns, not running turns or explicit Session overrides. **Credits → Switch account** persists a choice only for this Session's subsequent turns; **Follow global default** clears it. Explicitly choosing today's default still remains a Session override. Native-route or incomplete evidence blocks account switching. The new account may not offer your selected model, and old encrypted replay may be account-bound: no automatic model substitution or history removal occurs. **Reauthorize** renews the same saved identity; **Remove** deletes only an inactive saved authorization and cannot mutate a running turn's pinned account. Missing/revoked accounts never fall back.
|
|
74
76
|
|
|
75
|
-
Completed managed turns show **Account** beside native Usage. It records the request account, not billing or subagent totals. Evidence is bounded to the Host lifetime; restart, cold history or missing delivery displays unknown, never reconstructed from the current picker/default.
|
|
77
|
+
Completed managed turns show **Account** beside native Usage. It records the request account, not billing or subagent totals. A GitHub login is shown only if captured for that turn; otherwise identity is unavailable, never reconstructed from current settings. Evidence is bounded to the Host lifetime; restart, cold history or missing delivery displays unknown, never reconstructed from the current picker/default. Credits labels an unidentified original or saved authorization without displaying opaque account IDs.
|
|
76
78
|
|
|
77
79
|
Account eligibility reads official rc.2 SettingsForms values, without requiring the retired settings `get()` API. Missing or malformed configuration remains incomplete evidence; upgrading does not bypass native-route or activity restrictions.
|
|
78
80
|
|
|
79
|
-
`COPILOT_ACCOUNTS_BUSY` is reevaluated from current activity, not retained after work ends. Use **Refresh account information** to update the open card after relevant work settles. If only the active account is listed, first **Add GitHub account**; **Switch** appears beside another saved account.
|
|
81
|
+
`COPILOT_ACCOUNTS_BUSY` is reevaluated from current activity, not retained after work ends. The authorization-in-progress state is presented as progress rather than a terminal busy error; unrelated unknown blockers remain unknown. Use **Refresh account information** to update the open card after relevant work settles. If only the active account is listed, first **Add GitHub account**; **Switch** appears beside another saved account.
|
|
80
82
|
|
|
81
83
|
**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).
|
|
82
84
|
|
|
@@ -170,6 +172,8 @@ Configuration is under `github-copilot`. Credentials, endpoint definitions and a
|
|
|
170
172
|
| 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** appears automatically when the session's turn ends or the session opens. Review the loss of matching old encrypted items and their summaries, then authorize **Next matching turn only** (default choice) or **Continue in this session**. Both expire within one hour of the evidence and require the same validation state. Recovery itself stays off until confirmed; use native Send/Retry separately. It never rewrites history or retries automatically, and is not a 408 fix. Never reset credentials or disable TLS as an automatic repair. |
|
|
171
173
|
| Hosted search unavailable | Check account/protocol/probe diagnostics; a legacy override stays authoritative until explicitly reset |
|
|
172
174
|
|
|
175
|
+
Context evidence and Replay recovery use compact, full-width notices above the composer; 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.
|
|
176
|
+
|
|
173
177
|
## Ownership and further reading
|
|
174
178
|
|
|
175
179
|
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 under `llm-pi-ai/github-copilot`.
|
|
@@ -208,14 +212,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
208
212
|
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.
|
|
209
213
|
|
|
210
214
|
```sh
|
|
211
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
212
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
215
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
216
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
|
|
213
217
|
sha256sum --check SHA256SUMS
|
|
214
218
|
```
|
|
215
219
|
|
|
216
220
|
```powershell
|
|
217
221
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
218
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
222
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
219
223
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
220
224
|
```
|
|
221
225
|
|
package/README.zh.md
CHANGED
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
可见的 Models 和 Credits 会续期已过期身份,不会在每次挂载时强制请求:身份缓存十分钟,同账号共享请求,失败冷却三十秒。显式刷新可立即重试;额度可先于身份续期完成展示。未知或已撤销身份不会作为当前用户名展示,Session 账号隔离保持不变。参见[账号生命周期](./docs/copilot-accounts.md)。
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
|
|
19
|
+
|
|
20
|
+
**源码候选版本:`0.4.0-alpha.108`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
|
|
19
21
|
|
|
20
22
|
## 你可以做什么
|
|
21
23
|
|
|
@@ -55,10 +57,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
55
57
|
**独立具名 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.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
59
61
|
```
|
|
60
62
|
|
|
61
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
63
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.108`。官方 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 或删除配置。
|
|
62
64
|
|
|
63
65
|
经批准 reload/restart 后:
|
|
64
66
|
|
|
@@ -68,13 +70,13 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
68
70
|
|
|
69
71
|
退出须显式操作,只删除活动账号的授权,保留其它授权与路由设置。升级保留已有原生 Copilot profile;在[显式单路由迁移](./docs/single-route-migration.md)前,仍可能存在两个分组。安装不迁移会话或默认模型。
|
|
70
72
|
|
|
71
|
-
在 **Manage → GitHub accounts
|
|
73
|
+
在 **Manage → GitHub accounts**添加账号不会替换全局默认。设备授权期间,卡片会同时保留验证链接、可选择的网址、一次性授权码、**复制授权码**和**取消添加账号**。GitHub 授权成功后,卡片会单独验证身份和可用模型;完成添加仍不会切换默认账号。诊断码位于折叠的技术详情中。**刷新账号信息**只更新身份,不会完成或取消授权。确认切换只影响后续跟随默认的 turn,不影响正在运行的 turn 或 Session 已指定账号。**Credits → 切换账号**只为本 Session 后续 turn 保存选择;**跟随全局默认**清除该选择。即使显式选中的账号恰好等于全局默认,也仍是 Session 覆盖。原生路由尚存或证据不完整时会阻止账号切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非全局活动授权,正在运行 turn 锁定的授权不能修改。账号缺失/失效不会自动回退到其它账号。
|
|
72
74
|
|
|
73
|
-
已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent
|
|
75
|
+
已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。只有该 turn 捕获了 GitHub 登录名时才显示;否则身份不可用,不从当前设置反推。证据仅在 Host 生命周期内有界保留;重启、冷历史或没有原生流返回时显示未知,不从当前选择或全局默认反推历史。Credits 对身份未知的原始/已保存授权显示可读标签,不显示不透明账号 ID。
|
|
74
76
|
|
|
75
77
|
切换资格通过官方 rc.2 SettingsForms 的配置值读取,不再依赖已退役的 Settings `get()` API。缺失或无效配置仍视为证据不完整;升级不会绕过原生路由或运行中工作的限制。
|
|
76
78
|
|
|
77
|
-
`COPILOT_ACCOUNTS_BUSY`
|
|
79
|
+
`COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。授权进行中会显示为进度状态,而不是终止性 busy 错误;其它未知阻塞因素仍明确保持未知。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
|
|
78
80
|
|
|
79
81
|
**Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
|
|
80
82
|
|
|
@@ -168,6 +170,8 @@ HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手
|
|
|
168
170
|
| AUTH、Responses replay scope 或 TLS 错误 | 查看[请求诊断](./docs/model-compatibility-acceptance.md#authentication-replay-and-request-diagnostics)及[额度 TLS 边界](./docs/copilot-usage.md#account-data-boundary)。精确 scope 拒绝后,**回放恢复**会在当前轮结束或打开会话时自动提示。查看旧加密项及项内摘要的损失后,可选择**仅下一轮使用恢复**(默认选项)或**在本会话内继续使用**;两者都要求验证状态不变,最长不超过证据产生后一小时。恢复默认关闭,确认授权也不发送消息,需另行使用原生发送或重试。不改磁盘历史,也不是 408 修复。不自动重置凭据或关闭 TLS。 |
|
|
169
171
|
| Hosted search 不可用 | 检查账号/协议/probe 诊断;旧 override 保留至显式 reset |
|
|
170
172
|
|
|
173
|
+
上下文证据与回放恢复以紧凑、全宽提示纵向显示在输入框上方,原生统计不变。切换账号不会让旧加密推理自动变得可跨账号使用。简短 scope 错误指向显式恢复或新会话;有界、脱敏的请求结构计数留在 Host 诊断中,不挤占主错误。**已授权**只表示授权已准备好,不表示消息已发送或恢复已成功。
|
|
174
|
+
|
|
171
175
|
## 所有权与深入阅读
|
|
172
176
|
|
|
173
177
|
DSH Core 所有会话、工具、sandbox、附件、原生计量和其它 provider;`llm-pi-ai`所有 OAuth、token 交换/刷新和普通模型传输。插件以认证后的账号元数据组合公开适配器,受支持的新模型 ID 无需名称路由补丁。凭据仅在 Host,key 为 `llm-pi-ai/github-copilot`。
|
|
@@ -206,14 +210,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
206
210
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
207
211
|
|
|
208
212
|
```sh
|
|
209
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
210
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
213
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/dsh-github-copilot-0.4.0-alpha.108.tgz
|
|
214
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.108/SHA256SUMS
|
|
211
215
|
sha256sum --check SHA256SUMS
|
|
212
216
|
```
|
|
213
217
|
|
|
214
218
|
```powershell
|
|
215
219
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
216
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
220
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.108.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
217
221
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
218
222
|
```
|
|
219
223
|
|
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.108"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -371,12 +371,16 @@
|
|
|
371
371
|
{"file": "src/index.ts", "marker": "installContextEvidence(ctx)"},
|
|
372
372
|
{"file": "src/client.ts", "marker": "registerContextEvidenceUi"},
|
|
373
373
|
{"file": "src/context-evidence.ts", "marker": "githubCopilotContextEvidence"},
|
|
374
|
+
{"file": "src/context-evidence-ui.ts", "marker": "conversation.input.dock"},
|
|
375
|
+
{"file": "src/replay-recovery-ui.ts", "marker": "conversation.input.dock"},
|
|
376
|
+
{"file": "src/composer-notice-style.ts", "marker": "var(--dsh-content-font-size-secondary, 13px)"},
|
|
374
377
|
{"file": "docs/copilot-usage.md", "marker": "historical input sample, not current occupancy"}
|
|
375
378
|
],
|
|
376
379
|
"tests": [
|
|
377
380
|
{"file": "tests/context-usage.spec.ts", "name": "classifies zero only for separate historical evidence without changing the sample"},
|
|
378
381
|
{"file": "tests/context-evidence.spec.ts", "name": "replays failed zero samples without discarding the last valid input sample"},
|
|
379
382
|
{"file": "tests/context-evidence-ui.spec.ts", "name": "labels counts as historical rather than current occupancy in %s"},
|
|
383
|
+
{"file": "tests/replay-recovery-ui.spec.ts", "name": "uses native auxiliary typography for the entire notice and inherited controls in an independent dock row"},
|
|
380
384
|
{"file": "tests/fixtures/session-context-core.fixture.ts", "name": "cold-folds native model selections independently without replacing the controller projection"},
|
|
381
385
|
{"file": "tests/preview-route.spec.ts", "name": "forwards native SDK failed zero usage without changing the shared accounting stream"},
|
|
382
386
|
{"file": "tests/preview-route.spec.ts", "name": "preserves native cancellation usage on %s (%s input tokens)"},
|
package/docs/copilot-accounts.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
This document records the approved requirements and implementation design for
|
|
6
6
|
issues #297 and #305. Candidate behavior is not released or installed until the
|
|
7
7
|
acceptance gates below complete. The existing single-account behavior remains
|
|
8
|
-
the compatibility baseline. The current source candidate is `0.4.0-alpha.
|
|
8
|
+
the compatibility baseline. The current source candidate is `0.4.0-alpha.107`;
|
|
9
9
|
publication, installation and loaded runtime state are separate evidence.
|
|
10
10
|
|
|
11
11
|
## Requirements
|
|
@@ -122,6 +122,17 @@ overwrite or change the active account. Identity and model metadata validation
|
|
|
122
122
|
must complete before the new slot can be selected. Partial authorization is
|
|
123
123
|
reported truthfully and can be retried or explicitly removed.
|
|
124
124
|
|
|
125
|
+
The Models card keeps the GitHub verification link, selectable manual URL,
|
|
126
|
+
one-time authorization code, copy action and cancellation together while
|
|
127
|
+
device authorization is pending. A confirmed OAuth completion is followed by
|
|
128
|
+
a separately reported identity-and-model verification phase; neither phase
|
|
129
|
+
changes the global default. The Host's operation state, not a Client guess,
|
|
130
|
+
proves when that verification phase begins. Normal pending authorization is
|
|
131
|
+
progress, not a terminal busy error; technical diagnostics remain available in
|
|
132
|
+
a collapsed disclosure. Unknown blockers are not replaced with a speculative
|
|
133
|
+
list. **Refresh account information** remains an identity refresh only and
|
|
134
|
+
does not complete or cancel authorization.
|
|
135
|
+
|
|
125
136
|
Switching has a preparation phase and a commit phase:
|
|
126
137
|
|
|
127
138
|
Route eligibility reads official rc.2 SettingsForms through redacted
|
|
@@ -222,6 +233,11 @@ most 64 Sessions and 128 turns per Session. Restart, cold history, eviction or a
|
|
|
222
233
|
request with no native delivery is unknown. Failed reads are distinct from
|
|
223
234
|
unknown evidence; Retry rereads the same turn without inference. Official rc.2
|
|
224
235
|
has no ignorable account-history event seam: no new durable event is emitted.
|
|
236
|
+
Only a login captured for that turn is shown; otherwise identity is explicitly
|
|
237
|
+
unavailable, never inferred from current settings or today's account selector.
|
|
238
|
+
Credits selector labels unknown original/saved authorizations without exposing
|
|
239
|
+
opaque record identifiers; these presentation labels do not fetch identity or
|
|
240
|
+
change account selection.
|
|
225
241
|
|
|
226
242
|
Identity and quota have separate error states but must share account evidence.
|
|
227
243
|
Models account mutations invalidate mounted Credits presentation before the
|
|
@@ -81,17 +81,26 @@ exact verified scope rejection: total items, direct ID fields, reference items,
|
|
|
81
81
|
encrypted reasoning items, unrecognized items, `previous_response_id`/`store`
|
|
82
82
|
state and presence of the two native session/request headers. It observes the
|
|
83
83
|
final HTTP dispatch, not the earlier SDK payload before caller replacement.
|
|
84
|
-
Only fixed labels and counts enter the
|
|
85
|
-
|
|
84
|
+
Only fixed labels and counts enter the separate `dispatchEvidence` diagnostic
|
|
85
|
+
and Host warning; the main error stays concise and points to explicit recovery
|
|
86
|
+
or a new conversation. No IDs, header values, message text, arguments, results
|
|
87
|
+
or opaque bytes are retained. The shared
|
|
86
88
|
16 MiB/depth/work diagnostic limits apply; unavailable evidence never becomes
|
|
87
|
-
zero counts. Historical errors
|
|
89
|
+
zero counts. Historical errors are not rewritten; absence of captured evidence
|
|
90
|
+
is not zero counts.
|
|
88
91
|
Structure counts alone do not repair cross-turn scope rejection: zero direct
|
|
89
92
|
IDs does not prove encrypted replay is portable.
|
|
90
93
|
|
|
94
|
+
Switching from account A to B does not make old account/connection-bound
|
|
95
|
+
encrypted reasoning portable. An exact scope rejection is not proof that
|
|
96
|
+
sign-in failed or that a particular encrypted item was rejected. Recovery
|
|
97
|
+
is an explicitly authorized, lossy continuation, not a portability repair.
|
|
98
|
+
Starting a new conversation avoids replaying the old history.
|
|
99
|
+
|
|
91
100
|
### Explicit session replay recovery
|
|
92
101
|
|
|
93
102
|
After an exact verified managed Responses scope rejection, **Replay recovery**
|
|
94
|
-
|
|
103
|
+
above that session's composer automatically offers the failed request's old
|
|
95
104
|
encrypted items on opening the eligible session, when its native `running`
|
|
96
105
|
snapshot settles, or when its `lastAgentError` changes while idle. These public
|
|
97
106
|
Session snapshot changes trigger read-only Host evidence reads, not model calls,
|
|
@@ -99,6 +108,12 @@ history reads, new durable events or polling. Normal sessions show no notice.
|
|
|
99
108
|
Dismissal is local to the mounted model/session and evidence revision; a new
|
|
100
109
|
failure can reappear. Read errors remain distinct from missing evidence.
|
|
101
110
|
|
|
111
|
+
Context evidence and recovery use the public full-width
|
|
112
|
+
`conversation.input.dock` with shared native secondary typography for body
|
|
113
|
+
text and controls. They stack above the composer rather than squeezing into
|
|
114
|
+
its non-wrapping statistics row. Native meters, statistics and parent DOM stay
|
|
115
|
+
unchanged; authorization itself still sends no message.
|
|
116
|
+
|
|
102
117
|
Choose **Review recovery options**, then **Next matching turn only** (the
|
|
103
118
|
default choice) or **Continue in this session**, and **Accept loss and authorize**.
|
|
104
119
|
This does not send a message or retry the failed request. Use the native Send or
|