@blade-hq/agent-kit 1.0.24 → 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-7F6UP5LP.js → chunk-34GDDOWY.js} +5 -208
- package/dist/chunk-34GDDOWY.js.map +1 -0
- package/dist/{chunk-2QYV43YP.js → chunk-C2FKVGJU.js} +2 -2
- package/dist/{chunk-TYM7KL2L.js → chunk-JU5SL4HP.js} +2 -2
- package/dist/chunk-M72OL7ZJ.js +23 -0
- package/dist/chunk-M72OL7ZJ.js.map +1 -0
- package/dist/{chunk-IMMRWXI7.js → chunk-SBASG3M2.js} +128 -98
- package/dist/chunk-SBASG3M2.js.map +1 -0
- package/dist/{chunk-BQKF6HJH.js → chunk-TE6G6NVX.js} +6 -6
- package/dist/{chunk-ICV7OTGX.js → chunk-X2NJKKXR.js} +10 -10
- package/dist/client/auth.d.ts +8 -0
- package/dist/client/blade-client.d.ts +80 -0
- package/dist/client/index.d.ts +22 -18769
- package/dist/client/index.js +1 -5
- 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/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 +6 -6
- 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 +4 -4
- 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 +3 -3
- 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 +3 -3
- 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 -2111
- package/dist/react/index.js +41 -97
- 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 -12
- package/dist/SkillStatusBar-DluiBsVj.d.ts +0 -340
- package/dist/blade-client-CseN7OW9.d.ts +0 -1867
- package/dist/chunk-7F6UP5LP.js.map +0 -1
- package/dist/chunk-IMMRWXI7.js.map +0 -1
- package/dist/react/api/vibe-coding.d.ts +0 -55
- package/dist/react/api/vibe-coding.js +0 -47
- package/dist/react/api/vibe-coding.js.map +0 -1
- package/dist/session-CT8Y2KHr.d.ts +0 -227
- package/dist/sessions-DI9DVun7.d.ts +0 -177
- /package/dist/{chunk-2QYV43YP.js.map → chunk-C2FKVGJU.js.map} +0 -0
- /package/dist/{chunk-TYM7KL2L.js.map → chunk-JU5SL4HP.js.map} +0 -0
- /package/dist/{chunk-BQKF6HJH.js.map → chunk-TE6G6NVX.js.map} +0 -0
- /package/dist/{chunk-ICV7OTGX.js.map → chunk-X2NJKKXR.js.map} +0 -0
package/dist/react/index.d.ts
CHANGED
|
@@ -1,2111 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
declare const memories_batchMemories: typeof batchMemories;
|
|
123
|
-
declare const memories_createMemory: typeof createMemory;
|
|
124
|
-
declare const memories_deleteMemory: typeof deleteMemory;
|
|
125
|
-
declare const memories_getMemory: typeof getMemory;
|
|
126
|
-
declare const memories_listMemories: typeof listMemories;
|
|
127
|
-
declare const memories_patchMemory: typeof patchMemory;
|
|
128
|
-
declare const memories_updateMemory: typeof updateMemory;
|
|
129
|
-
declare namespace memories {
|
|
130
|
-
export { memories_MemoriesResource as MemoriesResource, memories_Memory as Memory, memories_MemoryCreateBody as MemoryCreateBody, memories_MemoryListParams as MemoryListParams, memories_MemoryListResponse as MemoryListResponse, memories_batchMemories as batchMemories, memories_createMemory as createMemory, memories_deleteMemory as deleteMemory, memories_getMemory as getMemory, memories_listMemories as listMemories, memories_patchMemory as patchMemory, memories_updateMemory as updateMemory };
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
declare const fetchGisState: (...args: Parameters<GisResource["fetchGisState"]>) => Promise<GisState>;
|
|
134
|
-
declare const fetchRuntimeConfig: (...args: Parameters<GisResource["fetchRuntimeConfig"]>) => Promise<RuntimeConfig>;
|
|
135
|
-
|
|
136
|
-
declare const gisApi_GisResource: typeof GisResource;
|
|
137
|
-
declare const gisApi_fetchGisState: typeof fetchGisState;
|
|
138
|
-
declare const gisApi_fetchRuntimeConfig: typeof fetchRuntimeConfig;
|
|
139
|
-
declare namespace gisApi {
|
|
140
|
-
export { gisApi_GisResource as GisResource, gisApi_fetchGisState as fetchGisState, gisApi_fetchRuntimeConfig as fetchRuntimeConfig };
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
declare const getModelsConfig: (...args: Parameters<ModelsResource["getModelsConfig"]>) => Promise<{
|
|
144
|
-
default: string;
|
|
145
|
-
models: {
|
|
146
|
-
id: string;
|
|
147
|
-
label: string;
|
|
148
|
-
inputModalities?: string[] | undefined;
|
|
149
|
-
supportsImage?: boolean | undefined;
|
|
150
|
-
}[];
|
|
151
|
-
}>;
|
|
152
|
-
|
|
153
|
-
declare const models_ModelOption: typeof ModelOption;
|
|
154
|
-
declare const models_ModelsConfig: typeof ModelsConfig;
|
|
155
|
-
declare const models_ModelsResource: typeof ModelsResource;
|
|
156
|
-
declare const models_getModelsConfig: typeof getModelsConfig;
|
|
157
|
-
declare namespace models {
|
|
158
|
-
export { models_ModelOption as ModelOption, models_ModelsConfig as ModelsConfig, models_ModelsResource as ModelsResource, models_getModelsConfig as getModelsConfig };
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
declare const listSkills: (...args: Parameters<SkillsResource["listSkills"]>) => Promise<SkillSummary[]>;
|
|
162
|
-
declare const listInstalledRegistrySkills: (...args: Parameters<SkillsResource["listInstalledRegistrySkills"]>) => Promise<InstalledRegistrySkill[]>;
|
|
163
|
-
declare const listSessionSkills: (...args: Parameters<SkillsResource["listSessionSkills"]>) => Promise<SkillSummary[]>;
|
|
164
|
-
declare const resyncSkills: (...args: Parameters<SkillsResource["resyncSkills"]>) => Promise<{
|
|
165
|
-
detail?: string;
|
|
166
|
-
copied: number;
|
|
167
|
-
removed: number;
|
|
168
|
-
preserved: number;
|
|
169
|
-
}>;
|
|
170
|
-
declare const searchSkills: (...args: Parameters<SkillsResource["searchSkills"]>) => Promise<SkillSearchResult[]>;
|
|
171
|
-
declare const getSkillStats: (...args: Parameters<SkillsResource["getSkillStats"]>) => Promise<SkillStats>;
|
|
172
|
-
declare const getGlobalSkillStats: (...args: Parameters<SkillsResource["getGlobalSkillStats"]>) => Promise<GlobalSkillStats>;
|
|
173
|
-
declare const getSkill: (...args: Parameters<SkillsResource["getSkill"]>) => Promise<SkillDetail>;
|
|
174
|
-
declare const uploadSessionSkill: (...args: Parameters<SkillsResource["uploadSessionSkill"]>) => Promise<{
|
|
175
|
-
name: `${string}/${string}`;
|
|
176
|
-
skill_dir: string;
|
|
177
|
-
file_count: number;
|
|
178
|
-
overwritten: boolean;
|
|
179
|
-
}>;
|
|
180
|
-
declare const installPartnerSkill: (...args: Parameters<SkillsResource["installPartnerSkill"]>) => Promise<{
|
|
181
|
-
name: `${string}/${string}`;
|
|
182
|
-
skill_dir: string;
|
|
183
|
-
file_count: number;
|
|
184
|
-
overwritten: boolean;
|
|
185
|
-
}>;
|
|
186
|
-
|
|
187
|
-
declare const skills_GlobalSkillStats: typeof GlobalSkillStats;
|
|
188
|
-
declare const skills_InstalledRegistrySkill: typeof InstalledRegistrySkill;
|
|
189
|
-
declare const skills_SkillsResource: typeof SkillsResource;
|
|
190
|
-
declare const skills_getGlobalSkillStats: typeof getGlobalSkillStats;
|
|
191
|
-
declare const skills_getSkill: typeof getSkill;
|
|
192
|
-
declare const skills_getSkillStats: typeof getSkillStats;
|
|
193
|
-
declare const skills_installPartnerSkill: typeof installPartnerSkill;
|
|
194
|
-
declare const skills_listInstalledRegistrySkills: typeof listInstalledRegistrySkills;
|
|
195
|
-
declare const skills_listSessionSkills: typeof listSessionSkills;
|
|
196
|
-
declare const skills_listSkills: typeof listSkills;
|
|
197
|
-
declare const skills_resyncSkills: typeof resyncSkills;
|
|
198
|
-
declare const skills_searchSkills: typeof searchSkills;
|
|
199
|
-
declare const skills_uploadSessionSkill: typeof uploadSessionSkill;
|
|
200
|
-
declare namespace skills {
|
|
201
|
-
export { skills_GlobalSkillStats as GlobalSkillStats, skills_InstalledRegistrySkill as InstalledRegistrySkill, skills_SkillsResource as SkillsResource, skills_getGlobalSkillStats as getGlobalSkillStats, skills_getSkill as getSkill, skills_getSkillStats as getSkillStats, skills_installPartnerSkill as installPartnerSkill, skills_listInstalledRegistrySkills as listInstalledRegistrySkills, skills_listSessionSkills as listSessionSkills, skills_listSkills as listSkills, skills_resyncSkills as resyncSkills, skills_searchSkills as searchSkills, skills_uploadSessionSkill as uploadSessionSkill };
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
declare const partnerSkill_PartnerSkillInstallPayload: typeof PartnerSkillInstallPayload;
|
|
205
|
-
declare const partnerSkill_PartnerSkillInstallResult: typeof PartnerSkillInstallResult;
|
|
206
|
-
declare const partnerSkill_SessionSkillUploadPayload: typeof SessionSkillUploadPayload;
|
|
207
|
-
declare const partnerSkill_SessionSkillUploadResult: typeof SessionSkillUploadResult;
|
|
208
|
-
declare const partnerSkill_installPartnerSkill: typeof installPartnerSkill;
|
|
209
|
-
declare const partnerSkill_uploadSessionSkill: typeof uploadSessionSkill;
|
|
210
|
-
declare namespace partnerSkill {
|
|
211
|
-
export { partnerSkill_PartnerSkillInstallPayload as PartnerSkillInstallPayload, partnerSkill_PartnerSkillInstallResult as PartnerSkillInstallResult, partnerSkill_SessionSkillUploadPayload as SessionSkillUploadPayload, partnerSkill_SessionSkillUploadResult as SessionSkillUploadResult, partnerSkill_installPartnerSkill as installPartnerSkill, partnerSkill_uploadSessionSkill as uploadSessionSkill };
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
declare const listPublishedApps: (...args: Parameters<PublishedAppsResource["listPublishedApps"]>) => Promise<{
|
|
215
|
-
session_id: string;
|
|
216
|
-
name: string;
|
|
217
|
-
url: string;
|
|
218
|
-
host_port: number;
|
|
219
|
-
app_port: number;
|
|
220
|
-
icon: string;
|
|
221
|
-
open_in: string;
|
|
222
|
-
created_at: number;
|
|
223
|
-
status: "running" | "restarting" | "exited";
|
|
224
|
-
os_app_id: string;
|
|
225
|
-
os_registered: boolean;
|
|
226
|
-
}[]>;
|
|
227
|
-
declare const unpublishApp: (...args: Parameters<PublishedAppsResource["unpublishApp"]>) => Promise<{
|
|
228
|
-
ok: boolean;
|
|
229
|
-
os_app_id?: string | undefined;
|
|
230
|
-
os_registered?: boolean | undefined;
|
|
231
|
-
}>;
|
|
232
|
-
|
|
233
|
-
declare const publishedApps_PublishedApp: typeof PublishedApp;
|
|
234
|
-
declare const publishedApps_PublishedAppListResponse: typeof PublishedAppListResponse;
|
|
235
|
-
declare const publishedApps_PublishedAppStatus: typeof PublishedAppStatus;
|
|
236
|
-
declare const publishedApps_PublishedAppsResource: typeof PublishedAppsResource;
|
|
237
|
-
declare const publishedApps_UnpublishAppResponse: typeof UnpublishAppResponse;
|
|
238
|
-
declare const publishedApps_listPublishedApps: typeof listPublishedApps;
|
|
239
|
-
declare const publishedApps_unpublishApp: typeof unpublishApp;
|
|
240
|
-
declare namespace publishedApps {
|
|
241
|
-
export { publishedApps_PublishedApp as PublishedApp, publishedApps_PublishedAppListResponse as PublishedAppListResponse, publishedApps_PublishedAppStatus as PublishedAppStatus, publishedApps_PublishedAppsResource as PublishedAppsResource, publishedApps_UnpublishAppResponse as UnpublishAppResponse, publishedApps_listPublishedApps as listPublishedApps, publishedApps_unpublishApp as unpublishApp };
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
interface ProdSolution {
|
|
245
|
-
id: string;
|
|
246
|
-
name: string;
|
|
247
|
-
description?: string | null;
|
|
248
|
-
status: string;
|
|
249
|
-
current_dag_version: number;
|
|
250
|
-
current_architecture_version?: number;
|
|
251
|
-
created_by: string;
|
|
252
|
-
created_at: string;
|
|
253
|
-
updated_at: string;
|
|
254
|
-
session_id?: string | null;
|
|
255
|
-
ai_assist?: boolean;
|
|
256
|
-
flow_session_id?: string | null;
|
|
257
|
-
flow_ai_assist?: boolean;
|
|
258
|
-
architecture_session_id?: string | null;
|
|
259
|
-
architecture_ai_assist?: boolean;
|
|
260
|
-
}
|
|
261
|
-
interface DslStep {
|
|
262
|
-
id: string;
|
|
263
|
-
type: string;
|
|
264
|
-
name: string;
|
|
265
|
-
next?: string[];
|
|
266
|
-
branches?: string[];
|
|
267
|
-
condition?: string;
|
|
268
|
-
true?: string[];
|
|
269
|
-
false?: string[];
|
|
270
|
-
body?: string[];
|
|
271
|
-
}
|
|
272
|
-
interface DagPayload {
|
|
273
|
-
steps: DslStep[];
|
|
274
|
-
viewport?: Record<string, unknown> | null;
|
|
275
|
-
}
|
|
276
|
-
interface DagVersion {
|
|
277
|
-
solution_id: string;
|
|
278
|
-
version: number;
|
|
279
|
-
steps: DslStep[];
|
|
280
|
-
viewport?: Record<string, unknown> | null;
|
|
281
|
-
created_at: string;
|
|
282
|
-
created_by: string;
|
|
283
|
-
message?: string | null;
|
|
284
|
-
change_type: string;
|
|
285
|
-
rollback_from_version?: number | null;
|
|
286
|
-
is_published: boolean;
|
|
287
|
-
}
|
|
288
|
-
interface DagVersionListItem {
|
|
289
|
-
version: number;
|
|
290
|
-
created_at: string;
|
|
291
|
-
created_by: string;
|
|
292
|
-
message?: string | null;
|
|
293
|
-
change_type: string;
|
|
294
|
-
rollback_from_version?: number | null;
|
|
295
|
-
is_published: boolean;
|
|
296
|
-
}
|
|
297
|
-
interface ArchitectureNode {
|
|
298
|
-
id: string;
|
|
299
|
-
name: string;
|
|
300
|
-
parent_id?: string | null;
|
|
301
|
-
dashed_parent_ids?: string[];
|
|
302
|
-
title?: string;
|
|
303
|
-
description?: string;
|
|
304
|
-
}
|
|
305
|
-
interface ArchitecturePayload {
|
|
306
|
-
nodes: ArchitectureNode[];
|
|
307
|
-
viewport?: Record<string, unknown> | null;
|
|
308
|
-
}
|
|
309
|
-
interface ArchitectureVersion extends ArchitecturePayload {
|
|
310
|
-
solution_id: string;
|
|
311
|
-
version: number;
|
|
312
|
-
created_at: string;
|
|
313
|
-
created_by: string;
|
|
314
|
-
message?: string | null;
|
|
315
|
-
change_type: string;
|
|
316
|
-
rollback_from_version?: number | null;
|
|
317
|
-
is_published: boolean;
|
|
318
|
-
}
|
|
319
|
-
type ArchitectureVersionListItem = DagVersionListItem;
|
|
320
|
-
interface MulticaRuntime {
|
|
321
|
-
id: string;
|
|
322
|
-
name?: string;
|
|
323
|
-
[key: string]: unknown;
|
|
324
|
-
}
|
|
325
|
-
interface MulticaAgent {
|
|
326
|
-
id: string;
|
|
327
|
-
name?: string;
|
|
328
|
-
runtime_id?: string;
|
|
329
|
-
visibility?: string;
|
|
330
|
-
instructions?: string;
|
|
331
|
-
[key: string]: unknown;
|
|
332
|
-
}
|
|
333
|
-
interface ProdAgentPreviewUrl {
|
|
334
|
-
name: string;
|
|
335
|
-
url: string;
|
|
336
|
-
}
|
|
337
|
-
interface ProdAgentCatalogRole {
|
|
338
|
-
id: string;
|
|
339
|
-
name: string;
|
|
340
|
-
description?: string;
|
|
341
|
-
}
|
|
342
|
-
interface ProdAgentCatalogSolution {
|
|
343
|
-
id: string;
|
|
344
|
-
name: string;
|
|
345
|
-
layout_type: string;
|
|
346
|
-
initial_mode?: string | null;
|
|
347
|
-
roles: ProdAgentCatalogRole[];
|
|
348
|
-
}
|
|
349
|
-
interface ProdAgentRecord {
|
|
350
|
-
id: string;
|
|
351
|
-
user_id: string;
|
|
352
|
-
name: string;
|
|
353
|
-
icon: string;
|
|
354
|
-
agent_id: string;
|
|
355
|
-
solution_id: string;
|
|
356
|
-
biz_role_id: string;
|
|
357
|
-
agent_template: string;
|
|
358
|
-
initial_mode?: string | null;
|
|
359
|
-
skills: string[];
|
|
360
|
-
skills_data: Record<string, unknown>;
|
|
361
|
-
skills_data_raw: Record<string, string>;
|
|
362
|
-
init_script: string;
|
|
363
|
-
layout_type: string;
|
|
364
|
-
preview_urls: ProdAgentPreviewUrl[];
|
|
365
|
-
runtime_provider: string;
|
|
366
|
-
visibility: string;
|
|
367
|
-
instructions: string;
|
|
368
|
-
instantiated: boolean;
|
|
369
|
-
instantiated_agent_id?: string | null;
|
|
370
|
-
instantiated_at?: string | null;
|
|
371
|
-
instantiate_error?: string | null;
|
|
372
|
-
instantiated_agent?: Record<string, unknown>;
|
|
373
|
-
create_warning?: string;
|
|
374
|
-
created_at: string;
|
|
375
|
-
updated_at: string;
|
|
376
|
-
}
|
|
377
|
-
interface ProdUser {
|
|
378
|
-
sub: string;
|
|
379
|
-
email?: string;
|
|
380
|
-
name?: string;
|
|
381
|
-
preferred_username?: string;
|
|
382
|
-
picture?: string | null;
|
|
383
|
-
}
|
|
384
|
-
interface ProdUserTokenStatus {
|
|
385
|
-
sub: string;
|
|
386
|
-
email: string;
|
|
387
|
-
ok: boolean;
|
|
388
|
-
changed: boolean;
|
|
389
|
-
message: string;
|
|
390
|
-
token_prefix?: string;
|
|
391
|
-
}
|
|
392
|
-
interface UserWorkspace {
|
|
393
|
-
id: string;
|
|
394
|
-
name?: string;
|
|
395
|
-
slug?: string;
|
|
396
|
-
role?: string;
|
|
397
|
-
[key: string]: unknown;
|
|
398
|
-
}
|
|
399
|
-
interface CreateUserWorkspaceRequest {
|
|
400
|
-
name: string;
|
|
401
|
-
description?: string;
|
|
402
|
-
member_user_ids?: string[];
|
|
403
|
-
agent_ids?: string[];
|
|
404
|
-
}
|
|
405
|
-
interface WorkspaceIssueCreateRequest {
|
|
406
|
-
title: string;
|
|
407
|
-
description?: string;
|
|
408
|
-
priority?: "urgent" | "high" | "medium" | "low" | "none";
|
|
409
|
-
status?: "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
|
|
410
|
-
assignee?: string;
|
|
411
|
-
assignee_type?: IssueAssigneeType;
|
|
412
|
-
assignee_id?: string;
|
|
413
|
-
project?: string;
|
|
414
|
-
}
|
|
415
|
-
interface WorkspaceIssue {
|
|
416
|
-
id?: string;
|
|
417
|
-
workspace_id?: string;
|
|
418
|
-
number?: number;
|
|
419
|
-
identifier?: string;
|
|
420
|
-
title?: string;
|
|
421
|
-
issue_url?: string;
|
|
422
|
-
description?: string | null;
|
|
423
|
-
status?: IssueStatus;
|
|
424
|
-
priority?: IssuePriority;
|
|
425
|
-
assignee?: string;
|
|
426
|
-
assignee_type?: IssueAssigneeType | null;
|
|
427
|
-
assignee_id?: string | null;
|
|
428
|
-
creator_type?: IssueAssigneeType;
|
|
429
|
-
creator_id?: string;
|
|
430
|
-
parent_issue_id?: string | null;
|
|
431
|
-
project_id?: string | null;
|
|
432
|
-
start_date?: string | null;
|
|
433
|
-
due_date?: string | null;
|
|
434
|
-
metadata?: Record<string, unknown>;
|
|
435
|
-
labels?: Array<{
|
|
436
|
-
id: string;
|
|
437
|
-
name: string;
|
|
438
|
-
color?: string | null;
|
|
439
|
-
}>;
|
|
440
|
-
created_at?: string;
|
|
441
|
-
updated_at?: string;
|
|
442
|
-
[key: string]: unknown;
|
|
443
|
-
}
|
|
444
|
-
type IssueStatus = "backlog" | "todo" | "in_progress" | "in_review" | "done" | "blocked" | "cancelled";
|
|
445
|
-
type IssuePriority = "urgent" | "high" | "medium" | "low" | "none";
|
|
446
|
-
type IssueAssigneeType = "member" | "agent" | "squad";
|
|
447
|
-
interface WorkspaceIssueListResponse {
|
|
448
|
-
issues: WorkspaceIssue[];
|
|
449
|
-
total: number;
|
|
450
|
-
}
|
|
451
|
-
interface WorkspaceIssueGroup {
|
|
452
|
-
id: string;
|
|
453
|
-
assignee_type: IssueAssigneeType | null;
|
|
454
|
-
assignee_id: string | null;
|
|
455
|
-
issues: WorkspaceIssue[];
|
|
456
|
-
total: number;
|
|
457
|
-
}
|
|
458
|
-
interface WorkspaceIssueGroupedResponse {
|
|
459
|
-
groups: WorkspaceIssueGroup[];
|
|
460
|
-
}
|
|
461
|
-
interface WorkspaceIssueTimelineEntry {
|
|
462
|
-
type: "activity" | "comment";
|
|
463
|
-
id: string;
|
|
464
|
-
actor_type: string;
|
|
465
|
-
actor_id: string;
|
|
466
|
-
created_at: string;
|
|
467
|
-
action?: string;
|
|
468
|
-
details?: Record<string, unknown>;
|
|
469
|
-
content?: string;
|
|
470
|
-
parent_id?: string | null;
|
|
471
|
-
updated_at?: string;
|
|
472
|
-
comment_type?: string;
|
|
473
|
-
}
|
|
474
|
-
interface WorkspaceIssueTaskRun {
|
|
475
|
-
id: string;
|
|
476
|
-
status?: string;
|
|
477
|
-
title?: string;
|
|
478
|
-
name?: string;
|
|
479
|
-
goal?: string;
|
|
480
|
-
created_at?: string;
|
|
481
|
-
updated_at?: string;
|
|
482
|
-
started_at?: string | null;
|
|
483
|
-
completed_at?: string | null;
|
|
484
|
-
[key: string]: unknown;
|
|
485
|
-
}
|
|
486
|
-
interface WorkspaceIssueUsageSummary {
|
|
487
|
-
total_tokens?: number;
|
|
488
|
-
total_cost_usd?: number;
|
|
489
|
-
input_tokens?: number;
|
|
490
|
-
output_tokens?: number;
|
|
491
|
-
[key: string]: unknown;
|
|
492
|
-
}
|
|
493
|
-
interface WorkspaceMember {
|
|
494
|
-
id?: string;
|
|
495
|
-
workspace_id?: string;
|
|
496
|
-
user_id?: string;
|
|
497
|
-
role?: string;
|
|
498
|
-
name?: string;
|
|
499
|
-
email?: string;
|
|
500
|
-
avatar_url?: string | null;
|
|
501
|
-
created_at?: string;
|
|
502
|
-
[key: string]: unknown;
|
|
503
|
-
}
|
|
504
|
-
interface WorkspaceAssistantSession {
|
|
505
|
-
user_id?: string;
|
|
506
|
-
workspace_id: string;
|
|
507
|
-
biz_role_id: string;
|
|
508
|
-
session_id?: string | null;
|
|
509
|
-
created_at?: string | null;
|
|
510
|
-
updated_at?: string | null;
|
|
511
|
-
}
|
|
512
|
-
declare function listProdSolutions(): Promise<ProdSolution[]>;
|
|
513
|
-
declare function listProdUsers(): Promise<ProdUser[]>;
|
|
514
|
-
declare function checkProdUserTokenStatus(users: ProdUser[]): Promise<ProdUserTokenStatus[]>;
|
|
515
|
-
declare function refreshProdUserToken(user: ProdUser): Promise<ProdUserTokenStatus>;
|
|
516
|
-
declare function listUserWorkspaces(): Promise<UserWorkspace[]>;
|
|
517
|
-
declare function createUserWorkspace(request: CreateUserWorkspaceRequest): Promise<UserWorkspace>;
|
|
518
|
-
declare function getUserWorkspace(workspaceId: string): Promise<Record<string, unknown>>;
|
|
519
|
-
declare function updateUserWorkspace(workspaceId: string, request: {
|
|
520
|
-
name?: string;
|
|
521
|
-
description?: string;
|
|
522
|
-
}): Promise<Record<string, unknown>>;
|
|
523
|
-
declare function listWorkspaceAgents(workspaceId: string): Promise<Array<Record<string, unknown>>>;
|
|
524
|
-
declare function connectWorkspaceAgent(workspaceId: string, request: {
|
|
525
|
-
agent_id: string;
|
|
526
|
-
}): Promise<Record<string, unknown>>;
|
|
527
|
-
declare function removeWorkspaceAgent(workspaceId: string, agentId: string): Promise<Record<string, unknown>>;
|
|
528
|
-
declare function listWorkspaceMembers(workspaceId: string): Promise<WorkspaceMember[]>;
|
|
529
|
-
declare function addWorkspaceMember(workspaceId: string, request: {
|
|
530
|
-
user_id: string;
|
|
531
|
-
role?: "owner" | "admin" | "member";
|
|
532
|
-
}): Promise<Record<string, unknown>>;
|
|
533
|
-
declare function removeWorkspaceMember(workspaceId: string, userId: string): Promise<Record<string, unknown>>;
|
|
534
|
-
declare function getWorkspaceAssistantSession(workspaceId: string, bizRoleId: string): Promise<WorkspaceAssistantSession>;
|
|
535
|
-
declare function upsertWorkspaceAssistantSession(workspaceId: string, request: {
|
|
536
|
-
biz_role_id: string;
|
|
537
|
-
session_id: string;
|
|
538
|
-
}): Promise<WorkspaceAssistantSession>;
|
|
539
|
-
declare function createWorkspaceIssue(workspaceId: string, request: WorkspaceIssueCreateRequest): Promise<Record<string, unknown>>;
|
|
540
|
-
declare function listWorkspaceIssues(workspaceId: string): Promise<WorkspaceIssue[]>;
|
|
541
|
-
declare function queryWorkspaceIssues(workspaceId: string, params?: {
|
|
542
|
-
status?: IssueStatus;
|
|
543
|
-
priority?: IssuePriority;
|
|
544
|
-
limit?: number;
|
|
545
|
-
offset?: number;
|
|
546
|
-
open_only?: boolean;
|
|
547
|
-
}): Promise<WorkspaceIssueListResponse>;
|
|
548
|
-
declare function queryWorkspaceGroupedIssues(workspaceId: string, params: {
|
|
549
|
-
group_by: "assignee";
|
|
550
|
-
statuses?: string;
|
|
551
|
-
limit?: number;
|
|
552
|
-
offset?: number;
|
|
553
|
-
}): Promise<WorkspaceIssueGroupedResponse>;
|
|
554
|
-
declare function getWorkspaceIssue(workspaceId: string, issueId: string): Promise<WorkspaceIssue>;
|
|
555
|
-
declare function updateWorkspaceIssue(workspaceId: string, issueId: string, updates: Partial<WorkspaceIssue>): Promise<WorkspaceIssue>;
|
|
556
|
-
declare function getWorkspaceIssueTimeline(workspaceId: string, issueId: string): Promise<WorkspaceIssueTimelineEntry[]>;
|
|
557
|
-
declare function getWorkspaceIssueTaskRuns(workspaceId: string, issueId: string): Promise<WorkspaceIssueTaskRun[]>;
|
|
558
|
-
declare function getWorkspaceIssueUsage(workspaceId: string, issueId: string): Promise<WorkspaceIssueUsageSummary>;
|
|
559
|
-
declare function createProdSolution(request: {
|
|
560
|
-
name: string;
|
|
561
|
-
description?: string | null;
|
|
562
|
-
session_id?: string | null;
|
|
563
|
-
ai_assist?: boolean;
|
|
564
|
-
flow_session_id?: string | null;
|
|
565
|
-
flow_ai_assist?: boolean;
|
|
566
|
-
architecture_session_id?: string | null;
|
|
567
|
-
architecture_ai_assist?: boolean;
|
|
568
|
-
}): Promise<ProdSolution>;
|
|
569
|
-
declare function updateProdSolution(solutionId: string, request: {
|
|
570
|
-
name?: string;
|
|
571
|
-
description?: string | null;
|
|
572
|
-
status?: string;
|
|
573
|
-
}): Promise<ProdSolution>;
|
|
574
|
-
declare function deleteProdSolution(solutionId: string): Promise<{
|
|
575
|
-
ok: boolean;
|
|
576
|
-
}>;
|
|
577
|
-
declare function updateSessionId(solutionId: string, sessionId: string): Promise<{
|
|
578
|
-
ok: boolean;
|
|
579
|
-
}>;
|
|
580
|
-
declare function getCurrentDag(solutionId: string): Promise<DagVersion>;
|
|
581
|
-
declare function saveDag(solutionId: string, request: {
|
|
582
|
-
base_version: number;
|
|
583
|
-
dag: DagPayload;
|
|
584
|
-
message?: string | null;
|
|
585
|
-
}): Promise<DagVersion>;
|
|
586
|
-
declare function validateDag(solutionId: string, dag: DagPayload): Promise<{
|
|
587
|
-
ok: boolean;
|
|
588
|
-
errors: Array<{
|
|
589
|
-
code: string;
|
|
590
|
-
message: string;
|
|
591
|
-
}>;
|
|
592
|
-
}>;
|
|
593
|
-
declare function publishDag(solutionId: string, request?: {
|
|
594
|
-
dag?: DagPayload;
|
|
595
|
-
version?: number;
|
|
596
|
-
message?: string | null;
|
|
597
|
-
}): Promise<DagVersion>;
|
|
598
|
-
declare function listDagVersions(solutionId: string): Promise<DagVersionListItem[]>;
|
|
599
|
-
declare function getDagVersion(solutionId: string, version: number): Promise<DagVersion>;
|
|
600
|
-
declare function rollbackDag(solutionId: string, request: {
|
|
601
|
-
from_version: number;
|
|
602
|
-
message?: string | null;
|
|
603
|
-
}): Promise<DagVersion>;
|
|
604
|
-
declare function deleteVersion(solutionId: string, version: number): Promise<{
|
|
605
|
-
ok: boolean;
|
|
606
|
-
}>;
|
|
607
|
-
declare function getCurrentArchitecture(solutionId: string): Promise<ArchitectureVersion>;
|
|
608
|
-
declare function saveArchitecture(solutionId: string, request: {
|
|
609
|
-
base_version: number;
|
|
610
|
-
architecture: ArchitecturePayload;
|
|
611
|
-
message?: string | null;
|
|
612
|
-
}): Promise<ArchitectureVersion>;
|
|
613
|
-
declare function validateArchitecture(solutionId: string, architecture: ArchitecturePayload): Promise<{
|
|
614
|
-
ok: boolean;
|
|
615
|
-
errors: Array<{
|
|
616
|
-
code: string;
|
|
617
|
-
message: string;
|
|
618
|
-
}>;
|
|
619
|
-
}>;
|
|
620
|
-
declare function publishArchitecture(solutionId: string, request?: {
|
|
621
|
-
architecture?: ArchitecturePayload;
|
|
622
|
-
version?: number;
|
|
623
|
-
message?: string | null;
|
|
624
|
-
}): Promise<ArchitectureVersion>;
|
|
625
|
-
declare function listArchitectureVersions(solutionId: string): Promise<ArchitectureVersionListItem[]>;
|
|
626
|
-
declare function getArchitectureVersion(solutionId: string, version: number): Promise<ArchitectureVersion>;
|
|
627
|
-
declare function rollbackArchitecture(solutionId: string, request: {
|
|
628
|
-
from_version: number;
|
|
629
|
-
message?: string | null;
|
|
630
|
-
}): Promise<ArchitectureVersion>;
|
|
631
|
-
declare function deleteArchitectureVersion(solutionId: string, version: number): Promise<{
|
|
632
|
-
ok: boolean;
|
|
633
|
-
}>;
|
|
634
|
-
declare function listAgentRuntimes(): Promise<MulticaRuntime[]>;
|
|
635
|
-
declare function listAgents(includeArchived?: boolean): Promise<MulticaAgent[]>;
|
|
636
|
-
declare function getAgent(agentId: string): Promise<MulticaAgent>;
|
|
637
|
-
declare function createAgent(request: {
|
|
638
|
-
name: string;
|
|
639
|
-
runtime_id: string;
|
|
640
|
-
instructions?: string;
|
|
641
|
-
visibility?: string;
|
|
642
|
-
}): Promise<MulticaAgent>;
|
|
643
|
-
declare function listProdAgents(): Promise<ProdAgentRecord[]>;
|
|
644
|
-
declare function getProdAgent(providerKey: string): Promise<ProdAgentRecord>;
|
|
645
|
-
interface ProdAgentWorkspaceReference {
|
|
646
|
-
id: string;
|
|
647
|
-
name: string;
|
|
648
|
-
slug?: string | null;
|
|
649
|
-
}
|
|
650
|
-
declare function getProdAgentWorkspaceReferences(recordId: string, options?: {
|
|
651
|
-
refresh?: boolean;
|
|
652
|
-
}): Promise<{
|
|
653
|
-
items: ProdAgentWorkspaceReference[];
|
|
654
|
-
count: number;
|
|
655
|
-
cached?: boolean;
|
|
656
|
-
}>;
|
|
657
|
-
declare function listProdAgentCatalogSolutions(): Promise<ProdAgentCatalogSolution[]>;
|
|
658
|
-
declare function createProdAgent(request: {
|
|
659
|
-
name: string;
|
|
660
|
-
icon?: string;
|
|
661
|
-
agent_id?: string | null;
|
|
662
|
-
solution_id: string;
|
|
663
|
-
biz_role_id: string;
|
|
664
|
-
agent_template: string;
|
|
665
|
-
initial_mode?: string | null;
|
|
666
|
-
skills: string[];
|
|
667
|
-
skills_data: Record<string, string>;
|
|
668
|
-
init_script: string;
|
|
669
|
-
layout_type: string;
|
|
670
|
-
preview_urls: ProdAgentPreviewUrl[];
|
|
671
|
-
runtime_provider: string;
|
|
672
|
-
visibility: string;
|
|
673
|
-
instructions: string;
|
|
674
|
-
}): Promise<ProdAgentRecord>;
|
|
675
|
-
declare function instantiateProdAgent(recordId: string): Promise<ProdAgentRecord & {
|
|
676
|
-
ok?: boolean;
|
|
677
|
-
message?: string;
|
|
678
|
-
}>;
|
|
679
|
-
declare function deleteProdAgent(recordId: string): Promise<{
|
|
680
|
-
ok: boolean;
|
|
681
|
-
}>;
|
|
682
|
-
declare function startProdAgentSession(recordId: string): Promise<{
|
|
683
|
-
session_id: string;
|
|
684
|
-
route_solution_id: string;
|
|
685
|
-
}>;
|
|
686
|
-
declare function updateProdAgent(recordId: string, request: {
|
|
687
|
-
name: string;
|
|
688
|
-
icon?: string;
|
|
689
|
-
solution_id: string;
|
|
690
|
-
biz_role_id: string;
|
|
691
|
-
agent_template: string;
|
|
692
|
-
initial_mode?: string | null;
|
|
693
|
-
skills: string[];
|
|
694
|
-
skills_data: Record<string, string>;
|
|
695
|
-
init_script: string;
|
|
696
|
-
layout_type: string;
|
|
697
|
-
preview_urls: ProdAgentPreviewUrl[];
|
|
698
|
-
runtime_provider: string;
|
|
699
|
-
}): Promise<ProdAgentRecord>;
|
|
700
|
-
|
|
701
|
-
type prodSolution_ArchitectureNode = ArchitectureNode;
|
|
702
|
-
type prodSolution_ArchitecturePayload = ArchitecturePayload;
|
|
703
|
-
type prodSolution_ArchitectureVersion = ArchitectureVersion;
|
|
704
|
-
type prodSolution_ArchitectureVersionListItem = ArchitectureVersionListItem;
|
|
705
|
-
type prodSolution_CreateUserWorkspaceRequest = CreateUserWorkspaceRequest;
|
|
706
|
-
type prodSolution_DagPayload = DagPayload;
|
|
707
|
-
type prodSolution_DagVersion = DagVersion;
|
|
708
|
-
type prodSolution_DagVersionListItem = DagVersionListItem;
|
|
709
|
-
type prodSolution_DslStep = DslStep;
|
|
710
|
-
type prodSolution_IssueAssigneeType = IssueAssigneeType;
|
|
711
|
-
type prodSolution_IssuePriority = IssuePriority;
|
|
712
|
-
type prodSolution_IssueStatus = IssueStatus;
|
|
713
|
-
type prodSolution_MulticaAgent = MulticaAgent;
|
|
714
|
-
type prodSolution_MulticaRuntime = MulticaRuntime;
|
|
715
|
-
type prodSolution_ProdAgentCatalogRole = ProdAgentCatalogRole;
|
|
716
|
-
type prodSolution_ProdAgentCatalogSolution = ProdAgentCatalogSolution;
|
|
717
|
-
type prodSolution_ProdAgentPreviewUrl = ProdAgentPreviewUrl;
|
|
718
|
-
type prodSolution_ProdAgentRecord = ProdAgentRecord;
|
|
719
|
-
type prodSolution_ProdAgentWorkspaceReference = ProdAgentWorkspaceReference;
|
|
720
|
-
type prodSolution_ProdSolution = ProdSolution;
|
|
721
|
-
type prodSolution_ProdUser = ProdUser;
|
|
722
|
-
type prodSolution_ProdUserTokenStatus = ProdUserTokenStatus;
|
|
723
|
-
type prodSolution_UserWorkspace = UserWorkspace;
|
|
724
|
-
type prodSolution_WorkspaceAssistantSession = WorkspaceAssistantSession;
|
|
725
|
-
type prodSolution_WorkspaceIssue = WorkspaceIssue;
|
|
726
|
-
type prodSolution_WorkspaceIssueCreateRequest = WorkspaceIssueCreateRequest;
|
|
727
|
-
type prodSolution_WorkspaceIssueGroup = WorkspaceIssueGroup;
|
|
728
|
-
type prodSolution_WorkspaceIssueGroupedResponse = WorkspaceIssueGroupedResponse;
|
|
729
|
-
type prodSolution_WorkspaceIssueListResponse = WorkspaceIssueListResponse;
|
|
730
|
-
type prodSolution_WorkspaceIssueTaskRun = WorkspaceIssueTaskRun;
|
|
731
|
-
type prodSolution_WorkspaceIssueTimelineEntry = WorkspaceIssueTimelineEntry;
|
|
732
|
-
type prodSolution_WorkspaceIssueUsageSummary = WorkspaceIssueUsageSummary;
|
|
733
|
-
type prodSolution_WorkspaceMember = WorkspaceMember;
|
|
734
|
-
declare const prodSolution_addWorkspaceMember: typeof addWorkspaceMember;
|
|
735
|
-
declare const prodSolution_checkProdUserTokenStatus: typeof checkProdUserTokenStatus;
|
|
736
|
-
declare const prodSolution_connectWorkspaceAgent: typeof connectWorkspaceAgent;
|
|
737
|
-
declare const prodSolution_createAgent: typeof createAgent;
|
|
738
|
-
declare const prodSolution_createProdAgent: typeof createProdAgent;
|
|
739
|
-
declare const prodSolution_createProdSolution: typeof createProdSolution;
|
|
740
|
-
declare const prodSolution_createUserWorkspace: typeof createUserWorkspace;
|
|
741
|
-
declare const prodSolution_createWorkspaceIssue: typeof createWorkspaceIssue;
|
|
742
|
-
declare const prodSolution_deleteArchitectureVersion: typeof deleteArchitectureVersion;
|
|
743
|
-
declare const prodSolution_deleteProdAgent: typeof deleteProdAgent;
|
|
744
|
-
declare const prodSolution_deleteProdSolution: typeof deleteProdSolution;
|
|
745
|
-
declare const prodSolution_deleteVersion: typeof deleteVersion;
|
|
746
|
-
declare const prodSolution_getAgent: typeof getAgent;
|
|
747
|
-
declare const prodSolution_getArchitectureVersion: typeof getArchitectureVersion;
|
|
748
|
-
declare const prodSolution_getCurrentArchitecture: typeof getCurrentArchitecture;
|
|
749
|
-
declare const prodSolution_getCurrentDag: typeof getCurrentDag;
|
|
750
|
-
declare const prodSolution_getDagVersion: typeof getDagVersion;
|
|
751
|
-
declare const prodSolution_getProdAgent: typeof getProdAgent;
|
|
752
|
-
declare const prodSolution_getProdAgentWorkspaceReferences: typeof getProdAgentWorkspaceReferences;
|
|
753
|
-
declare const prodSolution_getUserWorkspace: typeof getUserWorkspace;
|
|
754
|
-
declare const prodSolution_getWorkspaceAssistantSession: typeof getWorkspaceAssistantSession;
|
|
755
|
-
declare const prodSolution_getWorkspaceIssue: typeof getWorkspaceIssue;
|
|
756
|
-
declare const prodSolution_getWorkspaceIssueTaskRuns: typeof getWorkspaceIssueTaskRuns;
|
|
757
|
-
declare const prodSolution_getWorkspaceIssueTimeline: typeof getWorkspaceIssueTimeline;
|
|
758
|
-
declare const prodSolution_getWorkspaceIssueUsage: typeof getWorkspaceIssueUsage;
|
|
759
|
-
declare const prodSolution_instantiateProdAgent: typeof instantiateProdAgent;
|
|
760
|
-
declare const prodSolution_listAgentRuntimes: typeof listAgentRuntimes;
|
|
761
|
-
declare const prodSolution_listAgents: typeof listAgents;
|
|
762
|
-
declare const prodSolution_listArchitectureVersions: typeof listArchitectureVersions;
|
|
763
|
-
declare const prodSolution_listDagVersions: typeof listDagVersions;
|
|
764
|
-
declare const prodSolution_listProdAgentCatalogSolutions: typeof listProdAgentCatalogSolutions;
|
|
765
|
-
declare const prodSolution_listProdAgents: typeof listProdAgents;
|
|
766
|
-
declare const prodSolution_listProdSolutions: typeof listProdSolutions;
|
|
767
|
-
declare const prodSolution_listProdUsers: typeof listProdUsers;
|
|
768
|
-
declare const prodSolution_listUserWorkspaces: typeof listUserWorkspaces;
|
|
769
|
-
declare const prodSolution_listWorkspaceAgents: typeof listWorkspaceAgents;
|
|
770
|
-
declare const prodSolution_listWorkspaceIssues: typeof listWorkspaceIssues;
|
|
771
|
-
declare const prodSolution_listWorkspaceMembers: typeof listWorkspaceMembers;
|
|
772
|
-
declare const prodSolution_publishArchitecture: typeof publishArchitecture;
|
|
773
|
-
declare const prodSolution_publishDag: typeof publishDag;
|
|
774
|
-
declare const prodSolution_queryWorkspaceGroupedIssues: typeof queryWorkspaceGroupedIssues;
|
|
775
|
-
declare const prodSolution_queryWorkspaceIssues: typeof queryWorkspaceIssues;
|
|
776
|
-
declare const prodSolution_refreshProdUserToken: typeof refreshProdUserToken;
|
|
777
|
-
declare const prodSolution_removeWorkspaceAgent: typeof removeWorkspaceAgent;
|
|
778
|
-
declare const prodSolution_removeWorkspaceMember: typeof removeWorkspaceMember;
|
|
779
|
-
declare const prodSolution_rollbackArchitecture: typeof rollbackArchitecture;
|
|
780
|
-
declare const prodSolution_rollbackDag: typeof rollbackDag;
|
|
781
|
-
declare const prodSolution_saveArchitecture: typeof saveArchitecture;
|
|
782
|
-
declare const prodSolution_saveDag: typeof saveDag;
|
|
783
|
-
declare const prodSolution_startProdAgentSession: typeof startProdAgentSession;
|
|
784
|
-
declare const prodSolution_updateProdAgent: typeof updateProdAgent;
|
|
785
|
-
declare const prodSolution_updateProdSolution: typeof updateProdSolution;
|
|
786
|
-
declare const prodSolution_updateSessionId: typeof updateSessionId;
|
|
787
|
-
declare const prodSolution_updateUserWorkspace: typeof updateUserWorkspace;
|
|
788
|
-
declare const prodSolution_updateWorkspaceIssue: typeof updateWorkspaceIssue;
|
|
789
|
-
declare const prodSolution_upsertWorkspaceAssistantSession: typeof upsertWorkspaceAssistantSession;
|
|
790
|
-
declare const prodSolution_validateArchitecture: typeof validateArchitecture;
|
|
791
|
-
declare const prodSolution_validateDag: typeof validateDag;
|
|
792
|
-
declare namespace prodSolution {
|
|
793
|
-
export { type prodSolution_ArchitectureNode as ArchitectureNode, type prodSolution_ArchitecturePayload as ArchitecturePayload, type prodSolution_ArchitectureVersion as ArchitectureVersion, type prodSolution_ArchitectureVersionListItem as ArchitectureVersionListItem, type prodSolution_CreateUserWorkspaceRequest as CreateUserWorkspaceRequest, type prodSolution_DagPayload as DagPayload, type prodSolution_DagVersion as DagVersion, type prodSolution_DagVersionListItem as DagVersionListItem, type prodSolution_DslStep as DslStep, type prodSolution_IssueAssigneeType as IssueAssigneeType, type prodSolution_IssuePriority as IssuePriority, type prodSolution_IssueStatus as IssueStatus, type prodSolution_MulticaAgent as MulticaAgent, type prodSolution_MulticaRuntime as MulticaRuntime, type prodSolution_ProdAgentCatalogRole as ProdAgentCatalogRole, type prodSolution_ProdAgentCatalogSolution as ProdAgentCatalogSolution, type prodSolution_ProdAgentPreviewUrl as ProdAgentPreviewUrl, type prodSolution_ProdAgentRecord as ProdAgentRecord, type prodSolution_ProdAgentWorkspaceReference as ProdAgentWorkspaceReference, type prodSolution_ProdSolution as ProdSolution, type prodSolution_ProdUser as ProdUser, type prodSolution_ProdUserTokenStatus as ProdUserTokenStatus, type prodSolution_UserWorkspace as UserWorkspace, type prodSolution_WorkspaceAssistantSession as WorkspaceAssistantSession, type prodSolution_WorkspaceIssue as WorkspaceIssue, type prodSolution_WorkspaceIssueCreateRequest as WorkspaceIssueCreateRequest, type prodSolution_WorkspaceIssueGroup as WorkspaceIssueGroup, type prodSolution_WorkspaceIssueGroupedResponse as WorkspaceIssueGroupedResponse, type prodSolution_WorkspaceIssueListResponse as WorkspaceIssueListResponse, type prodSolution_WorkspaceIssueTaskRun as WorkspaceIssueTaskRun, type prodSolution_WorkspaceIssueTimelineEntry as WorkspaceIssueTimelineEntry, type prodSolution_WorkspaceIssueUsageSummary as WorkspaceIssueUsageSummary, type prodSolution_WorkspaceMember as WorkspaceMember, prodSolution_addWorkspaceMember as addWorkspaceMember, prodSolution_checkProdUserTokenStatus as checkProdUserTokenStatus, prodSolution_connectWorkspaceAgent as connectWorkspaceAgent, prodSolution_createAgent as createAgent, prodSolution_createProdAgent as createProdAgent, prodSolution_createProdSolution as createProdSolution, prodSolution_createUserWorkspace as createUserWorkspace, prodSolution_createWorkspaceIssue as createWorkspaceIssue, prodSolution_deleteArchitectureVersion as deleteArchitectureVersion, prodSolution_deleteProdAgent as deleteProdAgent, prodSolution_deleteProdSolution as deleteProdSolution, prodSolution_deleteVersion as deleteVersion, prodSolution_getAgent as getAgent, prodSolution_getArchitectureVersion as getArchitectureVersion, prodSolution_getCurrentArchitecture as getCurrentArchitecture, prodSolution_getCurrentDag as getCurrentDag, prodSolution_getDagVersion as getDagVersion, prodSolution_getProdAgent as getProdAgent, prodSolution_getProdAgentWorkspaceReferences as getProdAgentWorkspaceReferences, prodSolution_getUserWorkspace as getUserWorkspace, prodSolution_getWorkspaceAssistantSession as getWorkspaceAssistantSession, prodSolution_getWorkspaceIssue as getWorkspaceIssue, prodSolution_getWorkspaceIssueTaskRuns as getWorkspaceIssueTaskRuns, prodSolution_getWorkspaceIssueTimeline as getWorkspaceIssueTimeline, prodSolution_getWorkspaceIssueUsage as getWorkspaceIssueUsage, prodSolution_instantiateProdAgent as instantiateProdAgent, prodSolution_listAgentRuntimes as listAgentRuntimes, prodSolution_listAgents as listAgents, prodSolution_listArchitectureVersions as listArchitectureVersions, prodSolution_listDagVersions as listDagVersions, prodSolution_listProdAgentCatalogSolutions as listProdAgentCatalogSolutions, prodSolution_listProdAgents as listProdAgents, prodSolution_listProdSolutions as listProdSolutions, prodSolution_listProdUsers as listProdUsers, prodSolution_listUserWorkspaces as listUserWorkspaces, prodSolution_listWorkspaceAgents as listWorkspaceAgents, prodSolution_listWorkspaceIssues as listWorkspaceIssues, prodSolution_listWorkspaceMembers as listWorkspaceMembers, prodSolution_publishArchitecture as publishArchitecture, prodSolution_publishDag as publishDag, prodSolution_queryWorkspaceGroupedIssues as queryWorkspaceGroupedIssues, prodSolution_queryWorkspaceIssues as queryWorkspaceIssues, prodSolution_refreshProdUserToken as refreshProdUserToken, prodSolution_removeWorkspaceAgent as removeWorkspaceAgent, prodSolution_removeWorkspaceMember as removeWorkspaceMember, prodSolution_rollbackArchitecture as rollbackArchitecture, prodSolution_rollbackDag as rollbackDag, prodSolution_saveArchitecture as saveArchitecture, prodSolution_saveDag as saveDag, prodSolution_startProdAgentSession as startProdAgentSession, prodSolution_updateProdAgent as updateProdAgent, prodSolution_updateProdSolution as updateProdSolution, prodSolution_updateSessionId as updateSessionId, prodSolution_updateUserWorkspace as updateUserWorkspace, prodSolution_updateWorkspaceIssue as updateWorkspaceIssue, prodSolution_upsertWorkspaceAssistantSession as upsertWorkspaceAssistantSession, prodSolution_validateArchitecture as validateArchitecture, prodSolution_validateDag as validateDag };
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
declare const getUserPreference: (...args: Parameters<UserPreferencesResource["getUserPreference"]>) => Promise<string | null>;
|
|
797
|
-
declare const setUserPreference: (...args: Parameters<UserPreferencesResource["setUserPreference"]>) => Promise<void>;
|
|
798
|
-
declare const getPersistentDefault: (...args: Parameters<UserPreferencesResource["getPersistentDefault"]>) => Promise<boolean>;
|
|
799
|
-
declare const setPersistentDefault: (...args: Parameters<UserPreferencesResource["setPersistentDefault"]>) => Promise<void>;
|
|
800
|
-
declare const resetComputer: (...args: Parameters<UserPreferencesResource["resetComputer"]>) => Promise<void>;
|
|
801
|
-
declare const getComputerUpgradeStatus: (...args: Parameters<UserPreferencesResource["getComputerUpgradeStatus"]>) => Promise<ComputerUpgradeStatusResponse>;
|
|
802
|
-
declare const upgradeComputer: (...args: Parameters<UserPreferencesResource["upgradeComputer"]>) => Promise<UpgradeComputerResponse>;
|
|
803
|
-
|
|
804
|
-
declare const userPreferences_getComputerUpgradeStatus: typeof getComputerUpgradeStatus;
|
|
805
|
-
declare const userPreferences_getPersistentDefault: typeof getPersistentDefault;
|
|
806
|
-
declare const userPreferences_getUserPreference: typeof getUserPreference;
|
|
807
|
-
declare const userPreferences_resetComputer: typeof resetComputer;
|
|
808
|
-
declare const userPreferences_setPersistentDefault: typeof setPersistentDefault;
|
|
809
|
-
declare const userPreferences_setUserPreference: typeof setUserPreference;
|
|
810
|
-
declare const userPreferences_upgradeComputer: typeof upgradeComputer;
|
|
811
|
-
declare namespace userPreferences {
|
|
812
|
-
export { userPreferences_getComputerUpgradeStatus as getComputerUpgradeStatus, userPreferences_getPersistentDefault as getPersistentDefault, userPreferences_getUserPreference as getUserPreference, userPreferences_resetComputer as resetComputer, userPreferences_setPersistentDefault as setPersistentDefault, userPreferences_setUserPreference as setUserPreference, userPreferences_upgradeComputer as upgradeComputer };
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
declare const fetchSolutions: (...args: Parameters<SolutionsResource["fetchSolutions"]>) => Promise<Solution[]>;
|
|
816
|
-
declare const fetchSolutionFile: (...args: Parameters<SolutionsResource["fetchSolutionFile"]>) => Promise<string>;
|
|
817
|
-
declare const fetchSolutionBizRoles: (...args: Parameters<SolutionsResource["fetchSolutionBizRoles"]>) => Promise<BizRole[]>;
|
|
818
|
-
declare const exportSolution: (...args: Parameters<SolutionsResource["exportSolution"]>) => Promise<ExportedSolutionFile>;
|
|
819
|
-
declare const publishSolution: (...args: Parameters<SolutionsResource["publishSolution"]>) => Promise<{
|
|
820
|
-
success: boolean;
|
|
821
|
-
solution_id: string;
|
|
822
|
-
message: string;
|
|
823
|
-
}>;
|
|
824
|
-
|
|
825
|
-
declare const solutions_ExportedSolutionFile: typeof ExportedSolutionFile;
|
|
826
|
-
declare const solutions_SolutionsResource: typeof SolutionsResource;
|
|
827
|
-
declare const solutions_exportSolution: typeof exportSolution;
|
|
828
|
-
declare const solutions_fetchSolutionBizRoles: typeof fetchSolutionBizRoles;
|
|
829
|
-
declare const solutions_fetchSolutionFile: typeof fetchSolutionFile;
|
|
830
|
-
declare const solutions_fetchSolutions: typeof fetchSolutions;
|
|
831
|
-
declare const solutions_publishSolution: typeof publishSolution;
|
|
832
|
-
declare namespace solutions {
|
|
833
|
-
export { solutions_ExportedSolutionFile as ExportedSolutionFile, solutions_SolutionsResource as SolutionsResource, solutions_exportSolution as exportSolution, solutions_fetchSolutionBizRoles as fetchSolutionBizRoles, solutions_fetchSolutionFile as fetchSolutionFile, solutions_fetchSolutions as fetchSolutions, solutions_publishSolution as publishSolution };
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
declare const listQuickScenarios: (...args: Parameters<ScenariosResource["listQuickScenarios"]>) => Promise<QuickScenario[]>;
|
|
837
|
-
declare const createQuickScenario: (...args: Parameters<ScenariosResource["createQuickScenario"]>) => Promise<QuickScenario>;
|
|
838
|
-
declare const deleteQuickScenario: (...args: Parameters<ScenariosResource["deleteQuickScenario"]>) => Promise<{
|
|
839
|
-
ok: boolean;
|
|
840
|
-
}>;
|
|
841
|
-
declare const updateQuickScenario: (...args: Parameters<ScenariosResource["updateQuickScenario"]>) => Promise<QuickScenario>;
|
|
842
|
-
declare const listBladeHubScenarioResources: (...args: Parameters<ScenariosResource["listBladeHubScenarioResources"]>) => Promise<BladeHubScenarioResource[]>;
|
|
843
|
-
|
|
844
|
-
declare const scenarios_BladeHubScenarioResource: typeof BladeHubScenarioResource;
|
|
845
|
-
declare const scenarios_CreateQuickScenarioPayload: typeof CreateQuickScenarioPayload;
|
|
846
|
-
declare const scenarios_PreviewUrlItem: typeof PreviewUrlItem;
|
|
847
|
-
declare const scenarios_QuickScenario: typeof QuickScenario;
|
|
848
|
-
declare const scenarios_ScenariosResource: typeof ScenariosResource;
|
|
849
|
-
declare const scenarios_UpdateQuickScenarioPayload: typeof UpdateQuickScenarioPayload;
|
|
850
|
-
declare const scenarios_createQuickScenario: typeof createQuickScenario;
|
|
851
|
-
declare const scenarios_deleteQuickScenario: typeof deleteQuickScenario;
|
|
852
|
-
declare const scenarios_listBladeHubScenarioResources: typeof listBladeHubScenarioResources;
|
|
853
|
-
declare const scenarios_listQuickScenarios: typeof listQuickScenarios;
|
|
854
|
-
declare const scenarios_updateQuickScenario: typeof updateQuickScenario;
|
|
855
|
-
declare namespace scenarios {
|
|
856
|
-
export { scenarios_BladeHubScenarioResource as BladeHubScenarioResource, scenarios_CreateQuickScenarioPayload as CreateQuickScenarioPayload, scenarios_PreviewUrlItem as PreviewUrlItem, scenarios_QuickScenario as QuickScenario, scenarios_ScenariosResource as ScenariosResource, scenarios_UpdateQuickScenarioPayload as UpdateQuickScenarioPayload, scenarios_createQuickScenario as createQuickScenario, scenarios_deleteQuickScenario as deleteQuickScenario, scenarios_listBladeHubScenarioResources as listBladeHubScenarioResources, scenarios_listQuickScenarios as listQuickScenarios, scenarios_updateQuickScenario as updateQuickScenario };
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
declare const ScheduledTask: arktype_internal_variants_object_ts.ObjectType<{
|
|
860
|
-
id: string;
|
|
861
|
-
title: string;
|
|
862
|
-
prompt: string;
|
|
863
|
-
cron: string;
|
|
864
|
-
timezone: string;
|
|
865
|
-
enabled: boolean;
|
|
866
|
-
expires_at: string | null;
|
|
867
|
-
skip_confirmations: boolean;
|
|
868
|
-
model: string | null;
|
|
869
|
-
next_run_at: string | null;
|
|
870
|
-
last_run_at: string | null;
|
|
871
|
-
created_at: string;
|
|
872
|
-
updated_at: string;
|
|
873
|
-
}, {}>;
|
|
874
|
-
type ScheduledTask = typeof ScheduledTask.infer;
|
|
875
|
-
declare const ScheduledTaskRun: arktype_internal_variants_object_ts.ObjectType<{
|
|
876
|
-
id: string;
|
|
877
|
-
task_id: string;
|
|
878
|
-
session_id: string | null;
|
|
879
|
-
status: string;
|
|
880
|
-
error: string | null;
|
|
881
|
-
triggered_at: string;
|
|
882
|
-
finished_at: string | null;
|
|
883
|
-
}, {}>;
|
|
884
|
-
type ScheduledTaskRun = typeof ScheduledTaskRun.infer;
|
|
885
|
-
declare const ScheduledTaskCalendarItem: arktype_internal_variants_object_ts.ObjectType<{
|
|
886
|
-
task_id: string;
|
|
887
|
-
title: string;
|
|
888
|
-
occurrences: string[];
|
|
889
|
-
}, {}>;
|
|
890
|
-
type ScheduledTaskCalendarItem = typeof ScheduledTaskCalendarItem.infer;
|
|
891
|
-
|
|
892
|
-
interface ScheduledTaskCreatePayload {
|
|
893
|
-
title: string;
|
|
894
|
-
prompt: string;
|
|
895
|
-
cron: string;
|
|
896
|
-
timezone?: string;
|
|
897
|
-
enabled?: boolean;
|
|
898
|
-
expires_at?: string | null;
|
|
899
|
-
skip_confirmations?: boolean;
|
|
900
|
-
model?: string | null;
|
|
901
|
-
}
|
|
902
|
-
type ScheduledTaskUpdatePayload = Partial<ScheduledTaskCreatePayload>;
|
|
903
|
-
declare function listScheduledTasks(): Promise<ScheduledTask[]>;
|
|
904
|
-
declare function createScheduledTask(payload: ScheduledTaskCreatePayload): Promise<ScheduledTask>;
|
|
905
|
-
declare function getScheduledTask(id: string): Promise<ScheduledTask>;
|
|
906
|
-
declare function updateScheduledTask(id: string, payload: ScheduledTaskUpdatePayload): Promise<ScheduledTask>;
|
|
907
|
-
declare function deleteScheduledTask(id: string): Promise<void>;
|
|
908
|
-
declare function startScheduledTask(id: string): Promise<ScheduledTask>;
|
|
909
|
-
declare function stopScheduledTask(id: string): Promise<ScheduledTask>;
|
|
910
|
-
declare function listScheduledTaskRuns(id: string): Promise<ScheduledTaskRun[]>;
|
|
911
|
-
declare function getScheduledTaskCalendar(params: {
|
|
912
|
-
from: string;
|
|
913
|
-
to: string;
|
|
914
|
-
}): Promise<ScheduledTaskCalendarItem[]>;
|
|
915
|
-
|
|
916
|
-
type scheduledTasks_ScheduledTaskCreatePayload = ScheduledTaskCreatePayload;
|
|
917
|
-
type scheduledTasks_ScheduledTaskUpdatePayload = ScheduledTaskUpdatePayload;
|
|
918
|
-
declare const scheduledTasks_createScheduledTask: typeof createScheduledTask;
|
|
919
|
-
declare const scheduledTasks_deleteScheduledTask: typeof deleteScheduledTask;
|
|
920
|
-
declare const scheduledTasks_getScheduledTask: typeof getScheduledTask;
|
|
921
|
-
declare const scheduledTasks_getScheduledTaskCalendar: typeof getScheduledTaskCalendar;
|
|
922
|
-
declare const scheduledTasks_listScheduledTaskRuns: typeof listScheduledTaskRuns;
|
|
923
|
-
declare const scheduledTasks_listScheduledTasks: typeof listScheduledTasks;
|
|
924
|
-
declare const scheduledTasks_startScheduledTask: typeof startScheduledTask;
|
|
925
|
-
declare const scheduledTasks_stopScheduledTask: typeof stopScheduledTask;
|
|
926
|
-
declare const scheduledTasks_updateScheduledTask: typeof updateScheduledTask;
|
|
927
|
-
declare namespace scheduledTasks {
|
|
928
|
-
export { type scheduledTasks_ScheduledTaskCreatePayload as ScheduledTaskCreatePayload, type scheduledTasks_ScheduledTaskUpdatePayload as ScheduledTaskUpdatePayload, scheduledTasks_createScheduledTask as createScheduledTask, scheduledTasks_deleteScheduledTask as deleteScheduledTask, scheduledTasks_getScheduledTask as getScheduledTask, scheduledTasks_getScheduledTaskCalendar as getScheduledTaskCalendar, scheduledTasks_listScheduledTaskRuns as listScheduledTaskRuns, scheduledTasks_listScheduledTasks as listScheduledTasks, scheduledTasks_startScheduledTask as startScheduledTask, scheduledTasks_stopScheduledTask as stopScheduledTask, scheduledTasks_updateScheduledTask as updateScheduledTask };
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
declare const listSoftware: (...args: Parameters<SoftwareFactoryResource["listSoftware"]>) => Promise<SoftwareFactorySoftware[]>;
|
|
932
|
-
declare const getSoftware: (...args: Parameters<SoftwareFactoryResource["getSoftware"]>) => Promise<SoftwareFactorySoftware>;
|
|
933
|
-
declare const deleteSoftware: (...args: Parameters<SoftwareFactoryResource["deleteSoftware"]>) => Promise<{
|
|
934
|
-
ok: boolean;
|
|
935
|
-
}>;
|
|
936
|
-
declare const createSoftware: (...args: Parameters<SoftwareFactoryResource["createSoftware"]>) => Promise<SoftwareFactorySoftware>;
|
|
937
|
-
declare const updateSoftware: (...args: Parameters<SoftwareFactoryResource["updateSoftware"]>) => Promise<SoftwareFactorySoftware>;
|
|
938
|
-
declare const bindTopicModuleSession: (...args: Parameters<SoftwareFactoryResource["bindTopicModuleSession"]>) => Promise<SoftwareFactorySoftware>;
|
|
939
|
-
declare const submitModuleForReview: (...args: Parameters<SoftwareFactoryResource["submitModuleForReview"]>) => Promise<SoftwareFactoryTopicModule>;
|
|
940
|
-
declare const completeModule: (...args: Parameters<SoftwareFactoryResource["completeModule"]>) => Promise<SoftwareFactoryTopicModule>;
|
|
941
|
-
declare const reopenModule: (...args: Parameters<SoftwareFactoryResource["reopenModule"]>) => Promise<SoftwareFactoryTopicModule>;
|
|
942
|
-
declare const listSharedFiles: (...args: Parameters<SoftwareFactoryResource["listSharedFiles"]>) => Promise<SoftwareFactorySharedFile[]>;
|
|
943
|
-
declare const createSharedFile: (...args: Parameters<SoftwareFactoryResource["createSharedFile"]>) => Promise<SoftwareFactorySharedFile>;
|
|
944
|
-
declare const uploadSoftwareDocuments: (...args: Parameters<SoftwareFactoryResource["uploadSoftwareDocuments"]>) => Promise<{
|
|
945
|
-
uploaded: string[];
|
|
946
|
-
failed: string[];
|
|
947
|
-
}>;
|
|
948
|
-
declare const ensureIssueSession: (...args: Parameters<SoftwareFactoryResource["ensureIssueSession"]>) => Promise<{
|
|
949
|
-
session_id: string;
|
|
950
|
-
}>;
|
|
951
|
-
declare const listCodingTasks: (...args: Parameters<SoftwareFactoryResource["listCodingTasks"]>) => Promise<{
|
|
952
|
-
topics: CodingTaskTopic[];
|
|
953
|
-
}>;
|
|
954
|
-
declare const startCoding: (...args: Parameters<SoftwareFactoryResource["startCoding"]>) => Promise<{
|
|
955
|
-
session_id: string;
|
|
956
|
-
topic_name: string;
|
|
957
|
-
task_names: string[];
|
|
958
|
-
}>;
|
|
959
|
-
declare const readShareFileContent: (...args: Parameters<SoftwareFactoryResource["readShareFileContent"]>) => Promise<{
|
|
960
|
-
content: string;
|
|
961
|
-
}>;
|
|
962
|
-
declare const syncShare: (...args: Parameters<SoftwareFactoryResource["syncShare"]>) => Promise<{
|
|
963
|
-
synced_sessions: string[];
|
|
964
|
-
}>;
|
|
965
|
-
declare const listTopics: (...args: Parameters<SoftwareFactoryResource["listTopics"]>) => Promise<SoftwareFactoryTopic[]>;
|
|
966
|
-
declare const replaceTopics: (...args: Parameters<SoftwareFactoryResource["replaceTopics"]>) => Promise<SoftwareFactoryTopic[]>;
|
|
967
|
-
declare const getFactoryExportUrl: (...args: Parameters<SoftwareFactoryResource["getFactoryExportUrl"]>) => string;
|
|
968
|
-
declare const importFactory: (...args: Parameters<SoftwareFactoryResource["importFactory"]>) => Promise<{
|
|
969
|
-
software_id: number;
|
|
970
|
-
session_id_map: Record<string, string>;
|
|
971
|
-
}>;
|
|
972
|
-
|
|
973
|
-
declare const softwareFactory_CodingTask: typeof CodingTask;
|
|
974
|
-
declare const softwareFactory_CodingTaskTopic: typeof CodingTaskTopic;
|
|
975
|
-
declare const softwareFactory_CreateSoftwareFactorySharedFilePayload: typeof CreateSoftwareFactorySharedFilePayload;
|
|
976
|
-
declare const softwareFactory_CreateSoftwareFactorySoftwarePayload: typeof CreateSoftwareFactorySoftwarePayload;
|
|
977
|
-
declare const softwareFactory_SoftwareFactoryModuleBlueprint: typeof SoftwareFactoryModuleBlueprint;
|
|
978
|
-
declare const softwareFactory_SoftwareFactoryResource: typeof SoftwareFactoryResource;
|
|
979
|
-
declare const softwareFactory_SoftwareFactorySharedFile: typeof SoftwareFactorySharedFile;
|
|
980
|
-
declare const softwareFactory_SoftwareFactorySoftware: typeof SoftwareFactorySoftware;
|
|
981
|
-
declare const softwareFactory_SoftwareFactoryTopic: typeof SoftwareFactoryTopic;
|
|
982
|
-
declare const softwareFactory_SoftwareFactoryTopicModule: typeof SoftwareFactoryTopicModule;
|
|
983
|
-
declare const softwareFactory_bindTopicModuleSession: typeof bindTopicModuleSession;
|
|
984
|
-
declare const softwareFactory_completeModule: typeof completeModule;
|
|
985
|
-
declare const softwareFactory_createSharedFile: typeof createSharedFile;
|
|
986
|
-
declare const softwareFactory_createSoftware: typeof createSoftware;
|
|
987
|
-
declare const softwareFactory_deleteSoftware: typeof deleteSoftware;
|
|
988
|
-
declare const softwareFactory_ensureIssueSession: typeof ensureIssueSession;
|
|
989
|
-
declare const softwareFactory_getFactoryExportUrl: typeof getFactoryExportUrl;
|
|
990
|
-
declare const softwareFactory_getSoftware: typeof getSoftware;
|
|
991
|
-
declare const softwareFactory_importFactory: typeof importFactory;
|
|
992
|
-
declare const softwareFactory_listCodingTasks: typeof listCodingTasks;
|
|
993
|
-
declare const softwareFactory_listSharedFiles: typeof listSharedFiles;
|
|
994
|
-
declare const softwareFactory_listSoftware: typeof listSoftware;
|
|
995
|
-
declare const softwareFactory_listTopics: typeof listTopics;
|
|
996
|
-
declare const softwareFactory_readShareFileContent: typeof readShareFileContent;
|
|
997
|
-
declare const softwareFactory_reopenModule: typeof reopenModule;
|
|
998
|
-
declare const softwareFactory_replaceTopics: typeof replaceTopics;
|
|
999
|
-
declare const softwareFactory_startCoding: typeof startCoding;
|
|
1000
|
-
declare const softwareFactory_submitModuleForReview: typeof submitModuleForReview;
|
|
1001
|
-
declare const softwareFactory_syncShare: typeof syncShare;
|
|
1002
|
-
declare const softwareFactory_updateSoftware: typeof updateSoftware;
|
|
1003
|
-
declare const softwareFactory_uploadSoftwareDocuments: typeof uploadSoftwareDocuments;
|
|
1004
|
-
declare namespace softwareFactory {
|
|
1005
|
-
export { softwareFactory_CodingTask as CodingTask, softwareFactory_CodingTaskTopic as CodingTaskTopic, softwareFactory_CreateSoftwareFactorySharedFilePayload as CreateSoftwareFactorySharedFilePayload, softwareFactory_CreateSoftwareFactorySoftwarePayload as CreateSoftwareFactorySoftwarePayload, softwareFactory_SoftwareFactoryModuleBlueprint as SoftwareFactoryModuleBlueprint, softwareFactory_SoftwareFactoryResource as SoftwareFactoryResource, softwareFactory_SoftwareFactorySharedFile as SoftwareFactorySharedFile, softwareFactory_SoftwareFactorySoftware as SoftwareFactorySoftware, softwareFactory_SoftwareFactoryTopic as SoftwareFactoryTopic, softwareFactory_SoftwareFactoryTopicModule as SoftwareFactoryTopicModule, softwareFactory_bindTopicModuleSession as bindTopicModuleSession, softwareFactory_completeModule as completeModule, softwareFactory_createSharedFile as createSharedFile, softwareFactory_createSoftware as createSoftware, softwareFactory_deleteSoftware as deleteSoftware, softwareFactory_ensureIssueSession as ensureIssueSession, softwareFactory_getFactoryExportUrl as getFactoryExportUrl, softwareFactory_getSoftware as getSoftware, softwareFactory_importFactory as importFactory, softwareFactory_listCodingTasks as listCodingTasks, softwareFactory_listSharedFiles as listSharedFiles, softwareFactory_listSoftware as listSoftware, softwareFactory_listTopics as listTopics, softwareFactory_readShareFileContent as readShareFileContent, softwareFactory_reopenModule as reopenModule, softwareFactory_replaceTopics as replaceTopics, softwareFactory_startCoding as startCoding, softwareFactory_submitModuleForReview as submitModuleForReview, softwareFactory_syncShare as syncShare, softwareFactory_updateSoftware as updateSoftware, softwareFactory_uploadSoftwareDocuments as uploadSoftwareDocuments };
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
declare const createResourceApi: <T extends Record<string, unknown>>(apiType: string) => ResourceApi<T>;
|
|
1009
|
-
declare const listSkillOrgs: (...args: Parameters<RegistryResource["listSkillOrgs"]>) => Promise<SkillOrgListResponse>;
|
|
1010
|
-
declare const publishSkill: (...args: Parameters<RegistryResource["publishSkill"]>) => Promise<{
|
|
1011
|
-
success: boolean;
|
|
1012
|
-
skill_id: string;
|
|
1013
|
-
}>;
|
|
1014
|
-
declare const databaseApi: ResourceApi<{
|
|
1015
|
-
id: string;
|
|
1016
|
-
name: string;
|
|
1017
|
-
description: string;
|
|
1018
|
-
tags: string[];
|
|
1019
|
-
type: "data";
|
|
1020
|
-
subtype: "db";
|
|
1021
|
-
driver: "mysql" | "postgresql";
|
|
1022
|
-
config: Record<string, unknown>;
|
|
1023
|
-
}>;
|
|
1024
|
-
declare const toolApi: ResourceApi<{
|
|
1025
|
-
id: string;
|
|
1026
|
-
name: string;
|
|
1027
|
-
description: string;
|
|
1028
|
-
tags: string[];
|
|
1029
|
-
type: "tools";
|
|
1030
|
-
subtype: "mcp" | "http";
|
|
1031
|
-
config: Record<string, unknown>;
|
|
1032
|
-
}>;
|
|
1033
|
-
declare const knowledgeApi: ResourceApi<{
|
|
1034
|
-
id: string;
|
|
1035
|
-
name: string;
|
|
1036
|
-
description: string;
|
|
1037
|
-
tags: string[];
|
|
1038
|
-
type: "knowledge";
|
|
1039
|
-
subtype: "dify";
|
|
1040
|
-
config: Record<string, unknown>;
|
|
1041
|
-
}>;
|
|
1042
|
-
declare const agentApi: ResourceApi<{
|
|
1043
|
-
id: string;
|
|
1044
|
-
name: string;
|
|
1045
|
-
description: string;
|
|
1046
|
-
tags: string[];
|
|
1047
|
-
type: "agent";
|
|
1048
|
-
subtype: "dify";
|
|
1049
|
-
config: Record<string, unknown>;
|
|
1050
|
-
}>;
|
|
1051
|
-
|
|
1052
|
-
type WorkspaceFilesChangedEvent = {
|
|
1053
|
-
sessionId: string;
|
|
1054
|
-
filePath?: string;
|
|
1055
|
-
};
|
|
1056
|
-
type AgentBoardBoardTaskChangedEvent = {
|
|
1057
|
-
[key: string]: any;
|
|
1058
|
-
};
|
|
1059
|
-
type AgentBoardFileOpEvent = {
|
|
1060
|
-
project_id: number;
|
|
1061
|
-
session_id: string;
|
|
1062
|
-
tool_call_id?: string | null;
|
|
1063
|
-
action: string;
|
|
1064
|
-
file_path: string;
|
|
1065
|
-
description?: string | null;
|
|
1066
|
-
content_preview?: string | null;
|
|
1067
|
-
final_content?: string | null;
|
|
1068
|
-
content_delta?: boolean | null;
|
|
1069
|
-
is_final?: boolean | null;
|
|
1070
|
-
created_at: string;
|
|
1071
|
-
};
|
|
1072
|
-
declare function setOnWorkspaceFilesChanged(fn: ((event: WorkspaceFilesChangedEvent) => void) | null): void;
|
|
1073
|
-
declare class AgentSocket {
|
|
1074
|
-
private client;
|
|
1075
|
-
private socket;
|
|
1076
|
-
private subscribedSession;
|
|
1077
|
-
private readonly attachedSessions;
|
|
1078
|
-
private readonly previewArtifactsByToolCall;
|
|
1079
|
-
private readonly deliveredBridgeKeys;
|
|
1080
|
-
private readonly pendingReplayMessages;
|
|
1081
|
-
private readonly pendingReplayModes;
|
|
1082
|
-
private readonly oomNotifiedKeys;
|
|
1083
|
-
private readonly pendingTurnPatches;
|
|
1084
|
-
private readonly joinedSessions;
|
|
1085
|
-
private readonly requestedJoins;
|
|
1086
|
-
private readonly pendingJoins;
|
|
1087
|
-
private readonly recentChatEndAt;
|
|
1088
|
-
private readonly boardProjectRefCounts;
|
|
1089
|
-
private frontendTelemetryCounter;
|
|
1090
|
-
private patchFlushHandle;
|
|
1091
|
-
private patchFlushCancel;
|
|
1092
|
-
private readonly projectionBuilder;
|
|
1093
|
-
constructor(client: BladeClient);
|
|
1094
|
-
private _ensureConnected;
|
|
1095
|
-
private _resolveSessionId;
|
|
1096
|
-
private _reportFrontendTelemetry;
|
|
1097
|
-
private _queueTurnPatch;
|
|
1098
|
-
private _scheduleTurnPatchFlush;
|
|
1099
|
-
private _flushPendingTurnPatches;
|
|
1100
|
-
private _bindStoreHandlers;
|
|
1101
|
-
private _bindConnectionHandlers;
|
|
1102
|
-
private _applyProjectionSideEffects;
|
|
1103
|
-
private _notifySandboxOom;
|
|
1104
|
-
private _syncSessionTurnsFromHistory;
|
|
1105
|
-
private _applySystemNotification;
|
|
1106
|
-
subscribe(sessionId: string): void;
|
|
1107
|
-
subscribeAgentBoardProject(projectId: string | number): void;
|
|
1108
|
-
unsubscribeAgentBoardProject(projectId: string | number): void;
|
|
1109
|
-
onAgentBoardTaskChanged(handler: (data: AgentBoardBoardTaskChangedEvent) => void): () => void;
|
|
1110
|
-
onAgentBoardFileOp(handler: (data: AgentBoardFileOpEvent) => void): () => void;
|
|
1111
|
-
/**
|
|
1112
|
-
* 订阅 session:updated(智能体意图、状态等会话属性变更)。全局 handler 只会
|
|
1113
|
-
* patch 已在 useSessionStore 列表里的会话;看板任务这类不在列表里的
|
|
1114
|
-
* 会话,由调用方通过本方法自行消费属性更新。
|
|
1115
|
-
*/
|
|
1116
|
-
onSessionUpdated(handler: (data: {
|
|
1117
|
-
session_id?: string;
|
|
1118
|
-
intent?: string;
|
|
1119
|
-
status?: string;
|
|
1120
|
-
}) => void): () => void;
|
|
1121
|
-
unsubscribe(): void;
|
|
1122
|
-
/**
|
|
1123
|
-
* 附加订阅:仅把当前 sid 加进 sessionId 的 room,不切 subscribedSession,
|
|
1124
|
-
* 也不清空当前会话的 artifact/card state。用于"并行拟制"这类场景 ——
|
|
1125
|
-
* 创建 N 个后台 session 后需要收到它们的 chat:end / task:updated 才能让
|
|
1126
|
-
* 成果表里那几条卡片状态流转到"已完成";缺失订阅时广播事件永远到不了
|
|
1127
|
-
* 前端,卡片就会停留在乐观写入的"运行中"态。
|
|
1128
|
-
*
|
|
1129
|
-
* 幂等:后端 session:subscribe handler 只做 enter_room,重复 emit 无副作用。
|
|
1130
|
-
* 同时把 sessionId 记到 attachedSessions,连接断开重连时一并重新订阅,
|
|
1131
|
-
* 避免长会话期间断网后再回来时丢掉该 session 的 turn 事件。
|
|
1132
|
-
*/
|
|
1133
|
-
attachSession(sessionId: string): void;
|
|
1134
|
-
private _ensureJoined;
|
|
1135
|
-
private _refreshRunningState;
|
|
1136
|
-
private _shouldWaitForJoinBeforeSend;
|
|
1137
|
-
send(sessionId: string, message: MessageContent, mode?: string, askuserAnswer?: Record<string, unknown>, extras?: {
|
|
1138
|
-
model?: string;
|
|
1139
|
-
thinkingOverride?: boolean;
|
|
1140
|
-
whatif?: {
|
|
1141
|
-
from_step: number;
|
|
1142
|
-
quotes: Array<Record<string, unknown>>;
|
|
1143
|
-
deprecate_entry_ids: string[];
|
|
1144
|
-
};
|
|
1145
|
-
replay_decision?: "keep_replay" | "continue_replay";
|
|
1146
|
-
}): Promise<void>;
|
|
1147
|
-
private _ensureSessionIdleBeforeSend;
|
|
1148
|
-
/**
|
|
1149
|
-
* 在 agent loop 运行期间追加补充消息。
|
|
1150
|
-
* 消息会在下一轮 LLM 调用前以 user-supplement 形式注入。
|
|
1151
|
-
*/
|
|
1152
|
-
append(sessionId: string, message: string): void;
|
|
1153
|
-
stop(sessionId: string): Promise<Record<string, unknown>>;
|
|
1154
|
-
compact(sessionId: string): Promise<Record<string, unknown>>;
|
|
1155
|
-
reconnect(): void;
|
|
1156
|
-
disconnect(): void;
|
|
1157
|
-
destroy(): void;
|
|
1158
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
|
1159
|
-
off(event: string, listener: (...args: any[]) => void): this;
|
|
1160
|
-
emit(event: string, data?: any): this;
|
|
1161
|
-
getSubscribedSession(): string | null;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
declare let agentSocket: AgentSocket | null;
|
|
1165
|
-
declare function getSocket(): AgentSocket;
|
|
1166
|
-
|
|
1167
|
-
declare function useChat(sessionId: string): {
|
|
1168
|
-
messages: ChatMessage[];
|
|
1169
|
-
isStreaming: boolean;
|
|
1170
|
-
isStopping: boolean;
|
|
1171
|
-
send: (msg: MessageContent, mode?: string, askuserAnswer?: Record<string, unknown>, options?: {
|
|
1172
|
-
model?: string;
|
|
1173
|
-
thinkingOverride?: boolean;
|
|
1174
|
-
}) => void;
|
|
1175
|
-
append: (msg: string) => void;
|
|
1176
|
-
stop: () => Promise<void>;
|
|
1177
|
-
};
|
|
1178
|
-
|
|
1179
|
-
declare function useBackgroundTasks(sessionId: string | null | undefined): {
|
|
1180
|
-
data: BackgroundTask[];
|
|
1181
|
-
loading: boolean;
|
|
1182
|
-
error: Error | null;
|
|
1183
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BackgroundTask[], Error>>;
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
declare function useGisState(sessionId: string | null | undefined): {
|
|
1187
|
-
data: {
|
|
1188
|
-
goals: GisGoal[];
|
|
1189
|
-
resources: GisResource$1[];
|
|
1190
|
-
targets: GisTarget[];
|
|
1191
|
-
};
|
|
1192
|
-
loading: boolean;
|
|
1193
|
-
error: Error | null;
|
|
1194
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<GisState, Error>>;
|
|
1195
|
-
};
|
|
1196
|
-
declare function useRuntimeConfig(): {
|
|
1197
|
-
data: RuntimeConfig;
|
|
1198
|
-
loading: boolean;
|
|
1199
|
-
error: Error | null;
|
|
1200
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<RuntimeConfig, Error>>;
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
declare function useCheckSkillFile(sessionId: string | null): {
|
|
1204
|
-
exists: boolean;
|
|
1205
|
-
refetch: () => Promise<void>;
|
|
1206
|
-
};
|
|
1207
|
-
|
|
1208
|
-
declare function useCheckSolutionFile(sessionId: string | null): {
|
|
1209
|
-
exists: boolean;
|
|
1210
|
-
refetch: () => Promise<void>;
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
declare function useGlobalSkillStats(): {
|
|
1214
|
-
data: GlobalSkillStats;
|
|
1215
|
-
loading: boolean;
|
|
1216
|
-
error: Error | null;
|
|
1217
|
-
};
|
|
1218
|
-
|
|
1219
|
-
declare function useInputHistory(sessionId: string | null): {
|
|
1220
|
-
addEntry: (value: string) => void;
|
|
1221
|
-
navigateUp: (currentDraft?: string) => string | null;
|
|
1222
|
-
navigateDown: () => string | null;
|
|
1223
|
-
currentEntry: string;
|
|
1224
|
-
isNavigating: boolean;
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
declare function useModelConfig(): {
|
|
1228
|
-
models: ModelOption[];
|
|
1229
|
-
defaultModel: string;
|
|
1230
|
-
isLoading: boolean;
|
|
1231
|
-
};
|
|
1232
|
-
declare function usePreferredModel(): {
|
|
1233
|
-
preferredModel: string | null;
|
|
1234
|
-
setPreferredModel: (modelId: string) => void;
|
|
1235
|
-
};
|
|
1236
|
-
declare function useThinkingPreference(): {
|
|
1237
|
-
thinkingEnabled: boolean;
|
|
1238
|
-
thinkingPreference: boolean | null;
|
|
1239
|
-
preferenceLoaded: boolean;
|
|
1240
|
-
setThinkingEnabled: (enabled: boolean) => void;
|
|
1241
|
-
isLoading: boolean;
|
|
1242
|
-
};
|
|
1243
|
-
|
|
1244
|
-
declare function useResolvedModel(activeSessionModel?: string | null): {
|
|
1245
|
-
resolvedModel: string;
|
|
1246
|
-
hasAvailableModel: boolean;
|
|
1247
|
-
isLoading: boolean;
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
declare function useSession(): {
|
|
1251
|
-
sessions: SessionInfo[];
|
|
1252
|
-
activeSessionId: string | null;
|
|
1253
|
-
activeSession: SessionInfo | null;
|
|
1254
|
-
loading: boolean;
|
|
1255
|
-
fetchAllSessions: () => Promise<void>;
|
|
1256
|
-
createSession: (intent?: string) => Promise<string>;
|
|
1257
|
-
setActiveSession: (id: string) => void;
|
|
1258
|
-
deleteSession: (id: string) => Promise<void>;
|
|
1259
|
-
};
|
|
1260
|
-
|
|
1261
|
-
declare function useSkills(): {
|
|
1262
|
-
data: SkillSummary[];
|
|
1263
|
-
loading: boolean;
|
|
1264
|
-
error: Error | null;
|
|
1265
|
-
};
|
|
1266
|
-
|
|
1267
|
-
interface VoiceInputError {
|
|
1268
|
-
title: string;
|
|
1269
|
-
description?: string;
|
|
1270
|
-
}
|
|
1271
|
-
declare function buildVoiceInputUnavailableError(): VoiceInputError;
|
|
1272
|
-
|
|
1273
|
-
type VoiceInputStatus = "idle" | "starting" | "recording" | "stopping" | "error";
|
|
1274
|
-
interface UseVoiceInputOptions {
|
|
1275
|
-
workletUrl: string;
|
|
1276
|
-
onPartial?: (text: string) => void;
|
|
1277
|
-
onFinal?: (text: string) => void;
|
|
1278
|
-
onError?: (error: VoiceInputError) => void;
|
|
1279
|
-
}
|
|
1280
|
-
interface UseVoiceInputResult {
|
|
1281
|
-
status: VoiceInputStatus;
|
|
1282
|
-
error: string | null;
|
|
1283
|
-
/** 当前音频 RMS 幅度,0..1,仅在 recording 期间有意义,用于驱动波形动画 */
|
|
1284
|
-
level: number;
|
|
1285
|
-
start: () => Promise<void>;
|
|
1286
|
-
stop: () => Promise<void>;
|
|
1287
|
-
}
|
|
1288
|
-
declare function useVoiceInput(options: UseVoiceInputOptions): UseVoiceInputResult;
|
|
1289
|
-
|
|
1290
|
-
interface UseTiptapVoiceInputOptions {
|
|
1291
|
-
/** Tiptap editor ref;null 时 voice 回调会静默丢弃 */
|
|
1292
|
-
editorRef: {
|
|
1293
|
-
current: Editor | null;
|
|
1294
|
-
};
|
|
1295
|
-
/** AudioWorklet processor 文件 URL */
|
|
1296
|
-
workletUrl: string;
|
|
1297
|
-
/** 外部可选回调:识别错误时拿 message */
|
|
1298
|
-
onError?: (error: VoiceInputError) => void;
|
|
1299
|
-
}
|
|
1300
|
-
interface UseTiptapVoiceInputResult {
|
|
1301
|
-
status: VoiceInputStatus;
|
|
1302
|
-
isRecording: boolean;
|
|
1303
|
-
error: string | null;
|
|
1304
|
-
/** 当前音频 RMS 幅度,0..1,仅在 recording 期间有意义,用于驱动波形动画 */
|
|
1305
|
-
level: number;
|
|
1306
|
-
toggle: () => void;
|
|
1307
|
-
stop: () => Promise<void>;
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* Tiptap 编辑器里的语音输入集成:
|
|
1311
|
-
* - partial 段用 `insertContentAt({from,to}, text)` 替换一个可变 range
|
|
1312
|
-
* - final 段落定后把 range 推进到末尾,下一段重新起
|
|
1313
|
-
* - 录音期间调用 `editor.setEditable(false)` 锁定键盘输入
|
|
1314
|
-
*/
|
|
1315
|
-
declare function useTiptapVoiceInput(options: UseTiptapVoiceInputOptions): UseTiptapVoiceInputResult;
|
|
1316
|
-
|
|
1317
|
-
interface VoiceWaveformProps {
|
|
1318
|
-
/** RMS 幅度 0..1 */
|
|
1319
|
-
level: number;
|
|
1320
|
-
/** 线条颜色;默认跟随 currentColor */
|
|
1321
|
-
color?: string;
|
|
1322
|
-
/** 按钮直径参考值,决定波形尺寸 */
|
|
1323
|
-
size?: number;
|
|
1324
|
-
}
|
|
1325
|
-
declare function VoiceWaveform({ level, color, size }: VoiceWaveformProps): react_jsx_runtime.JSX.Element;
|
|
1326
|
-
|
|
1327
|
-
declare function useToolProviders(): {
|
|
1328
|
-
data: {
|
|
1329
|
-
id: string;
|
|
1330
|
-
name: string;
|
|
1331
|
-
description: string;
|
|
1332
|
-
tags: string[];
|
|
1333
|
-
type: "tools";
|
|
1334
|
-
subtype: "mcp" | "http";
|
|
1335
|
-
config: Record<string, unknown>;
|
|
1336
|
-
}[];
|
|
1337
|
-
loading: boolean;
|
|
1338
|
-
error: Error | null;
|
|
1339
|
-
};
|
|
1340
|
-
declare function useDataSources(): {
|
|
1341
|
-
data: {
|
|
1342
|
-
id: string;
|
|
1343
|
-
name: string;
|
|
1344
|
-
description: string;
|
|
1345
|
-
tags: string[];
|
|
1346
|
-
type: "data";
|
|
1347
|
-
subtype: "db";
|
|
1348
|
-
driver: "mysql" | "postgresql";
|
|
1349
|
-
config: Record<string, unknown>;
|
|
1350
|
-
}[];
|
|
1351
|
-
loading: boolean;
|
|
1352
|
-
error: Error | null;
|
|
1353
|
-
};
|
|
1354
|
-
declare function useKnowledgeBases(): {
|
|
1355
|
-
data: {
|
|
1356
|
-
id: string;
|
|
1357
|
-
name: string;
|
|
1358
|
-
description: string;
|
|
1359
|
-
tags: string[];
|
|
1360
|
-
type: "knowledge";
|
|
1361
|
-
subtype: "dify";
|
|
1362
|
-
config: Record<string, unknown>;
|
|
1363
|
-
}[];
|
|
1364
|
-
loading: boolean;
|
|
1365
|
-
error: Error | null;
|
|
1366
|
-
};
|
|
1367
|
-
declare function useAgents(): {
|
|
1368
|
-
data: {
|
|
1369
|
-
id: string;
|
|
1370
|
-
name: string;
|
|
1371
|
-
description: string;
|
|
1372
|
-
tags: string[];
|
|
1373
|
-
type: "agent";
|
|
1374
|
-
subtype: "dify";
|
|
1375
|
-
config: Record<string, unknown>;
|
|
1376
|
-
}[];
|
|
1377
|
-
loading: boolean;
|
|
1378
|
-
error: Error | null;
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
1382
|
-
declare function copyToClipboard(text: string): Promise<boolean>;
|
|
1383
|
-
|
|
1384
|
-
/**
|
|
1385
|
-
* 每个 step 在消息流中的一段连续范围(R5 whatif 重跑的边界单位)。
|
|
1386
|
-
*
|
|
1387
|
-
* `[startIndex, endIndex)` 包含所有属于这个 step 的消息。
|
|
1388
|
-
* - 中间段:endIndex == 下一段的 startIndex(把本段 assistant 总结纳入本段)
|
|
1389
|
-
* - 末段:endIndex 停在最后一条显式 tag 该 step 的消息之后,避免把跑完 skill
|
|
1390
|
-
* 后的闲聊尾段误当成 step 的一部分
|
|
1391
|
-
*
|
|
1392
|
-
* 同一 stepNumber 可以在 stepRanges 里出现多次(每次 what-if 重跑后 step3/4
|
|
1393
|
-
* 会产生新一段),每次出现都是独立 range。
|
|
1394
|
-
*/
|
|
1395
|
-
interface StepMessageRange {
|
|
1396
|
-
stepNumber: number;
|
|
1397
|
-
startIndex: number;
|
|
1398
|
-
endIndex: number;
|
|
1399
|
-
}
|
|
1400
|
-
/**
|
|
1401
|
-
* 把消息流切成 step-aligned 的 ranges 数组(纯函数)。
|
|
1402
|
-
*
|
|
1403
|
-
* 传 `steps` 只是为了拿 stepNumber 白名单,所以参数接受任何带 `stepNumber` 字段
|
|
1404
|
-
* 的对象,避免引入 apps/web 的 StepInfo 依赖。
|
|
1405
|
-
*
|
|
1406
|
-
* 算法概述:
|
|
1407
|
-
* 1. 每条消息过 `findStepInMessage`,得到 perMessageStep[]
|
|
1408
|
-
* 2. 顺序扫,遇到 step transition 时开新段;往前吃紧邻的 Q&A(user/assistant),
|
|
1409
|
-
* 遇到 what-if 重跑 user 消息立即停(它是边界)
|
|
1410
|
-
* 3. 末段 endIndex 停在最后一条 tag 该 step 的消息之后(避免吞下尾部闲聊)
|
|
1411
|
-
*/
|
|
1412
|
-
declare function buildStepRanges(messages: ChatMessage[], steps: ReadonlyArray<{
|
|
1413
|
-
stepNumber: number;
|
|
1414
|
-
}>): StepMessageRange[];
|
|
1415
|
-
/**
|
|
1416
|
-
* 从 stepRanges 里按 step 归属筛选出需作废(whatif)的消息 id。
|
|
1417
|
-
*
|
|
1418
|
-
* 输入 `fromStep = min(quotes.map(q => q.step_number))`,返回 stepNumber >=
|
|
1419
|
-
* fromStep 的每段 range 内所有 message.entry_id,按 range.startIndex 升序。
|
|
1420
|
-
* 重复 id 自动去重。
|
|
1421
|
-
*
|
|
1422
|
-
* 纯函数,便于放在 core 供 apps/web 的 hook 共用并独立单测。
|
|
1423
|
-
*/
|
|
1424
|
-
declare function deriveDeprecateEntryIds(stepRanges: StepMessageRange[], messages: ChatMessage[], fromStep: number): string[];
|
|
1425
|
-
|
|
1426
|
-
type AnalyticsEventName = "message_sent" | "skill_invoked" | "session_shared";
|
|
1427
|
-
type AnalyticsClient = {
|
|
1428
|
-
capture: (name: AnalyticsEventName, props?: Record<string, unknown>) => void;
|
|
1429
|
-
};
|
|
1430
|
-
declare function setAnalyticsClient(client: AnalyticsClient | null): void;
|
|
1431
|
-
declare function trackEvent(name: AnalyticsEventName, props?: Record<string, unknown>): void;
|
|
1432
|
-
|
|
1433
|
-
type ThemeValue = "light" | "dark" | "system";
|
|
1434
|
-
declare function resolveEffectiveTheme(theme: ThemeValue): "light" | "dark";
|
|
1435
|
-
interface PreviewTarget {
|
|
1436
|
-
type: "file" | "markdown" | "image" | "url" | "html" | "resource-html" | "resource-uri" | "diff" | "pdf" | "docx" | "video" | "audio" | "download" | "card" | "excel" | "csv" | "ppt";
|
|
1437
|
-
content: string;
|
|
1438
|
-
title?: string;
|
|
1439
|
-
/** Stable identity key for tab deduplication (e.g. file_path). Falls back to title. */
|
|
1440
|
-
key?: string;
|
|
1441
|
-
/** For diff type: the old content before edit */
|
|
1442
|
-
oldContent?: string;
|
|
1443
|
-
/** Optional bridge session binding for resource iframes. */
|
|
1444
|
-
bridgeSessionId?: string;
|
|
1445
|
-
/** Original source file URL when preview content uses a derived representation (e.g. PPT -> PDF). */
|
|
1446
|
-
sourceUrl?: string;
|
|
1447
|
-
/** Changes when an artifact with the same key is updated in place. */
|
|
1448
|
-
revision?: number;
|
|
1449
|
-
}
|
|
1450
|
-
type ActiveRightTab = "situation" | "preview" | "skill-test" | "vibe-service" | "vibe-preview" | "vibe-access" | "solution-editor" | "vibe-board";
|
|
1451
|
-
interface UpsertArtifactOptions {
|
|
1452
|
-
reveal?: boolean;
|
|
1453
|
-
activate?: boolean;
|
|
1454
|
-
}
|
|
1455
|
-
interface UiState extends ClientAwareState {
|
|
1456
|
-
leftPanelSize: number;
|
|
1457
|
-
rightPanelSize: number;
|
|
1458
|
-
leftPanelCollapsed: boolean;
|
|
1459
|
-
rightPanelCollapsed: boolean;
|
|
1460
|
-
activeRightTab: ActiveRightTab;
|
|
1461
|
-
rightTabActivationId: number;
|
|
1462
|
-
rightPanelAutoJump: boolean;
|
|
1463
|
-
rightPanelUnreadTabs: string[];
|
|
1464
|
-
/** All open artifact tabs */
|
|
1465
|
-
artifacts: PreviewTarget[];
|
|
1466
|
-
/** Index of the active tab (-1 if none) */
|
|
1467
|
-
activeArtifactIndex: number;
|
|
1468
|
-
previewUnreadArtifactKeys: string[];
|
|
1469
|
-
theme: ThemeValue;
|
|
1470
|
-
setLeftPanelSize: (size: number) => void;
|
|
1471
|
-
setRightPanelSize: (size: number) => void;
|
|
1472
|
-
setLeftPanelCollapsed: (collapsed: boolean) => void;
|
|
1473
|
-
setRightPanelCollapsed: (collapsed: boolean) => void;
|
|
1474
|
-
toggleLeftPanel: () => void;
|
|
1475
|
-
toggleRightPanel: () => void;
|
|
1476
|
-
setActiveRightTab: (tab: ActiveRightTab) => void;
|
|
1477
|
-
setRightPanelAutoJump: (enabled: boolean) => void;
|
|
1478
|
-
markRightPanelTabUnread: (tab: string) => void;
|
|
1479
|
-
clearRightPanelTabUnread: (tab: string) => void;
|
|
1480
|
-
markPreviewArtifactUnread: (key: string) => void;
|
|
1481
|
-
clearPreviewArtifactUnread: (key: string) => void;
|
|
1482
|
-
activateLatestUnreadArtifact: () => void;
|
|
1483
|
-
/** Add or update an artifact tab (matched by key/title). Opens the panel automatically. */
|
|
1484
|
-
pushArtifact: (target: PreviewTarget) => void;
|
|
1485
|
-
/** Add or update an artifact tab with optional reveal/activate control. */
|
|
1486
|
-
upsertArtifact: (target: PreviewTarget, options?: UpsertArtifactOptions) => void;
|
|
1487
|
-
/** Switch to a tab by index */
|
|
1488
|
-
setActiveArtifact: (index: number) => void;
|
|
1489
|
-
/** Close a tab by index */
|
|
1490
|
-
closeArtifact: (index: number) => void;
|
|
1491
|
-
/** Close a tab by stable key if it exists. */
|
|
1492
|
-
removeArtifactByKey: (key: string) => void;
|
|
1493
|
-
/** Close all tabs and collapse panel */
|
|
1494
|
-
clearArtifacts: () => void;
|
|
1495
|
-
/** Legacy single-target setter for backwards compat */
|
|
1496
|
-
setPreviewTarget: (target: PreviewTarget | null) => void;
|
|
1497
|
-
setTheme: (theme: ThemeValue) => void;
|
|
1498
|
-
}
|
|
1499
|
-
declare const useUiStore: zustand.UseBoundStore<zustand.StoreApi<UiState>>;
|
|
1500
|
-
|
|
1501
|
-
declare function buildBinaryPreviewTarget(fileUrl: string, downloadUrl: string, filePath: string, fileName?: string): PreviewTarget | null;
|
|
1502
|
-
declare function buildSessionBinaryPreviewTarget(sessionId: string, filePath: string, fileName?: string): PreviewTarget | null;
|
|
1503
|
-
/** 判断文件是否需要后端 soffice 转 PDF 才能预览 */
|
|
1504
|
-
declare function isOfficePdfPreviewable(fileName: string): boolean;
|
|
1505
|
-
declare function resolveTextPreviewType(fileName: string): PreviewTarget["type"];
|
|
1506
|
-
declare function resolveSessionFilePreviewTarget(sessionId: string, filePath: string, fileName?: string): Promise<PreviewTarget>;
|
|
1507
|
-
|
|
1508
|
-
interface HtmlSourceLocatorElement {
|
|
1509
|
-
tag: string;
|
|
1510
|
-
attributes?: Record<string, string>;
|
|
1511
|
-
visibleText?: string;
|
|
1512
|
-
}
|
|
1513
|
-
interface HtmlSourceLocation {
|
|
1514
|
-
snippet?: string;
|
|
1515
|
-
startLine?: number;
|
|
1516
|
-
endLine?: number;
|
|
1517
|
-
startColumn?: number;
|
|
1518
|
-
endColumn?: number;
|
|
1519
|
-
searchAnchors: string[];
|
|
1520
|
-
locatorConfidence: "high" | "medium" | "low";
|
|
1521
|
-
reason: string;
|
|
1522
|
-
}
|
|
1523
|
-
declare function locateHtmlElementSource(html: string, element: HtmlSourceLocatorElement): HtmlSourceLocation;
|
|
1524
|
-
|
|
1525
|
-
interface HtmlElementSelectionRaw {
|
|
1526
|
-
tag: string;
|
|
1527
|
-
selectionMode?: "single" | "group";
|
|
1528
|
-
groupLabel?: string;
|
|
1529
|
-
groupCount?: number;
|
|
1530
|
-
groupItems?: HtmlElementSelectionGroupItem[];
|
|
1531
|
-
visibleText?: string;
|
|
1532
|
-
accessibleName?: string;
|
|
1533
|
-
role?: string;
|
|
1534
|
-
attributes?: Record<string, string>;
|
|
1535
|
-
selectors?: HtmlElementSelector[];
|
|
1536
|
-
domPath?: string;
|
|
1537
|
-
rect?: HtmlElementRect;
|
|
1538
|
-
style?: Record<string, string>;
|
|
1539
|
-
surroundings?: HtmlElementSurroundings;
|
|
1540
|
-
viewport?: {
|
|
1541
|
-
width: number;
|
|
1542
|
-
height: number;
|
|
1543
|
-
devicePixelRatio: number;
|
|
1544
|
-
};
|
|
1545
|
-
screenshotDataUrl?: string;
|
|
1546
|
-
screenshotStatus?: "included" | "failed";
|
|
1547
|
-
screenshotError?: string;
|
|
1548
|
-
}
|
|
1549
|
-
interface HtmlElementSelectionGroupItem {
|
|
1550
|
-
label?: string;
|
|
1551
|
-
tag: string;
|
|
1552
|
-
role?: string;
|
|
1553
|
-
visibleText?: string;
|
|
1554
|
-
accessibleName?: string;
|
|
1555
|
-
selectors?: HtmlElementSelector[];
|
|
1556
|
-
domPath?: string;
|
|
1557
|
-
rect?: HtmlElementRect;
|
|
1558
|
-
}
|
|
1559
|
-
interface HtmlElementSelector {
|
|
1560
|
-
kind: string;
|
|
1561
|
-
value: string;
|
|
1562
|
-
confidence: "high" | "medium" | "low";
|
|
1563
|
-
}
|
|
1564
|
-
interface HtmlElementRect {
|
|
1565
|
-
x: number;
|
|
1566
|
-
y: number;
|
|
1567
|
-
width: number;
|
|
1568
|
-
height: number;
|
|
1569
|
-
}
|
|
1570
|
-
interface HtmlElementSurroundings {
|
|
1571
|
-
parentSummary?: string;
|
|
1572
|
-
childrenSummary?: string[];
|
|
1573
|
-
previousSiblings?: string[];
|
|
1574
|
-
nextSiblings?: string[];
|
|
1575
|
-
}
|
|
1576
|
-
interface HtmlElementSelectionContext {
|
|
1577
|
-
schema: "blade.html_element_selection.v1";
|
|
1578
|
-
selected_at: string;
|
|
1579
|
-
source_kind: "html_file" | "running_page";
|
|
1580
|
-
file: {
|
|
1581
|
-
path: string;
|
|
1582
|
-
name: string;
|
|
1583
|
-
language: "html";
|
|
1584
|
-
content_hash: string;
|
|
1585
|
-
};
|
|
1586
|
-
preview: {
|
|
1587
|
-
mode: "render" | "running_page";
|
|
1588
|
-
title?: string;
|
|
1589
|
-
url?: string;
|
|
1590
|
-
viewport: {
|
|
1591
|
-
width: number;
|
|
1592
|
-
height: number;
|
|
1593
|
-
device_pixel_ratio: number;
|
|
1594
|
-
};
|
|
1595
|
-
};
|
|
1596
|
-
element: {
|
|
1597
|
-
label: string;
|
|
1598
|
-
tag: string;
|
|
1599
|
-
role?: string;
|
|
1600
|
-
accessible_name?: string;
|
|
1601
|
-
visible_text?: string;
|
|
1602
|
-
attributes: Record<string, string>;
|
|
1603
|
-
selectors: HtmlElementSelector[];
|
|
1604
|
-
dom_path?: string;
|
|
1605
|
-
rect?: HtmlElementRect;
|
|
1606
|
-
style: Record<string, string>;
|
|
1607
|
-
};
|
|
1608
|
-
group?: {
|
|
1609
|
-
label: string;
|
|
1610
|
-
count: number;
|
|
1611
|
-
items: Array<{
|
|
1612
|
-
label?: string;
|
|
1613
|
-
tag: string;
|
|
1614
|
-
role?: string;
|
|
1615
|
-
accessible_name?: string;
|
|
1616
|
-
visible_text?: string;
|
|
1617
|
-
selectors: HtmlElementSelector[];
|
|
1618
|
-
dom_path?: string;
|
|
1619
|
-
rect?: HtmlElementRect;
|
|
1620
|
-
}>;
|
|
1621
|
-
};
|
|
1622
|
-
source: {
|
|
1623
|
-
snippet?: string;
|
|
1624
|
-
start_line?: number;
|
|
1625
|
-
end_line?: number;
|
|
1626
|
-
start_column?: number;
|
|
1627
|
-
end_column?: number;
|
|
1628
|
-
search_anchors: string[];
|
|
1629
|
-
locator_confidence: "high" | "medium" | "low";
|
|
1630
|
-
reason: string;
|
|
1631
|
-
};
|
|
1632
|
-
surroundings: {
|
|
1633
|
-
parent_summary?: string;
|
|
1634
|
-
children_summary?: string[];
|
|
1635
|
-
previous_siblings?: string[];
|
|
1636
|
-
next_siblings?: string[];
|
|
1637
|
-
};
|
|
1638
|
-
screenshot?: {
|
|
1639
|
-
included: boolean;
|
|
1640
|
-
note: string;
|
|
1641
|
-
reason?: string;
|
|
1642
|
-
};
|
|
1643
|
-
limits: {
|
|
1644
|
-
truncated: boolean;
|
|
1645
|
-
omitted_sensitive_fields: string[];
|
|
1646
|
-
};
|
|
1647
|
-
}
|
|
1648
|
-
interface BuildHtmlElementSelectionInput {
|
|
1649
|
-
filePath: string;
|
|
1650
|
-
fileName?: string;
|
|
1651
|
-
title?: string;
|
|
1652
|
-
html?: string;
|
|
1653
|
-
sourceKind?: "html_file" | "running_page";
|
|
1654
|
-
pageUrl?: string;
|
|
1655
|
-
selection: HtmlElementSelectionRaw;
|
|
1656
|
-
selectedAt?: string;
|
|
1657
|
-
}
|
|
1658
|
-
interface PendingHtmlElementContext {
|
|
1659
|
-
label: string;
|
|
1660
|
-
content: string;
|
|
1661
|
-
context: HtmlElementSelectionContext;
|
|
1662
|
-
imageUrl?: string;
|
|
1663
|
-
}
|
|
1664
|
-
declare function buildHtmlElementSelectionContext(input: BuildHtmlElementSelectionInput): PendingHtmlElementContext;
|
|
1665
|
-
|
|
1666
|
-
declare function getTextContent(content: MessageContent): string;
|
|
1667
|
-
declare function buildMessageContent(text: string, attachments: Array<{
|
|
1668
|
-
kind: "file";
|
|
1669
|
-
name: string;
|
|
1670
|
-
uploadedPath?: string;
|
|
1671
|
-
textContent?: string | null;
|
|
1672
|
-
mimeType?: string;
|
|
1673
|
-
}>): MessageContent;
|
|
1674
|
-
/**
|
|
1675
|
-
* Transform a skill mention into a natural language skill invocation.
|
|
1676
|
-
* Strips the `<skill>name</skill>` tag from the raw input and prepends the instruction.
|
|
1677
|
-
*/
|
|
1678
|
-
declare function transformSlashCommand(skillName: string, rawInput: string): string;
|
|
1679
|
-
interface MessageGroup {
|
|
1680
|
-
root: ChatMessage | null;
|
|
1681
|
-
childLoops: {
|
|
1682
|
-
loopName: string;
|
|
1683
|
-
messages: ChatMessage[];
|
|
1684
|
-
}[];
|
|
1685
|
-
}
|
|
1686
|
-
declare function groupMessagesByLoop(messages: ChatMessage[]): MessageGroup[];
|
|
1687
|
-
|
|
1688
|
-
declare const SUPPORTED_LANGUAGES: readonly ["python", "javascript", "typescript", "tsx", "jsx", "yaml", "markdown", "bash", "json", "go", "rust", "css", "html"];
|
|
1689
|
-
type SupportedCodeLanguage = (typeof SUPPORTED_LANGUAGES)[number];
|
|
1690
|
-
declare function normalizeCodeLanguage(language?: string | null): SupportedCodeLanguage | null;
|
|
1691
|
-
declare function getCodeLanguageFromFilename(filePath?: string | null): SupportedCodeLanguage | null;
|
|
1692
|
-
declare function useHighlightedCodeHtml(code: string, language?: string | null): {
|
|
1693
|
-
highlightedHtml: string | null;
|
|
1694
|
-
language: "json" | "html" | "markdown" | "python" | "javascript" | "typescript" | "tsx" | "jsx" | "yaml" | "bash" | "go" | "rust" | "css" | null;
|
|
1695
|
-
};
|
|
1696
|
-
|
|
1697
|
-
interface BladeBridgeEnvelope {
|
|
1698
|
-
__bladeBridge: true;
|
|
1699
|
-
direction: "agent-to-host" | "host-to-agent";
|
|
1700
|
-
action: string;
|
|
1701
|
-
payload?: unknown;
|
|
1702
|
-
meta?: {
|
|
1703
|
-
sessionId?: string;
|
|
1704
|
-
toolCallId?: string;
|
|
1705
|
-
timestamp?: number;
|
|
1706
|
-
};
|
|
1707
|
-
}
|
|
1708
|
-
interface HostBridgeStateSnapshot {
|
|
1709
|
-
sessionId: string | null;
|
|
1710
|
-
activeSessionId: string | null;
|
|
1711
|
-
isStreaming: boolean;
|
|
1712
|
-
}
|
|
1713
|
-
type BladeBridgeHandler = (envelope: BladeBridgeEnvelope) => void;
|
|
1714
|
-
declare function isInsideIframe(): boolean;
|
|
1715
|
-
declare function subscribeBladeBridge(handler: BladeBridgeHandler): () => void;
|
|
1716
|
-
declare function dispatchBladeBridge(envelope: BladeBridgeEnvelope): void;
|
|
1717
|
-
declare function postToParent(envelope: BladeBridgeEnvelope): void;
|
|
1718
|
-
declare function attachHostBridgeListener(getState: () => HostBridgeStateSnapshot): () => void;
|
|
1719
|
-
|
|
1720
|
-
interface UiMeta {
|
|
1721
|
-
resourceUri?: string;
|
|
1722
|
-
resourceURI?: string;
|
|
1723
|
-
resourceHTML?: string;
|
|
1724
|
-
target: "inline" | "preview";
|
|
1725
|
-
height: number;
|
|
1726
|
-
title?: string;
|
|
1727
|
-
}
|
|
1728
|
-
declare function isUiMeta(value: unknown): value is UiMeta;
|
|
1729
|
-
|
|
1730
|
-
declare const BRIDGE_ACTIONS: readonly ["addContext", "appendInput", "sendMessage"];
|
|
1731
|
-
type ResourceBridgeAction = (typeof BRIDGE_ACTIONS)[number];
|
|
1732
|
-
interface ResourceBridgeDispatchParams {
|
|
1733
|
-
sessionId: string;
|
|
1734
|
-
activeSessionId: string | null;
|
|
1735
|
-
isStreaming: boolean;
|
|
1736
|
-
action: string;
|
|
1737
|
-
payload?: unknown;
|
|
1738
|
-
}
|
|
1739
|
-
declare function resourceBridgeDispatch({ sessionId, activeSessionId, isStreaming, action, payload, }: ResourceBridgeDispatchParams): boolean;
|
|
1740
|
-
|
|
1741
|
-
type StreamdownProps = ComponentProps<typeof Streamdown>;
|
|
1742
|
-
type MarkdownContentProps = StreamdownProps & {
|
|
1743
|
-
/** 当提供时,markdown 中相对路径的 <img> src 会解析为 session 工作区文件 URL */
|
|
1744
|
-
sessionId?: string;
|
|
1745
|
-
};
|
|
1746
|
-
declare function MarkdownContent({ allowedTags, children, components, mode, plugins, sessionId, ...props }: MarkdownContentProps): react_jsx_runtime.JSX.Element;
|
|
1747
|
-
|
|
1748
|
-
type CodeProps = JSX.IntrinsicElements["code"] & ExtraProps;
|
|
1749
|
-
declare function CardCodeBlock({ className, children, node, ...props }: CodeProps): react_jsx_runtime.JSX.Element;
|
|
1750
|
-
|
|
1751
|
-
type ModelSelectorProps = {
|
|
1752
|
-
value: string;
|
|
1753
|
-
onValueChange: (model: string) => void;
|
|
1754
|
-
disabled?: boolean;
|
|
1755
|
-
compact?: boolean;
|
|
1756
|
-
placement?: "top" | "bottom";
|
|
1757
|
-
};
|
|
1758
|
-
declare function ModelSelector({ value, onValueChange, disabled, compact, placement, }: ModelSelectorProps): react_jsx_runtime.JSX.Element;
|
|
1759
|
-
|
|
1760
|
-
declare function ResourceIframe({ ui, sessionId }: {
|
|
1761
|
-
ui: UiMeta;
|
|
1762
|
-
sessionId: string;
|
|
1763
|
-
}): react_jsx_runtime.JSX.Element | null;
|
|
1764
|
-
|
|
1765
|
-
interface SkillOnlySuggestionItem {
|
|
1766
|
-
skillId: string;
|
|
1767
|
-
displayName?: string;
|
|
1768
|
-
description: string;
|
|
1769
|
-
local?: boolean;
|
|
1770
|
-
}
|
|
1771
|
-
interface SkillCommandSuggestionItem {
|
|
1772
|
-
type: "command";
|
|
1773
|
-
id: string;
|
|
1774
|
-
label: string;
|
|
1775
|
-
description: string;
|
|
1776
|
-
}
|
|
1777
|
-
interface SkillSuggestionSkillItem extends SkillOnlySuggestionItem {
|
|
1778
|
-
type: "skill";
|
|
1779
|
-
}
|
|
1780
|
-
type SkillSuggestionItem = SkillSuggestionSkillItem | SkillCommandSuggestionItem;
|
|
1781
|
-
declare const skillMentionSuggestionKey: PluginKey<any>;
|
|
1782
|
-
declare const SkillMention: _tiptap_core.Node<_tiptap_extension_mention.MentionOptions<any, _tiptap_extension_mention.MentionNodeAttrs>, any>;
|
|
1783
|
-
|
|
1784
|
-
interface SkillCompletionMenuProps {
|
|
1785
|
-
items: SkillSuggestionItem[];
|
|
1786
|
-
command: (item: SkillSuggestionItem) => void;
|
|
1787
|
-
}
|
|
1788
|
-
interface SkillCompletionMenuRef {
|
|
1789
|
-
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
1790
|
-
}
|
|
1791
|
-
declare const SkillCompletionMenu: react.ForwardRefExoticComponent<SkillCompletionMenuProps & react.RefAttributes<SkillCompletionMenuRef>>;
|
|
1792
|
-
|
|
1793
|
-
interface ContentDelta {
|
|
1794
|
-
content: string;
|
|
1795
|
-
loop_name?: string;
|
|
1796
|
-
}
|
|
1797
|
-
interface ToolCallCreated {
|
|
1798
|
-
index: number;
|
|
1799
|
-
id: string;
|
|
1800
|
-
loop_name?: string;
|
|
1801
|
-
function: {
|
|
1802
|
-
name: string;
|
|
1803
|
-
arguments: string;
|
|
1804
|
-
};
|
|
1805
|
-
}
|
|
1806
|
-
interface ToolResultDone {
|
|
1807
|
-
tool_call_id: string;
|
|
1808
|
-
loop_name?: string;
|
|
1809
|
-
function: {
|
|
1810
|
-
name: string;
|
|
1811
|
-
};
|
|
1812
|
-
content: string;
|
|
1813
|
-
}
|
|
1814
|
-
interface ToolResultDelta {
|
|
1815
|
-
tool_call_id: string;
|
|
1816
|
-
loop_name?: string;
|
|
1817
|
-
content: string;
|
|
1818
|
-
stream?: "stdout" | "stderr";
|
|
1819
|
-
}
|
|
1820
|
-
interface LlmResponseDone {
|
|
1821
|
-
role: string;
|
|
1822
|
-
content?: string | null;
|
|
1823
|
-
reasoning?: string | null;
|
|
1824
|
-
loop_name?: string;
|
|
1825
|
-
tool_calls?: {
|
|
1826
|
-
id: string;
|
|
1827
|
-
function: {
|
|
1828
|
-
name: string;
|
|
1829
|
-
arguments: string;
|
|
1830
|
-
};
|
|
1831
|
-
}[];
|
|
1832
|
-
}
|
|
1833
|
-
interface ChatEnd {
|
|
1834
|
-
status: string;
|
|
1835
|
-
duration_ms: number;
|
|
1836
|
-
}
|
|
1837
|
-
interface SystemError {
|
|
1838
|
-
message: string;
|
|
1839
|
-
}
|
|
1840
|
-
interface SessionStatusEvent {
|
|
1841
|
-
session_id: string;
|
|
1842
|
-
status: string;
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
declare const ResourceBase: arktype_internal_variants_object_ts.ObjectType<{
|
|
1846
|
-
id: string;
|
|
1847
|
-
name: string;
|
|
1848
|
-
description: string;
|
|
1849
|
-
tags: string[];
|
|
1850
|
-
}, {}>;
|
|
1851
|
-
type ResourceBase = typeof ResourceBase.infer;
|
|
1852
|
-
|
|
1853
|
-
declare const SceneStatus: arktype_internal_variants_string_ts.StringType<"draft" | "published", {}>;
|
|
1854
|
-
type SceneStatus = typeof SceneStatus.infer;
|
|
1855
|
-
declare const Scene: arktype_internal_variants_object_ts.ObjectType<{
|
|
1856
|
-
id: string;
|
|
1857
|
-
name: string;
|
|
1858
|
-
description: string;
|
|
1859
|
-
status: "draft" | "published";
|
|
1860
|
-
skills: string[];
|
|
1861
|
-
created_at?: string | undefined;
|
|
1862
|
-
updated_at?: string | undefined;
|
|
1863
|
-
}, {}>;
|
|
1864
|
-
type Scene = typeof Scene.infer;
|
|
1865
|
-
|
|
1866
|
-
declare const EnvVariable: arktype_internal_variants_object_ts.ObjectType<{
|
|
1867
|
-
key: string;
|
|
1868
|
-
value: string;
|
|
1869
|
-
description?: string | undefined;
|
|
1870
|
-
is_secret?: boolean | undefined;
|
|
1871
|
-
}, {}>;
|
|
1872
|
-
type EnvVariable = typeof EnvVariable.infer;
|
|
1873
|
-
|
|
1874
|
-
interface Card {
|
|
1875
|
-
type: string;
|
|
1876
|
-
title?: string;
|
|
1877
|
-
payload?: Record<string, unknown>;
|
|
1878
|
-
data?: unknown;
|
|
1879
|
-
id?: string;
|
|
1880
|
-
}
|
|
1881
|
-
interface CardComponentProps {
|
|
1882
|
-
card: Card;
|
|
1883
|
-
sendMessage?: (content: string) => Promise<void>;
|
|
1884
|
-
sessionId?: string;
|
|
1885
|
-
}
|
|
1886
|
-
type CardComponent = ComponentType<CardComponentProps>;
|
|
1887
|
-
declare class CardComponentRegistry {
|
|
1888
|
-
private readonly components;
|
|
1889
|
-
constructor(initial?: Record<string, CardComponent> | Map<string, CardComponent>);
|
|
1890
|
-
register(type: string, component: CardComponent): void;
|
|
1891
|
-
get(type: string): CardComponent | undefined;
|
|
1892
|
-
has(type: string): boolean;
|
|
1893
|
-
keys(): string[];
|
|
1894
|
-
clear(): void;
|
|
1895
|
-
get size(): number;
|
|
1896
|
-
}
|
|
1897
|
-
declare const cardRegistry: CardComponentRegistry;
|
|
1898
|
-
interface ParseResult<T> {
|
|
1899
|
-
ok: boolean;
|
|
1900
|
-
value?: T;
|
|
1901
|
-
error?: string;
|
|
1902
|
-
}
|
|
1903
|
-
declare const CardJSON: {
|
|
1904
|
-
safeParseJSON<T = unknown>(text: string): ParseResult<T>;
|
|
1905
|
-
toCardArray(value: unknown): Card[] | null;
|
|
1906
|
-
isCardsLanguage(lang?: string): boolean;
|
|
1907
|
-
};
|
|
1908
|
-
|
|
1909
|
-
interface CardContextValue {
|
|
1910
|
-
sendMessage?: (content: string) => Promise<void>;
|
|
1911
|
-
sessionId?: string;
|
|
1912
|
-
messageId?: string;
|
|
1913
|
-
}
|
|
1914
|
-
declare const CardContext: react.Context<CardContextValue>;
|
|
1915
|
-
declare const useCardContext: () => CardContextValue;
|
|
1916
|
-
|
|
1917
|
-
interface CardStateStore extends ClientAwareState {
|
|
1918
|
-
states: Record<string, unknown>;
|
|
1919
|
-
getCardState: <T>(cardId: string) => T | undefined;
|
|
1920
|
-
setCardState: <T>(cardId: string, state: T) => void;
|
|
1921
|
-
removeCardState: (cardId: string) => void;
|
|
1922
|
-
clearAllStates: () => void;
|
|
1923
|
-
}
|
|
1924
|
-
declare const useCardStateStore: zustand.UseBoundStore<zustand.StoreApi<CardStateStore>>;
|
|
1925
|
-
|
|
1926
|
-
declare function useCardState<T>(cardId: string, initialValue: T): [T, (value: T | ((prev: T) => T)) => void];
|
|
1927
|
-
|
|
1928
|
-
interface User {
|
|
1929
|
-
id: string;
|
|
1930
|
-
username: string;
|
|
1931
|
-
display_name?: string | null;
|
|
1932
|
-
avatar_url: string | null;
|
|
1933
|
-
is_admin?: boolean;
|
|
1934
|
-
}
|
|
1935
|
-
interface AuthState extends ClientAwareState {
|
|
1936
|
-
token: string | null;
|
|
1937
|
-
socketAuthToken: string | null;
|
|
1938
|
-
user: User | null;
|
|
1939
|
-
loading: boolean;
|
|
1940
|
-
error: string | null;
|
|
1941
|
-
logout: () => void;
|
|
1942
|
-
checkAuth: () => Promise<void>;
|
|
1943
|
-
hydrateFromCookie: () => Promise<void>;
|
|
1944
|
-
}
|
|
1945
|
-
declare const useAuthStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AuthState>, "setState" | "persist"> & {
|
|
1946
|
-
setState(partial: AuthState | Partial<AuthState> | ((state: AuthState) => AuthState | Partial<AuthState>), replace?: false | undefined): unknown;
|
|
1947
|
-
setState(state: AuthState | ((state: AuthState) => AuthState), replace: true): unknown;
|
|
1948
|
-
persist: {
|
|
1949
|
-
setOptions: (options: Partial<zustand_middleware.PersistOptions<AuthState, {
|
|
1950
|
-
token: string | null;
|
|
1951
|
-
user: User | null;
|
|
1952
|
-
}, unknown>>) => void;
|
|
1953
|
-
clearStorage: () => void;
|
|
1954
|
-
rehydrate: () => Promise<void> | void;
|
|
1955
|
-
hasHydrated: () => boolean;
|
|
1956
|
-
onHydrate: (fn: (state: AuthState) => void) => () => void;
|
|
1957
|
-
onFinishHydration: (fn: (state: AuthState) => void) => () => void;
|
|
1958
|
-
getOptions: () => Partial<zustand_middleware.PersistOptions<AuthState, {
|
|
1959
|
-
token: string | null;
|
|
1960
|
-
user: User | null;
|
|
1961
|
-
}, unknown>>;
|
|
1962
|
-
};
|
|
1963
|
-
}>;
|
|
1964
|
-
|
|
1965
|
-
interface BackgroundState extends ClientAwareState {
|
|
1966
|
-
tasks: Record<string, BackgroundTask[]>;
|
|
1967
|
-
selectedTaskId: Record<string, string | null>;
|
|
1968
|
-
dismissedTaskIds: Record<string, string[]>;
|
|
1969
|
-
setTasks: (sessionId: string, tasks: BackgroundTask[]) => void;
|
|
1970
|
-
upsertTask: (sessionId: string, task: BackgroundTask) => void;
|
|
1971
|
-
selectTask: (sessionId: string, taskId: string | null) => void;
|
|
1972
|
-
dismissTask: (sessionId: string, taskId: string) => void;
|
|
1973
|
-
}
|
|
1974
|
-
declare const useBackgroundStore: zustand.UseBoundStore<zustand.StoreApi<BackgroundState>>;
|
|
1975
|
-
|
|
1976
|
-
interface AgentLoopInfo {
|
|
1977
|
-
toolCallId: string;
|
|
1978
|
-
description: string;
|
|
1979
|
-
status: "running" | "done" | "error" | "cancelled" | "awaiting_answer";
|
|
1980
|
-
}
|
|
1981
|
-
interface ActiveCompactionState extends CompactionInfo {
|
|
1982
|
-
turn_id: string;
|
|
1983
|
-
status: "streaming" | "completed" | "paused" | "failed" | "interrupted";
|
|
1984
|
-
}
|
|
1985
|
-
interface ChatState extends ClientAwareState {
|
|
1986
|
-
turns: Record<string, TurnProjection[]>;
|
|
1987
|
-
messages: Record<string, ChatMessage[]>;
|
|
1988
|
-
askAnswers: Record<string, Record<string, AskUserAnswerData>>;
|
|
1989
|
-
isStreaming: Record<string, boolean>;
|
|
1990
|
-
agentLoops: Record<string, Record<string, AgentLoopInfo>>;
|
|
1991
|
-
activeCompactions: Record<string, ActiveCompactionState | null>;
|
|
1992
|
-
addUserMessage: (sessionId: string, content: MessageContent) => void;
|
|
1993
|
-
setTurns: (sessionId: string, turns: TurnProjection[]) => void;
|
|
1994
|
-
upsertTurn: (sessionId: string, turn: TurnProjection) => void;
|
|
1995
|
-
applyTurnPatch: (sessionId: string, patch: PatchEnvelope) => void;
|
|
1996
|
-
addErrorMessage: (sessionId: string, content: string) => void;
|
|
1997
|
-
markInterrupted: (sessionId: string) => void;
|
|
1998
|
-
markFailed: (sessionId: string) => void;
|
|
1999
|
-
setStreaming: (sessionId: string, streaming: boolean) => void;
|
|
2000
|
-
setAskAnswers: (sessionId: string, answers: Record<string, AskUserAnswerData>) => void;
|
|
2001
|
-
clearMessages: (sessionId: string) => void;
|
|
2002
|
-
}
|
|
2003
|
-
declare const useChatStore: zustand.UseBoundStore<zustand.StoreApi<ChatState>>;
|
|
2004
|
-
|
|
2005
|
-
type ConnectionStatus = "connecting" | "connected" | "disconnected";
|
|
2006
|
-
interface ConnectionState extends ClientAwareState {
|
|
2007
|
-
status: ConnectionStatus;
|
|
2008
|
-
reconnectAttempt: number;
|
|
2009
|
-
lastConnectedAt: number | null;
|
|
2010
|
-
lastDisconnectedAt: number | null;
|
|
2011
|
-
hasEverConnected: boolean;
|
|
2012
|
-
markConnecting: (attempt?: number) => void;
|
|
2013
|
-
markConnected: () => void;
|
|
2014
|
-
markDisconnected: () => void;
|
|
2015
|
-
reset: () => void;
|
|
2016
|
-
}
|
|
2017
|
-
declare const useConnectionStore: zustand.UseBoundStore<zustand.StoreApi<ConnectionState>>;
|
|
2018
|
-
|
|
2019
|
-
type AsrProvider = "volcengine" | "qwen";
|
|
2020
|
-
interface RuntimeFeaturesState extends ClientAwareState {
|
|
2021
|
-
asrEnabled: boolean;
|
|
2022
|
-
asrProvider: AsrProvider;
|
|
2023
|
-
publicSharingEnabled: boolean;
|
|
2024
|
-
memoryEnabled: boolean;
|
|
2025
|
-
checkpointsEnabled: boolean;
|
|
2026
|
-
setFeatures: (features: {
|
|
2027
|
-
asrEnabled?: boolean;
|
|
2028
|
-
asrProvider?: AsrProvider;
|
|
2029
|
-
publicSharingEnabled?: boolean;
|
|
2030
|
-
memoryEnabled?: boolean;
|
|
2031
|
-
checkpointsEnabled?: boolean;
|
|
2032
|
-
}) => void;
|
|
2033
|
-
}
|
|
2034
|
-
/**
|
|
2035
|
-
* 运行期特性开关(由后端 /api/config 下发)。默认全部关闭,main.tsx 启动时 fetch 一次填充。
|
|
2036
|
-
*/
|
|
2037
|
-
declare const useRuntimeFeaturesStore: zustand.UseBoundStore<zustand.StoreApi<RuntimeFeaturesState>>;
|
|
2038
|
-
|
|
2039
|
-
interface RuntimeEvent {
|
|
2040
|
-
id: string;
|
|
2041
|
-
sessionId: string;
|
|
2042
|
-
type: string;
|
|
2043
|
-
title: string;
|
|
2044
|
-
status: "info" | "running" | "done" | "error";
|
|
2045
|
-
timestamp: string;
|
|
2046
|
-
loopName?: string;
|
|
2047
|
-
detail?: string;
|
|
2048
|
-
}
|
|
2049
|
-
interface RuntimeState extends ClientAwareState {
|
|
2050
|
-
events: Record<string, RuntimeEvent[]>;
|
|
2051
|
-
addEvent: (sessionId: string, event: Omit<RuntimeEvent, "id" | "sessionId" | "timestamp">) => void;
|
|
2052
|
-
clearSession: (sessionId: string) => void;
|
|
2053
|
-
}
|
|
2054
|
-
declare const useRuntimeStore: zustand.UseBoundStore<zustand.StoreApi<RuntimeState>>;
|
|
2055
|
-
|
|
2056
|
-
interface GisStateStore extends ClientAwareState {
|
|
2057
|
-
goalsBySession: Record<string, GisGoal[]>;
|
|
2058
|
-
resourcesBySession: Record<string, GisResource$1[]>;
|
|
2059
|
-
targetsBySession: Record<string, GisTarget[]>;
|
|
2060
|
-
pendingMapCommandsBySession: Record<string, GisMapCommand[]>;
|
|
2061
|
-
setGoals: (sessionId: string, goals: GisGoal[]) => void;
|
|
2062
|
-
setResources: (sessionId: string, resources: GisResource$1[]) => void;
|
|
2063
|
-
setTargets: (sessionId: string, targets: GisTarget[]) => void;
|
|
2064
|
-
pushMapCommand: (sessionId: string, command: Omit<GisMapCommand, "id" | "createdAt">) => void;
|
|
2065
|
-
consumeMapCommand: (sessionId: string, commandId: string) => void;
|
|
2066
|
-
getGoals: (sessionId: string) => GisGoal[];
|
|
2067
|
-
getResources: (sessionId: string) => GisResource$1[];
|
|
2068
|
-
getTargets: (sessionId: string) => GisTarget[];
|
|
2069
|
-
getPendingMapCommands: (sessionId: string) => GisMapCommand[];
|
|
2070
|
-
}
|
|
2071
|
-
declare const useGisStore: zustand.UseBoundStore<zustand.StoreApi<GisStateStore>>;
|
|
2072
|
-
|
|
2073
|
-
interface TaskState extends ClientAwareState {
|
|
2074
|
-
tasks: Record<string, Task[]>;
|
|
2075
|
-
setTasks: (sessionId: string, tasks: Task[]) => void;
|
|
2076
|
-
getTasks: (sessionId: string) => Task[];
|
|
2077
|
-
}
|
|
2078
|
-
declare const useTaskStore: zustand.UseBoundStore<zustand.StoreApi<TaskState>>;
|
|
2079
|
-
|
|
2080
|
-
interface PendingContextSignal {
|
|
2081
|
-
id: string;
|
|
2082
|
-
label: string;
|
|
2083
|
-
content: string;
|
|
2084
|
-
imageUrl?: string;
|
|
2085
|
-
}
|
|
2086
|
-
interface DraftAppendSignal {
|
|
2087
|
-
id: string;
|
|
2088
|
-
text: string;
|
|
2089
|
-
}
|
|
2090
|
-
interface SendRequestSignal {
|
|
2091
|
-
id: string;
|
|
2092
|
-
}
|
|
2093
|
-
interface UiBridgeState extends ClientAwareState {
|
|
2094
|
-
pendingContexts: Record<string, PendingContextSignal[]>;
|
|
2095
|
-
draftAppends: Record<string, DraftAppendSignal[]>;
|
|
2096
|
-
sendRequests: Record<string, SendRequestSignal[]>;
|
|
2097
|
-
addPendingContext: (sessionId: string, context: Omit<PendingContextSignal, "id">) => void;
|
|
2098
|
-
removePendingContext: (sessionId: string, contextId: string) => void;
|
|
2099
|
-
consumePendingContexts: (sessionId: string) => PendingContextSignal[];
|
|
2100
|
-
clearPendingContexts: (sessionId: string) => void;
|
|
2101
|
-
addDraftAppend: (sessionId: string, text: string) => void;
|
|
2102
|
-
consumeDraftAppends: (sessionId: string) => DraftAppendSignal[];
|
|
2103
|
-
clearDraftAppends: (sessionId: string) => void;
|
|
2104
|
-
addSendRequest: (sessionId: string) => void;
|
|
2105
|
-
consumeSendRequests: (sessionId: string) => SendRequestSignal[];
|
|
2106
|
-
clearSendRequests: (sessionId: string) => void;
|
|
2107
|
-
clearSession: (sessionId: string) => void;
|
|
2108
|
-
}
|
|
2109
|
-
declare const useUiBridgeStore: zustand.UseBoundStore<zustand.StoreApi<UiBridgeState>>;
|
|
2110
|
-
|
|
2111
|
-
export { type ActiveRightTab, type AnalyticsEventName, ApiKeyCreateResponse, ApiKeyPublic, type ArchitectureNode, type ArchitecturePayload, type ArchitectureVersion, type ArchitectureVersionListItem, BackgroundTask, BizRole, type BladeBridgeEnvelope, type BladeBridgeHandler, BladeClientOptions, BladeClientProvider, type BladeClientProviderProps, BladeContext, BladeHubScenarioResource, type BuildHtmlElementSelectionInput, type Card, CardCodeBlock, type CardComponent, type CardComponentProps, CardContext, CardJSON, type ChatEnd, ChatMessage, type ConnectionStatus, type ContentDelta, CreateQuickScenarioPayload, CreateSoftwareFactorySharedFilePayload, CreateSoftwareFactorySoftwarePayload, type DagPayload, type DagVersion, type DagVersionListItem, type DslStep, EnvBucket, EnvVariable, GisGoal, GisMapCommand, GisResource$1 as GisResource, GisState, GisTarget, GlobalSkillStats, type HtmlElementSelectionContext, type HtmlElementSelectionRaw, type HtmlSourceLocation, type HtmlSourceLocatorElement, InstalledRegistrySkill, type IssueAssigneeType, type IssuePriority, type IssueStatus, type LlmResponseDone, MarkdownContent, Memory, MemoryCreateBody, MemoryListParams, MemoryListResponse, MessageContent, ModelSelector, type MulticaAgent, type MulticaRuntime, PartnerSkillInstallPayload, PartnerSkillInstallPayload as PartnerSkillInstallPayloadData, PartnerSkillInstallResult, PartnerSkillInstallResult as PartnerSkillInstallResultData, PatchEnvelope, type PendingHtmlElementContext, PlatformEnvBucket, type PreviewTarget, PreviewUrlItem, type ProdAgentCatalogSolution, type ProdAgentPreviewUrl, type ProdAgentRecord, type ProdSolution, type ProdUser, type ProdUserTokenStatus, PublishedApp, PublishedAppListResponse, PublishedAppStatus, QuickScenario, RegistryResource, ResourceApi, ResourceBase, type ResourceBridgeAction, type ResourceBridgeDispatchParams, ResourceIframe, RuntimeConfig, type RuntimeEvent, Scene, SceneStatus, ScheduledTask, ScheduledTaskCalendarItem, ScheduledTaskCalendarItem as ScheduledTaskCalendarItemData, type ScheduledTaskCreatePayload, ScheduledTask as ScheduledTaskData, ScheduledTaskRun, ScheduledTaskRun as ScheduledTaskRunData, type ScheduledTaskUpdatePayload, SessionInfo, SessionSkillUploadPayload, SessionSkillUploadPayload as SessionSkillUploadPayloadData, SessionSkillUploadResult, SessionSkillUploadResult as SessionSkillUploadResultData, type SessionStatusEvent, SkillCompletionMenu, type SkillCompletionMenuRef, SkillDetail, SkillMention, SkillOrgListResponse, SkillSearchResult, type SkillSuggestionItem, SkillSummary, SoftwareFactorySharedFile, SoftwareFactorySoftware, Solution, type StepMessageRange, type SystemError, Task, type ToolCallCreated, type ToolResultDelta, type ToolResultDone, TurnProjection, type UiMeta, UnpublishAppResponse, UpdateQuickScenarioPayload, type UseTiptapVoiceInputOptions, type UseTiptapVoiceInputResult, type UseVoiceInputOptions, type UseVoiceInputResult, type UserWorkspace, type VoiceInputError, type VoiceInputStatus, VoiceWaveform, type WorkspaceIssue, type WorkspaceIssueTaskRun, type WorkspaceIssueTimelineEntry, type WorkspaceIssueUsageSummary, type WorkspaceMember, agentApi, agentSocket, apiFetch, apiFetchResponse, apiFetchText, apiKeys as apiKeysApi, attachClientToStores, attachHostBridgeListener, auth as authApi, bootstrapBladeClient, buildBinaryPreviewTarget, buildHtmlElementSelectionContext, buildMessageContent, buildSessionBinaryPreviewTarget, buildStepRanges, buildVoiceInputUnavailableError, cardRegistry, cn, copyToClipboard, createResourceApi, databaseApi, deriveDeprecateEntryIds, dispatchBladeBridge, envBuckets as envBucketsApi, getAuthedUrl, getBaseUrl, getBootstrappedClient, getClient, getCodeLanguageFromFilename, getSocket, getTextContent, gisApi, groupMessagesByLoop, isInsideIframe, isOfficePdfPreviewable, isUiMeta, knowledgeApi, listSkillOrgs, locateHtmlElementSource, memories as memoriesApi, models as modelsApi, normalizeCodeLanguage, partnerSkill as partnerSkillApi, postToParent, prodSolution as prodSolutionApi, publishSkill, publishedApps as publishedAppsApi, resolveEffectiveTheme, resolveSessionFilePreviewTarget, resolveTextPreviewType, resourceBridgeDispatch, scenarios as scenariosApi, scheduledTasks as scheduledTasksApi, setAnalyticsClient, setOnWorkspaceFilesChanged, skillMentionSuggestionKey, skills as skillsApi, softwareFactory as softwareFactoryApi, solutions as solutionsApi, subscribeBladeBridge, toolApi, trackEvent, transformSlashCommand, useAgents, useAuthStore, useBackgroundStore, useBackgroundTasks, useBladeClient, useCardContext, useCardState, useCardStateStore, useChat, useChatStore, useCheckSkillFile, useCheckSolutionFile, useConnectionStore, useDataSources, useGisState, useGisStore, useGlobalSkillStats, useHighlightedCodeHtml, useInputHistory, useKnowledgeBases, useModelConfig, usePreferredModel, useResolvedModel, useRuntimeConfig, useRuntimeFeaturesStore, useRuntimeStore, useSession, useSkills, useTaskStore, useThinkingPreference, useTiptapVoiceInput, useToolProviders, useUiBridgeStore, useUiStore, useVoiceInput, userPreferences as userPreferencesApi };
|
|
1
|
+
export { attachClientToStores, bootstrapBladeClient, getBootstrappedClient } from "./bootstrap.js";
|
|
2
|
+
export { BladeContext } from "./context.js";
|
|
3
|
+
export { BladeClientProvider, useBladeClient } from "./provider.js";
|
|
4
|
+
export type { BladeClientProviderProps } from "./provider.js";
|
|
5
|
+
export * as apiKeysApi from "./api/api-keys.js";
|
|
6
|
+
export type { ApiKeyCreateResponse, ApiKeyPublic } from "./api/api-keys.js";
|
|
7
|
+
export * as authApi from "./api/auth.js";
|
|
8
|
+
export * as envBucketsApi from "./api/env-buckets.js";
|
|
9
|
+
export type { EnvBucket, PlatformEnvBucket } from "./api/env-buckets.js";
|
|
10
|
+
export { apiFetch, apiFetchResponse, apiFetchText, getAuthedUrl, getBaseUrl, } from "./api/client.js";
|
|
11
|
+
export type * from "./api/client.js";
|
|
12
|
+
export * as memoriesApi from "./api/memories.js";
|
|
13
|
+
export * as gisApi from "./api/gis-api.js";
|
|
14
|
+
export * as modelsApi from "./api/models.js";
|
|
15
|
+
export type { Memory, MemoryCreateBody, MemoryListParams, MemoryListResponse, } from "./api/memories.js";
|
|
16
|
+
export * as partnerSkillApi from "./api/partner-skill.js";
|
|
17
|
+
export * as publishedAppsApi from "./api/published-apps.js";
|
|
18
|
+
export type { PublishedApp, PublishedAppListResponse, PublishedAppStatus, UnpublishAppResponse, } from "./schemas/published-apps.js";
|
|
19
|
+
export * as prodSolutionApi from "./api/prod-solution.js";
|
|
20
|
+
export type { DagPayload, DagVersion, DagVersionListItem, DslStep, ArchitectureNode, ArchitecturePayload, ArchitectureVersion, ArchitectureVersionListItem, MulticaAgent, MulticaRuntime, ProdAgentCatalogSolution, ProdAgentRecord, ProdAgentPreviewUrl, ProdUser, ProdUserTokenStatus, UserWorkspace, WorkspaceIssue, WorkspaceIssueTaskRun, WorkspaceIssueTimelineEntry, WorkspaceIssueUsageSummary, WorkspaceMember, IssueAssigneeType, IssuePriority, IssueStatus, ProdSolution, } from "./api/prod-solution.js";
|
|
21
|
+
export * as sessionsApi from "./api/sessions.js";
|
|
22
|
+
export type { SessionExtraInfo } from "./api/sessions.js";
|
|
23
|
+
export * as userPreferencesApi from "./api/user-preferences.js";
|
|
24
|
+
export * as solutionsApi from "./api/solutions.js";
|
|
25
|
+
export * as scenariosApi from "./api/scenarios.js";
|
|
26
|
+
export * as scheduledTasksApi from "./api/scheduled-tasks.js";
|
|
27
|
+
export { uploadFiles } from "./api/sessions.js";
|
|
28
|
+
export * as skillsApi from "./api/skills.js";
|
|
29
|
+
export type { GlobalSkillStats, InstalledRegistrySkill } from "./api/skills.js";
|
|
30
|
+
export * from "./api/registry.js";
|
|
31
|
+
export { agentSocket, getSocket, setOnWorkspaceFilesChanged, } from "./api/socket.js";
|
|
32
|
+
export { useChat } from "./hooks/use-chat.js";
|
|
33
|
+
export { useBackgroundTasks } from "./hooks/use-background-tasks.js";
|
|
34
|
+
export { useGisState, useRuntimeConfig } from "./hooks/use-gis.js";
|
|
35
|
+
export { useCheckSkillFile } from "./hooks/use-check-skill-file.js";
|
|
36
|
+
export { useCheckSolutionFile } from "./hooks/use-check-solution-file.js";
|
|
37
|
+
export { useGlobalSkillStats } from "./hooks/use-global-skill-stats.js";
|
|
38
|
+
export { useInputHistory } from "./hooks/use-input-history.js";
|
|
39
|
+
export { useModelConfig, usePreferredModel, useThinkingPreference } from "./hooks/use-model-preferences.js";
|
|
40
|
+
export { useResolvedModel } from "./hooks/use-resolved-model.js";
|
|
41
|
+
export { useSession } from "./hooks/use-session.js";
|
|
42
|
+
export { useSkills } from "./hooks/use-skills.js";
|
|
43
|
+
export { useVoiceInput } from "./asr/use-voice-input.js";
|
|
44
|
+
export type { UseVoiceInputOptions, UseVoiceInputResult, VoiceInputStatus } from "./asr/use-voice-input.js";
|
|
45
|
+
export { buildVoiceInputUnavailableError } from "./asr/voice-input-support.js";
|
|
46
|
+
export type { VoiceInputError } from "./asr/voice-input-support.js";
|
|
47
|
+
export { useTiptapVoiceInput } from "./asr/use-tiptap-voice-input.js";
|
|
48
|
+
export type { UseTiptapVoiceInputOptions, UseTiptapVoiceInputResult } from "./asr/use-tiptap-voice-input.js";
|
|
49
|
+
export { VoiceWaveform } from "./asr/VoiceWaveform.js";
|
|
50
|
+
export { useAgents, useDataSources, useKnowledgeBases, useToolProviders } from "./hooks/use-registry.js";
|
|
51
|
+
export { cn, copyToClipboard } from "./lib/utils.js";
|
|
52
|
+
export { buildStepRanges, deriveDeprecateEntryIds, type StepMessageRange, } from "./lib/step-ranges.js";
|
|
53
|
+
export { buildWhatIfPrompt, parseWhatIfPrompt, type BuildWhatIfPromptInput, type ParsedWhatIfPrompt, type WhatIfQuote, } from "./lib/whatif-prompt.js";
|
|
54
|
+
export { setAnalyticsClient, trackEvent, type AnalyticsEventName, } from "./lib/analytics.js";
|
|
55
|
+
export { buildBinaryPreviewTarget, buildSessionBinaryPreviewTarget, isOfficePdfPreviewable, resolveSessionFilePreviewTarget, resolveTextPreviewType, } from "./lib/session-file-preview.js";
|
|
56
|
+
export { locateHtmlElementSource } from "./lib/html-source-locator.js";
|
|
57
|
+
export type { HtmlSourceLocation, HtmlSourceLocatorElement } from "./lib/html-source-locator.js";
|
|
58
|
+
export { buildHtmlElementSelectionContext } from "./lib/html-element-selection.js";
|
|
59
|
+
export type { BuildHtmlElementSelectionInput, HtmlElementSelectionContext, HtmlElementSelectionRaw, PendingHtmlElementContext, } from "./lib/html-element-selection.js";
|
|
60
|
+
export { buildMessageContent, getTextContent, groupMessagesByLoop, transformSlashCommand, } from "./lib/chat.js";
|
|
61
|
+
export { ATTACHMENT_SIZE_LIMIT_BYTES, formatFileSize, splitFilesBySize, } from "./lib/attachment-upload.js";
|
|
62
|
+
export type { OversizedFileInfo } from "./lib/attachment-upload.js";
|
|
63
|
+
export { getCodeLanguageFromFilename, normalizeCodeLanguage, useHighlightedCodeHtml, } from "./lib/code-highlight.js";
|
|
64
|
+
export { attachHostBridgeListener, dispatchBladeBridge, isInsideIframe, postToParent, subscribeBladeBridge, } from "./lib/parent-bridge.js";
|
|
65
|
+
export type { BladeBridgeEnvelope, BladeBridgeHandler } from "./lib/parent-bridge.js";
|
|
66
|
+
export { isUiMeta } from "./lib/ui-meta.js";
|
|
67
|
+
export type { UiMeta } from "./lib/ui-meta.js";
|
|
68
|
+
export { resourceBridgeDispatch } from "./lib/resource-bridge.js";
|
|
69
|
+
export type { ResourceBridgeAction, ResourceBridgeDispatchParams } from "./lib/resource-bridge.js";
|
|
70
|
+
export { MarkdownContent } from "./components/markdown/MarkdownContent.js";
|
|
71
|
+
export { CardCodeBlock } from "./components/card/CardCodeBlock.js";
|
|
72
|
+
export { ChatInput, ChatView, MessageList, SkillStatusBar, ThinkingToggle } from "./components/chat/index.js";
|
|
73
|
+
export type { ChatSendOptions } from "./components/chat/index.js";
|
|
74
|
+
export { ModelSelector } from "./components/model/ModelSelector.js";
|
|
75
|
+
export { FileSizeLimitDialog } from "./components/chat/FileSizeLimitDialog.js";
|
|
76
|
+
export { ResourceIframe } from "./components/chat/ResourceIframe.js";
|
|
77
|
+
export { SkillCompletionMenu } from "./components/chat/SkillCompletionMenu.js";
|
|
78
|
+
export type { SkillCompletionMenuRef } from "./components/chat/SkillCompletionMenu.js";
|
|
79
|
+
export { SkillMention, skillMentionSuggestionKey, } from "./components/chat/extensions/skill-mention.js";
|
|
80
|
+
export type { SkillSuggestionItem } from "./components/chat/extensions/skill-mention.js";
|
|
81
|
+
export type { BackgroundTask } from "./schemas/background.js";
|
|
82
|
+
export type { ChatEnd, ContentDelta, LlmResponseDone, SessionStatusEvent, SystemError, ToolCallCreated, ToolResultDelta, ToolResultDone, } from "./schemas/event.js";
|
|
83
|
+
export type { ChatMessage, FileContentPart, ImageUrlContentPart, MessageContent, MessageContentPart, TextContentPart, ToolCallInfo, } from "./schemas/message.js";
|
|
84
|
+
export { SessionInfo, SessionStatus } from "./schemas/session.js";
|
|
85
|
+
export type { ModeId, PrimarySkillParallelMode, PrimarySkillSnapshot, PrimarySkillStageSpec, PrimarySkillStepSpec, SessionDetail, SessionPortMapping, SkillEditorTemplateId, TemplateId, } from "./schemas/session.js";
|
|
86
|
+
export { LayoutType } from "./types/solution.js";
|
|
87
|
+
export type { BizRole, Solution, SolutionAppUiConfig, SolutionAppField, SolutionAppState } from "./types/solution.js";
|
|
88
|
+
export * from "./schemas/studio/resource-base.js";
|
|
89
|
+
export * from "./schemas/studio/database.js";
|
|
90
|
+
export * from "./schemas/studio/tool.js";
|
|
91
|
+
export * from "./schemas/studio/knowledge.js";
|
|
92
|
+
export * from "./schemas/studio/agent.js";
|
|
93
|
+
export * from "./schemas/studio/scene.js";
|
|
94
|
+
export * from "./schemas/studio/env.js";
|
|
95
|
+
export { PartnerSkillFile, PartnerSkillInstallPayload, PartnerSkillInstallResult, PartnerSkillName, SessionSkillFile, SessionSkillName, SessionSkillUploadPayload, SessionSkillUploadResult, } from "./schemas/partner-skill.js";
|
|
96
|
+
export type { PartnerSkillFile as PartnerSkillFileData, PartnerSkillInstallPayload as PartnerSkillInstallPayloadData, PartnerSkillInstallResult as PartnerSkillInstallResultData, PartnerSkillName as PartnerSkillNameData, SessionSkillFile as SessionSkillFileData, SessionSkillName as SessionSkillNameData, SessionSkillUploadPayload as SessionSkillUploadPayloadData, SessionSkillUploadResult as SessionSkillUploadResultData, } from "./schemas/partner-skill.js";
|
|
97
|
+
export { skillDisplayName } from "./schemas/skill.js";
|
|
98
|
+
export type { ParallelMode, SkillDetail, SkillSearchResult, SkillSummary, StageSpec, StepSpec, } from "./schemas/skill.js";
|
|
99
|
+
export type { BladeHubScenarioResource, CreateQuickScenarioPayload, PreviewUrlItem, QuickScenario, UpdateQuickScenarioPayload, } from "./api/scenarios.js";
|
|
100
|
+
export type { ScheduledTaskCreatePayload, ScheduledTaskUpdatePayload, } from "./api/scheduled-tasks.js";
|
|
101
|
+
export { ScheduledTask, ScheduledTaskCalendarItem, ScheduledTaskRun, } from "./schemas/scheduled-task.js";
|
|
102
|
+
export type { ScheduledTask as ScheduledTaskData, ScheduledTaskCalendarItem as ScheduledTaskCalendarItemData, ScheduledTaskRun as ScheduledTaskRunData, } from "./schemas/scheduled-task.js";
|
|
103
|
+
export { Task, TaskStatus } from "./schemas/task.js";
|
|
104
|
+
export type { GisGoal, GisGoalStatus, GisMapCommand, GisResource, GisState, GisTarget, RuntimeConfig, } from "./schemas/gis.js";
|
|
105
|
+
export { cardRegistry, CardJSON } from "./lib/card-registry.js";
|
|
106
|
+
export type { Card, CardComponent, CardComponentProps } from "./lib/card-registry.js";
|
|
107
|
+
export { CardContext, useCardContext } from "./components/card/CardContext.js";
|
|
108
|
+
export { useCardStateStore } from "./stores/card-state-store.js";
|
|
109
|
+
export { useCardState } from "./hooks/use-card-state.js";
|
|
110
|
+
export { useAuthStore } from "./stores/auth-store.js";
|
|
111
|
+
export { useBackgroundStore } from "./stores/background-store.js";
|
|
112
|
+
export { useChatStore } from "./stores/chat-store.js";
|
|
113
|
+
export { type ConnectionStatus, useConnectionStore } from "./stores/connection-store.js";
|
|
114
|
+
export { useRuntimeFeaturesStore } from "./stores/runtime-features-store.js";
|
|
115
|
+
export { type RuntimeEvent, useRuntimeStore } from "./stores/runtime-store.js";
|
|
116
|
+
export { invalidateHomeSidebarSessions, useSessionStore } from "./stores/session-store.js";
|
|
117
|
+
export { useGisStore } from "./stores/gis-store.js";
|
|
118
|
+
export { useTaskStore } from "./stores/task-store.js";
|
|
119
|
+
export { useUiBridgeStore } from "./stores/ui-bridge-store.js";
|
|
120
|
+
export { resolveEffectiveTheme, type ActiveRightTab, type PreviewTarget, useUiStore, } from "./stores/ui-store.js";
|
|
121
|
+
export type * from "./types/index.js";
|