@sparkelf/dsh-plus 0.2.9-alpha.50 → 0.2.9-alpha.51
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
|
@@ -297,25 +297,6 @@
|
|
|
297
297
|
]
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
|
-
{
|
|
301
|
-
"dsh": ">=0.2.2-alpha.2",
|
|
302
|
-
"file": "./patches/composer-structured-mentions.patch",
|
|
303
|
-
"id": "composer-structured-mentions",
|
|
304
|
-
"retireWhen": "官方 composer 原生支持结构化 @ mentions(SessionPromptRequest.mentions)后退役",
|
|
305
|
-
"target": {
|
|
306
|
-
"kind": "dsh-source",
|
|
307
|
-
"packages": [
|
|
308
|
-
"@deepseek-ai/dsh-api-session-controller",
|
|
309
|
-
"@deepseek-ai/dsh-client-ui-conversation",
|
|
310
|
-
"@deepseek-ai/dsh-client-ui-primitives"
|
|
311
|
-
],
|
|
312
|
-
"paths": [
|
|
313
|
-
"packages/api/session-controller/",
|
|
314
|
-
"packages/client/ui-conversation/",
|
|
315
|
-
"packages/client/ui-primitives/"
|
|
316
|
-
]
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
300
|
{
|
|
320
301
|
"dsh": ">=0.2.2-alpha.2",
|
|
321
302
|
"file": "./patches/diagram-preview.patch",
|
|
@@ -649,6 +630,25 @@
|
|
|
649
630
|
"republish": false
|
|
650
631
|
}
|
|
651
632
|
},
|
|
633
|
+
{
|
|
634
|
+
"dsh": ">=0.2.2-alpha.2",
|
|
635
|
+
"file": "./patches/composer-structured-mentions.patch",
|
|
636
|
+
"id": "composer-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
652
|
{
|
|
653
653
|
"dsh": ">=0.2.2-alpha.2",
|
|
654
654
|
"file": "./patches/session-controller-image-downgrade-and-tool-visibility.patch",
|
|
@@ -809,5 +809,5 @@
|
|
|
809
809
|
},
|
|
810
810
|
"type": "module",
|
|
811
811
|
"types": "lib/types/index.d.ts",
|
|
812
|
-
"version": "0.2.9-alpha.
|
|
812
|
+
"version": "0.2.9-alpha.51"
|
|
813
813
|
}
|
|
@@ -126,20 +126,20 @@ 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
|
|
129
|
+
index 0aee9f6be2..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'
|
|
136
|
+
- readonly appearance?: 'session' | 'file' | 'folder' | 'resource'
|
|
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.
|
|
140
140
|
+ * Every other value is display-only.
|
|
141
141
|
+ */
|
|
142
|
-
+ readonly appearance?: 'session' | 'file' | 'folder' | 'mention'
|
|
142
|
+
+ readonly appearance?: 'session' | 'file' | 'folder' | 'resource' | 'mention'
|
|
143
143
|
readonly clipboardText: string
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -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
|
|
343
|
+
index 198e6bbb1d..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,16 @@ index ca566c40f6..e60d0ad654 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'
|
|
357
|
-
+export type ReferenceIconKind = 'session' | 'file' | 'folder' | 'mention'
|
|
356
|
+
-export type ReferenceIconKind = 'session' | 'file' | 'folder' | 'resource'
|
|
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
|
-
@@ -
|
|
361
|
+
@@ -25,6 +25,7 @@ interface WeightedReferenceIconProps extends ReferenceIconProps {
|
|
362
|
+
function ReferenceIconArtwork({ kind, size = 16, className, strokeWidth }: WeightedReferenceIconProps): ReactNode {
|
|
363
|
+
switch (kind) {
|
|
362
364
|
case 'session': return <ChatLinesOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
|
|
365
|
+
+ case 'mention': return <IconUserOutlineRegular size={size} className={className} />
|
|
363
366
|
case 'file': return <BrowseOutlineArtwork size={size} className={className} strokeWidth={strokeWidth} />
|
|
364
367
|
case 'folder': return <FolderCloseArtwork size={size} className={className} strokeWidth={strokeWidth} />
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
368
|
+
case 'resource': return (
|