dsh-github-copilot 0.4.0-alpha.127 → 0.4.0-alpha.128

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.128
4
+
5
+ - Separate native compaction commit, subsequent ordinary-request outcome and applicable historical input sampling in one composer disclosure (#364).
6
+ - Preserve transient completion expiry/Close without hiding independent context uncertainty; keep native compaction history, context ring and usage accounting unchanged.
7
+ - Track same-step retries and compaction resumed inside an already-open native step through strict bounded public projections, without an extra request, history write or replacement percentage.
8
+
3
9
  ## 0.4.0-alpha.127 (prepared)
4
10
 
5
11
  - Expire the confirmed visible-history compaction success notice eight seconds after its first Client observation; keep running loss disclosure visible and add localized, accessible Close to settled, unavailable and authorization-required results (#363).
package/README.md CHANGED
@@ -27,7 +27,7 @@ Visible Models and Credits resolve missing names for saved accounts without acti
27
27
 
28
28
  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.
29
29
 
30
- **Package version: `0.4.0-alpha.127` (prepared). 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. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
30
+ **Package version: `0.4.0-alpha.128` (prepared). 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. Verify the published Release and assets before using the versioned commands below; these instructions do not prove publication or installation.
31
31
 
32
32
  ## What you can do
33
33
 
@@ -93,10 +93,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
93
93
  For a **standalone named profile**:
94
94
 
95
95
  ```sh
96
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/dsh-github-copilot-0.4.0-alpha.127.tgz
96
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/dsh-github-copilot-0.4.0-alpha.128.tgz
97
97
  ```
98
98
 
99
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.127` 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.
99
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.128` 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.
100
100
 
101
101
  After an approved reload/restart:
102
102
 
@@ -177,6 +177,8 @@ For continuing steps with a committed managed route and no pending model change,
177
177
 
178
178
  **Visible-history continuation also covers this Session's native managed Responses compaction**, including automatic summaries: no extra manual recovery command or failure-first retry is required when enabled. Old encrypted reasoning and embedded summaries are omitted from outgoing input; hidden context may be lost. Visible messages/tool pairs and source history remain intact, and only the native transaction commits a smaller checkpoint. A composer notice identifies degradation and distinguishes committed, failed and cancelled outcomes. When off, an exact replay-scope rejection offers the same loss-disclosed enable control; unknown failures do not authorize loss. `/copilot-compact visible-history` remains a one-time alternative through the selected recovery engine. Read [recovery consent and limits](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery); this does not enable an absent engine or repair capacity, quota or timeout failures.
179
179
 
180
+ Compaction feedback separates **compaction completed**, **subsequent request succeeded** and **applicable input sampling** in one composer disclosure. A native `0%` is not proof of empty context; even a successful subsequent request with a valid historical input sample does not establish exact current occupancy. The plugin sends no extra test request, adds no retry and leaves the native context ring, Usage accounting and expandable compaction history unchanged. See [context evidence](./docs/copilot-usage.md#historical-context-evidence).
181
+
180
182
  Running visible-history compaction notices stay visible. Confirmed success disappears eight seconds after first observation; settled failures, cancellation, unavailable status and enable prompts stay until **Close** (or the existing **Cancel**). Closing only hides this Session/operation/status notice, never changes consent, history or native proof, and never sends or retries. A bounded Client registration retains expiry/dismissal across incidental remounts and Session switches, not across teardown or eviction.
181
183
 
182
184
  For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Image counts include native Responses tool outputs; older stored diagnostics may have counted those images as residual history. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
@@ -267,14 +269,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
267
269
  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.
268
270
 
269
271
  ```sh
270
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/dsh-github-copilot-0.4.0-alpha.127.tgz
271
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/SHA256SUMS
272
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/dsh-github-copilot-0.4.0-alpha.128.tgz
273
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/SHA256SUMS
272
274
  sha256sum --check SHA256SUMS
273
275
  ```
274
276
 
275
277
  ```powershell
276
278
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
277
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.127.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
279
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.128.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
278
280
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
279
281
  ```
280
282
 
package/README.zh.md CHANGED
@@ -24,7 +24,7 @@ Models 和 Chat 共用不透明、随主题适配的账号下拉层;原生菜
24
24
 
25
25
  添加账号时,设备授权链接、可选择的网址、一次性授权码、复制授权码和取消操作会同时显示。GitHub 授权完成后,会单独显示身份与可用模型验证阶段。添加账号不会更改全局默认;准备好后仍需显式执行现有的**切换**操作。技术诊断收在次级折叠区;账号/历史 turn 缺少身份时不会暴露不透明账号 ID,也不会根据当前设置推断历史身份。
26
26
 
27
- **包版本:`0.4.0-alpha.127`(准备中)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
27
+ **包版本:`0.4.0-alpha.128`(准备中)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。执行下方带版本的命令前须核验正式发布与资产;这些说明不证明已发布或已安装。
28
28
 
29
29
  ## 你可以做什么
30
30
 
@@ -83,10 +83,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
83
83
  **独立具名 profile**:
84
84
 
85
85
  ```sh
86
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/dsh-github-copilot-0.4.0-alpha.127.tgz
86
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/dsh-github-copilot-0.4.0-alpha.128.tgz
87
87
  ```
88
88
 
89
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.127`。官方 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 或删除配置。
89
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.128`。官方 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 或删除配置。
90
90
 
91
91
  经批准 reload/restart 后:
92
92
 
@@ -167,6 +167,8 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
167
167
 
168
168
  **“降级续聊”也覆盖本 Session 的原生托管 Responses 压缩,包括自动摘要**:开启后不需要额外手动恢复命令,也不必先失败再重试。发出的输入省略旧加密 reasoning 及其内嵌摘要,隐藏上下文可能丢失;可见消息、工具调用/结果关系和原历史保留,仅由原生事务提交更小的检查点。输入区提示降级,并区分已提交、失败和取消。关闭时,明确的回放作用域拒绝提供同一个带损失说明的开启入口;未知错误不授权降级。`/copilot-compact visible-history` 保留为已选用恢复引擎的一次性高级入口。参见[授权与恢复限制](./docs/manual-compaction-recovery.md#explicit-visible-history-summary-recovery);这不启用缺失的引擎,也不修复容量、额度或超时问题。
169
169
 
170
+ 输入区在同一个可展开提示中分别说明**压缩已完成**、**后续请求已成功**和**有效输入采样是否仍适用**。原生 `0%` 不代表上下文为空;即使后续请求成功且有有效历史输入采样,也不能据此确认当前精确占用。插件不额外发送测试请求、不增加重试,保留原生圆环、Usage 记账及可展开的压缩历史。参见[上下文证据](./docs/copilot-usage.md#historical-context-evidence)。
171
+
170
172
  可见历史压缩进行中时提示持续可见。确认成功后从首次观察起八秒自动消失;失败、取消、状态不可用和开启提示保留至手动**关闭**(或原有**取消**)。关闭仅隐藏当前 Session/操作/状态的提示,不改变授权、历史或原生证据,不发送或重试。Client 注册范围内的有界状态使临时重挂载和会话切换不会重置期限;注册销毁或记录淘汰后不保留。
171
173
 
172
174
  严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
@@ -257,14 +259,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
257
259
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
258
260
 
259
261
  ```sh
260
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/dsh-github-copilot-0.4.0-alpha.127.tgz
261
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.127/SHA256SUMS
262
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/dsh-github-copilot-0.4.0-alpha.128.tgz
263
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.128/SHA256SUMS
262
264
  sha256sum --check SHA256SUMS
263
265
  ```
264
266
 
265
267
  ```powershell
266
268
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
267
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.127.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
269
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.128.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
268
270
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
269
271
  ```
270
272
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.127"
11
+ "version": "0.4.0-alpha.128"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -414,6 +414,8 @@
414
414
  "tests": [
415
415
  {"file": "tests/context-usage.spec.ts", "name": "classifies zero only for separate historical evidence without changing the sample"},
416
416
  {"file": "tests/context-evidence.spec.ts", "name": "replays failed zero samples without discarding the last valid input sample"},
417
+ {"file": "tests/context-evidence.spec.ts", "name": "separates committed compaction, subsequent request success and applicable input sampling"},
418
+ {"file": "tests/context-evidence.spec.ts", "name": "tracks unchanged-header native steps and reads only the settled message source leaves"},
417
419
  {"file": "tests/context-evidence-ui.spec.ts", "name": "labels counts as historical rather than current occupancy in %s"},
418
420
  {"file": "tests/replay-recovery-ui.spec.ts", "name": "uses native auxiliary typography for the entire notice and inherited controls in an independent dock row"},
419
421
  {"file": "tests/fixtures/session-context-core.fixture.ts", "name": "cold-folds native model selections independently without replacing the controller projection"},
@@ -604,7 +606,7 @@
604
606
  {"file": "src/compaction-continuation.ts", "marker": "COPILOT_CONTINUATION_COMPACTION_BOUNDARY_UNAVAILABLE"},
605
607
  {"file": "src/compaction-continuation-ui.ts", "marker": "Compacting with visible history"},
606
608
  {"file": "src/compaction-continuation-ui.ts", "marker": "const successLifetimeMs = 8000"},
607
- {"file": "src/replay-recovery-ui.ts", "marker": "presentation.dispose()"},
609
+ {"file": "src/context-evidence-ui.ts", "marker": "presentation.dispose()"},
608
610
  {"file": "src/background-compaction.ts", "marker": "visible-history"},
609
611
  {"file": "src/background-compaction.ts", "marker": "this.jobs.wait(jobId"},
610
612
  {"file": "src/preview-route.ts", "marker": "recoveryLimits(modelId)"},
@@ -42,6 +42,12 @@ The separate, strict `githubCopilotContextEvidence` session projection reads onl
42
42
 
43
43
  An additive composer disclosure identifies missing or unreliable context evidence for the current open Copilot Session. Any retained count is explicitly a **historical input sample, not current occupancy**; no capacity or percentage is inferred. The native context ring and account Credits control remain separate and unchanged. Missing public projection/slot/runtime seams produce named diagnostics rather than guessed counts. Old histories can therefore still show native `0%`; the disclosure explains the uncertainty instead of claiming an in-place native-meter repair.
44
44
 
45
+ Compaction feedback shares this disclosure instead of requiring users to combine a recovery notice with a separate zero-context warning. **Compaction completed · context occupancy awaiting confirmation** requires a matching native checkpoint and successful end, or the account-bound Host's confirmed native commit. Running, failed, cancelled and unconfirmed outcomes are distinct. The native expandable **Context compacted** history row remains unchanged.
46
+
47
+ The independent projection retains only the latest compaction bracket and subsequent ordinary-request evidence. A normal successful settlement after that bracket is reported separately from an applicable input-plus-cache sample. It observes public step/header and same-step source/terminal metadata, including unchanged-header steps and retries; summary output is never a subsequent chat success. Missing usage can coexist with request success. Only a positive applicable input sample confirms sampling; successful zero input stays unknown, and a new request without usage cannot borrow an older sample to certify itself. Failed zero, route changes, incompatible sources and surface replacement revoke sampling applicability; they never prove an empty context or restore Session health. A recorded post-compaction count is still historical, not exact current occupancy. No extra test message, automatic retry, content/replay read, durable event or replacement percentage is added. Projection state version 2 requests a native refold, not history conversion.
48
+
49
+ The transient commit/loss status follows the eight-second completion expiry and manual Close rules. Its registration-owned presentation bound moves with the notice into the context UI. Expiry and Close remove only that result; independent context uncertainty and subsequent-request evidence remain when sampling is unreliable. Once applicable valid input sampling is available, the expired warning can disappear without inventing a current percentage. Native compaction history remains expandable throughout.
50
+
45
51
  Local synthetic tests establish native-stream preservation, historical-fold and presentation behavior only. Exact published-adapter and public-registry acceptance, complete CI, publication and loaded Desktop state must be verified separately. No live provider call or Session restart is needed for these tests.
46
52
 
47
53
  ## Missing completed-turn Usage