@blade-hq/agent-kit 1.0.25 → 1.0.28

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.
Files changed (287) hide show
  1. package/dist/chunk-7LEKQI47.js +32 -0
  2. package/dist/chunk-7LEKQI47.js.map +1 -0
  3. package/dist/{chunk-3I4ZURKH.js → chunk-BGNKHPCD.js} +223 -50
  4. package/dist/chunk-BGNKHPCD.js.map +1 -0
  5. package/dist/{chunk-4D4EXLVT.js → chunk-DQCXSPHP.js} +2 -2
  6. package/dist/chunk-HCQDDDOX.js +23 -0
  7. package/dist/chunk-HCQDDDOX.js.map +1 -0
  8. package/dist/{chunk-QODAKTG5.js → chunk-JCJFFJ42.js} +2 -31
  9. package/dist/chunk-JCJFFJ42.js.map +1 -0
  10. package/dist/{chunk-XCIDE3JW.js → chunk-OGHUIKCY.js} +7 -7
  11. package/dist/{chunk-WPLEMYL7.js → chunk-PYYDXV2A.js} +2 -2
  12. package/dist/{chunk-VJY6RLYU.js → chunk-TVWC3PED.js} +2 -2
  13. package/dist/{chunk-WVXXQ3KM.js → chunk-UWNQ4PXK.js} +134 -1201
  14. package/dist/chunk-UWNQ4PXK.js.map +1 -0
  15. package/dist/{chunk-M45K3554.js → chunk-YJ6BX3FU.js} +1382 -32
  16. package/dist/chunk-YJ6BX3FU.js.map +1 -0
  17. package/dist/client/auth.d.ts +8 -0
  18. package/dist/client/blade-client.d.ts +82 -0
  19. package/dist/client/index.d.ts +23 -15348
  20. package/dist/client/index.js +3 -1
  21. package/dist/client/resources/api-keys.d.ts +28 -0
  22. package/dist/client/resources/app-dev-templates.d.ts +93 -0
  23. package/dist/client/resources/auth.d.ts +26 -0
  24. package/dist/client/resources/env-buckets.d.ts +20 -0
  25. package/dist/client/resources/gis.d.ts +8 -0
  26. package/dist/client/resources/headless.d.ts +33 -0
  27. package/dist/client/resources/memories.d.ts +63 -0
  28. package/dist/client/resources/models.d.ts +26 -0
  29. package/dist/client/resources/published-apps.d.ts +8 -0
  30. package/dist/client/resources/registry.d.ts +58 -0
  31. package/dist/client/resources/runs.d.ts +8 -0
  32. package/dist/client/resources/scenarios.d.ts +49 -0
  33. package/dist/client/resources/sessions.d.ts +253 -0
  34. package/dist/client/resources/skills.d.ts +38 -0
  35. package/dist/client/resources/solutions.d.ts +31 -0
  36. package/dist/client/resources/user-preferences.d.ts +26 -0
  37. package/dist/client/rest.d.ts +19 -0
  38. package/dist/client/shared/projection/builder.d.ts +59 -0
  39. package/dist/client/shared/projection/helpers.d.ts +34 -0
  40. package/dist/client/shared/projection/history.d.ts +12 -0
  41. package/dist/client/shared/projection/index.d.ts +3 -0
  42. package/dist/client/shared/projection/state.d.ts +22 -0
  43. package/dist/client/socket.d.ts +9 -0
  44. package/dist/client/types/index.d.ts +8 -0
  45. package/dist/client/types/rest.d.ts +16316 -0
  46. package/dist/client/types/sdk-profile.d.ts +47 -0
  47. package/dist/client/types/socket-events.d.ts +389 -0
  48. package/dist/react/api/api-keys.d.ts +6 -0
  49. package/dist/react/api/app-dev-templates.d.ts +5 -0
  50. package/dist/react/api/auth.d.ts +7 -0
  51. package/dist/react/api/client.d.ts +8 -0
  52. package/dist/react/api/env-buckets.d.ts +10 -0
  53. package/dist/react/api/gis-api.d.ts +4 -0
  54. package/dist/react/api/memories.d.ts +14 -0
  55. package/dist/react/api/model-config.d.ts +68 -0
  56. package/dist/react/api/models.d.ts +13 -0
  57. package/dist/react/api/partner-skill.d.ts +2 -0
  58. package/dist/react/api/prod-solution.d.ts +456 -0
  59. package/dist/react/api/published-apps.d.ts +21 -0
  60. package/dist/react/api/published-apps.js +14 -0
  61. package/dist/react/api/published-apps.js.map +1 -0
  62. package/dist/react/api/registry.d.ts +46 -0
  63. package/dist/react/api/scenarios.d.ts +9 -0
  64. package/dist/react/api/scheduled-tasks.d.ts +24 -0
  65. package/dist/react/api/session-skill.d.ts +2 -0
  66. package/dist/react/api/sessions.d.ts +109 -0
  67. package/dist/react/api/sessions.js +93 -0
  68. package/dist/react/api/sessions.js.map +1 -0
  69. package/dist/react/api/skills.d.ts +27 -0
  70. package/dist/react/api/socket.d.ts +5 -0
  71. package/dist/react/api/solutions.d.ts +11 -0
  72. package/dist/react/api/user-preferences.d.ts +8 -0
  73. package/dist/react/asr/VoiceWaveform.d.ts +10 -0
  74. package/dist/react/asr/use-tiptap-voice-input.d.ts +29 -0
  75. package/dist/react/asr/use-voice-input.d.ts +17 -0
  76. package/dist/react/asr/voice-input-support.d.ts +5 -0
  77. package/dist/react/bootstrap.d.ts +4 -0
  78. package/dist/react/cards/register.d.ts +1 -2
  79. package/dist/react/cards/register.js +3 -2
  80. package/dist/react/cards/register.js.map +1 -1
  81. package/dist/react/components/ai-elements/file-tree.d.ts +26 -0
  82. package/dist/react/components/ai-elements/reasoning.d.ts +32 -0
  83. package/dist/react/components/ai-elements/shimmer.d.ts +11 -0
  84. package/dist/react/components/card/CardCodeBlock.d.ts +5 -0
  85. package/dist/react/components/card/CardContext.d.ts +7 -0
  86. package/dist/react/components/card/CardRenderer.d.ts +7 -0
  87. package/dist/react/components/card/CardStates.d.ts +8 -0
  88. package/dist/react/components/card/cards/attraction-card.d.ts +2 -0
  89. package/dist/react/components/card/cards/cite-card.d.ts +10 -0
  90. package/dist/react/components/card/cards/comprehensive-analysis-card.d.ts +2 -0
  91. package/dist/react/components/card/cards/conflict-detection-card.d.ts +4 -0
  92. package/dist/react/components/card/cards/counter.d.ts +2 -0
  93. package/dist/react/components/card/cards/damage-effect-card.d.ts +4 -0
  94. package/dist/react/components/card/cards/destination-card.d.ts +2 -0
  95. package/dist/react/components/card/cards/diff-card.d.ts +2 -0
  96. package/dist/react/components/card/cards/execution-order-card.d.ts +2 -0
  97. package/dist/react/components/card/cards/experience-card-with-options.d.ts +4 -0
  98. package/dist/react/components/card/cards/flight-card.d.ts +2 -0
  99. package/dist/react/components/card/cards/hotel-card.d.ts +2 -0
  100. package/dist/react/components/card/cards/kill-chain-card.d.ts +2 -0
  101. package/dist/react/components/card/cards/kill-chain-types.d.ts +157 -0
  102. package/dist/react/components/card/cards/map-card.d.ts +2 -0
  103. package/dist/react/components/card/cards/order-status-card.d.ts +2 -0
  104. package/dist/react/components/card/cards/patch-card.d.ts +15 -0
  105. package/dist/react/components/card/cards/product-recommendation-card.d.ts +2 -0
  106. package/dist/react/components/card/cards/reflection-optimization-card.d.ts +2 -0
  107. package/dist/react/components/card/cards/resolution-modifications-card.d.ts +2 -0
  108. package/dist/react/components/card/cards/resolution-summary-card.d.ts +2 -0
  109. package/dist/react/components/card/cards/restaurant-card.d.ts +2 -0
  110. package/dist/react/components/card/cards/shopping-list-card.d.ts +2 -0
  111. package/dist/react/components/card/cards/simulation-event-card.d.ts +4 -0
  112. package/dist/react/components/card/cards/survival-effect-card.d.ts +4 -0
  113. package/dist/react/components/card/cards/travel-itinerary-card.d.ts +2 -0
  114. package/dist/react/components/card/register.d.ts +1 -0
  115. package/dist/react/components/chat/AgentLoopBlock.d.ts +8 -0
  116. package/dist/react/components/chat/AskUserQuestionBlock.d.ts +32 -0
  117. package/dist/react/components/chat/AssistantTurnBlock.d.ts +28 -0
  118. package/dist/react/components/chat/AttachmentPreviewDialog.d.ts +26 -0
  119. package/dist/react/components/chat/BackgroundTasksPill.d.ts +3 -0
  120. package/dist/react/components/chat/ChatInput.d.ts +94 -0
  121. package/dist/react/components/chat/ChatView.d.ts +18 -0
  122. package/dist/react/components/chat/CompactionCard.d.ts +6 -0
  123. package/dist/react/components/chat/ConnectionBanner.d.ts +1 -0
  124. package/dist/react/components/chat/FileCompletionMenu.d.ts +13 -0
  125. package/dist/react/components/chat/FileSizeLimitDialog.d.ts +9 -0
  126. package/dist/react/components/chat/ImageLightbox.d.ts +11 -0
  127. package/dist/react/components/chat/MessageActions.d.ts +6 -0
  128. package/dist/react/components/chat/MessageContextPills.d.ts +6 -0
  129. package/dist/react/components/chat/MessageFileAttachmentList.d.ts +13 -0
  130. package/dist/react/components/chat/MessageList.d.ts +15 -0
  131. package/dist/react/components/chat/ProgressCircle.d.ts +12 -0
  132. package/dist/react/components/chat/RenderErrorBoundary.d.ts +19 -0
  133. package/dist/react/components/chat/ResourceIframe.d.ts +5 -0
  134. package/dist/react/components/chat/Shimmer.d.ts +6 -0
  135. package/dist/react/components/chat/SkillCompletionMenu.d.ts +9 -0
  136. package/dist/react/components/chat/SkillStatusBar.d.ts +8 -0
  137. package/dist/react/components/chat/StickyStatusBar.d.ts +10 -0
  138. package/dist/react/components/chat/TextAttachmentPills.d.ts +10 -0
  139. package/dist/react/components/chat/ThinkingToggle.d.ts +7 -0
  140. package/dist/react/components/chat/ToolCallBlock.d.ts +18 -0
  141. package/dist/react/components/chat/TurnNavRail.d.ts +11 -0
  142. package/dist/react/components/chat/UserMessageBubble.d.ts +20 -0
  143. package/dist/react/components/chat/WhatIfUserBubble.d.ts +13 -0
  144. package/dist/react/components/chat/customization.d.ts +82 -0
  145. package/dist/react/components/chat/display-utils.d.ts +35 -0
  146. package/dist/react/components/chat/extensions/file-mention.d.ts +12 -0
  147. package/dist/react/components/chat/extensions/skill-mention.d.ts +25 -0
  148. package/dist/react/components/chat/index.d.ts +16 -115
  149. package/dist/react/components/chat/index.js +8 -7
  150. package/dist/react/components/chat/scroll-anchor.d.ts +8 -0
  151. package/dist/react/components/chat/tool-renderers/BashRenderer.d.ts +2 -0
  152. package/dist/react/components/chat/tool-renderers/FileEditRenderer.d.ts +2 -0
  153. package/dist/react/components/chat/tool-renderers/FileReadRenderer.d.ts +2 -0
  154. package/dist/react/components/chat/tool-renderers/SearchRenderer.d.ts +2 -0
  155. package/dist/react/components/chat/tool-renderers/SubmitResultRenderer.d.ts +2 -0
  156. package/dist/react/components/chat/tool-renderers/registry.d.ts +9 -0
  157. package/dist/react/components/chat/tool-renderers/shared.d.ts +26 -0
  158. package/dist/react/components/chat/whatif-quote-context.d.ts +15 -0
  159. package/dist/react/components/markdown/ExternalLinkDialog.d.ts +8 -0
  160. package/dist/react/components/markdown/FileCardComponent.d.ts +10 -0
  161. package/dist/react/components/markdown/MarkdownContent.d.ts +19 -0
  162. package/dist/react/components/model/ModelSelector.d.ts +9 -0
  163. package/dist/react/components/plan/PlanSummaryCard.d.ts +8 -0
  164. package/dist/react/components/plan/PlanVisualization.d.ts +13 -0
  165. package/dist/react/components/plan/debug-log.d.ts +21 -0
  166. package/dist/react/components/plan/extract-plan-messages.d.ts +2 -0
  167. package/dist/react/components/plan/index.d.ts +6 -110
  168. package/dist/react/components/plan/index.js +7 -6
  169. package/dist/react/components/plan/index.js.map +1 -1
  170. package/dist/react/components/plan/parse-plan-messages.d.ts +10 -0
  171. package/dist/react/components/plan/parse-plan-tree.d.ts +16 -0
  172. package/dist/react/components/plan/phases/PlanMindMap.d.ts +8 -0
  173. package/dist/react/components/plan/phases/PlanStatusIcon.d.ts +5 -0
  174. package/dist/react/components/plan/phases/PlanTree.d.ts +8 -0
  175. package/dist/react/components/plan/phases/SkillAnalysis.d.ts +7 -0
  176. package/dist/react/components/plan/phases/SkillDiscovery.d.ts +10 -0
  177. package/dist/react/components/plan/types.d.ts +56 -0
  178. package/dist/react/components/session/SessionDetail.d.ts +8 -0
  179. package/dist/react/components/session/SessionList.d.ts +9 -0
  180. package/dist/react/components/session/SessionListItem.d.ts +8 -0
  181. package/dist/react/components/session/StatusBadge.d.ts +3 -0
  182. package/dist/react/components/session/index.d.ts +5 -53
  183. package/dist/react/components/session/index.js +6 -5
  184. package/dist/react/components/session/index.js.map +1 -1
  185. package/dist/react/components/session/session-utils.d.ts +19 -0
  186. package/dist/react/components/ui/collapsible.d.ts +5 -0
  187. package/dist/react/components/workspace/FileTree.d.ts +21 -0
  188. package/dist/react/components/workspace/WorkspaceFilesPanel.d.ts +30 -0
  189. package/dist/react/components/workspace/file-icon-assets.d.ts +3 -0
  190. package/dist/react/components/workspace/index.d.ts +2 -59
  191. package/dist/react/components/workspace/index.js +6 -5
  192. package/dist/react/components/workspace/index.js.map +1 -1
  193. package/dist/react/context.d.ts +2 -0
  194. package/dist/react/devtools/bridge-devtools/BridgeDevtoolsFab.d.ts +1 -0
  195. package/dist/react/devtools/bridge-devtools/index.d.ts +3 -36
  196. package/dist/react/devtools/bridge-devtools/mount.d.ts +1 -0
  197. package/dist/react/devtools/bridge-devtools/store.d.ts +15 -0
  198. package/dist/react/devtools/bridge-devtools/tap.d.ts +5 -0
  199. package/dist/react/devtools/bridge-devtools/types.d.ts +29 -0
  200. package/dist/react/hooks/use-background-tasks.d.ts +7 -0
  201. package/dist/react/hooks/use-card-state.d.ts +1 -0
  202. package/dist/react/hooks/use-chat.d.ts +13 -0
  203. package/dist/react/hooks/use-check-skill-file.d.ts +4 -0
  204. package/dist/react/hooks/use-check-solution-file.d.ts +4 -0
  205. package/dist/react/hooks/use-context-stats.d.ts +7 -0
  206. package/dist/react/hooks/use-gis.d.ts +17 -0
  207. package/dist/react/hooks/use-global-skill-stats.d.ts +6 -0
  208. package/dist/react/hooks/use-input-history.d.ts +7 -0
  209. package/dist/react/hooks/use-model-preferences.d.ts +18 -0
  210. package/dist/react/hooks/use-registry.d.ts +53 -0
  211. package/dist/react/hooks/use-resolved-model.d.ts +6 -0
  212. package/dist/react/hooks/use-session.d.ts +10 -0
  213. package/dist/react/hooks/use-skill-stats.d.ts +7 -0
  214. package/dist/react/hooks/use-skills.d.ts +6 -0
  215. package/dist/react/hooks/use-token-pressure.d.ts +6 -0
  216. package/dist/react/index.d.ts +124 -2034
  217. package/dist/react/index.js +125 -50
  218. package/dist/react/index.js.map +1 -1
  219. package/dist/react/lib/analytics.d.ts +7 -0
  220. package/dist/react/lib/attachment-upload.d.ts +10 -0
  221. package/dist/react/lib/card-registry.d.ts +35 -0
  222. package/dist/react/lib/chat.d.ts +48 -0
  223. package/dist/react/lib/code-highlight.d.ts +9 -0
  224. package/dist/react/lib/html-element-selection.d.ts +140 -0
  225. package/dist/react/lib/html-source-locator.d.ts +16 -0
  226. package/dist/react/lib/open-session-file.d.ts +2 -0
  227. package/dist/react/lib/parent-bridge.d.ts +22 -0
  228. package/dist/react/lib/preview-dispatch.d.ts +24 -0
  229. package/dist/react/lib/resource-bridge.d.ts +11 -0
  230. package/dist/react/lib/session-file-preview.d.ts +8 -0
  231. package/dist/react/lib/step-ranges.d.ts +42 -0
  232. package/dist/react/lib/tool-preview.d.ts +2 -0
  233. package/dist/react/lib/ui-meta.d.ts +9 -0
  234. package/dist/react/lib/utils.d.ts +3 -0
  235. package/dist/react/lib/whatif-prompt.d.ts +45 -0
  236. package/dist/react/provider.d.ts +8 -0
  237. package/dist/react/routes.d.ts +1 -0
  238. package/dist/react/schemas/background.d.ts +16 -0
  239. package/dist/react/schemas/event.d.ts +51 -0
  240. package/dist/react/schemas/gis.d.ts +50 -0
  241. package/dist/{AskUserQuestionBlock---kOTouk.d.ts → react/schemas/message.d.ts} +15 -48
  242. package/dist/react/schemas/partner-skill.d.ts +46 -0
  243. package/dist/{projection-BWYEFYNn.d.ts → react/schemas/projection.d.ts} +12 -10
  244. package/dist/react/schemas/published-apps.d.ts +38 -0
  245. package/dist/react/schemas/scheduled-task.d.ts +32 -0
  246. package/dist/react/schemas/session.d.ts +121 -0
  247. package/dist/react/schemas/skill.d.ts +50 -0
  248. package/dist/react/schemas/studio/agent.d.ts +12 -0
  249. package/dist/react/schemas/studio/database.d.ts +39 -0
  250. package/dist/react/schemas/studio/env.d.ts +7 -0
  251. package/dist/react/schemas/studio/knowledge.d.ts +18 -0
  252. package/dist/react/schemas/studio/resource-base.d.ts +7 -0
  253. package/dist/react/schemas/studio/scene.d.ts +12 -0
  254. package/dist/react/schemas/studio/tool.d.ts +25 -0
  255. package/dist/react/schemas/task.d.ts +12 -0
  256. package/dist/react/sockets/event-bridge.d.ts +115 -0
  257. package/dist/react/sockets/socket-state.d.ts +4 -0
  258. package/dist/react/stores/answer-callback-store.d.ts +9 -0
  259. package/dist/react/stores/auth-store.d.ts +38 -0
  260. package/dist/react/stores/background-store.d.ts +13 -0
  261. package/dist/react/stores/card-state-store.d.ts +10 -0
  262. package/dist/react/stores/chat-store.d.ts +34 -0
  263. package/dist/react/stores/client-aware.d.ts +7 -0
  264. package/dist/react/stores/connection-store.d.ts +14 -0
  265. package/dist/react/stores/gis-store.d.ts +19 -0
  266. package/dist/react/stores/index.d.ts +14 -0
  267. package/dist/react/stores/runtime-features-store.d.ts +21 -0
  268. package/dist/react/stores/runtime-store.d.ts +18 -0
  269. package/dist/react/stores/session-store.d.ts +44 -0
  270. package/dist/react/stores/task-store.d.ts +9 -0
  271. package/dist/react/stores/ui-bridge-store.d.ts +32 -0
  272. package/dist/react/stores/ui-store.d.ts +69 -0
  273. package/dist/react/types/index.d.ts +7 -0
  274. package/dist/react/types/solution.d.ts +101 -0
  275. package/package.json +41 -11
  276. package/dist/SkillStatusBar-U6fbQxMu.d.ts +0 -340
  277. package/dist/blade-client-qTOovekU.d.ts +0 -1609
  278. package/dist/chunk-3I4ZURKH.js.map +0 -1
  279. package/dist/chunk-M45K3554.js.map +0 -1
  280. package/dist/chunk-QODAKTG5.js.map +0 -1
  281. package/dist/chunk-WVXXQ3KM.js.map +0 -1
  282. package/dist/session-CNnotR90.d.ts +0 -227
  283. package/dist/sessions-BvfLGbjw.d.ts +0 -177
  284. /package/dist/{chunk-4D4EXLVT.js.map → chunk-DQCXSPHP.js.map} +0 -0
  285. /package/dist/{chunk-XCIDE3JW.js.map → chunk-OGHUIKCY.js.map} +0 -0
  286. /package/dist/{chunk-WPLEMYL7.js.map → chunk-PYYDXV2A.js.map} +0 -0
  287. /package/dist/{chunk-VJY6RLYU.js.map → chunk-TVWC3PED.js.map} +0 -0
@@ -1,24 +1,22 @@
1
- import { P as PendingQuestionRef, C as ContentBlock } from './projection-BWYEFYNn.js';
2
- import * as react_jsx_runtime from 'react/jsx-runtime';
3
-
4
- interface TextContentPart {
1
+ import type { ContentBlock, PendingQuestionRef, ToolBridgeContent } from "./projection.js";
2
+ export interface TextContentPart {
5
3
  type: "text";
6
4
  text: string;
7
5
  }
8
- interface ImageUrlContentPart {
6
+ export interface ImageUrlContentPart {
9
7
  type: "image_url";
10
8
  image_url: {
11
9
  url: string;
12
10
  };
13
11
  }
14
- interface FileContentPart {
12
+ export interface FileContentPart {
15
13
  type: "file";
16
14
  name: string;
17
15
  data: string;
18
16
  }
19
- type MessageContentPart = TextContentPart | ImageUrlContentPart | FileContentPart;
20
- type MessageContent = string | MessageContentPart[];
21
- interface ToolCallInfo {
17
+ export type MessageContentPart = TextContentPart | ImageUrlContentPart | FileContentPart;
18
+ export type MessageContent = string | MessageContentPart[];
19
+ export interface ToolCallInfo {
22
20
  id: string;
23
21
  name: string;
24
22
  display_name?: string | null;
@@ -28,13 +26,15 @@ interface ToolCallInfo {
28
26
  duration_ms?: number | null;
29
27
  pending_question_ref?: PendingQuestionRef | null;
30
28
  }
31
-
32
- interface MemoryRefInfo {
29
+ export type { ToolBridgeContent };
30
+ /** Derive tool status from the result content string. */
31
+ export declare function inferToolStatus(resultStr: string): "done" | "error" | "cancelled";
32
+ export interface MemoryRefInfo {
33
33
  id: number;
34
34
  content_preview: string;
35
35
  skill_name?: string | null;
36
36
  }
37
- interface CompactionInfo {
37
+ export interface CompactionInfo {
38
38
  compaction_id: string;
39
39
  summary_preview?: string | null;
40
40
  summary_full?: string | null;
@@ -48,20 +48,20 @@ interface CompactionInfo {
48
48
  failure_reason?: string | null;
49
49
  fallback_applied?: boolean | null;
50
50
  }
51
- interface ArchivedFileInfo {
51
+ export interface ArchivedFileInfo {
52
52
  tool_name?: string | null;
53
53
  filename?: string | null;
54
54
  relative_path?: string | null;
55
55
  size_bytes?: number | null;
56
56
  }
57
- interface ArchivedToolCallInfo {
57
+ export interface ArchivedToolCallInfo {
58
58
  tool_call_id?: string | null;
59
59
  tool_name?: string | null;
60
60
  archive_path?: string | null;
61
61
  replacement_content?: string | null;
62
62
  entry_id?: string | null;
63
63
  }
64
- interface ChatMessage {
64
+ export interface ChatMessage {
65
65
  role: "user" | "assistant" | "tool" | "error";
66
66
  content: MessageContent;
67
67
  reasoning?: string;
@@ -81,36 +81,3 @@ interface ChatMessage {
81
81
  /** Compaction metadata for compaction turns. */
82
82
  compaction?: CompactionInfo;
83
83
  }
84
-
85
- interface OptionItem {
86
- label: string;
87
- description: string;
88
- }
89
- interface QuestionItem {
90
- question: string;
91
- options: OptionItem[];
92
- multiSelect?: boolean;
93
- }
94
- interface SourceLoopInfo {
95
- loop_name: string;
96
- description: string;
97
- }
98
- interface AskUserQuestionData {
99
- questions: QuestionItem[];
100
- source_loop?: SourceLoopInfo | null;
101
- }
102
- type AskUserAnswerData = {
103
- selections: Record<number, number[]>;
104
- custom: Record<number, string>;
105
- };
106
- interface Props {
107
- data: AskUserQuestionData;
108
- answered: boolean;
109
- toolCallId: string;
110
- sessionStatus: string;
111
- answerData?: AskUserAnswerData | undefined;
112
- onAnswer?: (answer: string, toolCallId: string, answerData: AskUserAnswerData) => void;
113
- }
114
- declare function AskUserQuestionBlock({ data, answered, toolCallId, sessionStatus, answerData, onAnswer, }: Props): react_jsx_runtime.JSX.Element;
115
-
116
- export { type AskUserAnswerData as A, type ChatMessage as C, type FileContentPart as F, type ImageUrlContentPart as I, type MessageContent as M, type ToolCallInfo as T, type CompactionInfo as a, AskUserQuestionBlock as b, type MessageContentPart as c, type TextContentPart as d };
@@ -0,0 +1,46 @@
1
+ export declare const PartnerSkillName: import("arktype/internal/variants/string.ts").StringType<`${string}/${string}`, {}>;
2
+ export type PartnerSkillName = typeof PartnerSkillName.infer;
3
+ export declare const SessionSkillName: import("arktype/internal/variants/string.ts").StringType<`${string}/${string}`, {}>;
4
+ export type SessionSkillName = PartnerSkillName;
5
+ export declare const PartnerSkillFile: import("arktype/internal/variants/object.ts").ObjectType<{
6
+ path: string;
7
+ content: string;
8
+ }, {}>;
9
+ export type PartnerSkillFile = typeof PartnerSkillFile.infer;
10
+ export declare const SessionSkillFile: import("arktype/internal/variants/object.ts").ObjectType<{
11
+ path: string;
12
+ content: string;
13
+ }, {}>;
14
+ export type SessionSkillFile = PartnerSkillFile;
15
+ export declare const PartnerSkillInstallPayload: import("arktype/internal/variants/object.ts").ObjectType<{
16
+ name: `${string}/${string}`;
17
+ files: {
18
+ path: string;
19
+ content: string;
20
+ }[];
21
+ }, {}>;
22
+ export type PartnerSkillInstallPayload = typeof PartnerSkillInstallPayload.infer;
23
+ export declare const SessionSkillUploadPayload: import("arktype/internal/variants/object.ts").ObjectType<{
24
+ name: `${string}/${string}`;
25
+ files: {
26
+ path: string;
27
+ content: string;
28
+ }[];
29
+ }, {}>;
30
+ export type SessionSkillUploadPayload = PartnerSkillInstallPayload;
31
+ export declare const PartnerSkillInstallResult: import("arktype/internal/variants/object.ts").ObjectType<{
32
+ name: `${string}/${string}`;
33
+ skill_dir: string;
34
+ file_count: number;
35
+ overwritten: boolean;
36
+ }, {}>;
37
+ export type PartnerSkillInstallResult = typeof PartnerSkillInstallResult.infer;
38
+ export declare const SessionSkillUploadResult: import("arktype/internal/variants/object.ts").ObjectType<{
39
+ name: `${string}/${string}`;
40
+ skill_dir: string;
41
+ file_count: number;
42
+ overwritten: boolean;
43
+ }, {}>;
44
+ export type SessionSkillUploadResult = PartnerSkillInstallResult;
45
+ export declare function parseSessionSkillUploadPayload(payload: unknown): SessionSkillUploadPayload;
46
+ export declare function parsePartnerSkillInstallPayload(payload: unknown): PartnerSkillInstallPayload;
@@ -1,16 +1,20 @@
1
- interface ContentBlock {
1
+ export interface ToolBridgeContent {
2
+ action: string;
3
+ payload?: unknown;
4
+ }
5
+ export interface ContentBlock {
2
6
  type: "text" | "thinking" | "tool_use" | "tool_result" | "tool_ui" | "tool_bridge" | "system_notification" | "mode_change" | "plan_status" | "ask_user_answer";
3
7
  content: unknown;
4
8
  tool_call_id?: string | null;
5
9
  tool_name?: string | null;
6
10
  display_name?: string | null;
7
11
  }
8
- interface PendingQuestionRef {
12
+ export interface PendingQuestionRef {
9
13
  child_loop_name: string;
10
14
  child_tool_call_id: string;
11
15
  description?: string | null;
12
16
  }
13
- interface ToolCallProjection {
17
+ export interface ToolCallProjection {
14
18
  id: string;
15
19
  tool_name: string;
16
20
  display_name: string;
@@ -20,12 +24,12 @@ interface ToolCallProjection {
20
24
  duration_ms?: number | null;
21
25
  pending_question_ref?: PendingQuestionRef | null;
22
26
  }
23
- interface MemoryRef {
27
+ export interface MemoryRef {
24
28
  id: number;
25
29
  content_preview: string;
26
30
  skill_name?: string | null;
27
31
  }
28
- interface TurnProjection {
32
+ export interface TurnProjection {
29
33
  id: string;
30
34
  sequence: number;
31
35
  turn_id: string;
@@ -55,20 +59,20 @@ interface TurnProjection {
55
59
  failure_reason?: string | null;
56
60
  fallback_applied?: boolean | null;
57
61
  }
58
- interface ArchivedFileInfo {
62
+ export interface ArchivedFileInfo {
59
63
  tool_name?: string | null;
60
64
  filename?: string | null;
61
65
  relative_path?: string | null;
62
66
  size_bytes?: number | null;
63
67
  }
64
- interface ArchivedToolCallInfo {
68
+ export interface ArchivedToolCallInfo {
65
69
  tool_call_id?: string | null;
66
70
  tool_name?: string | null;
67
71
  archive_path?: string | null;
68
72
  replacement_content?: string | null;
69
73
  entry_id?: string | null;
70
74
  }
71
- interface PatchEnvelope {
75
+ export interface PatchEnvelope {
72
76
  sequence: number;
73
77
  turn_id: string;
74
78
  loop_id: string;
@@ -81,5 +85,3 @@ interface PatchEnvelope {
81
85
  };
82
86
  };
83
87
  }
84
-
85
- export type { ContentBlock as C, PendingQuestionRef as P, TurnProjection as T, PatchEnvelope as a, ToolCallProjection as b };
@@ -0,0 +1,38 @@
1
+ export declare const PublishedAppStatus: import("arktype/internal/variants/string.ts").StringType<"exited" | "restarting" | "running", {}>;
2
+ export type PublishedAppStatus = typeof PublishedAppStatus.infer;
3
+ export declare const PublishedApp: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ session_id: string;
5
+ name: string;
6
+ url: string;
7
+ host_port: number;
8
+ app_port: number;
9
+ icon: string;
10
+ open_in: string;
11
+ created_at: number;
12
+ status: "exited" | "restarting" | "running";
13
+ os_app_id: string;
14
+ os_registered: boolean;
15
+ }, {}>;
16
+ export type PublishedApp = typeof PublishedApp.infer;
17
+ export declare const PublishedAppListResponse: import("arktype/internal/variants/object.ts").ObjectType<{
18
+ items: {
19
+ session_id: string;
20
+ name: string;
21
+ url: string;
22
+ host_port: number;
23
+ app_port: number;
24
+ icon: string;
25
+ open_in: string;
26
+ created_at: number;
27
+ status: "exited" | "restarting" | "running";
28
+ os_app_id: string;
29
+ os_registered: boolean;
30
+ }[];
31
+ }, {}>;
32
+ export type PublishedAppListResponse = typeof PublishedAppListResponse.infer;
33
+ export declare const UnpublishAppResponse: import("arktype/internal/variants/object.ts").ObjectType<{
34
+ ok: boolean;
35
+ os_app_id?: string | undefined;
36
+ os_registered?: boolean | undefined;
37
+ }, {}>;
38
+ export type UnpublishAppResponse = typeof UnpublishAppResponse.infer;
@@ -0,0 +1,32 @@
1
+ export declare const ScheduledTask: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ id: string;
3
+ title: string;
4
+ prompt: string;
5
+ cron: string;
6
+ timezone: string;
7
+ enabled: boolean;
8
+ expires_at: string | null;
9
+ skip_confirmations: boolean;
10
+ model: string | null;
11
+ next_run_at: string | null;
12
+ last_run_at: string | null;
13
+ created_at: string;
14
+ updated_at: string;
15
+ }, {}>;
16
+ export type ScheduledTask = typeof ScheduledTask.infer;
17
+ export declare const ScheduledTaskRun: import("arktype/internal/variants/object.ts").ObjectType<{
18
+ id: string;
19
+ task_id: string;
20
+ session_id: string | null;
21
+ status: string;
22
+ error: string | null;
23
+ triggered_at: string;
24
+ finished_at: string | null;
25
+ }, {}>;
26
+ export type ScheduledTaskRun = typeof ScheduledTaskRun.infer;
27
+ export declare const ScheduledTaskCalendarItem: import("arktype/internal/variants/object.ts").ObjectType<{
28
+ task_id: string;
29
+ title: string;
30
+ occurrences: string[];
31
+ }, {}>;
32
+ export type ScheduledTaskCalendarItem = typeof ScheduledTaskCalendarItem.infer;
@@ -0,0 +1,121 @@
1
+ import type { Solution } from "../types/solution.js";
2
+ export declare const SessionStatus: import("arktype/internal/variants/string.ts").StringType<"completed" | "created" | "failed" | "interrupted" | "running" | "waiting_for_input", {}>;
3
+ export type SessionStatus = typeof SessionStatus.infer;
4
+ export type TemplateId = "default" | "skill_editor" | "ship_attack";
5
+ export type SkillEditorTemplateId = "skill_editor";
6
+ export type ModeId = "planning" | "executing";
7
+ export interface ReplayState {
8
+ source_session_id?: string;
9
+ status?: "replay" | "autonomous";
10
+ speed?: 1 | 2 | 5;
11
+ next_source_entry_id?: string | null;
12
+ ended_at?: string | null;
13
+ autonomous_reason?: string | null;
14
+ }
15
+ export interface SessionPortMapping {
16
+ container_port: number;
17
+ host_port: number;
18
+ }
19
+ /**
20
+ * 列表搜索时单条会话的命中信息。
21
+ * - field='title':关键词出现在 intent 里,snippet 为 null(标题本身就在 UI 上)
22
+ * - field='content':关键词出现在历史消息里,snippet 含截窗预览与角色
23
+ */
24
+ export interface SessionSearchMatch {
25
+ field: "title" | "content";
26
+ snippet: {
27
+ role: string;
28
+ text: string;
29
+ } | null;
30
+ }
31
+ export declare const SessionInfo: import("arktype/internal/variants/object.ts").ObjectType<{
32
+ id: string;
33
+ intent: string;
34
+ status: "completed" | "created" | "failed" | "interrupted" | "running" | "waiting_for_input";
35
+ created_at: string;
36
+ updated_at: string;
37
+ shared?: boolean | undefined;
38
+ memory_enabled?: boolean | undefined;
39
+ is_persistent?: boolean | undefined;
40
+ is_headless?: boolean | undefined;
41
+ viewer_role?: "owner" | "viewer" | undefined;
42
+ template_id?: string | null | undefined;
43
+ model?: string | null | undefined;
44
+ enable_thinking?: boolean | null | undefined;
45
+ solution_id?: string | null | undefined;
46
+ biz_role_id?: string | null | undefined;
47
+ solution?: unknown;
48
+ plan_summary?: string | null | undefined;
49
+ primary_skill_id?: string | null | undefined;
50
+ bound_skill_id?: string | null | undefined;
51
+ replay_state?: unknown;
52
+ is_pinned?: boolean | undefined;
53
+ pinned_at?: string | null | undefined;
54
+ is_example?: boolean | undefined;
55
+ ports?: unknown;
56
+ disable_tools?: string[] | undefined;
57
+ match?: unknown;
58
+ }, {}>;
59
+ export type SessionInfo = Omit<typeof SessionInfo.infer, "template_id" | "solution" | "ports" | "match"> & {
60
+ shared?: boolean;
61
+ memory_enabled?: boolean;
62
+ is_persistent?: boolean;
63
+ is_headless?: boolean;
64
+ viewer_role?: "owner" | "viewer";
65
+ template_id?: TemplateId | null;
66
+ model?: string | null;
67
+ enable_thinking?: boolean | null;
68
+ solution_id?: string | null;
69
+ biz_role_id?: string | null;
70
+ solution?: Solution | null;
71
+ primary_skill_id?: string | null;
72
+ bound_skill_id?: string | null;
73
+ replay_state?: ReplayState | null;
74
+ is_pinned?: boolean;
75
+ pinned_at?: string | null;
76
+ is_example?: boolean;
77
+ ports?: SessionPortMapping[];
78
+ disable_tools?: string[];
79
+ /** 仅在带 q 搜索的列表响应中出现;普通列表里此字段缺省。 */
80
+ match?: SessionSearchMatch | null;
81
+ };
82
+ /**
83
+ * 主 skill 配置快照(v2)。创建 session 时从 SKILL.md frontmatter 抽出并
84
+ * 固化到 session_root/.blade/primary-skill.json;ship-attack 页面骨架的唯
85
+ * 一数据源。
86
+ */
87
+ export interface PrimarySkillStepSpec {
88
+ n: number;
89
+ label: string;
90
+ }
91
+ export interface PrimarySkillStageSpec {
92
+ id: string;
93
+ name: string;
94
+ steps: PrimarySkillStepSpec[];
95
+ }
96
+ export interface PrimarySkillParallelMode {
97
+ id: string;
98
+ name: string;
99
+ prompt_hint: string;
100
+ }
101
+ export interface PrimarySkillSnapshot {
102
+ version: number;
103
+ skill_id: string;
104
+ title: string;
105
+ description: string;
106
+ stages: PrimarySkillStageSpec[];
107
+ parallel_modes: PrimarySkillParallelMode[];
108
+ captured_at: string;
109
+ }
110
+ /**
111
+ * 单 session detail(GET /api/sessions/:id)。列表接口返回 SessionInfo,
112
+ * detail 在此基础上附加 primary_skill_snapshot。
113
+ */
114
+ export interface SessionDetail extends SessionInfo {
115
+ primary_skill_snapshot?: PrimarySkillSnapshot | null;
116
+ /**
117
+ * 会话级环境变量(owner-only)。后端仅在 GET detail 和 PUT /env 响应中返回,
118
+ * 列表/搜索响应不带此字段。调用 setSessionEnv 后可类型安全地读回。
119
+ */
120
+ env?: Record<string, string>;
121
+ }
@@ -0,0 +1,50 @@
1
+ export interface SkillSummary {
2
+ skill_id: string;
3
+ display_name: string;
4
+ dir_name: string;
5
+ description: string;
6
+ path: string;
7
+ references: string[];
8
+ local: boolean;
9
+ }
10
+ export interface SkillSearchResult {
11
+ skill_id: string;
12
+ display_name: string;
13
+ dir_name: string;
14
+ description: string;
15
+ local: boolean;
16
+ }
17
+ type SkillDisplayTarget = {
18
+ skill_id?: string | null;
19
+ display_name?: string | null;
20
+ skillId?: string | null;
21
+ displayName?: string | null;
22
+ };
23
+ export declare function skillDisplayName(skill: SkillDisplayTarget): string;
24
+ export interface SkillStats {
25
+ loaded_skill_count: number;
26
+ loaded_skill_names: string[];
27
+ remote_configured: boolean;
28
+ remote_connected: boolean;
29
+ installed_skill_count: number;
30
+ }
31
+ export interface StepSpec {
32
+ n: number;
33
+ label: string;
34
+ }
35
+ export interface StageSpec {
36
+ id: string;
37
+ name: string;
38
+ steps: StepSpec[];
39
+ }
40
+ export interface ParallelMode {
41
+ id: string;
42
+ name: string;
43
+ prompt_hint: string;
44
+ }
45
+ export interface SkillDetail extends SkillSummary {
46
+ content: string;
47
+ stages?: StageSpec[];
48
+ parallel_modes?: ParallelMode[];
49
+ }
50
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare const AgentDriver: import("arktype/internal/variants/string.ts").StringType<"dify", {}>;
2
+ export type AgentDriver = typeof AgentDriver.infer;
3
+ export declare const AgentResource: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ tags: string[];
8
+ type: "agent";
9
+ subtype: "dify";
10
+ config: Record<string, unknown>;
11
+ }, {}>;
12
+ export type AgentResource = typeof AgentResource.infer;
@@ -0,0 +1,39 @@
1
+ export declare const MysqlConfig: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ host: string;
3
+ port: number;
4
+ user: string;
5
+ password: string;
6
+ database: string;
7
+ charset?: string | undefined;
8
+ tables?: string[] | undefined;
9
+ ssl?: boolean | undefined;
10
+ connection_pool_size?: number | undefined;
11
+ query_timeout?: number | undefined;
12
+ }, {}>;
13
+ export type MysqlConfig = typeof MysqlConfig.infer;
14
+ export declare const PostgresqlConfig: import("arktype/internal/variants/object.ts").ObjectType<{
15
+ host: string;
16
+ port: number;
17
+ user: string;
18
+ password: string;
19
+ database: string;
20
+ schema?: string | undefined;
21
+ tables?: string[] | undefined;
22
+ ssl_mode?: string | undefined;
23
+ connection_pool_size?: number | undefined;
24
+ query_timeout?: number | undefined;
25
+ }, {}>;
26
+ export type PostgresqlConfig = typeof PostgresqlConfig.infer;
27
+ export declare const DatabaseDriver: import("arktype/internal/variants/string.ts").StringType<"mysql" | "postgresql", {}>;
28
+ export type DatabaseDriver = typeof DatabaseDriver.infer;
29
+ export declare const DatabaseResource: import("arktype/internal/variants/object.ts").ObjectType<{
30
+ id: string;
31
+ name: string;
32
+ description: string;
33
+ tags: string[];
34
+ type: "data";
35
+ subtype: "db";
36
+ driver: "mysql" | "postgresql";
37
+ config: Record<string, unknown>;
38
+ }, {}>;
39
+ export type DatabaseResource = typeof DatabaseResource.infer;
@@ -0,0 +1,7 @@
1
+ export declare const EnvVariable: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ key: string;
3
+ value: string;
4
+ description?: string | undefined;
5
+ is_secret?: boolean | undefined;
6
+ }, {}>;
7
+ export type EnvVariable = typeof EnvVariable.infer;
@@ -0,0 +1,18 @@
1
+ export declare const DifyKnowledgeConfig: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ base_url: string;
3
+ api_key: string;
4
+ kg_name: string;
5
+ }, {}>;
6
+ export type DifyKnowledgeConfig = typeof DifyKnowledgeConfig.infer;
7
+ export declare const KnowledgeDriver: import("arktype/internal/variants/string.ts").StringType<"dify", {}>;
8
+ export type KnowledgeDriver = typeof KnowledgeDriver.infer;
9
+ export declare const KnowledgeResource: import("arktype/internal/variants/object.ts").ObjectType<{
10
+ id: string;
11
+ name: string;
12
+ description: string;
13
+ tags: string[];
14
+ type: "knowledge";
15
+ subtype: "dify";
16
+ config: Record<string, unknown>;
17
+ }, {}>;
18
+ export type KnowledgeResource = typeof KnowledgeResource.infer;
@@ -0,0 +1,7 @@
1
+ export declare const ResourceBase: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ tags: string[];
6
+ }, {}>;
7
+ export type ResourceBase = typeof ResourceBase.infer;
@@ -0,0 +1,12 @@
1
+ export declare const SceneStatus: import("arktype/internal/variants/string.ts").StringType<"draft" | "published", {}>;
2
+ export type SceneStatus = typeof SceneStatus.infer;
3
+ export declare const Scene: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ id: string;
5
+ name: string;
6
+ description: string;
7
+ status: "draft" | "published";
8
+ skills: string[];
9
+ created_at?: string | undefined;
10
+ updated_at?: string | undefined;
11
+ }, {}>;
12
+ export type Scene = typeof Scene.infer;
@@ -0,0 +1,25 @@
1
+ export declare const McpToolConfig: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ server_url?: string | undefined;
3
+ command?: string | undefined;
4
+ args?: string[] | undefined;
5
+ env?: Record<string, string> | undefined;
6
+ }, {}>;
7
+ export type McpToolConfig = typeof McpToolConfig.infer;
8
+ export declare const HttpToolConfig: import("arktype/internal/variants/object.ts").ObjectType<{
9
+ openapi_json_path: string;
10
+ base_url?: string | undefined;
11
+ auth_header?: string | undefined;
12
+ }, {}>;
13
+ export type HttpToolConfig = typeof HttpToolConfig.infer;
14
+ export declare const ToolDriver: import("arktype/internal/variants/string.ts").StringType<"http" | "mcp", {}>;
15
+ export type ToolDriver = typeof ToolDriver.infer;
16
+ export declare const ToolResource: import("arktype/internal/variants/object.ts").ObjectType<{
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ tags: string[];
21
+ type: "tools";
22
+ subtype: "http" | "mcp";
23
+ config: Record<string, unknown>;
24
+ }, {}>;
25
+ export type ToolResource = typeof ToolResource.infer;
@@ -0,0 +1,12 @@
1
+ export declare const TaskStatus: import("arktype/internal/variants/string.ts").StringType<"done" | "failed" | "in_progress" | "pending" | "skipped", {}>;
2
+ export type TaskStatus = typeof TaskStatus.infer;
3
+ export declare const Task: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ id: string;
5
+ goal: string;
6
+ skills: string[];
7
+ depends_on: string[];
8
+ status: "done" | "failed" | "in_progress" | "pending" | "skipped";
9
+ result_summary: string;
10
+ number: string;
11
+ }, {}>;
12
+ export type Task = typeof Task.infer;