@pure01fx/dsh-openai-codex-auth 0.6.1 → 0.7.0
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 +8 -0
- package/README.md +2 -0
- package/lib/replay.d.ts +1 -1
- package/lib/replay.js +7 -3
- package/lib/responses.js +1 -1
- package/package.json +14 -12
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.7.0
|
|
6
|
+
|
|
7
|
+
### DSH 0.1.1 compatibility
|
|
8
|
+
|
|
9
|
+
- Targets DeepSeek Harness `0.1.1-rc.2` across Host peers, runtime helpers, development contracts, and generated artifacts.
|
|
10
|
+
- Emits successful native continuation metadata through the rc.2 `ReplayEnvelope.response` contract while continuing to read legacy raw replay state from existing sessions.
|
|
11
|
+
- Removes the duplicate runtime dependency on `@deepseek-ai/dsh-credentials`, keeping the Host credentials service as a peer-owned singleton.
|
|
12
|
+
|
|
5
13
|
## 0.6.1
|
|
6
14
|
|
|
7
15
|
### WebSocket reliability
|
package/README.md
CHANGED
package/lib/replay.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface NativeCodexReplaySource {
|
|
|
30
30
|
}
|
|
31
31
|
/** Preserve only server item IDs that Codex itself would replay. */
|
|
32
32
|
export declare function replayableItemId(value: string | undefined): string | undefined;
|
|
33
|
-
/** True only for
|
|
33
|
+
/** True only for legacy raw state or an rc.2 envelope emitted by this package. */
|
|
34
34
|
export declare function hasNativeCodexReplayKind(value: unknown): boolean;
|
|
35
35
|
/** Attempt-local bounded accumulator; no ciphertext can grow unchecked before completion. */
|
|
36
36
|
export declare class NativeCodexReplayCapture {
|
package/lib/replay.js
CHANGED
|
@@ -96,13 +96,17 @@ function parseDescriptor(value) {
|
|
|
96
96
|
}
|
|
97
97
|
throw failure('native Codex replay descriptor type is unsupported');
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
function replayPayload(value) {
|
|
100
|
+
const response = object(value)?.response;
|
|
101
|
+
return object(response)?.kind === NATIVE_CODEX_REPLAY_KIND ? response : value;
|
|
102
|
+
}
|
|
103
|
+
/** True only for legacy raw state or an rc.2 envelope emitted by this package. */
|
|
100
104
|
export function hasNativeCodexReplayKind(value) {
|
|
101
|
-
return object(value)?.kind === NATIVE_CODEX_REPLAY_KIND;
|
|
105
|
+
return object(replayPayload(value))?.kind === NATIVE_CODEX_REPLAY_KIND;
|
|
102
106
|
}
|
|
103
107
|
function parseState(value) {
|
|
104
108
|
safeStateSize(value, 'INVALID_REPLAY_STATE');
|
|
105
|
-
const row = object(value);
|
|
109
|
+
const row = object(replayPayload(value));
|
|
106
110
|
if (row === undefined || row.kind !== NATIVE_CODEX_REPLAY_KIND
|
|
107
111
|
|| row.version !== NATIVE_CODEX_REPLAY_VERSION
|
|
108
112
|
|| !onlyKeys(row, ['kind', 'version', 'provider', 'model', 'items'])) {
|
package/lib/responses.js
CHANGED
|
@@ -466,7 +466,7 @@ export class ResponsesStreamTranslator {
|
|
|
466
466
|
} } }
|
|
467
467
|
: {
|
|
468
468
|
type: 'finish', reason: { kind: this.sawToolCall ? 'tool-calls' : 'stop' },
|
|
469
|
-
...(replayState === undefined ? {} : { replayState }),
|
|
469
|
+
...(replayState === undefined ? {} : { replayState: { response: replayState } }),
|
|
470
470
|
});
|
|
471
471
|
return chunks;
|
|
472
472
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pure01fx/dsh-openai-codex-auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Native ChatGPT Codex provider, device-code-first login, and same-origin Web integration for DeepSeek Harness",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -70,6 +70,9 @@
|
|
|
70
70
|
"LICENSE"
|
|
71
71
|
],
|
|
72
72
|
"dsh": {
|
|
73
|
+
"engines": {
|
|
74
|
+
"dsh": "0.1.1-rc.2"
|
|
75
|
+
},
|
|
73
76
|
"bundle": {
|
|
74
77
|
"patch": "./cordis.patch.yml"
|
|
75
78
|
},
|
|
@@ -84,24 +87,23 @@
|
|
|
84
87
|
},
|
|
85
88
|
"peerDependencies": {
|
|
86
89
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
87
|
-
"@deepseek-ai/dsh-credentials": "0.1.
|
|
88
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.
|
|
89
|
-
"@deepseek-ai/dsh-llm": "0.1.
|
|
90
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2"
|
|
90
93
|
},
|
|
91
94
|
"dependencies": {
|
|
92
|
-
"@deepseek-ai/dsh-atomic-write": "0.1.
|
|
93
|
-
"@deepseek-ai/dsh-
|
|
94
|
-
"@deepseek-ai/dsh-home-paths": "0.1.0-rc.6",
|
|
95
|
+
"@deepseek-ai/dsh-atomic-write": "0.1.1-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-home-paths": "0.1.1-rc.2",
|
|
95
97
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
96
98
|
"ws": "8.21.3"
|
|
97
99
|
},
|
|
98
100
|
"devDependencies": {
|
|
99
101
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
100
|
-
"@deepseek-ai/dsh-agent": "0.1.
|
|
101
|
-
"@deepseek-ai/dsh-credentials": "0.1.
|
|
102
|
-
"@deepseek-ai/dsh-host-webserver": "0.1.
|
|
103
|
-
"@deepseek-ai/dsh-llm": "0.1.
|
|
104
|
-
"@deepseek-ai/dsh-session": "0.1.
|
|
102
|
+
"@deepseek-ai/dsh-agent": "0.1.1-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-credentials": "0.1.1-rc.2",
|
|
104
|
+
"@deepseek-ai/dsh-host-webserver": "0.1.1-rc.2",
|
|
105
|
+
"@deepseek-ai/dsh-llm": "0.1.1-rc.2",
|
|
106
|
+
"@deepseek-ai/dsh-session": "0.1.1-rc.2",
|
|
105
107
|
"@types/node": "^22.20.0",
|
|
106
108
|
"typescript": "^6.0.3",
|
|
107
109
|
"vitest": "^4.1.8"
|