@sparkelf/dsh-patch-responses-reasoning-status 0.2.1-alpha.9 → 0.2.1-rc.2

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/package.json CHANGED
@@ -1,36 +1,36 @@
1
1
  {
2
+ "name": "@sparkelf/dsh-patch-responses-reasoning-status",
3
+ "version": "0.2.1-rc.2",
2
4
  "description": "Data-only exact official-source patch for OpenAI Responses gateways that reject replayed reasoning status metadata",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/SparkElf/deepseek-harness-plus.git",
11
+ "directory": "patches/npm/responses-reasoning-status"
12
+ },
13
+ "type": "module",
14
+ "files": [
15
+ "patches/*.patch"
16
+ ],
17
+ "license": "MIT",
3
18
  "dshPatch": {
4
19
  "formatVersion": 1,
5
20
  "variants": [
6
21
  {
7
- "dsh": ">=0.2.0-rc.2",
8
- "file": "./patches/responses-reasoning-status.patch",
9
22
  "id": "responses-omit-reasoning-input-status",
23
+ "dsh": ">=0.2.0-rc.2",
10
24
  "target": {
11
- "baseRevision": "5badb15009ae1756c3afe0ae0cef1faafc290ccc",
12
25
  "kind": "dsh-source",
26
+ "baseRevision": "687f282e8625c6b8d11ff58211a90524be2e4317",
13
27
  "paths": [
14
28
  "packages/llm/llm-pi-ai/",
15
29
  "packages/client/ui-settings-models/"
16
30
  ]
17
- }
31
+ },
32
+ "file": "./patches/responses-reasoning-status.patch"
18
33
  }
19
34
  ]
20
- },
21
- "files": [
22
- "patches/*.patch"
23
- ],
24
- "license": "MIT",
25
- "name": "@sparkelf/dsh-patch-responses-reasoning-status",
26
- "publishConfig": {
27
- "access": "public"
28
- },
29
- "repository": {
30
- "directory": "patches/npm/responses-reasoning-status",
31
- "type": "git",
32
- "url": "git+https://github.com/SparkElf/deepseek-harness-plus.git"
33
- },
34
- "type": "module",
35
- "version": "0.2.1-alpha.9"
36
- }
35
+ }
36
+ }
@@ -1,8 +1,8 @@
1
1
  diff --git a/packages/client/ui-settings-models/src/client/ModelsSection.module.css b/packages/client/ui-settings-models/src/client/ModelsSection.module.css
2
- index 2074fc6a07..c9575dedae 100644
2
+ index 438cc7b319..321af8f20a 100644
3
3
  --- a/packages/client/ui-settings-models/src/client/ModelsSection.module.css
4
4
  +++ b/packages/client/ui-settings-models/src/client/ModelsSection.module.css
5
- @@ -415,6 +415,32 @@
5
+ @@ -447,6 +447,32 @@
6
6
  padding-top: 12px;
7
7
  }
8
8
 
@@ -36,10 +36,10 @@ index 2074fc6a07..c9575dedae 100644
36
36
  display: flex;
37
37
  flex-direction: column;
38
38
  diff --git a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
39
- index 41dac376d1..0e5d0bafd0 100644
39
+ index 262f8c9d55..c1789d7813 100644
40
40
  --- a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
41
41
  +++ b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
42
- @@ -45,6 +45,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
42
+ @@ -48,6 +48,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
43
43
 
44
44
 
45
45
 
@@ -49,7 +49,7 @@ index 41dac376d1..0e5d0bafd0 100644
49
49
  /** Props of {@link ProviderEditor}. */
50
50
  export interface ProviderEditorProps {
51
51
  /** Provider route id. */
52
- @@ -181,6 +184,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
52
+ @@ -195,6 +198,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
53
53
  const root = useMemo(() => schema.rehydrate(namespace.schema), [namespace.schema, schema])
54
54
  const node = useMemo(() => schema.nodeAtPath(root, settingsPath), [root, schema, settingsPath])
55
55
  const fallback = schema.getPath(namespace.value, settingsPath)
@@ -58,9 +58,9 @@ index 41dac376d1..0e5d0bafd0 100644
58
58
  + [...settingsPath, ...OMIT_REASONING_INPUT_STATUS_PATH],
59
59
  + ) === true
60
60
  const disabled = props.readOnly || busy
61
- const accountProvider = props.provider === 'deepseek-account'
62
- // Account settings use a configurable Cordis entry id.
63
- @@ -212,6 +219,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
61
+ const layout = layoutOf(namespace.ns)
62
+ const keyRef = refFor(schema, namespace, settingsPath, props.provider)
63
+ @@ -211,6 +218,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
64
64
  const value = schema.getPath(source, [key])
65
65
  return typeof value === 'string' && value.trim().length > 0 ? value : undefined
66
66
  }
@@ -72,7 +72,7 @@ index 41dac376d1..0e5d0bafd0 100644
72
72
  const setField = (key: string, next: string | undefined): void => {
73
73
  // A value of nothing but whitespace is cleared, not stored: `stringAt`
74
74
  // already reports it as absent, so the field would otherwise render empty
75
- @@ -240,6 +252,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
75
+ @@ -249,6 +261,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
76
76
  // What the form currently shows, which is what an interrogation must ask:
77
77
  // an edited-but-unsaved endpoint, and a key typed but not yet stored.
78
78
  const probeApi = stringAt(draft, 'api') ?? stringAt(fallback, 'api')
@@ -82,7 +82,7 @@ index 41dac376d1..0e5d0bafd0 100644
82
82
  const probeBaseURL = stringAt(draft, 'baseURL') ?? stringAt(fallback, 'baseURL')
83
83
  const probe = {
84
84
  settingsNs: namespace.ns,
85
- @@ -452,7 +467,15 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
85
+ @@ -497,7 +512,15 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
86
86
  value={probeApi ?? ''}
87
87
  aria-label={t('customApi')}
88
88
  disabled={disabled}
@@ -99,7 +99,7 @@ index 41dac376d1..0e5d0bafd0 100644
99
99
  >
100
100
  {/* A profile naming no protocol — hand-written into
101
101
  cordis.patch.yml with no model to need one — selects
102
- @@ -466,6 +489,24 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
102
+ @@ -511,6 +534,24 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
103
103
  </div>
104
104
  )
105
105
  : null}
@@ -125,10 +125,10 @@ index 41dac376d1..0e5d0bafd0 100644
125
125
  the extras differ — DeepSeek's inherited capacities, pi-ai's
126
126
  endpoint interrogation. */}
127
127
  diff --git a/packages/client/ui-settings-models/src/client/locales.ts b/packages/client/ui-settings-models/src/client/locales.ts
128
- index bba0b85288..5bd2602ad5 100644
128
+ index 9bcfa18e27..371a1c210e 100644
129
129
  --- a/packages/client/ui-settings-models/src/client/locales.ts
130
130
  +++ b/packages/client/ui-settings-models/src/client/locales.ts
131
- @@ -97,6 +97,7 @@ export const en = {
131
+ @@ -118,6 +118,7 @@ export const en = {
132
132
  protocolOpenAiCompletions: 'OpenAI Chat Completions',
133
133
  protocolOpenAiResponses: 'OpenAI Responses',
134
134
  protocolAnthropicMessages: 'Anthropic Messages',
@@ -136,7 +136,7 @@ index bba0b85288..5bd2602ad5 100644
136
136
  customNeedsBaseUrl: 'A custom provider needs a base URL.',
137
137
  customBaseUrlInvalid: 'Enter a valid HTTP or HTTPS URL.',
138
138
  customNeedsModels: 'A custom provider needs at least one model.',
139
- @@ -217,7 +218,8 @@ export const zh: { [Key in keyof typeof en]: string } = {
139
+ @@ -259,7 +260,8 @@ export const zh: { [Key in keyof typeof en]: string } = {
140
140
  protocolOpenAiCompletions: 'OpenAI Chat Completions',
141
141
  protocolOpenAiResponses: 'OpenAI Responses',
142
142
  protocolAnthropicMessages: 'Anthropic Messages',
@@ -147,10 +147,10 @@ index bba0b85288..5bd2602ad5 100644
147
147
  customNeedsModels: '自定义模型 API 至少需要一个模型。',
148
148
  customBaseUrlPlaceholder: 'https://gateway.example/v1',
149
149
  diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/adapter.ts
150
- index de9f3e0e42..404b66d173 100644
150
+ index a912fff69f..f99bf0401a 100644
151
151
  --- a/packages/llm/llm-pi-ai/src/adapter.ts
152
152
  +++ b/packages/llm/llm-pi-ai/src/adapter.ts
153
- @@ -111,6 +111,24 @@ export interface PiAiAuthInjection {
153
+ @@ -123,6 +123,24 @@ export interface PiAiAuthInjection {
154
154
  authContext: AuthContext
155
155
  }
156
156
 
@@ -175,7 +175,7 @@ index de9f3e0e42..404b66d173 100644
175
175
  /** Copy profile stream knobs into pi-ai's common option vocabulary. */
176
176
  function profileOptions(
177
177
  profile: ResolvedPiAiProviderProfile,
178
- @@ -126,6 +144,7 @@ function profileOptions(
178
+ @@ -138,6 +156,7 @@ function profileOptions(
179
179
  ...profile.transport === undefined ? {} : { transport: profile.transport },
180
180
  ...profile.timeoutMs === undefined ? {} : { timeoutMs: profile.timeoutMs },
181
181
  ...profile.websocketConnectTimeoutMs === undefined ? {} : { websocketConnectTimeoutMs: profile.websocketConnectTimeoutMs },