@sparkelf/dsh-plus 0.2.9-alpha.52 → 0.2.9-alpha.53

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
@@ -425,6 +425,25 @@
425
425
  ]
426
426
  }
427
427
  },
428
+ {
429
+ "dsh": ">=0.2.2-alpha.2",
430
+ "file": "./patches/resource-ref-chip-mentions.patch",
431
+ "id": "resource-ref-chip-mentions",
432
+ "retireWhen": "官方 composer 同时内置资源引用 chip 与结构化 @ mentions 后退役",
433
+ "target": {
434
+ "kind": "dsh-source",
435
+ "packages": [
436
+ "@deepseek-ai/dsh-api-session-controller",
437
+ "@deepseek-ai/dsh-client-ui-conversation",
438
+ "@deepseek-ai/dsh-client-ui-primitives"
439
+ ],
440
+ "paths": [
441
+ "packages/api/session-controller/",
442
+ "packages/client/ui-conversation/",
443
+ "packages/client/ui-primitives/"
444
+ ]
445
+ }
446
+ },
428
447
  {
429
448
  "dsh": ">=0.2.2-alpha.2",
430
449
  "file": "./patches/responses-reasoning-status.patch",
@@ -442,6 +461,21 @@
442
461
  ]
443
462
  }
444
463
  },
464
+ {
465
+ "dsh": ">=0.2.2-alpha.2",
466
+ "file": "./patches/session-controller-image-downgrade-and-tool-visibility.patch",
467
+ "id": "session-controller-image-downgrade-and-tool-visibility",
468
+ "retireWhen": "上游 dsh-api-session-controller 支持非视觉模型图片降级与按模型能力裁剪工具面后退役",
469
+ "target": {
470
+ "kind": "dsh-source",
471
+ "packages": [
472
+ "@deepseek-ai/dsh-api-session-controller"
473
+ ],
474
+ "paths": [
475
+ "packages/api/session-controller/"
476
+ ]
477
+ }
478
+ },
445
479
  {
446
480
  "dsh": ">=0.2.2-alpha.2",
447
481
  "file": "./patches/session-envelope-ignorable.patch",
@@ -519,6 +553,21 @@
519
553
  ]
520
554
  }
521
555
  },
556
+ {
557
+ "dsh": ">=0.2.2-alpha.2",
558
+ "file": "./patches/ui-schedule-plaza-tab.patch",
559
+ "id": "ui-schedule-plaza-tab",
560
+ "retireWhen": "官方 ui-schedule 自动化任务页自行声明并渲染 schedule.manager.tabs 座位后退役",
561
+ "target": {
562
+ "kind": "dsh-source",
563
+ "packages": [
564
+ "@deepseek-ai/dsh-client-ui-schedule"
565
+ ],
566
+ "paths": [
567
+ "packages/client/ui-schedule/"
568
+ ]
569
+ }
570
+ },
522
571
  {
523
572
  "dsh": ">=0.2.2-alpha.2",
524
573
  "file": "./patches/ui-settings-compact-phone.patch",
@@ -536,16 +585,16 @@
536
585
  },
537
586
  {
538
587
  "dsh": ">=0.2.2-alpha.2",
539
- "file": "./patches/ui-schedule-plaza-tab.patch",
540
- "id": "ui-schedule-plaza-tab",
541
- "retireWhen": "官方 ui-schedule 自动化任务页自行声明并渲染 schedule.manager.tabs 座位后退役",
588
+ "file": "./patches/ui-sidebar-right-global-panel.patch",
589
+ "id": "ui-sidebar-right-global-panel",
590
+ "retireWhen": "官方 ui-sidebar-right 的 RightbarRoot 在 global panel(activePanelId !== null)下渲染 rightbar.session 后退役",
542
591
  "target": {
543
592
  "kind": "dsh-source",
544
593
  "packages": [
545
- "@deepseek-ai/dsh-client-ui-schedule"
594
+ "@deepseek-ai/dsh-client-ui-sidebar-right"
546
595
  ],
547
596
  "paths": [
548
- "packages/client/ui-schedule/"
597
+ "packages/client/ui-sidebar-right/"
549
598
  ]
550
599
  }
551
600
  },
@@ -595,74 +644,6 @@
595
644
  "packages/util/native-command/"
596
645
  ]
597
646
  }
598
- },
599
- {
600
- "dsh": ">=0.2.2-alpha.2",
601
- "file": "./patches/ui-sidebar-right-global-panel.patch",
602
- "id": "ui-sidebar-right-global-panel",
603
- "retireWhen": "官方 ui-sidebar-right 的 RightbarRoot 在 global panel(activePanelId !== null)下渲染 rightbar.session 后退役",
604
- "target": {
605
- "kind": "dsh-source",
606
- "packages": [
607
- "@deepseek-ai/dsh-client-ui-sidebar-right"
608
- ],
609
- "paths": [
610
- "packages/client/ui-sidebar-right/"
611
- ]
612
- }
613
- },
614
- {
615
- "dsh": ">=0.2.2-alpha.2",
616
- "file": "./patches/dsh-resource-ref-chip.patch",
617
- "id": "dsh-resource-ref-chip",
618
- "retireWhen": "官方 primitives 的 ReferenceIconKind 增加 resource 类型后退役",
619
- "target": {
620
- "kind": "dsh-source",
621
- "packages": [
622
- "@deepseek-ai/dsh-client-ui-primitives",
623
- "@deepseek-ai/dsh-client-ui-conversation"
624
- ],
625
- "paths": [
626
- "packages/client/ui-primitives/",
627
- "packages/client/ui-conversation/"
628
- ],
629
- "reason": "the conversation change widens a TypeScript union only; types are erased at runtime, so republishing ui-primitives is enough",
630
- "republish": false
631
- }
632
- },
633
- {
634
- "dsh": ">=0.2.2-alpha.2",
635
- "file": "./patches/structured-mentions.patch",
636
- "id": "structured-mentions",
637
- "retireWhen": "官方 composer 原生支持结构化 @ mentions(SessionPromptRequest.mentions)后退役",
638
- "target": {
639
- "kind": "dsh-source",
640
- "packages": [
641
- "@deepseek-ai/dsh-api-session-controller",
642
- "@deepseek-ai/dsh-client-ui-conversation",
643
- "@deepseek-ai/dsh-client-ui-primitives"
644
- ],
645
- "paths": [
646
- "packages/api/session-controller/",
647
- "packages/client/ui-conversation/",
648
- "packages/client/ui-primitives/"
649
- ]
650
- }
651
- },
652
- {
653
- "dsh": ">=0.2.2-alpha.2",
654
- "file": "./patches/session-controller-image-downgrade-and-tool-visibility.patch",
655
- "id": "session-controller-image-downgrade-and-tool-visibility",
656
- "retireWhen": "上游 dsh-api-session-controller 支持非视觉模型图片降级与按模型能力裁剪工具面后退役",
657
- "target": {
658
- "kind": "dsh-source",
659
- "packages": [
660
- "@deepseek-ai/dsh-api-session-controller"
661
- ],
662
- "paths": [
663
- "packages/api/session-controller/"
664
- ]
665
- }
666
647
  }
667
648
  ],
668
649
  "formatVersion": 1
@@ -809,5 +790,5 @@
809
790
  },
810
791
  "type": "module",
811
792
  "types": "lib/types/index.d.ts",
812
- "version": "0.2.9-alpha.52"
793
+ "version": "0.2.9-alpha.53"
813
794
  }
@@ -126,14 +126,14 @@ index 9e399d8f3b..46a4507c56 100644
126
126
  }
127
127
 
128
128
  diff --git a/packages/client/ui-conversation/src/client/contract/draft-editor.ts b/packages/client/ui-conversation/src/client/contract/draft-editor.ts
129
- index 0aee9f6be2..069ad977dd 100644
129
+ index b305bb3a3c..069ad977dd 100644
130
130
  --- a/packages/client/ui-conversation/src/client/contract/draft-editor.ts
131
131
  +++ b/packages/client/ui-conversation/src/client/contract/draft-editor.ts
132
132
  @@ -15,7 +15,12 @@ export interface ReferenceInsert {
133
133
  readonly source: string
134
134
  readonly ref: string
135
135
  readonly label: string
136
- - readonly appearance?: 'session' | 'file' | 'folder' | 'resource'
136
+ - readonly appearance?: 'session' | 'file' | 'folder'
137
137
  + /**
138
138
  + * Row glyph, and the submit-time declaration hook: `'mention'` marks a reference a host plugin
139
139
  + * must receive as structured identity (`source`/`ref`) rather than re-parse out of the text.
@@ -340,7 +340,7 @@ index 0000000000..7439cbfff0
340
340
  +})
341
341
 
342
342
  diff --git a/packages/client/ui-primitives/src/ReferenceIcon.tsx b/packages/client/ui-primitives/src/ReferenceIcon.tsx
343
- index 198e6bbb1d..7fd75f96a2 100644
343
+ index ca566c40f6..7fd75f96a2 100644
344
344
  --- a/packages/client/ui-primitives/src/ReferenceIcon.tsx
345
345
  +++ b/packages/client/ui-primitives/src/ReferenceIcon.tsx
346
346
  @@ -1,12 +1,12 @@
@@ -353,16 +353,25 @@ index 198e6bbb1d..7fd75f96a2 100644
353
353
  } from './icons/shared-artwork.tsx'
354
354
 
355
355
  /** Reference domains with distinct composer and transcript glyphs. */
356
- -export type ReferenceIconKind = 'session' | 'file' | 'folder' | 'resource'
356
+ -export type ReferenceIconKind = 'session' | 'file' | 'folder'
357
357
  +export type ReferenceIconKind = 'session' | 'file' | 'folder' | 'resource' | 'mention'
358
358
 
359
359
  /** Props shared by inline reference glyphs. */
360
360
  export interface ReferenceIconProps extends IconProps {
361
- @@ -25,6 +25,7 @@ interface WeightedReferenceIconProps extends ReferenceIconProps {
361
+ @@ -25,8 +25,16 @@ interface WeightedReferenceIconProps extends ReferenceIconProps {
362
362
  function ReferenceIconArtwork({ kind, size = 16, className, strokeWidth }: WeightedReferenceIconProps): ReactNode {
363
363
  switch (kind) {
364
364
  case 'session': return <ChatLinesOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
365
365
  + case 'mention': return <IconUserOutlineRegular size={size} className={className} />
366
366
  case 'file': return <BrowseOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
367
367
  case 'folder': return <FolderCloseArtwork size={size} className={className} strokeWidth={strokeWidth} />
368
- case 'resource': return (
368
+ + case 'resource': return (
369
+ + <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden>
370
+ + <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" />
371
+ + <path d="m3.3 7 8.7 5 8.7-5" />
372
+ + <path d="M12 22V12" />
373
+ + </svg>
374
+ + )
375
+ }
376
+ }
377
+
@@ -1,40 +0,0 @@
1
- diff --git a/packages/client/ui-conversation/src/client/contract/draft-editor.ts b/packages/client/ui-conversation/src/client/contract/draft-editor.ts
2
- index b305bb3a3c..0aee9f6be2 100644
3
- --- a/packages/client/ui-conversation/src/client/contract/draft-editor.ts
4
- +++ b/packages/client/ui-conversation/src/client/contract/draft-editor.ts
5
- @@ -15,7 +15,7 @@ export interface ReferenceInsert {
6
- readonly source: string
7
- readonly ref: string
8
- readonly label: string
9
- - readonly appearance?: 'session' | 'file' | 'folder'
10
- + readonly appearance?: 'session' | 'file' | 'folder' | 'resource'
11
- readonly clipboardText: string
12
- }
13
-
14
- diff --git a/packages/client/ui-primitives/src/ReferenceIcon.tsx b/packages/client/ui-primitives/src/ReferenceIcon.tsx
15
- index ca566c40f6..198e6bbb1d 100644
16
- --- a/packages/client/ui-primitives/src/ReferenceIcon.tsx
17
- +++ b/packages/client/ui-primitives/src/ReferenceIcon.tsx
18
- @@ -6,7 +6,7 @@ import {
19
- } from './icons/shared-artwork.tsx'
20
-
21
- /** Reference domains with distinct composer and transcript glyphs. */
22
- -export type ReferenceIconKind = 'session' | 'file' | 'folder'
23
- +export type ReferenceIconKind = 'session' | 'file' | 'folder' | 'resource'
24
-
25
- /** Props shared by inline reference glyphs. */
26
- export interface ReferenceIconProps extends IconProps {
27
- @@ -27,6 +27,13 @@ function ReferenceIconArtwork({ kind, size = 16, className, strokeWidth }: Weigh
28
- case 'session': return <ChatLinesOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
29
- case 'file': return <BrowseOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
30
- case 'folder': return <FolderCloseArtwork size={size} className={className} strokeWidth={strokeWidth} />
31
- + case 'resource': return (
32
- + <svg width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={strokeWidth} strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden>
33
- + <path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z" />
34
- + <path d="m3.3 7 8.7 5 8.7-5" />
35
- + <path d="M12 22V12" />
36
- + </svg>
37
- + )
38
- }
39
- }
40
-