dsh-github-copilot 0.4.0-alpha.111 → 0.4.0-alpha.113

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/AGENTS.md CHANGED
@@ -258,6 +258,13 @@ Never say GPT-6/search works merely because settings, typecheck or a package imp
258
258
 
259
259
  ## Changing capabilities
260
260
 
261
+ Continuation processing is reasoning-only: never recursively traverse or serialize
262
+ ordinary payload content to impose a whole-request limit. Preserve bounded
263
+ top-level item/ciphertext work, yielding cancellation and turn-revocation checks,
264
+ atomic baseline initialization and awaited final-byte retry evidence. Native token
265
+ admission and automatic-compaction transactions/rebuild stay independent; never
266
+ classify a continuation processing bound as context overflow.
267
+
261
268
  Context evidence and replay recovery use the public full-width `conversation.input.dock`
262
269
  above the composer, with shared native secondary typography. Do not restore long
263
270
  notices to the nonwrapping statistics row or mutate its parent DOM. Scope errors
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.113 (prepared)
4
+
5
+ - Remove the continuation filter's whole-request 16 MiB refusal and recursive payload traversal. Large ordinary tool/image content is preserved; old encrypted reasoning is processed independently (#326).
6
+ - Bound reasoning count and ciphertext work, yield during hashing, and recheck request/turn cancellation before atomically establishing the baseline. Await filtering before exact native 408 retry-byte bookkeeping.
7
+ - Verify first-step and continuing-step native automatic compaction with Auto, durable in-memory summary replacement, fresh request rebuild and large historical reasoning. Preserve native token admission, disabled-auto/missing-engine behavior, summary failures and retry bounds; do not misclassify processing bytes as token pressure.
8
+ - No Core changes, automatic sends, live-history replay, installation or restart.
9
+
10
+ ## 0.4.0-alpha.112 (prepared)
11
+
12
+ - 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).
13
+ - 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.
14
+ - Add theme regressions covering opacity and elevation; document translucent-token acceptance. No Core changes, live installation or restart.
15
+
3
16
  ## 0.4.0-alpha.111 (prepared)
4
17
 
5
18
  - 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,15 @@ 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
+
20
+ Visible-history continuation no longer rejects entire requests at 16 MiB. It processes only bounded encrypted reasoning, yields to cancellation, and preserves ordinary tool/image content. Real token pressure still uses the enabled native automatic-compaction engine and request rebuild; processing limits are not context overflow. See [continuation boundaries](./docs/session-continuation.md).
21
+
18
22
  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
23
 
20
24
  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
25
 
22
- **Source candidate: `0.4.0-alpha.111` (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.
26
+ **Source candidate: `0.4.0-alpha.113` (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
27
 
24
28
  ## What you can do
25
29
 
@@ -59,10 +63,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
59
63
  For a **standalone named profile**:
60
64
 
61
65
  ```sh
62
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/dsh-github-copilot-0.4.0-alpha.111.tgz
66
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/dsh-github-copilot-0.4.0-alpha.113.tgz
63
67
  ```
64
68
 
65
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.111` 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.
69
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.113` 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
70
 
67
71
  After an approved reload/restart:
68
72
 
@@ -216,14 +220,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
216
220
  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
221
 
218
222
  ```sh
219
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/dsh-github-copilot-0.4.0-alpha.111.tgz
220
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/SHA256SUMS
223
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/dsh-github-copilot-0.4.0-alpha.113.tgz
224
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/SHA256SUMS
221
225
  sha256sum --check SHA256SUMS
222
226
  ```
223
227
 
224
228
  ```powershell
225
229
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
226
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.111.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
230
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.113.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
227
231
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
228
232
  ```
229
233
 
package/README.zh.md CHANGED
@@ -13,11 +13,15 @@
13
13
  在 Credits 内选择本 Session 后续 turn 的账号,或恢复跟随全局默认;正在运行的 turn 保持原账号。
14
14
  身份展示支持 GitHub 企业托管账号,包括带下划线企业后缀的用户名。
15
15
 
16
+ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜单 token 即使半透明,也不会透出底下的按钮或额度文字。明暗主题均使用克制的深色投影,不产生白色光晕。
17
+
18
+ 可见历史续聊不再按整包 16 MiB 拒绝请求。过滤只对加密推理做有界、可取消的处理,普通工具输出和图片内容保持不变。真实 token 压力仍交给已启用的原生自动 compact 引擎,完成摘要后重建请求;处理工作量上限不会被误报为上下文溢出。参见[续聊边界](./docs/session-continuation.md)。
19
+
16
20
  可见的 Models 和 Credits 会补齐已保存账号缺失的名称,不需要先激活账号。已验证名称在 Host 生命周期内缓存,未激活账号也会保留;十分钟是重新验证的间隔,不是名字的显示期限。凭据变更、账号移除及身份验证失败会使名称失效。同账号共享请求、失败冷却三十秒,显式刷新可立即重试。名称不能证明授权有效或模型可用。参见[账号生命周期](./docs/copilot-accounts.md)。
17
21
 
18
22
  添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
19
23
 
20
- **源码候选版本:`0.4.0-alpha.111`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
24
+ **源码候选版本:`0.4.0-alpha.113`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
21
25
 
22
26
  ## 你可以做什么
23
27
 
@@ -57,10 +61,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
57
61
  **独立具名 profile**:
58
62
 
59
63
  ```sh
60
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/dsh-github-copilot-0.4.0-alpha.111.tgz
64
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/dsh-github-copilot-0.4.0-alpha.113.tgz
61
65
  ```
62
66
 
63
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.111`。官方 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 或删除配置。
67
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.113`。官方 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
68
 
65
69
  经批准 reload/restart 后:
66
70
 
@@ -214,14 +218,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
214
218
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
215
219
 
216
220
  ```sh
217
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/dsh-github-copilot-0.4.0-alpha.111.tgz
218
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.111/SHA256SUMS
221
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/dsh-github-copilot-0.4.0-alpha.113.tgz
222
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.113/SHA256SUMS
219
223
  sha256sum --check SHA256SUMS
220
224
  ```
221
225
 
222
226
  ```powershell
223
227
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
224
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.111.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
228
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.113.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
225
229
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
226
230
  ```
227
231
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.111"
11
+ "version": "0.4.0-alpha.113"
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"},
@@ -755,6 +756,7 @@
755
756
  "liveEndpointAcceptance": "not-claimed",
756
757
  "sourceMarkers": [
757
758
  {"file": "src/session-continuation.ts", "marker": "class SessionContinuationTurn"},
759
+ {"file": "src/session-continuation.ts", "marker": "COPILOT_CONTINUATION_REASONING_WORK_LIMIT"},
758
760
  {"file": "src/session-continuation-host.ts", "marker": "path: ['continuationDefaultHistory']"},
759
761
  {"file": "src/session-continuation-host.ts", "marker": "COPILOT_CONTINUATION_TURN_BOUNDARY_UNAVAILABLE"},
760
762
  {"file": "src/session-continuation-remote.ts", "marker": "authorizeNext"},
@@ -766,6 +768,10 @@
766
768
  "tests": [
767
769
  {"file": "tests/account-dropdown.spec.ts", "name": "supports arrows, Home, End and Escape without closing the containing Chat panel"},
768
770
  {"file": "tests/session-continuation.spec.ts", "name": "continues A-B-B-A by omitting pre-turn reasoning while retaining new tool-loop reasoning"},
771
+ {"file": "tests/session-continuation.spec.ts", "name": "does not traverse or serialize ordinary contents when a request exceeds 16 MiB"},
772
+ {"file": "tests/session-continuation.spec.ts", "name": "omits large historical ciphertext without a whole-request byte cap"},
773
+ {"file": "tests/session-continuation.spec.ts", "name": "yields during ciphertext hashing and rejects revocation without establishing a baseline"},
774
+ {"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "compacts and rebuilds an Auto request with large historical continuation reasoning, continuing=%s"},
769
775
  {"file": "tests/replay-recovery-ui.spec.ts", "name": "enables only persistent Session continuation after loss disclosure, without legacy authorization or sending"},
770
776
  {"file": "tests/replay-recovery-ui.spec.ts", "name": "does not reauthorize an already enabled policy or change it when failure evidence expires"},
771
777
  {"file": "tests/session-continuation.spec.ts", "name": "does not replay baseline ciphertext after its ID or embedded summary changes"},
@@ -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.
@@ -1,5 +1,12 @@
1
1
  # Managed Copilot compaction budgets
2
2
 
3
+ Visible-history continuation does not impose a whole-request byte cap. Its
4
+ reasoning-only cancellable work bounds are separate from native token admission;
5
+ neither ciphertext length nor `COPILOT_CONTINUATION_REASONING_WORK_LIMIT` is
6
+ classified as context overflow. Enabled native automatic compaction still owns
7
+ summary commit and request rebuild before continuation filters the new payload.
8
+ See [continuation safety and evidence](./session-continuation.md#public-integration-and-safety).
9
+
3
10
  Tracking: [#146](https://github.com/cloga/dsh-github-copilot/issues/146). This is a plugin-only implementation; publication, loaded-runtime state and live-provider acceptance remain separate evidence.
4
11
 
5
12
  ## Why two protections are needed
@@ -67,21 +67,36 @@ published adapter/SDK's payload hook filters the normalized payload. Only
67
67
  unbound requests and other protocols remain native. Cold mid-turn recovery
68
68
  without a first-step boundary fails explicitly.
69
69
 
70
- The fingerprint baseline is bounded to 4096 distinct items, 65536 traversed
71
- values, depth 64 and 16 MiB serialized payload. Unsupported reasoning, malformed
72
- settings, missing boundaries and exhausted limits produce named diagnostics,
73
- not partial filtering or guessed success. Credentials, account entitlement,
74
- model capabilities and cancellation remain independently guarded.
70
+ The filter scans at most 65536 top-level input items and 4096 reasoning items
71
+ (including duplicates). Only encrypted reasoning is hashed, with an aggregate
72
+ 64 Mi UTF-16-code-unit processing bound per invocation and 64 Ki-code-unit chunks
73
+ that yield to cancellation and turn revocation. These are plugin work bounds,
74
+ not supplier byte/token limits. Ordinary tool output, images, nested content,
75
+ system and tool definitions are neither traversed nor serialized by this filter;
76
+ there is no whole-request 16 MiB continuation cap. Failed, cancelled, overlapping
77
+ or revoked processing cannot partially initialize the baseline. Unsupported
78
+ reasoning, malformed settings, missing boundaries and exhausted work bounds
79
+ produce named diagnostics, not partial filtering or guessed success.
80
+ Credentials, account entitlement and model capabilities remain independently guarded.
75
81
 
76
82
  Native retry normalization retains raw reference-restoration evidence but records
77
83
  the final filtered bytes for exact 408 matching. No new retry loop is introduced.
78
84
  Input admission still precedes payload filtering: this is not an oversized-context,
79
85
  quota, upload-timeout, compaction or native context-meter repair.
86
+ Actual token pressure still uses the initiating Agent's enabled native compaction
87
+ engine and bounded recovery: commit the native summary, rebuild the request, then
88
+ apply continuation. A continuation work-bound error is not relabeled as context
89
+ overflow. Disabled automatic compaction, missing engines, cancellation, failed or
90
+ insufficient summaries remain explicit limitations, not permission to trim history.
80
91
 
81
92
  ## Evidence limits
82
93
 
83
94
  Synthetic account transitions, source/Host/UI tests and exact-source native
84
95
  gateway/persistence fixtures are distinct from real supplier acceptance.
96
+ The native compaction fixture covers first-step overflow and continuing-step
97
+ prevention with Auto, a durable in-memory replacement, rebuilt visible history
98
+ and synthetic historical reasoning larger than 16 MiB. It uses an external-model
99
+ double; it does not prove real supplier acceptance or recovery of a live Session.
85
100
  Publication, installation, loaded runtime and controlled live A-B-B-A success
86
101
  must be reported separately. Enabling this product mode is not authorized by
87
102
  implementing it; live existing Sessions still require explicit loss consent.
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 color-mix(in srgb, CanvasText 20%, transparent)"
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 color-mix(in srgb, CanvasText 16%, transparent)",
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", {