@blade-hq/agent-kit 0.5.24 → 0.5.26

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 (38) hide show
  1. package/dist/{SkillStatusBar-DO-ltefK.d.ts → SkillStatusBar-qjGb3eKD.d.ts} +7 -4
  2. package/dist/{blade-client-Bhp0hHiZ.d.ts → blade-client-DA2h2P5I.d.ts} +48 -3
  3. package/dist/{chunk-QKSZPJQX.js → chunk-4FCXKLXT.js} +11 -5
  4. package/dist/chunk-4FCXKLXT.js.map +1 -0
  5. package/dist/{chunk-63IWZ3AO.js → chunk-6L6JFSR5.js} +2 -2
  6. package/dist/{chunk-7FGJNW56.js → chunk-QCDNRR74.js} +403 -326
  7. package/dist/chunk-QCDNRR74.js.map +1 -0
  8. package/dist/{chunk-DTDZFQRY.js → chunk-UNO53NPU.js} +27 -2
  9. package/dist/chunk-UNO53NPU.js.map +1 -0
  10. package/dist/{chunk-KW66QITV.js → chunk-Y7FRTBUT.js} +20 -4
  11. package/dist/chunk-Y7FRTBUT.js.map +1 -0
  12. package/dist/{chunk-7EVVRQ7G.js → chunk-ZWO6YBLA.js} +4 -3
  13. package/dist/chunk-ZWO6YBLA.js.map +1 -0
  14. package/dist/client/index.d.ts +4615 -2834
  15. package/dist/client/index.js +1 -1
  16. package/dist/react/api/vibe-coding.d.ts +3 -3
  17. package/dist/react/api/vibe-coding.js +2 -2
  18. package/dist/react/components/chat/index.d.ts +4 -4
  19. package/dist/react/components/chat/index.js +5 -5
  20. package/dist/react/components/plan/index.js +4 -4
  21. package/dist/react/components/session/index.d.ts +1 -1
  22. package/dist/react/components/session/index.js +3 -3
  23. package/dist/react/components/workspace/index.d.ts +22 -2
  24. package/dist/react/components/workspace/index.js +31 -15
  25. package/dist/react/components/workspace/index.js.map +1 -1
  26. package/dist/react/index.d.ts +24 -179
  27. package/dist/react/index.js +10 -7
  28. package/dist/react/index.js.map +1 -1
  29. package/dist/{session-BuaeCsMC.d.ts → session-B5v5KkVd.d.ts} +5 -3
  30. package/dist/sessions-BZ3y17sP.d.ts +174 -0
  31. package/dist/style.css +1 -1
  32. package/package.json +1 -1
  33. package/dist/chunk-7EVVRQ7G.js.map +0 -1
  34. package/dist/chunk-7FGJNW56.js.map +0 -1
  35. package/dist/chunk-DTDZFQRY.js.map +0 -1
  36. package/dist/chunk-KW66QITV.js.map +0 -1
  37. package/dist/chunk-QKSZPJQX.js.map +0 -1
  38. /package/dist/{chunk-63IWZ3AO.js.map → chunk-6L6JFSR5.js.map} +0 -0
@@ -22,7 +22,7 @@ import {
22
22
  VibeCodingResource,
23
23
  createSocket,
24
24
  normalizeResource
25
- } from "../chunk-7EVVRQ7G.js";
25
+ } from "../chunk-ZWO6YBLA.js";
26
26
  import "../chunk-PZ5AY32C.js";
27
27
  export {
28
28
  ApiKeysResource,
@@ -1,9 +1,9 @@
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-Bhp0hHiZ.js';
2
- export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-Bhp0hHiZ.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-DA2h2P5I.js';
2
+ export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-DA2h2P5I.js';
3
3
  import 'arktype/internal/variants/object.ts';
4
4
  import 'arktype/internal/variants/string.ts';
5
5
  import '../../projection-BWYEFYNn.js';
6
- import '../../session-BuaeCsMC.js';
6
+ import '../../session-B5v5KkVd.js';
7
7
  import 'socket.io-client';
8
8
 
9
9
  declare const createVibeCodingSession: (...args: Parameters<VibeCodingResource["createVibeCodingSession"]>) => Promise<CreateVibeCodingSessionResult>;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getClient
3
- } from "../../chunk-DTDZFQRY.js";
3
+ } from "../../chunk-UNO53NPU.js";
4
4
  import "../../chunk-J3XVFPOV.js";
5
- import "../../chunk-7EVVRQ7G.js";
5
+ import "../../chunk-ZWO6YBLA.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-DO-ltefK.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-DO-ltefK.js';
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';
3
3
  import * as react from 'react';
4
4
  import { ReactNode } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -7,10 +7,10 @@ import { a as CompactionInfo, C as ChatMessage, A as AskUserAnswerData, T as Too
7
7
  export { b as AskUserQuestionBlock } from '../../../AskUserQuestionBlock---kOTouk.js';
8
8
  import { C as ContentBlock } from '../../../projection-BWYEFYNn.js';
9
9
  import 'zustand';
10
- import '../../../session-BuaeCsMC.js';
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-Bhp0hHiZ.js';
13
+ import '../../../blade-client-DA2h2P5I.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-7FGJNW56.js";
19
+ } from "../../../chunk-QCDNRR74.js";
20
20
  import {
21
21
  AskUserQuestionBlock
22
- } from "../../../chunk-KW66QITV.js";
22
+ } from "../../../chunk-Y7FRTBUT.js";
23
23
  import "../../../chunk-2UP7MG3J.js";
24
24
  import "../../../chunk-H62LH2AG.js";
25
- import "../../../chunk-QKSZPJQX.js";
26
- import "../../../chunk-DTDZFQRY.js";
25
+ import "../../../chunk-4FCXKLXT.js";
26
+ import "../../../chunk-UNO53NPU.js";
27
27
  import "../../../chunk-J3XVFPOV.js";
28
- import "../../../chunk-7EVVRQ7G.js";
28
+ import "../../../chunk-ZWO6YBLA.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-KW66QITV.js";
6
+ } from "../../../chunk-Y7FRTBUT.js";
7
7
  import "../../../chunk-2UP7MG3J.js";
8
- import "../../../chunk-QKSZPJQX.js";
9
- import "../../../chunk-DTDZFQRY.js";
8
+ import "../../../chunk-4FCXKLXT.js";
9
+ import "../../../chunk-UNO53NPU.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-7EVVRQ7G.js";
11
+ import "../../../chunk-ZWO6YBLA.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SessionInfo } from '../../../session-BuaeCsMC.js';
2
+ import { a as SessionInfo } from '../../../session-B5v5KkVd.js';
3
3
  import 'arktype/internal/variants/object.ts';
4
4
  import 'arktype/internal/variants/string.ts';
5
5
 
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useSession
3
- } from "../../../chunk-63IWZ3AO.js";
3
+ } from "../../../chunk-6L6JFSR5.js";
4
4
  import {
5
5
  checkoutSession,
6
6
  getSessionCheckpoints,
7
7
  useChatStore,
8
8
  useSessionStore
9
- } from "../../../chunk-DTDZFQRY.js";
9
+ } from "../../../chunk-UNO53NPU.js";
10
10
  import "../../../chunk-J3XVFPOV.js";
11
- import "../../../chunk-7EVVRQ7G.js";
11
+ import "../../../chunk-ZWO6YBLA.js";
12
12
  import {
13
13
  cn
14
14
  } from "../../../chunk-7LEKQI47.js";
@@ -1,6 +1,20 @@
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';
5
+ import 'arktype/internal/variants/object.ts';
6
+ import 'arktype/internal/variants/string.ts';
7
+ import '../../../projection-BWYEFYNn.js';
8
+ import '../../../session-B5v5KkVd.js';
9
+ import 'socket.io-client';
3
10
 
11
+ interface WorkspaceFileEntry {
12
+ name: string;
13
+ path: string;
14
+ is_dir: boolean;
15
+ created_at: number;
16
+ tags?: string[];
17
+ }
4
18
  interface WorkspaceFilesPanelProps {
5
19
  sessionId: string | null;
6
20
  enableEditor?: boolean;
@@ -16,9 +30,13 @@ interface WorkspaceFilesPanelProps {
16
30
  topSlot?: ReactNode;
17
31
  /** Custom file open handler; used when enableEditor is false if provided. */
18
32
  onOpenFile?: (path: string, name: string) => Promise<void>;
33
+ listDir?: (sessionId: string, dirPath: string) => Promise<WorkspaceFileEntry[]>;
34
+ queryKeyScope?: readonly unknown[];
19
35
  }
20
- declare function WorkspaceFilesPanel({ sessionId, enableEditor, className, treeContainerClassName, title, rootPath, readOnly, onShareFile, onSync, allowDelete, topSlot, onOpenFile, }: WorkspaceFilesPanelProps): react_jsx_runtime.JSX.Element;
36
+ declare function WorkspaceFilesPanel({ sessionId, enableEditor, className, treeContainerClassName, title, rootPath, readOnly, onShareFile, onSync, allowDelete, topSlot, onOpenFile, listDir, queryKeyScope, }: WorkspaceFilesPanelProps): react_jsx_runtime.JSX.Element;
21
37
 
38
+ type FileEntry = Awaited<ReturnType<typeof listDir>>[number];
39
+ type ListDirFn = (sessionId: string, dirPath: string) => Promise<FileEntry[]>;
22
40
  interface FileTreeProps {
23
41
  sessionId: string | null;
24
42
  checkActiveSession?: boolean;
@@ -29,7 +47,9 @@ interface FileTreeProps {
29
47
  onShareFile?: (path: string, name: string) => Promise<void>;
30
48
  allowDelete?: boolean;
31
49
  onOpenFile?: (path: string, name: string) => Promise<void>;
50
+ listDir?: ListDirFn;
51
+ queryKeyScope?: readonly unknown[];
32
52
  }
33
- declare function FileTree({ sessionId, checkActiveSession, enableEditor, onExpandedDirsChange, rootPath, readOnly, onShareFile, allowDelete, onOpenFile, }: FileTreeProps): react_jsx_runtime.JSX.Element;
53
+ declare function FileTree({ sessionId, checkActiveSession, enableEditor, onExpandedDirsChange, rootPath, readOnly, onShareFile, allowDelete, onOpenFile, listDir, queryKeyScope, }: FileTreeProps): react_jsx_runtime.JSX.Element;
34
54
 
35
55
  export { FileTree, WorkspaceFilesPanel };
@@ -5,7 +5,7 @@ import {
5
5
  } from "../../../chunk-H62LH2AG.js";
6
6
  import {
7
7
  resolveSessionFilePreviewTarget
8
- } from "../../../chunk-QKSZPJQX.js";
8
+ } from "../../../chunk-4FCXKLXT.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-DTDZFQRY.js";
22
+ } from "../../../chunk-UNO53NPU.js";
23
23
  import "../../../chunk-J3XVFPOV.js";
24
- import "../../../chunk-7EVVRQ7G.js";
24
+ import "../../../chunk-ZWO6YBLA.js";
25
25
  import {
26
26
  cn
27
27
  } from "../../../chunk-7LEKQI47.js";
@@ -289,7 +289,9 @@ function FileTree2({
289
289
  readOnly = false,
290
290
  onShareFile,
291
291
  allowDelete = false,
292
- onOpenFile
292
+ onOpenFile,
293
+ listDir: listDir2 = (sessionId2, dirPath) => listDir(sessionId2, dirPath),
294
+ queryKeyScope
293
295
  }) {
294
296
  const pushArtifact = useUiStore((state) => state.pushArtifact);
295
297
  const [expandedDirs, setExpandedDirs] = useState2(/* @__PURE__ */ new Set([rootPath]));
@@ -358,8 +360,8 @@ function FileTree2({
358
360
  isLoading: rootLoading,
359
361
  error: rootError
360
362
  } = useQuery({
361
- queryKey: ["file-tree", sessionId, rootPath],
362
- queryFn: () => listDir(sessionId, rootPath),
363
+ queryKey: ["file-tree", ...queryKeyScope ?? [sessionId], rootPath],
364
+ queryFn: () => listDir2(sessionId, rootPath),
363
365
  enabled: !!sessionId,
364
366
  refetchInterval: isStreaming ? 6e4 : false
365
367
  });
@@ -434,7 +436,9 @@ function FileTree2({
434
436
  sessionId,
435
437
  readOnly,
436
438
  onShareFile,
437
- allowDelete
439
+ allowDelete,
440
+ listDir: listDir2,
441
+ queryKeyScope
438
442
  },
439
443
  entry.path
440
444
  ) : /* @__PURE__ */ jsx2(
@@ -470,7 +474,9 @@ function FolderNode({
470
474
  sessionId,
471
475
  readOnly,
472
476
  onShareFile,
473
- allowDelete
477
+ allowDelete,
478
+ listDir: listDir2,
479
+ queryKeyScope
474
480
  }) {
475
481
  const queryClient = useQueryClient();
476
482
  const isExpanded = expandedDirs.has(entry.path);
@@ -688,7 +694,9 @@ function FolderNode({
688
694
  sessionId,
689
695
  readOnly,
690
696
  onShareFile,
691
- allowDelete
697
+ allowDelete,
698
+ listDir: listDir2,
699
+ queryKeyScope
692
700
  }
693
701
  ) }) })
694
702
  ] }) });
@@ -914,15 +922,17 @@ function LazyDirChildren({
914
922
  sessionId,
915
923
  readOnly,
916
924
  onShareFile,
917
- allowDelete
925
+ allowDelete,
926
+ listDir: listDir2,
927
+ queryKeyScope
918
928
  }) {
919
929
  const {
920
930
  data: entries,
921
931
  isLoading,
922
932
  error
923
933
  } = useQuery({
924
- queryKey: ["file-tree", sessionId, dirPath],
925
- queryFn: () => listDir(sessionId, dirPath),
934
+ queryKey: ["file-tree", ...queryKeyScope ?? [sessionId], dirPath],
935
+ queryFn: () => listDir2(sessionId, dirPath),
926
936
  refetchInterval: isStreaming ? 6e4 : false
927
937
  });
928
938
  if (isLoading) {
@@ -953,7 +963,9 @@ function LazyDirChildren({
953
963
  sessionId,
954
964
  readOnly,
955
965
  onShareFile,
956
- allowDelete
966
+ allowDelete,
967
+ listDir: listDir2,
968
+ queryKeyScope
957
969
  },
958
970
  child.path
959
971
  ) : /* @__PURE__ */ jsx2(
@@ -1173,7 +1185,9 @@ function WorkspaceFilesPanel({
1173
1185
  onSync,
1174
1186
  allowDelete = false,
1175
1187
  topSlot,
1176
- onOpenFile
1188
+ onOpenFile,
1189
+ listDir: listDir2,
1190
+ queryKeyScope
1177
1191
  }) {
1178
1192
  const [expandedDirs, setExpandedDirs] = useState3(/* @__PURE__ */ new Set());
1179
1193
  const [isUploading, setIsUploading] = useState3(false);
@@ -1424,7 +1438,9 @@ function WorkspaceFilesPanel({
1424
1438
  readOnly,
1425
1439
  onShareFile,
1426
1440
  allowDelete,
1427
- onOpenFile
1441
+ onOpenFile,
1442
+ listDir: listDir2,
1443
+ queryKeyScope
1428
1444
  },
1429
1445
  sessionId ?? "workspace-empty"
1430
1446
  ) }),