@blade-hq/agent-kit 0.5.26 → 0.5.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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  apiFetchResponse,
3
3
  getAuthedUrl
4
- } from "./chunk-UNO53NPU.js";
4
+ } from "./chunk-JWHBUVSM.js";
5
5
 
6
6
  // src/react/lib/session-file-preview.ts
7
7
  var IMAGE_EXTS = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]);
@@ -97,4 +97,4 @@ export {
97
97
  resolveTextPreviewType,
98
98
  resolveSessionFilePreviewTarget
99
99
  };
100
- //# sourceMappingURL=chunk-4FCXKLXT.js.map
100
+ //# sourceMappingURL=chunk-XLQZDSJ5.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-DA2h2P5I.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-DoodJJDz.js';
2
2
  import 'arktype/internal/variants/object.ts';
3
3
  import 'arktype/internal/variants/string.ts';
4
4
  import '../projection-BWYEFYNn.js';
@@ -3648,6 +3648,114 @@ interface paths {
3648
3648
  patch?: never;
3649
3649
  trace?: never;
3650
3650
  };
3651
+ "/api/agent-board/projects/{project_id}/workspace-dirs": {
3652
+ parameters: {
3653
+ query?: never;
3654
+ header?: never;
3655
+ path?: never;
3656
+ cookie?: never;
3657
+ };
3658
+ /**
3659
+ * List Workspace Dirs
3660
+ * @description 列出指定容器路径下的子目录,供导出文件选择器逐级浏览。
3661
+ */
3662
+ get: operations["list_workspace_dirs_api_agent_board_projects__project_id__workspace_dirs_get"];
3663
+ put?: never;
3664
+ post?: never;
3665
+ delete?: never;
3666
+ options?: never;
3667
+ head?: never;
3668
+ patch?: never;
3669
+ trace?: never;
3670
+ };
3671
+ "/api/agent-board/projects/{project_id}/export": {
3672
+ parameters: {
3673
+ query?: never;
3674
+ header?: never;
3675
+ path?: never;
3676
+ cookie?: never;
3677
+ };
3678
+ /** Export Project */
3679
+ get: operations["export_project_api_agent_board_projects__project_id__export_get"];
3680
+ put?: never;
3681
+ post?: never;
3682
+ delete?: never;
3683
+ options?: never;
3684
+ head?: never;
3685
+ patch?: never;
3686
+ trace?: never;
3687
+ };
3688
+ "/api/agent-board/projects/export/download/{token}": {
3689
+ parameters: {
3690
+ query?: never;
3691
+ header?: never;
3692
+ path?: never;
3693
+ cookie?: never;
3694
+ };
3695
+ /** Download Export */
3696
+ get: operations["download_export_api_agent_board_projects_export_download__token__get"];
3697
+ put?: never;
3698
+ post?: never;
3699
+ delete?: never;
3700
+ options?: never;
3701
+ head?: never;
3702
+ patch?: never;
3703
+ trace?: never;
3704
+ };
3705
+ "/api/agent-board/projects/check-path": {
3706
+ parameters: {
3707
+ query?: never;
3708
+ header?: never;
3709
+ path?: never;
3710
+ cookie?: never;
3711
+ };
3712
+ /**
3713
+ * Check Path Exists
3714
+ * @description 检查容器路径是否已存在。
3715
+ */
3716
+ get: operations["check_path_exists_api_agent_board_projects_check_path_get"];
3717
+ put?: never;
3718
+ post?: never;
3719
+ delete?: never;
3720
+ options?: never;
3721
+ head?: never;
3722
+ patch?: never;
3723
+ trace?: never;
3724
+ };
3725
+ "/api/agent-board/projects/import/preview": {
3726
+ parameters: {
3727
+ query?: never;
3728
+ header?: never;
3729
+ path?: never;
3730
+ cookie?: never;
3731
+ };
3732
+ get?: never;
3733
+ put?: never;
3734
+ /** Preview Import */
3735
+ post: operations["preview_import_api_agent_board_projects_import_preview_post"];
3736
+ delete?: never;
3737
+ options?: never;
3738
+ head?: never;
3739
+ patch?: never;
3740
+ trace?: never;
3741
+ };
3742
+ "/api/agent-board/projects/import": {
3743
+ parameters: {
3744
+ query?: never;
3745
+ header?: never;
3746
+ path?: never;
3747
+ cookie?: never;
3748
+ };
3749
+ get?: never;
3750
+ put?: never;
3751
+ /** Do Import Project */
3752
+ post: operations["do_import_project_api_agent_board_projects_import_post"];
3753
+ delete?: never;
3754
+ options?: never;
3755
+ head?: never;
3756
+ patch?: never;
3757
+ trace?: never;
3758
+ };
3651
3759
  "/api/agent-board/projects/{project_id}/bootstrap": {
3652
3760
  parameters: {
3653
3761
  query?: never;
@@ -3716,6 +3824,23 @@ interface paths {
3716
3824
  patch?: never;
3717
3825
  trace?: never;
3718
3826
  };
3827
+ "/api/agent-board/projects/{project_id}/file-ops": {
3828
+ parameters: {
3829
+ query?: never;
3830
+ header?: never;
3831
+ path?: never;
3832
+ cookie?: never;
3833
+ };
3834
+ /** List Project File Ops */
3835
+ get: operations["list_project_file_ops_api_agent_board_projects__project_id__file_ops_get"];
3836
+ put?: never;
3837
+ post?: never;
3838
+ delete?: never;
3839
+ options?: never;
3840
+ head?: never;
3841
+ patch?: never;
3842
+ trace?: never;
3843
+ };
3719
3844
  "/api/agent-board/projects/{project_id}/files/{file_path}": {
3720
3845
  parameters: {
3721
3846
  query?: never;
@@ -4544,6 +4669,11 @@ interface components {
4544
4669
  /** Biz Role Ids */
4545
4670
  biz_role_ids: string[];
4546
4671
  };
4672
+ /** Body_do_import_project_api_agent_board_projects_import_post */
4673
+ Body_do_import_project_api_agent_board_projects_import_post: {
4674
+ /** File */
4675
+ file: string;
4676
+ };
4547
4677
  /** Body_import_factory_project_api_software_factory_software_import_post */
4548
4678
  Body_import_factory_project_api_software_factory_software_import_post: {
4549
4679
  /** File */
@@ -4585,6 +4715,11 @@ interface components {
4585
4715
  /** Password */
4586
4716
  password: string;
4587
4717
  };
4718
+ /** Body_preview_import_api_agent_board_projects_import_preview_post */
4719
+ Body_preview_import_api_agent_board_projects_import_preview_post: {
4720
+ /** File */
4721
+ file: string;
4722
+ };
4588
4723
  /** Body_preview_import_api_sessions_preview_import_post */
4589
4724
  Body_preview_import_api_sessions_preview_import_post: {
4590
4725
  /** File */
@@ -14729,6 +14864,201 @@ interface operations {
14729
14864
  };
14730
14865
  };
14731
14866
  };
14867
+ list_workspace_dirs_api_agent_board_projects__project_id__workspace_dirs_get: {
14868
+ parameters: {
14869
+ query?: {
14870
+ parent?: string;
14871
+ };
14872
+ header?: never;
14873
+ path: {
14874
+ project_id: number;
14875
+ };
14876
+ cookie?: never;
14877
+ };
14878
+ requestBody?: never;
14879
+ responses: {
14880
+ /** @description Successful Response */
14881
+ 200: {
14882
+ headers: {
14883
+ [name: string]: unknown;
14884
+ };
14885
+ content: {
14886
+ "application/json": unknown;
14887
+ };
14888
+ };
14889
+ /** @description Validation Error */
14890
+ 422: {
14891
+ headers: {
14892
+ [name: string]: unknown;
14893
+ };
14894
+ content: {
14895
+ "application/json": components["schemas"]["HTTPValidationError"];
14896
+ };
14897
+ };
14898
+ };
14899
+ };
14900
+ export_project_api_agent_board_projects__project_id__export_get: {
14901
+ parameters: {
14902
+ query?: {
14903
+ include_sessions?: boolean;
14904
+ workspace_paths?: string;
14905
+ };
14906
+ header?: never;
14907
+ path: {
14908
+ project_id: number;
14909
+ };
14910
+ cookie?: never;
14911
+ };
14912
+ requestBody?: never;
14913
+ responses: {
14914
+ /** @description Successful Response */
14915
+ 200: {
14916
+ headers: {
14917
+ [name: string]: unknown;
14918
+ };
14919
+ content: {
14920
+ "application/json": unknown;
14921
+ };
14922
+ };
14923
+ /** @description Validation Error */
14924
+ 422: {
14925
+ headers: {
14926
+ [name: string]: unknown;
14927
+ };
14928
+ content: {
14929
+ "application/json": components["schemas"]["HTTPValidationError"];
14930
+ };
14931
+ };
14932
+ };
14933
+ };
14934
+ download_export_api_agent_board_projects_export_download__token__get: {
14935
+ parameters: {
14936
+ query?: never;
14937
+ header?: never;
14938
+ path: {
14939
+ token: string;
14940
+ };
14941
+ cookie?: never;
14942
+ };
14943
+ requestBody?: never;
14944
+ responses: {
14945
+ /** @description Successful Response */
14946
+ 200: {
14947
+ headers: {
14948
+ [name: string]: unknown;
14949
+ };
14950
+ content: {
14951
+ "application/json": unknown;
14952
+ };
14953
+ };
14954
+ /** @description Validation Error */
14955
+ 422: {
14956
+ headers: {
14957
+ [name: string]: unknown;
14958
+ };
14959
+ content: {
14960
+ "application/json": components["schemas"]["HTTPValidationError"];
14961
+ };
14962
+ };
14963
+ };
14964
+ };
14965
+ check_path_exists_api_agent_board_projects_check_path_get: {
14966
+ parameters: {
14967
+ query?: {
14968
+ path?: string;
14969
+ };
14970
+ header?: never;
14971
+ path?: never;
14972
+ cookie?: never;
14973
+ };
14974
+ requestBody?: never;
14975
+ responses: {
14976
+ /** @description Successful Response */
14977
+ 200: {
14978
+ headers: {
14979
+ [name: string]: unknown;
14980
+ };
14981
+ content: {
14982
+ "application/json": unknown;
14983
+ };
14984
+ };
14985
+ /** @description Validation Error */
14986
+ 422: {
14987
+ headers: {
14988
+ [name: string]: unknown;
14989
+ };
14990
+ content: {
14991
+ "application/json": components["schemas"]["HTTPValidationError"];
14992
+ };
14993
+ };
14994
+ };
14995
+ };
14996
+ preview_import_api_agent_board_projects_import_preview_post: {
14997
+ parameters: {
14998
+ query?: never;
14999
+ header?: never;
15000
+ path?: never;
15001
+ cookie?: never;
15002
+ };
15003
+ requestBody: {
15004
+ content: {
15005
+ "multipart/form-data": components["schemas"]["Body_preview_import_api_agent_board_projects_import_preview_post"];
15006
+ };
15007
+ };
15008
+ responses: {
15009
+ /** @description Successful Response */
15010
+ 200: {
15011
+ headers: {
15012
+ [name: string]: unknown;
15013
+ };
15014
+ content: {
15015
+ "application/json": unknown;
15016
+ };
15017
+ };
15018
+ /** @description Validation Error */
15019
+ 422: {
15020
+ headers: {
15021
+ [name: string]: unknown;
15022
+ };
15023
+ content: {
15024
+ "application/json": components["schemas"]["HTTPValidationError"];
15025
+ };
15026
+ };
15027
+ };
15028
+ };
15029
+ do_import_project_api_agent_board_projects_import_post: {
15030
+ parameters: {
15031
+ query?: never;
15032
+ header?: never;
15033
+ path?: never;
15034
+ cookie?: never;
15035
+ };
15036
+ requestBody: {
15037
+ content: {
15038
+ "multipart/form-data": components["schemas"]["Body_do_import_project_api_agent_board_projects_import_post"];
15039
+ };
15040
+ };
15041
+ responses: {
15042
+ /** @description Successful Response */
15043
+ 200: {
15044
+ headers: {
15045
+ [name: string]: unknown;
15046
+ };
15047
+ content: {
15048
+ "application/json": unknown;
15049
+ };
15050
+ };
15051
+ /** @description Validation Error */
15052
+ 422: {
15053
+ headers: {
15054
+ [name: string]: unknown;
15055
+ };
15056
+ content: {
15057
+ "application/json": components["schemas"]["HTTPValidationError"];
15058
+ };
15059
+ };
15060
+ };
15061
+ };
14732
15062
  bootstrap_project_repo_api_agent_board_projects__project_id__bootstrap_post: {
14733
15063
  parameters: {
14734
15064
  query?: never;
@@ -14855,6 +15185,39 @@ interface operations {
14855
15185
  };
14856
15186
  };
14857
15187
  };
15188
+ list_project_file_ops_api_agent_board_projects__project_id__file_ops_get: {
15189
+ parameters: {
15190
+ query?: {
15191
+ limit?: number;
15192
+ };
15193
+ header?: never;
15194
+ path: {
15195
+ project_id: number;
15196
+ };
15197
+ cookie?: never;
15198
+ };
15199
+ requestBody?: never;
15200
+ responses: {
15201
+ /** @description Successful Response */
15202
+ 200: {
15203
+ headers: {
15204
+ [name: string]: unknown;
15205
+ };
15206
+ content: {
15207
+ "application/json": unknown;
15208
+ };
15209
+ };
15210
+ /** @description Validation Error */
15211
+ 422: {
15212
+ headers: {
15213
+ [name: string]: unknown;
15214
+ };
15215
+ content: {
15216
+ "application/json": components["schemas"]["HTTPValidationError"];
15217
+ };
15218
+ };
15219
+ };
15220
+ };
14858
15221
  read_project_file_api_agent_board_projects__project_id__files__file_path__get: {
14859
15222
  parameters: {
14860
15223
  query?: never;
@@ -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-DA2h2P5I.js';
2
- export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-DA2h2P5I.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-DoodJJDz.js';
2
+ export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-DoodJJDz.js';
3
3
  import 'arktype/internal/variants/object.ts';
4
4
  import 'arktype/internal/variants/string.ts';
5
5
  import '../../projection-BWYEFYNn.js';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getClient
3
- } from "../../chunk-UNO53NPU.js";
3
+ } from "../../chunk-JWHBUVSM.js";
4
4
  import "../../chunk-J3XVFPOV.js";
5
5
  import "../../chunk-ZWO6YBLA.js";
6
6
  import "../../chunk-JCJFFJ42.js";
@@ -1,5 +1,5 @@
1
- import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-qjGb3eKD.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-qjGb3eKD.js';
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';
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-DA2h2P5I.js';
13
+ import '../../../blade-client-DoodJJDz.js';
14
14
  import 'socket.io-client';
15
15
 
16
16
  /**
@@ -16,14 +16,14 @@ import {
16
16
  isErrorMessage,
17
17
  isUserMessage,
18
18
  useWhatIfQuoteContext
19
- } from "../../../chunk-QCDNRR74.js";
19
+ } from "../../../chunk-UIQ35OUJ.js";
20
20
  import {
21
21
  AskUserQuestionBlock
22
- } from "../../../chunk-Y7FRTBUT.js";
22
+ } from "../../../chunk-NIWUUKD4.js";
23
23
  import "../../../chunk-2UP7MG3J.js";
24
24
  import "../../../chunk-H62LH2AG.js";
25
- import "../../../chunk-4FCXKLXT.js";
26
- import "../../../chunk-UNO53NPU.js";
25
+ import "../../../chunk-XLQZDSJ5.js";
26
+ import "../../../chunk-JWHBUVSM.js";
27
27
  import "../../../chunk-J3XVFPOV.js";
28
28
  import "../../../chunk-ZWO6YBLA.js";
29
29
  import "../../../chunk-7LEKQI47.js";
@@ -3,10 +3,10 @@ import {
3
3
  PlanSummaryCard,
4
4
  extractLatestPlanMessages,
5
5
  parsePlanMessages
6
- } from "../../../chunk-Y7FRTBUT.js";
6
+ } from "../../../chunk-NIWUUKD4.js";
7
7
  import "../../../chunk-2UP7MG3J.js";
8
- import "../../../chunk-4FCXKLXT.js";
9
- import "../../../chunk-UNO53NPU.js";
8
+ import "../../../chunk-XLQZDSJ5.js";
9
+ import "../../../chunk-JWHBUVSM.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
11
  import "../../../chunk-ZWO6YBLA.js";
12
12
  import {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  useSession
3
- } from "../../../chunk-6L6JFSR5.js";
3
+ } from "../../../chunk-EP5LVNO3.js";
4
4
  import {
5
5
  checkoutSession,
6
6
  getSessionCheckpoints,
7
7
  useChatStore,
8
8
  useSessionStore
9
- } from "../../../chunk-UNO53NPU.js";
9
+ } from "../../../chunk-JWHBUVSM.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
11
  import "../../../chunk-ZWO6YBLA.js";
12
12
  import {
@@ -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-BZ3y17sP.js';
4
- import '../../../blade-client-DA2h2P5I.js';
3
+ import { l as listDir } from '../../../sessions-DFGsAOPa.js';
4
+ import '../../../blade-client-DoodJJDz.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-4FCXKLXT.js";
8
+ } from "../../../chunk-XLQZDSJ5.js";
9
9
  import {
10
10
  apiFetchText,
11
11
  copyFile,
@@ -19,7 +19,7 @@ import {
19
19
  useChatStore,
20
20
  useSessionStore,
21
21
  useUiStore
22
- } from "../../../chunk-UNO53NPU.js";
22
+ } from "../../../chunk-JWHBUVSM.js";
23
23
  import "../../../chunk-J3XVFPOV.js";
24
24
  import "../../../chunk-ZWO6YBLA.js";
25
25
  import {
@@ -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-DA2h2P5I.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-DA2h2P5I.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-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';
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-BZ3y17sP.js';
6
+ export { S as SessionExtraInfo, s as sessionsApi, u as uploadFiles } from '../sessions-DFGsAOPa.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-qjGb3eKD.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-qjGb3eKD.js';
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';
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';
@@ -1047,6 +1047,19 @@ type WorkspaceFilesChangedEvent = {
1047
1047
  type AgentBoardBoardTaskChangedEvent = {
1048
1048
  [key: string]: any;
1049
1049
  };
1050
+ type AgentBoardFileOpEvent = {
1051
+ project_id: number;
1052
+ session_id: string;
1053
+ tool_call_id?: string | null;
1054
+ action: string;
1055
+ file_path: string;
1056
+ description?: string | null;
1057
+ content_preview?: string | null;
1058
+ final_content?: string | null;
1059
+ content_delta?: boolean | null;
1060
+ is_final?: boolean | null;
1061
+ created_at: string;
1062
+ };
1050
1063
  declare function setOnWorkspaceFilesChanged(fn: ((event: WorkspaceFilesChangedEvent) => void) | null): void;
1051
1064
  declare class AgentSocket {
1052
1065
  private client;
@@ -1079,6 +1092,7 @@ declare class AgentSocket {
1079
1092
  subscribeAgentBoardProject(projectId: string | number): void;
1080
1093
  unsubscribeAgentBoardProject(projectId: string | number): void;
1081
1094
  onAgentBoardTaskChanged(handler: (data: AgentBoardBoardTaskChangedEvent) => void): () => void;
1095
+ onAgentBoardFileOp(handler: (data: AgentBoardFileOpEvent) => void): () => void;
1082
1096
  unsubscribe(): void;
1083
1097
  /**
1084
1098
  * 附加订阅:仅把当前 sid 加进 sessionId 的 room,不切 subscribedSession,
@@ -1091,6 +1105,7 @@ declare class AgentSocket {
1091
1105
  */
1092
1106
  attachSession(sessionId: string): void;
1093
1107
  private _ensureJoined;
1108
+ private _refreshRunningState;
1094
1109
  private _shouldWaitForJoinBeforeSend;
1095
1110
  send(sessionId: string, message: MessageContent, mode?: string, askuserAnswer?: Record<string, unknown>, extras?: {
1096
1111
  model?: string;
@@ -30,7 +30,7 @@ import {
30
30
  useTiptapVoiceInput,
31
31
  useVoiceInput,
32
32
  user_preferences_exports
33
- } from "../chunk-QCDNRR74.js";
33
+ } from "../chunk-UIQ35OUJ.js";
34
34
  import {
35
35
  CardCodeBlock,
36
36
  CardContext,
@@ -39,20 +39,20 @@ import {
39
39
  normalizeCodeLanguage,
40
40
  useCardContext,
41
41
  useHighlightedCodeHtml
42
- } from "../chunk-Y7FRTBUT.js";
42
+ } from "../chunk-NIWUUKD4.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-6L6JFSR5.js";
49
+ } from "../chunk-EP5LVNO3.js";
50
50
  import "../chunk-H62LH2AG.js";
51
51
  import {
52
52
  buildSessionBinaryPreviewTarget,
53
53
  resolveSessionFilePreviewTarget,
54
54
  resolveTextPreviewType
55
- } from "../chunk-4FCXKLXT.js";
55
+ } from "../chunk-XLQZDSJ5.js";
56
56
  import {
57
57
  PartnerSkillFile,
58
58
  PartnerSkillInstallPayload,
@@ -107,7 +107,7 @@ import {
107
107
  useTaskStore,
108
108
  useUiBridgeStore,
109
109
  useUiStore
110
- } from "../chunk-UNO53NPU.js";
110
+ } from "../chunk-JWHBUVSM.js";
111
111
  import "../chunk-J3XVFPOV.js";
112
112
  import {
113
113
  REGISTRY_PREFIX,
@@ -1,4 +1,4 @@
1
- import { S as SessionsResource, g as ShareLinkResult, B as BackgroundTask, h as CheckpointNode, i as SessionContextStats, j as SessionHistory, F as FileEntry, k as PaginatedSessionsResult, l as SkillDevSession, I as ImportPreview, T as TokenizeResult, m as ContentPart, n as CreateSessionRequest, H as HistoryNode, o as ImportPreviewScenario, p as ImportPreviewSkill, U as UploadFileEntry, q as UploadFilesOptions } from './blade-client-DA2h2P5I.js';
1
+ import { S as SessionsResource, g as ShareLinkResult, B as BackgroundTask, h as CheckpointNode, i as SessionContextStats, j as SessionHistory, F as FileEntry, k as PaginatedSessionsResult, l as SkillDevSession, I as ImportPreview, T as TokenizeResult, m as ContentPart, n as CreateSessionRequest, H as HistoryNode, o as ImportPreviewScenario, p as ImportPreviewSkill, U as UploadFileEntry, q as UploadFilesOptions } from './blade-client-DoodJJDz.js';
2
2
  import { T as TurnProjection } from './projection-BWYEFYNn.js';
3
3
  import { S as SessionDetail, a as SessionInfo } from './session-B5v5KkVd.js';
4
4