@blade-hq/agent-kit 0.4.20 → 0.4.23
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-DCOlTYcT.d.ts → SkillStatusBar-B7-EU8A4.d.ts} +1 -1
- package/dist/{blade-client-BEjbedNc.d.ts → blade-client-BKiP6U73.d.ts} +6 -1
- package/dist/{chunk-RMLZ4ZBY.js → chunk-LKOBHTL7.js} +19 -1
- package/dist/chunk-LKOBHTL7.js.map +1 -0
- package/dist/client/index.d.ts +24 -5
- package/dist/react/api/vibe-coding.d.ts +2 -2
- package/dist/react/components/chat/index.d.ts +3 -3
- package/dist/react/components/chat/index.js +1 -1
- package/dist/react/components/workspace/index.js +244 -131
- package/dist/react/components/workspace/index.js.map +1 -1
- package/dist/react/index.d.ts +4 -4
- package/dist/react/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-RMLZ4ZBY.js.map +0 -1
|
@@ -4,7 +4,7 @@ import { ComponentType, ReactNode } from 'react';
|
|
|
4
4
|
import { C as ChatMessage, A as AskUserAnswerData, T as ToolCallInfo, M as MessageContent } from './AskUserQuestionBlock-CjvG_pUY.js';
|
|
5
5
|
import * as zustand from 'zustand';
|
|
6
6
|
import { M as ModeId, S as SessionInfo, a as SessionStatus } from './session-nZdIuWrS.js';
|
|
7
|
-
import { j as BladeClient } from './blade-client-
|
|
7
|
+
import { j as BladeClient } from './blade-client-BKiP6U73.js';
|
|
8
8
|
import { C as ContentBlock } from './projection-DIfyh6RK.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -499,12 +499,17 @@ interface BackgroundTask {
|
|
|
499
499
|
id: string;
|
|
500
500
|
command: string;
|
|
501
501
|
description?: string;
|
|
502
|
-
status: "running" | "done" | "failed";
|
|
502
|
+
status: "queued" | "starting" | "running" | "succeeded" | "done" | "failed" | "timeout" | "cancelled" | "lost";
|
|
503
|
+
legacy_status?: "running" | "done" | "failed";
|
|
503
504
|
exit_code?: number | null;
|
|
504
505
|
elapsed_seconds: number;
|
|
505
506
|
output_lines_count?: number;
|
|
506
507
|
output_preview?: string[];
|
|
507
508
|
output?: string;
|
|
509
|
+
log_path?: string | null;
|
|
510
|
+
started_at?: number | null;
|
|
511
|
+
finished_at?: number | null;
|
|
512
|
+
heartbeat_at?: number | null;
|
|
508
513
|
}
|
|
509
514
|
|
|
510
515
|
declare const TaskStatus: arktype_internal_variants_string_ts.StringType<"pending" | "done" | "failed" | "in_progress" | "skipped", {}>;
|
|
@@ -3087,6 +3087,23 @@ function ChatInput({
|
|
|
3087
3087
|
onDrop: (event) => {
|
|
3088
3088
|
event.preventDefault();
|
|
3089
3089
|
setDragging(false);
|
|
3090
|
+
const fileRef = event.dataTransfer.getData("application/blade-file-ref");
|
|
3091
|
+
if (fileRef) {
|
|
3092
|
+
try {
|
|
3093
|
+
const { path, name } = JSON.parse(fileRef);
|
|
3094
|
+
const sandboxPath = `/workspace/${path}`;
|
|
3095
|
+
const editor2 = editorRef.current;
|
|
3096
|
+
if (editor2) {
|
|
3097
|
+
editor2.commands.focus("end");
|
|
3098
|
+
editor2.commands.insertContent([
|
|
3099
|
+
{ type: "fileMention", attrs: { path: sandboxPath, name } },
|
|
3100
|
+
{ type: "text", text: " " }
|
|
3101
|
+
]);
|
|
3102
|
+
}
|
|
3103
|
+
} catch {
|
|
3104
|
+
}
|
|
3105
|
+
return;
|
|
3106
|
+
}
|
|
3090
3107
|
void stableAppendFiles(event.dataTransfer.files);
|
|
3091
3108
|
},
|
|
3092
3109
|
children: /* @__PURE__ */ jsxs7(
|
|
@@ -3094,6 +3111,7 @@ function ChatInput({
|
|
|
3094
3111
|
{
|
|
3095
3112
|
className: `overflow-visible rounded-2xl border bg-[hsl(var(--card))] transition-[box-shadow,border-color] duration-300 ${isRecording ? "border-emerald-400/70! shadow-[0_0_0_3px_rgba(52,211,153,0.18),0_0_24px_rgba(52,211,153,0.28)]" : dragging ? isPlanning ? "border-amber-400/60" : "border-[hsl(var(--primary)/0.6)]" : isEditorFocused ? isPlanning ? "border-amber-400/60" : "border-[hsl(var(--primary)/0.6)]" : isPlanning ? "border-amber-400/30" : "border-[hsl(var(--border))]"}`,
|
|
3096
3113
|
children: [
|
|
3114
|
+
dragging && /* @__PURE__ */ jsx8("div", { className: "pointer-events-none absolute inset-0 z-10 flex items-center justify-center rounded-2xl bg-[hsl(var(--primary)/0.06)]", children: /* @__PURE__ */ jsx8("span", { className: "rounded-full bg-[hsl(var(--primary)/0.12)] px-4 py-2 text-sm font-medium text-[hsl(var(--primary))]", children: "\u677E\u624B\u5F15\u7528\u6587\u4EF6" }) }),
|
|
3097
3115
|
composerAttachments.length > 0 && /* @__PURE__ */ jsxs7("div", { className: "flex max-h-40 flex-col gap-2 overflow-y-auto border-b border-[hsl(var(--border))] px-3 py-2", children: [
|
|
3098
3116
|
imageAttachments.length > 0 && /* @__PURE__ */ jsx8("div", { className: "grid grid-cols-3 gap-2", children: imageAttachments.map((attachment) => /* @__PURE__ */ jsxs7(
|
|
3099
3117
|
"div",
|
|
@@ -8154,4 +8172,4 @@ use-stick-to-bottom/dist/StickToBottom.js:
|
|
|
8154
8172
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
8155
8173
|
*--------------------------------------------------------------------------------------------*)
|
|
8156
8174
|
*/
|
|
8157
|
-
//# sourceMappingURL=chunk-
|
|
8175
|
+
//# sourceMappingURL=chunk-LKOBHTL7.js.map
|