@sparkelf/dsh-plus 0.2.9-alpha.105 → 0.2.9-alpha.108

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.
@@ -1,5 +1,5 @@
1
1
  diff --git a/apps/web/tests/access-confirmation.e2e.ts b/apps/web/tests/access-confirmation.e2e.ts
2
- index bb9b3d20..450a69d2 100644
2
+ index bb9b3d2065..450a69d2bc 100644
3
3
  --- a/apps/web/tests/access-confirmation.e2e.ts
4
4
  +++ b/apps/web/tests/access-confirmation.e2e.ts
5
5
  @@ -151,6 +151,12 @@ describe('web e2e: experimental Auto and Full access confirmation', () => {
@@ -16,10 +16,10 @@ index bb9b3d20..450a69d2 100644
16
16
  const dialog = page.getByRole('dialog', { name: '确认启用完全权限?' })
17
17
  await dialog.waitFor({ timeout: 10_000 })
18
18
  diff --git a/apps/web/tests/default-model.e2e.ts b/apps/web/tests/default-model.e2e.ts
19
- index afd89b3c..5a568f38 100644
19
+ index ed8a2443f3..e94d04536b 100644
20
20
  --- a/apps/web/tests/default-model.e2e.ts
21
21
  +++ b/apps/web/tests/default-model.e2e.ts
22
- @@ -482,6 +482,13 @@ describe('web e2e: the composer model switch is the default for later sessions',
22
+ @@ -490,6 +490,13 @@ describe('web e2e: the composer model switch is the default for later sessions',
23
23
  await trigger.waitFor({ timeout: 15_000 })
24
24
  expect(await trigger.evaluate(element => getComputedStyle(element).fontWeight)).toBe('400')
25
25
  await trigger.click()
@@ -34,7 +34,7 @@ index afd89b3c..5a568f38 100644
34
34
  const composerBounds = await page.locator('[data-composer-card]').first().boundingBox()
35
35
  expect(modelMenuBounds!.width).toBeLessThan(composerBounds!.width)
36
36
  diff --git a/packages/client/ui-layout/README.md b/packages/client/ui-layout/README.md
37
- index 8a204762..b91e932d 100644
37
+ index 36913ce454..7b5454f6ba 100644
38
38
  --- a/packages/client/ui-layout/README.md
39
39
  +++ b/packages/client/ui-layout/README.md
40
40
  @@ -62,7 +62,7 @@ The root registration supplies folded-landscape posture through an injected obse
@@ -47,22 +47,23 @@ index 8a204762..b91e932d 100644
47
47
  </details>
48
48
 
49
49
  diff --git a/packages/client/ui-layout/src/client/AppFrame.tsx b/packages/client/ui-layout/src/client/AppFrame.tsx
50
- index 23e71c9c..50e1d3a9 100644
50
+ index a4f29603ba..9a86d41290 100644
51
51
  --- a/packages/client/ui-layout/src/client/AppFrame.tsx
52
52
  +++ b/packages/client/ui-layout/src/client/AppFrame.tsx
53
- @@ -39,7 +39,7 @@ export type AppFrameProps =
53
+ @@ -48,7 +48,7 @@ function inertProps(inert: boolean): object {
54
54
 
55
55
  /** Center column grid item (session-body building block). */
56
56
  function CenterColumn(props: { children?: ReactNode; inert: boolean }) {
57
- - return <div className={css.centerCol} {...{ inert: props.inert ? '' : undefined }}>{props.children}</div>
58
- + return <div className={css.centerCol} data-dsh-center-col {...{ inert: props.inert ? '' : undefined }}>{props.children}</div>
57
+ - return <div className={css.centerCol} {...inertProps(props.inert)}>{props.children}</div>
58
+ + return <div className={css.centerCol} data-dsh-center-col {...inertProps(props.inert)}>{props.children}</div>
59
59
  }
60
60
 
61
61
  /** Subscribe to the main key without subscribing the column frame to each panel id. */
62
62
  diff --git a/packages/client/ui-model-selection/src/client/ModelSelect.tsx b/packages/client/ui-model-selection/src/client/ModelSelect.tsx
63
+ index 2fbec9f039..8385944dad 100644
63
64
  --- a/packages/client/ui-model-selection/src/client/ModelSelect.tsx
64
65
  +++ b/packages/client/ui-model-selection/src/client/ModelSelect.tsx
65
- @@ -93,11 +93,19 @@
66
+ @@ -96,11 +96,19 @@ export function ModelSelect(
66
67
  const lastActionRef = useRef<'load' | 'select'>('load')
67
68
  const [toast, setToast] = useState<{ seq: number; text: string } | null>(null)
68
69
  const toastSeq = useRef(0)
@@ -82,7 +83,7 @@ diff --git a/packages/client/ui-model-selection/src/client/ModelSelect.tsx b/pac
82
83
  const itemRefs = useRef<(HTMLButtonElement | null)[]>([])
83
84
  const id = useId()
84
85
  const anchorStyle: CSSProperties & Record<'--dsh-model-anchor', string> = {
85
- @@ -538,7 +546,9 @@
86
+ @@ -541,7 +549,9 @@ export function ModelSelect(
86
87
  tabIndex={pane.kind === 'detail' ? -1 : undefined}
87
88
  id={`${id}-menu`}
88
89
  className={clsx(css.menu, (pane.kind === 'root' || pane.kind === 'detail') && css.settingsMenu)}
@@ -1,22 +1,21 @@
1
1
  diff --git a/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx b/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
2
- index 3215f97a..a6d951b4 100644
2
+ index ddbf63155c..49fd318817 100644
3
3
  --- a/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
4
4
  +++ b/packages/client/ui-sidebar-documentpreview/src/client/office/OfficeBody.tsx
5
5
  @@ -1,5 +1,5 @@
6
6
  /** Office presents retained conversion results and font notices around the shared PDF view. */
7
- -import { useEffect, type ReactNode } from 'react'
8
- +import { useEffect, useRef, type ReactNode } from 'react'
9
- import type { PropsLocale, PropsRenderSlots, PropsStore, SlotHookFactory } from '@deepseek-ai/dsh-client-ui-slots'
10
- import type { TabId } from '@deepseek-ai/dsh-client-ui-dockkit'
11
- import { Button, FileTypeIcon, classifyFileType } from '@deepseek-ai/dsh-client-ui-primitives'
12
- @@ -49,15 +49,19 @@ export function OfficeBody(props: OfficeBodyProps): ReactNode {
7
+ -import { useCallback, useEffect, type ReactNode } from 'react'
8
+ +import { useCallback, useEffect, useRef, type ReactNode } from 'react'
9
+ import type { PropsLocale, PropsRenderSlots, PropsStore, SlotHookFactory } from '@deepseek-ai/dsh-client-ui-slots/client'
10
+ import type { TabId } from '@deepseek-ai/dsh-client-ui-dockkit/client'
11
+ import { Button, FileTypeIcon, classifyFileType } from '@deepseek-ai/dsh-client-ui-primitives/client'
12
+ @@ -90,14 +90,18 @@ function OfficeFallbackBody(props: OfficeBodyProps): ReactNode {
13
13
  const held = props.useStore(state => state.byTab[tab.id])
14
14
  const view = held?.revision === revision ? held : undefined
15
15
  const settled = view?.file !== undefined || view?.failure !== undefined
16
+ - // Metadata may replace callbacks without advancing the content revision.
16
17
  + /** Newest load callbacks; the effect below reads the ref so a new identity cannot restart it. */
17
18
  + const loadRef = useRef(load)
18
- useEffect(() => { retainTab(tab.id, tab.signal) }, [retainTab, tab.id, tab.signal])
19
- - // Metadata may replace callbacks without advancing the content revision.
20
19
  + // Metadata may replace callbacks without advancing the content revision, and the office face
21
20
  + // rebuilds them on every render, so this effect reads the ref instead of depending on `load`.
22
21
  useEffect(() => {
@@ -1,7 +1,7 @@
1
- diff --git a/packages/core/tool-executor-ptc/src/ts-types.ts b/packages/core/tool-executor-ptc/src/ts-types.ts
2
- index 8026c847..4c0f622f 100644
3
- --- a/packages/core/tool-executor-ptc/src/ts-types.ts
4
- +++ b/packages/core/tool-executor-ptc/src/ts-types.ts
1
+ diff --git a/packages/core/tool-registry-ptc/src/ts-types.ts b/packages/core/tool-registry-ptc/src/ts-types.ts
2
+ index 63f90e6d6b..92222706a4 100644
3
+ --- a/packages/core/tool-registry-ptc/src/ts-types.ts
4
+ +++ b/packages/core/tool-registry-ptc/src/ts-types.ts
5
5
  @@ -8,7 +8,7 @@
6
6
 
7
7
  import type { ToolSchema } from '@deepseek-ai/dsh-llm'
@@ -29,14 +29,14 @@ index 8026c847..4c0f622f 100644
29
29
  return flattenTypeDocument(renderSupportedSchema(schema, indent))
30
30
  } catch {
31
31
  return 'unknown'
32
- diff --git a/packages/core/tool-executor-ptc/tests/ts-types.spec.ts b/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
33
- index 2ec79e97..a345818f 100644
34
- --- a/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
35
- +++ b/packages/core/tool-executor-ptc/tests/ts-types.spec.ts
32
+ diff --git a/packages/core/tool-registry-ptc/tests/ts-types.spec.ts b/packages/core/tool-registry-ptc/tests/ts-types.spec.ts
33
+ index 0d5e9794a0..aa78b3b6d3 100644
34
+ --- a/packages/core/tool-registry-ptc/tests/ts-types.spec.ts
35
+ +++ b/packages/core/tool-registry-ptc/tests/ts-types.spec.ts
36
36
  @@ -1,6 +1,7 @@
37
37
  import { describe, expect, it } from 'vitest'
38
- import { jsonSchemaToTs, renderToolsSdk } from '@deepseek-ai/dsh-tool-executor-ptc/src/ts-types.ts'
39
- import type { ToolSdkSchema } from '@deepseek-ai/dsh-tool-executor-ptc/src/ts-types.ts'
38
+ import { jsonSchemaToTs, renderToolsSdk } from '@deepseek-ai/dsh-tool-registry-ptc/src/ts-types.ts'
39
+ import type { ToolSdkSchema } from '@deepseek-ai/dsh-tool-registry-ptc/src/ts-types.ts'
40
40
  +import { assertSupportedJsonSchema } from '@deepseek-ai/dsh-tools/src/json-schema.ts'
41
41
  import type { JsonSchemaNode } from '@deepseek-ai/dsh-tools/src/json-schema.ts'
42
42
  import { parameterSchemaSpecToJsonSchema } from '@deepseek-ai/dsh-tools'
@@ -90,7 +90,7 @@ index 2ec79e97..a345818f 100644
90
90
  const cases: unknown[] = [
91
91
  undefined,
92
92
  diff --git a/packages/core/tools/src/json-schema.ts b/packages/core/tools/src/json-schema.ts
93
- index c064fb29..573cdd69 100644
93
+ index c064fb294c..573cdd69c0 100644
94
94
  --- a/packages/core/tools/src/json-schema.ts
95
95
  +++ b/packages/core/tools/src/json-schema.ts
96
96
  @@ -84,6 +84,14 @@ const CONSTRAINT_KEYWORDS = new Set([
@@ -1,11 +1,11 @@
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 a232a690..ff7e7bf4 100644
2
+ index cee971859e..f605bfc81b 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
5
  @@ -470,6 +470,31 @@
6
- padding-top: 12px;
7
- }
8
-
6
+ min-width: 180px;
7
+ gap: 6px;
8
+ height: 44px;
9
9
  +.settingToggle {
10
10
  + display: flex;
11
11
  + align-items: center;
@@ -31,24 +31,24 @@ index a232a690..ff7e7bf4 100644
31
31
  + cursor: not-allowed;
32
32
  +}
33
33
  +
34
- .modelCatalog {
35
- position: relative;
36
- display: flex;
34
+ border: 1px dashed var(--dsw-alias-border-l3);
35
+ border-radius: var(--dsw-radius-xl);
36
+ }
37
37
  diff --git a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
38
- index 6dc2fb3b..e99773b8 100644
38
+ index b0cf3c8a1e..a818b5c7f9 100644
39
39
  --- a/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
40
40
  +++ b/packages/client/ui-settings-models/src/client/ProviderEditor.tsx
41
- @@ -50,6 +50,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
42
-
43
-
44
-
41
+ @@ -57,6 +57,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
42
+
43
+
44
+
45
45
  +/** Leaf path of the curated OpenAI Responses compatibility setting. */
46
46
  +const OMIT_REASONING_INPUT_STATUS_PATH = ['responsesCompatibility', 'omitReasoningInputStatus'] as const
47
47
  +
48
48
  /** Props of {@link ProviderEditor}. */
49
49
  export interface ProviderEditorProps {
50
50
  /** Provider route id. */
51
- @@ -219,6 +222,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
51
+ @@ -234,6 +237,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
52
52
  const root = useMemo(() => schema.rehydrate(namespace.schema), [namespace.schema, schema])
53
53
  const node = useMemo(() => schema.nodeAtPath(root, settingsPath), [root, schema, settingsPath])
54
54
  const fallback = schema.getPath(namespace.value, settingsPath)
@@ -57,9 +57,9 @@ index 6dc2fb3b..e99773b8 100644
57
57
  + [...settingsPath, ...OMIT_REASONING_INPUT_STATUS_PATH],
58
58
  + ) === true
59
59
  const disabled = props.readOnly || busy
60
- const layout = layoutOf(namespace.ns)
61
- const keyRef = refFor(schema, namespace, settingsPath, props.provider)
62
- @@ -235,6 +242,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
60
+ const adapterNs = props.adapterNs ?? namespace.ns
61
+ const layout = layoutOf(adapterNs)
62
+ @@ -251,6 +258,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
63
63
  const value = schema.getPath(source, [key])
64
64
  return typeof value === 'string' && value.trim().length > 0 ? value : undefined
65
65
  }
@@ -71,38 +71,38 @@ index 6dc2fb3b..e99773b8 100644
71
71
  const setField = (key: string, next: string | undefined): void => {
72
72
  // A value of nothing but whitespace is cleared, not stored: `stringAt`
73
73
  // already reports it as absent, so the field would otherwise render empty
74
- @@ -294,7 +306,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
75
- ? 'keyRequired' as const
74
+ @@ -311,7 +323,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
76
75
  : undefined
77
76
  const shownKeyFailure = credentialRequiredFailure ?? keyFailure
77
+ const keyRequirementQuiet = protocolKeyMissing && !refused.keyMissing
78
78
  - // An edited-but-unsaved endpoint, and a key typed but not yet stored.
79
79
  + const omitReasoningInputStatus = schema.hasPath(draft, OMIT_REASONING_INPUT_STATUS_PATH)
80
80
  + ? schema.getPath(draft, OMIT_REASONING_INPUT_STATUS_PATH) === true
81
81
  + : schema.getPath(fallback, OMIT_REASONING_INPUT_STATUS_PATH) === true
82
82
  const probeBaseURL = stringAt(draft, 'baseURL') ?? stringAt(fallback, 'baseURL')
83
83
  const probe = {
84
- settingsNs: namespace.ns,
85
- @@ -579,7 +593,15 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
86
- value={probeApi ?? ''}
87
- aria-label={t('customApi')}
88
- disabled={disabled}
89
- - onChange={(event) => { setField('api', event.target.value) }}
90
- + onChange={(event) => {
91
- + const selectedApi = event.target.value
92
- + setDraft((current) => {
93
- + const next = schema.setPath(current, ['api'], selectedApi)
94
- + return selectedApi === 'openai-responses'
95
- + ? next
96
- + : disableOmitReasoningInputStatus(next)
97
- + })
98
- + }}
99
- >
100
- {/* A profile naming no protocol — hand-written into
101
- cordis.patch.yml with no model to need one — selects
102
- @@ -611,6 +633,24 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
103
- }}
104
- />
105
- )}
84
+ settingsNs: adapterNs,
85
+ @@ -619,7 +633,15 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
86
+ value={probeApi ?? ''}
87
+ aria-label={t('customApi')}
88
+ disabled={disabled}
89
+ - onChange={(event) => { setField('api', event.target.value) }}
90
+ + onChange={(event) => {
91
+ + const selectedApi = event.target.value
92
+ + setDraft((current) => {
93
+ + const next = schema.setPath(current, ['api'], selectedApi)
94
+ + return selectedApi === 'openai-responses'
95
+ + ? next
96
+ + : disableOmitReasoningInputStatus(next)
97
+ + })
98
+ + }}
99
+ >
100
+ {/* A profile naming no protocol — hand-written into
101
+ cordis.patch.yml with no model to need one — selects
102
+ @@ -628,6 +650,24 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
103
+ reader announces it either way, and an empty one is
104
+ announced as a choice with no identity. */}
105
+ {probeApi === undefined ? <option value="">{t('customApiUnset')}</option> : null}
106
106
  + {family === 'pi-ai' && probeApi === 'openai-responses'
107
107
  + ? (
108
108
  + <label className={styles['settingToggle']}>
@@ -121,14 +121,14 @@ index 6dc2fb3b..e99773b8 100644
121
121
  + </label>
122
122
  + )
123
123
  + : null}
124
- {/* Both families edit the same rows through the same contract; only
125
- the extras differ — DeepSeek's inherited capacities, pi-ai's
126
- endpoint interrogation. */}
124
+ {protocols.map(choice => <option key={choice} value={choice}>{protocolLabel(t, choice)}</option>)}
125
+ </select>
126
+ </div>
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 5dec1bda..f596cd47 100644
128
+ index 40d230cc13..375304afe7 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
- @@ -156,6 +156,7 @@ export const en = {
131
+ @@ -155,6 +155,7 @@ export const en = {
132
132
  protocolOpenAiResponses: 'OpenAI Responses',
133
133
  protocolAnthropicMessages: 'Anthropic Messages',
134
134
  protocolGemini: 'Gemini API',
@@ -136,7 +136,7 @@ index 5dec1bda..f596cd47 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
- @@ -336,7 +337,8 @@ export const zh: { [Key in keyof typeof en]: string } = {
139
+ @@ -334,7 +335,8 @@ export const zh: { [Key in keyof typeof en]: string } = {
140
140
  protocolOpenAiResponses: 'OpenAI Responses',
141
141
  protocolAnthropicMessages: 'Anthropic Messages',
142
142
  protocolGemini: 'Gemini API',
@@ -146,7 +146,7 @@ index 5dec1bda..f596cd47 100644
146
146
  customBaseUrlInvalid: '请输入有效的 HTTP 或 HTTPS 地址。',
147
147
  customNeedsModels: '自定义模型 API 至少需要一个模型。',
148
148
  customBaseUrlPlaceholder: 'https://gateway.example/v1',
149
- @@ -513,6 +515,7 @@ export const ja = {
149
+ @@ -510,6 +512,7 @@ export const ja = {
150
150
  'protocolOpenAiResponses': 'OpenAI Responses',
151
151
  'protocolAnthropicMessages': 'Anthropic Messages',
152
152
  'protocolGemini': 'Gemini API',
@@ -154,7 +154,7 @@ index 5dec1bda..f596cd47 100644
154
154
  'customNeedsBaseUrl': 'カスタムプロバイダーにはベースURLが必要です。',
155
155
  'customBaseUrlInvalid': '有効なHTTPまたはHTTPSのURLを入力してください。',
156
156
  'customNeedsModels': 'カスタムプロバイダーには少なくとも1つのモデルが必要です。',
157
- @@ -690,6 +693,7 @@ export const es = {
157
+ @@ -686,6 +689,7 @@ export const es = {
158
158
  protocolOpenAiResponses: 'Respuestas de OpenAI',
159
159
  protocolAnthropicMessages: 'Mensajes antrópicos',
160
160
  protocolGemini: 'Gemini API',
@@ -162,7 +162,7 @@ index 5dec1bda..f596cd47 100644
162
162
  customNeedsBaseUrl: 'Un proveedor personalizado necesita una URL base.',
163
163
  customBaseUrlInvalid: 'Ingrese una URL HTTP o HTTPS válida.',
164
164
  customNeedsModels: 'Un proveedor personalizado necesita al menos un modelo.',
165
- @@ -867,6 +871,7 @@ export const fr = {
165
+ @@ -862,6 +866,7 @@ export const fr = {
166
166
  protocolOpenAiResponses: 'Réponses OpenAI',
167
167
  protocolAnthropicMessages: 'Messages anthropiques',
168
168
  protocolGemini: 'Gemini API',
@@ -170,7 +170,7 @@ index 5dec1bda..f596cd47 100644
170
170
  customNeedsBaseUrl: "Un fournisseur personnalisé a besoin d'une URL de base.",
171
171
  customBaseUrlInvalid: 'Saisissez une URL HTTP ou HTTPS valide.',
172
172
  customNeedsModels: "Un fournisseur personnalisé a besoin d'au moins un modèle.",
173
- @@ -1044,6 +1049,7 @@ export const de = {
173
+ @@ -1038,6 +1043,7 @@ export const de = {
174
174
  protocolOpenAiResponses: 'OpenAI-Antworten',
175
175
  protocolAnthropicMessages: 'Anthropische Botschaften',
176
176
  protocolGemini: 'Gemini API',
@@ -178,7 +178,7 @@ index 5dec1bda..f596cd47 100644
178
178
  customNeedsBaseUrl: 'Ein benutzerdefinierter Anbieter benötigt eine Basis-URL.',
179
179
  customBaseUrlInvalid: 'Geben Sie eine gültige HTTP- oder HTTPS-URL ein.',
180
180
  customNeedsModels: 'Ein benutzerdefinierter Anbieter benötigt mindestens ein Modell.',
181
- @@ -1221,6 +1227,7 @@ export const ru = {
181
+ @@ -1214,6 +1220,7 @@ export const ru = {
182
182
  protocolOpenAiResponses: 'Ответы OpenAI',
183
183
  protocolAnthropicMessages: 'Антропные сообщения',
184
184
  protocolGemini: 'Gemini API',
@@ -186,7 +186,7 @@ index 5dec1bda..f596cd47 100644
186
186
  customNeedsBaseUrl: 'Пользовательскому поставщику нужен базовый URL-адрес.',
187
187
  customBaseUrlInvalid: 'Введите действительный URL-адрес HTTP или HTTPS.',
188
188
  customNeedsModels: 'Пользовательскому поставщику нужна хотя бы одна модель.',
189
- @@ -1398,6 +1405,7 @@ export const pt = {
189
+ @@ -1390,6 +1397,7 @@ export const pt = {
190
190
  protocolOpenAiResponses: 'Respostas OpenAI',
191
191
  protocolAnthropicMessages: 'Mensagens Antrópicas',
192
192
  protocolGemini: 'Gemini API',
@@ -195,9 +195,10 @@ index 5dec1bda..f596cd47 100644
195
195
  customBaseUrlInvalid: 'Insira um URL HTTP ou HTTPS válido.',
196
196
  customNeedsModels: 'Um provedor personalizado precisa de pelo menos um modelo.',
197
197
  diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/adapter.ts
198
+ index e456b89db9..37247bfbe1 100644
198
199
  --- a/packages/llm/llm-pi-ai/src/adapter.ts
199
200
  +++ b/packages/llm/llm-pi-ai/src/adapter.ts
200
- @@ -58,7 +58,7 @@
201
+ @@ -58,7 +58,7 @@ import type {
201
202
  import type { AttachmentStore, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
202
203
  import { brandString } from '@deepseek-ai/dsh-brand'
203
204
  import { idleWatchdog, timeoutOf } from '@deepseek-ai/dsh-timeout'
@@ -206,7 +207,7 @@ diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/
206
207
  import { requestImageTarget, toPiContext } from './context.ts'
207
208
  import { resolveImageRequestBudget } from './image-policy.ts'
208
209
  import { conversationUpdates, createModels, getSupportedThinkingLevels } from './models.ts'
209
- @@ -146,9 +146,76 @@
210
+ @@ -146,9 +146,76 @@ export interface PiAiAuthInjection {
210
211
  authContext: AuthContext
211
212
  }
212
213
 
@@ -283,7 +284,7 @@ diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/
283
284
  reasoning: ModelThinkingLevel | undefined,
284
285
  apiKey: string | undefined,
285
286
  ): SimpleStreamOptions {
286
- @@ -161,6 +228,7 @@
287
+ @@ -161,6 +228,7 @@ function profileOptions(
287
288
  ...profile.transport === undefined ? {} : { transport: profile.transport },
288
289
  ...profile.timeoutMs === undefined ? {} : { timeoutMs: profile.timeoutMs },
289
290
  ...profile.websocketConnectTimeoutMs === undefined ? {} : { websocketConnectTimeoutMs: profile.websocketConnectTimeoutMs },
@@ -291,7 +292,7 @@ diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/
291
292
  // The agent recovery layer owns visible attempts; one adapter call is one SDK attempt.
292
293
  maxRetries: 0,
293
294
  }
294
- @@ -471,7 +539,7 @@
295
+ @@ -471,7 +539,7 @@ export class PiAiAdapter extends LlmAdapter {
295
296
  this.config.onThinkingOmitted?.({ provider: options.provider, model: options.model, count })
296
297
  })
297
298
  const events = snapshot.models.streamSimple(model, context, {
@@ -301,13 +302,13 @@ diff --git a/packages/llm/llm-pi-ai/src/adapter.ts b/packages/llm/llm-pi-ai/src/
301
302
  ...options.maxTokens === undefined ? {} : { maxTokens: options.maxTokens },
302
303
  ...options.sessionId === undefined ? {} : { sessionId: String(options.sessionId) },
303
304
  diff --git a/packages/llm/llm-pi-ai/src/catalog.ts b/packages/llm/llm-pi-ai/src/catalog.ts
304
- index b2103095..cd903ab0 100644
305
+ index b210309574..cd903ab055 100644
305
306
  --- a/packages/llm/llm-pi-ai/src/catalog.ts
306
307
  +++ b/packages/llm/llm-pi-ai/src/catalog.ts
307
308
  @@ -600,6 +600,29 @@ function assertOfferedCompatFields(
308
309
  }
309
310
  }
310
-
311
+
311
312
  +/**
312
313
  + * How one model's `reasoning.summary` leaves for an OpenAI Responses upstream.
313
314
  + *
@@ -349,7 +350,7 @@ index b2103095..cd903ab0 100644
349
350
  + */
350
351
  + reasoningSummary?: PiAiReasoningSummary
351
352
  }
352
-
353
+
353
354
  /**
354
355
  @@ -957,6 +990,7 @@ export function resolveRouteModels(
355
356
  maxTokens,
@@ -360,10 +361,10 @@ index b2103095..cd903ab0 100644
360
361
  }
361
362
  const models: Model<Api>[] = []
362
363
  diff --git a/packages/llm/llm-pi-ai/src/config.ts b/packages/llm/llm-pi-ai/src/config.ts
363
- index 9de6c441..3f918b9b 100644
364
+ index 3225942f4f..affe226e60 100644
364
365
  --- a/packages/llm/llm-pi-ai/src/config.ts
365
366
  +++ b/packages/llm/llm-pi-ai/src/config.ts
366
- @@ -29,6 +29,7 @@ import {
367
+ @@ -31,6 +31,7 @@ import {
367
368
  MODALITIES,
368
369
  PiAiCatalogError,
369
370
  resolveRouteModels,
@@ -371,14 +372,14 @@ index 9de6c441..3f918b9b 100644
371
372
  SUPPORTED_THINKING_FORMATS,
372
373
  THINKING_LEVELS,
373
374
  THINKING_TOKEN_BUDGET_FIELDS,
374
- @@ -98,9 +99,16 @@ export type {
375
+ @@ -99,9 +100,16 @@ export type {
375
376
  PiAiModelOverride,
376
377
  PiAiModelProfile,
377
378
  PiAiReasoningEfforts,
378
379
  + PiAiReasoningSummary,
379
380
  PiAiThinkingFormat,
380
381
  } from './catalog.ts'
381
-
382
+
382
383
  +/** OpenAI Responses input-item adjustments for compatible gateways. */
383
384
  +export interface PiAiResponsesCompatibility {
384
385
  + /** Omit response-only status metadata from replayed reasoning input items. */
@@ -388,7 +389,7 @@ index 9de6c441..3f918b9b 100644
388
389
  /** Configuration for one pi-ai provider route; the `providers` dict key IS the route. */
389
390
  export interface PiAiProviderProfile {
390
391
  /** Credential reference (environment-variable name) resolved per request through `ctx.credentials`. */
391
- @@ -138,6 +146,8 @@ export interface PiAiProviderProfile {
392
+ @@ -139,6 +147,8 @@ export interface PiAiProviderProfile {
392
393
  * refused rather than left looking applied.
393
394
  */
394
395
  compat?: PiAiCompatProfile
@@ -397,18 +398,18 @@ index 9de6c441..3f918b9b 100644
397
398
  /**
398
399
  * Context capacity for a model this route lists that neither the entry nor
399
400
  * the installed catalog sizes (default 1,000,000). A guess by construction, so
400
- @@ -342,6 +352,7 @@ const modelFields = {
401
+ @@ -360,6 +370,7 @@ const modelFields = {
401
402
  // installed catalog's capability", while `false` disables reasoning.
402
403
  reasoningEfforts: z.union([z.const(false), reasoningEfforts]),
403
404
  compat: compatProfile,
404
405
  + reasoningSummary: z.union(REASONING_SUMMARIES),
405
406
  }
406
-
407
+
407
408
  const modelProfile: z<PiAiModelProfile> = z.object({
408
- @@ -352,6 +363,10 @@ const modelProfile: z<PiAiModelProfile> = z.object({
409
+ @@ -370,6 +381,10 @@ const modelProfile: z<PiAiModelProfile> = z.object({
409
410
  /** A {@link modelProfile} whose id lives in the `modelOverrides` dict key. */
410
411
  const modelOverride: z<PiAiModelOverride> = z.object(modelFields)
411
-
412
+
412
413
  +const responsesCompatibility: z<PiAiResponsesCompatibility> = z.object({
413
414
  + omitReasoningInputStatus: z.boolean(),
414
415
  +})
@@ -416,7 +417,7 @@ index 9de6c441..3f918b9b 100644
416
417
  const profile = z.object({
417
418
  apiKeyEnv: z.string().role('credential-ref'),
418
419
  displayName: z.string(),
419
- @@ -360,6 +375,7 @@ const profile = z.object({
420
+ @@ -378,6 +393,7 @@ const profile = z.object({
420
421
  models: z.array(modelProfile),
421
422
  modelOverrides: z.dict(modelOverride),
422
423
  compat: compatProfile,
@@ -424,7 +425,7 @@ index 9de6c441..3f918b9b 100644
424
425
  defaultContextWindow: z.number().step(1).min(1).default(DEFAULT_CONTEXT_WINDOW),
425
426
  defaultMaxTokens: z.number().step(1).min(1).default(DEFAULT_MAX_TOKENS),
426
427
  defaultInput: z.array(z.union(MODALITIES)).default([...DEFAULT_INPUT]),
427
- @@ -457,6 +473,11 @@ export function resolveProfiles(
428
+ @@ -509,6 +525,11 @@ export function resolveProfiles(
428
429
  throw new Error(`llm-pi-ai: provider "${provider}" has an empty displayName`)
429
430
  }
430
431
  assertValidHeaders(provider, source.headers)
@@ -1,14 +1,14 @@
1
1
  diff --git a/packages/client/ui-sidebar-right/src/client/index.ts b/packages/client/ui-sidebar-right/src/client/index.ts
2
- index 1f3d3781..2c56ebc9 100644
2
+ index 9410b7ce09..fab6b676c0 100644
3
3
  --- a/packages/client/ui-sidebar-right/src/client/index.ts
4
4
  +++ b/packages/client/ui-sidebar-right/src/client/index.ts
5
5
  @@ -1,5 +1,4 @@
6
- import { IconCloseOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
6
+ import { IconCloseOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives/client'
7
7
  -import type { ShortcutCommandId } from '@deepseek-ai/dsh-client-shortcuts/client'
8
8
  import { TabMenuContent } from './shell/TabMenuContent.tsx'
9
9
  import type {} from '@deepseek-ai/dsh-client-ui-context-menu/client'
10
10
  /**
11
- @@ -138,24 +137,6 @@ export function apply(ctx: ClientContext): void {
11
+ @@ -141,24 +140,6 @@ export function apply(ctx: ClientContext): void {
12
12
  ctx.effect(() => ctx.slots.inject('contextMenu.icon', () => ctx.slots.register({
13
13
  name: 'contextMenu.icon', key: 'sidebar.close',
14
14
  }, IconCloseOutlineRegular)), 'sidebar: menu icon')
@@ -34,7 +34,7 @@ index 1f3d3781..2c56ebc9 100644
34
34
  name: 'contextMenu.content', key: 'tab',
35
35
  children: { 'sidebar.right.tab.menu.item': { kind: 'list', scope: 'session' } },
36
36
  diff --git a/packages/client/ui-sidebar-right/src/client/locales.ts b/packages/client/ui-sidebar-right/src/client/locales.ts
37
- index 44b137b2..1f4b1904 100644
37
+ index 44b137b25c..1f4b190402 100644
38
38
  --- a/packages/client/ui-sidebar-right/src/client/locales.ts
39
39
  +++ b/packages/client/ui-sidebar-right/src/client/locales.ts
40
40
  @@ -8,9 +8,6 @@
@@ -1,7 +1,7 @@
1
- diff --git a/packages/client/ui-primitives/src/StateDot.module.css b/packages/client/ui-primitives/src/StateDot.module.css
2
- index 1a692c68..3aa3186b 100644
3
- --- a/packages/client/ui-primitives/src/StateDot.module.css
4
- +++ b/packages/client/ui-primitives/src/StateDot.module.css
1
+ diff --git a/packages/client/ui-primitives/src/client/StateDot.module.css b/packages/client/ui-primitives/src/client/StateDot.module.css
2
+ index 1a692c6892..3aa3186b94 100644
3
+ --- a/packages/client/ui-primitives/src/client/StateDot.module.css
4
+ +++ b/packages/client/ui-primitives/src/client/StateDot.module.css
5
5
  @@ -1,4 +1,12 @@
6
6
  -/* Solid states keep the 10px layout slot but paint one 6px currentColor core. */
7
7
  +/* Ongoing blue has no alias token (state-business-primary is the 500 step,
@@ -104,10 +104,10 @@ index 1a692c68..3aa3186b 100644
104
104
  -.step[data-state='warning'] { border-color: var(--dsw-alias-state-warn-primary); }
105
105
  +.step[data-state='warning'] { border-color: var(--dsw-alias-state-warn-primary); }
106
106
 
107
- diff --git a/packages/client/ui-primitives/src/StateDot.tsx b/packages/client/ui-primitives/src/StateDot.tsx
108
- index ec480c69..f54ebddf 100644
109
- --- a/packages/client/ui-primitives/src/StateDot.tsx
110
- +++ b/packages/client/ui-primitives/src/StateDot.tsx
107
+ diff --git a/packages/client/ui-primitives/src/client/StateDot.tsx b/packages/client/ui-primitives/src/client/StateDot.tsx
108
+ index ec480c6981..f54ebddf44 100644
109
+ --- a/packages/client/ui-primitives/src/client/StateDot.tsx
110
+ +++ b/packages/client/ui-primitives/src/client/StateDot.tsx
111
111
  @@ -3,35 +3,15 @@ import css from './StateDot.module.css'
112
112
  import { IconCheckOutlineRegular } from './icons/index.tsx'
113
113
 
@@ -1,11 +1,11 @@
1
1
  diff --git a/packages/client/ui-settings-general/src/client/SettingsRoot.module.css b/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
2
- index 29c3d52c..b4a456e9 100644
2
+ index 132864b8e4..f1dff2dc80 100644
3
3
  --- a/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
4
4
  +++ b/packages/client/ui-settings-general/src/client/SettingsRoot.module.css
5
- @@ -340,3 +340,64 @@
6
- ui-web base.css's `body > :not(#root)` subtraction covers it wherever it
7
- overlaps a chrome row's drag — including above every column, which an in-root
8
- overlay could not promise once a chrome row declares drag itself. */
5
+ @@ -340,6 +340,67 @@
6
+ }
7
+ }
8
+
9
9
  +
10
10
  +/*
11
11
  + * A phone has no room for the desktop two-column shell. The rail keeps its 188px and the panel is
@@ -67,3 +67,6 @@ index 29c3d52c..b4a456e9 100644
67
67
  +
68
68
  + /* Takes the space the rail leaves and scrolls its own options. */
69
69
  + .content {
70
+ /* Visually-hidden text seat (close button accessible name from slot content). */
71
+ .hiddenLabel {
72
+ position: absolute;