@eddyskywalker/dsh-chatgpt-subscription 0.1.36 → 0.1.37
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/lib/index.js +11 -4
- package/lib/types/host/responses-client.d.ts.map +1 -1
- package/package.json +29 -29
package/lib/index.js
CHANGED
|
@@ -1920,9 +1920,9 @@ async function* parseResponsesStream(response, signal, hiddenSandboxControls = /
|
|
|
1920
1920
|
if (tool === void 0) {
|
|
1921
1921
|
tool = {
|
|
1922
1922
|
index: nextIndex++,
|
|
1923
|
-
id:
|
|
1923
|
+
id: acceptIdentity(`call_${key}`, item?.call_id ?? event.call_id),
|
|
1924
1924
|
itemId,
|
|
1925
|
-
name:
|
|
1925
|
+
name: acceptIdentity("", item?.name ?? event.name),
|
|
1926
1926
|
arguments: "",
|
|
1927
1927
|
started: false
|
|
1928
1928
|
};
|
|
@@ -1981,8 +1981,8 @@ async function* parseResponsesStream(response, signal, hiddenSandboxControls = /
|
|
|
1981
1981
|
if (item !== null && type === "response.output_item.done") replayOutput.push(structuredClone(item));
|
|
1982
1982
|
if (string(item?.type) !== "function_call") return;
|
|
1983
1983
|
const tool = toolFor(event, item ?? void 0);
|
|
1984
|
-
tool.id =
|
|
1985
|
-
tool.name =
|
|
1984
|
+
tool.id = acceptIdentity(tool.id, item?.call_id);
|
|
1985
|
+
tool.name = acceptIdentity(tool.name, item?.name);
|
|
1986
1986
|
const initial = string(item?.arguments) ?? "";
|
|
1987
1987
|
if (!tool.started) {
|
|
1988
1988
|
tool.started = true;
|
|
@@ -2004,6 +2004,8 @@ async function* parseResponsesStream(response, signal, hiddenSandboxControls = /
|
|
|
2004
2004
|
}
|
|
2005
2005
|
if (type === "response.function_call_arguments.delta") {
|
|
2006
2006
|
const tool = toolFor(event);
|
|
2007
|
+
tool.id = acceptIdentity(tool.id, event.call_id);
|
|
2008
|
+
tool.name = acceptIdentity(tool.name, event.name);
|
|
2007
2009
|
const delta = string(event.delta) ?? "";
|
|
2008
2010
|
if (!tool.started) {
|
|
2009
2011
|
tool.started = true;
|
|
@@ -2025,6 +2027,8 @@ async function* parseResponsesStream(response, signal, hiddenSandboxControls = /
|
|
|
2025
2027
|
}
|
|
2026
2028
|
if (type === "response.function_call_arguments.done") {
|
|
2027
2029
|
const tool = toolFor(event);
|
|
2030
|
+
tool.id = acceptIdentity(tool.id, event.call_id);
|
|
2031
|
+
tool.name = acceptIdentity(tool.name, event.name);
|
|
2028
2032
|
const finalArguments = string(event.arguments);
|
|
2029
2033
|
if (finalArguments !== void 0) tool.arguments = finalArguments;
|
|
2030
2034
|
return;
|
|
@@ -2213,6 +2217,9 @@ function number(value) {
|
|
|
2213
2217
|
const parsed = Number(value);
|
|
2214
2218
|
return Number.isFinite(parsed) ? parsed : void 0;
|
|
2215
2219
|
}
|
|
2220
|
+
function acceptIdentity(current, incoming) {
|
|
2221
|
+
return typeof incoming === "string" && incoming.length > 0 ? incoming : current;
|
|
2222
|
+
}
|
|
2216
2223
|
//#endregion
|
|
2217
2224
|
//#region src/host/usage-service.ts
|
|
2218
2225
|
const EMPTY_USAGE = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses-client.d.ts","sourceRoot":"","sources":["../../../src/host/responses-client.ts"],"names":[],"mappings":"AAQA,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAwD,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAEvH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAElE,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAK7B,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,cAAc,CAAC,EA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": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "DSH provider plugin for Codex access through a ChatGPT subscription.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "eddyskywalker",
|
|
@@ -61,40 +61,40 @@
|
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
63
63
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
64
|
-
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2",
|
|
65
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
|
|
66
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
|
|
67
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
68
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2",
|
|
69
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2",
|
|
70
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2",
|
|
71
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
|
|
72
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2",
|
|
73
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2",
|
|
74
|
-
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
75
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
|
|
76
|
-
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
77
|
-
"@deepseek-ai/dsh-web": "^0.1.1-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
66
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
67
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
68
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
69
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
70
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
73
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
74
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
75
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
76
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
77
|
+
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
78
78
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
79
79
|
"react": "^18.2.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@deepseek-ai/cordis": "^4.0.2",
|
|
83
83
|
"@deepseek-ai/cordis-plugin-loader": "^1.0.3",
|
|
84
|
-
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2",
|
|
85
|
-
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2",
|
|
86
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2",
|
|
87
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2",
|
|
88
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2",
|
|
89
|
-
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2",
|
|
90
|
-
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2",
|
|
91
|
-
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2",
|
|
92
|
-
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2",
|
|
93
|
-
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2",
|
|
94
|
-
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2",
|
|
95
|
-
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2",
|
|
96
|
-
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2",
|
|
97
|
-
"@deepseek-ai/dsh-web": "^0.1.1-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-attachment": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-connection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
87
|
+
"@deepseek-ai/dsh-client-runtime": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
88
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
89
|
+
"@deepseek-ai/dsh-client-ui-model-selection": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
90
|
+
"@deepseek-ai/dsh-client-ui-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
91
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
92
|
+
"@deepseek-ai/dsh-client-ui-tool": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
93
|
+
"@deepseek-ai/dsh-host-webserver": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
94
|
+
"@deepseek-ai/dsh-llm": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
95
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
96
|
+
"@deepseek-ai/dsh-tools": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
97
|
+
"@deepseek-ai/dsh-web": "^0.1.1-rc.2 || ^0.1.2-alpha.5 || ^0.1.2",
|
|
98
98
|
"@deepseek-ai/schemastery": "^3.18.2",
|
|
99
99
|
"@types/node": "^22.20.0",
|
|
100
100
|
"@types/react": "~18.3.1",
|