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

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
@@ -3,8 +3,8 @@
3
3
  "dsh-plus": "lib/bin.js"
4
4
  },
5
5
  "dependencies": {
6
- "@deepseek-ai/dsh-computer-use": "0.2.3-alpha.3",
7
- "@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp": "0.2.3-alpha.3",
6
+ "@deepseek-ai/dsh-computer-use": "0.2.3-alpha.2",
7
+ "@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp": "0.2.3-alpha.2",
8
8
  "@sparkelf/dsh-plugin-backup": ">=0.2.1-alpha.1",
9
9
  "@sparkelf/dsh-plugin-mcp-credentials": "0.2.9-alpha.106",
10
10
  "dshmarket": ">=1.66.7",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dshPlus": {
26
26
  "compatibility": {
27
- "dsh": ">=0.2.3-alpha.3"
27
+ "dsh": ">=0.2.3-alpha.2"
28
28
  },
29
29
  "editions": {
30
30
  "intranet-team": {
@@ -413,11 +413,11 @@
413
413
  "target": {
414
414
  "kind": "dsh-source",
415
415
  "packages": [
416
- "@deepseek-ai/dsh-tool-registry-ptc",
416
+ "@deepseek-ai/dsh-tool-executor-ptc",
417
417
  "@deepseek-ai/dsh-tools"
418
418
  ],
419
419
  "paths": [
420
- "packages/core/tool-registry-ptc/",
420
+ "packages/core/tool-executor-ptc/",
421
421
  "packages/core/tools/"
422
422
  ]
423
423
  }
@@ -636,35 +636,35 @@
636
636
  "dependencies": {
637
637
  "@anysearch/anysearch-dsh": "0.1.8",
638
638
  "@deepseek-ai/cordis-plugin-group": "1.0.6-alpha.2",
639
- "@deepseek-ai/dsh-agent": "0.2.3-alpha.3",
640
- "@deepseek-ai/dsh-anonymous-user-id": "0.2.3-alpha.3",
641
- "@deepseek-ai/dsh-attachment": "0.2.3-alpha.3",
642
- "@deepseek-ai/dsh-bash-local": "0.2.3-alpha.3",
643
- "@deepseek-ai/dsh-client-store": "0.2.3-alpha.3",
644
- "@deepseek-ai/dsh-compaction": "0.2.3-alpha.3",
645
- "@deepseek-ai/dsh-deepseek-account": "0.2.3-alpha.3",
646
- "@deepseek-ai/dsh-error": "0.2.3-alpha.3",
647
- "@deepseek-ai/dsh-experimental-auto-review": "0.2.3-alpha.3",
648
- "@deepseek-ai/dsh-fs": "0.2.3-alpha.3",
649
- "@deepseek-ai/dsh-home-paths": "0.2.3-alpha.3",
650
- "@deepseek-ai/dsh-jobs": "0.2.3-alpha.3",
651
- "@deepseek-ai/dsh-launch-environment": "0.2.3-alpha.3",
652
- "@deepseek-ai/dsh-llm": "0.2.3-alpha.3",
653
- "@deepseek-ai/dsh-llm-deepseek": "0.2.3-alpha.3",
654
- "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.3",
655
- "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.3",
656
- "@deepseek-ai/dsh-scope": "0.2.3-alpha.3",
657
- "@deepseek-ai/dsh-sdk-protocol": "0.2.3-alpha.3",
658
- "@deepseek-ai/dsh-session-persistence": "0.2.3-alpha.3",
659
- "@deepseek-ai/dsh-session-telemetry": "0.2.3-alpha.3",
660
- "@deepseek-ai/dsh-session-title-llm": "0.2.3-alpha.3",
661
- "@deepseek-ai/dsh-shell": "0.2.3-alpha.3",
662
- "@deepseek-ai/dsh-spill": "0.2.3-alpha.3",
663
- "@deepseek-ai/dsh-system-prompt": "0.2.3-alpha.3",
664
- "@deepseek-ai/dsh-tool-session-query": "0.2.3-alpha.3",
665
- "@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.3",
639
+ "@deepseek-ai/dsh-agent": "0.2.3-alpha.2",
640
+ "@deepseek-ai/dsh-anonymous-user-id": "0.2.3-alpha.2",
641
+ "@deepseek-ai/dsh-attachment": "0.2.3-alpha.2",
642
+ "@deepseek-ai/dsh-bash-local": "0.2.3-alpha.2",
643
+ "@deepseek-ai/dsh-client-store": "0.2.3-alpha.2",
644
+ "@deepseek-ai/dsh-compaction": "0.2.3-alpha.2",
645
+ "@deepseek-ai/dsh-deepseek-account": "0.2.3-alpha.2",
646
+ "@deepseek-ai/dsh-error": "0.2.3-alpha.2",
647
+ "@deepseek-ai/dsh-experimental-auto-review": "0.2.3-alpha.2",
648
+ "@deepseek-ai/dsh-fs": "0.2.3-alpha.2",
649
+ "@deepseek-ai/dsh-home-paths": "0.2.3-alpha.2",
650
+ "@deepseek-ai/dsh-jobs": "0.2.3-alpha.2",
651
+ "@deepseek-ai/dsh-launch-environment": "0.2.3-alpha.2",
652
+ "@deepseek-ai/dsh-llm": "0.2.3-alpha.2",
653
+ "@deepseek-ai/dsh-llm-deepseek": "0.2.3-alpha.2",
654
+ "@deepseek-ai/dsh-ptc-runtime": "0.2.3-alpha.2",
655
+ "@deepseek-ai/dsh-sandbox": "0.2.3-alpha.2",
656
+ "@deepseek-ai/dsh-scope": "0.2.3-alpha.2",
657
+ "@deepseek-ai/dsh-sdk-protocol": "0.2.3-alpha.2",
658
+ "@deepseek-ai/dsh-session-persistence": "0.2.3-alpha.2",
659
+ "@deepseek-ai/dsh-session-telemetry": "0.2.3-alpha.2",
660
+ "@deepseek-ai/dsh-session-title-llm": "0.2.3-alpha.2",
661
+ "@deepseek-ai/dsh-shell": "0.2.3-alpha.2",
662
+ "@deepseek-ai/dsh-spill": "0.2.3-alpha.2",
663
+ "@deepseek-ai/dsh-system-prompt": "0.2.3-alpha.2",
664
+ "@deepseek-ai/dsh-tool-session-query": "0.2.3-alpha.2",
665
+ "@deepseek-ai/dsh-util-workspace-path": "0.2.3-alpha.2",
666
666
  "@deepseek-ai/dsh-web-search-exa": "0.2.2-rc.1",
667
- "@deepseek-ai/dsh-workflow": "0.2.3-alpha.3",
667
+ "@deepseek-ai/dsh-workflow": "0.2.3-alpha.2",
668
668
  "@sparkelf/dsh-api-client": "0.5.3",
669
669
  "@sparkelf/dsh-artifact-app": "0.1.1",
670
670
  "@sparkelf/dsh-client-ui-skill-center": "0.2.9-alpha.86",
@@ -675,7 +675,7 @@
675
675
  "@sparkelf/dsh-genui": "0.15.0-sparkelf.3",
676
676
  "@sparkelf/dsh-group-chat": "0.5.12",
677
677
  "@sparkelf/dsh-kb-citation": "0.1.6",
678
- "@sparkelf/dsh-knowledge-base": "0.6.3",
678
+ "@sparkelf/dsh-knowledge-base": "0.6.4",
679
679
  "@sparkelf/dsh-mineru": "0.1.4",
680
680
  "@sparkelf/dsh-mobile-bridge": "0.2.18",
681
681
  "@sparkelf/dsh-ocr": "0.1.0",
@@ -696,10 +696,10 @@
696
696
  }
697
697
  },
698
698
  "runtime": {
699
- "version": "0.2.3-alpha.3"
699
+ "version": "0.2.3-alpha.2"
700
700
  },
701
701
  "sourceBase": {
702
- "revision": "841f76d3c51966375ebed9b25512ebce4ac02079"
702
+ "revision": "4b399c39a6d1479cd84ca591b4d7c88e24d38a96"
703
703
  },
704
704
  "thirdPartyPatches": []
705
705
  },
@@ -744,5 +744,5 @@
744
744
  },
745
745
  "type": "module",
746
746
  "types": "lib/types/index.d.ts",
747
- "version": "0.2.9-alpha.108"
747
+ "version": "0.2.9-alpha.109"
748
748
  }
@@ -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 bb9b3d2065..450a69d2bc 100644
2
+ index bb9b3d20..450a69d2 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 bb9b3d2065..450a69d2bc 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 ed8a2443f3..e94d04536b 100644
19
+ index afd89b3c..5a568f38 100644
20
20
  --- a/apps/web/tests/default-model.e2e.ts
21
21
  +++ b/apps/web/tests/default-model.e2e.ts
22
- @@ -490,6 +490,13 @@ describe('web e2e: the composer model switch is the default for later sessions',
22
+ @@ -482,6 +482,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 ed8a2443f3..e94d04536b 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 36913ce454..7b5454f6ba 100644
37
+ index 8a204762..b91e932d 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,23 +47,22 @@ index 36913ce454..7b5454f6ba 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 a4f29603ba..9a86d41290 100644
50
+ index 23e71c9c..50e1d3a9 100644
51
51
  --- a/packages/client/ui-layout/src/client/AppFrame.tsx
52
52
  +++ b/packages/client/ui-layout/src/client/AppFrame.tsx
53
- @@ -48,7 +48,7 @@ function inertProps(inert: boolean): object {
53
+ @@ -39,7 +39,7 @@ export type AppFrameProps =
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} {...inertProps(props.inert)}>{props.children}</div>
58
- + return <div className={css.centerCol} data-dsh-center-col {...inertProps(props.inert)}>{props.children}</div>
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>
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
64
63
  --- a/packages/client/ui-model-selection/src/client/ModelSelect.tsx
65
64
  +++ b/packages/client/ui-model-selection/src/client/ModelSelect.tsx
66
- @@ -96,11 +96,19 @@ export function ModelSelect(
65
+ @@ -93,11 +93,19 @@
67
66
  const lastActionRef = useRef<'load' | 'select'>('load')
68
67
  const [toast, setToast] = useState<{ seq: number; text: string } | null>(null)
69
68
  const toastSeq = useRef(0)
@@ -83,7 +82,7 @@ index 2fbec9f039..8385944dad 100644
83
82
  const itemRefs = useRef<(HTMLButtonElement | null)[]>([])
84
83
  const id = useId()
85
84
  const anchorStyle: CSSProperties & Record<'--dsh-model-anchor', string> = {
86
- @@ -541,7 +549,9 @@ export function ModelSelect(
85
+ @@ -538,7 +546,9 @@
87
86
  tabIndex={pane.kind === 'detail' ? -1 : undefined}
88
87
  id={`${id}-menu`}
89
88
  className={clsx(css.menu, (pane.kind === 'root' || pane.kind === 'detail') && css.settingsMenu)}
@@ -1,21 +1,22 @@
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 ddbf63155c..49fd318817 100644
2
+ index 3215f97a..a6d951b4 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 { 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 {
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 {
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.
17
16
  + /** Newest load callbacks; the effect below reads the ref so a new identity cannot restart it. */
18
17
  + 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.
19
20
  + // Metadata may replace callbacks without advancing the content revision, and the office face
20
21
  + // rebuilds them on every render, so this effect reads the ref instead of depending on `load`.
21
22
  useEffect(() => {
@@ -1,7 +1,7 @@
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
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
5
5
  @@ -8,7 +8,7 @@
6
6
 
7
7
  import type { ToolSchema } from '@deepseek-ai/dsh-llm'
@@ -29,14 +29,14 @@ index 63f90e6d6b..92222706a4 100644
29
29
  return flattenTypeDocument(renderSupportedSchema(schema, indent))
30
30
  } catch {
31
31
  return 'unknown'
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
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
36
36
  @@ -1,6 +1,7 @@
37
37
  import { describe, expect, it } from 'vitest'
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'
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'
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 0d5e9794a0..aa78b3b6d3 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 c064fb294c..573cdd69c0 100644
93
+ index c064fb29..573cdd69 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 cee971859e..f605bfc81b 100644
2
+ index a232a690..ff7e7bf4 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
- min-width: 180px;
7
- gap: 6px;
8
- height: 44px;
6
+ padding-top: 12px;
7
+ }
8
+
9
9
  +.settingToggle {
10
10
  + display: flex;
11
11
  + align-items: center;
@@ -31,24 +31,24 @@ index cee971859e..f605bfc81b 100644
31
31
  + cursor: not-allowed;
32
32
  +}
33
33
  +
34
- border: 1px dashed var(--dsw-alias-border-l3);
35
- border-radius: var(--dsw-radius-xl);
36
- }
34
+ .modelCatalog {
35
+ position: relative;
36
+ display: flex;
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 b0cf3c8a1e..a818b5c7f9 100644
38
+ index 6dc2fb3b..e99773b8 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
- @@ -57,6 +57,9 @@ type EditorLayout = 'deepseek' | 'pi-ai' | 'unknown'
42
-
43
-
44
-
41
+ @@ -50,6 +50,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
- @@ -234,6 +237,10 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
51
+ @@ -219,6 +222,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 b0cf3c8a1e..a818b5c7f9 100644
57
57
  + [...settingsPath, ...OMIT_REASONING_INPUT_STATUS_PATH],
58
58
  + ) === true
59
59
  const disabled = props.readOnly || busy
60
- const adapterNs = props.adapterNs ?? namespace.ns
61
- const layout = layoutOf(adapterNs)
62
- @@ -251,6 +258,11 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
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 {
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 b0cf3c8a1e..a818b5c7f9 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
- @@ -311,7 +323,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
74
+ @@ -294,7 +306,9 @@ export function ProviderEditor(props: ProviderEditorProps): ReactNode {
75
+ ? 'keyRequired' as const
75
76
  : undefined
76
77
  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: 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}
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
+ )}
106
106
  + {family === 'pi-ai' && probeApi === 'openai-responses'
107
107
  + ? (
108
108
  + <label className={styles['settingToggle']}>
@@ -121,14 +121,14 @@ index b0cf3c8a1e..a818b5c7f9 100644
121
121
  + </label>
122
122
  + )
123
123
  + : null}
124
- {protocols.map(choice => <option key={choice} value={choice}>{protocolLabel(t, choice)}</option>)}
125
- </select>
126
- </div>
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. */}
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 40d230cc13..375304afe7 100644
128
+ index 5dec1bda..f596cd47 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
- @@ -155,6 +155,7 @@ export const en = {
131
+ @@ -156,6 +156,7 @@ export const en = {
132
132
  protocolOpenAiResponses: 'OpenAI Responses',
133
133
  protocolAnthropicMessages: 'Anthropic Messages',
134
134
  protocolGemini: 'Gemini API',
@@ -136,7 +136,7 @@ index 40d230cc13..375304afe7 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
- @@ -334,7 +335,8 @@ export const zh: { [Key in keyof typeof en]: string } = {
139
+ @@ -336,7 +337,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 40d230cc13..375304afe7 100644
146
146
  customBaseUrlInvalid: '请输入有效的 HTTP 或 HTTPS 地址。',
147
147
  customNeedsModels: '自定义模型 API 至少需要一个模型。',
148
148
  customBaseUrlPlaceholder: 'https://gateway.example/v1',
149
- @@ -510,6 +512,7 @@ export const ja = {
149
+ @@ -513,6 +515,7 @@ export const ja = {
150
150
  'protocolOpenAiResponses': 'OpenAI Responses',
151
151
  'protocolAnthropicMessages': 'Anthropic Messages',
152
152
  'protocolGemini': 'Gemini API',
@@ -154,7 +154,7 @@ index 40d230cc13..375304afe7 100644
154
154
  'customNeedsBaseUrl': 'カスタムプロバイダーにはベースURLが必要です。',
155
155
  'customBaseUrlInvalid': '有効なHTTPまたはHTTPSのURLを入力してください。',
156
156
  'customNeedsModels': 'カスタムプロバイダーには少なくとも1つのモデルが必要です。',
157
- @@ -686,6 +689,7 @@ export const es = {
157
+ @@ -690,6 +693,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 40d230cc13..375304afe7 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
- @@ -862,6 +866,7 @@ export const fr = {
165
+ @@ -867,6 +871,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 40d230cc13..375304afe7 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
- @@ -1038,6 +1043,7 @@ export const de = {
173
+ @@ -1044,6 +1049,7 @@ export const de = {
174
174
  protocolOpenAiResponses: 'OpenAI-Antworten',
175
175
  protocolAnthropicMessages: 'Anthropische Botschaften',
176
176
  protocolGemini: 'Gemini API',
@@ -178,7 +178,7 @@ index 40d230cc13..375304afe7 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
- @@ -1214,6 +1220,7 @@ export const ru = {
181
+ @@ -1221,6 +1227,7 @@ export const ru = {
182
182
  protocolOpenAiResponses: 'Ответы OpenAI',
183
183
  protocolAnthropicMessages: 'Антропные сообщения',
184
184
  protocolGemini: 'Gemini API',
@@ -186,7 +186,7 @@ index 40d230cc13..375304afe7 100644
186
186
  customNeedsBaseUrl: 'Пользовательскому поставщику нужен базовый URL-адрес.',
187
187
  customBaseUrlInvalid: 'Введите действительный URL-адрес HTTP или HTTPS.',
188
188
  customNeedsModels: 'Пользовательскому поставщику нужна хотя бы одна модель.',
189
- @@ -1390,6 +1397,7 @@ export const pt = {
189
+ @@ -1398,6 +1405,7 @@ export const pt = {
190
190
  protocolOpenAiResponses: 'Respostas OpenAI',
191
191
  protocolAnthropicMessages: 'Mensagens Antrópicas',
192
192
  protocolGemini: 'Gemini API',
@@ -195,10 +195,9 @@ index 40d230cc13..375304afe7 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
199
198
  --- a/packages/llm/llm-pi-ai/src/adapter.ts
200
199
  +++ b/packages/llm/llm-pi-ai/src/adapter.ts
201
- @@ -58,7 +58,7 @@ import type {
200
+ @@ -58,7 +58,7 @@
202
201
  import type { AttachmentStore, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
203
202
  import { brandString } from '@deepseek-ai/dsh-brand'
204
203
  import { idleWatchdog, timeoutOf } from '@deepseek-ai/dsh-timeout'
@@ -207,7 +206,7 @@ index e456b89db9..37247bfbe1 100644
207
206
  import { requestImageTarget, toPiContext } from './context.ts'
208
207
  import { resolveImageRequestBudget } from './image-policy.ts'
209
208
  import { conversationUpdates, createModels, getSupportedThinkingLevels } from './models.ts'
210
- @@ -146,9 +146,76 @@ export interface PiAiAuthInjection {
209
+ @@ -146,9 +146,76 @@
211
210
  authContext: AuthContext
212
211
  }
213
212
 
@@ -284,7 +283,7 @@ index e456b89db9..37247bfbe1 100644
284
283
  reasoning: ModelThinkingLevel | undefined,
285
284
  apiKey: string | undefined,
286
285
  ): SimpleStreamOptions {
287
- @@ -161,6 +228,7 @@ function profileOptions(
286
+ @@ -161,6 +228,7 @@
288
287
  ...profile.transport === undefined ? {} : { transport: profile.transport },
289
288
  ...profile.timeoutMs === undefined ? {} : { timeoutMs: profile.timeoutMs },
290
289
  ...profile.websocketConnectTimeoutMs === undefined ? {} : { websocketConnectTimeoutMs: profile.websocketConnectTimeoutMs },
@@ -292,7 +291,7 @@ index e456b89db9..37247bfbe1 100644
292
291
  // The agent recovery layer owns visible attempts; one adapter call is one SDK attempt.
293
292
  maxRetries: 0,
294
293
  }
295
- @@ -471,7 +539,7 @@ export class PiAiAdapter extends LlmAdapter {
294
+ @@ -471,7 +539,7 @@
296
295
  this.config.onThinkingOmitted?.({ provider: options.provider, model: options.model, count })
297
296
  })
298
297
  const events = snapshot.models.streamSimple(model, context, {
@@ -302,13 +301,13 @@ index e456b89db9..37247bfbe1 100644
302
301
  ...options.maxTokens === undefined ? {} : { maxTokens: options.maxTokens },
303
302
  ...options.sessionId === undefined ? {} : { sessionId: String(options.sessionId) },
304
303
  diff --git a/packages/llm/llm-pi-ai/src/catalog.ts b/packages/llm/llm-pi-ai/src/catalog.ts
305
- index b210309574..cd903ab055 100644
304
+ index b2103095..cd903ab0 100644
306
305
  --- a/packages/llm/llm-pi-ai/src/catalog.ts
307
306
  +++ b/packages/llm/llm-pi-ai/src/catalog.ts
308
307
  @@ -600,6 +600,29 @@ function assertOfferedCompatFields(
309
308
  }
310
309
  }
311
-
310
+
312
311
  +/**
313
312
  + * How one model's `reasoning.summary` leaves for an OpenAI Responses upstream.
314
313
  + *
@@ -350,7 +349,7 @@ index b210309574..cd903ab055 100644
350
349
  + */
351
350
  + reasoningSummary?: PiAiReasoningSummary
352
351
  }
353
-
352
+
354
353
  /**
355
354
  @@ -957,6 +990,7 @@ export function resolveRouteModels(
356
355
  maxTokens,
@@ -361,10 +360,10 @@ index b210309574..cd903ab055 100644
361
360
  }
362
361
  const models: Model<Api>[] = []
363
362
  diff --git a/packages/llm/llm-pi-ai/src/config.ts b/packages/llm/llm-pi-ai/src/config.ts
364
- index 3225942f4f..affe226e60 100644
363
+ index 9de6c441..3f918b9b 100644
365
364
  --- a/packages/llm/llm-pi-ai/src/config.ts
366
365
  +++ b/packages/llm/llm-pi-ai/src/config.ts
367
- @@ -31,6 +31,7 @@ import {
366
+ @@ -29,6 +29,7 @@ import {
368
367
  MODALITIES,
369
368
  PiAiCatalogError,
370
369
  resolveRouteModels,
@@ -372,14 +371,14 @@ index 3225942f4f..affe226e60 100644
372
371
  SUPPORTED_THINKING_FORMATS,
373
372
  THINKING_LEVELS,
374
373
  THINKING_TOKEN_BUDGET_FIELDS,
375
- @@ -99,9 +100,16 @@ export type {
374
+ @@ -98,9 +99,16 @@ export type {
376
375
  PiAiModelOverride,
377
376
  PiAiModelProfile,
378
377
  PiAiReasoningEfforts,
379
378
  + PiAiReasoningSummary,
380
379
  PiAiThinkingFormat,
381
380
  } from './catalog.ts'
382
-
381
+
383
382
  +/** OpenAI Responses input-item adjustments for compatible gateways. */
384
383
  +export interface PiAiResponsesCompatibility {
385
384
  + /** Omit response-only status metadata from replayed reasoning input items. */
@@ -389,7 +388,7 @@ index 3225942f4f..affe226e60 100644
389
388
  /** Configuration for one pi-ai provider route; the `providers` dict key IS the route. */
390
389
  export interface PiAiProviderProfile {
391
390
  /** Credential reference (environment-variable name) resolved per request through `ctx.credentials`. */
392
- @@ -139,6 +147,8 @@ export interface PiAiProviderProfile {
391
+ @@ -138,6 +146,8 @@ export interface PiAiProviderProfile {
393
392
  * refused rather than left looking applied.
394
393
  */
395
394
  compat?: PiAiCompatProfile
@@ -398,18 +397,18 @@ index 3225942f4f..affe226e60 100644
398
397
  /**
399
398
  * Context capacity for a model this route lists that neither the entry nor
400
399
  * the installed catalog sizes (default 1,000,000). A guess by construction, so
401
- @@ -360,6 +370,7 @@ const modelFields = {
400
+ @@ -342,6 +352,7 @@ const modelFields = {
402
401
  // installed catalog's capability", while `false` disables reasoning.
403
402
  reasoningEfforts: z.union([z.const(false), reasoningEfforts]),
404
403
  compat: compatProfile,
405
404
  + reasoningSummary: z.union(REASONING_SUMMARIES),
406
405
  }
407
-
406
+
408
407
  const modelProfile: z<PiAiModelProfile> = z.object({
409
- @@ -370,6 +381,10 @@ const modelProfile: z<PiAiModelProfile> = z.object({
408
+ @@ -352,6 +363,10 @@ const modelProfile: z<PiAiModelProfile> = z.object({
410
409
  /** A {@link modelProfile} whose id lives in the `modelOverrides` dict key. */
411
410
  const modelOverride: z<PiAiModelOverride> = z.object(modelFields)
412
-
411
+
413
412
  +const responsesCompatibility: z<PiAiResponsesCompatibility> = z.object({
414
413
  + omitReasoningInputStatus: z.boolean(),
415
414
  +})
@@ -417,7 +416,7 @@ index 3225942f4f..affe226e60 100644
417
416
  const profile = z.object({
418
417
  apiKeyEnv: z.string().role('credential-ref'),
419
418
  displayName: z.string(),
420
- @@ -378,6 +393,7 @@ const profile = z.object({
419
+ @@ -360,6 +375,7 @@ const profile = z.object({
421
420
  models: z.array(modelProfile),
422
421
  modelOverrides: z.dict(modelOverride),
423
422
  compat: compatProfile,
@@ -425,7 +424,7 @@ index 3225942f4f..affe226e60 100644
425
424
  defaultContextWindow: z.number().step(1).min(1).default(DEFAULT_CONTEXT_WINDOW),
426
425
  defaultMaxTokens: z.number().step(1).min(1).default(DEFAULT_MAX_TOKENS),
427
426
  defaultInput: z.array(z.union(MODALITIES)).default([...DEFAULT_INPUT]),
428
- @@ -509,6 +525,11 @@ export function resolveProfiles(
427
+ @@ -457,6 +473,11 @@ export function resolveProfiles(
429
428
  throw new Error(`llm-pi-ai: provider "${provider}" has an empty displayName`)
430
429
  }
431
430
  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 9410b7ce09..fab6b676c0 100644
2
+ index 1f3d3781..2c56ebc9 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/client'
6
+ import { IconCloseOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
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
- @@ -141,24 +140,6 @@ export function apply(ctx: ClientContext): void {
11
+ @@ -138,24 +137,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 9410b7ce09..fab6b676c0 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 44b137b25c..1f4b190402 100644
37
+ index 44b137b2..1f4b1904 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/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
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
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 1a692c6892..3aa3186b94 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/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
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
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 132864b8e4..f1dff2dc80 100644
2
+ index 29c3d52c..b4a456e9 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,6 +340,67 @@
6
- }
7
- }
8
-
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. */
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,6 +67,3 @@ index 132864b8e4..f1dff2dc80 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;