@blade-hq/agent-react 2610.0.1 → 2612.0.0-beta.1
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/README.md +88 -258
- package/dist/chat/AgentLoopBlock.d.ts +14 -0
- package/dist/{components → chat}/AskUserQuestionBlock.d.ts +3 -7
- package/dist/chat/AssistantTurnBlock.d.ts +50 -0
- package/dist/chat/AttachmentPreviewDialog.d.ts +26 -0
- package/dist/chat/ChatPanel.d.ts +64 -0
- package/dist/chat/CompactionCard.d.ts +6 -0
- package/dist/chat/ConnectionBanner.d.ts +10 -0
- package/dist/chat/CurrentPlanPanel.d.ts +20 -0
- package/dist/chat/FileDeliveryCards.d.ts +26 -0
- package/dist/chat/FinalArtifactCards.d.ts +8 -0
- package/dist/chat/ImageLightbox.d.ts +11 -0
- package/dist/chat/LightComposer.d.ts +7 -0
- package/dist/chat/LiteMessageList.d.ts +82 -0
- package/dist/chat/MessageActions.d.ts +6 -0
- package/dist/chat/MessageContextPills.d.ts +6 -0
- package/dist/chat/MessageFileAttachmentList.d.ts +13 -0
- package/dist/chat/MessageList.d.ts +54 -0
- package/dist/chat/PostChatFollowupBlock.d.ts +11 -0
- package/dist/{components → chat}/RenderErrorBoundary.d.ts +0 -1
- package/dist/chat/ResultFeedback.d.ts +11 -0
- package/dist/chat/SessionReplayBar.d.ts +12 -0
- package/dist/chat/TextAttachmentPills.d.ts +10 -0
- package/dist/chat/ToolCallBlock.d.ts +48 -0
- package/dist/chat/ToolUiCard.d.ts +6 -0
- package/dist/chat/TurnNavRail.d.ts +17 -0
- package/dist/chat/UserMessageBubble.d.ts +20 -0
- package/dist/chat/WorkflowRunBlock.d.ts +13 -0
- package/dist/chat/ai-elements/reasoning.d.ts +32 -0
- package/dist/chat/ai-elements/shimmer.d.ts +15 -0
- package/dist/chat/assistant-turn-questions.d.ts +14 -0
- package/dist/chat/card/CardContext.d.ts +7 -0
- package/dist/chat/chat-theme.d.ts +19 -0
- package/dist/chat/customization.d.ts +214 -0
- package/dist/chat/display-utils.d.ts +48 -0
- package/dist/{components/PostChatFollowupBlock.d.ts → chat/followup-interaction.d.ts} +5 -17
- package/dist/chat/index.d.ts +100 -0
- package/dist/chat/lib/citations.d.ts +30 -0
- package/dist/chat/lib/code-language.d.ts +5 -0
- package/dist/chat/lib/loopback.d.ts +8 -0
- package/dist/chat/lib/markdown-asset-url.d.ts +5 -0
- package/dist/chat/lib/preview-dispatch.d.ts +24 -0
- package/dist/chat/lib/skill-name.d.ts +9 -0
- package/dist/chat/lib/skill-visibility.d.ts +8 -0
- package/dist/chat/lib/ui-meta.d.ts +5 -0
- package/dist/chat/lib/use-async-value.d.ts +8 -0
- package/dist/chat/markdown/ExternalAnchor.d.ts +9 -0
- package/dist/chat/markdown/MarkdownContent.d.ts +40 -0
- package/dist/chat/markdown/text.d.ts +11 -0
- package/dist/chat/message-list-blocks.d.ts +92 -0
- package/dist/chat/plan/PlanSummaryCard.d.ts +10 -0
- package/dist/chat/plan/extract-plan-messages.d.ts +4 -0
- package/dist/chat/plan/parse-plan-messages.d.ts +10 -0
- package/dist/chat/plan/parse-plan-tree.d.ts +16 -0
- package/dist/chat/plan/types.d.ts +56 -0
- package/dist/chat/reasoning-visibility.d.ts +2 -0
- package/dist/chat/runtime/actions.d.ts +22 -0
- package/dist/chat/runtime/background-task-dismissals.d.ts +10 -0
- package/dist/chat/runtime/composer-channels.d.ts +46 -0
- package/dist/chat/runtime/environment.d.ts +152 -0
- package/dist/chat/runtime/input-cache-reset.d.ts +8 -0
- package/dist/chat/runtime/input-services.d.ts +111 -0
- package/dist/chat/runtime/session-source.d.ts +49 -0
- package/dist/chat/runtime/use-chat-actions.d.ts +19 -0
- package/dist/chat/runtime/use-session-replay.d.ts +16 -0
- package/dist/chat/scroll-anchor.d.ts +46 -0
- package/dist/chat/tool-renderers/BashRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/FileEditRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/FileReadRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/KbSearchRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/SearchRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/SubmitResultRenderer.d.ts +2 -0
- package/dist/chat/tool-renderers/kb-search-result.d.ts +19 -0
- package/dist/chat/tool-renderers/registry.d.ts +5 -0
- package/dist/chat/tool-renderers/shared.d.ts +30 -0
- package/dist/chat/tool-renderers/write-preview-scroll.d.ts +5 -0
- package/dist/chat-OCLOVB3H.css +175 -0
- package/dist/chat.css +175 -0
- package/dist/chunk-6ZDOQEWK.js +49365 -0
- package/dist/chunk-6ZDOQEWK.js.map +1 -0
- package/dist/chunk-FQQJP2GJ.js +26986 -0
- package/dist/chunk-FQQJP2GJ.js.map +1 -0
- package/dist/{chunk-G3PMV62Z.js → chunk-PR4QN5HX.js} +9 -2
- package/dist/chunk-WCMGQJLE.js +258 -0
- package/dist/chunk-WCMGQJLE.js.map +1 -0
- package/dist/components/AgentChat.d.ts +3 -3
- package/dist/components/ChatView.d.ts +2 -2
- package/dist/components/ConnectorPanel.d.ts +1 -1
- package/dist/components/ContextCard.d.ts +1 -1
- package/dist/components/LlmChat.d.ts +1 -1
- package/dist/components/McpAppCard.d.ts +1 -1
- package/dist/components/PlanUpdateBlock.d.ts +0 -8
- package/dist/components/PluginConnectorList.d.ts +1 -1
- package/dist/components/ReplayBar.d.ts +1 -1
- package/dist/components/SessionPluginConfigDialog.d.ts +1 -1
- package/dist/components/SessionPluginConfigForm.d.ts +1 -1
- package/dist/components/SessionPluginIcon.d.ts +1 -1
- package/dist/components/SessionPluginSelector.d.ts +1 -1
- package/dist/components/SessionQueuePanel.d.ts +1 -1
- package/dist/components/ToolUiCardView.d.ts +1 -1
- package/dist/components/plugin-config-draft.d.ts +1 -1
- package/dist/components/plugin-config-schema.d.ts +1 -1
- package/dist/components/plugin-connector.d.ts +1 -1
- package/dist/components/use-session-plugin-activation.d.ts +1 -1
- package/dist/context.d.ts +11 -2
- package/dist/embed/blade-chat-element.d.ts +14 -1
- package/dist/embed/entry.d.ts +8 -78
- package/dist/hooks/use-replay.d.ts +1 -1
- package/dist/hooks/use-turn-navigation.d.ts +1 -1
- package/dist/host.d.ts +54 -0
- package/dist/index.d.ts +11 -69
- package/dist/index.js +12 -63525
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +60 -0
- package/dist/internal.js +656 -0
- package/dist/internal.js.map +1 -0
- package/dist/lib/mount-renderers.d.ts +25 -0
- package/dist/lib/use-effect-event.d.ts +3 -0
- package/dist/rich-input/BackgroundTasksPill.d.ts +3 -0
- package/dist/rich-input/ChatInput.d.ts +59 -0
- package/dist/rich-input/ComposerAttachmentViewport.d.ts +3 -0
- package/dist/rich-input/ConnectButton.d.ts +24 -0
- package/dist/rich-input/FileCompletionMenu.d.ts +44 -0
- package/dist/rich-input/FileSizeLimitDialog.d.ts +9 -0
- package/dist/rich-input/ModelSelector.d.ts +10 -0
- package/dist/rich-input/PlanningToggle.d.ts +7 -0
- package/dist/rich-input/ProgressCircle.d.ts +12 -0
- package/dist/rich-input/ReasoningModeSelect.d.ts +9 -0
- package/dist/rich-input/SkillCompletionMenu.d.ts +9 -0
- package/dist/rich-input/SkillStatusBar.d.ts +15 -0
- package/dist/rich-input/extensions/file-mention.d.ts +12 -0
- package/dist/rich-input/extensions/kb-mention.d.ts +18 -0
- package/dist/rich-input/extensions/skill-mention.d.ts +48 -0
- package/dist/rich-input/extensions/workflow-mention.d.ts +10 -0
- package/dist/rich-input/index.d.ts +48 -0
- package/dist/rich-input/input-keyboard.d.ts +13 -0
- package/dist/rich-input/lib/attachment-upload.d.ts +10 -0
- package/dist/rich-input/lib/background-tasks-view.d.ts +31 -0
- package/dist/rich-input/lib/client-query.d.ts +32 -0
- package/dist/rich-input/lib/composer-content.d.ts +42 -0
- package/dist/rich-input/lib/image-input-availability.d.ts +3 -0
- package/dist/rich-input/lib/kb-suggestions.d.ts +37 -0
- package/dist/rich-input/lib/reasoning-levels.d.ts +1 -0
- package/dist/rich-input/lib/session-data.d.ts +20 -0
- package/dist/rich-input/lib/skill-suggestions.d.ts +19 -0
- package/dist/rich-input/lib/token-estimate.d.ts +2 -0
- package/dist/rich-input/lib/token-pressure.d.ts +8 -0
- package/dist/rich-input/lib/upload-results.d.ts +8 -0
- package/dist/rich-input/lib/user-home.d.ts +33 -0
- package/dist/rich-input/model/model-data.d.ts +6 -0
- package/dist/rich-input/model/resolve-model.d.ts +59 -0
- package/dist/rich-input/model/use-composer-model.d.ts +24 -0
- package/dist/rich-input/services.d.ts +22 -0
- package/dist/rich-input/use-dismiss-skill-suggestions-on-mode-change.d.ts +3 -0
- package/dist/rich-input/use-input-history.d.ts +14 -0
- package/dist/rich-input/voice/VoiceWaveform.d.ts +10 -0
- package/dist/rich-input/voice/use-tiptap-voice-input.d.ts +47 -0
- package/dist/rich-input/voice/use-voice-input.d.ts +2 -0
- package/dist/rich-input/voice/voice-input-support.d.ts +5 -0
- package/dist/rich-input.js +29853 -0
- package/dist/rich-input.js.map +1 -0
- package/dist/style.css +30 -64
- package/dist/style.full.css +210 -65
- package/dist/{webapi-W3IB5DO4.js → webapi-E7K2CNM7.js} +2 -2
- package/package.json +12 -3
- package/public-api.md +206 -3603
- package/dist/components/AgentLoopBlock.d.ts +0 -8
- package/dist/components/AgentTaskCard.d.ts +0 -12
- package/dist/components/AssistantTurnBlock.d.ts +0 -36
- package/dist/components/ChatSurface.d.ts +0 -199
- package/dist/components/ConnectionBanner.d.ts +0 -8
- package/dist/components/MarkdownContent.d.ts +0 -30
- package/dist/components/MessageList.d.ts +0 -62
- package/dist/components/Shimmer.d.ts +0 -7
- package/dist/components/ToolCallBlock.d.ts +0 -41
- package/dist/components/TurnNavRail.d.ts +0 -23
- package/dist/components/UserMessageBubble.d.ts +0 -25
- package/dist/components/display-utils.d.ts +0 -4
- /package/dist/{chunk-G3PMV62Z.js.map → chunk-PR4QN5HX.js.map} +0 -0
- /package/dist/{webapi-W3IB5DO4.js.map → webapi-E7K2CNM7.js.map} +0 -0
package/dist/embed/entry.d.ts
CHANGED
|
@@ -18,72 +18,11 @@ declare function getChat(element: Element | null): Promise<AgentSession>;
|
|
|
18
18
|
declare const BladeAgent: {
|
|
19
19
|
BladeClient: typeof agentClient.BladeClient;
|
|
20
20
|
BladeApiError: typeof agentClient.BladeApiError;
|
|
21
|
-
isEntryGoneError: typeof agentClient.isEntryGoneError;
|
|
22
|
-
PollingBackoff: typeof agentClient.PollingBackoff;
|
|
23
|
-
EMPTY_PLATFORM_ENDPOINTS: agentClient.PlatformEndpoints;
|
|
24
|
-
loadPlatformEndpoints: typeof agentClient.loadPlatformEndpoints;
|
|
25
|
-
resolveServiceUrl: typeof agentClient.resolveServiceUrl;
|
|
26
21
|
SDK_NAME: "agent-client";
|
|
27
22
|
SDK_VERSION: string;
|
|
28
23
|
AgentSession: typeof AgentSession;
|
|
29
24
|
AgentSessionError: typeof agentClient.AgentSessionError;
|
|
30
|
-
SessionHub: typeof agentClient.SessionHub;
|
|
31
|
-
isMcpAppData: typeof agentClient.isMcpAppData;
|
|
32
25
|
SessionSetupError: typeof agentClient.SessionSetupError;
|
|
33
|
-
createInitialSessionState: typeof agentClient.createInitialSessionState;
|
|
34
|
-
reconcileHistoricalUserTurns: typeof agentClient.reconcileHistoricalUserTurns;
|
|
35
|
-
reconcileOptimisticUserTurns: typeof agentClient.reconcileOptimisticUserTurns;
|
|
36
|
-
toReplaySnapshot: typeof agentClient.toReplaySnapshot;
|
|
37
|
-
EMPTY_SESSION_QUEUE: agentClient.SessionQueueSnapshot;
|
|
38
|
-
canCancelQueuedMessage: typeof agentClient.canCancelQueuedMessage;
|
|
39
|
-
canDeliverQueuedMessage: typeof agentClient.canDeliverQueuedMessage;
|
|
40
|
-
canEditQueuedMessage: typeof agentClient.canEditQueuedMessage;
|
|
41
|
-
isSessionQueueSnapshot: typeof agentClient.isSessionQueueSnapshot;
|
|
42
|
-
parseQueueAck: typeof agentClient.parseQueueAck;
|
|
43
|
-
queuePauseReasonLabel: typeof agentClient.queuePauseReasonLabel;
|
|
44
|
-
queuedMessageStatusLabel: typeof agentClient.queuedMessageStatusLabel;
|
|
45
|
-
shouldApplySnapshot: typeof agentClient.shouldApplySnapshot;
|
|
46
|
-
connectEmbedded: typeof agentClient.connectEmbedded;
|
|
47
|
-
isCommandEnvelope: typeof agentClient.isCommandEnvelope;
|
|
48
|
-
isInboundEnvelope: typeof agentClient.isInboundEnvelope;
|
|
49
|
-
ComputersResource: typeof agentClient.ComputersResource;
|
|
50
|
-
canToggleComputer: typeof agentClient.canToggleComputer;
|
|
51
|
-
computerDaemonVersion: typeof agentClient.computerDaemonVersion;
|
|
52
|
-
computerOS: typeof agentClient.computerOS;
|
|
53
|
-
computerPlatformLabel: typeof agentClient.computerPlatformLabel;
|
|
54
|
-
computerState: typeof agentClient.computerState;
|
|
55
|
-
sortComputers: typeof agentClient.sortComputers;
|
|
56
|
-
ModelsResource: typeof agentClient.ModelsResource;
|
|
57
|
-
ChatGroupsResource: typeof agentClient.ChatGroupsResource;
|
|
58
|
-
PluginsResource: typeof agentClient.PluginsResource;
|
|
59
|
-
hasChatRunEvent: typeof agentClient.hasChatRunEvent;
|
|
60
|
-
inferToolStatus: typeof agentClient.inferToolStatus;
|
|
61
|
-
buildMessageContent: typeof agentClient.buildMessageContent;
|
|
62
|
-
chatErrorForDisplay: typeof agentClient.chatErrorForDisplay;
|
|
63
|
-
contentPreview: typeof agentClient.contentPreview;
|
|
64
|
-
extractTextAttachments: typeof agentClient.extractTextAttachments;
|
|
65
|
-
getFileParts: typeof agentClient.getFileParts;
|
|
66
|
-
getImageParts: typeof agentClient.getImageParts;
|
|
67
|
-
getTextContent: typeof agentClient.getTextContent;
|
|
68
|
-
groupMessagesByLoop: typeof agentClient.groupMessagesByLoop;
|
|
69
|
-
isHiddenInternalMessage: typeof agentClient.isHiddenInternalMessage;
|
|
70
|
-
isBackgroundWakeMessage: typeof agentClient.isBackgroundWakeMessage;
|
|
71
|
-
normalizeMessageContent: typeof agentClient.normalizeMessageContent;
|
|
72
|
-
transformSlashCommand: typeof agentClient.transformSlashCommand;
|
|
73
|
-
contextProjectionData: typeof agentClient.contextProjectionData;
|
|
74
|
-
getContextDisplayState: typeof agentClient.getContextDisplayState;
|
|
75
|
-
getContextGroupDisplayState: typeof agentClient.getContextGroupDisplayState;
|
|
76
|
-
groupAdjacentContextRuns: typeof agentClient.groupAdjacentContextRuns;
|
|
77
|
-
latestPostChatFollowup: typeof agentClient.latestPostChatFollowup;
|
|
78
|
-
buildToolUiCardKey: typeof agentClient.buildToolUiCardKey;
|
|
79
|
-
collectInlineToolUiCards: typeof agentClient.collectInlineToolUiCards;
|
|
80
|
-
collectPreviewToolUiCards: typeof agentClient.collectPreviewToolUiCards;
|
|
81
|
-
isAppDevToolUiCard: typeof agentClient.isAppDevToolUiCard;
|
|
82
|
-
isInternalStatusToolUiCard: typeof agentClient.isInternalStatusToolUiCard;
|
|
83
|
-
isToolUiCard: typeof agentClient.isToolUiCard;
|
|
84
|
-
resolveToolUiCardContent: typeof agentClient.resolveToolUiCardContent;
|
|
85
|
-
prependOlder: typeof agentClient.prependOlder;
|
|
86
|
-
replaceWindow: typeof agentClient.replaceWindow;
|
|
87
26
|
DEFAULT_REPLAY_SPEED: agentClient.ReplaySpeed;
|
|
88
27
|
SessionInfo: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
89
28
|
id: string;
|
|
@@ -123,23 +62,14 @@ declare const BladeAgent: {
|
|
|
123
62
|
match?: unknown;
|
|
124
63
|
}, {}>;
|
|
125
64
|
SessionStatus: import("arktype/internal/variants/string.ts").StringType<"completed" | "created" | "failed" | "interrupted" | "running" | "waiting_for_input", {}>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
number: string;
|
|
135
|
-
}, {}>;
|
|
136
|
-
TaskStatus: import("arktype/internal/variants/string.ts").StringType<"done" | "failed" | "in_progress" | "pending" | "skipped", {}>;
|
|
137
|
-
acceptedPostChatFollowupCompletesLatestRun: typeof agentClient.acceptedPostChatFollowupCompletesLatestRun;
|
|
138
|
-
acknowledgeTurnEvents: typeof agentClient.acknowledgeTurnEvents;
|
|
139
|
-
ClientProjectionBuilder: typeof agentClient.ClientProjectionBuilder;
|
|
140
|
-
AuthBusyReconnect: typeof agentClient.AuthBusyReconnect;
|
|
141
|
-
authBusyRetryDelayMs: typeof agentClient.authBusyRetryDelayMs;
|
|
142
|
-
createSocket: typeof agentClient.createSocket;
|
|
65
|
+
chatErrorForDisplay: typeof agentClient.chatErrorForDisplay;
|
|
66
|
+
contentPreview: typeof agentClient.contentPreview;
|
|
67
|
+
getFileParts: typeof agentClient.getFileParts;
|
|
68
|
+
getImageParts: typeof agentClient.getImageParts;
|
|
69
|
+
getTextContent: typeof agentClient.getTextContent;
|
|
70
|
+
groupMessagesByLoop: typeof agentClient.groupMessagesByLoop;
|
|
71
|
+
transformSlashCommand: typeof agentClient.transformSlashCommand;
|
|
72
|
+
userFacingErrorText: typeof agentClient.userFacingErrorText;
|
|
143
73
|
getChat: typeof getChat;
|
|
144
74
|
BladeChatElement: typeof BladeChatElement;
|
|
145
75
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChatMessage, type SessionTurnIndexItem, type TurnProjection } from "@blade-hq/agent-client";
|
|
1
|
+
import { type ChatMessage, type SessionTurnIndexItem, type TurnProjection } from "@blade-hq/agent-client/internal";
|
|
2
2
|
/** 高亮用的类名。样式在 agent-react 的 style.css 与内置 Web 的 app.css 各有一份。 */
|
|
3
3
|
export declare const TURN_NAV_HIGHLIGHT_CLASS = "blade-turn-nav-flash";
|
|
4
4
|
/**
|
package/dist/host.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 宿主接口:聊天界面需要、但只有宿主知道怎么做的业务动作。
|
|
3
|
+
*
|
|
4
|
+
* 只放少量动作,不透传路由对象、全局 store、QueryClient 或编辑器实例——组件
|
|
5
|
+
* 拿到的永远是「做一件事」的函数。每个动作都可选:缺失时对应的按钮与菜单项
|
|
6
|
+
* 不渲染(不是禁用),所以 `<blade-chat>` 不注入任何动作时只剩最小功能集。
|
|
7
|
+
*/
|
|
8
|
+
export interface BladeHost {
|
|
9
|
+
/** 在宿主的工作区里打开会话中的文件(可带行号、显示名)。 */
|
|
10
|
+
openWorkspaceFile?(target: {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
path: string;
|
|
13
|
+
line?: number;
|
|
14
|
+
name?: string;
|
|
15
|
+
}): void | Promise<void>;
|
|
16
|
+
/** 打开预览(网页地址或会话里的端口);本机地址由宿主决定在哪里打开(如沙盒浏览器)。 */
|
|
17
|
+
openPreview?(target: {
|
|
18
|
+
sessionId: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
port?: number;
|
|
21
|
+
}): void | Promise<void>;
|
|
22
|
+
/** 跳转到另一个会话。 */
|
|
23
|
+
openSession?(sessionId: string): void;
|
|
24
|
+
/** 跳转到项目。 */
|
|
25
|
+
openProject?(projectId: string): void;
|
|
26
|
+
/** 上传输入框里选中的附件,返回可随消息发送的附件描述。 */
|
|
27
|
+
uploadAttachments?(files: File[], context: {
|
|
28
|
+
sessionId?: string;
|
|
29
|
+
}): Promise<HostAttachment[]>;
|
|
30
|
+
/** 可在输入框里提及的技能清单。 */
|
|
31
|
+
listSkills?(context: {
|
|
32
|
+
sessionId?: string;
|
|
33
|
+
}): Promise<HostCatalogItem[]>;
|
|
34
|
+
/** 可在输入框里提及的知识库清单。 */
|
|
35
|
+
listKnowledgeBases?(context: {
|
|
36
|
+
sessionId?: string;
|
|
37
|
+
}): Promise<HostCatalogItem[]>;
|
|
38
|
+
}
|
|
39
|
+
/** 宿主上传完成的附件。 */
|
|
40
|
+
export interface HostAttachment {
|
|
41
|
+
name: string;
|
|
42
|
+
/** 会话工作区里的相对路径(上传到工作区时有)。 */
|
|
43
|
+
path?: string;
|
|
44
|
+
/** 可直接访问的地址(上传到外部存储时有)。 */
|
|
45
|
+
url?: string;
|
|
46
|
+
mimeType?: string;
|
|
47
|
+
size?: number;
|
|
48
|
+
}
|
|
49
|
+
/** 技能、知识库等可提及条目。 */
|
|
50
|
+
export interface HostCatalogItem {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,79 +1,21 @@
|
|
|
1
1
|
export { BladeProvider, useBladeClient } from "./context";
|
|
2
2
|
export type { BladeProviderProps } from "./context";
|
|
3
|
+
export type { BladeHost, HostAttachment, HostCatalogItem } from "./host";
|
|
3
4
|
export { useAgentSession } from "./hooks/use-agent-session";
|
|
4
5
|
export type { UseAgentSessionOptions, UseAgentSessionResult } from "./hooks/use-agent-session";
|
|
5
6
|
export { useReplay } from "./hooks/use-replay";
|
|
6
7
|
export type { ReplayMismatch, UseReplayResult } from "./hooks/use-replay";
|
|
7
|
-
export { useLlmChat } from "./hooks/use-llm-chat";
|
|
8
|
-
export { useMessagePin } from "./hooks/use-message-pin";
|
|
9
|
-
export type { UseMessagePinOptions } from "./hooks/use-message-pin";
|
|
10
|
-
export { useTypewriterReveal } from "./hooks/use-typewriter-reveal";
|
|
11
|
-
export type { UseTypewriterRevealResult } from "./hooks/use-typewriter-reveal";
|
|
12
|
-
export { latestUserSpeechEntryId, TURN_NAV_HIGHLIGHT_CLASS, turnNavItemsFromMessages, useTurnNavigation, } from "./hooks/use-turn-navigation";
|
|
13
|
-
export type { TurnNavigationOptions, TurnNavigationResult, TurnNavigationSource, } from "./hooks/use-turn-navigation";
|
|
14
|
-
export { TurnNavRail } from "./components/TurnNavRail";
|
|
15
|
-
export type { TurnNavRailProps } from "./components/TurnNavRail";
|
|
16
|
-
export type { ChatCompletionTool, LlmChatOptions, LlmToolCall, UseLlmChatResult, } from "./hooks/use-llm-chat";
|
|
17
|
-
export { ChatView } from "./components/ChatView";
|
|
18
|
-
export type { AssistantTextRendererProps, AskUserQuestionRendererProps, ChatViewClassNames, ChatViewProps, ChatViewRenderers, ChatViewSlots, FollowupInteractionEvent, PlanUpdateRendererProps, UserMessageRendererProps, } from "./components/ChatView";
|
|
19
|
-
export { ConnectorPanel } from "./components/ConnectorPanel";
|
|
20
|
-
export type { ConnectorPanelProps } from "./components/ConnectorPanel";
|
|
21
|
-
export { PluginConnectorList } from "./components/PluginConnectorList";
|
|
22
|
-
export type { ConfiguringPlugin, PluginConnectorListProps } from "./components/PluginConnectorList";
|
|
23
|
-
export { useSessionPluginActivation } from "./components/use-session-plugin-activation";
|
|
24
|
-
export type { UseSessionPluginActivationResult } from "./components/use-session-plugin-activation";
|
|
25
|
-
export { catalogToConnectorItems, filterConnectorItems, mergeConnectorItems, } from "./components/plugin-connector";
|
|
26
|
-
export type { PluginConnectorItem } from "./components/plugin-connector";
|
|
27
|
-
export { selectionFromItem, triggerSummary, TRIGGER_ICON_LIMIT } from "./components/connector-panel-types";
|
|
28
|
-
export type { PluginConnectorSelection, TriggerSummary, } from "./components/connector-panel-types";
|
|
29
|
-
export { SessionPluginSelector } from "./components/SessionPluginSelector";
|
|
30
|
-
export type { SessionPluginSelectorProps } from "./components/SessionPluginSelector";
|
|
31
|
-
export { SessionPluginIcon, sessionPluginLabel } from "./components/SessionPluginIcon";
|
|
32
|
-
export type { SessionPluginIconProps, SessionPluginLabelProps } from "./components/SessionPluginIcon";
|
|
33
|
-
export { PluginTriggerStack } from "./components/PluginTriggerStack";
|
|
34
|
-
export type { PluginTriggerStackProps } from "./components/PluginTriggerStack";
|
|
35
|
-
export { SessionPluginConfigDialog } from "./components/SessionPluginConfigDialog";
|
|
36
|
-
export type { SessionPluginConfigDialogProps } from "./components/SessionPluginConfigDialog";
|
|
37
|
-
export { SessionPluginConfigForm } from "./components/SessionPluginConfigForm";
|
|
38
|
-
export type { SessionPluginConfigDraft, SessionPluginConfigFormProps, } from "./components/SessionPluginConfigForm";
|
|
39
|
-
export { AgentChat } from "./components/AgentChat";
|
|
40
|
-
export type { AgentChatProps } from "./components/AgentChat";
|
|
41
|
-
export { LlmChat } from "./components/LlmChat";
|
|
42
|
-
export type { LlmChatHandle, LlmChatProps } from "./components/LlmChat";
|
|
43
|
-
export type { LlmAdvancedSettings, LlmOverride } from "./components/LlmAdvancedSettings";
|
|
44
|
-
export { MarkdownContent } from "./components/MarkdownContent";
|
|
45
|
-
export { ExternalAnchor, normalizeAdjacentUrlFormatting, stripSystemReminders } from "./components/MarkdownContent";
|
|
46
|
-
export type { MarkdownContentProps } from "./components/MarkdownContent";
|
|
47
|
-
export { DEFAULT_ALLOWED_TAGS, MarkdownRenderer } from "./components/markdown";
|
|
48
|
-
export type { AllowedTags, CodeBlockOverrides, LinkSafetyConfig, MarkdownComponents, MarkdownRendererProps, RawHtmlPlugin, } from "./components/markdown";
|
|
49
|
-
export { WhatIfUserBubble } from "./components/WhatIfUserBubble";
|
|
50
|
-
export type { WhatIfUserBubbleProps } from "./components/WhatIfUserBubble";
|
|
51
|
-
export { parseWhatIfPrompt } from "./lib/whatif-prompt";
|
|
52
|
-
export type { ParsedWhatIfPrompt, WhatIfQuote } from "./lib/whatif-prompt";
|
|
53
8
|
export { ReplayBar } from "./components/ReplayBar";
|
|
54
9
|
export type { ReplayBarProps } from "./components/ReplayBar";
|
|
55
10
|
export { ReplayMismatchPrompt } from "./components/ReplayMismatchPrompt";
|
|
56
11
|
export type { ReplayMismatchPromptProps } from "./components/ReplayMismatchPrompt";
|
|
57
|
-
export
|
|
58
|
-
export {
|
|
59
|
-
export type {
|
|
60
|
-
export {
|
|
61
|
-
export type {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export type {
|
|
65
|
-
export {
|
|
66
|
-
export type {
|
|
67
|
-
export { SessionMemoryToggle } from "./components/SessionMemoryToggle";
|
|
68
|
-
export type { SessionMemoryToggleProps } from "./components/SessionMemoryToggle";
|
|
69
|
-
export { SessionQueuePanel, isQueuePanelVisible } from "./components/SessionQueuePanel";
|
|
70
|
-
export type { SessionQueuePanelProps } from "./components/SessionQueuePanel";
|
|
71
|
-
export { isAgentComputerCommand, isAgentComputerToolCall, classifyAgentComputerLaunchOutcome, } from "./lib/agent-computer-command";
|
|
72
|
-
export type { AgentComputerLaunchOutcome } from "./lib/agent-computer-command";
|
|
73
|
-
export * from "@blade-hq/agent-client";
|
|
74
|
-
export { AgentTaskCard } from "./components/AgentTaskCard";
|
|
75
|
-
export type { AgentTaskCardProps, AgentTaskStatus } from "./components/AgentTaskCard";
|
|
76
|
-
export { SessionBranchPicker } from "./components/SessionBranchPicker";
|
|
77
|
-
export type { SessionBranchPickerProps } from "./components/SessionBranchPicker";
|
|
78
|
-
export { MessageImage, type MessageImageProps } from "./components/MessageImage";
|
|
79
|
-
export { BackgroundWakeNotice } from "./components/BackgroundWakeNotice";
|
|
12
|
+
export { ChatView } from "./components/ChatView";
|
|
13
|
+
export type { ChatViewProps } from "./components/ChatView";
|
|
14
|
+
export type { AskUserQuestionRendererProps, AssistantTextRendererProps, ChatViewClassNames, ChatViewRenderers, ChatViewSlots, PlanUpdateRendererProps, ToolCallRenderer, ToolRendererProps, UserMessageRendererProps, } from "./chat/customization";
|
|
15
|
+
export type { FollowupInteractionEvent } from "./chat/followup-interaction";
|
|
16
|
+
export type { AskUserQuestionData } from "./chat/AskUserQuestionBlock";
|
|
17
|
+
export type { PlanStepStatus, PlanUpdateData } from "./components/PlanUpdateBlock";
|
|
18
|
+
export type { LlmChatHandle } from "./components/LlmChat";
|
|
19
|
+
export type { ChatCompletionTool, LlmChatOptions, LlmToolCall } from "./hooks/use-llm-chat";
|
|
20
|
+
export { MarkdownContent } from "./chat/markdown/MarkdownContent";
|
|
21
|
+
export type { MarkdownContentProps } from "./chat/markdown/MarkdownContent";
|