@blade-hq/agent-kit 1.0.13 → 1.0.15
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-cYkuNAmR.d.ts → SkillStatusBar-DskumalP.d.ts} +19 -7
- package/dist/{blade-client-CGhtHnQN.d.ts → blade-client-KZiBuBHI.d.ts} +4 -1
- package/dist/{chunk-4K25SSZ4.js → chunk-J3PQU7BQ.js} +3 -3
- package/dist/{chunk-DXDLZXDP.js → chunk-JHUSL3JZ.js} +720 -626
- package/dist/chunk-JHUSL3JZ.js.map +1 -0
- package/dist/{chunk-CVCQSRVP.js → chunk-OMIVYL5D.js} +4 -4
- package/dist/chunk-OMIVYL5D.js.map +1 -0
- package/dist/{chunk-3UY7SD3P.js → chunk-QEYZZDLM.js} +1091 -11
- package/dist/chunk-QEYZZDLM.js.map +1 -0
- package/dist/{chunk-CM3H6ZNV.js → chunk-U4KVB5OB.js} +2 -2
- package/dist/{chunk-DN4CKDDQ.js → chunk-V74REX3Q.js} +2 -1
- package/dist/chunk-V74REX3Q.js.map +1 -0
- package/dist/client/index.d.ts +445 -2
- package/dist/client/index.js +1 -1
- package/dist/react/api/vibe-coding.d.ts +3 -3
- package/dist/react/api/vibe-coding.js +2 -2
- package/dist/react/components/chat/index.d.ts +4 -4
- package/dist/react/components/chat/index.js +7 -5
- package/dist/react/components/plan/index.js +4 -4
- package/dist/react/components/session/index.d.ts +1 -1
- package/dist/react/components/session/index.js +3 -3
- package/dist/react/components/workspace/index.d.ts +3 -3
- package/dist/react/components/workspace/index.js +3 -3
- package/dist/react/index.d.ts +22 -11
- package/dist/react/index.js +11 -6
- package/dist/react/index.js.map +1 -1
- package/dist/{session-o8bAQoXK.d.ts → session-CT8Y2KHr.d.ts} +2 -0
- package/dist/{sessions-BDau9Lk7.d.ts → sessions-BX8qHBN3.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-3UY7SD3P.js.map +0 -1
- package/dist/chunk-CVCQSRVP.js.map +0 -1
- package/dist/chunk-DN4CKDDQ.js.map +0 -1
- package/dist/chunk-DXDLZXDP.js.map +0 -1
- /package/dist/{chunk-4K25SSZ4.js.map → chunk-J3PQU7BQ.js.map} +0 -0
- /package/dist/{chunk-CM3H6ZNV.js.map → chunk-U4KVB5OB.js.map} +0 -0
|
@@ -3,8 +3,8 @@ import * as react from 'react';
|
|
|
3
3
|
import { ComponentType, ReactNode } from 'react';
|
|
4
4
|
import { C as ChatMessage, A as AskUserAnswerData, T as ToolCallInfo, M as MessageContent } from './AskUserQuestionBlock---kOTouk.js';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
|
-
import { M as ModeId, a as SessionInfo, b as SessionStatus } from './session-
|
|
7
|
-
import { v as BladeClient } from './blade-client-
|
|
6
|
+
import { M as ModeId, a as SessionInfo, b as SessionStatus } from './session-CT8Y2KHr.js';
|
|
7
|
+
import { v as BladeClient } from './blade-client-KZiBuBHI.js';
|
|
8
8
|
import { C as ContentBlock } from './projection-BWYEFYNn.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -167,7 +167,7 @@ interface SkillStatusBarComponentProps {
|
|
|
167
167
|
interface ChatViewProps extends ChatViewCustomization {
|
|
168
168
|
sessionId: string;
|
|
169
169
|
renderAttachments?: () => ReactNode;
|
|
170
|
-
onBeforeSend?: (content: MessageContent) => MessageContent
|
|
170
|
+
onBeforeSend?: (content: MessageContent) => MessageContent | Promise<MessageContent>;
|
|
171
171
|
onCommand?: (commandId: string) => void | Promise<void>;
|
|
172
172
|
canShareSession?: boolean;
|
|
173
173
|
onResyncSkills?: () => void;
|
|
@@ -188,7 +188,7 @@ interface SessionState extends ClientAwareState {
|
|
|
188
188
|
errorMessages: Record<string, string>;
|
|
189
189
|
/** Session IDs that were just created and haven't had their first history load yet */
|
|
190
190
|
_freshSessions: Set<string>;
|
|
191
|
-
|
|
191
|
+
fetchAllSessions: () => Promise<void>;
|
|
192
192
|
createSession: (intent?: string) => Promise<string>;
|
|
193
193
|
registerCreatedSession: (session: SessionInfo, mode?: SessionMode, options?: {
|
|
194
194
|
fresh?: boolean;
|
|
@@ -219,8 +219,13 @@ interface SessionState extends ClientAwareState {
|
|
|
219
219
|
declare function invalidateHomeSidebarSessions(): void;
|
|
220
220
|
declare const useSessionStore: zustand.UseBoundStore<zustand.StoreApi<SessionState>>;
|
|
221
221
|
|
|
222
|
+
interface ChatSendOptions {
|
|
223
|
+
targetSessionId?: string;
|
|
224
|
+
model?: string | null;
|
|
225
|
+
thinkingOverride?: boolean;
|
|
226
|
+
}
|
|
222
227
|
interface Props$2 {
|
|
223
|
-
onSend: (message: MessageContent,
|
|
228
|
+
onSend: (message: MessageContent, options?: ChatSendOptions) => void;
|
|
224
229
|
onAppend?: (message: string) => void;
|
|
225
230
|
onStop: () => void | Promise<void>;
|
|
226
231
|
isStreaming: boolean;
|
|
@@ -228,7 +233,7 @@ interface Props$2 {
|
|
|
228
233
|
mode?: SessionMode;
|
|
229
234
|
onToggleMode?: () => void;
|
|
230
235
|
renderAttachments?: () => ReactNode;
|
|
231
|
-
onBeforeSend?: (content: MessageContent) => MessageContent
|
|
236
|
+
onBeforeSend?: (content: MessageContent) => MessageContent | Promise<MessageContent>;
|
|
232
237
|
/**
|
|
233
238
|
* Creates (or returns) a session to upload pending attachments into when
|
|
234
239
|
* the composer has files but no active session yet. The returned id is
|
|
@@ -298,6 +303,13 @@ type FileComposerAttachment = {
|
|
|
298
303
|
};
|
|
299
304
|
declare function ChatInput({ onSend, onAppend, onStop, isStreaming, isStopping, mode, onToggleMode, renderAttachments, onBeforeSend, ensureSession, onCommand, canShareSession, slotAboveTextarea, externalDraft, externalAttachments, maxWidthClassName, className, innerClassName, SkillStatusBarComponent, skillStatusBarClassName, skillStatusBarInnerClassName, onResyncSkills, isResyncingSkills, inputLabel, onDoubleEscape, composerHint, }: Props$2): react_jsx_runtime.JSX.Element;
|
|
300
305
|
|
|
306
|
+
interface ThinkingToggleProps {
|
|
307
|
+
enabled: boolean;
|
|
308
|
+
onChange: (enabled: boolean) => void;
|
|
309
|
+
disabled?: boolean;
|
|
310
|
+
}
|
|
311
|
+
declare function ThinkingToggle({ enabled, onChange, disabled }: ThinkingToggleProps): react_jsx_runtime.JSX.Element;
|
|
312
|
+
|
|
301
313
|
interface Props$1 {
|
|
302
314
|
open: boolean;
|
|
303
315
|
onOpenChange: (open: boolean) => void;
|
|
@@ -325,4 +337,4 @@ declare function SkillStatusBar({ sessionId, onResync, isResyncing, vertical, cl
|
|
|
325
337
|
innerClassName?: string;
|
|
326
338
|
}): react_jsx_runtime.JSX.Element;
|
|
327
339
|
|
|
328
|
-
export { type AssistantTurnComponentProps as A, type BuildWhatIfPromptInput as B, type ChatViewCustomization as C, ErrorMessageBlock as E, type FileComposerAttachment as F, MessageList as M, type OversizedFileInfo as O, type ParsedWhatIfPrompt as P, SkillStatusBar as S,
|
|
340
|
+
export { type AssistantTurnComponentProps as A, type BuildWhatIfPromptInput as B, type ChatViewCustomization as C, ErrorMessageBlock as E, type FileComposerAttachment as F, MessageList as M, type OversizedFileInfo as O, type ParsedWhatIfPrompt as P, SkillStatusBar as S, ThinkingToggle as T, UserMessageBubble as U, type WhatIfQuote as W, ChatInput as a, type ChatSendOptions as b, ChatView as c, type ChatViewClassNames as d, type ChatViewComponents as e, type ChatViewProps as f, type ChatViewRenderers as g, FileSizeLimitDialog as h, type SkillStatusBarComponentProps as i, type ToolCallComponentProps as j, type ToolRendererProps as k, isErrorMessage as l, isUserMessage as m, type ClientAwareState as n, ATTACHMENT_SIZE_LIMIT_BYTES as o, buildWhatIfPrompt as p, formatFileSize as q, invalidateHomeSidebarSessions as r, parseWhatIfPrompt as s, splitFilesBySize as t, useSessionStore as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as arktype_internal_variants_object_ts from 'arktype/internal/variants/object.ts';
|
|
2
2
|
import * as arktype_internal_variants_string_ts from 'arktype/internal/variants/string.ts';
|
|
3
3
|
import { T as TurnProjection } from './projection-BWYEFYNn.js';
|
|
4
|
-
import { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-
|
|
4
|
+
import { a as SessionInfo, T as TemplateId, S as SessionDetail, c as Solution, B as BizRole } from './session-CT8Y2KHr.js';
|
|
5
5
|
import { Socket } from 'socket.io-client';
|
|
6
6
|
|
|
7
7
|
declare class BladeApiError extends Error {
|
|
@@ -555,6 +555,7 @@ interface CreateSessionRequest {
|
|
|
555
555
|
workspace_id?: string | null;
|
|
556
556
|
is_persistent?: boolean | null;
|
|
557
557
|
model?: string | null;
|
|
558
|
+
enable_thinking?: boolean | null;
|
|
558
559
|
software_factory_id?: number | null;
|
|
559
560
|
memory_enabled?: boolean | null;
|
|
560
561
|
env?: Record<string, string>;
|
|
@@ -1215,6 +1216,7 @@ declare namespace ChatSendPayloadSchema {
|
|
|
1215
1216
|
[k: string]: unknown;
|
|
1216
1217
|
} | null);
|
|
1217
1218
|
type Model = (string | null);
|
|
1219
|
+
type ThinkingOverride = (boolean | null);
|
|
1218
1220
|
type Headless = boolean;
|
|
1219
1221
|
type OutputSchema = ({
|
|
1220
1222
|
[k: string]: unknown;
|
|
@@ -1232,6 +1234,7 @@ declare namespace ChatSendPayloadSchema {
|
|
|
1232
1234
|
mode?: Mode;
|
|
1233
1235
|
askuser_answer?: AskuserAnswer;
|
|
1234
1236
|
model?: Model;
|
|
1237
|
+
thinking_override?: ThinkingOverride;
|
|
1235
1238
|
headless?: Headless;
|
|
1236
1239
|
output_schema?: OutputSchema;
|
|
1237
1240
|
whatif?: (WhatIfPayload | null);
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
getSessionFilePath,
|
|
7
7
|
resolveSessionFilePreviewTarget
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4KVB5OB.js";
|
|
9
9
|
import {
|
|
10
10
|
formatToolName,
|
|
11
11
|
getAuthedUrl,
|
|
12
12
|
useUiStore
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QEYZZDLM.js";
|
|
14
14
|
import {
|
|
15
15
|
cn,
|
|
16
16
|
copyToClipboard
|
|
@@ -1933,4 +1933,4 @@ export {
|
|
|
1933
1933
|
PlanSummaryCard,
|
|
1934
1934
|
extractLatestPlanMessages
|
|
1935
1935
|
};
|
|
1936
|
-
//# sourceMappingURL=chunk-
|
|
1936
|
+
//# sourceMappingURL=chunk-J3PQU7BQ.js.map
|