dsh-github-copilot 0.4.0-alpha.111 → 0.4.0-alpha.112
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 +6 -0
- package/README.md +8 -6
- package/README.zh.md +8 -6
- package/deployment-baseline.json +2 -1
- package/docs/account-management-experience.md +7 -0
- package/lib/client.js +3 -3
- package/lib/client.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0-alpha.112 (prepared)
|
|
4
|
+
|
|
5
|
+
- Back the shared Models/Chat account dropdown's translucent native menu token with opaque Canvas. Underlying settings and quota text no longer bleed through in dark mode (#324).
|
|
6
|
+
- Replace CanvasText-based dropdown and Credits shadows with restrained dark elevation in both themes. Preserve account routing, confirmation, continuation consent, keyboard navigation and viewport bounds.
|
|
7
|
+
- Add theme regressions covering opacity and elevation; document translucent-token acceptance. No Core changes, live installation or restart.
|
|
8
|
+
|
|
3
9
|
## 0.4.0-alpha.111 (prepared)
|
|
4
10
|
|
|
5
11
|
- Retain verified saved-account display names beyond the ten-minute revalidation interval in bounded Host memory. Models and Session Credits resolve missing inactive account names without switching accounts; credential changes, removal and failed verification still invalidate names (#322).
|
package/README.md
CHANGED
|
@@ -15,11 +15,13 @@ Inside **Credits**, choose a saved account for this Session's subsequent turns o
|
|
|
15
15
|
restore **Follow global default**. Running turns retain their original account.
|
|
16
16
|
Identity display accepts GitHub Enterprise Managed User names, including their underscore-separated enterprise suffixes.
|
|
17
17
|
|
|
18
|
+
Models and Chat share an opaque, theme-aware account dropdown; translucent native menu tokens cannot reveal underlying controls or quota text. Both use restrained dark elevation in light and dark mode.
|
|
19
|
+
|
|
18
20
|
Visible Models and Credits resolve missing names for saved accounts without activating them. Verified names remain cached for the Host lifetime, including inactive accounts; the ten-minute freshness interval governs revalidation, not name display. Credential changes, removal and failed identity verification invalidate names. Shared per-account requests and a thirty-second failure cooldown remain; explicit refresh retries immediately. Names do not prove authorization or model access. See [account lifecycle](./docs/copilot-accounts.md).
|
|
19
21
|
|
|
20
22
|
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
23
|
|
|
22
|
-
**Source candidate: `0.4.0-alpha.
|
|
24
|
+
**Source candidate: `0.4.0-alpha.112` (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.
|
|
23
25
|
|
|
24
26
|
## What you can do
|
|
25
27
|
|
|
@@ -59,10 +61,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
59
61
|
For a **standalone named profile**:
|
|
60
62
|
|
|
61
63
|
```sh
|
|
62
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
64
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.112/dsh-github-copilot-0.4.0-alpha.112.tgz
|
|
63
65
|
```
|
|
64
66
|
|
|
65
|
-
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.
|
|
67
|
+
For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.112` 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.
|
|
66
68
|
|
|
67
69
|
After an approved reload/restart:
|
|
68
70
|
|
|
@@ -216,14 +218,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
216
218
|
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.
|
|
217
219
|
|
|
218
220
|
```sh
|
|
219
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
220
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
221
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.112/dsh-github-copilot-0.4.0-alpha.112.tgz
|
|
222
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.112/SHA256SUMS
|
|
221
223
|
sha256sum --check SHA256SUMS
|
|
222
224
|
```
|
|
223
225
|
|
|
224
226
|
```powershell
|
|
225
227
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
226
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
228
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.112.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
227
229
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
228
230
|
```
|
|
229
231
|
|
package/README.zh.md
CHANGED
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
在 Credits 内选择本 Session 后续 turn 的账号,或恢复跟随全局默认;正在运行的 turn 保持原账号。
|
|
14
14
|
身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
|
|
15
15
|
|
|
16
|
+
Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜单 token 即使半透明,也不会透出底下的按钮或额度文字。明暗主题均使用克制的深色投影,不产生白色光晕。
|
|
17
|
+
|
|
16
18
|
可见的 Models 和 Credits 会补齐已保存账号缺失的名称,不需要先激活账号。已验证名称在 Host 生命周期内缓存,未激活账号也会保留;十分钟是重新验证的间隔,不是名字的显示期限。凭据变更、账号移除及身份验证失败会使名称失效。同账号共享请求、失败冷却三十秒,显式刷新可立即重试。名称不能证明授权有效或模型可用。参见[账号生命周期](./docs/copilot-accounts.md)。
|
|
17
19
|
|
|
18
20
|
添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
|
|
19
21
|
|
|
20
|
-
**源码候选版本:`0.4.0-alpha.
|
|
22
|
+
**源码候选版本:`0.4.0-alpha.112`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
|
|
21
23
|
|
|
22
24
|
## 你可以做什么
|
|
23
25
|
|
|
@@ -57,10 +59,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
57
59
|
**独立具名 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.112/dsh-github-copilot-0.4.0-alpha.112.tgz
|
|
61
63
|
```
|
|
62
64
|
|
|
63
|
-
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.
|
|
65
|
+
**Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.112`。官方 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 或删除配置。
|
|
64
66
|
|
|
65
67
|
经批准 reload/restart 后:
|
|
66
68
|
|
|
@@ -214,14 +216,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
214
216
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
215
217
|
|
|
216
218
|
```sh
|
|
217
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
218
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.
|
|
219
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.112/dsh-github-copilot-0.4.0-alpha.112.tgz
|
|
220
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.112/SHA256SUMS
|
|
219
221
|
sha256sum --check SHA256SUMS
|
|
220
222
|
```
|
|
221
223
|
|
|
222
224
|
```powershell
|
|
223
225
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
224
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.
|
|
226
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.112.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
225
227
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
226
228
|
```
|
|
227
229
|
|
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.112"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -326,6 +326,7 @@
|
|
|
326
326
|
"tests": [
|
|
327
327
|
{"file": "tests/copilot-identity-refresh.spec.ts", "name": "renews expired identity once for account %s without changing metadata-only reads"},
|
|
328
328
|
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "hydrates saved inactive names without activating them, then reuses them"},
|
|
329
|
+
{"file": "tests/account-dropdown.spec.ts", "name": "backs translucent native menu tokens with opaque Canvas and uses a dark elevation shadow"},
|
|
329
330
|
{"file": "tests/copilot-account-identity-cache.spec.ts", "name": "retains inactive verified names after freshness expiry without reads or network in status"},
|
|
330
331
|
{"file": "tests/copilot-usage-card.spec.ts", "name": "settles quota before a slow identity renewal and uses nonforcing ensure on visible refresh cadence"},
|
|
331
332
|
{"file": "tests/fixtures/copilot-accounts-host-core.fixture.ts", "name": "never writes a captured A refresh into B after an external selection change"},
|
|
@@ -99,6 +99,13 @@ light popup backgrounds with dark-theme white text. Dropdowns and long account l
|
|
|
99
99
|
must remain keyboard-operable, bounded and usable on narrow viewports. Explicit
|
|
100
100
|
loading, unknown, stale, failed-save and cancellation states are required.
|
|
101
101
|
|
|
102
|
+
The shared Models/Chat account dropdown must composite translucent native menu
|
|
103
|
+
tokens over an opaque system Canvas, so underlying settings and quota text never
|
|
104
|
+
bleed through. Dropdown and Credits panel elevation uses a dark shadow, not
|
|
105
|
+
CanvasText (which becomes a white glow in dark mode). Theme acceptance must
|
|
106
|
+
include translucent tokens, both themes/surfaces and narrow viewports; fixtures
|
|
107
|
+
that replace the token with opaque Canvas alone cannot establish this behavior.
|
|
108
|
+
|
|
102
109
|
## Implementation status
|
|
103
110
|
|
|
104
111
|
This document records the approved target, not a release or runtime attestation.
|
package/lib/client.js
CHANGED
|
@@ -8635,11 +8635,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
8635
8635
|
padding: 5,
|
|
8636
8636
|
border: "1px solid var(--dsw-alias-border-main, GrayText)",
|
|
8637
8637
|
borderRadius: 10,
|
|
8638
|
-
background: "var(--dsw-specific-menu, Canvas)",
|
|
8638
|
+
background: "linear-gradient(var(--dsw-specific-menu, Canvas), var(--dsw-specific-menu, Canvas)), Canvas",
|
|
8639
8639
|
color: "var(--dsw-alias-label-primary, CanvasText)",
|
|
8640
8640
|
colorScheme: "inherit",
|
|
8641
8641
|
font: "inherit",
|
|
8642
|
-
boxShadow: "0 10px 28px
|
|
8642
|
+
boxShadow: "0 10px 28px rgb(0 0 0 / 24%)"
|
|
8643
8643
|
},
|
|
8644
8644
|
onKeyDown: (event) => {
|
|
8645
8645
|
const buttons = Array.from(menu.current?.querySelectorAll("button:not(:disabled)") ?? []);
|
|
@@ -9883,7 +9883,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
9883
9883
|
background: "linear-gradient(var(--dsw-specific-menu, Canvas), var(--dsw-specific-menu, Canvas)), Canvas",
|
|
9884
9884
|
fontFamily: "var(--dsw-font-family, inherit)",
|
|
9885
9885
|
fontSize: 13,
|
|
9886
|
-
boxShadow: "0 8px 32px
|
|
9886
|
+
boxShadow: "0 8px 32px rgb(0 0 0 / 24%)",
|
|
9887
9887
|
overflowWrap: "anywhere"
|
|
9888
9888
|
}
|
|
9889
9889
|
}, (0, react.createElement)("style", null, formStyles), (0, react.createElement)("div", { style: row }, (0, react.createElement)("div", null, (0, react.createElement)("strong", { id: `${id}-title` }, view?.billing === "credits" ? t.title : unit), (0, react.createElement)("p", {
|