dsh-github-copilot 0.4.2-alpha.16 → 0.4.2-alpha.18.dsh.0.2.0.rc.2
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 +6 -7
- package/CHANGELOG.md +25 -7
- package/README.md +8 -20
- package/README.zh.md +8 -19
- package/deployment-baseline.json +37 -45
- package/docs/auto-review-sampling.md +1 -1
- package/docs/image-input-compatibility.md +80 -11
- package/docs/npm-distribution.md +15 -0
- package/lib/client.js +2697 -1179
- package/lib/client.js.map +1 -1
- package/lib/index.js +119 -86
- package/lib/types/compatibility.d.ts +4 -4
- package/lib/types/image-input-admission.d.ts +18 -2
- package/lib/types/reasoning-presentation.d.ts +55 -0
- package/package.json +64 -69
- package/docs/official-first-021-alpha4.md +0 -157
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 `0.2.
|
|
32
|
+
`dsh-github-copilot` currently admits and targets only official DSH and Windows Desktop `0.2.0-rc.2`. Ten earlier DSH pins remain in `deployment-baseline.json` as historical evidence, not current support or CI release gates. 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 owns twelve narrow surfaces:
|
|
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 maintains twelve narrow surfaces and ownership boundaries:
|
|
|
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. Optional, provider-scoped Chat presentation for completed empty reasoning disclosures; 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
|
+
- `src/reasoning-presentation.ts`: guarded native Chat delegation and historical Copilot provenance; filters temporary view props only, never messages, signatures, 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,9 +230,8 @@ 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.
|
|
234
233
|
|
|
235
|
-
The release admission, development dependency and CI targets are exact official `0.2.
|
|
234
|
+
The release admission, development dependency and CI targets are exact official `0.2.0-rc.2`; the other ten pins remain historical evidence only. CI runs the unchanged tagged-source runtime fixture and an isolated exact published-npm-artifact fixture for `0.2.0-rc.2` on Windows and Linux. The current fixture must await serialized `agent/created`, avoid new synchronous Session-history reads, and verify MCP resource cursors, PTC/workflow names, cancellable Sandbox/Shell preparation, optional-plugin startup policy, attachment cache separation, durable `IMAGE_OFFLOAD_REQUIRED` projection/retry and Team pagination without taking ownership of those services. Signed installed Desktop package-set evidence proves peer ownership only; neither it nor synthetic tests prove live endpoints, plugin activation, publication or loaded runtime state. Public Host, Client and Remote seams remain available; this baseline update does not authorize Core implementation rewrites.
|
|
236
235
|
|
|
237
236
|
These pins document compatibility evidence. They do not authorize creating another controlled Core patch or making one a prerequisite for new plugin fixes.
|
|
238
237
|
|
|
@@ -311,7 +310,7 @@ Then run `pnpm verify:tarball -- artifacts/dsh-github-copilot-<package-version>.
|
|
|
311
310
|
|
|
312
311
|
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.
|
|
313
312
|
|
|
314
|
-
The release CI matrix targets only exact official `0.2.
|
|
313
|
+
The release CI matrix targets only exact official `0.2.0-rc.2` on Windows and Linux; earlier pins are not support gates. It runs the unchanged tagged-source runtime fixture, optional native Chat fixture, and exact published-artifact adapter fixture. This is a required gate, not evidence that a candidate qualification has executed. `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.
|
|
315
314
|
|
|
316
315
|
### Evidence and side effects
|
|
317
316
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.4.2-alpha.
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
3
|
+
## 0.4.2-alpha.18.dsh.0.2.0.rc.2 (prepared)
|
|
4
|
+
|
|
5
|
+
- Stop rejecting a valid native-projected image format solely because it is absent
|
|
6
|
+
from the supplier-advertised list. Log one fixed Host diagnostic per projected
|
|
7
|
+
request and let native transport/server adjudication proceed; retain invalid
|
|
8
|
+
MIME, non-vision, account, cancellation and capacity guards.
|
|
9
|
+
- No format-support claim, format-aware Auto, conversion, extra retry/switch or
|
|
10
|
+
history/Usage mutation. This is a prepared legacy rc.2 maintenance increment
|
|
11
|
+
with an exact-Core suffix, not a change to newer Core-specific release sequences.
|
|
12
|
+
- This entry does not imply local profile installation or loaded-runtime activation.
|
|
13
|
+
|
|
14
|
+
## 0.4.2-alpha.17 (prepared)
|
|
15
|
+
|
|
16
|
+
- Backport #426's bounded projected-image admission diagnostics to official DSH
|
|
17
|
+
`0.2.0-rc.2`, retaining pi-ai `0.87.1` and the unchanged Core dependency graph.
|
|
18
|
+
- Explain historical-image failures on text-only continuations through the
|
|
19
|
+
existing native `INVALID_REQUEST` finish, with safe model/MIME/position/build
|
|
20
|
+
evidence. Preserve fail-closed admission, history and no automatic switch or
|
|
21
|
+
retry. Auto's general vision eligibility does not guarantee projected MIME fit.
|
|
22
|
+
- Prepared for a separately authorized local Desktop installation; this entry
|
|
23
|
+
does not claim publication, a Core upgrade, loaded-runtime activation or live
|
|
24
|
+
model recovery.
|
|
25
|
+
- Enable exact rc.2 maintenance push delivery through the unchanged full
|
|
26
|
+
compatibility matrix and original-archive GitHub/npm OIDC pipeline; arbitrary
|
|
27
|
+
maintenance refs and non-rc.2 archives remain rejected.
|
|
10
28
|
|
|
11
29
|
## 0.4.2-alpha.15 (prepared)
|
|
12
30
|
|
package/README.md
CHANGED
|
@@ -8,22 +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 maintenance prerelease: `0.4.2-alpha.18.dsh.0.2.0.rc.2`.** This rc.2 image-format mitigation is not yet published; its versioned Release commands below apply only after publication. This legacy maintenance increment preserves increasing SemVer and identifies its exact Core; it does not change newer Core-specific release sequences. `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
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
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
|
-
|
|
27
17
|
## What you can do
|
|
28
18
|
|
|
29
19
|
**High-cost Auto:** in **Manage → Model preferences**, mark costly models with
|
|
@@ -141,14 +131,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
141
131
|
For a **standalone named profile**:
|
|
142
132
|
|
|
143
133
|
```sh
|
|
144
|
-
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.18.dsh.0.2.0.rc.2/dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz
|
|
145
135
|
```
|
|
146
136
|
|
|
147
|
-
|
|
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.
|
|
137
|
+
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.18.dsh.0.2.0.rc.2` after publication; 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.
|
|
152
138
|
|
|
153
139
|
After an approved reload/restart:
|
|
154
140
|
|
|
@@ -253,6 +239,8 @@ The same failure can include request-scoped native local body-write/header miles
|
|
|
253
239
|
|
|
254
240
|
HTTP/SSE liveness separates five-minute byte idle from bounded ten-minute assistant-output silence by default. Consumer work is excluded; WebSocket/explicit `auto` stays native-only. This does not cure supplier HTTP 408s. Images are admitted against actual native-projected MIME evidence; the plugin does not own conversion or infer format support from filenames. [Image compatibility](./docs/image-input-compatibility.md).
|
|
255
241
|
|
|
242
|
+
Image admission still rejects non-vision models and missing/invalid projected image MIME. A valid image MIME outside the supplier's advertised list no longer blocks the request: declarations alone do not prove endpoint rejection. The Host logs only `COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED`, at most once per projected request, then delegates to the native request and server without adding retries, conversion or model switching. Auto still checks general vision capability, not candidate-specific formats. This mitigation does not establish WebP support for any model; native failures and all account, cancellation and capacity guards remain unchanged.
|
|
243
|
+
|
|
256
244
|
Native rc.2 Auto authorization review requests `temperature: 0`. The plugin now automatically omits it **only for the authenticated official Auto reviewer root on account-discovered managed OpenAI Responses**; no switch is needed. Concurrent ordinary Chat, even on the same Session/model, retains its temperature. Public Loader callback identity and same-profile package ownership authenticate the caller; unknown identity, aliases, descendants, other protocols/providers and canonical Core-owned Copilot remain native, with bounded diagnostics for unqualified reviewer scope. No capability is inferred from `supports.thinking`. Frozen inputs, native account/cancellation guards, strict verdicts and fail-closed tool denial remain intact; no retries, permission changes or settings migration occur. The independent legacy `github-copilot.responsesOmitTemperature` override remains default `false`; explicit `true` still omits temperature from **all** managed Responses requests, not just review. See [public scope and qualification limits](./docs/auto-review-sampling.md).
|
|
257
245
|
|
|
258
246
|
## Settings and troubleshooting
|
|
@@ -338,14 +326,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
338
326
|
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.
|
|
339
327
|
|
|
340
328
|
```sh
|
|
341
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
342
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
329
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.18.dsh.0.2.0.rc.2/dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz
|
|
330
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.18.dsh.0.2.0.rc.2/SHA256SUMS
|
|
343
331
|
sha256sum --check SHA256SUMS
|
|
344
332
|
```
|
|
345
333
|
|
|
346
334
|
```powershell
|
|
347
335
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
348
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
336
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
349
337
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
350
338
|
```
|
|
351
339
|
|
package/README.zh.md
CHANGED
|
@@ -8,21 +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)
|
|
11
|
+
**稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布维护预览版:`0.4.2-alpha.18.dsh.0.2.0.rc.2`。** 此 rc.2 图片格式缓解尚未发布,下方版本化 Release 命令仅在发布后适用。这是旧维护线的递增版本,以后缀标明精确 Core,不改变较新 Core 的独立版本序列。`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
15
|
**压缩规划:**alpha.15 修复独立选择的恢复引擎将字节数与 token 预算直接比较的问题,改用公开的原生 token meter,保留完整工具关系和最终原生准入。真正超大的配对历史单元仍明确失败;这不是历史修复,也不保证恢复成功。参见[压缩恢复](./docs/manual-compaction-recovery.md)。
|
|
16
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
|
-
|
|
26
17
|
## 你可以做什么
|
|
27
18
|
|
|
28
19
|
**高成本 Auto:**在 **Manage → Model preferences** 中用 **High cost** 标记
|
|
@@ -122,14 +113,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
122
113
|
**独立具名 profile**:
|
|
123
114
|
|
|
124
115
|
```sh
|
|
125
|
-
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.18.dsh.0.2.0.rc.2/dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz
|
|
126
117
|
```
|
|
127
118
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Desktop 原生包管理器和已核验的随附 CLI 都有 profile 边界。
|
|
131
|
-
[独立 profile 离线维护](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)
|
|
132
|
-
不能用来绕过 Desktop 托管/保留 profile 的限制。
|
|
119
|
+
**Desktop** 原生包管理器接受精确 npm spec,例如发布后的 `dsh-github-copilot@0.4.2-alpha.18.dsh.0.2.0.rc.2`;稳定版发布到 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 或删除配置。
|
|
133
120
|
|
|
134
121
|
经批准 reload/restart 后:
|
|
135
122
|
|
|
@@ -231,6 +218,8 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
|
|
|
231
218
|
|
|
232
219
|
HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
|
|
233
220
|
|
|
221
|
+
图片准入仍拒绝非视觉模型以及缺失/无效的投影图片 MIME。有效图片 MIME 不在供应商声明列表中时不再阻断请求:声明本身不能证明端点会拒绝。Host 每个投影请求最多记录一次固定码 `COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED`,随后交给原生请求和服务端裁决,不新增重试、转换或换模型。Auto 仍只检查通用视觉能力,不保证候选模型接受具体格式。此缓解不证明任何模型支持 WebP;原生错误及账户、取消、容量门禁保持不变。
|
|
222
|
+
|
|
234
223
|
原生 rc.2 Auto 授权审查以 `temperature: 0` 请求模型。插件现在**仅对身份已验证的官方 Auto reviewer 根上下文、账号发现的托管 OpenAI Responses 请求自动省略此参数**,无需开启开关。同一 Session/模型的并发普通 Chat 仍保留 temperature。身份由公开 Loader 回调与同 profile 包归属共同验证;未知身份、别名、子上下文、其它协议/供应方以及 Core 所有的 canonical Copilot 保持原生行为,未验证的 reviewer 范围只报告有界诊断。不会从 `supports.thinking` 推断兼容性。冻结输入、账号/取消约束、严格 verdict 和失败关闭的工具拒绝保持不变;没有重试、权限变更或设置迁移。独立的旧兼容覆盖项 `github-copilot.responsesOmitTemperature` 仍默认 `false`;显式 `true` 才影响**所有**托管 Responses 请求,不限于 review。参见[公开范围与验证限制](./docs/auto-review-sampling.md)。
|
|
235
224
|
|
|
236
225
|
## 设置与排障
|
|
@@ -316,14 +305,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
316
305
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
317
306
|
|
|
318
307
|
```sh
|
|
319
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
320
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
308
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.18.dsh.0.2.0.rc.2/dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz
|
|
309
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.18.dsh.0.2.0.rc.2/SHA256SUMS
|
|
321
310
|
sha256sum --check SHA256SUMS
|
|
322
311
|
```
|
|
323
312
|
|
|
324
313
|
```powershell
|
|
325
314
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
326
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
315
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.18.dsh.0.2.0.rc.2.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
327
316
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
328
317
|
```
|
|
329
318
|
|
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.18.dsh.0.2.0.rc.2"
|
|
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.0-rc.2",
|
|
23
|
+
"tag": "dsh-v0.2.0-rc.2",
|
|
24
|
+
"commit": "639ed015397290b3745d163aafe02ffee4aa3f84",
|
|
25
|
+
"developmentRelease": "0.2.0-rc.2",
|
|
26
|
+
"admittedReleases": ["0.2.0-rc.2"],
|
|
27
|
+
"peerRange": "0.2.0-rc.2",
|
|
28
28
|
"baselines": [
|
|
29
29
|
{
|
|
30
30
|
"release": "0.1.1-rc.2",
|
|
@@ -224,32 +224,6 @@
|
|
|
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"]
|
|
253
227
|
}
|
|
254
228
|
],
|
|
255
229
|
"packages": [
|
|
@@ -275,14 +249,14 @@
|
|
|
275
249
|
"@deepseek-ai/dsh-web-search-deepseek"
|
|
276
250
|
]
|
|
277
251
|
},
|
|
278
|
-
"piAi": "
|
|
252
|
+
"piAi": "0.87.1",
|
|
279
253
|
"runtimeDependencies": {
|
|
280
|
-
"@earendil-works/pi-ai": "
|
|
281
|
-
"zod": "4.
|
|
254
|
+
"@earendil-works/pi-ai": "0.87.1",
|
|
255
|
+
"zod": "4.6.5"
|
|
282
256
|
},
|
|
283
257
|
"sharedPeerDependencies": {
|
|
284
|
-
"@deepseek-ai/dsh-authorization": "0.2.
|
|
285
|
-
"@deepseek-ai/schemastery": "3.18.
|
|
258
|
+
"@deepseek-ai/dsh-authorization": "0.2.0-rc.2",
|
|
259
|
+
"@deepseek-ai/schemastery": "^3.18.4"
|
|
286
260
|
},
|
|
287
261
|
"clientExternals": {
|
|
288
262
|
"react": {
|
|
@@ -508,7 +482,7 @@
|
|
|
508
482
|
{"file": "package.json", "marker": "\"external\": ["}
|
|
509
483
|
],
|
|
510
484
|
"tests": [
|
|
511
|
-
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "retains historical graphs
|
|
485
|
+
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "retains historical graphs and audits signed rc.2 Desktop peer ownership"},
|
|
512
486
|
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "shared graph gate rejects bundled, optional, incompatible, or unaudited host ownership"},
|
|
513
487
|
{"file": "tests/scripts/desktop-package-graph.test.mjs", "name": "client externals stay outside the strict Node peer graph"}
|
|
514
488
|
]
|
|
@@ -681,6 +655,20 @@
|
|
|
681
655
|
{"file": "tests/preview-route.spec.ts", "name": "binds explicit summary capacity proof to its Agent rather than the current default"}
|
|
682
656
|
]
|
|
683
657
|
},
|
|
658
|
+
{
|
|
659
|
+
"id": "image-format-declaration-mitigation",
|
|
660
|
+
"required": true,
|
|
661
|
+
"activation": "native-projected-image-inspection",
|
|
662
|
+
"sourceMarkers": [
|
|
663
|
+
{"file": "src/image-input-admission.ts", "marker": "COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED"},
|
|
664
|
+
{"file": "src/image-input-admission.ts", "marker": "COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE"},
|
|
665
|
+
{"file": "src/preview-route.ts", "marker": "owner.imageDiagnostic"}
|
|
666
|
+
],
|
|
667
|
+
"tests": [
|
|
668
|
+
{"file": "tests/preview-route.spec.ts", "name": "delegates projected image formats with independent structural validation: $role / $mode"},
|
|
669
|
+
{"file": "tests/auto-model-routing.spec.ts", "name": "delegates format mismatch after Auto selects for historical %s images"}
|
|
670
|
+
]
|
|
671
|
+
},
|
|
684
672
|
{
|
|
685
673
|
"id": "account-driven-provider-metadata",
|
|
686
674
|
"required": true,
|
|
@@ -1012,14 +1000,18 @@
|
|
|
1012
1000
|
{
|
|
1013
1001
|
"id": "replay-safe-copilot-reasoning-presentation",
|
|
1014
1002
|
"required": true,
|
|
1015
|
-
"activation": "
|
|
1016
|
-
"owner": "@deepseek-ai/dsh-client-ui-chat",
|
|
1003
|
+
"activation": "optional-guarded-client-seam",
|
|
1017
1004
|
"sourceMarkers": [
|
|
1018
|
-
{"file": "
|
|
1005
|
+
{"file": "src/client.ts", "marker": "ctx.inject(['uiConversation', 'slots']"},
|
|
1006
|
+
{"file": "src/reasoning-presentation.ts", "marker": "projectReasoningPresentation"},
|
|
1007
|
+
{"file": "src/reasoning-presentation.ts", "marker": "github-copilot-assistant-origin"}
|
|
1019
1008
|
],
|
|
1020
1009
|
"tests": [
|
|
1021
|
-
{"file": "tests/
|
|
1022
|
-
{"file": "tests/
|
|
1010
|
+
{"file": "tests/reasoning-presentation.spec.ts", "name": "removes fifteen empty rows without reading or changing encrypted durable replay material"},
|
|
1011
|
+
{"file": "tests/reasoning-presentation.spec.ts", "name": "reconstructs cold/prepended history without step/start and never borrows a current route"},
|
|
1012
|
+
{"file": "tests/reasoning-presentation.spec.ts", "name": "retires on any third-party override conflict and resumes only when safe"},
|
|
1013
|
+
{"file": "tests/client.spec.ts", "name": "does not delay authorization while the optional reasoning presentation waits for Core services"},
|
|
1014
|
+
{"file": "tests/fixtures/reasoning-presentation-core.fixture.ts", "name": "renders answers and public summaries without the fifteen empty native Think rows"}
|
|
1023
1015
|
]
|
|
1024
1016
|
},
|
|
1025
1017
|
{
|
|
@@ -1325,7 +1317,7 @@
|
|
|
1325
1317
|
"id": "dsh-supported-baselines-fail-loud-guard",
|
|
1326
1318
|
"required": true,
|
|
1327
1319
|
"sourceMarkers": [
|
|
1328
|
-
{"file": "src/compatibility.ts", "marker": "peerRange: '0.2.
|
|
1320
|
+
{"file": "src/compatibility.ts", "marker": "peerRange: '0.2.0-rc.2'"}
|
|
1329
1321
|
],
|
|
1330
1322
|
"tests": [
|
|
1331
1323
|
{"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
|
-
|
|
4
|
+
`0.2.0-rc.2` 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
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# Image input compatibility
|
|
2
2
|
|
|
3
|
-
Target: official DSH / Windows Desktop `0.2.0-rc.2`. Plugin-only.
|
|
3
|
+
Target: official DSH / Windows Desktop `0.2.0-rc.2`. Plugin-only. This
|
|
4
|
+
maintenance-line backport of #426 and #430 format mitigation preserve the rc.2 dependency graph; they
|
|
5
|
+
does not install or require the separate alpha.5 Core baseline.
|
|
4
6
|
|
|
5
7
|
## Current behavior
|
|
6
8
|
|
|
@@ -20,13 +22,47 @@ hook checks the native transcript's **projected MIME** before wire dispatch:
|
|
|
20
22
|
|---|---|
|
|
21
23
|
| `COPILOT_IMAGE_INPUT_UNSUPPORTED` | Current account model does not admit image input |
|
|
22
24
|
| `COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE` | Actual projected MIME evidence is unavailable |
|
|
23
|
-
| `
|
|
25
|
+
| `COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED` | Nonblocking Host diagnostic: valid projected MIME is absent from the explicit advertised list |
|
|
24
26
|
|
|
25
27
|
Omitted account MIME lists preserve existing verified vision behavior but do
|
|
26
28
|
not prove universal format acceptance. The plugin neither invents a list nor
|
|
27
|
-
converts images itself.
|
|
29
|
+
converts images itself. An explicit advertised list, including an empty list,
|
|
30
|
+
is not proof that the endpoint rejects an unlisted valid image format.
|
|
31
|
+
The plugin reports only the fixed `COPILOT_IMAGE_MEDIA_TYPE_UNADVERTISED` code
|
|
32
|
+
through the existing Host logger, at most once per projected request, and
|
|
33
|
+
delegates to the native request and server. This is not a Client notice, stored
|
|
34
|
+
diagnostic population or evidence of format support. Native error/finish behavior, historical attachments,
|
|
28
35
|
turn freezing and existing cancellation/retry policy stay unchanged.
|
|
29
36
|
|
|
37
|
+
### Admission error details
|
|
38
|
+
|
|
39
|
+
For non-vision input or missing/invalid projected MIME, the standard native
|
|
40
|
+
`INVALID_REQUEST` failure message retains the diagnostic
|
|
41
|
+
code and now explains why the request was blocked before selected-model wire
|
|
42
|
+
dispatch. It includes a bounded, content-free JSON diagnostic: selected real
|
|
43
|
+
model ID (safe identifiers only, otherwise `unavailable`), normalized projected
|
|
44
|
+
MIME (invalid/missing/overlong values become `unavailable`), up to eight explicit
|
|
45
|
+
allowed MIME types with total count and truncation flag, projected message/block
|
|
46
|
+
zero-based indices, allowlisted projected role, and this plugin build's version.
|
|
47
|
+
An absent allowed list is `null`, not an empty list or universal format proof.
|
|
48
|
+
These positions refer to the native projected transcript, not durable history
|
|
49
|
+
IDs or an attachment identity. Only the first rejected image is reported.
|
|
50
|
+
Advertised-format mismatches do not produce this failure or its metadata.
|
|
51
|
+
|
|
52
|
+
This uses the existing error/finish presentation, not a new Remote, collector,
|
|
53
|
+
diagnostic store, or history event. Image bytes, URLs, paths, prompt text and
|
|
54
|
+
credentials are never included. Native handling of failure messages is unchanged;
|
|
55
|
+
this is not a claim that native failures are never retained. The version describes
|
|
56
|
+
the build producing this error, not the plugin loaded during an earlier incident.
|
|
57
|
+
Earlier Auto assessment traffic, if any, is not a selected-model dispatch.
|
|
58
|
+
|
|
59
|
+
History images can cause this failure on a text-only continuation. The error
|
|
60
|
+
offers explicit next-turn choices: select a model whose current advertised formats
|
|
61
|
+
accept the projection, or start a separate text-only Session without those
|
|
62
|
+
historical images. Missing MIME needs investigation using the diagnostic, not
|
|
63
|
+
guessing from filenames. There is no automatic retry, model switch, image removal,
|
|
64
|
+
conversion, or history mutation.
|
|
65
|
+
|
|
30
66
|
## Evidence layers and recovery limits
|
|
31
67
|
|
|
32
68
|
Source filename, durable attachment MIME and outgoing projected MIME are
|
|
@@ -40,24 +76,57 @@ Auto filtering from durable MIME can reject a model whose native projection
|
|
|
40
76
|
would be accepted; candidate-specific projection would require another public
|
|
41
77
|
contract and reviewed tests.
|
|
42
78
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
79
|
+
Auto currently filters general image capability, not the final candidate-specific
|
|
80
|
+
projected MIME. The public seam used here receives projection only in
|
|
81
|
+
`inspectRequest`, after model selection. Exact rc.2 `prepareCall()` captures
|
|
82
|
+
model/config metadata and a stream capability, not a projected transcript.
|
|
83
|
+
Native image preparation occurs during stream consumption after auth resolution;
|
|
84
|
+
the public attachment target exposes dimensions and byte budget, not an output
|
|
85
|
+
format selector or a reusable prepared-transcript handoff. Do not duplicate that
|
|
86
|
+
projection or infer outgoing formats from durable MIME.
|
|
87
|
+
|
|
88
|
+
The user-approved #430 mitigation removes only the advertised-format mismatch
|
|
89
|
+
veto; it does not require preselection projection, implement format-aware Auto,
|
|
90
|
+
or prove that Grok or any Copilot endpoint supports WebP. xAI's documentation
|
|
91
|
+
lists JPEG/PNG, but that declaration and a local precheck failure are not a live
|
|
92
|
+
Copilot endpoint rejection. The request now reaches the unchanged native path
|
|
93
|
+
once; existing native retry policy remains its owner, with no plugin-added retry.
|
|
94
|
+
Missing/invalid MIME, non-vision input, account/proof, cancellation and capacity
|
|
95
|
+
checks remain independent. Unlisted formats may still be rejected by the server.
|
|
96
|
+
|
|
97
|
+
The mitigation removes an overly strict local format veto, not every provider 400.
|
|
98
|
+
Whether or not advertised formats and outgoing projection agree, an endpoint
|
|
99
|
+
rejection retains the native error. Do not invent capability corrections,
|
|
46
100
|
reselect mid-turn, add a fallback wire or replay the request automatically.
|
|
47
101
|
An explicit smaller [native image budget](./copilot-compaction.md) changes
|
|
48
102
|
outgoing visibility through Core offload; it is not a supplier JSON threshold.
|
|
49
103
|
|
|
50
104
|
## Verification
|
|
51
105
|
|
|
106
|
+
`node --test tests/scripts/image-input-admission.test.mjs` exercises the real
|
|
107
|
+
TypeScript admission helper using Node's built-in runner: historical user/tool
|
|
108
|
+
projections, missing/invalid MIME, nonblocking unadvertised formats, absent versus empty lists,
|
|
109
|
+
bounded redacted diagnostics, no private-content reads and no input mutation.
|
|
110
|
+
It does not exercise the native adapter or Client.
|
|
111
|
+
`tests/preview-route.spec.ts` covers the native failure/finish surface and no
|
|
112
|
+
selected-model wire on structural rejection and single native delegation on format
|
|
113
|
+
mismatch; `tests/auto-model-routing.spec.ts` preserves the
|
|
114
|
+
explicit separation between Auto vision eligibility and final projected-format
|
|
115
|
+
admission. These require the unchanged pinned dependencies. Passing the
|
|
116
|
+
dependency-free helper tests is not a substitute for those integration gates.
|
|
117
|
+
|
|
52
118
|
Historical tool-image continuation first reproduced the old missed-image
|
|
53
119
|
requirement. Regressions now cover all Auto preferences, historical user/tool
|
|
54
|
-
images, no vision candidate and native
|
|
55
|
-
PNG/JPEG
|
|
56
|
-
|
|
120
|
+
images, no vision candidate and native PNG-to-WebP projection against explicit
|
|
121
|
+
PNG/JPEG declarations. A mismatch now delegates without a plugin veto; a native server rejection retains
|
|
122
|
+
its native failure. Synthetic regressions cover accepted and unadvertised formats,
|
|
123
|
+
one dispatch, and unchanged historical input, not live endpoint acceptance.
|
|
57
124
|
|
|
58
|
-
The [delivery CI](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
|
|
125
|
+
The historical [delivery CI](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
|
|
59
126
|
passed exact unchanged rc.2 Windows/Linux source and published-adapter fixtures,
|
|
60
|
-
full verification and archive gates
|
|
127
|
+
full verification and archive gates for the earlier implementation, not this
|
|
128
|
+
mitigation. The alpha.5 fix's CI is not rc.2 qualification either.
|
|
129
|
+
Local synthetic transport demonstrates
|
|
61
130
|
admission/ownership, not live endpoint acceptance or a particular Desktop's
|
|
62
131
|
loaded version. The original [investigation #236](https://github.com/cloga/dsh-github-copilot/issues/236)
|
|
63
132
|
retains the bounded observation and delivery evidence; old local registry
|
package/docs/npm-distribution.md
CHANGED
|
@@ -16,6 +16,21 @@ Versions align package, deployment baseline, both README URLs and annotated tag.
|
|
|
16
16
|
Channel is `alpha`, `beta`, `rc` or stable `latest`; never silently rename a
|
|
17
17
|
package, move/reuse tags, repack immutable assets or publish placeholders.
|
|
18
18
|
|
|
19
|
+
The rc.2 maintenance checkout also admits push CI on the exact
|
|
20
|
+
`maintenance/dsh-0.2.0-rc.2` branch. It retains the complete Windows/Linux
|
|
21
|
+
tagged-source and published-artifact rc.2 matrix, release-ready gate, original
|
|
22
|
+
archive recovery, shared release concurrency and OIDC-only dual publication.
|
|
23
|
+
The npm entry additionally checks the archive's exact rc.2 adapter and pi-ai
|
|
24
|
+
`0.87.1` baseline. Other maintenance branches, tags, PR events and forks are
|
|
25
|
+
not publication contexts. This does not modify the separate alpha.5 main line.
|
|
26
|
+
|
|
27
|
+
The isolated published-artifact fixture retains exact DSH rc.2 and plugin SDK
|
|
28
|
+
pins but permits Cordis loader patches in the official `~1.0.5` peer range.
|
|
29
|
+
Hard-pinning `1.0.5` conflicts with the now-published Cordis `4.0.5` family
|
|
30
|
+
requiring loader `~1.0.6`. The fixture still installs unchanged public artifacts
|
|
31
|
+
with strict peer validation; it does not override transitive dependencies,
|
|
32
|
+
change the plugin lockfile or qualify a different Core release.
|
|
33
|
+
|
|
19
34
|
## Trusted publishing
|
|
20
35
|
|
|
21
36
|
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) requires npm
|