dsh-github-copilot 0.1.0-alpha.11.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 CHANGED
@@ -279,7 +279,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
279
279
  - `src/temporary-models.ts`: exact, account-gated corrections with semantic protocol/capability retirement.
280
280
  - `src/model-protocol.ts`: explicit Core capability detection and conservative legacy fallback.
281
281
  - `src/responses-reasoning.ts`, `src/responses-reasoning-text.ts`: selected-model effort mapping and public summary assembly.
282
- - `src/tool-schema-compat.ts`: Copilot-only prompt-assembly filter for unusable escalation arguments and action-specific Goal update schemas.
282
+ - `src/tool-schema-compat.ts`: Copilot-only prompt-assembly filter for unusable escalation arguments; Goal schemas remain native.
283
283
  - `src/plan.ts`: Copilot-only, fail-closed hosted-search candidate lifecycle.
284
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.
285
285
  - `src/probe.ts`: bounded native-search capability proof.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## 0.1.0-alpha.11.dsh.0.2.2.rc.3 (prepared)
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)
4
9
 
5
10
  - Show native model-list changes and output defaults automatically from current verified account metadata; one **Sync models** action explicitly confirms the write (#479).
6
11
  - Preserve an existing disabled native strict-mode override when the synced list contains a supporting Responses or Completions model; unproven overrides 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.11.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.11.dsh.0.2.2.rc.3.tgz
71
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.11.dsh.0.2.2.rc.3/SHA256SUMS
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.11.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.11.dsh.0.2.2.rc.3.tgz
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:
@@ -102,8 +102,10 @@ account snapshot without forcing discovery; if it is unavailable, use
102
102
  `llm-pi-ai.providers.github-copilot.models` with Settings CAS and readback.
103
103
  The nonempty saved list replaces the native built-in catalog and remains after
104
104
  the plugin is unloaded or uninstalled. Copying model settings does not transfer
105
- the managed route's image admission checks or tool-schema filtering to native
106
- requests, nor prove that supplier calls will succeed.
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.
107
109
  Models with unproven or incompatible native catalog protocols, unknown or
108
110
  narrower server input caps, unknown context or vision support, or unknown or
109
111
  unsupported reasoning controls are skipped rather than guessed.
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.11.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.11.dsh.0.2.2.rc.3.tgz
59
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.11.dsh.0.2.2.rc.3/SHA256SUMS
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.11.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.11.dsh.0.2.2.rc.3.tgz
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,然后:
@@ -83,7 +83,9 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
83
83
  重新发现;如果快照不可用,请使用 **Refresh models**。此显式单次快照只通过
84
84
  Settings CAS 和回读替换 `llm-pi-ai.providers.github-copilot.models`。原生 profile
85
85
  中保存的非空列表会替代原生内置目录,卸载或停用插件后仍然保留。复制模型设置不会将
86
- 托管路线的图像准入检查或工具 schema 过滤迁移到原生请求,也不能证明供应商调用成功。
86
+ 托管路线的权限参数过滤迁移到原生请求,也不能证明供应商调用成功。两条路线均不会在
87
+ 发送前将实际投影的图片 MIME 与账号模型的格式清单进行对照检查。
88
+ 托管路线也直接使用原生 Goal 更新 schema,不再改写。
87
89
  无法证明或与原生目录不兼容的协议、未知或更窄的服务端输入上限、未知上下文或图像支持,
88
90
  以及未知或不支持的推理控制会被跳过,不会猜测。缺少原生目录兼容性基线的新 Completions 和
89
91
  Anthropic 模型也会被跳过;已有目录模型保留原生兼容性。只有账号明确支持 PNG、JPEG、WebP、GIF 四种原生请求图像格式时,
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.1.0-alpha.11.dsh.0.2.2.rc.3"
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.11.dsh.0.2.2.rc.3", "status": "pending" }
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",
@@ -1220,12 +1220,11 @@
1220
1220
  "sourceMarkers": [
1221
1221
  {"file": "src/tool-schema-compat.ts", "marker": "options.provider !== GITHUB_COPILOT_PREVIEW_PROVIDER_ID"},
1222
1222
  {"file": "src/tool-schema-compat.ts", "marker": "ESCALATION_FIELDS"},
1223
- {"file": "src/tool-schema-compat.ts", "marker": "GOAL_UPDATE_TOOL_NAME"},
1224
1223
  {"file": "scripts/verify-upstream-baseline.mjs", "marker": "baseline.strictModeCompat === 'route-switch'"}
1225
1224
  ],
1226
1225
  "tests": [
1227
1226
  {"file": "tests/tool-schema-compat.spec.ts", "name": "removes escalation properties and required entries only for Copilot"},
1228
- {"file": "tests/tool-schema-compat.spec.ts", "name": "turns update_goal into action-specific schemas only for Copilot"},
1227
+ {"file": "tests/tool-schema-compat.spec.ts", "name": "preserves the native update_goal schema for Copilot"},
1229
1228
  {"file": "tests/tool-schema-compat.spec.ts", "name": "preserves every schema for non-Copilot providers"},
1230
1229
  {"file": "tests/fixtures/tool-schema-core.fixture.ts", "name": "preserves frozen native requests and conditional tool execution while adapting managed wire schemas"},
1231
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 admission and compaction fixture coverage. Full protected
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. Actual fixed/Auto
78
- dispatch independently checks explicit account MIME restrictions against
79
- Core's projected image. Missing MIME lists stay unverified.
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.1-rc.3`. Plugin-only. Historical
4
- rc.2 delivery evidence below does not qualify the current source or a loaded
5
- Desktop.
6
-
7
- ## Current behavior
8
-
9
- Auto checks actual typed image blocks in **all entered messages**, including
10
- historical user/tool content after a text-only continuation. It does not inspect
11
- tool arguments or infer images from filenames/textual offload placeholders.
12
- Core's `offloaded: true` marker means projected text, not image bytes.
13
-
14
- The picker advertises aggregate image input only with an eligible account image
15
- model. Auto filters text-only candidates before task preferences; no eligible
16
- image model fails explicitly rather than sending content to an unverified route.
17
-
18
- For fixed and Auto managed calls, the account-bound public `inspectRequest`
19
- hook checks the native transcript's **projected MIME** before wire dispatch:
20
-
21
- | Diagnostic | Meaning |
22
- |---|---|
23
- | `COPILOT_IMAGE_INPUT_UNSUPPORTED` | Current account model does not admit image input |
24
- | `COPILOT_IMAGE_MEDIA_TYPE_UNAVAILABLE` | Actual projected MIME evidence is unavailable |
25
- | `COPILOT_IMAGE_MEDIA_TYPE_UNSUPPORTED` | Explicit account MIME restrictions reject that projection |
26
-
27
- Omitted account MIME lists preserve existing verified vision behavior but do
28
- not prove universal format acceptance. The plugin neither invents a list nor
29
- converts images itself. Native error/finish behavior, historical attachments,
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
package/lib/client.js CHANGED
@@ -7758,7 +7758,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7758
7758
  };
7759
7759
  //#endregion
7760
7760
  //#region package.json
7761
- var version = "0.1.0-alpha.11.dsh.0.2.2.rc.3";
7761
+ var version = "0.1.0-alpha.12.dsh.0.2.2.rc.3";
7762
7762
  //#endregion
7763
7763
  //#region lib/types/diagnostics-client.js
7764
7764
  let owner;
@@ -13665,7 +13665,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
13665
13665
  }, (0, react.createElement)("strong", null, "Native provider model list"), (0, react.createElement)("p", { style: {
13666
13666
  ...nativeCaptionStyle,
13667
13667
  margin: 0
13668
- } }, "Sync enabled models from the verified account used by the native provider. The native provider’s built-in catalog is replaced by this saved list, which remains after the plugin is unloaded or uninstalled. Credentials, model selection, and conversation history do not change; managed image admission checks and tool-schema filtering do not transfer."), syncPreparing ? (0, react.createElement)("p", {
13668
+ } }, "Sync enabled models from the verified account used by the native provider. The native provider’s built-in catalog is replaced by this saved list, which remains after the plugin is unloaded or uninstalled. Credentials, model selection, and conversation history do not change; managed permission-field filtering does not transfer to native requests. Core also uses each configured maxTokens as its per-request output default."), syncPreparing ? (0, react.createElement)("p", {
13669
13669
  role: "status",
13670
13670
  style: {
13671
13671
  ...nativeCaptionStyle,