@docyrus/ui-pro-ai-assistant 0.5.3 → 0.5.5
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/dist/components/generative-tool.d.ts +7 -2
- package/dist/components/subagent-tool.d.ts +7 -6
- package/dist/hooks/use-assistant-api.d.ts +7 -0
- package/dist/index.js +347 -83
- package/dist/index.js.map +1 -1
- package/dist/styles.css +16 -6
- package/dist/tools/delete-record.d.ts +12 -0
- package/dist/views/assistant-view.d.ts +7 -0
- package/dist/views/chat-panel.d.ts +10 -1
- package/package.json +1 -1
|
@@ -55,7 +55,12 @@ interface GenerativeUIToolProps {
|
|
|
55
55
|
text: string;
|
|
56
56
|
}) => void;
|
|
57
57
|
workId?: string;
|
|
58
|
-
|
|
58
|
+
/**
|
|
59
|
+
* Combined list of subagents reachable from this orchestrator (direct
|
|
60
|
+
* children + connected subagents). Used to resolve the `subagent` record
|
|
61
|
+
* for `call*Agent` tool calls by matching the agentId on the result.
|
|
62
|
+
*/
|
|
63
|
+
subagents?: Array<Record<string, any>>;
|
|
59
64
|
}
|
|
60
|
-
export declare function GenerativeUITool({ part, toolName, onToolAction, openCanvasView, onUseWorkResult, onSendSpreadsheetCommands, onForwardToAgent, onInsertText, onReplaceText, workId,
|
|
65
|
+
export declare function GenerativeUITool({ part, toolName, onToolAction, openCanvasView, onUseWorkResult, onSendSpreadsheetCommands, onForwardToAgent, onInsertText, onReplaceText, workId, subagents }: GenerativeUIToolProps): import("react/jsx-runtime").JSX.Element | null;
|
|
61
66
|
export {};
|
|
@@ -2,13 +2,13 @@ interface SubagentToolProps {
|
|
|
2
2
|
toolState: string;
|
|
3
3
|
input?: Record<string, any>;
|
|
4
4
|
status?: string;
|
|
5
|
-
text?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
skillName?: string;
|
|
8
|
-
agentName?: string;
|
|
9
5
|
step?: Record<string, any>;
|
|
10
6
|
result?: Record<string, any>;
|
|
11
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Resolved subagent record from `deployment.agent.{agents,connectedAgents}`.
|
|
9
|
+
* Carries name / description / avatar / steps for rendering.
|
|
10
|
+
*/
|
|
11
|
+
subagent?: Record<string, any> | null;
|
|
12
12
|
openCanvasView?: (options: {
|
|
13
13
|
type: string;
|
|
14
14
|
id: string;
|
|
@@ -16,7 +16,8 @@ interface SubagentToolProps {
|
|
|
16
16
|
title?: string;
|
|
17
17
|
description?: string;
|
|
18
18
|
contentJson?: Record<string, any> | null;
|
|
19
|
+
workId?: string;
|
|
19
20
|
}) => void;
|
|
20
21
|
}
|
|
21
|
-
export declare function SubagentTool({ toolState, input, status,
|
|
22
|
+
export declare function SubagentTool({ toolState, input, status, step, result, subagent, openCanvasView }: SubagentToolProps): import("react/jsx-runtime").JSX.Element;
|
|
22
23
|
export {};
|
|
@@ -13,6 +13,13 @@ interface UseAssistantApiReturn {
|
|
|
13
13
|
welcomeMessage?: string;
|
|
14
14
|
} | null;
|
|
15
15
|
isLoadingAgentDetails: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Combined list of subagents reachable from this orchestrator (direct
|
|
18
|
+
* children + connected subagents), normalized so each has `id` and `name`.
|
|
19
|
+
* Used by the SubagentTool to render avatars / names / step templates for
|
|
20
|
+
* `call*Agent` tool calls.
|
|
21
|
+
*/
|
|
22
|
+
subagents: Array<Record<string, any>>;
|
|
16
23
|
fetchThreads: () => Promise<AssistantSession[]>;
|
|
17
24
|
fetchProjectThreads: (projectId: string) => Promise<AssistantSession[]>;
|
|
18
25
|
loadThreadMessages: (threadId: string) => Promise<any[]>;
|