@deepseek-ai/dsh-client-ui-workflow-run 0.1.6-alpha.1 → 0.1.6-alpha.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/lib/client.js +12 -5
- package/lib/types/client/WorkflowRunPanel.d.ts +2 -2
- package/package.json +18 -16
package/lib/client.js
CHANGED
|
@@ -207,7 +207,7 @@ window.__ModuleLoader__.load({
|
|
|
207
207
|
children
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
function MemberRow({ member, navigable, openSession, t }) {
|
|
210
|
+
function MemberRow({ member, navigable, openSession, parentSessionId, t }) {
|
|
211
211
|
const name = readableMember(member.label, t);
|
|
212
212
|
const [focused, setFocused] = (0, react.useState)(false);
|
|
213
213
|
const renderButton = navigable || focused;
|
|
@@ -250,12 +250,16 @@ window.__ModuleLoader__.load({
|
|
|
250
250
|
setFocused(false);
|
|
251
251
|
},
|
|
252
252
|
onClick: navigable ? () => {
|
|
253
|
-
openSession(
|
|
253
|
+
openSession({
|
|
254
|
+
parentSessionId,
|
|
255
|
+
childSessionId: member.childId,
|
|
256
|
+
mode: "one-shot"
|
|
257
|
+
});
|
|
254
258
|
} : void 0,
|
|
255
259
|
children: content
|
|
256
260
|
});
|
|
257
261
|
}
|
|
258
|
-
function PhaseSection({ contentRef, onContentBlur, onToggle, open, pendingCleanCollapse, phase, navigable, openSession, t }) {
|
|
262
|
+
function PhaseSection({ contentRef, onContentBlur, onToggle, open, pendingCleanCollapse, phase, navigable, openSession, parentSessionId, t }) {
|
|
259
263
|
return (0, react_jsx_runtime.jsx)("div", {
|
|
260
264
|
className: WorkflowRunPanel_module_css_default.phase,
|
|
261
265
|
onMouseDownCapture: pendingCleanCollapse ? preventPendingHeaderFocus : void 0,
|
|
@@ -294,6 +298,7 @@ window.__ModuleLoader__.load({
|
|
|
294
298
|
member,
|
|
295
299
|
navigable: navigable.includes(member.childId),
|
|
296
300
|
openSession,
|
|
301
|
+
parentSessionId,
|
|
297
302
|
t
|
|
298
303
|
}, member.seq))
|
|
299
304
|
})
|
|
@@ -427,6 +432,7 @@ window.__ModuleLoader__.load({
|
|
|
427
432
|
phase,
|
|
428
433
|
navigable,
|
|
429
434
|
openSession,
|
|
435
|
+
parentSessionId: sessionId,
|
|
430
436
|
t
|
|
431
437
|
}, phase.key);
|
|
432
438
|
})
|
|
@@ -619,6 +625,7 @@ window.__ModuleLoader__.load({
|
|
|
619
625
|
/** Required services for Definition, keyed renderer, navigation, and copy. */
|
|
620
626
|
const inject = [
|
|
621
627
|
"uiConversation",
|
|
628
|
+
"uiWorkspace",
|
|
622
629
|
"slots",
|
|
623
630
|
"sessions",
|
|
624
631
|
"locale"
|
|
@@ -634,8 +641,8 @@ window.__ModuleLoader__.load({
|
|
|
634
641
|
name: "conversation.chat.node",
|
|
635
642
|
key: "workflow-run",
|
|
636
643
|
locale: NS,
|
|
637
|
-
inject: () => ({ openSession: (
|
|
638
|
-
ctx.
|
|
644
|
+
inject: () => ({ openSession: (target) => {
|
|
645
|
+
ctx.uiWorkspace.openSession(target);
|
|
639
646
|
} })
|
|
640
647
|
}, WorkflowRunPanel));
|
|
641
648
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SessionTarget } from '@deepseek-ai/dsh-api-session-controller/client';
|
|
3
3
|
/** Navigation action injected from the plugin's own Session Controller access. */
|
|
4
4
|
export interface WorkflowRunInjected {
|
|
5
|
-
readonly openSession: (
|
|
5
|
+
readonly openSession: (target: SessionTarget) => void;
|
|
6
6
|
}
|
|
7
7
|
/** Complete keyed Chat renderer props. */
|
|
8
8
|
export type WorkflowRunPanelProps = PropsRuntime<'conversation.chat.node', 'workflow-run'> & PropsLocale<'workflowRun'> & WorkflowRunInjected;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-workflow-run",
|
|
3
3
|
"description": "Durable workflow-run Conversation Node and nested member disclosure for dsh web",
|
|
4
|
-
"version": "0.1.6-alpha.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"@deepseek-ai/dsh-client-ui-chat",
|
|
34
34
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
35
35
|
"@deepseek-ai/dsh-client-ui-renderer",
|
|
36
|
-
"@deepseek-ai/dsh-client-ui-session"
|
|
36
|
+
"@deepseek-ai/dsh-client-ui-session",
|
|
37
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
37
38
|
],
|
|
38
39
|
"platform": "web"
|
|
39
40
|
}
|
|
@@ -50,20 +51,21 @@
|
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/react": "~18.3.1",
|
|
52
53
|
"react": "^18.2.0",
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
54
|
-
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.
|
|
55
|
-
"@deepseek-ai/dsh-client-
|
|
56
|
-
"@deepseek-ai/dsh-client-
|
|
57
|
-
"@deepseek-ai/dsh-client-ui-
|
|
58
|
-
"@deepseek-ai/dsh-client-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-client-ui-
|
|
61
|
-
"@deepseek-ai/dsh-client-ui-
|
|
62
|
-
"@deepseek-ai/dsh-client-ui-
|
|
63
|
-
"@deepseek-ai/
|
|
64
|
-
"@deepseek-ai/dsh-
|
|
65
|
-
"@deepseek-ai/dsh-workflow": "^0.1.6-alpha.
|
|
66
|
-
"@deepseek-ai/
|
|
54
|
+
"@deepseek-ai/dsh-client-store": "^0.1.6-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.6-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.1.6-alpha.2",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-chat": "^0.1.6-alpha.2",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.6-alpha.2",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.6-alpha.2",
|
|
60
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.6-alpha.2",
|
|
61
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.6-alpha.2",
|
|
62
|
+
"@deepseek-ai/dsh-client-ui-session": "^0.1.6-alpha.2",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-workspace": "^0.1.6-alpha.2",
|
|
64
|
+
"@deepseek-ai/cordis": "^4.0.2",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.6-alpha.2",
|
|
66
|
+
"@deepseek-ai/dsh-tool-workflow": "^0.1.6-alpha.2",
|
|
67
|
+
"@deepseek-ai/dsh-workflow": "^0.1.6-alpha.2",
|
|
68
|
+
"@deepseek-ai/dsh-session": "^0.1.6-alpha.2"
|
|
67
69
|
},
|
|
68
70
|
"scripts": {
|
|
69
71
|
"bundle": "tsdown",
|