dsh-github-copilot 0.4.0-alpha.101 → 0.4.0-alpha.102
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 +5 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.102 (prepared)
|
|
4
|
+
|
|
5
|
+
- Read official rc.2 SettingsForms values without requiring the retired `get()` method, fixing an unconditional `COPILOT_ACCOUNTS_EVIDENCE_INCOMPLETE` account-switching blocker (#301).
|
|
6
|
+
- 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.
|
|
7
|
+
|
|
3
8
|
## 0.4.0-alpha.101 (prepared)
|
|
4
9
|
|
|
5
10
|
- 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.
|
|
17
|
+
**Source candidate: `0.4.0-alpha.102` (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.102/dsh-github-copilot-0.4.0-alpha.102.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.102` 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,8 @@ 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
|
+
|
|
65
67
|
**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
68
|
|
|
67
69
|
## Auto and model preferences
|
|
@@ -190,14 +192,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
190
192
|
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
193
|
|
|
192
194
|
```sh
|
|
193
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
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.102/dsh-github-copilot-0.4.0-alpha.102.tgz
|
|
196
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.102/SHA256SUMS
|
|
195
197
|
sha256sum --check SHA256SUMS
|
|
196
198
|
```
|
|
197
199
|
|
|
198
200
|
```powershell
|
|
199
201
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
200
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
202
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.102.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
201
203
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
202
204
|
```
|
|
203
205
|
|
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.102`(尚未发布)。支持宿主:官方 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.102/dsh-github-copilot-0.4.0-alpha.102.tgz
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
52
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.102`。官方 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,8 @@ 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
|
+
|
|
64
66
|
**Desktop 生命周期:**停用、移除、升级后的 Web 服务重组可能需要完整冷重启。若插件已 Off,而原生 manager 仅提示 `pending (waiting for service: web)`,不要反复切换或重装。先取得重启许可,遵循[rc.2 生命周期说明](./docs/web-lifecycle-rc2.md)。
|
|
65
67
|
|
|
66
68
|
## Auto 与模型偏好
|
|
@@ -189,14 +191,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
189
191
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
190
192
|
|
|
191
193
|
```sh
|
|
192
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
193
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
194
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.102/dsh-github-copilot-0.4.0-alpha.102.tgz
|
|
195
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.102/SHA256SUMS
|
|
194
196
|
sha256sum --check SHA256SUMS
|
|
195
197
|
```
|
|
196
198
|
|
|
197
199
|
```powershell
|
|
198
200
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
199
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
201
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.102.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
200
202
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
201
203
|
```
|
|
202
204
|
|
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.102`;
|
|
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.
|
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.102",
|
|
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;
|
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.102",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/",
|