@eddyskywalker/dsh-chatgpt-subscription 0.1.9 → 0.1.10
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,8 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.10 - 2026-08-17
|
|
4
4
|
|
|
5
5
|
- 移除临时 Bash Prompt 兼容模块:由于上游 DSH `0.1.0-rc.7` 已经原生修复持久化 Bash 提示符不匹配与重置问题,现按照标记 `DSH_COMPAT_REMOVE(persistent-bash-prompt-mismatch)` 安全移除全部相关兼容代码与测试。保留子代理报告去重兼容模块 `DSH_COMPAT_REMOVE(subagent-report-settlement-dedup)`。
|
|
6
|
+
- 增强 Responses Mapper 对 DSH `0.1.0-rc.7` 中新版规范 `ReplayEnvelope` 嵌套结构(`response.outputItems`)的兼容解构支持。
|
|
6
7
|
|
|
7
8
|
## 0.1.8 - 2026-08-17
|
|
8
9
|
|
package/lib/index.js
CHANGED
|
@@ -1131,7 +1131,8 @@ function replayOutputItems(message) {
|
|
|
1131
1131
|
if (message.source.kind !== "model") return null;
|
|
1132
1132
|
const replay = message.source.replayState;
|
|
1133
1133
|
if (typeof replay !== "object" || replay === null || Array.isArray(replay)) return null;
|
|
1134
|
-
const
|
|
1134
|
+
const envelope = replay;
|
|
1135
|
+
const items = Array.isArray(envelope.outputItems) ? envelope.outputItems : Array.isArray(record$2(envelope.response)?.outputItems) ? record$2(envelope.response).outputItems : null;
|
|
1135
1136
|
if (!Array.isArray(items)) return null;
|
|
1136
1137
|
return structuredClone(items.filter((item) => typeof item === "object" && item !== null && !Array.isArray(item)));
|
|
1137
1138
|
}
|
|
@@ -6,12 +6,11 @@ export interface ResponsesPayload extends Record<string, unknown> {
|
|
|
6
6
|
stream: true;
|
|
7
7
|
store: false;
|
|
8
8
|
}
|
|
9
|
-
type FetchLike =
|
|
9
|
+
export type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
|
|
10
10
|
export interface LocalRawImageOptions {
|
|
11
11
|
baseUrl?: string;
|
|
12
12
|
fetchFn?: FetchLike;
|
|
13
13
|
}
|
|
14
14
|
export declare function hiddenSandboxControlToolNames(options: GenerateOptions): Set<string>;
|
|
15
15
|
export declare function buildResponsesPayload(options: GenerateOptions, attachments: Pick<AttachmentStore, 'readImage'> & Partial<Pick<AttachmentStore, 'imageLimits'>>, localRawImages?: LocalRawImageOptions): Promise<ResponsesPayload>;
|
|
16
|
-
export {};
|
|
17
16
|
//# sourceMappingURL=responses-mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses-mapper.d.ts","sourceRoot":"","sources":["../../../src/host/responses-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsC,MAAM,6BAA6B,CAAA;AACtG,OAAO,KAAK,EAAgB,eAAe,EAAW,MAAM,sBAAsB,CAAA;AAElF,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACrC,MAAM,EAAE,IAAI,CAAA;IACZ,KAAK,EAAE,KAAK,CAAA;CACb;AAED,
|
|
1
|
+
{"version":3,"file":"responses-mapper.d.ts","sourceRoot":"","sources":["../../../src/host/responses-mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAsC,MAAM,6BAA6B,CAAA;AACtG,OAAO,KAAK,EAAgB,eAAe,EAAW,MAAM,sBAAsB,CAAA;AAElF,MAAM,WAAW,gBAAiB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC/D,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE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