dsh-github-copilot 0.4.2-alpha.14 → 0.4.2-alpha.15
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 +6 -3
- package/docs/copilot-compaction.md +7 -0
- package/docs/manual-compaction-recovery.md +5 -3
- package/lib/client.js +3 -1
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-D5T4fto9.js → diagnostics-types-CF-qg8Do.js} +2 -0
- package/lib/index.js +2 -2
- package/lib/manual-compaction-recovery.js +54 -9
- package/lib/remote.js +2 -0
- package/lib/types/compaction-input-estimate.d.ts +8 -4
- package/lib/types/diagnostics-analysis.d.ts +2 -0
- package/lib/types/diagnostics-host.d.ts +1 -1
- package/lib/types/diagnostics-remote.d.ts +2 -0
- package/lib/types/diagnostics-types.d.ts +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2-alpha.15 (prepared)
|
|
4
|
+
|
|
5
|
+
- Plan selected compaction recovery in public native token-meter units rather than comparing UTF-8 bytes directly with token budgets (#418). This prevents false indivisible rejection of long balanced tool spans that fit the planning budget.
|
|
6
|
+
- Keep tools, tool-history allowance, fixed head and intermediate checkpoints in the same token units; validate estimates and retain final native admission, complete tool relations, output caps and bounded calls. No history trimming, model switch or guarantee of live summary success.
|
|
7
|
+
|
|
3
8
|
## 0.4.2-alpha.14 (prepared)
|
|
4
9
|
|
|
5
10
|
- Correlate certified native OAuth refresh writes across Cordis traced credentials
|
package/README.md
CHANGED
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter, retaining a profile-wide account default with independent Session next-turn choices; it does not patch Core or maintain a second model catalog.
|
|
10
10
|
|
|
11
|
-
**Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.
|
|
11
|
+
**Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.15`.** `0.4.2-alpha.1` was not published: its release preflight failed, and its immutable tag will not be reused. Supported host: official DSH / Windows Desktop `0.2.0-rc.2`. The stable version is also published on npm's `latest` dist-tag; prereleases remain on their channel tags. Stability-channel promotion does not expand the qualified host baseline or prove live account, model, search or Desktop health. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
|
|
12
12
|
|
|
13
13
|
**Native refresh protection:** 0.4.1 introduced preservation of already-dispatched HTTP streams across proven plugin-owned refresh with unchanged account, endpoint and entitlements. Versions through 0.4.2-alpha.13 still missed this proof across real Cordis traced service faces; 0.4.2-alpha.14 fixes that identity mismatch. Subsequent requests use freshly validated auth and metadata. Unknown/external credential notifications, revocation, cancellation and provider rejections remain explicit—not a promise of invisible recovery or automatic retry. See [the refresh boundary](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385).
|
|
14
14
|
|
|
15
|
+
**Compaction planning:** alpha.15 fixes byte counts being compared with token budgets in the separately selected recovery engine. Planning now uses the public native token meter, preserving complete tool relations and final native admission. Truly oversized balanced units still fail explicitly; this is not history repair or guaranteed recovery. See [compaction recovery](./docs/manual-compaction-recovery.md).
|
|
16
|
+
|
|
15
17
|
## What you can do
|
|
16
18
|
|
|
17
19
|
**High-cost Auto:** in **Manage → Model preferences**, mark costly models with
|
|
@@ -129,10 +131,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
129
131
|
For a **standalone named profile**:
|
|
130
132
|
|
|
131
133
|
```sh
|
|
132
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
134
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/dsh-github-copilot-0.4.2-alpha.15.tgz
|
|
133
135
|
```
|
|
134
136
|
|
|
135
|
-
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.
|
|
137
|
+
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.15`; stable versions publish on npm's `latest` dist-tag and prereleases on their channel tags. The official rc.2 **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.
|
|
136
138
|
|
|
137
139
|
After an approved reload/restart:
|
|
138
140
|
|
|
@@ -322,14 +324,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
322
324
|
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.
|
|
323
325
|
|
|
324
326
|
```sh
|
|
325
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
326
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
327
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/dsh-github-copilot-0.4.2-alpha.15.tgz
|
|
328
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/SHA256SUMS
|
|
327
329
|
sha256sum --check SHA256SUMS
|
|
328
330
|
```
|
|
329
331
|
|
|
330
332
|
```powershell
|
|
331
333
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
332
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
334
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.15.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
333
335
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
334
336
|
```
|
|
335
337
|
|
package/README.zh.md
CHANGED
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器,保留 profile 全局默认账号,并支持 Session 后续 turn 指定独立账号;不修改 Core,也不维护第二套模型目录。
|
|
10
10
|
|
|
11
|
-
**稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.
|
|
11
|
+
**稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.15`。** `0.4.2-alpha.1` 的发布预检失败,因此未发布;其不可变 tag 不会复用。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。稳定版也发布到 npm 的 `latest` dist-tag;预发布版本仍使用各自渠道 tag。稳定渠道不扩大已验证的宿主基线,也不证明实时账号、模型、搜索或 Desktop 健康状态。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
|
|
12
12
|
|
|
13
13
|
**原生刷新保护:**0.4.1 引入了窄范围保护:仅在插件拥有的原生刷新被精确验证,且账号、端点与权限连续时,保留已发出的 HTTP 流。但截至 0.4.2-alpha.13,真实 Cordis 服务代理身份不一致仍会导致保护证据匹配失败;0.4.2-alpha.14 修复此问题。后续请求重新验证认证与模型元数据。未知/外部凭据通知、撤销、取消与供应商拒绝仍明确报错,不承诺所有刷新无感,也不自动重试。参见[刷新边界](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385)。
|
|
14
14
|
|
|
15
|
+
**压缩规划:**alpha.15 修复独立选择的恢复引擎将字节数与 token 预算直接比较的问题,改用公开的原生 token meter,保留完整工具关系和最终原生准入。真正超大的配对历史单元仍明确失败;这不是历史修复,也不保证恢复成功。参见[压缩恢复](./docs/manual-compaction-recovery.md)。
|
|
16
|
+
|
|
15
17
|
## 你可以做什么
|
|
16
18
|
|
|
17
19
|
**高成本 Auto:**在 **Manage → Model preferences** 中用 **High cost** 标记
|
|
@@ -111,10 +113,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
111
113
|
**独立具名 profile**:
|
|
112
114
|
|
|
113
115
|
```sh
|
|
114
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
116
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/dsh-github-copilot-0.4.2-alpha.15.tgz
|
|
115
117
|
```
|
|
116
118
|
|
|
117
|
-
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.
|
|
119
|
+
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.15`;稳定版发布到 npm `latest` dist-tag,预发布版使用对应渠道 tag。官方 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 或删除配置。
|
|
118
120
|
|
|
119
121
|
经批准 reload/restart 后:
|
|
120
122
|
|
|
@@ -301,14 +303,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
301
303
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
302
304
|
|
|
303
305
|
```sh
|
|
304
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
305
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
306
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/dsh-github-copilot-0.4.2-alpha.15.tgz
|
|
307
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.15/SHA256SUMS
|
|
306
308
|
sha256sum --check SHA256SUMS
|
|
307
309
|
```
|
|
308
310
|
|
|
309
311
|
```powershell
|
|
310
312
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
311
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
313
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.15.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
312
314
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
313
315
|
```
|
|
314
316
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.2-alpha.
|
|
11
|
+
"version": "0.4.2-alpha.15"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -618,8 +618,9 @@
|
|
|
618
618
|
{"file": "src/manual-compaction-recovery.ts", "marker": "extends BasicCompactionEngine"},
|
|
619
619
|
{"file": "src/manual-compaction-recovery.ts", "marker": "automaticRecovery: z.boolean().default(true)"},
|
|
620
620
|
{"file": "src/manual-compaction-recovery.ts", "marker": "maxCalls: failedAttempt ? 15 : 16"},
|
|
621
|
-
{"file": "src/manual-compaction-recovery.ts", "marker": "reduceCompactionInputLimit(input, inputLimit)"},
|
|
622
|
-
{"file": "src/compaction-
|
|
621
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "reduceCompactionInputLimit(input, inputLimit, estimate)"},
|
|
622
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "createCompactionTokenEstimator(meter)"},
|
|
623
|
+
{"file": "src/compaction-input-estimate.ts", "marker": "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID"},
|
|
623
624
|
{"file": "src/manual-compaction-recovery.ts", "marker": "COPILOT_MANUAL_RECOVERY_"},
|
|
624
625
|
{"file": "src/background-compaction.ts", "marker": "copilot-compact"},
|
|
625
626
|
{"file": "src/compaction-replay.ts", "marker": "request.purpose !== 'compaction'"},
|
|
@@ -637,6 +638,8 @@
|
|
|
637
638
|
{"file": "tests/compaction-continuation-ui.spec.ts", "name": "keeps unavailable distinct and dismissible without hiding a later failure"},
|
|
638
639
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "reduces an oversized balanced history with bounded complete calls and an unmarked aggregate audit"},
|
|
639
640
|
{"file": "tests/compaction-input-estimate.spec.ts", "name": "avoids metadata-driven sixteen-call exhaustion without changing dispatched messages"},
|
|
641
|
+
{"file": "tests/compaction-input-estimate.spec.ts", "name": "uses token units for a long balanced span instead of treating bytes as tokens"},
|
|
642
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "prices a long-lived balanced tool span in native tokens, retaining indivisible admission limits"},
|
|
640
643
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects an indivisible span before dispatch and leaves recovery to native failure handling"},
|
|
641
644
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects unmatched tool calls before dispatch instead of splitting a call and result"},
|
|
642
645
|
{"file": "tests/background-compaction.spec.ts", "name": "acknowledges before completion and outlives a five-minute caller deadline"},
|
|
@@ -110,6 +110,13 @@ Analysis up to 16 MiB retains the existing span validator. Larger verified-408 J
|
|
|
110
110
|
|
|
111
111
|
This implementation is preventive, not a general rescue summarizer. A manual summary whose full input already exceeds the hard budget fails before model transport. It does not silently trim, fabricate a partial checkpoint, or claim that refusing the request recovered the history. Giant fixed prefixes or an indivisible latest unit can also prevent useful reduction.
|
|
112
112
|
|
|
113
|
+
The separately selected recovery engine now plans through the published native
|
|
114
|
+
token meter, in the same token units as its budget (#418). Earlier content-byte
|
|
115
|
+
planning could falsely reject a long balanced tool span even when its token
|
|
116
|
+
estimate fits. This correction changes no final managed admission, output cap,
|
|
117
|
+
tool pairing, native transaction or retry bound. A fitting planning estimate is
|
|
118
|
+
not proof of supplier acceptance.
|
|
119
|
+
|
|
113
120
|
The #228 investigation confirmed a separate Auto undercount (#230): Core reasoning blocks caused the incompatible pi-ai estimator to throw and drop complete assistant messages. Auto now uses the native Core meter, without changing final native provider admission. This fixes candidate selection evidence, not a genuinely oversized summary. In the reported failure class, a roughly 508k-token summary input exceeded a roughly 368k-token input budget even with a 65,536-token output reservation. Reducing output reservation cannot remove an independently binding prompt ceiling.
|
|
114
121
|
|
|
115
122
|
On official `0.2.0-rc.2`, the stock summarizer uses an explicitly configured summary route, otherwise the latest committed request header, otherwise the Agent's initial options. Changing only a pending picker selection therefore does not necessarily change a manual `/compact` request's model. Repeating the same over-budget summary or disabling admission is not a recovery procedure.
|
|
@@ -14,7 +14,9 @@ Recovery must leave the original Session surface intact until a smaller *complet
|
|
|
14
14
|
|
|
15
15
|
`automaticRecovery` defaults to `true` in this engine's config. Set it to `false` to retain stock automatic single-summary behavior while keeping manual segmented recovery. Native `auto: false`, `maxOverflowRetries`, thresholds and model policies retain their meaning; no background command or second transaction is launched by automatic recovery. A fitting summary first uses the unchanged native single call. A known oversized input directly enters segmented recovery. Only an actual native `LlmError` with `CONTEXT_WINDOW_EXCEEDED` from that first single summary permits one fallback. Its planning bound halves the partitionable history while retaining the fixed system head/tools and enough space for the largest balanced unit, never exceeding the original bound. If that requires the entire rejected input, fail as indivisible instead of resubmitting it unchanged. A segment failure is never recursively retried. HTTP 408, timeout, auth, quota, network, cancellation, empty or truncated output do not authorize fallback.
|
|
16
16
|
|
|
17
|
-
The plugin's account service supplies a current descriptor and a revocable proof for the explicit initiating Agent, not another Session or today's global account. Each physical summary uses public initiator scoping; no credential discovery or Client credential reads are added. Account/selection changes revoke the proof. The summary budget uses `min(maxInputTokens, contextWindow - configuredOutputCap) - safetyTokens`; an additional 4096-token allowance covers Core's appended directive and estimation variance
|
|
17
|
+
The plugin's account service supplies a current descriptor and a revocable proof for the explicit initiating Agent, not another Session or today's global account. Each physical summary uses public initiator scoping; no credential discovery or Client credential reads are added. Account/selection changes revoke the proof. The summary budget uses `min(maxInputTokens, contextWindow - configuredOutputCap) - safetyTokens`; an additional 4096-token allowance covers Core's appended directive and estimation variance. Candidates now use the public native `tokenMeter.estimateMessage()` in **token units**, including the system head and prior intermediate checkpoint. Tool-schema and tool-history JSON text are conservatively priced through that same meter, not charged as raw bytes. Estimates must be nonnegative safe integers and summed without overflow; missing/invalid meter evidence fails explicitly. An operation-local cache avoids repeatedly pricing the same immutable message while searching boundaries. No source/provenance or opaque replay is serialized by the planner.
|
|
18
|
+
|
|
19
|
+
Through alpha.14 the content planner still compared UTF-8 bytes directly with a token budget. A long-lived tool call can join many intervening completed steps into one balanced span: a reconstructed production span measured about 1.25 MB but 204,438 native heuristic tokens. Such spans can be falsely rejected by that over-conservative dimensional comparison. This bounded content-free measurement is not a reconstruction of the exact native summary input or proof of live acceptance. Alpha.15 corrects the planning units without breaking tool relations or increasing the native budget. Earlier whole-message planning also incorrectly charged provenance/replay metadata; that separate regression remains covered. Historical failure events are not repaired, and the observed production span has not been replayed through a live corrected summary.
|
|
18
20
|
|
|
19
21
|
This is not provider-exact token accounting or a complete wire-size bound. The original messages, sources and replay are still passed unchanged to the published adapter; existing consent alone controls outgoing replay filtering. The final native managed-route guard prices converted replay, images and the complete request and remains authoritative. A segment that still exceeds that guard fails; it is never recursively retried or rewritten. Excluding metadata from planning neither bypasses admission nor authorizes additional loss.
|
|
20
22
|
|
|
@@ -59,7 +61,7 @@ scope and persistence contract.
|
|
|
59
61
|
|
|
60
62
|
Consent is local to the native summarizer's exact cancellation signal, Session and summary model, including its bounded segments. It is revoked on completion, failure, cancellation or teardown. No unrelated request, subsequent command or automatic retry inherits it. Unknown or incomplete reasoning fails closed. No replay is decrypted, fabricated or written back; original source events remain unchanged and only Core can commit the final smaller checkpoint. The command adds no retry or model/account switch, and does not repair supplier scope. Missing managed integration or an unsupported summary route fails explicitly.
|
|
61
63
|
|
|
62
|
-
The
|
|
64
|
+
The native planning estimate still includes visible history before outgoing filtering, but not source/replay metadata. Giant indivisible units, fixed prefixes, native admission, bounded-work/call limits, truncation and failure to shrink can still prevent recovery. This command is not guaranteed to rescue every history, and summary calls may incur charges. Installation alone neither selects the engine nor runs this command.
|
|
63
65
|
|
|
64
66
|
The visible-history composer notice keeps running loss disclosure visible. A confirmed native completion is shown for a fixed eight seconds from the first current Client read, not from a rerender or later read. Success may also be closed early; failed/cancelled/unavailable and blocked enable prompts never auto-expire and have a localized, keyboard-accessible **Close**. The existing blocked prompt **Cancel** also hides only the notice. Neither action changes persistent consent, invokes recovery, sends/retries, or changes native outcome evidence/history. A dismissal applies only to the exact Session, operation and status, never a later running/failed state. Expiry/dismissal survives incidental remounts and Session switches in a Client registration-owned FIFO of at most 128 records; teardown clears it, and an evicted record may be shown again. No disk or module-global cache is used. Component timers stop on unmount/Session changes; departed reads cannot start a lifetime or publish stale status. This transient presentation is not proof of the subsequent chat request succeeding.
|
|
65
67
|
|
|
@@ -79,7 +81,7 @@ The unchanged-Core fixture exercises the real managed adapter and its `inspectRe
|
|
|
79
81
|
|
|
80
82
|
## Limitations and operational use
|
|
81
83
|
|
|
82
|
-
This path only helps histories with balanced boundaries and intermediate summaries that fit their model's input and output limits. One giant user/tool result, a huge fixed head/tool schema, an incomplete tool pair, provider truncation, or a final checkpoint that is not smaller remain explicit failures. Intermediate model summaries are lossy in the same sense as ordinary Core compaction; review important context before explicitly invoking manual compaction. The
|
|
84
|
+
This path only helps histories with balanced boundaries and intermediate summaries that fit their model's input and output limits. One giant user/tool result, a huge fixed head/tool schema, an incomplete tool pair, provider truncation, or a final checkpoint that is not smaller remain explicit failures. Intermediate model summaries are lossy in the same sense as ordinary Core compaction; review important context before explicitly invoking manual compaction. The native meter is heuristic, not a supplier tokenizer or proof that a request will fit after conversion; final managed admission remains authoritative. The algorithm does not repair a damaged/unmatched pre-existing compaction bracket.
|
|
83
85
|
|
|
84
86
|
Select the exported `dsh-github-copilot/manual-compaction-recovery` Host class **instead of** the stock basic compaction plugin in a reviewed Host composition. For a composition that normally contains `- name: '@deepseek-ai/dsh-compaction-basic'`, remove that single row and use this row in the same scope:
|
|
85
87
|
|
package/lib/client.js
CHANGED
|
@@ -7137,6 +7137,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7137
7137
|
"CONTEXT_WINDOW_EXCEEDED",
|
|
7138
7138
|
"COPILOT_MANUAL_RECOVERY_FIXED_PREFIX",
|
|
7139
7139
|
"COPILOT_MANUAL_RECOVERY_INDIVISIBLE",
|
|
7140
|
+
"COPILOT_MANUAL_RECOVERY_TOKEN_METER_UNAVAILABLE",
|
|
7141
|
+
"COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID",
|
|
7140
7142
|
"COPILOT_MANUAL_RECOVERY_CALL_LIMIT",
|
|
7141
7143
|
"COPILOT_MANUAL_RECOVERY_EMPTY_SUMMARY",
|
|
7142
7144
|
"COPILOT_MANUAL_RECOVERY_UNBALANCED"
|
|
@@ -7552,7 +7554,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7552
7554
|
};
|
|
7553
7555
|
//#endregion
|
|
7554
7556
|
//#region package.json
|
|
7555
|
-
var version = "0.4.2-alpha.
|
|
7557
|
+
var version = "0.4.2-alpha.15";
|
|
7556
7558
|
//#endregion
|
|
7557
7559
|
//#region lib/types/diagnostics-client.js
|
|
7558
7560
|
let owner;
|