@blade-hq/agent-kit 1.0.25 → 1.0.27
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/{chunk-M45K3554.js → chunk-34GDDOWY.js} +5 -3
- package/dist/chunk-34GDDOWY.js.map +1 -0
- package/dist/chunk-7LEKQI47.js +32 -0
- package/dist/chunk-7LEKQI47.js.map +1 -0
- package/dist/{chunk-WPLEMYL7.js → chunk-C2FKVGJU.js} +2 -2
- package/dist/{chunk-4D4EXLVT.js → chunk-DQCXSPHP.js} +2 -2
- package/dist/{chunk-QODAKTG5.js → chunk-JCJFFJ42.js} +2 -31
- package/dist/chunk-JCJFFJ42.js.map +1 -0
- package/dist/{chunk-VJY6RLYU.js → chunk-JU5SL4HP.js} +2 -2
- package/dist/chunk-M72OL7ZJ.js +23 -0
- package/dist/chunk-M72OL7ZJ.js.map +1 -0
- package/dist/{chunk-WVXXQ3KM.js → chunk-SBASG3M2.js} +132 -102
- package/dist/chunk-SBASG3M2.js.map +1 -0
- package/dist/{chunk-XCIDE3JW.js → chunk-TE6G6NVX.js} +7 -7
- package/dist/{chunk-3I4ZURKH.js → chunk-X2NJKKXR.js} +15 -15
- package/dist/client/auth.d.ts +8 -0
- package/dist/client/blade-client.d.ts +80 -0
- package/dist/client/index.d.ts +22 -15348
- package/dist/client/index.js +1 -1
- package/dist/client/resources/api-keys.d.ts +28 -0
- package/dist/client/resources/auth.d.ts +26 -0
- package/dist/client/resources/env-buckets.d.ts +20 -0
- package/dist/client/resources/gis.d.ts +8 -0
- package/dist/client/resources/headless.d.ts +33 -0
- package/dist/client/resources/memories.d.ts +63 -0
- package/dist/client/resources/models.d.ts +23 -0
- package/dist/client/resources/published-apps.d.ts +8 -0
- package/dist/client/resources/registry.d.ts +58 -0
- package/dist/client/resources/runs.d.ts +8 -0
- package/dist/client/resources/scenarios.d.ts +49 -0
- package/dist/client/resources/sessions.d.ts +253 -0
- package/dist/client/resources/skills.d.ts +38 -0
- package/dist/client/resources/solutions.d.ts +31 -0
- package/dist/client/resources/user-preferences.d.ts +26 -0
- package/dist/client/rest.d.ts +19 -0
- package/dist/client/socket.d.ts +9 -0
- package/dist/client/types/index.d.ts +8 -0
- package/dist/client/types/rest.d.ts +15335 -0
- package/dist/client/types/sdk-profile.d.ts +47 -0
- package/dist/client/types/socket-events.d.ts +503 -0
- package/dist/react/api/api-keys.d.ts +6 -0
- package/dist/react/api/auth.d.ts +7 -0
- package/dist/react/api/client.d.ts +8 -0
- package/dist/react/api/env-buckets.d.ts +10 -0
- package/dist/react/api/gis-api.d.ts +4 -0
- package/dist/react/api/memories.d.ts +14 -0
- package/dist/react/api/models.d.ts +11 -0
- package/dist/react/api/partner-skill.d.ts +2 -0
- package/dist/react/api/prod-solution.d.ts +456 -0
- package/dist/react/api/published-apps.d.ts +21 -0
- package/dist/react/api/published-apps.js +14 -0
- package/dist/react/api/published-apps.js.map +1 -0
- package/dist/react/api/registry.d.ts +46 -0
- package/dist/react/api/scenarios.d.ts +9 -0
- package/dist/react/api/scheduled-tasks.d.ts +24 -0
- package/dist/react/api/session-skill.d.ts +2 -0
- package/dist/react/api/sessions.d.ts +109 -0
- package/dist/react/api/sessions.js +93 -0
- package/dist/react/api/sessions.js.map +1 -0
- package/dist/react/api/skills.d.ts +27 -0
- package/dist/react/api/socket.d.ts +5 -0
- package/dist/react/api/solutions.d.ts +11 -0
- package/dist/react/api/user-preferences.d.ts +8 -0
- package/dist/react/asr/VoiceWaveform.d.ts +10 -0
- package/dist/react/asr/use-tiptap-voice-input.d.ts +29 -0
- package/dist/react/asr/use-voice-input.d.ts +17 -0
- package/dist/react/asr/voice-input-support.d.ts +5 -0
- package/dist/react/bootstrap.d.ts +4 -0
- package/dist/react/cards/register.d.ts +1 -2
- package/dist/react/cards/register.js +3 -2
- package/dist/react/cards/register.js.map +1 -1
- package/dist/react/components/ai-elements/file-tree.d.ts +26 -0
- package/dist/react/components/ai-elements/reasoning.d.ts +32 -0
- package/dist/react/components/ai-elements/shimmer.d.ts +11 -0
- package/dist/react/components/card/CardCodeBlock.d.ts +5 -0
- package/dist/react/components/card/CardContext.d.ts +7 -0
- package/dist/react/components/card/CardRenderer.d.ts +7 -0
- package/dist/react/components/card/CardStates.d.ts +8 -0
- package/dist/react/components/card/cards/attraction-card.d.ts +2 -0
- package/dist/react/components/card/cards/cite-card.d.ts +10 -0
- package/dist/react/components/card/cards/comprehensive-analysis-card.d.ts +2 -0
- package/dist/react/components/card/cards/conflict-detection-card.d.ts +4 -0
- package/dist/react/components/card/cards/counter.d.ts +2 -0
- package/dist/react/components/card/cards/damage-effect-card.d.ts +4 -0
- package/dist/react/components/card/cards/destination-card.d.ts +2 -0
- package/dist/react/components/card/cards/diff-card.d.ts +2 -0
- package/dist/react/components/card/cards/execution-order-card.d.ts +2 -0
- package/dist/react/components/card/cards/experience-card-with-options.d.ts +4 -0
- package/dist/react/components/card/cards/flight-card.d.ts +2 -0
- package/dist/react/components/card/cards/hotel-card.d.ts +2 -0
- package/dist/react/components/card/cards/kill-chain-card.d.ts +2 -0
- package/dist/react/components/card/cards/kill-chain-types.d.ts +157 -0
- package/dist/react/components/card/cards/map-card.d.ts +2 -0
- package/dist/react/components/card/cards/order-status-card.d.ts +2 -0
- package/dist/react/components/card/cards/patch-card.d.ts +15 -0
- package/dist/react/components/card/cards/product-recommendation-card.d.ts +2 -0
- package/dist/react/components/card/cards/reflection-optimization-card.d.ts +2 -0
- package/dist/react/components/card/cards/resolution-modifications-card.d.ts +2 -0
- package/dist/react/components/card/cards/resolution-summary-card.d.ts +2 -0
- package/dist/react/components/card/cards/restaurant-card.d.ts +2 -0
- package/dist/react/components/card/cards/shopping-list-card.d.ts +2 -0
- package/dist/react/components/card/cards/simulation-event-card.d.ts +4 -0
- package/dist/react/components/card/cards/survival-effect-card.d.ts +4 -0
- package/dist/react/components/card/cards/travel-itinerary-card.d.ts +2 -0
- package/dist/react/components/card/register.d.ts +1 -0
- package/dist/react/components/chat/AgentLoopBlock.d.ts +8 -0
- package/dist/react/components/chat/AskUserQuestionBlock.d.ts +32 -0
- package/dist/react/components/chat/AssistantTurnBlock.d.ts +28 -0
- package/dist/react/components/chat/AttachmentPreviewDialog.d.ts +26 -0
- package/dist/react/components/chat/BackgroundTasksPill.d.ts +3 -0
- package/dist/react/components/chat/ChatInput.d.ts +94 -0
- package/dist/react/components/chat/ChatView.d.ts +16 -0
- package/dist/react/components/chat/CompactionCard.d.ts +6 -0
- package/dist/react/components/chat/ConnectionBanner.d.ts +1 -0
- package/dist/react/components/chat/FileCompletionMenu.d.ts +13 -0
- package/dist/react/components/chat/FileSizeLimitDialog.d.ts +9 -0
- package/dist/react/components/chat/ImageLightbox.d.ts +11 -0
- package/dist/react/components/chat/MessageActions.d.ts +6 -0
- package/dist/react/components/chat/MessageContextPills.d.ts +6 -0
- package/dist/react/components/chat/MessageFileAttachmentList.d.ts +13 -0
- package/dist/react/components/chat/MessageList.d.ts +13 -0
- package/dist/react/components/chat/ProgressCircle.d.ts +12 -0
- package/dist/react/components/chat/RenderErrorBoundary.d.ts +19 -0
- package/dist/react/components/chat/ResourceIframe.d.ts +5 -0
- package/dist/react/components/chat/Shimmer.d.ts +6 -0
- package/dist/react/components/chat/SkillCompletionMenu.d.ts +9 -0
- package/dist/react/components/chat/SkillStatusBar.d.ts +8 -0
- package/dist/react/components/chat/StickyStatusBar.d.ts +10 -0
- package/dist/react/components/chat/TextAttachmentPills.d.ts +10 -0
- package/dist/react/components/chat/ThinkingToggle.d.ts +7 -0
- package/dist/react/components/chat/ToolCallBlock.d.ts +18 -0
- package/dist/react/components/chat/TurnNavRail.d.ts +11 -0
- package/dist/react/components/chat/UserMessageBubble.d.ts +20 -0
- package/dist/react/components/chat/WhatIfUserBubble.d.ts +13 -0
- package/dist/react/components/chat/customization.d.ts +82 -0
- package/dist/react/components/chat/display-utils.d.ts +35 -0
- package/dist/react/components/chat/extensions/file-mention.d.ts +12 -0
- package/dist/react/components/chat/extensions/skill-mention.d.ts +25 -0
- package/dist/react/components/chat/index.d.ts +16 -115
- package/dist/react/components/chat/index.js +8 -7
- package/dist/react/components/chat/tool-renderers/BashRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/FileEditRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/FileReadRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/SearchRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/SubmitResultRenderer.d.ts +2 -0
- package/dist/react/components/chat/tool-renderers/registry.d.ts +9 -0
- package/dist/react/components/chat/tool-renderers/shared.d.ts +26 -0
- package/dist/react/components/chat/whatif-quote-context.d.ts +15 -0
- package/dist/react/components/markdown/ExternalLinkDialog.d.ts +8 -0
- package/dist/react/components/markdown/FileCardComponent.d.ts +10 -0
- package/dist/react/components/markdown/MarkdownContent.d.ts +19 -0
- package/dist/react/components/model/ModelSelector.d.ts +9 -0
- package/dist/react/components/plan/PlanSummaryCard.d.ts +8 -0
- package/dist/react/components/plan/PlanVisualization.d.ts +13 -0
- package/dist/react/components/plan/debug-log.d.ts +21 -0
- package/dist/react/components/plan/extract-plan-messages.d.ts +2 -0
- package/dist/react/components/plan/index.d.ts +6 -110
- package/dist/react/components/plan/index.js +7 -6
- package/dist/react/components/plan/index.js.map +1 -1
- package/dist/react/components/plan/parse-plan-messages.d.ts +10 -0
- package/dist/react/components/plan/parse-plan-tree.d.ts +16 -0
- package/dist/react/components/plan/phases/PlanMindMap.d.ts +8 -0
- package/dist/react/components/plan/phases/PlanStatusIcon.d.ts +5 -0
- package/dist/react/components/plan/phases/PlanTree.d.ts +8 -0
- package/dist/react/components/plan/phases/SkillAnalysis.d.ts +7 -0
- package/dist/react/components/plan/phases/SkillDiscovery.d.ts +10 -0
- package/dist/react/components/plan/types.d.ts +56 -0
- package/dist/react/components/session/SessionDetail.d.ts +8 -0
- package/dist/react/components/session/SessionList.d.ts +9 -0
- package/dist/react/components/session/SessionListItem.d.ts +8 -0
- package/dist/react/components/session/StatusBadge.d.ts +3 -0
- package/dist/react/components/session/index.d.ts +5 -53
- package/dist/react/components/session/index.js +6 -5
- package/dist/react/components/session/index.js.map +1 -1
- package/dist/react/components/session/session-utils.d.ts +19 -0
- package/dist/react/components/ui/collapsible.d.ts +5 -0
- package/dist/react/components/workspace/FileTree.d.ts +21 -0
- package/dist/react/components/workspace/WorkspaceFilesPanel.d.ts +30 -0
- package/dist/react/components/workspace/file-icon-assets.d.ts +3 -0
- package/dist/react/components/workspace/index.d.ts +2 -59
- package/dist/react/components/workspace/index.js +6 -5
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/context.d.ts +2 -0
- package/dist/react/devtools/bridge-devtools/BridgeDevtoolsFab.d.ts +1 -0
- package/dist/react/devtools/bridge-devtools/index.d.ts +3 -36
- package/dist/react/devtools/bridge-devtools/mount.d.ts +1 -0
- package/dist/react/devtools/bridge-devtools/store.d.ts +15 -0
- package/dist/react/devtools/bridge-devtools/tap.d.ts +5 -0
- package/dist/react/devtools/bridge-devtools/types.d.ts +29 -0
- package/dist/react/hooks/use-background-tasks.d.ts +7 -0
- package/dist/react/hooks/use-card-state.d.ts +1 -0
- package/dist/react/hooks/use-chat.d.ts +13 -0
- package/dist/react/hooks/use-check-skill-file.d.ts +4 -0
- package/dist/react/hooks/use-check-solution-file.d.ts +4 -0
- package/dist/react/hooks/use-context-stats.d.ts +7 -0
- package/dist/react/hooks/use-gis.d.ts +17 -0
- package/dist/react/hooks/use-global-skill-stats.d.ts +6 -0
- package/dist/react/hooks/use-input-history.d.ts +7 -0
- package/dist/react/hooks/use-model-preferences.d.ts +17 -0
- package/dist/react/hooks/use-registry.d.ts +53 -0
- package/dist/react/hooks/use-resolved-model.d.ts +5 -0
- package/dist/react/hooks/use-session.d.ts +10 -0
- package/dist/react/hooks/use-skill-stats.d.ts +7 -0
- package/dist/react/hooks/use-skills.d.ts +6 -0
- package/dist/react/hooks/use-token-pressure.d.ts +6 -0
- package/dist/react/index.d.ts +121 -2034
- package/dist/react/index.js +47 -52
- package/dist/react/index.js.map +1 -1
- package/dist/react/lib/analytics.d.ts +7 -0
- package/dist/react/lib/attachment-upload.d.ts +10 -0
- package/dist/react/lib/card-registry.d.ts +35 -0
- package/dist/react/lib/chat.d.ts +48 -0
- package/dist/react/lib/code-highlight.d.ts +9 -0
- package/dist/react/lib/html-element-selection.d.ts +140 -0
- package/dist/react/lib/html-source-locator.d.ts +16 -0
- package/dist/react/lib/open-session-file.d.ts +2 -0
- package/dist/react/lib/parent-bridge.d.ts +22 -0
- package/dist/react/lib/preview-dispatch.d.ts +24 -0
- package/dist/react/lib/resource-bridge.d.ts +11 -0
- package/dist/react/lib/session-file-preview.d.ts +8 -0
- package/dist/react/lib/step-ranges.d.ts +42 -0
- package/dist/react/lib/tool-preview.d.ts +2 -0
- package/dist/react/lib/ui-meta.d.ts +9 -0
- package/dist/react/lib/utils.d.ts +3 -0
- package/dist/react/lib/whatif-prompt.d.ts +45 -0
- package/dist/react/projection/builder.d.ts +59 -0
- package/dist/react/projection/helpers.d.ts +34 -0
- package/dist/react/projection/index.d.ts +2 -0
- package/dist/react/projection/state.d.ts +22 -0
- package/dist/react/provider.d.ts +8 -0
- package/dist/react/routes.d.ts +1 -0
- package/dist/react/schemas/background.d.ts +16 -0
- package/dist/react/schemas/event.d.ts +51 -0
- package/dist/react/schemas/gis.d.ts +50 -0
- package/dist/{AskUserQuestionBlock---kOTouk.d.ts → react/schemas/message.d.ts} +15 -48
- package/dist/react/schemas/partner-skill.d.ts +46 -0
- package/dist/{projection-BWYEFYNn.d.ts → react/schemas/projection.d.ts} +12 -10
- package/dist/react/schemas/published-apps.d.ts +38 -0
- package/dist/react/schemas/scheduled-task.d.ts +32 -0
- package/dist/react/schemas/session.d.ts +121 -0
- package/dist/react/schemas/skill.d.ts +50 -0
- package/dist/react/schemas/studio/agent.d.ts +12 -0
- package/dist/react/schemas/studio/database.d.ts +39 -0
- package/dist/react/schemas/studio/env.d.ts +7 -0
- package/dist/react/schemas/studio/knowledge.d.ts +18 -0
- package/dist/react/schemas/studio/resource-base.d.ts +7 -0
- package/dist/react/schemas/studio/scene.d.ts +12 -0
- package/dist/react/schemas/studio/tool.d.ts +25 -0
- package/dist/react/schemas/task.d.ts +12 -0
- package/dist/react/sockets/event-bridge.d.ts +115 -0
- package/dist/react/sockets/socket-state.d.ts +4 -0
- package/dist/react/stores/answer-callback-store.d.ts +9 -0
- package/dist/react/stores/auth-store.d.ts +38 -0
- package/dist/react/stores/background-store.d.ts +13 -0
- package/dist/react/stores/card-state-store.d.ts +10 -0
- package/dist/react/stores/chat-store.d.ts +34 -0
- package/dist/react/stores/client-aware.d.ts +7 -0
- package/dist/react/stores/connection-store.d.ts +14 -0
- package/dist/react/stores/gis-store.d.ts +19 -0
- package/dist/react/stores/index.d.ts +14 -0
- package/dist/react/stores/runtime-features-store.d.ts +21 -0
- package/dist/react/stores/runtime-store.d.ts +18 -0
- package/dist/react/stores/session-store.d.ts +44 -0
- package/dist/react/stores/task-store.d.ts +9 -0
- package/dist/react/stores/ui-bridge-store.d.ts +32 -0
- package/dist/react/stores/ui-store.d.ts +69 -0
- package/dist/react/types/index.d.ts +7 -0
- package/dist/react/types/solution.d.ts +101 -0
- package/package.json +41 -11
- package/dist/SkillStatusBar-U6fbQxMu.d.ts +0 -340
- package/dist/blade-client-qTOovekU.d.ts +0 -1609
- package/dist/chunk-M45K3554.js.map +0 -1
- package/dist/chunk-QODAKTG5.js.map +0 -1
- package/dist/chunk-WVXXQ3KM.js.map +0 -1
- package/dist/session-CNnotR90.d.ts +0 -227
- package/dist/sessions-BvfLGbjw.d.ts +0 -177
- /package/dist/{chunk-WPLEMYL7.js.map → chunk-C2FKVGJU.js.map} +0 -0
- /package/dist/{chunk-4D4EXLVT.js.map → chunk-DQCXSPHP.js.map} +0 -0
- /package/dist/{chunk-VJY6RLYU.js.map → chunk-JU5SL4HP.js.map} +0 -0
- /package/dist/{chunk-XCIDE3JW.js.map → chunk-TE6G6NVX.js.map} +0 -0
- /package/dist/{chunk-3I4ZURKH.js.map → chunk-X2NJKKXR.js.map} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
export type FileTreeProps = Omit<HTMLAttributes<HTMLDivElement>, "onSelect"> & {
|
|
3
|
+
expanded?: Set<string>;
|
|
4
|
+
defaultExpanded?: Set<string>;
|
|
5
|
+
selectedPath?: string;
|
|
6
|
+
onSelect?: (path: string) => void;
|
|
7
|
+
onExpandedChange?: (expanded: Set<string>) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const FileTree: ({ expanded: controlledExpanded, defaultExpanded, selectedPath, onSelect, onExpandedChange, className, children, ...props }: FileTreeProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export type FileTreeIconProps = HTMLAttributes<HTMLSpanElement>;
|
|
11
|
+
export declare const FileTreeIcon: ({ className, children, ...props }: FileTreeIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export type FileTreeNameProps = HTMLAttributes<HTMLSpanElement>;
|
|
13
|
+
export declare const FileTreeName: ({ className, children, ...props }: FileTreeNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type FileTreeFolderProps = HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
path: string;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const FileTreeFolder: ({ path, name, className, children, ...props }: FileTreeFolderProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export type FileTreeFileProps = HTMLAttributes<HTMLButtonElement> & {
|
|
20
|
+
path: string;
|
|
21
|
+
name: string;
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
};
|
|
24
|
+
export declare const FileTreeFile: ({ path, name, icon, className, children, ...props }: FileTreeFileProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export type FileTreeActionsProps = HTMLAttributes<HTMLDivElement>;
|
|
26
|
+
export declare const FileTreeActions: ({ className, children, ...props }: FileTreeActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../ui/collapsible.js";
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
|
+
interface ReasoningContextValue {
|
|
4
|
+
isStreaming: boolean;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
setIsOpen: (open: boolean) => void;
|
|
7
|
+
duration: number | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const useReasoning: () => ReasoningContextValue;
|
|
10
|
+
export type ReasoningProps = ComponentProps<typeof Collapsible> & {
|
|
11
|
+
isStreaming?: boolean;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
duration?: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const Reasoning: import("react").MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => import("react/jsx-runtime").JSX.Element>;
|
|
18
|
+
export type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
19
|
+
wordCount: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const ReasoningTrigger: import("react").MemoExoticComponent<({ className, children, wordCount, ...props }: ReasoningTriggerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
22
|
+
export type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
|
|
23
|
+
children: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const ReasoningContent: import("react").MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => import("react/jsx-runtime").JSX.Element>;
|
|
26
|
+
export type ThinkingBadgeProps = {
|
|
27
|
+
reasoning: string;
|
|
28
|
+
variant?: "inline" | "block";
|
|
29
|
+
onClick?: ComponentProps<"button">["onClick"];
|
|
30
|
+
};
|
|
31
|
+
export declare function ThinkingBadge({ reasoning, variant, onClick }: ThinkingBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
export interface TextShimmerProps {
|
|
3
|
+
children: string;
|
|
4
|
+
as?: ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
spread?: number;
|
|
8
|
+
}
|
|
9
|
+
declare const ShimmerComponent: ({ children, as: Component, className, duration, spread, }: TextShimmerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Shimmer: import("react").MemoExoticComponent<typeof ShimmerComponent>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JSX } from "react";
|
|
2
|
+
import type { ExtraProps } from "streamdown";
|
|
3
|
+
type CodeProps = JSX.IntrinsicElements["code"] & ExtraProps;
|
|
4
|
+
export declare function CardCodeBlock({ className, children, node, ...props }: CodeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CardContextValue {
|
|
2
|
+
sendMessage?: (content: string) => Promise<void>;
|
|
3
|
+
sessionId?: string;
|
|
4
|
+
messageId?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CardContext: import("react").Context<CardContextValue>;
|
|
7
|
+
export declare const useCardContext: () => CardContextValue;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface CardStateProps {
|
|
2
|
+
content: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function CardLoadingState({ content }: CardStateProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function CardErrorState({ content, message }: CardStateProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function CardWarningState({ content, message }: CardStateProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
export interface Citation {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
content: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CiteCardPayload {
|
|
8
|
+
citations: Citation[];
|
|
9
|
+
}
|
|
10
|
+
export declare function CitationCard({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
declare function ConflictDetectionCardComponent({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ConflictDetectionCard: import("react").MemoExoticComponent<typeof ConflictDetectionCardComponent>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
declare function DamageEffectCardComponent({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const DamageEffectCard: import("react").MemoExoticComponent<typeof DamageEffectCardComponent>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
declare function ExperienceCardWithOptionsInner({ card, sendMessage }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ExperienceCardWithOptions: import("react").MemoExoticComponent<typeof ExperienceCardWithOptionsInner>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
export interface F2T2EACard {
|
|
2
|
+
metadata: {
|
|
3
|
+
id: string;
|
|
4
|
+
version: string;
|
|
5
|
+
created_at: string;
|
|
6
|
+
updated_at: string;
|
|
7
|
+
classification: string;
|
|
8
|
+
target_id: string;
|
|
9
|
+
target_name: string;
|
|
10
|
+
target_type: "fixed" | "mobile" | "time_sensitive";
|
|
11
|
+
priority: 1 | 2 | 3 | 4 | 5;
|
|
12
|
+
};
|
|
13
|
+
kill_chain: {
|
|
14
|
+
find: {
|
|
15
|
+
primary_method: {
|
|
16
|
+
platform: string;
|
|
17
|
+
capability: string;
|
|
18
|
+
coverage: string;
|
|
19
|
+
};
|
|
20
|
+
backup_method?: {
|
|
21
|
+
platform: string;
|
|
22
|
+
capability: string;
|
|
23
|
+
trigger_condition: string;
|
|
24
|
+
};
|
|
25
|
+
estimated_time: number;
|
|
26
|
+
confidence_level: number;
|
|
27
|
+
status: KillChainStatus;
|
|
28
|
+
};
|
|
29
|
+
fix: {
|
|
30
|
+
accuracy_requirement: string;
|
|
31
|
+
positioning_method: {
|
|
32
|
+
primary: string;
|
|
33
|
+
secondary?: string;
|
|
34
|
+
};
|
|
35
|
+
update_frequency: number;
|
|
36
|
+
coordinate_system: string;
|
|
37
|
+
status: KillChainStatus;
|
|
38
|
+
};
|
|
39
|
+
track: {
|
|
40
|
+
tracking_platform: string;
|
|
41
|
+
tracking_mode: "continuous" | "intermittent";
|
|
42
|
+
handover_procedure: {
|
|
43
|
+
from_unit: string;
|
|
44
|
+
to_unit: string;
|
|
45
|
+
handover_criteria: string;
|
|
46
|
+
};
|
|
47
|
+
track_quality_metrics: {
|
|
48
|
+
update_rate: number;
|
|
49
|
+
accuracy: string;
|
|
50
|
+
latency: number;
|
|
51
|
+
};
|
|
52
|
+
status: KillChainStatus;
|
|
53
|
+
};
|
|
54
|
+
target: {
|
|
55
|
+
engagement_criteria: string[];
|
|
56
|
+
authorization_level: string;
|
|
57
|
+
roe_compliance: {
|
|
58
|
+
checks: string[];
|
|
59
|
+
verified: boolean;
|
|
60
|
+
};
|
|
61
|
+
targeting_solution: {
|
|
62
|
+
method: string;
|
|
63
|
+
accuracy: string;
|
|
64
|
+
computed_at: string;
|
|
65
|
+
};
|
|
66
|
+
status: KillChainStatus;
|
|
67
|
+
};
|
|
68
|
+
engage: {
|
|
69
|
+
strike_platform: {
|
|
70
|
+
unit: string;
|
|
71
|
+
callsign: string;
|
|
72
|
+
location: string;
|
|
73
|
+
};
|
|
74
|
+
weapon_selection: {
|
|
75
|
+
type: string;
|
|
76
|
+
quantity: number;
|
|
77
|
+
fuze_setting?: string;
|
|
78
|
+
};
|
|
79
|
+
engagement_mode: "salvo" | "sequential" | "saturation";
|
|
80
|
+
tot: string;
|
|
81
|
+
execution_window: {
|
|
82
|
+
start: string;
|
|
83
|
+
end: string;
|
|
84
|
+
};
|
|
85
|
+
status: KillChainStatus;
|
|
86
|
+
};
|
|
87
|
+
assess: {
|
|
88
|
+
bda_methods: {
|
|
89
|
+
primary: string;
|
|
90
|
+
secondary: string[];
|
|
91
|
+
};
|
|
92
|
+
assessment_timeline: {
|
|
93
|
+
initial: number;
|
|
94
|
+
detailed: number;
|
|
95
|
+
};
|
|
96
|
+
success_indicators: string[];
|
|
97
|
+
damage_categories: {
|
|
98
|
+
physical: number;
|
|
99
|
+
functional: number;
|
|
100
|
+
target_system: number;
|
|
101
|
+
};
|
|
102
|
+
status: KillChainStatus;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
restrike_plan: {
|
|
106
|
+
trigger_conditions: string[];
|
|
107
|
+
reserved_resources: {
|
|
108
|
+
platform: string;
|
|
109
|
+
weapons: {
|
|
110
|
+
type: string;
|
|
111
|
+
quantity: number;
|
|
112
|
+
}[];
|
|
113
|
+
};
|
|
114
|
+
execution_method: string;
|
|
115
|
+
decision_authority: string;
|
|
116
|
+
};
|
|
117
|
+
risk_management: {
|
|
118
|
+
identified_risks: {
|
|
119
|
+
category: "operational" | "technical" | "political" | "environmental";
|
|
120
|
+
description: string;
|
|
121
|
+
probability: "high" | "medium" | "low";
|
|
122
|
+
impact: "high" | "medium" | "low";
|
|
123
|
+
mitigation: string;
|
|
124
|
+
}[];
|
|
125
|
+
constraints: {
|
|
126
|
+
weather_limits: string;
|
|
127
|
+
roe_restrictions: string[];
|
|
128
|
+
time_constraints: string;
|
|
129
|
+
resource_limitations: string[];
|
|
130
|
+
};
|
|
131
|
+
contingency_plans: {
|
|
132
|
+
scenario: string;
|
|
133
|
+
response: string;
|
|
134
|
+
trigger: string;
|
|
135
|
+
}[];
|
|
136
|
+
};
|
|
137
|
+
execution_status: {
|
|
138
|
+
overall_status: "planning" | "ready" | "executing" | "completed" | "aborted";
|
|
139
|
+
current_phase: string;
|
|
140
|
+
phase_progress: number;
|
|
141
|
+
last_update: string;
|
|
142
|
+
updates_log: {
|
|
143
|
+
timestamp: string;
|
|
144
|
+
phase: string;
|
|
145
|
+
status: string;
|
|
146
|
+
notes: string;
|
|
147
|
+
operator: string;
|
|
148
|
+
}[];
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export declare enum KillChainStatus {
|
|
152
|
+
NOT_STARTED = "not_started",
|
|
153
|
+
IN_PROGRESS = "in_progress",
|
|
154
|
+
COMPLETED = "completed",
|
|
155
|
+
FAILED = "failed",
|
|
156
|
+
SKIPPED = "skipped"
|
|
157
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
interface PatchStats {
|
|
3
|
+
additions: number;
|
|
4
|
+
deletions: number;
|
|
5
|
+
}
|
|
6
|
+
interface PatchData {
|
|
7
|
+
filePath: string;
|
|
8
|
+
unifiedDiff: string;
|
|
9
|
+
stats: PatchStats;
|
|
10
|
+
}
|
|
11
|
+
export declare function PatchCard({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function PatchAttachments({ patches }: {
|
|
13
|
+
patches: PatchData[];
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
declare function SimulationEventCardComponent({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SimulationEventCard: import("react").MemoExoticComponent<typeof SimulationEventCardComponent>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CardComponentProps } from "../../../lib/card-registry.js";
|
|
2
|
+
declare function SurvivalEffectCardComponent({ card }: CardComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SurvivalEffectCard: import("react").MemoExoticComponent<typeof SurvivalEffectCardComponent>;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ToolCallInfo } from "../../schemas/message.js";
|
|
2
|
+
interface Props {
|
|
3
|
+
toolCall: ToolCallInfo;
|
|
4
|
+
sessionId: string;
|
|
5
|
+
reasoning?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function AgentLoopBlock({ toolCall, sessionId, reasoning }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
interface OptionItem {
|
|
2
|
+
label: string;
|
|
3
|
+
description: string;
|
|
4
|
+
}
|
|
5
|
+
interface QuestionItem {
|
|
6
|
+
question: string;
|
|
7
|
+
options: OptionItem[];
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface SourceLoopInfo {
|
|
11
|
+
loop_name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
interface AskUserQuestionData {
|
|
15
|
+
questions: QuestionItem[];
|
|
16
|
+
source_loop?: SourceLoopInfo | null;
|
|
17
|
+
}
|
|
18
|
+
export type AskUserAnswerData = {
|
|
19
|
+
selections: Record<number, number[]>;
|
|
20
|
+
custom: Record<number, string>;
|
|
21
|
+
};
|
|
22
|
+
interface Props {
|
|
23
|
+
data: AskUserQuestionData;
|
|
24
|
+
answered: boolean;
|
|
25
|
+
toolCallId: string;
|
|
26
|
+
sessionStatus: string;
|
|
27
|
+
answerData?: AskUserAnswerData | undefined;
|
|
28
|
+
onAnswer?: (answer: string, toolCallId: string, answerData: AskUserAnswerData) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function AskUserQuestionBlock({ data, answered, toolCallId, sessionStatus, answerData, onAnswer, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function parseAskUserQuestion(toolResult: string | null | undefined): AskUserQuestionData | null;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChatMessage } from "../../schemas/message.js";
|
|
2
|
+
import type { AskUserAnswerData } from "./AskUserQuestionBlock.js";
|
|
3
|
+
import type { ChatViewCustomization } from "./customization.js";
|
|
4
|
+
interface Props {
|
|
5
|
+
turnKey: string;
|
|
6
|
+
sessionId: string;
|
|
7
|
+
messages: ChatMessage[];
|
|
8
|
+
isStreaming?: boolean;
|
|
9
|
+
isLastTurn?: boolean;
|
|
10
|
+
askAnswers?: Record<string, AskUserAnswerData>;
|
|
11
|
+
onAnswer?: (answer: string, toolCallId: string, answerData: AskUserAnswerData) => void;
|
|
12
|
+
sessionStatus?: string;
|
|
13
|
+
level?: 1 | 2;
|
|
14
|
+
forceExpanded?: boolean;
|
|
15
|
+
customization?: ChatViewCustomization;
|
|
16
|
+
}
|
|
17
|
+
export type TurnDisplayMode = "compact" | "detail";
|
|
18
|
+
export declare function defaultTurnDisplayMode({ forceExpanded, hasActionableToolCall, }: {
|
|
19
|
+
forceExpanded: boolean;
|
|
20
|
+
hasActionableToolCall: boolean;
|
|
21
|
+
}): TurnDisplayMode;
|
|
22
|
+
export declare function resolveTurnDisplayMode({ isStreaming, displayMode, }: {
|
|
23
|
+
isStreaming: boolean;
|
|
24
|
+
displayMode: TurnDisplayMode;
|
|
25
|
+
}): TurnDisplayMode;
|
|
26
|
+
declare function AssistantTurnBlockBase({ sessionId, messages: rawMessages, isStreaming, askAnswers, onAnswer, sessionStatus, level, forceExpanded, customization, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const AssistantTurnBlock: import("react").MemoExoticComponent<typeof AssistantTurnBlockBase>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* R6:用户上传的附件(文本 / 未知类型)预览弹窗。
|
|
3
|
+
*
|
|
4
|
+
* 图片走独立的 ImageLightbox;本组件处理:
|
|
5
|
+
* - .md → markdown 渲染
|
|
6
|
+
* - .json / .txt / .yaml / .yml / 其他文本 → 纯文本等宽展示
|
|
7
|
+
* - 不可在浏览器内渲染的类型 → 下载链接兜底
|
|
8
|
+
*
|
|
9
|
+
* 无 URL 时兜底为只显示文件名 + 下载入口。
|
|
10
|
+
*/
|
|
11
|
+
interface Props {
|
|
12
|
+
open: boolean;
|
|
13
|
+
onOpenChange: (open: boolean) => void;
|
|
14
|
+
filename: string;
|
|
15
|
+
/**
|
|
16
|
+
* 由调用方用 `getAuthedUrl()` 构造的完整 URL(baseUrl + 路径 + ?token=…)。
|
|
17
|
+
* 内部 fetch 直接用原串,**不**再走 `apiFetchText` —— 否则会二次拼 baseUrl,
|
|
18
|
+
* 在独立前后端部署时会得到形如 `http://api.xxxhttp://api.xxx/…` 的非法 URL。
|
|
19
|
+
* token 靠 query 字符串携带,因此也不需要再挂 Authorization header。
|
|
20
|
+
*/
|
|
21
|
+
url: string | null;
|
|
22
|
+
/** text-like 视为"可文本预览";其他只显示下载按钮。 */
|
|
23
|
+
mode: "markdown" | "text" | "default";
|
|
24
|
+
}
|
|
25
|
+
export declare function AttachmentPreviewDialog({ open, onOpenChange, filename, url, mode }: Props): import("react").ReactPortal | null;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type ComponentType, type ReactNode } from "react";
|
|
2
|
+
import type { MessageContent } from "../../schemas/message.js";
|
|
3
|
+
import type { SessionMode } from "../../stores/session-store.js";
|
|
4
|
+
import type { SkillStatusBarComponentProps } from "./customization.js";
|
|
5
|
+
export interface ChatSendOptions {
|
|
6
|
+
targetSessionId?: string;
|
|
7
|
+
model?: string | null;
|
|
8
|
+
thinkingOverride?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface Props {
|
|
11
|
+
onSend: (message: MessageContent, options?: ChatSendOptions) => void;
|
|
12
|
+
onAppend?: (message: string) => void;
|
|
13
|
+
onStop: () => void | Promise<void>;
|
|
14
|
+
isStreaming: boolean;
|
|
15
|
+
isStopping?: boolean;
|
|
16
|
+
mode?: SessionMode;
|
|
17
|
+
onToggleMode?: () => void;
|
|
18
|
+
renderAttachments?: () => ReactNode;
|
|
19
|
+
onBeforeSend?: (content: MessageContent) => MessageContent | Promise<MessageContent>;
|
|
20
|
+
/**
|
|
21
|
+
* Creates (or returns) a session to upload pending attachments into when
|
|
22
|
+
* the composer has files but no active session yet. The returned id is
|
|
23
|
+
* used for the upload, and is also passed back to `onSend` so the send
|
|
24
|
+
* path reaches exactly the session the files landed in — independent of
|
|
25
|
+
* whatever the global activeSessionId is at that moment.
|
|
26
|
+
*/
|
|
27
|
+
ensureSession?: (draftText: string) => Promise<string>;
|
|
28
|
+
onCommand?: (commandId: string) => void | Promise<void>;
|
|
29
|
+
canShareSession?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Optional slot rendered directly above the textarea (below any file-pill
|
|
32
|
+
* bar). ship-attack uses this to mount QuoteChipList for R4.
|
|
33
|
+
*/
|
|
34
|
+
slotAboveTextarea?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Optional external draft channel. When provided, the composer initializes
|
|
37
|
+
* from `value` on mount and mirrors every internal `setInput` call into
|
|
38
|
+
* `setValue`. Intended for ship-attack's cross-view draft sharing (R3.8),
|
|
39
|
+
* not full controlled-input semantics — the tiptap editor remains the
|
|
40
|
+
* source of truth, this is a persistence side-channel.
|
|
41
|
+
*/
|
|
42
|
+
externalDraft?: {
|
|
43
|
+
value: string;
|
|
44
|
+
setValue: (v: string) => void;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Optional external attachments channel. Same mirror semantics as
|
|
48
|
+
* externalDraft. Upload state (pending/uploading/...) is carried on
|
|
49
|
+
* `FileComposerAttachment.status`, so sharing the array is enough.
|
|
50
|
+
*/
|
|
51
|
+
externalAttachments?: {
|
|
52
|
+
value: FileComposerAttachment[];
|
|
53
|
+
setValue: (a: FileComposerAttachment[]) => void;
|
|
54
|
+
};
|
|
55
|
+
/** Tailwind class for the inner max-width wrapper. Defaults to `max-w-3xl`. */
|
|
56
|
+
maxWidthClassName?: string;
|
|
57
|
+
className?: string;
|
|
58
|
+
innerClassName?: string;
|
|
59
|
+
SkillStatusBarComponent?: ComponentType<SkillStatusBarComponentProps>;
|
|
60
|
+
skillStatusBarClassName?: string;
|
|
61
|
+
skillStatusBarInnerClassName?: string;
|
|
62
|
+
onResyncSkills?: () => void;
|
|
63
|
+
isResyncingSkills?: boolean;
|
|
64
|
+
inputLabel?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Opt-in: invoked when the user presses Escape twice quickly on the composer.
|
|
67
|
+
* Undefined for all consumers except the skill editor's rewind gesture, so
|
|
68
|
+
* the shared composer behaves identically to today when not provided. The
|
|
69
|
+
* composer's bounding rect is passed so the caller can anchor a popover.
|
|
70
|
+
*/
|
|
71
|
+
onDoubleEscape?: (anchorRect: DOMRect | null) => void;
|
|
72
|
+
/** Opt-in faint hint shown over the empty composer (e.g. the Esc-Esc tip). */
|
|
73
|
+
composerHint?: ReactNode;
|
|
74
|
+
}
|
|
75
|
+
export type FileComposerAttachment = {
|
|
76
|
+
id: string;
|
|
77
|
+
kind: "file";
|
|
78
|
+
name: string;
|
|
79
|
+
size: number;
|
|
80
|
+
mimeType: string;
|
|
81
|
+
status: "pending" | "uploading" | "uploaded" | "failed";
|
|
82
|
+
file?: File;
|
|
83
|
+
uploadedPath?: string;
|
|
84
|
+
textContent?: string | null;
|
|
85
|
+
uploadProgress?: number | null;
|
|
86
|
+
};
|
|
87
|
+
type ComposerAttachment = FileComposerAttachment;
|
|
88
|
+
export declare function buildSubmitPayload(text: string, attachments: ComposerAttachment[], pendingContexts: {
|
|
89
|
+
label: string;
|
|
90
|
+
content: string;
|
|
91
|
+
imageUrl?: string;
|
|
92
|
+
}[], onBeforeSend?: (content: MessageContent) => MessageContent | Promise<MessageContent>): Promise<MessageContent>;
|
|
93
|
+
export declare function ChatInput({ onSend, onAppend, onStop, isStreaming, isStopping, mode, onToggleMode, renderAttachments, onBeforeSend, ensureSession, onCommand, canShareSession, slotAboveTextarea, externalDraft, externalAttachments, maxWidthClassName, className, innerClassName, SkillStatusBarComponent, skillStatusBarClassName, skillStatusBarInnerClassName, onResyncSkills, isResyncingSkills, inputLabel, onDoubleEscape, composerHint, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { MessageContent } from "../../schemas/message.js";
|
|
3
|
+
import type { ChatViewCustomization } from "./customization.js";
|
|
4
|
+
export interface ChatViewProps extends ChatViewCustomization {
|
|
5
|
+
sessionId: string;
|
|
6
|
+
renderAttachments?: () => ReactNode;
|
|
7
|
+
onBeforeSend?: (content: MessageContent) => MessageContent | Promise<MessageContent>;
|
|
8
|
+
onCommand?: (commandId: string) => void | Promise<void>;
|
|
9
|
+
canShareSession?: boolean;
|
|
10
|
+
onResyncSkills?: () => void;
|
|
11
|
+
isResyncingSkills?: boolean;
|
|
12
|
+
inputLabel?: string;
|
|
13
|
+
onDoubleEscape?: (anchorRect: DOMRect | null) => void;
|
|
14
|
+
composerHint?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function ChatView({ sessionId, renderAttachments, onBeforeSend, onCommand, canShareSession, onResyncSkills, isResyncingSkills, inputLabel, onDoubleEscape, composerHint, classNames, components, renderers, }: ChatViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CompactionInfo } from "../../schemas/message.js";
|
|
2
|
+
export declare function CompactionCard({ sessionId, compaction, status, }: {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
compaction?: CompactionInfo | null;
|
|
5
|
+
status?: "streaming" | "completed" | "paused" | "failed" | "interrupted";
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function ConnectionBanner(): import("react/jsx-runtime").JSX.Element | null;
|