dsh-github-copilot 0.1.0-alpha.10.dsh.0.2.2.rc.3 → 0.1.0-alpha.12.dsh.0.2.2.rc.3
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 +8 -5
- package/CHANGELOG.md +14 -2
- package/README.md +17 -11
- package/README.zh.md +14 -9
- package/deployment-baseline.json +14 -8
- package/docs/auto-task-routing.md +1 -1
- package/docs/automatic-model-routing.md +3 -3
- package/docs/image-input-compatibility.md +27 -109
- package/docs/official-first-021-alpha5.md +2 -0
- package/lib/client.js +173 -78
- package/lib/client.js.map +1 -1
- package/lib/index.js +44 -112
- package/lib/remote.js +9 -0
- package/lib/types/authorization-controller.d.ts +3 -0
- package/lib/types/model-preferences-card.d.ts +1 -1
- package/lib/types/remote.d.ts +1 -0
- package/package.json +1 -1
- package/lib/types/image-input-admission.d.ts +0 -20
package/AGENTS.md
CHANGED
|
@@ -54,15 +54,18 @@ readback; never migrate or interpret the old `searchModel` as this choice.
|
|
|
54
54
|
The former plugin routing UI and managed Auto remain retired. Supplier calls,
|
|
55
55
|
live installation and restarts are separate from synthetic CI acceptance.
|
|
56
56
|
|
|
57
|
-
The user-authorized native model sync (#466) is a narrow exception to the
|
|
58
|
-
no-settings-rewrite rule: after
|
|
57
|
+
The user-authorized native model sync (#466, #479) is a narrow exception to the
|
|
58
|
+
no-settings-rewrite rule: after a visible preview and one explicit confirmation, one
|
|
59
59
|
revision-checked write may replace only
|
|
60
60
|
`llm-pi-ai.providers.github-copilot.models` in an existing canonical profile.
|
|
61
61
|
Prove current canonical-account metadata and the native adapter-owned catalog;
|
|
62
62
|
skip unrepresentable or uncertain model capabilities. Disclose additions,
|
|
63
63
|
updates, removals, skipped models and configured output request defaults.
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Prepare the preview without forced discovery from existing verified evidence.
|
|
65
|
+
An existing `compat.supportsStrictMode: false` may be preserved only when at
|
|
66
|
+
least one synced Responses or Completions model supports it; block other unproven
|
|
67
|
+
compatibility overrides. Recheck account/catalog/preferences and Settings evidence
|
|
68
|
+
before the one-shot write, then read back both user and effective values. Never create a profile,
|
|
66
69
|
change other paths or perform this sync automatically.
|
|
67
70
|
|
|
68
71
|
The user-confirmed direction on 2026-11-14 supersedes conflicting legacy feature
|
|
@@ -276,7 +279,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
276
279
|
- `src/temporary-models.ts`: exact, account-gated corrections with semantic protocol/capability retirement.
|
|
277
280
|
- `src/model-protocol.ts`: explicit Core capability detection and conservative legacy fallback.
|
|
278
281
|
- `src/responses-reasoning.ts`, `src/responses-reasoning-text.ts`: selected-model effort mapping and public summary assembly.
|
|
279
|
-
- `src/tool-schema-compat.ts`: Copilot-only prompt-assembly filter for unusable escalation arguments
|
|
282
|
+
- `src/tool-schema-compat.ts`: Copilot-only prompt-assembly filter for unusable escalation arguments; Goal schemas remain native.
|
|
280
283
|
- `src/plan.ts`: Copilot-only, fail-closed hosted-search candidate lifecycle.
|
|
281
284
|
- `src/auto-assessment-evidence.ts`: bounded request-local semantic classifier milestones copied into strict ephemeral turn evidence; no prompts, replay, credentials or error bodies. Total includes preparation; adapter start and first text are not HTTP dispatch/byte timings. Keep one configured monotonic deadline (30s default, 1000–120000ms) checked at preparation/native request/result boundaries and 128-token compact output; delayed timer settlement is not a real-time guarantee. The user-approved budget trial is not calibrated latency or proof of past timeout causes. Empty classifier setting retains metadata-driven automatic selection; a nonempty exact account ID preserves proof/exclusion/text/headroom guards, never a virtual Auto ID or silent alternate-model fallback. Both native volatile Config leaves affect future assessments and preserve admitted turns. Prefer eligible supplier-advertised reasoning-off classifiers, but request off only when supplier and public prepared-model effort agree; unsupported native controls stay unchanged. No guessed optimal/latency ranking, benchmark requests, adaptive timeout, cooldown or cross-turn cache without reviewed observations.
|
|
282
285
|
- `src/probe.ts`: bounded native-search capability proof.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.0-alpha.
|
|
3
|
+
## 0.1.0-alpha.12.dsh.0.2.2.rc.3 (prepared)
|
|
4
|
+
|
|
5
|
+
- Retire the managed route's projected-image MIME preflight and Goal schema rewriting (#481). Core owns image projection and Goal schemas; supplier errors are not preempted by a plugin MIME diagnostic.
|
|
6
|
+
- Keep the managed route's permission-field filtering and the native model-sync format eligibility checks unchanged.
|
|
7
|
+
|
|
8
|
+
## 0.1.0-alpha.11.dsh.0.2.2.rc.3 (published)
|
|
9
|
+
|
|
10
|
+
- Show native model-list changes and output defaults automatically from current verified account metadata; one **Sync models** action explicitly confirms the write (#479).
|
|
11
|
+
- Preserve an existing disabled native strict-mode override when the synced list contains a supporting Responses or Completions model; unproven overrides remain blocked.
|
|
12
|
+
- Recheck account, catalog, preference and plan-expiry evidence immediately before writing; keep revision and readback fences.
|
|
13
|
+
- Preparation does not force discovery, and sync, profile installation and Desktop restart remain explicit.
|
|
14
|
+
|
|
15
|
+
## 0.1.0-alpha.10.dsh.0.2.2.rc.3 (published)
|
|
4
16
|
|
|
5
17
|
- Allow an explicit native Copilot hosted-search model in plugin settings, with account and native catalog filtering (#478).
|
|
6
18
|
- Preserve automatic selection by default, require the existing search capability proof, and fail without switching if a chosen model is unavailable.
|
|
7
19
|
|
|
8
|
-
## 0.1.0-alpha.9.dsh.0.2.2.rc.3 (
|
|
20
|
+
## 0.1.0-alpha.9.dsh.0.2.2.rc.3 (published)
|
|
9
21
|
|
|
10
22
|
- Apply confirmed account switches to DSH's existing native `github-copilot` credential, preserving the replaced grant and protecting observable in-progress native Agent turns.
|
|
11
23
|
- Allow #466 native model sync for a saved-account selection only when its normalized grant matches the native canonical credential; mismatches and unavailable credentials remain blocked.
|
package/README.md
CHANGED
|
@@ -67,15 +67,15 @@ After the exact compatible release is available and verified, download its
|
|
|
67
67
|
original asset and checksum in an empty directory:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
71
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
70
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.12.dsh.0.2.2.rc.3.tgz
|
|
71
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/SHA256SUMS
|
|
72
72
|
sha256sum --check SHA256SUMS
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
For the `web` profile, install the same Release asset:
|
|
76
76
|
|
|
77
77
|
```sh
|
|
78
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
78
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.12.dsh.0.2.2.rc.3.tgz
|
|
79
79
|
```
|
|
80
80
|
|
|
81
81
|
Choose the intended profile explicitly. Then:
|
|
@@ -93,15 +93,19 @@ The plugin's account-discovered models and capabilities apply to the
|
|
|
93
93
|
own bundled or configured catalog; the two routes do not automatically share
|
|
94
94
|
model discovery.
|
|
95
95
|
|
|
96
|
-
To copy enabled models from the
|
|
97
|
-
native provider,
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
To copy enabled models from the verified account used by the native provider into an existing
|
|
97
|
+
native provider, open **Manage → Model preferences**, review the displayed
|
|
98
|
+
additions, updates, removals, skipped models and per-request output defaults,
|
|
99
|
+
then choose **Sync models**. Preparing the display uses the current verified
|
|
100
|
+
account snapshot without forcing discovery; if it is unavailable, use
|
|
101
|
+
**Refresh models**. This one-time snapshot replaces only
|
|
100
102
|
`llm-pi-ai.providers.github-copilot.models` with Settings CAS and readback.
|
|
101
103
|
The nonempty saved list replaces the native built-in catalog and remains after
|
|
102
104
|
the plugin is unloaded or uninstalled. Copying model settings does not transfer
|
|
103
|
-
the managed route's
|
|
104
|
-
|
|
105
|
+
the managed route's permission-field filtering to native requests, nor prove
|
|
106
|
+
that supplier calls will succeed. Neither route checks the projected image MIME
|
|
107
|
+
against the account model's format list before dispatch.
|
|
108
|
+
The managed route also uses the native Goal update schema without rewriting it.
|
|
105
109
|
Models with unproven or incompatible native catalog protocols, unknown or
|
|
106
110
|
narrower server input caps, unknown context or vision support, or unknown or
|
|
107
111
|
unsupported reasoning controls are skipped rather than guessed.
|
|
@@ -109,8 +113,10 @@ New Completions and Anthropic models without a native catalog compatibility
|
|
|
109
113
|
baseline are also skipped; catalog-backed models retain native compatibility.
|
|
110
114
|
Image models are included only when the account explicitly supports all four
|
|
111
115
|
native request formats: PNG, JPEG, WebP, and GIF. Custom native authentication,
|
|
112
|
-
endpoints, headers, nonempty model overrides, or route compatibility
|
|
113
|
-
block sync rather than changing those settings. An existing
|
|
116
|
+
endpoints, headers, nonempty model overrides, or unproven route compatibility
|
|
117
|
+
overrides block sync rather than changing those settings. An existing
|
|
118
|
+
`compat.supportsStrictMode: false` is preserved when at least one synced
|
|
119
|
+
Responses or Completions model supports that native override. An existing native default
|
|
114
120
|
reasoning effort must also be supported by each synced model. Core uses each
|
|
115
121
|
configured `maxTokens` as that model's per-request output default. The sync does
|
|
116
122
|
not change credentials, select a model, alter history, or automatically follow
|
package/README.zh.md
CHANGED
|
@@ -55,15 +55,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
|
|
|
55
55
|
精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
59
|
-
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
58
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.12.dsh.0.2.2.rc.3.tgz
|
|
59
|
+
curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/SHA256SUMS
|
|
60
60
|
sha256sum --check SHA256SUMS
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
例如安装到 `web` profile:
|
|
64
64
|
|
|
65
65
|
```sh
|
|
66
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.
|
|
66
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.12.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.12.dsh.0.2.2.rc.3.tgz
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
请明确选择目标 profile,然后:
|
|
@@ -77,17 +77,22 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
77
77
|
插件自动发现的账号模型及能力适用于 `github-copilot-preview` 路线;DSH 原生
|
|
78
78
|
`github-copilot` 路线使用自己的内置或用户配置目录,两条路线不会自动共享模型发现结果。
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
**Manage → Model preferences
|
|
82
|
-
|
|
80
|
+
如需将原生 provider 所用的已验证账号的启用模型复制到已配置的原生 provider,请打开
|
|
81
|
+
**Manage → Model preferences**,查看显示的新增、更新、移除、跳过项和每次请求的输出
|
|
82
|
+
默认值,然后选择 **Sync models**。页面使用当前已验证的账号快照准备这些信息,不强制
|
|
83
|
+
重新发现;如果快照不可用,请使用 **Refresh models**。此显式单次快照只通过
|
|
83
84
|
Settings CAS 和回读替换 `llm-pi-ai.providers.github-copilot.models`。原生 profile
|
|
84
85
|
中保存的非空列表会替代原生内置目录,卸载或停用插件后仍然保留。复制模型设置不会将
|
|
85
|
-
|
|
86
|
+
托管路线的权限参数过滤迁移到原生请求,也不能证明供应商调用成功。两条路线均不会在
|
|
87
|
+
发送前将实际投影的图片 MIME 与账号模型的格式清单进行对照检查。
|
|
88
|
+
托管路线也直接使用原生 Goal 更新 schema,不再改写。
|
|
86
89
|
无法证明或与原生目录不兼容的协议、未知或更窄的服务端输入上限、未知上下文或图像支持,
|
|
87
90
|
以及未知或不支持的推理控制会被跳过,不会猜测。缺少原生目录兼容性基线的新 Completions 和
|
|
88
91
|
Anthropic 模型也会被跳过;已有目录模型保留原生兼容性。只有账号明确支持 PNG、JPEG、WebP、GIF 四种原生请求图像格式时,
|
|
89
|
-
才会同步图像模型。原生 provider
|
|
90
|
-
|
|
92
|
+
才会同步图像模型。原生 provider 存在自定义认证、端点、请求头、非空模型覆盖或无法验证的
|
|
93
|
+
路线兼容性覆盖时,同步会停止,不会修改这些设置。已有的 `compat.supportsStrictMode: false`
|
|
94
|
+
会保留,但至少一个同步模型必须使用支持该设置的 Responses 或 Completions 协议。已有的
|
|
95
|
+
原生默认推理级别也必须受模型支持。Core 会将配置的
|
|
91
96
|
`maxTokens` 同时作为模型的单次请求输出默认值。同步不修改凭据、选择或历史,也不会自动
|
|
92
97
|
跟随后续账号变化。
|
|
93
98
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.1.0-alpha.
|
|
11
|
+
"version": "0.1.0-alpha.12.dsh.0.2.2.rc.3"
|
|
12
12
|
},
|
|
13
13
|
"releaseLines": [
|
|
14
14
|
{ "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
|
|
15
15
|
{ "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
|
|
16
16
|
{ "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
|
|
17
17
|
{ "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
|
|
18
|
-
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.
|
|
18
|
+
{ "core": "0.2.2-rc.3", "version": "0.1.0-alpha.12.dsh.0.2.2.rc.3", "status": "pending" }
|
|
19
19
|
],
|
|
20
20
|
"evidence": {
|
|
21
21
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -750,13 +750,14 @@
|
|
|
750
750
|
{
|
|
751
751
|
"id": "confirmed-native-model-sync",
|
|
752
752
|
"required": true,
|
|
753
|
-
"activation": "
|
|
753
|
+
"activation": "visible-nonforcing-preview-and-one-shot-confirmation",
|
|
754
754
|
"evidenceScope": "tagged-native-settings-and-resolution-with-synthetic-catalog-proof-plus-separate-adapter-ownership-tests-not-live-provider",
|
|
755
755
|
"sourceMarkers": [
|
|
756
756
|
{"file": "src/native-model-sync.ts", "marker": "NATIVE_INHERITED_API_MISMATCH"},
|
|
757
757
|
{"file": "src/native-copilot-access.ts", "marker": "captureNativeCopilotCatalog"},
|
|
758
758
|
{"file": "src/authorization-controller.ts", "marker": "path: ['providers', GITHUB_COPILOT_PROVIDER_ID, 'models']"},
|
|
759
|
-
{"file": "src/model-preferences-card.ts", "marker": "
|
|
759
|
+
{"file": "src/model-preferences-card.ts", "marker": "Sync models"},
|
|
760
|
+
{"file": "src/authorization-controller.ts", "marker": "nativeSyncSupportsRouteCompatibility"},
|
|
760
761
|
{"file": "src/remote.ts", "marker": "GitHubCopilotNativeModelSyncPreviewSchema"}
|
|
761
762
|
],
|
|
762
763
|
"tests": [
|
|
@@ -772,9 +773,15 @@
|
|
|
772
773
|
{"file": "tests/native-copilot-access.spec.ts", "name": "exposes the proven unfiltered adapter catalog independently of the configured model list"},
|
|
773
774
|
{"file": "tests/native-copilot-access.spec.ts", "name": "revokes a catalog snapshot when its native Loader entry is removed"},
|
|
774
775
|
{"file": "tests/authorization-controller.spec.ts", "name": "previews enabled canonical models and applies only the confirmed native models path with CAS/readback"},
|
|
776
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "prepares from existing account proof without discovery or credential reads"},
|
|
777
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "preserves the native disabled strict-mode override while syncing supported protocols"},
|
|
778
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "blocks disabled strict-mode compatibility if no synced model has a supporting protocol"},
|
|
779
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "rejects a preference change while checking the native credential before writing"},
|
|
780
|
+
{"file": "tests/authorization-controller.spec.ts", "name": "rejects a plan that expires while checking the native credential before writing"},
|
|
775
781
|
{"file": "tests/authorization-controller.spec.ts", "name": "reports an uncertain commit if the proven native catalog changes during the write"},
|
|
776
|
-
{"file": "tests/model-preferences-card.spec.ts", "name": "
|
|
777
|
-
{"file": "tests/model-preferences-card.spec.ts", "name": "does not dispatch duplicate
|
|
782
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "shows sync changes beside the model list and applies them with one explicit action"},
|
|
783
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "does not dispatch duplicate sync actions before React renders the busy state"},
|
|
784
|
+
{"file": "tests/model-preferences-card.spec.ts", "name": "allows model edits while preparing and ignores the superseded plan"},
|
|
778
785
|
{"file": "tests/remote-codec.spec.ts", "name": "accepts named native-sync safety diagnostics without accepting extra fields"},
|
|
779
786
|
{"file": "tests/fixtures/remote-core.fixture.ts", "name": "binds native model sync through actual Client and %s Host gateways"},
|
|
780
787
|
{"file": "tests/fixtures/native-model-sync-core.fixture.ts", "name": "syncs a confirmed snapshot through real native Settings and model resolution across restart using synthetic catalog proof"}
|
|
@@ -1213,12 +1220,11 @@
|
|
|
1213
1220
|
"sourceMarkers": [
|
|
1214
1221
|
{"file": "src/tool-schema-compat.ts", "marker": "options.provider !== GITHUB_COPILOT_PREVIEW_PROVIDER_ID"},
|
|
1215
1222
|
{"file": "src/tool-schema-compat.ts", "marker": "ESCALATION_FIELDS"},
|
|
1216
|
-
{"file": "src/tool-schema-compat.ts", "marker": "GOAL_UPDATE_TOOL_NAME"},
|
|
1217
1223
|
{"file": "scripts/verify-upstream-baseline.mjs", "marker": "baseline.strictModeCompat === 'route-switch'"}
|
|
1218
1224
|
],
|
|
1219
1225
|
"tests": [
|
|
1220
1226
|
{"file": "tests/tool-schema-compat.spec.ts", "name": "removes escalation properties and required entries only for Copilot"},
|
|
1221
|
-
{"file": "tests/tool-schema-compat.spec.ts", "name": "
|
|
1227
|
+
{"file": "tests/tool-schema-compat.spec.ts", "name": "preserves the native update_goal schema for Copilot"},
|
|
1222
1228
|
{"file": "tests/tool-schema-compat.spec.ts", "name": "preserves every schema for non-Copilot providers"},
|
|
1223
1229
|
{"file": "tests/fixtures/tool-schema-core.fixture.ts", "name": "preserves frozen native requests and conditional tool execution while adapting managed wire schemas"},
|
|
1224
1230
|
{"file": "tests/authorization-controller.spec.ts", "name": "preserves configured Anthropic and OpenAI models during explicit strict mode repair"},
|
|
@@ -332,7 +332,7 @@ no-fit recovery, one-call semantic success/invalid/failure/timeout/cancellation,
|
|
|
332
332
|
omitted context, strict Remote and footer English/Chinese explanations.
|
|
333
333
|
|
|
334
334
|
Retain native gateway, parent following, manual selection, exclusion admission,
|
|
335
|
-
account proof, image
|
|
335
|
+
account proof, general image eligibility and compaction fixture coverage. Full protected
|
|
336
336
|
Windows/Linux CI remains mandatory before merge/release. No live inference
|
|
337
337
|
calls are needed for synthetic acceptance.
|
|
338
338
|
|
|
@@ -74,9 +74,9 @@ the [latest review](./auto-iteration-review.json) before implementation.
|
|
|
74
74
|
|
|
75
75
|
Image eligibility includes historical user/tool image blocks in all entered
|
|
76
76
|
messages, not only current user text. Text-only candidates are removed; Auto
|
|
77
|
-
advertises image input only with an eligible image model.
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
advertises image input only with an eligible image model. Fixed/Auto dispatch
|
|
78
|
+
does not check the projected MIME against the account model's format list;
|
|
79
|
+
supplier acceptance and errors remain native.
|
|
80
80
|
[Image admission limits](./image-input-compatibility.md).
|
|
81
81
|
|
|
82
82
|
Auto does not trim history or own compaction transactions. Estimated pressure
|
|
@@ -1,111 +1,29 @@
|
|
|
1
1
|
# Image input compatibility
|
|
2
2
|
|
|
3
|
-
Current source target: official DSH `0.2.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
turn freezing and existing cancellation/retry policy stay unchanged.
|
|
31
|
-
|
|
32
|
-
### Admission error details
|
|
33
|
-
|
|
34
|
-
The standard native `INVALID_REQUEST` failure message retains the diagnostic
|
|
35
|
-
code and now explains why the request was blocked before selected-model wire
|
|
36
|
-
dispatch. It includes a bounded, content-free JSON diagnostic: selected real
|
|
37
|
-
model ID (safe identifiers only, otherwise `unavailable`), normalized projected
|
|
38
|
-
MIME (invalid/missing/overlong values become `unavailable`), up to eight explicit
|
|
39
|
-
allowed MIME types with total count and truncation flag, projected message/block
|
|
40
|
-
zero-based indices, allowlisted projected role, and this plugin build's version.
|
|
41
|
-
An absent allowed list is `null`, not an empty list or universal format proof.
|
|
42
|
-
These positions refer to the native projected transcript, not durable history
|
|
43
|
-
IDs or an attachment identity. Only the first rejected image is reported.
|
|
44
|
-
|
|
45
|
-
This uses the existing error/finish presentation, not a new Remote, collector,
|
|
46
|
-
diagnostic store, or history event. Image bytes, URLs, paths, prompt text and
|
|
47
|
-
credentials are never included. Native handling of failure messages is unchanged;
|
|
48
|
-
this is not a claim that native failures are never retained. The version describes
|
|
49
|
-
the build producing this error, not the plugin loaded during an earlier incident.
|
|
50
|
-
Earlier Auto assessment traffic, if any, is not a selected-model dispatch.
|
|
51
|
-
|
|
52
|
-
History images can cause this failure on a text-only continuation. The error
|
|
53
|
-
offers explicit next-turn choices: select a model whose current advertised formats
|
|
54
|
-
accept the projection, or start a separate text-only Session without those
|
|
55
|
-
historical images. Missing MIME needs investigation using the diagnostic, not
|
|
56
|
-
guessing from filenames. There is no automatic retry, model switch, image removal,
|
|
57
|
-
conversion, or history mutation.
|
|
58
|
-
|
|
59
|
-
## Evidence layers and recovery limits
|
|
60
|
-
|
|
61
|
-
Source filename, durable attachment MIME and outgoing projected MIME are
|
|
62
|
-
different facts. Native rc.2 prepares images through public attachment services
|
|
63
|
-
and may re-encode them. A `.png` display name can belong to durable WebP; that
|
|
64
|
-
alone does not establish what the provider received.
|
|
65
|
-
|
|
66
|
-
Do not exclude a model by name to conceal a format failure. A supplier/model
|
|
67
|
-
card's general vision claim is not GitHub endpoint format proof. Exact-format
|
|
68
|
-
Auto filtering from durable MIME can reject a model whose native projection
|
|
69
|
-
would be accepted; candidate-specific projection would require another public
|
|
70
|
-
contract and reviewed tests.
|
|
71
|
-
|
|
72
|
-
Auto currently filters general image capability, not the final candidate-specific
|
|
73
|
-
projected MIME. A vision-eligible selection may therefore still fail the final
|
|
74
|
-
format gate. This diagnostic improvement does not close that capability gap.
|
|
75
|
-
The current public seam used here receives projection only in `inspectRequest`,
|
|
76
|
-
after model selection. Do not pre-project candidates through private APIs or
|
|
77
|
-
replace this fail-closed gate with inferred durable-format filtering.
|
|
78
|
-
|
|
79
|
-
The current fix diagnoses explicit incompatibility, not every provider 400.
|
|
80
|
-
When advertised restrictions and outgoing projection agree but the endpoint
|
|
81
|
-
rejects it, retain the native error. Do not invent capability corrections,
|
|
82
|
-
reselect mid-turn, add a fallback wire or replay the request automatically.
|
|
83
|
-
An explicit smaller [native image budget](./copilot-compaction.md) changes
|
|
84
|
-
outgoing visibility through Core offload; it is not a supplier JSON threshold.
|
|
85
|
-
|
|
86
|
-
## Verification
|
|
87
|
-
|
|
88
|
-
`node --test tests/scripts/image-input-admission.test.mjs` exercises the real
|
|
89
|
-
TypeScript admission helper using Node's built-in runner: historical user/tool
|
|
90
|
-
projections, missing/invalid/unsupported formats, absent versus empty restrictions,
|
|
91
|
-
bounded redacted diagnostics, no private-content reads and no input mutation.
|
|
92
|
-
It does not exercise the native adapter or Client.
|
|
93
|
-
`tests/preview-route.spec.ts` covers the native failure/finish surface and no
|
|
94
|
-
selected-model wire on rejection; `tests/auto-model-routing.spec.ts` preserves the
|
|
95
|
-
explicit separation between Auto vision eligibility and final projected-format
|
|
96
|
-
admission. These require the unchanged pinned dependencies. Passing the
|
|
97
|
-
dependency-free helper tests is not a substitute for those integration gates.
|
|
98
|
-
|
|
99
|
-
Historical tool-image continuation first reproduced the old missed-image
|
|
100
|
-
requirement. Regressions now cover all Auto preferences, historical user/tool
|
|
101
|
-
images, no vision candidate and native WebP-to-PNG projection against explicit
|
|
102
|
-
PNG/JPEG restrictions. A mismatch emits native `finish(error)` with zero model
|
|
103
|
-
requests.
|
|
104
|
-
|
|
105
|
-
The historical [delivery CI](https://github.com/cloga/dsh-github-copilot/actions/runs/36966798814)
|
|
106
|
-
passed exact unchanged rc.2 Windows/Linux source and published-adapter fixtures,
|
|
107
|
-
full verification and archive gates. Local synthetic transport demonstrates
|
|
108
|
-
admission/ownership, not live endpoint acceptance or a particular Desktop's
|
|
109
|
-
loaded version. The original [investigation #236](https://github.com/cloga/dsh-github-copilot/issues/236)
|
|
110
|
-
retains the bounded observation and delivery evidence; old local registry
|
|
111
|
-
failures are not a permanent unsupported/shipping-pending claim.
|
|
3
|
+
Current source target: official DSH `0.2.2-rc.3`. Image projection, offload,
|
|
4
|
+
the native adapter and supplier errors remain Core-owned.
|
|
5
|
+
|
|
6
|
+
Auto considers typed image blocks in all entered messages, including historical
|
|
7
|
+
user/tool content after a text-only continuation. It does not infer images
|
|
8
|
+
from filenames, tool arguments or offloaded text. It selects only generally
|
|
9
|
+
image-capable models, not models proven to accept the eventual projected MIME.
|
|
10
|
+
|
|
11
|
+
The managed route no longer compares projected image MIME against the account
|
|
12
|
+
model's advertised format list before dispatch. Core may re-encode an image, so
|
|
13
|
+
the durable attachment's format does not establish the outgoing format. A
|
|
14
|
+
supplier may reject a format; native error handling applies, without an
|
|
15
|
+
automatic retry, conversion, model switch or history mutation by this plugin.
|
|
16
|
+
The former `COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED` and related plugin
|
|
17
|
+
diagnostics are no longer produced.
|
|
18
|
+
|
|
19
|
+
The explicit native model-sync operation still skips image models unless the
|
|
20
|
+
account advertises all four native request formats. This conservative model
|
|
21
|
+
filter is separate from per-request admission and does not prove supplier
|
|
22
|
+
acceptance. The original [investigation #236](https://github.com/cloga/dsh-github-copilot/issues/236)
|
|
23
|
+
and [#426](https://github.com/cloga/dsh-github-copilot/issues/426) describe
|
|
24
|
+
historical behavior, not the current preflight.
|
|
25
|
+
|
|
26
|
+
`tests/preview-route.spec.ts` exercises native projection and synthetic
|
|
27
|
+
dispatch with both matching and nonmatching account MIME lists.
|
|
28
|
+
`tests/auto-model-routing.spec.ts` preserves general image eligibility.
|
|
29
|
+
Synthetic results do not prove live account, endpoint or Desktop behavior.
|
|
@@ -6,6 +6,8 @@ The fixed official target is
|
|
|
6
6
|
The plugin starts from alpha.16, main commit
|
|
7
7
|
`bb25d425342ee660049a8320585f967671d49ec4`, not an earlier feature branch.
|
|
8
8
|
Later upstream targets are outside this qualification.
|
|
9
|
+
The historical Goal-filter retention decision below was superseded by the
|
|
10
|
+
user-directed retirement in #481; permission-field filtering remains.
|
|
9
11
|
|
|
10
12
|
The prepared version is `0.1.0-alpha.1.dsh.0.2.1.alpha.5`. User-directed
|
|
11
13
|
independent numbering starts at `0.1.0-alpha.1` for each exact Core, continuing
|