@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 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
@@ -17,6 +17,8 @@
17
17
 
18
18
  ## 快速开始
19
19
 
20
+ 当前 `0.7.x` 版本要求 DeepSeek Harness `0.1.1-rc.2`;仍运行 DSH `0.1.0-rc.6` 的 profile 应继续使用插件 `0.6.1`。
21
+
20
22
  将插件安装到 DSH 的 `web` profile:
21
23
 
22
24
  ```sh
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 state emitted by this package; foreign adapters degrade to visible history. */
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
- /** True only for state emitted by this package; foreign adapters degrade to visible history. */
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.6.1",
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.0-rc.6",
88
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
89
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6"
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.0-rc.6",
93
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
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.0-rc.6",
101
- "@deepseek-ai/dsh-credentials": "0.1.0-rc.6",
102
- "@deepseek-ai/dsh-host-webserver": "0.1.0-rc.6",
103
- "@deepseek-ai/dsh-llm": "0.1.0-rc.6",
104
- "@deepseek-ai/dsh-session": "0.1.0-rc.6",
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"