dsh-github-copilot 0.4.2-alpha.14 → 0.4.2-alpha.16
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 +7 -6
- package/CHANGELOG.md +13 -0
- package/README.md +22 -6
- package/README.zh.md +21 -6
- package/deployment-baseline.json +50 -25
- package/docs/auto-review-sampling.md +1 -1
- package/docs/copilot-compaction.md +7 -0
- package/docs/manual-compaction-recovery.md +5 -3
- package/docs/official-first-021-alpha4.md +157 -0
- package/lib/client.js +1183 -2699
- 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 +76 -71
- 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/compatibility.d.ts +4 -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 +69 -64
- package/lib/types/reasoning-presentation.d.ts +0 -55
package/AGENTS.md
CHANGED
|
@@ -29,9 +29,9 @@ Use native DSH tools for goals, background jobs and scoped subagents. Use local
|
|
|
29
29
|
|
|
30
30
|
## Product and architecture
|
|
31
31
|
|
|
32
|
-
`dsh-github-copilot` currently admits and targets only official DSH
|
|
32
|
+
`dsh-github-copilot` currently admits and targets only official DSH `0.2.1-alpha.4`. Eleven earlier DSH pins remain in `deployment-baseline.json` as historical evidence, not current support or CI release gates. Alpha.4 Desktop artifacts/signatures are unverified; the signed rc.2 Desktop evidence is historical peer ownership only. Rc.2 installations must retain alpha.15 or their existing compatible plugin. It does not own a general Copilot chat adapter. DSH's built-in `llm-pi-ai` mount owns the GitHub Copilot provider, catalog, OAuth method and grant format, token exchange, refresh, and normal model transport.
|
|
33
33
|
|
|
34
|
-
This repository
|
|
34
|
+
This repository maintains twelve narrow surfaces and ownership boundaries:
|
|
35
35
|
|
|
36
36
|
1. A conditional authorization-service bootstrap plus Host controller that joins DSH authorization, credentials, and settings.
|
|
37
37
|
2. A Client Models provider-card contribution with one shared account-state owner, Client-safe Remote descriptors and a nested plugin-owned model-preferences disclosure; embed in an existing configured canonical row, suppress its separate footer controller, and retain footer/old-Core section fallback when no such row is mounted.
|
|
@@ -40,7 +40,7 @@ This repository owns twelve narrow surfaces:
|
|
|
40
40
|
5. Direct provider-hosted search using the same Host-side credential lifecycle.
|
|
41
41
|
6. Provider-scoped tool-schema compatibility for Copilot payload behaviors; Core remains the tool and execution owner.
|
|
42
42
|
7. A bounded account-discovery route that supplies validated endpoint/capability metadata to the published native adapter, including explicit managed Responses sampling compatibility, plus exact plugin-owned model exclusions enforced across its directory, Auto pools and direct admission, without maintaining model-ID routing rules or changing Core's catalog.
|
|
43
|
-
8.
|
|
43
|
+
8. Native alpha.4 Chat owns blank reasoning presentation. The redundant plugin renderer wrapper and historical provenance projection are retired; durable content and encrypted replay metadata remain Core-owned.
|
|
44
44
|
9. Compatibility-only policy restoration and request recovery for existing dedicated planner/executor Sessions. Model roles UI, settings writes and new dedicated roots are retired (#158); never reintroduce them or migrate histories implicitly.
|
|
45
45
|
10. Managed-route estimated input/output admission, optional exact-request pressure signalling through official compaction recovery, supported low summary effort only when no effort is already resolved, and default-off lossless gzip for explicitly opted-in account-proven HTTP Responses requests. See [compaction budgets](./docs/copilot-compaction.md). Preserve truthful capacities, requested output caps, native errors/replay and transaction ownership; no hidden history trimming, wire chunking, competing compaction service or automatic model switch. The separately selected, single-service [recovery engine](./docs/manual-compaction-recovery.md) defaults to automatic segmented recovery for known oversized summaries or one typed native capacity failure through the public subclass hook. Preserve `automaticRecovery: false`, native `auto: false`, scopes and custom engines; at most 16 physical calls including a failed first attempt, no recursive retry or 408/network/auth/quota fallback. Installation alone never selects or migrates an engine.
|
|
46
46
|
11. Optional account quota reads and a session-scoped composer usage control
|
|
@@ -117,7 +117,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
117
117
|
- `src/copilot-grant.ts`, `src/copilot-auth.ts`: strict grant normalization and narrow pi-ai `CredentialStore` adapter; canonical compatibility and explicitly selected account records follow the account-binding contract.
|
|
118
118
|
- `src/client.ts`: `settings.models.provider-card` account UI, a `plugins.bundle.config` provider-routing page with Models/footer/section fallback, and independently managed optional Chat integration.
|
|
119
119
|
- `src/web-search-routing-config.ts`, `src/web-search-routing-card.ts`: plugin-owned cross-provider live routing settings and the plugin-detail control surface. The user-facing page exposes only primary and fallback providers. Routing is stored directly under the existing `github-copilot` settings namespace at `searchRouting`, mutating both leaves via nested paths `['searchRouting', 'searchProvider']` and `['searchRouting', 'defaultSearchProvider']` in one CAS call; legacy separate routing namespaces are read as fallback only. Revisions coordinate between routing and legacy `searchModel` resets so subsequent edits do not false-conflict. Hosted-search safety settings remain schema-owned rather than a routine tuning form. The Models fallback retains routing only.
|
|
120
|
-
- `
|
|
120
|
+
- `tests/fixtures/reasoning-presentation-core.fixture.ts`: native blank-reasoning rendering acceptance and independent Auto/Usage mount evidence. Do not restore the retired plugin renderer/provenance projection or change messages, replay indexes or Usage.
|
|
121
121
|
- `src/remote.ts`: Typert Remote contribution. Never add credential payloads here.
|
|
122
122
|
- `src/copilot-usage-host.ts`, `src/copilot-usage-remote.ts`, `src/copilot-usage-card.ts`, `src/copilot-usage-ui.ts`: bounded Host quota snapshots, an independent strict namespace and reversible composer presentation. No real account fetches in tests, private Client store/DOM injection, quota-specific credential owner or general model wire.
|
|
123
123
|
- `src/context-usage.ts`, `src/context-evidence.ts`,
|
|
@@ -230,8 +230,9 @@ The retained upstream baselines and current qualification target are:
|
|
|
230
230
|
- Official tag `dsh-v0.1.6-alpha.2`, commit `ddefc45fbc7f8e46dd73185e68295696d1297887`.
|
|
231
231
|
- Official tag `dsh-v0.2.0-rc.1`, commit `4878cdabd87d4041bdaff61d04c966883b9fd07a`; the independently verified Windows Desktop feed also identifies `0.2.0-rc.1`.
|
|
232
232
|
- Official tag `dsh-v0.2.0-rc.2`, commit `639ed015397290b3745d163aafe02ffee4aa3f84`; the signed installed Windows Desktop descriptor identifies the rc.2 shared peer graph.
|
|
233
|
+
- Official tag `dsh-v0.2.1-alpha.4`, commit `86a402200d95fecef4529d969836f1fe13c6cb0d`; exact source/npm qualification is separate from unverified candidate Desktop artifacts/signatures.
|
|
233
234
|
|
|
234
|
-
The release admission, development dependency and CI targets are exact official `0.2.
|
|
235
|
+
The release admission, development dependency and CI targets are exact official `0.2.1-alpha.4`; the other eleven pins remain historical evidence only. CI runs unchanged tagged-source and isolated exact published-npm-artifact fixtures on Windows and Linux. Public APIs require pi-ai `1.1.0`, Cordis `4.0.5-alpha.2`, schemastery `3.18.5-alpha.2` and storage-domain-compatible Zod `4.4.3`. The current fixture must await serialized `agent/created`, avoid new synchronous Session-history reads, and preserve MCP/PTC/workflow/Sandbox/Shell/image-offload/Team ownership. Native gateway fixtures bind an explicit public owner Peer and interactive Client carrier; Session-controller fixtures register native resources. Synthetic identities never authorize live access. Historical signed Desktop evidence is not alpha.4 package/signature acceptance. Neither source nor synthetic tests prove live endpoints, plugin activation, publication or loaded runtime state. See [the official-first review](./docs/official-first-021-alpha4.md); this update does not authorize Core implementation rewrites or experimental durable records.
|
|
235
236
|
|
|
236
237
|
These pins document compatibility evidence. They do not authorize creating another controlled Core patch or making one a prerequisite for new plugin fixes.
|
|
237
238
|
|
|
@@ -310,7 +311,7 @@ Then run `pnpm verify:tarball -- artifacts/dsh-github-copilot-<package-version>.
|
|
|
310
311
|
|
|
311
312
|
If the exact frozen install is blocked solely by an enterprise registry or network policy while the repository's GitHub Actions can obtain the unchanged pinned packages from an authorized official registry, record the attempted command and exact environmental failure as **local validation blocked**, not passed. A PR may proceed with that limitation disclosed; the complete required GitHub CI matrix, including its install, tests, build and package checks, is then the authoritative gate before merge. Never weaken or skip CI, substitute dependencies, bypass organizational restrictions, claim unrun local gates succeeded, or tag/release a revision whose required CI is not green. If CI has the same failure, resolve it through approved infrastructure rather than bypassing it.
|
|
312
313
|
|
|
313
|
-
The release CI matrix targets only exact official `0.2.
|
|
314
|
+
The release CI matrix targets only exact official `0.2.1-alpha.4` on Windows and Linux; earlier pins are not support gates. It runs the unchanged tagged-source runtime fixture, optional native Chat fixture, exact published-artifact adapter fixture and all 28 native reviewer regressions without skips. This is a required gate, not evidence that an unexecuted qualification passed. `verify:upstream` is static seam-marker evidence. `verify:controlled-core` exclusively installs a temporary config fixture, refuses an existing target, and removes only its own file; it is not full plugin activation. Published-artifact synthetic adapter fixtures do not prove live provider transport. The release job must wait for the complete reusable CI matrix on the tagged revision, then verify its own packed bytes before publishing.
|
|
314
315
|
|
|
315
316
|
### Evidence and side effects
|
|
316
317
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2-alpha.16 (prepared)
|
|
4
|
+
|
|
5
|
+
- Target exact official DSH 0.2.1-alpha.4 through unchanged public APIs, pi-ai 1.1.0, Cordis 4.0.5-alpha.2, schemastery 3.18.5-alpha.2 and storage-compatible Zod 4.4.3 (#420). Earlier rc.2 hosts must retain alpha.15; no version exemption or Core patch.
|
|
6
|
+
- Qualify the exact official reviewer package and exported callback, preserving fail-closed ownership, frozen requests and ordinary concurrent Chat. Exercise native dynamic system/tool conversion, noncooperative timeout settlement, account/Remote/compaction/replay and real selector mounting on Windows/Linux.
|
|
7
|
+
- Retire the redundant blank-Thinking renderer wrapper and its plugin-only provenance projection after native alpha.4 rendering demonstrates parity. Retain native settled/running/interrupted presentation acceptance and independent Auto/Usage explanations; never change messages or replay.
|
|
8
|
+
- Retain token-based recovery planning, certified-refresh identity, byte/semantic liveness, Usage ownership and independent diagnostics/gzip consent. Defer experimental durable plugin records; no routing-policy, history, settings or consent migration.
|
|
9
|
+
- Desktop alpha.4 artifacts/signatures, installed/loaded state and live OAuth/model/search remain unverified. This release does not authorize Desktop upgrade, profile installation or restart.
|
|
10
|
+
|
|
11
|
+
## 0.4.2-alpha.15 (prepared)
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
- 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.
|
|
15
|
+
|
|
3
16
|
## 0.4.2-alpha.14 (prepared)
|
|
4
17
|
|
|
5
18
|
- Correlate certified native OAuth refresh writes across Cordis traced credentials
|
package/README.md
CHANGED
|
@@ -8,10 +8,22 @@
|
|
|
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.16`.** This prerelease targets exact official DSH `0.2.1-alpha.4`; older rc.2 hosts must retain alpha.15 or their existing compatible release. Candidate Desktop artifacts/signatures are not verified, so this is not a Desktop-upgrade recommendation. The stable version remains on npm's `latest` tag; prereleases use `alpha`. Published, installed and loaded states remain separate. `0.4.2-alpha.1` was not published and its immutable tag will not be reused.
|
|
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
|
+
|
|
17
|
+
**DSH alpha.4 adaptation:** exact public APIs use pi-ai `1.1.0`, the official
|
|
18
|
+
Cordis/schemastery peers and storage-domain's Zod `4.4.3`. The
|
|
19
|
+
[fixed-target official-first review](https://github.com/cloga/dsh-github-copilot/blob/main/docs/official-first-021-alpha4.md)
|
|
20
|
+
records every retain/migrate/retire/defer decision. Alpha.4 natively hides blank
|
|
21
|
+
Thinking disclosures; the redundant plugin renderer and provenance projection
|
|
22
|
+
are retired without changing messages or replay. Exact native reviewer identity,
|
|
23
|
+
dynamic system/tool conversion, replay, account/Remote/compaction and mounted
|
|
24
|
+
selector regressions gate admission. No Core patch, version exemption, new
|
|
25
|
+
wire/catalog, policy migration or durable decision recording is introduced.
|
|
26
|
+
|
|
15
27
|
## What you can do
|
|
16
28
|
|
|
17
29
|
**High-cost Auto:** in **Manage → Model preferences**, mark costly models with
|
|
@@ -129,10 +141,14 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
129
141
|
For a **standalone named profile**:
|
|
130
142
|
|
|
131
143
|
```sh
|
|
132
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
144
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/dsh-github-copilot-0.4.2-alpha.16.tgz
|
|
133
145
|
```
|
|
134
146
|
|
|
135
|
-
|
|
147
|
+
The command above requires official DSH `0.2.1-alpha.4`. **Desktop rc.2 must not install alpha.16**; retain `dsh-github-copilot@0.4.2-alpha.15` there. Candidate Desktop package/signature and profile peer composition remain unverified. The [historical rc.2 bundled-CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) is not alpha.4 acceptance; a generic/global `dsh` shim is not equivalent. No install, restart, registry-policy bypass, peer patch or configuration deletion is authorized by this release.
|
|
148
|
+
|
|
149
|
+
Desktop's native package manager and qualified bundled CLI are profile-specific.
|
|
150
|
+
[Standalone offline maintenance](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)
|
|
151
|
+
is not a workaround for a Desktop-managed/reserved profile.
|
|
136
152
|
|
|
137
153
|
After an approved reload/restart:
|
|
138
154
|
|
|
@@ -322,14 +338,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
322
338
|
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
339
|
|
|
324
340
|
```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.
|
|
341
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/dsh-github-copilot-0.4.2-alpha.16.tgz
|
|
342
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/SHA256SUMS
|
|
327
343
|
sha256sum --check SHA256SUMS
|
|
328
344
|
```
|
|
329
345
|
|
|
330
346
|
```powershell
|
|
331
347
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
332
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
348
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.16.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
333
349
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
334
350
|
```
|
|
335
351
|
|
package/README.zh.md
CHANGED
|
@@ -8,10 +8,21 @@
|
|
|
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.16`。** 此预览版仅针对官方 DSH `0.2.1-alpha.4`;旧 rc.2 宿主须保留 alpha.15 或现有兼容版本。候选 Desktop 制品与签名未核验,因此这不是 Desktop 升级建议。稳定版仍在 npm `latest`,预览版使用 `alpha` 渠道。已发布、已安装、已加载是不同状态。`0.4.2-alpha.1` 未发布,其不可变 tag 不会复用。
|
|
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
|
+
|
|
17
|
+
**DSH alpha.4 适配:**公开 API 对齐 pi-ai `1.1.0`、官方 Cordis/schemastery peer,
|
|
18
|
+
以及 storage-domain 的 Zod `4.4.3`。
|
|
19
|
+
[固定目标的 official-first 调研](https://github.com/cloga/dsh-github-copilot/blob/main/docs/official-first-021-alpha4.md)
|
|
20
|
+
逐项记录保留/迁移/退役/延期决定。alpha.4 原生隐藏空白 Thinking 折叠行,
|
|
21
|
+
因此移除重复的插件 renderer 与来源投影,不改变消息或 replay。
|
|
22
|
+
精确原生 reviewer 身份、动态 system/tool 转换、
|
|
23
|
+
replay、账号/Remote/压缩与真实 selector 挂载回归共同约束准入。
|
|
24
|
+
不修改 Core,不豁免版本,不新增 wire/目录、迁移策略或持久决策记录。
|
|
25
|
+
|
|
15
26
|
## 你可以做什么
|
|
16
27
|
|
|
17
28
|
**高成本 Auto:**在 **Manage → Model preferences** 中用 **High cost** 标记
|
|
@@ -111,10 +122,14 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
111
122
|
**独立具名 profile**:
|
|
112
123
|
|
|
113
124
|
```sh
|
|
114
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
125
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/dsh-github-copilot-0.4.2-alpha.16.tgz
|
|
115
126
|
```
|
|
116
127
|
|
|
117
|
-
|
|
128
|
+
上面的命令要求官方 DSH `0.2.1-alpha.4`。**Desktop rc.2 不得安装 alpha.16**,应保留 `dsh-github-copilot@0.4.2-alpha.15`。候选 Desktop 包/签名及 profile peer 组合仍未核验。[历史 rc.2 随附 CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)不代表 alpha.4 验收;全局/普通 `dsh` shim 不等价。此版本不授权安装、重启、绕过包源政策、修改 peer 或删除配置。
|
|
129
|
+
|
|
130
|
+
Desktop 原生包管理器和已核验的随附 CLI 都有 profile 边界。
|
|
131
|
+
[独立 profile 离线维护](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)
|
|
132
|
+
不能用来绕过 Desktop 托管/保留 profile 的限制。
|
|
118
133
|
|
|
119
134
|
经批准 reload/restart 后:
|
|
120
135
|
|
|
@@ -301,14 +316,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
301
316
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
302
317
|
|
|
303
318
|
```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.
|
|
319
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/dsh-github-copilot-0.4.2-alpha.16.tgz
|
|
320
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.16/SHA256SUMS
|
|
306
321
|
sha256sum --check SHA256SUMS
|
|
307
322
|
```
|
|
308
323
|
|
|
309
324
|
```powershell
|
|
310
325
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
311
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
326
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.16.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
312
327
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
313
328
|
```
|
|
314
329
|
|
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.16"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"platforms": ["windows", "linux"],
|
|
20
20
|
"node": ">=22.19.0",
|
|
21
21
|
"dsh": {
|
|
22
|
-
"release": "0.2.
|
|
23
|
-
"tag": "dsh-v0.2.
|
|
24
|
-
"commit": "
|
|
25
|
-
"developmentRelease": "0.2.
|
|
26
|
-
"admittedReleases": ["0.2.
|
|
27
|
-
"peerRange": "0.2.
|
|
22
|
+
"release": "0.2.1-alpha.4",
|
|
23
|
+
"tag": "dsh-v0.2.1-alpha.4",
|
|
24
|
+
"commit": "86a402200d95fecef4529d969836f1fe13c6cb0d",
|
|
25
|
+
"developmentRelease": "0.2.1-alpha.4",
|
|
26
|
+
"admittedReleases": ["0.2.1-alpha.4"],
|
|
27
|
+
"peerRange": "0.2.1-alpha.4",
|
|
28
28
|
"baselines": [
|
|
29
29
|
{
|
|
30
30
|
"release": "0.1.1-rc.2",
|
|
@@ -224,6 +224,32 @@
|
|
|
224
224
|
"managedProviderValidation": "synthetic-tagged-source-runtime",
|
|
225
225
|
"resolvedProfileDiagnostics": "plugin-owned-empty-modelErrors",
|
|
226
226
|
"runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts"]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"release": "0.2.1-alpha.4",
|
|
230
|
+
"tag": "dsh-v0.2.1-alpha.4",
|
|
231
|
+
"commit": "86a402200d95fecef4529d969836f1fe13c6cb0d",
|
|
232
|
+
"source": "https://github.com/deepseek-ai/deepseek-harness",
|
|
233
|
+
"desktopRelease": "not-verified",
|
|
234
|
+
"modelsUi": "provider-card",
|
|
235
|
+
"providerHeaders": "fetch-validated-discovery",
|
|
236
|
+
"strictModeCompat": "route-switch",
|
|
237
|
+
"fileContentHelper": "contentHasFile",
|
|
238
|
+
"agentCreation": "awaited-serial-agent-created",
|
|
239
|
+
"sessionHistory": "request-header-and-projections-no-new-sync-history",
|
|
240
|
+
"sessionFormatVersion": 4,
|
|
241
|
+
"strictRemoteCodecs": "create-factories-with-legacy-schema-bridge",
|
|
242
|
+
"roleChildDescriptorVersion": 3,
|
|
243
|
+
"roleChildCacheVersion": 2,
|
|
244
|
+
"roleChildHistory": "unknown-legacy-history-fail-closed",
|
|
245
|
+
"runtimeDependencies": "public-resolution-and-unload",
|
|
246
|
+
"clientSessionContext": "multiple-session-owner-isolation",
|
|
247
|
+
"evidenceScope": "unchanged-tagged-source-target",
|
|
248
|
+
"standaloneNpmArtifacts": "tested",
|
|
249
|
+
"desktopPackageSet": "not-materialized",
|
|
250
|
+
"managedProviderValidation": "synthetic-tagged-source-runtime",
|
|
251
|
+
"resolvedProfileDiagnostics": "plugin-owned-empty-modelErrors",
|
|
252
|
+
"runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
|
|
227
253
|
}
|
|
228
254
|
],
|
|
229
255
|
"packages": [
|
|
@@ -249,14 +275,14 @@
|
|
|
249
275
|
"@deepseek-ai/dsh-web-search-deepseek"
|
|
250
276
|
]
|
|
251
277
|
},
|
|
252
|
-
"piAi": "
|
|
278
|
+
"piAi": "1.1.0",
|
|
253
279
|
"runtimeDependencies": {
|
|
254
|
-
"@earendil-works/pi-ai": "
|
|
255
|
-
"zod": "4.
|
|
280
|
+
"@earendil-works/pi-ai": "1.1.0",
|
|
281
|
+
"zod": "4.4.3"
|
|
256
282
|
},
|
|
257
283
|
"sharedPeerDependencies": {
|
|
258
|
-
"@deepseek-ai/dsh-authorization": "0.2.
|
|
259
|
-
"@deepseek-ai/schemastery": "
|
|
284
|
+
"@deepseek-ai/dsh-authorization": "0.2.1-alpha.4",
|
|
285
|
+
"@deepseek-ai/schemastery": "3.18.5-alpha.2"
|
|
260
286
|
},
|
|
261
287
|
"clientExternals": {
|
|
262
288
|
"react": {
|
|
@@ -482,7 +508,7 @@
|
|
|
482
508
|
{"file": "package.json", "marker": "\"external\": ["}
|
|
483
509
|
],
|
|
484
510
|
"tests": [
|
|
485
|
-
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "retains historical graphs
|
|
511
|
+
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "retains historical graphs without claiming an unverified alpha.4 Desktop graph"},
|
|
486
512
|
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "shared graph gate rejects bundled, optional, incompatible, or unaudited host ownership"},
|
|
487
513
|
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "client externals stay outside the strict Node peer graph"}
|
|
488
514
|
]
|
|
@@ -618,8 +644,9 @@
|
|
|
618
644
|
{"file": "src/manual-compaction-recovery.ts", "marker": "extends BasicCompactionEngine"},
|
|
619
645
|
{"file": "src/manual-compaction-recovery.ts", "marker": "automaticRecovery: z.boolean().default(true)"},
|
|
620
646
|
{"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-
|
|
647
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "reduceCompactionInputLimit(input, inputLimit, estimate)"},
|
|
648
|
+
{"file": "src/manual-compaction-recovery.ts", "marker": "createCompactionTokenEstimator(meter)"},
|
|
649
|
+
{"file": "src/compaction-input-estimate.ts", "marker": "COPILOT_MANUAL_RECOVERY_TOKEN_ESTIMATE_INVALID"},
|
|
623
650
|
{"file": "src/manual-compaction-recovery.ts", "marker": "COPILOT_MANUAL_RECOVERY_"},
|
|
624
651
|
{"file": "src/background-compaction.ts", "marker": "copilot-compact"},
|
|
625
652
|
{"file": "src/compaction-replay.ts", "marker": "request.purpose !== 'compaction'"},
|
|
@@ -637,6 +664,8 @@
|
|
|
637
664
|
{"file": "tests/compaction-continuation-ui.spec.ts", "name": "keeps unavailable distinct and dismissible without hiding a later failure"},
|
|
638
665
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "reduces an oversized balanced history with bounded complete calls and an unmarked aggregate audit"},
|
|
639
666
|
{"file": "tests/compaction-input-estimate.spec.ts", "name": "avoids metadata-driven sixteen-call exhaustion without changing dispatched messages"},
|
|
667
|
+
{"file": "tests/compaction-input-estimate.spec.ts", "name": "uses token units for a long balanced span instead of treating bytes as tokens"},
|
|
668
|
+
{"file": "tests/fixtures/compaction-pressure-core.fixture.ts", "name": "prices a long-lived balanced tool span in native tokens, retaining indivisible admission limits"},
|
|
640
669
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects an indivisible span before dispatch and leaves recovery to native failure handling"},
|
|
641
670
|
{"file": "tests/manual-compaction-recovery.spec.ts", "name": "rejects unmatched tool calls before dispatch instead of splitting a call and result"},
|
|
642
671
|
{"file": "tests/background-compaction.spec.ts", "name": "acknowledges before completion and outlives a five-minute caller deadline"},
|
|
@@ -983,18 +1012,14 @@
|
|
|
983
1012
|
{
|
|
984
1013
|
"id": "replay-safe-copilot-reasoning-presentation",
|
|
985
1014
|
"required": true,
|
|
986
|
-
"activation": "
|
|
1015
|
+
"activation": "native-alpha4-client-renderer",
|
|
1016
|
+
"owner": "@deepseek-ai/dsh-client-ui-chat",
|
|
987
1017
|
"sourceMarkers": [
|
|
988
|
-
{"file": "
|
|
989
|
-
{"file": "src/reasoning-presentation.ts", "marker": "projectReasoningPresentation"},
|
|
990
|
-
{"file": "src/reasoning-presentation.ts", "marker": "github-copilot-assistant-origin"}
|
|
1018
|
+
{"file": "scripts/verify-upstream-baseline.mjs", "marker": "if (block.text.trim() === '') break"}
|
|
991
1019
|
],
|
|
992
1020
|
"tests": [
|
|
993
|
-
{"file": "tests/
|
|
994
|
-
{"file": "tests/reasoning-presentation.
|
|
995
|
-
{"file": "tests/reasoning-presentation.spec.ts", "name": "retires on any third-party override conflict and resumes only when safe"},
|
|
996
|
-
{"file": "tests/client.spec.ts", "name": "does not delay authorization while the optional reasoning presentation waits for Core services"},
|
|
997
|
-
{"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders answers and public summaries without the fifteen empty native Think rows"}
|
|
1021
|
+
{"file": "tests/client.spec.ts", "name": "does not delay authorization while optional Auto projections wait for Core services"},
|
|
1022
|
+
{"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders native answers and summaries without blank Thinking disclosures (%s)"}
|
|
998
1023
|
]
|
|
999
1024
|
},
|
|
1000
1025
|
{
|
|
@@ -1300,7 +1325,7 @@
|
|
|
1300
1325
|
"id": "dsh-supported-baselines-fail-loud-guard",
|
|
1301
1326
|
"required": true,
|
|
1302
1327
|
"sourceMarkers": [
|
|
1303
|
-
{"file": "src/compatibility.ts", "marker": "peerRange: '0.2.
|
|
1328
|
+
{"file": "src/compatibility.ts", "marker": "peerRange: '0.2.1-alpha.4'"}
|
|
1304
1329
|
],
|
|
1305
1330
|
"tests": [
|
|
1306
1331
|
{"file": "tests/compatibility.spec.ts", "name": "admits only the exact current official release"},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Native Auto reviewer sampling compatibility
|
|
2
2
|
|
|
3
3
|
The plugin automatically omits `temperature` only from the official DSH
|
|
4
|
-
`0.2.0-rc.2` Auto reviewer root's account-proven managed `openai-responses`
|
|
4
|
+
exact `0.2.0-rc.2` or `0.2.1-alpha.4` Auto reviewer root's account-proven managed `openai-responses`
|
|
5
5
|
requests. No user opt-in is required. Concurrent ordinary Chat, even on the same
|
|
6
6
|
Session/model, retains its requested sampling. No supplier capability is inferred
|
|
7
7
|
from `supports.thinking`; the policy addresses the reported unsupported-temperature
|
|
@@ -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
|
|