dsh-github-copilot 0.4.0-alpha.102 → 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 +5 -0
- package/README.md +8 -6
- package/README.zh.md +8 -6
- package/deployment-baseline.json +1 -1
- package/docs/copilot-accounts.md +9 -1
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
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
|
+
|
|
3
8
|
## 0.4.0-alpha.102 (prepared)
|
|
4
9
|
|
|
5
10
|
- Read official rc.2 SettingsForms values without requiring the retired `get()` method, fixing an unconditional `COPILOT_ACCOUNTS_EVIDENCE_INCOMPLETE` account-switching blocker (#301).
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -64,6 +64,8 @@ In **Manage → GitHub accounts**, adding an account never replaces the active o
|
|
|
64
64
|
|
|
65
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
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
|
+
|
|
67
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).
|
|
68
70
|
|
|
69
71
|
## Auto and model preferences
|
|
@@ -192,14 +194,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
192
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.
|
|
193
195
|
|
|
194
196
|
```sh
|
|
195
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
196
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
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
|
|
197
199
|
sha256sum --check SHA256SUMS
|
|
198
200
|
```
|
|
199
201
|
|
|
200
202
|
```powershell
|
|
201
203
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
202
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
204
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.103.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
203
205
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
204
206
|
```
|
|
205
207
|
|
package/README.zh.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
切换入口;Credits 详情只读展示当前 GitHub 身份。
|
|
14
14
|
身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
|
|
15
15
|
|
|
16
|
-
**源码候选版本:`0.4.0-alpha.
|
|
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.
|
|
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.
|
|
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
|
|
|
@@ -63,6 +63,8 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
63
63
|
|
|
64
64
|
切换资格通过官方 rc.2 SettingsForms 的配置值读取,不再依赖已退役的 Settings `get()` API。缺失或无效配置仍视为证据不完整;升级不会绕过原生路由或运行中工作的限制。
|
|
65
65
|
|
|
66
|
+
`COPILOT_ACCOUNTS_BUSY` 根据当前活动重新判断,不会在工作结束后保留旧拒绝。相关工作结束后,点击 **Refresh account information** 更新已打开的卡片。如果只列出活动账号,需先 **Add GitHub account**;另一个已保存账号旁才会出现 **Switch**。
|
|
67
|
+
|
|
66
68
|
**Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
|
|
67
69
|
|
|
68
70
|
## Auto 与模型偏好
|
|
@@ -191,14 +193,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
191
193
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
192
194
|
|
|
193
195
|
```sh
|
|
194
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
195
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
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
|
|
196
198
|
sha256sum --check SHA256SUMS
|
|
197
199
|
```
|
|
198
200
|
|
|
199
201
|
```powershell
|
|
200
202
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
201
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
203
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.103.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
202
204
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
203
205
|
```
|
|
204
206
|
|
package/deployment-baseline.json
CHANGED
package/docs/copilot-accounts.md
CHANGED
|
@@ -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.
|
|
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
|
|
@@ -136,6 +136,14 @@ eligibility override.
|
|
|
136
136
|
5. Revoke old model, Auto, search, quota, identity and recovery evidence and
|
|
137
137
|
update the directory and UI without model/history/default writes.
|
|
138
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
|
+
|
|
139
147
|
Failed preparation leaves the old selector unchanged. A committed selector
|
|
140
148
|
followed by failed readback is reported as uncertain, never successful and
|
|
141
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.
|
|
2992
|
+
version: "0.4.0-alpha.103",
|
|
2993
2993
|
publishConfig: {
|
|
2994
2994
|
"access": "public",
|
|
2995
2995
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -3628,7 +3628,7 @@ var CopilotAccountsHost = class {
|
|
|
3628
3628
|
const current = this.selection();
|
|
3629
3629
|
if (current.accountId !== activeAccountId || current.revision !== revision) fail("COPILOT_ACCOUNTS_CHANGED");
|
|
3630
3630
|
if (activeAccountId !== "canonical" && !accounts.some((row) => row.id === activeAccountId && row.configured)) fail("COPILOT_ACCOUNTS_SELECTED_MISSING");
|
|
3631
|
-
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);
|
|
3632
3632
|
} catch (error) {
|
|
3633
3633
|
problem = diagnostic(error, "COPILOT_ACCOUNTS_CREDENTIALS_UNAVAILABLE");
|
|
3634
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.
|
|
4
|
+
"version": "0.4.0-alpha.103",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|