@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,227 +0,0 @@
1
- import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
2
- import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
3
-
4
- declare enum LayoutType {
5
- Default = "default",
6
- SkillEditor = "skill-editor",
7
- BladeCoa = "blade-coa",
8
- SolutionEditor = "solution-editor",
9
- SolutionEditor2 = "solution-editor2",
10
- ChatPreview = "chat-preview",
11
- ChatOnly = "chat-only",
12
- SolutionApp = "solution-app",
13
- Custom = "custom"
14
- }
15
- interface Solution {
16
- id: string;
17
- name: string;
18
- version: string;
19
- description?: string | null;
20
- source?: "builtin" | "personal" | string | null;
21
- layout_type: LayoutType | string;
22
- initial_mode?: "planning" | "executing" | string | null;
23
- initial_message?: string | null;
24
- preview?: {
25
- url: string;
26
- title?: string | null;
27
- } | null;
28
- layout?: {
29
- available?: boolean;
30
- source_dir?: string;
31
- entry?: string;
32
- export?: string;
33
- } | null;
34
- roles?: BizRole[] | null;
35
- data?: Record<string, unknown> | null;
36
- ui_config?: SolutionAppUiConfig | null;
37
- }
38
- interface SolutionAppUiConfig {
39
- branding: {
40
- name: string;
41
- subtitle?: string;
42
- icon_text: string;
43
- icon_gradient?: string;
44
- };
45
- list: {
46
- title: string;
47
- create_button: string;
48
- card?: {
49
- subtitle?: string;
50
- stats?: Array<{
51
- label: string;
52
- value: string;
53
- color?: string;
54
- }>;
55
- };
56
- };
57
- create: {
58
- title: string;
59
- description?: string;
60
- submit_button: string;
61
- sections: Array<{
62
- id: string;
63
- title: string;
64
- description?: string;
65
- fields: Array<SolutionAppField>;
66
- }>;
67
- };
68
- }
69
- type SolutionAppField = {
70
- id: string;
71
- kind: "textarea";
72
- label: string;
73
- placeholder?: string;
74
- } | {
75
- id: string;
76
- kind: "file-upload";
77
- accept?: string[];
78
- categories?: Array<{
79
- label: string;
80
- description: string;
81
- color: string;
82
- }>;
83
- };
84
- interface SolutionAppState {
85
- pipeline: Array<{
86
- id: string;
87
- label: string;
88
- status: "done" | "active" | "pending" | "error";
89
- }>;
90
- meta: Record<string, {
91
- label: string;
92
- value: string;
93
- color?: string;
94
- }>;
95
- }
96
- interface BizRole {
97
- id: string;
98
- name: string;
99
- description?: string | null;
100
- preview?: {
101
- url: string;
102
- title?: string | null;
103
- } | null;
104
- }
105
-
106
- declare const SessionStatus: arktype_internal_variants_string_ts.StringType<"completed" | "failed" | "interrupted" | "created" | "running" | "waiting_for_input", {}>;
107
- type SessionStatus = typeof SessionStatus.infer;
108
- type TemplateId = "default" | "skill_editor" | "ship_attack";
109
- type SkillEditorTemplateId = "skill_editor";
110
- type ModeId = "planning" | "executing";
111
- interface ReplayState {
112
- source_session_id?: string;
113
- status?: "replay" | "autonomous";
114
- speed?: 1 | 2 | 5;
115
- next_source_entry_id?: string | null;
116
- ended_at?: string | null;
117
- autonomous_reason?: string | null;
118
- }
119
- interface SessionPortMapping {
120
- container_port: number;
121
- host_port: number;
122
- }
123
- /**
124
- * 列表搜索时单条会话的命中信息。
125
- * - field='title':关键词出现在 intent 里,snippet 为 null(标题本身就在 UI 上)
126
- * - field='content':关键词出现在历史消息里,snippet 含截窗预览与角色
127
- */
128
- interface SessionSearchMatch {
129
- field: "title" | "content";
130
- snippet: {
131
- role: string;
132
- text: string;
133
- } | null;
134
- }
135
- declare const SessionInfo: arktype_internal_variants_object_ts.ObjectType<{
136
- id: string;
137
- intent: string;
138
- status: "completed" | "failed" | "interrupted" | "created" | "running" | "waiting_for_input";
139
- created_at: string;
140
- updated_at: string;
141
- shared?: boolean | undefined;
142
- memory_enabled?: boolean | undefined;
143
- is_persistent?: boolean | undefined;
144
- is_headless?: boolean | undefined;
145
- viewer_role?: "owner" | "viewer" | undefined;
146
- template_id?: string | null | undefined;
147
- model?: string | null | undefined;
148
- enable_thinking?: boolean | null | undefined;
149
- solution_id?: string | null | undefined;
150
- biz_role_id?: string | null | undefined;
151
- solution?: unknown;
152
- plan_summary?: string | null | undefined;
153
- primary_skill_id?: string | null | undefined;
154
- bound_skill_id?: string | null | undefined;
155
- replay_state?: unknown;
156
- is_pinned?: boolean | undefined;
157
- pinned_at?: string | null | undefined;
158
- is_example?: boolean | undefined;
159
- ports?: unknown;
160
- disable_tools?: string[] | undefined;
161
- match?: unknown;
162
- }, {}>;
163
- type SessionInfo = Omit<typeof SessionInfo.infer, "template_id" | "solution" | "ports" | "match"> & {
164
- shared?: boolean;
165
- memory_enabled?: boolean;
166
- is_persistent?: boolean;
167
- is_headless?: boolean;
168
- viewer_role?: "owner" | "viewer";
169
- template_id?: TemplateId | null;
170
- model?: string | null;
171
- enable_thinking?: boolean | null;
172
- solution_id?: string | null;
173
- biz_role_id?: string | null;
174
- solution?: Solution | null;
175
- primary_skill_id?: string | null;
176
- bound_skill_id?: string | null;
177
- replay_state?: ReplayState | null;
178
- is_pinned?: boolean;
179
- pinned_at?: string | null;
180
- is_example?: boolean;
181
- ports?: SessionPortMapping[];
182
- disable_tools?: string[];
183
- /** 仅在带 q 搜索的列表响应中出现;普通列表里此字段缺省。 */
184
- match?: SessionSearchMatch | null;
185
- };
186
- /**
187
- * 主 skill 配置快照(v2)。创建 session 时从 SKILL.md frontmatter 抽出并
188
- * 固化到 session_root/.blade/primary-skill.json;ship-attack 页面骨架的唯
189
- * 一数据源。
190
- */
191
- interface PrimarySkillStepSpec {
192
- n: number;
193
- label: string;
194
- }
195
- interface PrimarySkillStageSpec {
196
- id: string;
197
- name: string;
198
- steps: PrimarySkillStepSpec[];
199
- }
200
- interface PrimarySkillParallelMode {
201
- id: string;
202
- name: string;
203
- prompt_hint: string;
204
- }
205
- interface PrimarySkillSnapshot {
206
- version: number;
207
- skill_id: string;
208
- title: string;
209
- description: string;
210
- stages: PrimarySkillStageSpec[];
211
- parallel_modes: PrimarySkillParallelMode[];
212
- captured_at: string;
213
- }
214
- /**
215
- * 单 session detail(GET /api/sessions/:id)。列表接口返回 SessionInfo,
216
- * detail 在此基础上附加 primary_skill_snapshot。
217
- */
218
- interface SessionDetail extends SessionInfo {
219
- primary_skill_snapshot?: PrimarySkillSnapshot | null;
220
- /**
221
- * 会话级环境变量(owner-only)。后端仅在 GET detail 和 PUT /env 响应中返回,
222
- * 列表/搜索响应不带此字段。调用 setSessionEnv 后可类型安全地读回。
223
- */
224
- env?: Record<string, string>;
225
- }
226
-
227
- export { type BizRole as B, LayoutType as L, type ModeId as M, type PrimarySkillParallelMode as P, type SessionDetail as S, type TemplateId as T, SessionInfo as a, SessionStatus as b, type Solution as c, type PrimarySkillSnapshot as d, type PrimarySkillStageSpec as e, type PrimarySkillStepSpec as f, type SessionPortMapping as g, type SkillEditorTemplateId as h, type SolutionAppField as i, type SolutionAppState as j, type SolutionAppUiConfig as k };
@@ -1,177 +0,0 @@
1
- import { S as SessionsResource, a as ShareLinkResult, B as BackgroundTask, C as CheckpointNode, b as SessionContextStats, c as SessionHistory, F as FileEntry, P as PaginatedSessionsResult, d as SkillDevSession, I as ImportPreview, T as TokenizeResult, e as ContentPart, f as CreateSessionRequest, H as HistoryNode, g as ImportPreviewScenario, h as ImportPreviewSkill, U as UploadFileEntry, i as UploadFilesOptions } from './blade-client-qTOovekU.js';
2
- import { T as TurnProjection } from './projection-BWYEFYNn.js';
3
- import { S as SessionDetail, a as SessionInfo } from './session-CNnotR90.js';
4
-
5
- interface SessionExtraInfo {
6
- session_id?: string | null;
7
- extra?: Record<string, unknown> | null;
8
- created_at?: string;
9
- updated_at?: string;
10
- }
11
- declare const listSessions: (...args: Parameters<SessionsResource["listSessions"]>) => Promise<SessionInfo[]>;
12
- declare const listSessionsPaginated: (...args: Parameters<SessionsResource["listSessionsPaginated"]>) => Promise<PaginatedSessionsResult>;
13
- declare const listSessionsWithSkillData: (...args: Parameters<SessionsResource["listSessionsWithSkillData"]>) => Promise<SkillDevSession[]>;
14
- declare const createSession: (...args: Parameters<SessionsResource["createSession"]>) => Promise<{
15
- session_id: string;
16
- }>;
17
- declare const createSessionWithRequest: (...args: Parameters<SessionsResource["createSessionWithRequest"]>) => Promise<{
18
- session_id: string;
19
- }>;
20
- declare const getSession: (...args: Parameters<SessionsResource["getSession"]>) => Promise<SessionDetail>;
21
- declare const updateSession: (...args: Parameters<SessionsResource["updateSession"]>) => Promise<SessionDetail>;
22
- declare const pinSession: (...args: Parameters<SessionsResource["pinSession"]>) => Promise<SessionInfo>;
23
- declare const startReplaySession: (...args: Parameters<SessionsResource["startReplaySession"]>) => Promise<{
24
- session_id: string;
25
- }>;
26
- declare const updateReplaySession: (...args: Parameters<SessionsResource["updateReplaySession"]>) => Promise<{
27
- replay_state: SessionInfo["replay_state"];
28
- }>;
29
- declare const updateSharing: (...args: Parameters<SessionsResource["updateSharing"]>) => Promise<{
30
- shared: boolean;
31
- }>;
32
- declare const updateSessionMemory: (...args: Parameters<SessionsResource["updateSessionMemory"]>) => Promise<{
33
- memory_enabled: boolean;
34
- }>;
35
- declare const createShare: (...args: Parameters<SessionsResource["createShare"]>) => Promise<ShareLinkResult>;
36
- declare const revokeShare: (...args: Parameters<SessionsResource["revokeShare"]>) => Promise<{
37
- revoked: boolean;
38
- }>;
39
- declare const getSharedSession: (...args: Parameters<SessionsResource["getSharedSession"]>) => Promise<TurnProjection[]>;
40
- declare const getSessionTasks: (...args: Parameters<SessionsResource["getSessionTasks"]>) => Promise<{
41
- id: string;
42
- goal: string;
43
- skills: string[];
44
- depends_on: string[];
45
- status: "pending" | "done" | "failed" | "in_progress" | "skipped";
46
- result_summary: string;
47
- number: string;
48
- }[]>;
49
- declare const getSessionTurns: (...args: Parameters<SessionsResource["getSessionTurns"]>) => Promise<TurnProjection[]>;
50
- declare const getSessionContextStats: (...args: Parameters<SessionsResource["getSessionContextStats"]>) => Promise<SessionContextStats>;
51
- declare const getSessionHistory: (...args: Parameters<SessionsResource["getSessionHistory"]>) => Promise<SessionHistory>;
52
- declare const tokenizePrompt: (...args: Parameters<SessionsResource["tokenizePrompt"]>) => Promise<TokenizeResult>;
53
- declare const tokenizeMessages: (...args: Parameters<SessionsResource["tokenizeMessages"]>) => Promise<TokenizeResult>;
54
- declare const getSessionCheckpoints: (...args: Parameters<SessionsResource["getSessionCheckpoints"]>) => Promise<{
55
- nodes: CheckpointNode[];
56
- leaf_id: string | null;
57
- }>;
58
- declare const checkoutSession: (...args: Parameters<SessionsResource["checkoutSession"]>) => Promise<{
59
- id: string;
60
- content: string;
61
- position: string;
62
- mode?: string;
63
- files_restored?: boolean;
64
- linear?: boolean;
65
- }>;
66
- declare const rewindSession: (...args: Parameters<SessionsResource["rewindSession"]>) => Promise<{
67
- id: string;
68
- content: string;
69
- }>;
70
- declare const switchBranch: (...args: Parameters<SessionsResource["switchBranch"]>) => Promise<{
71
- id: string;
72
- leaf_id: string;
73
- }>;
74
- declare const deleteSession: (...args: Parameters<SessionsResource["deleteSession"]>) => Promise<{
75
- deleted: boolean;
76
- }>;
77
- declare const listBackgroundTasks: (...args: Parameters<SessionsResource["listBackgroundTasks"]>) => Promise<BackgroundTask[]>;
78
- declare const getBackgroundTask: (...args: Parameters<SessionsResource["getBackgroundTask"]>) => Promise<BackgroundTask>;
79
- declare const stopBackgroundTask: (...args: Parameters<SessionsResource["stopBackgroundTask"]>) => Promise<{
80
- message: string;
81
- task?: BackgroundTask | null;
82
- }>;
83
- declare const probeSessionUrl: (...args: Parameters<SessionsResource["probeSessionUrl"]>) => Promise<{
84
- reachable: boolean;
85
- }>;
86
- declare const listDir: (...args: Parameters<SessionsResource["listDir"]>) => Promise<FileEntry[]>;
87
- declare const uploadFiles: (...args: Parameters<SessionsResource["uploadFiles"]>) => Promise<{
88
- uploaded: string[];
89
- failed: string[];
90
- }>;
91
- declare const deleteFile: (...args: Parameters<SessionsResource["deleteFile"]>) => Promise<void>;
92
- declare const writeFile: (...args: Parameters<SessionsResource["writeFile"]>) => Promise<{
93
- success: boolean;
94
- }>;
95
- declare const renameFile: (...args: Parameters<SessionsResource["renameFile"]>) => Promise<{
96
- path: string;
97
- }>;
98
- declare const copyFile: (...args: Parameters<SessionsResource["copyFile"]>) => Promise<{
99
- path: string;
100
- }>;
101
- declare const shareFile: (...args: Parameters<SessionsResource["shareFile"]>) => Promise<{
102
- path: string;
103
- target: string;
104
- }>;
105
- declare const getDownloadDirUrl: (...args: Parameters<SessionsResource["getDownloadDirUrl"]>) => string;
106
- declare const exportSession: (...args: Parameters<SessionsResource["exportSession"]>) => Promise<void>;
107
- declare const previewImport: (...args: Parameters<SessionsResource["previewImport"]>) => Promise<ImportPreview>;
108
- declare const importSession: (...args: Parameters<SessionsResource["importSession"]>) => Promise<{
109
- session_id: string;
110
- }>;
111
- declare function getSessionExtraInfoByTask(taskId: string): Promise<SessionExtraInfo>;
112
-
113
- declare const sessions_CheckpointNode: typeof CheckpointNode;
114
- declare const sessions_ContentPart: typeof ContentPart;
115
- declare const sessions_CreateSessionRequest: typeof CreateSessionRequest;
116
- declare const sessions_FileEntry: typeof FileEntry;
117
- declare const sessions_HistoryNode: typeof HistoryNode;
118
- declare const sessions_ImportPreview: typeof ImportPreview;
119
- declare const sessions_ImportPreviewScenario: typeof ImportPreviewScenario;
120
- declare const sessions_ImportPreviewSkill: typeof ImportPreviewSkill;
121
- declare const sessions_PaginatedSessionsResult: typeof PaginatedSessionsResult;
122
- declare const sessions_SessionContextStats: typeof SessionContextStats;
123
- type sessions_SessionExtraInfo = SessionExtraInfo;
124
- declare const sessions_SessionHistory: typeof SessionHistory;
125
- declare const sessions_SessionsResource: typeof SessionsResource;
126
- declare const sessions_ShareLinkResult: typeof ShareLinkResult;
127
- declare const sessions_SkillDevSession: typeof SkillDevSession;
128
- declare const sessions_TokenizeResult: typeof TokenizeResult;
129
- declare const sessions_UploadFileEntry: typeof UploadFileEntry;
130
- declare const sessions_UploadFilesOptions: typeof UploadFilesOptions;
131
- declare const sessions_checkoutSession: typeof checkoutSession;
132
- declare const sessions_copyFile: typeof copyFile;
133
- declare const sessions_createSession: typeof createSession;
134
- declare const sessions_createSessionWithRequest: typeof createSessionWithRequest;
135
- declare const sessions_createShare: typeof createShare;
136
- declare const sessions_deleteFile: typeof deleteFile;
137
- declare const sessions_deleteSession: typeof deleteSession;
138
- declare const sessions_exportSession: typeof exportSession;
139
- declare const sessions_getBackgroundTask: typeof getBackgroundTask;
140
- declare const sessions_getDownloadDirUrl: typeof getDownloadDirUrl;
141
- declare const sessions_getSession: typeof getSession;
142
- declare const sessions_getSessionCheckpoints: typeof getSessionCheckpoints;
143
- declare const sessions_getSessionContextStats: typeof getSessionContextStats;
144
- declare const sessions_getSessionExtraInfoByTask: typeof getSessionExtraInfoByTask;
145
- declare const sessions_getSessionHistory: typeof getSessionHistory;
146
- declare const sessions_getSessionTasks: typeof getSessionTasks;
147
- declare const sessions_getSessionTurns: typeof getSessionTurns;
148
- declare const sessions_getSharedSession: typeof getSharedSession;
149
- declare const sessions_importSession: typeof importSession;
150
- declare const sessions_listBackgroundTasks: typeof listBackgroundTasks;
151
- declare const sessions_listDir: typeof listDir;
152
- declare const sessions_listSessions: typeof listSessions;
153
- declare const sessions_listSessionsPaginated: typeof listSessionsPaginated;
154
- declare const sessions_listSessionsWithSkillData: typeof listSessionsWithSkillData;
155
- declare const sessions_pinSession: typeof pinSession;
156
- declare const sessions_previewImport: typeof previewImport;
157
- declare const sessions_probeSessionUrl: typeof probeSessionUrl;
158
- declare const sessions_renameFile: typeof renameFile;
159
- declare const sessions_revokeShare: typeof revokeShare;
160
- declare const sessions_rewindSession: typeof rewindSession;
161
- declare const sessions_shareFile: typeof shareFile;
162
- declare const sessions_startReplaySession: typeof startReplaySession;
163
- declare const sessions_stopBackgroundTask: typeof stopBackgroundTask;
164
- declare const sessions_switchBranch: typeof switchBranch;
165
- declare const sessions_tokenizeMessages: typeof tokenizeMessages;
166
- declare const sessions_tokenizePrompt: typeof tokenizePrompt;
167
- declare const sessions_updateReplaySession: typeof updateReplaySession;
168
- declare const sessions_updateSession: typeof updateSession;
169
- declare const sessions_updateSessionMemory: typeof updateSessionMemory;
170
- declare const sessions_updateSharing: typeof updateSharing;
171
- declare const sessions_uploadFiles: typeof uploadFiles;
172
- declare const sessions_writeFile: typeof writeFile;
173
- declare namespace sessions {
174
- export { sessions_CheckpointNode as CheckpointNode, sessions_ContentPart as ContentPart, sessions_CreateSessionRequest as CreateSessionRequest, sessions_FileEntry as FileEntry, sessions_HistoryNode as HistoryNode, sessions_ImportPreview as ImportPreview, sessions_ImportPreviewScenario as ImportPreviewScenario, sessions_ImportPreviewSkill as ImportPreviewSkill, sessions_PaginatedSessionsResult as PaginatedSessionsResult, sessions_SessionContextStats as SessionContextStats, type sessions_SessionExtraInfo as SessionExtraInfo, sessions_SessionHistory as SessionHistory, sessions_SessionsResource as SessionsResource, sessions_ShareLinkResult as ShareLinkResult, sessions_SkillDevSession as SkillDevSession, sessions_TokenizeResult as TokenizeResult, sessions_UploadFileEntry as UploadFileEntry, sessions_UploadFilesOptions as UploadFilesOptions, sessions_checkoutSession as checkoutSession, sessions_copyFile as copyFile, sessions_createSession as createSession, sessions_createSessionWithRequest as createSessionWithRequest, sessions_createShare as createShare, sessions_deleteFile as deleteFile, sessions_deleteSession as deleteSession, sessions_exportSession as exportSession, sessions_getBackgroundTask as getBackgroundTask, sessions_getDownloadDirUrl as getDownloadDirUrl, sessions_getSession as getSession, sessions_getSessionCheckpoints as getSessionCheckpoints, sessions_getSessionContextStats as getSessionContextStats, sessions_getSessionExtraInfoByTask as getSessionExtraInfoByTask, sessions_getSessionHistory as getSessionHistory, sessions_getSessionTasks as getSessionTasks, sessions_getSessionTurns as getSessionTurns, sessions_getSharedSession as getSharedSession, sessions_importSession as importSession, sessions_listBackgroundTasks as listBackgroundTasks, sessions_listDir as listDir, sessions_listSessions as listSessions, sessions_listSessionsPaginated as listSessionsPaginated, sessions_listSessionsWithSkillData as listSessionsWithSkillData, sessions_pinSession as pinSession, sessions_previewImport as previewImport, sessions_probeSessionUrl as probeSessionUrl, sessions_renameFile as renameFile, sessions_revokeShare as revokeShare, sessions_rewindSession as rewindSession, sessions_shareFile as shareFile, sessions_startReplaySession as startReplaySession, sessions_stopBackgroundTask as stopBackgroundTask, sessions_switchBranch as switchBranch, sessions_tokenizeMessages as tokenizeMessages, sessions_tokenizePrompt as tokenizePrompt, sessions_updateReplaySession as updateReplaySession, sessions_updateSession as updateSession, sessions_updateSessionMemory as updateSessionMemory, sessions_updateSharing as updateSharing, sessions_uploadFiles as uploadFiles, sessions_writeFile as writeFile };
175
- }
176
-
177
- export { type SessionExtraInfo as S, listDir as l, sessions as s, uploadFiles as u };