@blade-hq/agent-kit 0.5.23 → 0.5.25
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.
- package/dist/{SkillStatusBar-Dn5im-__.d.ts → SkillStatusBar-BUisTEAL.d.ts} +5 -2
- package/dist/{blade-client-Bhp0hHiZ.d.ts → blade-client-KmBClau6.d.ts} +35 -2
- package/dist/{chunk-B4RZNR3L.js → chunk-FZXLII7S.js} +30 -2
- package/dist/chunk-FZXLII7S.js.map +1 -0
- package/dist/{chunk-SLTENCW7.js → chunk-HAFDWDFG.js} +2 -2
- package/dist/{chunk-LI3WURWU.js → chunk-PKQKLRFQ.js} +15 -5
- package/dist/chunk-PKQKLRFQ.js.map +1 -0
- package/dist/{chunk-PRWPDK6Z.js → chunk-SENUKC7C.js} +368 -315
- package/dist/chunk-SENUKC7C.js.map +1 -0
- package/dist/{chunk-NWKF2VEC.js → chunk-UQWHEHG3.js} +2 -2
- package/dist/client/index.d.ts +4619 -2838
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +1 -1
- package/dist/react/components/chat/index.d.ts +4 -4
- package/dist/react/components/chat/index.js +4 -4
- package/dist/react/components/plan/index.js +3 -3
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +2 -2
- package/dist/react/components/workspace/index.d.ts +22 -2
- package/dist/react/components/workspace/index.js +30 -14
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +17 -179
- package/dist/react/index.js +6 -5
- package/dist/react/index.js.map +1 -1
- package/dist/{session-BuaeCsMC.d.ts → session-B5v5KkVd.d.ts} +5 -3
- package/dist/sessions-DfRYZZnH.d.ts +174 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-B4RZNR3L.js.map +0 -1
- package/dist/chunk-LI3WURWU.js.map +0 -1
- package/dist/chunk-PRWPDK6Z.js.map +0 -1
- /package/dist/{chunk-SLTENCW7.js.map → chunk-HAFDWDFG.js.map} +0 -0
- /package/dist/{chunk-NWKF2VEC.js.map → chunk-UQWHEHG3.js.map} +0 -0
|
@@ -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-
|
|
2
|
-
export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-
|
|
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-KmBClau6.js';
|
|
2
|
+
export { f as CreateVibeCodingSessionParams, D as DeployBumpMode, P as PortMapping } from '../../blade-client-KmBClau6.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-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-
|
|
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-
|
|
1
|
+
import { C as ChatViewCustomization, P as ParsedWhatIfPrompt } from '../../../SkillStatusBar-BUisTEAL.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-BUisTEAL.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-
|
|
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-
|
|
13
|
+
import '../../../blade-client-KmBClau6.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-
|
|
19
|
+
} from "../../../chunk-SENUKC7C.js";
|
|
20
20
|
import {
|
|
21
21
|
AskUserQuestionBlock
|
|
22
|
-
} from "../../../chunk-
|
|
22
|
+
} from "../../../chunk-PKQKLRFQ.js";
|
|
23
23
|
import "../../../chunk-2UP7MG3J.js";
|
|
24
24
|
import "../../../chunk-H62LH2AG.js";
|
|
25
|
-
import "../../../chunk-
|
|
26
|
-
import "../../../chunk-
|
|
25
|
+
import "../../../chunk-UQWHEHG3.js";
|
|
26
|
+
import "../../../chunk-FZXLII7S.js";
|
|
27
27
|
import "../../../chunk-J3XVFPOV.js";
|
|
28
28
|
import "../../../chunk-7EVVRQ7G.js";
|
|
29
29
|
import "../../../chunk-7LEKQI47.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
PlanSummaryCard,
|
|
4
4
|
extractLatestPlanMessages,
|
|
5
5
|
parsePlanMessages
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-PKQKLRFQ.js";
|
|
7
7
|
import "../../../chunk-2UP7MG3J.js";
|
|
8
|
-
import "../../../chunk-
|
|
9
|
-
import "../../../chunk-
|
|
8
|
+
import "../../../chunk-UQWHEHG3.js";
|
|
9
|
+
import "../../../chunk-FZXLII7S.js";
|
|
10
10
|
import "../../../chunk-J3XVFPOV.js";
|
|
11
11
|
import "../../../chunk-7EVVRQ7G.js";
|
|
12
12
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
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,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useSession
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-HAFDWDFG.js";
|
|
4
4
|
import {
|
|
5
5
|
checkoutSession,
|
|
6
6
|
getSessionCheckpoints,
|
|
7
7
|
useChatStore,
|
|
8
8
|
useSessionStore
|
|
9
|
-
} from "../../../chunk-
|
|
9
|
+
} from "../../../chunk-FZXLII7S.js";
|
|
10
10
|
import "../../../chunk-J3XVFPOV.js";
|
|
11
11
|
import "../../../chunk-7EVVRQ7G.js";
|
|
12
12
|
import {
|
|
@@ -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-DfRYZZnH.js';
|
|
4
|
+
import '../../../blade-client-KmBClau6.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-
|
|
8
|
+
} from "../../../chunk-UQWHEHG3.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-
|
|
22
|
+
} from "../../../chunk-FZXLII7S.js";
|
|
23
23
|
import "../../../chunk-J3XVFPOV.js";
|
|
24
24
|
import "../../../chunk-7EVVRQ7G.js";
|
|
25
25
|
import {
|
|
@@ -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: () =>
|
|
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: () =>
|
|
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
|
) }),
|