dsh-github-copilot 0.4.0-alpha.93 → 0.4.0-alpha.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0-alpha.94 (prepared)
4
+
5
+ - Count native Responses tool-output image spans under `function_call_output.output[]` in bounded timeout diagnostics (#287), rather than misclassifying them as remaining history.
6
+ - Preserve unknown output shapes, exact original byte spans, total-byte partitions, native image budgets, history/replay, failure classification and transport. Old stored diagnostics are not rewritten; this corrects evidence, not recurring supplier 408s.
7
+
3
8
  ## 0.4.0-alpha.93 (prepared)
4
9
 
5
10
  - Add default-off, explicit session replay recovery after verified Responses scope rejection. Confirming the disclosed loss omits only matching old encrypted items and their summaries on later requests; stored history, tool pairs and new reasoning remain unchanged.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter and one Host-owned OAuth account; it does not patch Core or maintain a second model catalog.
10
10
 
11
- **Source candidate: `0.4.0-alpha.93` (unreleased). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
11
+ **Source candidate: `0.4.0-alpha.94` (unreleased). Supported host: official DSH / Windows Desktop `0.2.0-rc.2`.** Earlier DSH pins are historical evidence, not supported installation targets. Publication, profile installation and the version loaded by a running Host are separate states. The versioned commands below are for this candidate after publication, not evidence that its assets exist.
12
12
 
13
13
  ## What you can do
14
14
 
@@ -40,10 +40,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
40
40
  For a **standalone named profile**:
41
41
 
42
42
  ```sh
43
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/dsh-github-copilot-0.4.0-alpha.93.tgz
43
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/dsh-github-copilot-0.4.0-alpha.94.tgz
44
44
  ```
45
45
 
46
- For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.93` after publication. Official rc.2's **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.
46
+ For **Desktop**, its native package manager accepts `dsh-github-copilot@0.4.0-alpha.94` after publication. Official rc.2's **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.
47
47
 
48
48
  After an approved reload/restart:
49
49
 
@@ -98,7 +98,7 @@ Managed request admission preserves truthful input/output limits and native tran
98
98
 
99
99
  For continuing steps with a committed managed route and no pending model change, known input pressure is reduced before Core opens the next model attempt. Successful native reduction avoids an unsampled local-pressure attempt that would make whole-turn Usage unavailable. First steps, pending selections, new fixed-prefix growth and final hard-budget refusals retain existing admission; this does not repair historical totals or invent missing usage.
100
100
 
101
- For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
101
+ For exact verified `408 / user_request_timeout`, diagnostics describe bounded request composition and observable timing, not a proven payload limit or root cause. Image counts include native Responses tool outputs; older stored diagnostics may have counted those images as residual history. Bytes are not tokens; timing is not upload duration. Small, image-free requests can also time out. Follow [request-budget and timeout guidance](./docs/copilot-compaction.md); do not automatically trim history, disable proof, switch models or add retries.
102
102
 
103
103
  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).
104
104
 
@@ -173,14 +173,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
173
173
  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.
174
174
 
175
175
  ```sh
176
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/dsh-github-copilot-0.4.0-alpha.93.tgz
177
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/SHA256SUMS
176
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/dsh-github-copilot-0.4.0-alpha.94.tgz
177
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/SHA256SUMS
178
178
  sha256sum --check SHA256SUMS
179
179
  ```
180
180
 
181
181
  ```powershell
182
182
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
183
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.93.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
183
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.94.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
184
184
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
185
185
  ```
186
186
 
package/README.zh.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器与一个 Host 端 OAuth 账号,不修改 Core,也不维护第二套模型目录。
10
10
 
11
- **源码候选版本:`0.4.0-alpha.93`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
11
+ **源码候选版本:`0.4.0-alpha.94`(尚未发布)。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。** 较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。下方带版本的命令适用于候选版本发布后,不代表对应资产已经存在。
12
12
 
13
13
  ## 你可以做什么
14
14
 
@@ -40,10 +40,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
40
40
  **独立具名 profile**:
41
41
 
42
42
  ```sh
43
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/dsh-github-copilot-0.4.0-alpha.93.tgz
43
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/dsh-github-copilot-0.4.0-alpha.94.tgz
44
44
  ```
45
45
 
46
- **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.93`。官方 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 或删除配置。
46
+ **Desktop** 原生包管理器在发布后接受 `dsh-github-copilot@0.4.0-alpha.94`。官方 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 或删除配置。
47
47
 
48
48
  经批准 reload/restart 后:
49
49
 
@@ -98,7 +98,7 @@ Copilot 搜索要求当前账号/协议证据及能力 proof。固定/fallba
98
98
 
99
99
  同一轮后续步骤已有托管路由、且没有待切换模型时,已知输入压力会在 Core 开始下次模型尝试之前压缩。原生压缩成功可避免一次无 usage 样本的本地压力拒绝导致整轮 Usage 不可用。首次步骤、待切换模型、新增固定前缀膨胀与最终硬预算拒绝仍保留原有准入;不会修复历史总量或虚构缺失用量。
100
100
 
101
- 严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
101
+ 严格核验的 `408 / user_request_timeout`诊断给出有界请求构成和可观察耗时,不证明供应方 payload 上限或根因。图片统计包括原生 Responses 工具输出中的图片;旧的已存诊断可能把这些图片算作剩余历史。字节不是 tokens,耗时不是上传时长;小型无图请求也可能超时。参见[预算与超时指导](./docs/copilot-compaction.md),不要自动裁剪历史、禁用 proof、切换模型或增加重试。
102
102
 
103
103
  HTTP/SSE liveness 默认区分 5 分钟字节 idle 和有界的 10 分钟助手输出静默,排除消费者工作;WebSocket/显式 `auto`仍仅使用原生路径。这不修复供应方 HTTP 408。图片按原生实际投影 MIME 证据准入;插件不负责转换,也不按文件名猜格式支持。[图片兼容](./docs/image-input-compatibility.md)。
104
104
 
@@ -173,14 +173,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
173
173
  GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
174
174
 
175
175
  ```sh
176
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/dsh-github-copilot-0.4.0-alpha.93.tgz
177
- curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.93/SHA256SUMS
176
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/dsh-github-copilot-0.4.0-alpha.94.tgz
177
+ curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.0-alpha.94/SHA256SUMS
178
178
  sha256sum --check SHA256SUMS
179
179
  ```
180
180
 
181
181
  ```powershell
182
182
  $expected = (Get-Content .\SHA256SUMS).Split()[0]
183
- $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.93.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
183
+ $actual = (Get-FileHash .\dsh-github-copilot-0.4.0-alpha.94.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
184
184
  if ($actual -cne $expected) { throw 'Release checksum mismatch' }
185
185
  ```
186
186
 
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.4.0-alpha.93"
11
+ "version": "0.4.0-alpha.94"
12
12
  },
13
13
  "evidence": {
14
14
  "kind": "source-and-synthetic-test-inventory",
@@ -79,6 +79,8 @@ For [#263](https://github.com/cloga/dsh-github-copilot/issues/263), the same pub
79
79
 
80
80
  Original serialized value spans partition total bytes into `input`/`messages`, tool definitions, protocol-owned top-level `instructions`/`system` and residual keys/framing. Within conversation only, supported structural image blocks and opaque replay string spans form disjoint subsets; the rest includes text/tool history, framing and unknown representations. Completions system/developer messages stay in conversation. Image URLs and file references are counted as wire blocks, not fetched/decoded file sizes. Responses encrypted content and Anthropic signature/redacted data are counted without interpreting or decrypting replay; no raw contents, IDs, hashes or credentials are reported.
81
81
 
82
+ Responses tool pictures are also image blocks: the native SDK serializes them under `function_call_output.output[]`, separately from ordinary message `content[]`. Older plugin diagnostics incorrectly classified those spans as remaining history, so an old report of zero image bytes does not establish an image-free request. The corrected diagnostic applies only to newly observed failures; stored failures and history are not rewritten. Unknown output arrays remain residual, and the fix changes neither total bytes nor native image admission, offload budgets, replay or transport.
83
+
82
84
  Analysis accepts at most 16 MiB of UTF-8 JSON, with a pre-parse depth/token bound (64 levels / 131072 tokens), followed by at most 65536 values and 128 serialized key characters. Missing, malformed, unsupported, size-limited and work-limited evidence has a named unavailable state with no partial success-shaped totals. Limits bound diagnostic cost and are **not supplier request limits or admission controls**. A reported 9 MiB body may be analyzed, but its size does not establish why a timeout occurred. If image blocks dominate, an explicitly selected smaller `chatMaxRequestImageBytes` can authorize native image offload; if compressible history dominates, explicit native compaction can help. Tool definitions and opaque replay may remain; small failing requests still warrant network/service investigation. Neither choice is performed automatically or guaranteed to reduce 408 frequency.
83
85
 
84
86
  This implementation is preventive, not a general rescue summarizer. A manual summary whose full input already exceeds the hard budget fails before model transport. It does not silently trim, fabricate a partial checkpoint, or claim that refusing the request recovered the history. Giant fixed prefixes or an indivisible latest unit can also prevent useful reduction.
package/lib/index.js CHANGED
@@ -1831,7 +1831,7 @@ function installContextEvidence(ctx) {
1831
1831
  //#endregion
1832
1832
  //#region package.json
1833
1833
  var name$1 = "dsh-github-copilot";
1834
- var version = "0.4.0-alpha.93";
1834
+ var version = "0.4.0-alpha.94";
1835
1835
  //#endregion
1836
1836
  //#region lib/types/probe.js
1837
1837
  /**
@@ -5389,7 +5389,8 @@ function requestBodyEvidence(body, protocol) {
5389
5389
  whitespace();
5390
5390
  if (body[position++] !== ":") throw new EvidenceParseError("invalid-json");
5391
5391
  whitespace();
5392
- const childLocation = imageBlock ? "other" : depth === 0 && key === conversationKey ? "conversation" : key === "content" && (location === "conversation" || location === "content") && Array.isArray(value[key]) ? "content" : "other";
5392
+ const contentArray = key === "content" && (location === "conversation" || location === "content") || protocol === "openai-responses" && location === "conversation" && value.type === "function_call_output" && key === "output";
5393
+ const childLocation = imageBlock ? "other" : depth === 0 && key === conversationKey ? "conversation" : contentArray && Array.isArray(value[key]) ? "content" : "other";
5393
5394
  const childStart = position, child = visit(value[key], depth + 1, childLocation);
5394
5395
  const childBytes = depth === 0 || isOpaque(value, key, location) && typeof value[key] === "string" ? bytes(childStart) : 0;
5395
5396
  if (depth === 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-github-copilot",
3
3
  "description": "DSH companion for GitHub Copilot sign-in, account-aware model profiles, tool compatibility, and provider-hosted search.",
4
- "version": "0.4.0-alpha.93",
4
+ "version": "0.4.0-alpha.94",
5
5
  "publishConfig": {
6
6
  "access": "public",
7
7
  "registry": "https://registry.npmjs.org/",