dsh-github-copilot 0.4.0-alpha.106 → 0.4.0-alpha.107

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.107 (prepared)
4
+
5
+ - 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.
6
+ - Keep technical account diagnostics secondary, show only supported blocker evidence, and clarify that account-information refresh is identity-only.
7
+ - Show turn identity only when captured for that turn and replace opaque unknown account IDs in Credits selectors with localized readable authorization labels (#313).
8
+
3
9
  ## 0.4.0-alpha.106 (prepared)
4
10
 
5
11
  - 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
- **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.
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.107` (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.106/dsh-github-copilot-0.4.0-alpha.106.tgz
62
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
61
63
  ```
62
64
 
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.
65
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.107` 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
 
@@ -208,14 +210,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
208
210
  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
211
 
210
212
  ```sh
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
213
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
214
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/SHA256SUMS
213
215
  sha256sum --check SHA256SUMS
214
216
  ```
215
217
 
216
218
  ```powershell
217
219
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
218
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.106.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
220
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.107.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
219
221
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
220
222
  ```
221
223
 
package/README.zh.md CHANGED
@@ -15,7 +15,9 @@
15
15
 
16
16
  可见的 Models 和 Credits 会续期已过期身份,不会在每次挂载时强制请求:身份缓存十分钟,同账号共享请求,失败冷却三十秒。显式刷新可立即重试;额度可先于身份续期完成展示。未知或已撤销身份不会作为当前用户名展示,Session 账号隔离保持不变。参见[账号生命周期](./docs/copilot-accounts.md)。
17
17
 
18
- **源码候选版本:`0.4.0-alpha.106`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
18
+ 添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
19
+
20
+ **源码候选版本:`0.4.0-alpha.107`(尚未发布)。支持宿主:官方 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.106/dsh-github-copilot-0.4.0-alpha.106.tgz
60
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
59
61
  ```
60
62
 
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 或删除配置。
63
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.107`。官方 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**添加账号不会替换全局默认。确认切换只影响后续跟随默认的 turn,不影响正在运行的 turn 或 Session 已指定账号。**Credits → 切换账号**只为本 Session 后续 turn 保存选择;**跟随全局默认**清除该选择。即使显式选中的账号恰好等于全局默认,也仍是 Session 覆盖。原生路由尚存或证据不完整时会阻止账号切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非全局活动授权,正在运行 turn 锁定的授权不能修改。账号缺失/失效不会自动回退到其它账号。
73
+ 在 **Manage → GitHub accounts**添加账号不会替换全局默认。设备授权期间,卡片会同时保留验证链接、可选择的网址、一次性授权码、**复制授权码**和**取消添加账号**。GitHub 授权成功后,卡片会单独验证身份和可用模型;完成添加仍不会切换默认账号。诊断码位于折叠的技术详情中。**刷新账号信息**只更新身份,不会完成或取消授权。确认切换只影响后续跟随默认的 turn,不影响正在运行的 turn 或 Session 已指定账号。**Credits → 切换账号**只为本 Session 后续 turn 保存选择;**跟随全局默认**清除该选择。即使显式选中的账号恰好等于全局默认,也仍是 Session 覆盖。原生路由尚存或证据不完整时会阻止账号切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非全局活动授权,正在运行 turn 锁定的授权不能修改。账号缺失/失效不会自动回退到其它账号。
72
74
 
73
- 已完成的托管 turn 在原生 Usage 旁显示 **Account**,记录实际请求账号,不是计费归因或子 Agent 汇总。证据仅在 Host 生命周期内有界保留;重启、冷历史或没有原生流返回时显示未知,不从当前选择或全局默认反推历史。
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` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
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
 
@@ -206,14 +208,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
206
208
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
207
209
 
208
210
  ```sh
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
211
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/dsh-github-copilot-0.4.0-alpha.107.tgz
212
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.107/SHA256SUMS
211
213
  sha256sum --check SHA256SUMS
212
214
  ```
213
215
 
214
216
  ```powershell
215
217
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
216
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.106.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
218
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.107.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
217
219
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
218
220
  ```
219
221
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.106"
11
+ "version": "0.4.0-alpha.107"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -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.104`;
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