dsh-github-copilot 0.4.0-alpha.101 → 0.4.0-alpha.103

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,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.103 (prepared)
4
+
5
+ - Reevaluate transient account BUSY failures from current leases, authorization and managed Agent activity on status reads instead of retaining a stale rejection after work ends (#303).
6
+ - Keep active work blocked and preserve missing evidence, native-route restrictions and uncertain-commit errors. Status recovery does not refresh credentials, authorize another account, switch models or write settings/history.
7
+
8
+ ## 0.4.0-alpha.102 (prepared)
9
+
10
+ - Read official rc.2 SettingsForms values without requiring the retired `get()` method, fixing an unconditional `COPILOT_ACCOUNTS_EVIDENCE_INCOMPLETE` account-switching blocker (#301).
11
+ - Exercise the production route diagnostic in native account persistence and restart coverage. Preserve unknown-evidence rejection, managed-only eligibility, activity fencing, target validation and selector CAS; no credentials, history, model-selection or Core changes.
12
+
3
13
  ## 0.4.0-alpha.101 (prepared)
4
14
 
5
15
  - Accept GitHub Enterprise Managed User login names, including underscore-separated enterprise suffixes and setup admin names, in both Host identity normalization and strict Client Remote decoding. Keep bounded JSON, numeric identity, credentials and account-switching safeguards unchanged.
package/README.md CHANGED
@@ -14,7 +14,7 @@ independent official authorizations in the existing credentials service.
14
14
  Credits details show the current GitHub identity read-only.
15
15
  Identity display accepts GitHub Enterprise Managed User names, including their underscore-separated enterprise suffixes.
16
16
 
17
- **Source candidate: `0.4.0-alpha.101` (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.
17
+ **Source candidate: `0.4.0-alpha.103` (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.
18
18
 
19
19
  ## What you can do
20
20
 
@@ -47,10 +47,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
47
47
  For a **standalone named profile**:
48
48
 
49
49
  ```sh
50
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/dsh-github-copilot-0.4.0-alpha.101.tgz
50
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/dsh-github-copilot-0.4.0-alpha.103.tgz
51
51
  ```
52
52
 
53
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.101` 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.
53
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.103` 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.
54
54
 
55
55
  After an approved reload/restart:
56
56
 
@@ -62,6 +62,10 @@ Sign-out requires an explicit action and removes only the active account's autho
62
62
 
63
63
  In **Manage → GitHub accounts**, adding an account never replaces the active one. A confirmed switch applies profile-wide to subsequent managed requests; relevant active work and native-route or incomplete evidence block it. 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. Missing/revoked accounts never fall back to another account.
64
64
 
65
+ 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.
66
+
67
+ `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.
68
+
65
69
  **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).
66
70
 
67
71
  ## Auto and model preferences
@@ -190,14 +194,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
190
194
  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.
191
195
 
192
196
  ```sh
193
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/dsh-github-copilot-0.4.0-alpha.101.tgz
194
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/SHA256SUMS
197
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/dsh-github-copilot-0.4.0-alpha.103.tgz
198
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/SHA256SUMS
195
199
  sha256sum --check SHA256SUMS
196
200
  ```
197
201
 
198
202
  ```powershell
199
203
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
200
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.101.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
204
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.103.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
201
205
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
202
206
  ```
203
207
 
package/README.zh.md CHANGED
@@ -13,7 +13,7 @@
13
13
  切换入口;Credits 详情只读展示当前 GitHub 身份。
14
14
  身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
15
15
 
16
- **源码候选版本:`0.4.0-alpha.101`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
16
+ **源码候选版本:`0.4.0-alpha.103`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
17
17
 
18
18
  ## 你可以做什么
19
19
 
@@ -46,10 +46,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
46
46
  **独立具名 profile**:
47
47
 
48
48
  ```sh
49
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/dsh-github-copilot-0.4.0-alpha.101.tgz
49
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/dsh-github-copilot-0.4.0-alpha.103.tgz
50
50
  ```
51
51
 
52
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.101`。官方 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 或删除配置。
52
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.103`。官方 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 或删除配置。
53
53
 
54
54
  经批准 reload/restart 后:
55
55
 
@@ -61,6 +61,10 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
61
61
 
62
62
  在 **Manage → GitHub accounts**添加账号不会替换活动账号。确认切换后,当前 profile 的后续托管请求使用新账号;相关工作仍在运行、原生路由尚存或证据不完整时会阻止切换。新账号可能没有已选模型,旧加密 replay 也可能绑定原账号;不会自动替换模型或删除历史。**Reauthorize**仅更新同一已存身份的授权;**Remove**仅删除非活动授权。账号缺失/失效不会自动回退到其它账号。
63
63
 
64
+ 切换资格通过官方 rc.2 SettingsForms 的配置值读取,不再依赖已退役的 Settings `get()` API。缺失或无效配置仍视为证据不完整;升级不会绕过原生路由或运行中工作的限制。
65
+
66
+ `COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
67
+
64
68
  **Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
65
69
 
66
70
  ## Auto 与模型偏好
@@ -189,14 +193,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
189
193
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
190
194
 
191
195
  ```sh
192
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/dsh-github-copilot-0.4.0-alpha.101.tgz
193
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.101/SHA256SUMS
196
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/dsh-github-copilot-0.4.0-alpha.103.tgz
197
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.103/SHA256SUMS
194
198
  sha256sum --check SHA256SUMS
195
199
  ```
196
200
 
197
201
  ```powershell
198
202
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
199
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.101.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
203
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.103.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
200
204
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
201
205
  ```
202
206
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.101"
11
+ "version": "0.4.0-alpha.103"
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
  issue #297. Multi-account 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.101`;
8
+ the compatibility baseline. The current source candidate is `0.4.0-alpha.103`;
9
9
  publication, installation and loaded runtime state are separate evidence.
10
10
 
11
11
  ## Requirements
@@ -119,6 +119,14 @@ reported truthfully and can be retried or explicitly removed.
119
119
 
120
120
  Switching has a preparation phase and a commit phase:
121
121
 
122
+ Route eligibility reads official rc.2 SettingsForms through redacted
123
+ `describe()` values and revision-bearing namespaces; it does not require the
124
+ retired `get()` method. Missing or malformed configuration still means
125
+ incomplete evidence, not an absent native route. The legacy reader remains
126
+ available for retained compatibility fixtures. Account persistence acceptance
127
+ uses real SettingsForms and the production route diagnostic, without an
128
+ eligibility override.
129
+
122
130
  1. Capture the selector revision and verify managed-only route eligibility.
123
131
  2. Validate target identity, refresh authorization as needed and check account
124
132
  model metadata without publishing it as the active account.
@@ -128,6 +136,14 @@ Switching has a preparation phase and a commit phase:
128
136
  5. Revoke old model, Auto, search, quota, identity and recovery evidence and
129
137
  update the directory and UI without model/history/default writes.
130
138
 
139
+ `COPILOT_ACCOUNTS_BUSY` is transient: each account status read reevaluates
140
+ current managed Agent activity, operation leases and authorization. A rejected
141
+ switch must not remain busy after that work settles. Reading status does not
142
+ refresh credentials or retry the rejected switch. In Models, use **Refresh
143
+ account information** after work ends to update the mounted view. With only
144
+ one saved account, first use **Add GitHub account**; a **Switch** control is
145
+ shown only for another saved account. No running work is cancelled for this.
146
+
131
147
  Failed preparation leaves the old selector unchanged. A committed selector
132
148
  followed by failed readback is reported as uncertain, never successful and
133
149
  never automatically rolled back. Cross-process/external mutations are guarded
package/lib/index.js CHANGED
@@ -2989,7 +2989,7 @@ function createAccountProvider(descriptors, guard, baseURL) {
2989
2989
  var package_default = {
2990
2990
  name: "dsh-github-copilot",
2991
2991
  description: "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
2992
- version: "0.4.0-alpha.101",
2992
+ version: "0.4.0-alpha.103",
2993
2993
  publishConfig: {
2994
2994
  "access": "public",
2995
2995
  "registry": "https://registry.npmjs.org/",
@@ -3282,11 +3282,7 @@ function migrationStatus(ctx) {
3282
3282
  const agents = api(ctx, "agents", ["list"]);
3283
3283
  const projections = api(ctx, "sessionProjections", ["stateOf"]);
3284
3284
  const defaults = api(ctx, "agentDefaultModel", ["currentSelection"]);
3285
- const settings = api(ctx, "settings", [
3286
- "describe",
3287
- "get",
3288
- "mutate"
3289
- ]);
3285
+ const settings = api(ctx, "settings", ["describe", "mutate"]);
3290
3286
  const llm = api(ctx, "llm", ["listProviders"]);
3291
3287
  result.capabilities.agentsList = agents !== void 0;
3292
3288
  result.capabilities.sessionProjections = projections !== void 0;
@@ -3342,15 +3338,17 @@ function migrationStatus(ctx) {
3342
3338
  if (settings) try {
3343
3339
  const descriptors = array(call(settings, "describe", { redactSecrets: true }));
3344
3340
  const found = /* @__PURE__ */ new Set();
3341
+ let providerConfig;
3345
3342
  for (const value of descriptors) {
3346
3343
  const descriptor = object$5(value);
3347
3344
  const ns = text$1(descriptor.ns);
3348
3345
  if (ns !== "llm-pi-ai" && ns !== "github-copilot") continue;
3349
3346
  if (found.has(ns) || !Number.isSafeInteger(descriptor.revision) || descriptor.revision < 0) throw new Error("Invalid settings evidence");
3350
3347
  found.add(ns);
3348
+ if (ns === "llm-pi-ai") providerConfig = descriptor.value;
3351
3349
  }
3352
3350
  if (found.size !== 2) throw new Error("Unregistered settings");
3353
- const config = object$5(call(settings, "get", "llm-pi-ai"));
3351
+ const config = object$5(typeof settings.get === "function" ? call(settings, "get", "llm-pi-ai") : providerConfig);
3354
3352
  const profile = (config.providers === void 0 ? void 0 : object$5(config.providers))?.[GITHUB_COPILOT_PROVIDER_ID];
3355
3353
  if (profile !== void 0) object$5(profile);
3356
3354
  result.capabilities.settingsCas = true;
@@ -3630,7 +3628,7 @@ var CopilotAccountsHost = class {
3630
3628
  const current = this.selection();
3631
3629
  if (current.accountId !== activeAccountId || current.revision !== revision) fail("COPILOT_ACCOUNTS_CHANGED");
3632
3630
  if (activeAccountId !== "canonical" && !accounts.some((row) => row.id === activeAccountId && row.configured)) fail("COPILOT_ACCOUNTS_SELECTED_MISSING");
3633
- problem = this.lastFailure ?? this.routeDiagnostic();
3631
+ problem = (this.lastFailure === "COPILOT_ACCOUNTS_BUSY" ? void 0 : this.lastFailure) ?? this.routeDiagnostic() ?? (this.busy() ? "COPILOT_ACCOUNTS_BUSY" : void 0);
3634
3632
  } catch (error) {
3635
3633
  problem = diagnostic(error, "COPILOT_ACCOUNTS_CREDENTIALS_UNAVAILABLE");
3636
3634
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.0-alpha.101",
4
+ "version": "0.4.0-alpha.103",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",