@blade-hq/agent-kit 0.5.31 → 0.5.33

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 (33) hide show
  1. package/dist/{SkillStatusBar-CvgcEiSi.d.ts → SkillStatusBar-Dp93pqlP.d.ts} +14 -3
  2. package/dist/{blade-client-DoodJJDz.d.ts → blade-client-DS7lV19a.d.ts} +4 -1
  3. package/dist/{chunk-ZWO6YBLA.js → chunk-DQXXSHCR.js} +5 -3
  4. package/dist/chunk-DQXXSHCR.js.map +1 -0
  5. package/dist/{chunk-OPMRX65X.js → chunk-EBTZAB6X.js} +13 -5
  6. package/dist/chunk-EBTZAB6X.js.map +1 -0
  7. package/dist/{chunk-BUQRNLEE.js → chunk-MGXPILAM.js} +3 -3
  8. package/dist/{chunk-KMQQDKGU.js → chunk-PMG4N3JO.js} +19 -3
  9. package/dist/chunk-PMG4N3JO.js.map +1 -0
  10. package/dist/{chunk-HFVB57MR.js → chunk-SGOR4YXZ.js} +63 -18
  11. package/dist/chunk-SGOR4YXZ.js.map +1 -0
  12. package/dist/{chunk-4XBNTPVS.js → chunk-UR6C4AJB.js} +2 -2
  13. package/dist/client/index.d.ts +145 -1
  14. package/dist/client/index.js +1 -1
  15. package/dist/react/api/vibe-coding.d.ts +2 -2
  16. package/dist/react/api/vibe-coding.js +2 -2
  17. package/dist/react/components/chat/index.d.ts +3 -3
  18. package/dist/react/components/chat/index.js +5 -5
  19. package/dist/react/components/plan/index.js +4 -4
  20. package/dist/react/components/session/index.js +3 -3
  21. package/dist/react/components/workspace/index.d.ts +2 -2
  22. package/dist/react/components/workspace/index.js +3 -3
  23. package/dist/react/index.d.ts +10 -6
  24. package/dist/react/index.js +8 -6
  25. package/dist/react/index.js.map +1 -1
  26. package/dist/{sessions-DFGsAOPa.d.ts → sessions-DaddUdO6.d.ts} +4 -1
  27. package/package.json +1 -1
  28. package/dist/chunk-HFVB57MR.js.map +0 -1
  29. package/dist/chunk-KMQQDKGU.js.map +0 -1
  30. package/dist/chunk-OPMRX65X.js.map +0 -1
  31. package/dist/chunk-ZWO6YBLA.js.map +0 -1
  32. /package/dist/{chunk-BUQRNLEE.js.map → chunk-MGXPILAM.js.map} +0 -0
  33. /package/dist/{chunk-4XBNTPVS.js.map → chunk-UR6C4AJB.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useSessionStore
3
- } from "./chunk-OPMRX65X.js";
3
+ } from "./chunk-EBTZAB6X.js";
4
4
 
5
5
  // src/react/hooks/use-session.ts
6
6
  function useSession() {
@@ -27,4 +27,4 @@ function useSession() {
27
27
  export {
28
28
  useSession
29
29
  };
30
- //# sourceMappingURL=chunk-4XBNTPVS.js.map
30
+ //# sourceMappingURL=chunk-UR6C4AJB.js.map
@@ -1,4 +1,4 @@
1
- export { A as ApiKeyCreateResponse, r as ApiKeyPublic, s as ApiKeysResource, t as AuthResource, u as BladeApiError, v as BladeClient, w as BladeClientOptions, x as BladeFetchInit, y as BladeHubScenarioResource, z as ChatEndPayload, E as ChatSendPayload, h as CheckpointNode, G as ClientToServerEvents, J as CodingTask, K as CodingTaskTopic, L as ComputerUpgradeReason, M as ComputerUpgradeStatusResponse, m as ContentPart, N as CreateQuickScenarioPayload, n as CreateSessionRequest, O as CreateSocketOptions, Q as CreateSoftwareFactorySharedFilePayload, R as CreateSoftwareFactorySoftwarePayload, f as CreateVibeCodingSessionParams, C as CreateVibeCodingSessionResult, D as DeployBumpMode, F as FileEntry, W as GisResource, X as GlobalSkillStats, Y as HeadlessError, Z as HeadlessResource, _ as HeadlessRunInSessionResult, $ as HeadlessRunOptions, H as HistoryNode, a0 as HttpMethod, I as ImportPreview, o as ImportPreviewScenario, p as ImportPreviewSkill, a1 as InstalledRegistrySkill, a2 as JsonSchemaObject, a3 as MemoriesResource, a4 as Memory, a5 as MemoryCreateBody, a6 as MemoryListParams, a7 as MemoryListResponse, a8 as ModelOption, a9 as ModelsConfig, aa as ModelsResource, k as PaginatedSessionsResult, P as PortMapping, ab as PreviewUrlItem, ac as ProvidersResponse, ad as PublishedAppsResource, ae as QuickScenario, af as REGISTRY_PREFIX, ag as RegistryResource, ah as ResourceApi, ai as ScenariosResource, aj as ServerToClientEvents, i as SessionContextStats, j as SessionHistory, ak as SessionUpdatedPayload, S as SessionsResource, g as ShareLinkResult, l as SkillDevSession, al as SkillOrgListResponse, am as SkillOrgOption, an as SkillsResource, ao as SoftwareFactoryModuleBlueprint, ap as SoftwareFactoryResource, aq as SoftwareFactorySharedFile, ar as SoftwareFactorySoftware, as as SoftwareFactoryTopic, at as SoftwareFactoryTopicModule, au as SolutionsResource, av as SystemErrorPayload, aw as SystemNotificationPayload, T as TokenizeResult, ax as TurnProjectionPayload, ay as TypedSocket, az as UpdateQuickScenarioPayload, aA as UpgradeComputerResponse, U as UploadFileEntry, q as UploadFilesOptions, aB as UserInfo, aC as UserPreferencesResource, b as VibeCodingDebugSessionStatus, d as VibeCodingDeployRecord, a as VibeCodingDeployStatus, V as VibeCodingResource, e as VibeCodingSessionInfo, c as VibeCodingSessionStatus, aD as createSocket, aE as normalizeResource } from '../blade-client-DoodJJDz.js';
1
+ export { A as ApiKeyCreateResponse, r as ApiKeyPublic, s as ApiKeysResource, t as AuthResource, u as BladeApiError, v as BladeClient, w as BladeClientOptions, x as BladeFetchInit, y as BladeHubScenarioResource, z as ChatEndPayload, E as ChatSendPayload, h as CheckpointNode, G as ClientToServerEvents, J as CodingTask, K as CodingTaskTopic, L as ComputerUpgradeReason, M as ComputerUpgradeStatusResponse, m as ContentPart, N as CreateQuickScenarioPayload, n as CreateSessionRequest, O as CreateSocketOptions, Q as CreateSoftwareFactorySharedFilePayload, R as CreateSoftwareFactorySoftwarePayload, f as CreateVibeCodingSessionParams, C as CreateVibeCodingSessionResult, D as DeployBumpMode, F as FileEntry, W as GisResource, X as GlobalSkillStats, Y as HeadlessError, Z as HeadlessResource, _ as HeadlessRunInSessionResult, $ as HeadlessRunOptions, H as HistoryNode, a0 as HttpMethod, I as ImportPreview, o as ImportPreviewScenario, p as ImportPreviewSkill, a1 as InstalledRegistrySkill, a2 as JsonSchemaObject, a3 as MemoriesResource, a4 as Memory, a5 as MemoryCreateBody, a6 as MemoryListParams, a7 as MemoryListResponse, a8 as ModelOption, a9 as ModelsConfig, aa as ModelsResource, k as PaginatedSessionsResult, P as PortMapping, ab as PreviewUrlItem, ac as ProvidersResponse, ad as PublishedAppsResource, ae as QuickScenario, af as REGISTRY_PREFIX, ag as RegistryResource, ah as ResourceApi, ai as ScenariosResource, aj as ServerToClientEvents, i as SessionContextStats, j as SessionHistory, ak as SessionUpdatedPayload, S as SessionsResource, g as ShareLinkResult, l as SkillDevSession, al as SkillOrgListResponse, am as SkillOrgOption, an as SkillsResource, ao as SoftwareFactoryModuleBlueprint, ap as SoftwareFactoryResource, aq as SoftwareFactorySharedFile, ar as SoftwareFactorySoftware, as as SoftwareFactoryTopic, at as SoftwareFactoryTopicModule, au as SolutionsResource, av as SystemErrorPayload, aw as SystemNotificationPayload, T as TokenizeResult, ax as TurnProjectionPayload, ay as TypedSocket, az as UpdateQuickScenarioPayload, aA as UpgradeComputerResponse, U as UploadFileEntry, q as UploadFilesOptions, aB as UserInfo, aC as UserPreferencesResource, b as VibeCodingDebugSessionStatus, d as VibeCodingDeployRecord, a as VibeCodingDeployStatus, V as VibeCodingResource, e as VibeCodingSessionInfo, c as VibeCodingSessionStatus, aD as createSocket, aE as normalizeResource } from '../blade-client-DS7lV19a.js';
2
2
  import 'arktype/internal/variants/object.ts';
3
3
  import 'arktype/internal/variants/string.ts';
4
4
  import '../projection-BWYEFYNn.js';
@@ -1139,6 +1139,29 @@ interface paths {
1139
1139
  patch?: never;
1140
1140
  trace?: never;
1141
1141
  };
1142
+ "/api/sessions/{session_id}/preview-pdf/{file_path}": {
1143
+ parameters: {
1144
+ query?: never;
1145
+ header?: never;
1146
+ path?: never;
1147
+ cookie?: never;
1148
+ };
1149
+ /**
1150
+ * Preview As Pdf
1151
+ * @description 将 Office 文件(Visio 等)在沙盒内用 soffice 转为 PDF,供前端 PdfPreview 渲染。
1152
+ *
1153
+ * 转换结果按源文件 mtime+size 缓存,避免重复转换。
1154
+ * 需要沙盒镜像内安装 LibreOffice。
1155
+ */
1156
+ get: operations["preview_as_pdf_api_sessions__session_id__preview_pdf__file_path__get"];
1157
+ put?: never;
1158
+ post?: never;
1159
+ delete?: never;
1160
+ options?: never;
1161
+ head?: never;
1162
+ patch?: never;
1163
+ trace?: never;
1164
+ };
1142
1165
  "/api/sessions/{session_id}/upset_extra_info": {
1143
1166
  parameters: {
1144
1167
  query?: never;
@@ -1498,6 +1521,28 @@ interface paths {
1498
1521
  patch?: never;
1499
1522
  trace?: never;
1500
1523
  };
1524
+ "/api/solutions/ensure-from-registry": {
1525
+ parameters: {
1526
+ query?: never;
1527
+ header?: never;
1528
+ path?: never;
1529
+ cookie?: never;
1530
+ };
1531
+ get?: never;
1532
+ put?: never;
1533
+ /**
1534
+ * Ensure Solution From Registry
1535
+ * @description 本地无此 solution 时,按 org/name 从 skill_registry 下载并热加载注册。
1536
+ *
1537
+ * 返回本地 solution_id(= solution.yaml 的 id),前端据此建会话进对话页。
1538
+ */
1539
+ post: operations["ensure_solution_from_registry_api_solutions_ensure_from_registry_post"];
1540
+ delete?: never;
1541
+ options?: never;
1542
+ head?: never;
1543
+ patch?: never;
1544
+ trace?: never;
1545
+ };
1501
1546
  "/api/solutions": {
1502
1547
  parameters: {
1503
1548
  query?: never;
@@ -4789,6 +4834,17 @@ interface components {
4789
4834
  * @enum {string}
4790
4835
  */
4791
4836
  position: "before" | "turn_end";
4837
+ /**
4838
+ * Mode
4839
+ * @default conversation
4840
+ * @enum {string}
4841
+ */
4842
+ mode: "both" | "conversation" | "code";
4843
+ /**
4844
+ * Linear
4845
+ * @default false
4846
+ */
4847
+ linear: boolean;
4792
4848
  };
4793
4849
  /** CommitProjectRequest */
4794
4850
  CommitProjectRequest: {
@@ -5085,6 +5141,11 @@ interface components {
5085
5141
  */
5086
5142
  bump: string;
5087
5143
  };
5144
+ /** EnsureFromRegistryRequest */
5145
+ EnsureFromRegistryRequest: {
5146
+ /** Registry Id */
5147
+ registry_id: string;
5148
+ };
5088
5149
  /** EnvBucket */
5089
5150
  EnvBucket: {
5090
5151
  /** Bucket */
@@ -5345,6 +5406,17 @@ interface components {
5345
5406
  RewindRequest: {
5346
5407
  /** Checkpoint Id */
5347
5408
  checkpoint_id: string;
5409
+ /**
5410
+ * Mode
5411
+ * @default conversation
5412
+ * @enum {string}
5413
+ */
5414
+ mode: "both" | "conversation" | "code";
5415
+ /**
5416
+ * Linear
5417
+ * @default false
5418
+ */
5419
+ linear: boolean;
5348
5420
  };
5349
5421
  /** RollbackArchitectureRequest */
5350
5422
  RollbackArchitectureRequest: {
@@ -5407,6 +5479,11 @@ interface components {
5407
5479
  * @default false
5408
5480
  */
5409
5481
  memoryEnabled: boolean;
5482
+ /**
5483
+ * Checkpointsenabled
5484
+ * @default false
5485
+ */
5486
+ checkpointsEnabled: boolean;
5410
5487
  };
5411
5488
  /** SaveArchitectureRequest */
5412
5489
  SaveArchitectureRequest: {
@@ -8538,6 +8615,38 @@ interface operations {
8538
8615
  };
8539
8616
  };
8540
8617
  };
8618
+ preview_as_pdf_api_sessions__session_id__preview_pdf__file_path__get: {
8619
+ parameters: {
8620
+ query?: never;
8621
+ header?: never;
8622
+ path: {
8623
+ session_id: string;
8624
+ file_path: string;
8625
+ };
8626
+ cookie?: never;
8627
+ };
8628
+ requestBody?: never;
8629
+ responses: {
8630
+ /** @description Successful Response */
8631
+ 200: {
8632
+ headers: {
8633
+ [name: string]: unknown;
8634
+ };
8635
+ content: {
8636
+ "application/json": unknown;
8637
+ };
8638
+ };
8639
+ /** @description Validation Error */
8640
+ 422: {
8641
+ headers: {
8642
+ [name: string]: unknown;
8643
+ };
8644
+ content: {
8645
+ "application/json": components["schemas"]["HTTPValidationError"];
8646
+ };
8647
+ };
8648
+ };
8649
+ };
8541
8650
  upset_session_extra_info_api_sessions__session_id__upset_extra_info_post: {
8542
8651
  parameters: {
8543
8652
  query?: never;
@@ -9451,6 +9560,41 @@ interface operations {
9451
9560
  };
9452
9561
  };
9453
9562
  };
9563
+ ensure_solution_from_registry_api_solutions_ensure_from_registry_post: {
9564
+ parameters: {
9565
+ query?: never;
9566
+ header?: never;
9567
+ path?: never;
9568
+ cookie?: never;
9569
+ };
9570
+ requestBody: {
9571
+ content: {
9572
+ "application/json": components["schemas"]["EnsureFromRegistryRequest"];
9573
+ };
9574
+ };
9575
+ responses: {
9576
+ /** @description Successful Response */
9577
+ 200: {
9578
+ headers: {
9579
+ [name: string]: unknown;
9580
+ };
9581
+ content: {
9582
+ "application/json": {
9583
+ [key: string]: string;
9584
+ };
9585
+ };
9586
+ };
9587
+ /** @description Validation Error */
9588
+ 422: {
9589
+ headers: {
9590
+ [name: string]: unknown;
9591
+ };
9592
+ content: {
9593
+ "application/json": components["schemas"]["HTTPValidationError"];
9594
+ };
9595
+ };
9596
+ };
9597
+ };
9454
9598
  list_solutions_api_solutions_get: {
9455
9599
  parameters: {
9456
9600
  query?: never;
@@ -22,7 +22,7 @@ import {
22
22
  VibeCodingResource,
23
23
  createSocket,
24
24
  normalizeResource
25
- } from "../chunk-ZWO6YBLA.js";
25
+ } from "../chunk-DQXXSHCR.js";
26
26
  import "../chunk-PZ5AY32C.js";
27
27
  export {
28
28
  ApiKeysResource,
@@ -1,5 +1,5 @@
1
- import { V as VibeCodingResource, C as CreateVibeCodingSessionResult, a as VibeCodingDeployStatus, b as VibeCodingDebugSessionStatus, c as VibeCodingSessionStatus, d as VibeCodingDeployRecord, e as VibeCodingSessionInfo } from '../../blade-client-DoodJJDz.js';
2
- export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-DoodJJDz.js';
1
+ import { V as VibeCodingResource, C as CreateVibeCodingSessionResult, a as VibeCodingDeployStatus, b as VibeCodingDebugSessionStatus, c as VibeCodingSessionStatus, d as VibeCodingDeployRecord, e as VibeCodingSessionInfo } from '../../blade-client-DS7lV19a.js';
2
+ export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-DS7lV19a.js';
3
3
  import 'arktype/internal/variants/object.ts';
4
4
  import 'arktype/internal/variants/string.ts';
5
5
  import '../../projection-BWYEFYNn.js';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getClient
3
- } from "../../chunk-OPMRX65X.js";
3
+ } from "../../chunk-EBTZAB6X.js";
4
4
  import "../../chunk-J3XVFPOV.js";
5
- import "../../chunk-ZWO6YBLA.js";
5
+ import "../../chunk-DQXXSHCR.js";
6
6
  import "../../chunk-JCJFFJ42.js";
7
7
  import "../../chunk-PZ5AY32C.js";
8
8
 
@@ -1,5 +1,5 @@
1
- import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-CvgcEiSi.js';
2
- export { A as AssistantTurnComponentProps, a as ChatInput, b as ChatView, c as ChatViewClassNames, d as ChatViewComponents, e as ChatViewProps, f as ChatViewRenderers, E as ErrorMessageBlock, F as FileComposerAttachment, g as FileSizeLimitDialog, M as MessageList, S as SkillStatusBar, h as SkillStatusBarComponentProps, T as ToolCallComponentProps, i as ToolRendererProps, U as UserMessageBubble, j as isErrorMessage, k as isUserMessage } from '../../../SkillStatusBar-CvgcEiSi.js';
1
+ import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-Dp93pqlP.js';
2
+ export { A as AssistantTurnComponentProps, a as ChatInput, b as ChatView, c as ChatViewClassNames, d as ChatViewComponents, e as ChatViewProps, f as ChatViewRenderers, E as ErrorMessageBlock, F as FileComposerAttachment, g as FileSizeLimitDialog, M as MessageList, S as SkillStatusBar, h as SkillStatusBarComponentProps, T as ToolCallComponentProps, i as ToolRendererProps, U as UserMessageBubble, j as isErrorMessage, k as isUserMessage } from '../../../SkillStatusBar-Dp93pqlP.js';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -10,7 +10,7 @@ import 'zustand';
10
10
  import '../../../session-B5v5KkVd.js';
11
11
  import 'arktype/internal/variants/object.ts';
12
12
  import 'arktype/internal/variants/string.ts';
13
- import '../../../blade-client-DoodJJDz.js';
13
+ import '../../../blade-client-DS7lV19a.js';
14
14
  import 'socket.io-client';
15
15
 
16
16
  /**
@@ -16,16 +16,16 @@ import {
16
16
  isErrorMessage,
17
17
  isUserMessage,
18
18
  useWhatIfQuoteContext
19
- } from "../../../chunk-HFVB57MR.js";
19
+ } from "../../../chunk-SGOR4YXZ.js";
20
20
  import {
21
21
  AskUserQuestionBlock
22
- } from "../../../chunk-BUQRNLEE.js";
22
+ } from "../../../chunk-MGXPILAM.js";
23
23
  import "../../../chunk-2UP7MG3J.js";
24
24
  import "../../../chunk-H62LH2AG.js";
25
- import "../../../chunk-KMQQDKGU.js";
26
- import "../../../chunk-OPMRX65X.js";
25
+ import "../../../chunk-PMG4N3JO.js";
26
+ import "../../../chunk-EBTZAB6X.js";
27
27
  import "../../../chunk-J3XVFPOV.js";
28
- import "../../../chunk-ZWO6YBLA.js";
28
+ import "../../../chunk-DQXXSHCR.js";
29
29
  import "../../../chunk-7LEKQI47.js";
30
30
  import "../../../chunk-JCJFFJ42.js";
31
31
  import "../../../chunk-PZ5AY32C.js";
@@ -3,12 +3,12 @@ import {
3
3
  PlanSummaryCard,
4
4
  extractLatestPlanMessages,
5
5
  parsePlanMessages
6
- } from "../../../chunk-BUQRNLEE.js";
6
+ } from "../../../chunk-MGXPILAM.js";
7
7
  import "../../../chunk-2UP7MG3J.js";
8
- import "../../../chunk-KMQQDKGU.js";
9
- import "../../../chunk-OPMRX65X.js";
8
+ import "../../../chunk-PMG4N3JO.js";
9
+ import "../../../chunk-EBTZAB6X.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-ZWO6YBLA.js";
11
+ import "../../../chunk-DQXXSHCR.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useSession
3
- } from "../../../chunk-4XBNTPVS.js";
3
+ } from "../../../chunk-UR6C4AJB.js";
4
4
  import {
5
5
  checkoutSession,
6
6
  getSessionCheckpoints,
7
7
  useChatStore,
8
8
  useSessionStore
9
- } from "../../../chunk-OPMRX65X.js";
9
+ } from "../../../chunk-EBTZAB6X.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-ZWO6YBLA.js";
11
+ import "../../../chunk-DQXXSHCR.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { l as listDir } from '../../../sessions-DFGsAOPa.js';
4
- import '../../../blade-client-DoodJJDz.js';
3
+ import { l as listDir } from '../../../sessions-DaddUdO6.js';
4
+ import '../../../blade-client-DS7lV19a.js';
5
5
  import 'arktype/internal/variants/object.ts';
6
6
  import 'arktype/internal/variants/string.ts';
7
7
  import '../../../projection-BWYEFYNn.js';
@@ -5,7 +5,7 @@ import {
5
5
  } from "../../../chunk-H62LH2AG.js";
6
6
  import {
7
7
  resolveSessionFilePreviewTarget
8
- } from "../../../chunk-KMQQDKGU.js";
8
+ } from "../../../chunk-PMG4N3JO.js";
9
9
  import {
10
10
  apiFetchText,
11
11
  copyFile,
@@ -19,9 +19,9 @@ import {
19
19
  useChatStore,
20
20
  useSessionStore,
21
21
  useUiStore
22
- } from "../../../chunk-OPMRX65X.js";
22
+ } from "../../../chunk-EBTZAB6X.js";
23
23
  import "../../../chunk-J3XVFPOV.js";
24
- import "../../../chunk-ZWO6YBLA.js";
24
+ import "../../../chunk-DQXXSHCR.js";
25
25
  import {
26
26
  cn
27
27
  } from "../../../chunk-7LEKQI47.js";
@@ -1,9 +1,9 @@
1
- import { v as BladeClient, w as BladeClientOptions, s as ApiKeysResource, A as ApiKeyCreateResponse, r as ApiKeyPublic, t as AuthResource, aB as UserInfo, ac as ProvidersResponse, aF as EnvBucketsResource, aG as EnvBucket, aH as PlatformEnvBucket, a3 as MemoriesResource, a4 as Memory, a7 as MemoryListResponse, a5 as MemoryCreateBody, a6 as MemoryListParams, W as GisResource, aI as GisState, aJ as RuntimeConfig, aa as ModelsResource, a8 as ModelOption, a9 as ModelsConfig, an as SkillsResource, X as GlobalSkillStats, aK as SkillDetail, aL as SkillStats, a1 as InstalledRegistrySkill, aM as SkillSummary, aN as SkillSearchResult, aO as PartnerSkillInstallPayload, aP as PartnerSkillInstallResult, aQ as SessionSkillUploadPayload, aR as SessionSkillUploadResult, ad as PublishedAppsResource, aS as PublishedApp, aT as PublishedAppListResponse, aU as PublishedAppStatus, aV as UnpublishAppResponse, aC as UserPreferencesResource, M as ComputerUpgradeStatusResponse, aA as UpgradeComputerResponse, au as SolutionsResource, ai as ScenariosResource, ae as QuickScenario, y as BladeHubScenarioResource, N as CreateQuickScenarioPayload, ab as PreviewUrlItem, az as UpdateQuickScenarioPayload, ap as SoftwareFactoryResource, ar as SoftwareFactorySoftware, at as SoftwareFactoryTopicModule, aq as SoftwareFactorySharedFile, K as CodingTaskTopic, as as SoftwareFactoryTopic, J as CodingTask, Q as CreateSoftwareFactorySharedFilePayload, R as CreateSoftwareFactorySoftwarePayload, ao as SoftwareFactoryModuleBlueprint, ah as ResourceApi, ag as RegistryResource, al as SkillOrgListResponse, B as BackgroundTask, aW as GisGoal, aX as GisResource$1, aY as GisTarget, aZ as GisMapCommand, a_ as Task } from '../blade-client-DoodJJDz.js';
2
- export { a$ as AgentDriver, b0 as AgentResource, b1 as DatabaseDriver, b2 as DatabaseResource, b3 as DifyKnowledgeConfig, b4 as GisGoalStatus, b5 as HttpToolConfig, b6 as KnowledgeDriver, b7 as KnowledgeResource, b8 as McpToolConfig, b9 as MysqlConfig, ba as ParallelMode, bb as PartnerSkillFile, bb as PartnerSkillFileData, bc as PartnerSkillName, bc as PartnerSkillNameData, bd as PostgresqlConfig, af as REGISTRY_PREFIX, be as SessionSkillFile, be as SessionSkillFileData, bf as SessionSkillName, bf as SessionSkillNameData, am as SkillOrgOption, bg as StageSpec, bh as StepSpec, bi as TaskStatus, bj as ToolDriver, bk as ToolResource, aE as normalizeResource, bl as skillDisplayName } from '../blade-client-DoodJJDz.js';
1
+ import { v as BladeClient, w as BladeClientOptions, s as ApiKeysResource, A as ApiKeyCreateResponse, r as ApiKeyPublic, t as AuthResource, aB as UserInfo, ac as ProvidersResponse, aF as EnvBucketsResource, aG as EnvBucket, aH as PlatformEnvBucket, a3 as MemoriesResource, a4 as Memory, a7 as MemoryListResponse, a5 as MemoryCreateBody, a6 as MemoryListParams, W as GisResource, aI as GisState, aJ as RuntimeConfig, aa as ModelsResource, a8 as ModelOption, a9 as ModelsConfig, an as SkillsResource, X as GlobalSkillStats, aK as SkillDetail, aL as SkillStats, a1 as InstalledRegistrySkill, aM as SkillSummary, aN as SkillSearchResult, aO as PartnerSkillInstallPayload, aP as PartnerSkillInstallResult, aQ as SessionSkillUploadPayload, aR as SessionSkillUploadResult, ad as PublishedAppsResource, aS as PublishedApp, aT as PublishedAppListResponse, aU as PublishedAppStatus, aV as UnpublishAppResponse, aC as UserPreferencesResource, M as ComputerUpgradeStatusResponse, aA as UpgradeComputerResponse, au as SolutionsResource, ai as ScenariosResource, ae as QuickScenario, y as BladeHubScenarioResource, N as CreateQuickScenarioPayload, ab as PreviewUrlItem, az as UpdateQuickScenarioPayload, ap as SoftwareFactoryResource, ar as SoftwareFactorySoftware, at as SoftwareFactoryTopicModule, aq as SoftwareFactorySharedFile, K as CodingTaskTopic, as as SoftwareFactoryTopic, J as CodingTask, Q as CreateSoftwareFactorySharedFilePayload, R as CreateSoftwareFactorySoftwarePayload, ao as SoftwareFactoryModuleBlueprint, ah as ResourceApi, ag as RegistryResource, al as SkillOrgListResponse, B as BackgroundTask, aW as GisGoal, aX as GisResource$1, aY as GisTarget, aZ as GisMapCommand, a_ as Task } from '../blade-client-DS7lV19a.js';
2
+ export { a$ as AgentDriver, b0 as AgentResource, b1 as DatabaseDriver, b2 as DatabaseResource, b3 as DifyKnowledgeConfig, b4 as GisGoalStatus, b5 as HttpToolConfig, b6 as KnowledgeDriver, b7 as KnowledgeResource, b8 as McpToolConfig, b9 as MysqlConfig, ba as ParallelMode, bb as PartnerSkillFile, bb as PartnerSkillFileData, bc as PartnerSkillName, bc as PartnerSkillNameData, bd as PostgresqlConfig, af as REGISTRY_PREFIX, be as SessionSkillFile, be as SessionSkillFileData, bf as SessionSkillName, bf as SessionSkillNameData, am as SkillOrgOption, bg as StageSpec, bh as StepSpec, bi as TaskStatus, bj as ToolDriver, bk as ToolResource, aE as normalizeResource, bl as skillDisplayName } from '../blade-client-DS7lV19a.js';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentProps, JSX, ComponentType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
- export { S as SessionExtraInfo, s as sessionsApi, u as uploadFiles } from '../sessions-DFGsAOPa.js';
6
+ export { S as SessionExtraInfo, s as sessionsApi, u as uploadFiles } from '../sessions-DaddUdO6.js';
7
7
  import { B as BizRole, c as Solution, a as SessionInfo } from '../session-B5v5KkVd.js';
8
8
  export { L as LayoutType, M as ModeId, P as PrimarySkillParallelMode, d as PrimarySkillSnapshot, e as PrimarySkillStageSpec, f as PrimarySkillStepSpec, S as SessionDetail, g as SessionPortMapping, b as SessionStatus, h as SkillEditorTemplateId, i as SolutionAppField, j as SolutionAppState, k as SolutionAppUiConfig, T as TemplateId } from '../session-B5v5KkVd.js';
9
9
  import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
@@ -12,8 +12,8 @@ export { F as FileContentPart, I as ImageUrlContentPart, c as MessageContentPart
12
12
  import * as _tanstack_react_query from '@tanstack/react-query';
13
13
  import { Editor } from '@tiptap/react';
14
14
  import { ClassValue } from 'clsx';
15
- import { l as ClientAwareState } from '../SkillStatusBar-CvgcEiSi.js';
16
- export { m as ATTACHMENT_SIZE_LIMIT_BYTES, B as BuildWhatIfPromptInput, a as ChatInput, b as ChatView, g as FileSizeLimitDialog, M as MessageList, O as OversizedFileInfo, P as ParsedWhatIfPrompt, S as SkillStatusBar, W as WhatIfQuote, n as buildWhatIfPrompt, o as formatFileSize, p as invalidateHomeSidebarSessions, q as parseWhatIfPrompt, s as splitFilesBySize, u as useSessionStore } from '../SkillStatusBar-CvgcEiSi.js';
15
+ import { l as ClientAwareState } from '../SkillStatusBar-Dp93pqlP.js';
16
+ export { m as ATTACHMENT_SIZE_LIMIT_BYTES, B as BuildWhatIfPromptInput, a as ChatInput, b as ChatView, g as FileSizeLimitDialog, M as MessageList, O as OversizedFileInfo, P as ParsedWhatIfPrompt, S as SkillStatusBar, W as WhatIfQuote, n as buildWhatIfPrompt, o as formatFileSize, p as invalidateHomeSidebarSessions, q as parseWhatIfPrompt, s as splitFilesBySize, u as useSessionStore } from '../SkillStatusBar-Dp93pqlP.js';
17
17
  import * as zustand from 'zustand';
18
18
  import { Streamdown, ExtraProps } from 'streamdown';
19
19
  import { T as TurnProjection, a as PatchEnvelope } from '../projection-BWYEFYNn.js';
@@ -1449,6 +1449,8 @@ declare const useUiStore: zustand.UseBoundStore<zustand.StoreApi<UiState>>;
1449
1449
 
1450
1450
  declare function buildBinaryPreviewTarget(fileUrl: string, downloadUrl: string, filePath: string, fileName?: string): PreviewTarget | null;
1451
1451
  declare function buildSessionBinaryPreviewTarget(sessionId: string, filePath: string, fileName?: string): PreviewTarget | null;
1452
+ /** 判断文件是否需要后端 soffice 转 PDF 才能预览 */
1453
+ declare function isOfficePdfPreviewable(fileName: string): boolean;
1452
1454
  declare function resolveTextPreviewType(fileName: string): PreviewTarget["type"];
1453
1455
  declare function resolveSessionFilePreviewTarget(sessionId: string, filePath: string, fileName?: string): Promise<PreviewTarget>;
1454
1456
 
@@ -1961,11 +1963,13 @@ interface RuntimeFeaturesState extends ClientAwareState {
1961
1963
  asrProvider: AsrProvider;
1962
1964
  publicSharingEnabled: boolean;
1963
1965
  memoryEnabled: boolean;
1966
+ checkpointsEnabled: boolean;
1964
1967
  setFeatures: (features: {
1965
1968
  asrEnabled?: boolean;
1966
1969
  asrProvider?: AsrProvider;
1967
1970
  publicSharingEnabled?: boolean;
1968
1971
  memoryEnabled?: boolean;
1972
+ checkpointsEnabled?: boolean;
1969
1973
  }) => void;
1970
1974
  }
1971
1975
  /**
@@ -2045,4 +2049,4 @@ interface UiBridgeState extends ClientAwareState {
2045
2049
  }
2046
2050
  declare const useUiBridgeStore: zustand.UseBoundStore<zustand.StoreApi<UiBridgeState>>;
2047
2051
 
2048
- 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 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, 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, useConnectionStore, useDataSources, useGisState, useGisStore, useGlobalSkillStats, useHighlightedCodeHtml, useInputHistory, useKnowledgeBases, useModelConfig, usePreferredModel, useResolvedModel, useRuntimeConfig, useRuntimeFeaturesStore, useRuntimeStore, useSession, useSkills, useTaskStore, useTiptapVoiceInput, useToolProviders, useUiBridgeStore, useUiStore, useVoiceInput, userPreferences as userPreferencesApi };
2052
+ 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 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, useConnectionStore, useDataSources, useGisState, useGisStore, useGlobalSkillStats, useHighlightedCodeHtml, useInputHistory, useKnowledgeBases, useModelConfig, usePreferredModel, useResolvedModel, useRuntimeConfig, useRuntimeFeaturesStore, useRuntimeStore, useSession, useSkills, useTaskStore, useTiptapVoiceInput, useToolProviders, useUiBridgeStore, useUiStore, useVoiceInput, userPreferences as userPreferencesApi };
@@ -30,7 +30,7 @@ import {
30
30
  useTiptapVoiceInput,
31
31
  useVoiceInput,
32
32
  user_preferences_exports
33
- } from "../chunk-HFVB57MR.js";
33
+ } from "../chunk-SGOR4YXZ.js";
34
34
  import {
35
35
  CardCodeBlock,
36
36
  CardContext,
@@ -39,21 +39,22 @@ import {
39
39
  normalizeCodeLanguage,
40
40
  useCardContext,
41
41
  useHighlightedCodeHtml
42
- } from "../chunk-BUQRNLEE.js";
42
+ } from "../chunk-MGXPILAM.js";
43
43
  import {
44
44
  CardJSON,
45
45
  cardRegistry
46
46
  } from "../chunk-2UP7MG3J.js";
47
47
  import {
48
48
  useSession
49
- } from "../chunk-4XBNTPVS.js";
49
+ } from "../chunk-UR6C4AJB.js";
50
50
  import "../chunk-H62LH2AG.js";
51
51
  import {
52
52
  buildBinaryPreviewTarget,
53
53
  buildSessionBinaryPreviewTarget,
54
+ isOfficePdfPreviewable,
54
55
  resolveSessionFilePreviewTarget,
55
56
  resolveTextPreviewType
56
- } from "../chunk-KMQQDKGU.js";
57
+ } from "../chunk-PMG4N3JO.js";
57
58
  import {
58
59
  PartnerSkillFile,
59
60
  PartnerSkillInstallPayload,
@@ -108,12 +109,12 @@ import {
108
109
  useTaskStore,
109
110
  useUiBridgeStore,
110
111
  useUiStore
111
- } from "../chunk-OPMRX65X.js";
112
+ } from "../chunk-EBTZAB6X.js";
112
113
  import "../chunk-J3XVFPOV.js";
113
114
  import {
114
115
  REGISTRY_PREFIX,
115
116
  normalizeResource
116
- } from "../chunk-ZWO6YBLA.js";
117
+ } from "../chunk-DQXXSHCR.js";
117
118
  import {
118
119
  cn,
119
120
  copyToClipboard
@@ -1888,6 +1889,7 @@ export {
1888
1889
  groupMessagesByLoop,
1889
1890
  invalidateHomeSidebarSessions,
1890
1891
  isInsideIframe,
1892
+ isOfficePdfPreviewable,
1891
1893
  isUiMeta,
1892
1894
  knowledgeApi,
1893
1895
  listSkillOrgs,