@alivault/pico 0.1.6 → 0.1.7
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/.output/nitro.json +1 -1
- package/.output/public/assets/{index-Cea7QwXW.js → index-BWtOMO0B.js} +2 -2
- package/.output/public/assets/{routes-Bb61eCk_.js → routes-5c_6T6hK.js} +118 -115
- package/.output/server/_ssr/{router-TRfB0YMJ.mjs → router-CvoH1TXL.mjs} +2 -2
- package/.output/server/_ssr/{routes-Cmw5XPYv.mjs → routes-DJqUmK-U.mjs} +121 -20
- package/.output/server/_ssr/{routes-h_J1DAp5.mjs → routes-Di-eYVLe.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +2 -2
- package/.output/server/{_tanstack-start-manifest_v-hzhfVHZ4.mjs → _tanstack-start-manifest_v-f3QaV5ex.mjs} +4 -4
- package/.output/server/index.mjs +499 -499
- package/README.md +6 -0
- package/bin/pico.mjs +103 -7
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { i as __toESM } from "../_runtime.mjs";
|
|
|
2
2
|
import { X as require_react, Y as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
3
|
import { a as createRouter, c as createRootRoute, n as Scripts, r as HeadContent, s as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
4
4
|
import { h as OctagonX, i as TriangleAlert, k as CircleCheck, v as Info } from "../_libs/lucide-react.mjs";
|
|
5
|
-
import { A as extractToolText, C as buildItemsFromSync, N as mergeAssistantBlocksForStreaming, O as extractMessageImages, S as assistantBlocksFromMessage, T as createCompactionSummaryItem, h as THEME_STORAGE_KEY, k as extractMessageText$1, m as Spinner, nt as toolCategoryFromTool, u as Route$46, y as TooltipProvider } from "./routes-
|
|
5
|
+
import { A as extractToolText, C as buildItemsFromSync, N as mergeAssistantBlocksForStreaming, O as extractMessageImages, S as assistantBlocksFromMessage, T as createCompactionSummaryItem, h as THEME_STORAGE_KEY, k as extractMessageText$1, m as Spinner, nt as toolCategoryFromTool, u as Route$46, y as TooltipProvider } from "./routes-Di-eYVLe.mjs";
|
|
6
6
|
import { t as QueryClient } from "../_libs/tanstack__query-core.mjs";
|
|
7
7
|
import { t as setupRouterSsrQueryIntegration } from "../_libs/@tanstack/react-router-ssr-query+[...].mjs";
|
|
8
8
|
import { n as HotkeysProvider } from "../_libs/tanstack__react-hotkeys.mjs";
|
|
@@ -20,7 +20,7 @@ import os, { homedir } from "node:os";
|
|
|
20
20
|
import { performance } from "node:perf_hooks";
|
|
21
21
|
import { isMainThread } from "node:worker_threads";
|
|
22
22
|
import { execSync, spawn } from "node:child_process";
|
|
23
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/router-
|
|
23
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/router-CvoH1TXL.js
|
|
24
24
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
25
25
|
var import_jsx_runtime = require_jsx_runtime();
|
|
26
26
|
var Toaster$1 = ({ ...props }) => {
|
|
@@ -2,7 +2,7 @@ import { i as __toESM } from "../_runtime.mjs";
|
|
|
2
2
|
import { A as Input, C as MenuTrigger, D as MenuPortal, E as MenuPositioner, F as DialogDescription$1, I as DialogClose, K as mergeProps, L as DialogBackdrop, M as DialogRoot, N as DialogPortal$1, O as MenuPopup, P as DialogPopup, R as Button, S as Separator, T as MenuRoot, X as require_react, Y as require_jsx_runtime, _ as AccordionRoot, a as CollapsiblePanel, b as TabsRoot, c as PopoverPopup, d as PopoverTrigger$1, f as PopoverRoot, g as AccordionItem$1, h as AccordionHeader, i as ContextMenuRoot, j as DialogTitle$1, k as MenuItem, l as PopoverPositioner, m as AccordionTrigger$1, n as Toggle, o as CollapsibleTrigger$1, p as AccordionPanel, r as ContextMenuTrigger$1, s as CollapsibleRoot, t as ToggleGroup, u as PopoverPortal, v as TabsList$1, w as MenuSubmenuRoot, x as MenuSubmenuTrigger, y as TabsTab, z as useRender } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
3
|
import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
|
|
4
4
|
import { A as ChevronsUpDown, B as ArrowDown, C as FolderPlus, D as Copy, E as Download, F as Check, I as ArrowUp, L as ArrowUpToLine, M as ChevronUp, N as ChevronRight, O as Command, P as ChevronDown, S as Folder, T as EllipsisVertical, _ as ListEnd, a as Square, b as GitBranch, c as Settings2, d as PanelLeft, f as PanelLeftOpen, g as ListStart, h as OctagonX, j as ChevronsDownUp, l as Search, n as WandSparkles, o as SquarePen, p as PanelLeftClose, r as Upload, s as SquareArrowOutUpRight, t as X, u as PanelRight, w as Ellipsis, x as GitCommitHorizontal, y as ImagePlus, z as ArrowLeft } from "../_libs/lucide-react.mjs";
|
|
5
|
-
import { $ as sameContextUsage, B as readStoredAutoScrollEnabled, C as buildItemsFromSync, D as createInitialSessionState, E as createContextId, F as normalizeSessionSelectionKeys, G as readStoredPromptDraft, H as readStoredCollapsedDirectories, I as normalizeStoredDirectoryList, J as readStoredSessionDoneDesktopNotificationsEnabled, K as readStoredRecentDirectories, L as normalizeThemeMode, M as getSessionTitle, P as normalizePromptImage, Q as safeLocalStorageSetItem, R as previewUrlForImage, U as readStoredDraftDirectory, V as readStoredCenterMessages, W as readStoredHideToolBlocks, X as readStoredSidebarDirectories, Y as readStoredSessionDoneSoundEnabled, Z as rememberStoredPromptDraft, _ as Tooltip$1, a as HIDE_TOOL_BLOCKS_STORAGE_KEY, b as TooltipTrigger, c as RECENT_DIRECTORIES_STORAGE_KEY, d as SESSION_DONE_DESKTOP_NOTIFICATIONS_ENABLED_STORAGE_KEY, et as sessionListEntryKey, f as SESSION_DONE_SOUND_ENABLED_STORAGE_KEY, g as TitleTooltip, i as DRAFT_DIRECTORY_STORAGE_KEY, j as flattenTree, l as RIGHT_SIDEBAR_OPEN_STORAGE_KEY, m as Spinner, n as CENTER_MESSAGES_STORAGE_KEY, o as Kbd, p as SIDEBAR_DIRECTORIES_STORAGE_KEY, q as readStoredRightSidebarOpen, r as COLLAPSED_DIRECTORIES_STORAGE_KEY, s as KeyboardShortcutContent, t as AUTO_SCROLL_ENABLED_STORAGE_KEY, tt as thinkingSummaryText, u as Route, v as TooltipContent, w as cn, x as VIEWER_CONTEXT_STORAGE_KEY, z as promptDraftKey } from "./routes-
|
|
5
|
+
import { $ as sameContextUsage, B as readStoredAutoScrollEnabled, C as buildItemsFromSync, D as createInitialSessionState, E as createContextId, F as normalizeSessionSelectionKeys, G as readStoredPromptDraft, H as readStoredCollapsedDirectories, I as normalizeStoredDirectoryList, J as readStoredSessionDoneDesktopNotificationsEnabled, K as readStoredRecentDirectories, L as normalizeThemeMode, M as getSessionTitle, P as normalizePromptImage, Q as safeLocalStorageSetItem, R as previewUrlForImage, U as readStoredDraftDirectory, V as readStoredCenterMessages, W as readStoredHideToolBlocks, X as readStoredSidebarDirectories, Y as readStoredSessionDoneSoundEnabled, Z as rememberStoredPromptDraft, _ as Tooltip$1, a as HIDE_TOOL_BLOCKS_STORAGE_KEY, b as TooltipTrigger, c as RECENT_DIRECTORIES_STORAGE_KEY, d as SESSION_DONE_DESKTOP_NOTIFICATIONS_ENABLED_STORAGE_KEY, et as sessionListEntryKey, f as SESSION_DONE_SOUND_ENABLED_STORAGE_KEY, g as TitleTooltip, i as DRAFT_DIRECTORY_STORAGE_KEY, j as flattenTree, l as RIGHT_SIDEBAR_OPEN_STORAGE_KEY, m as Spinner, n as CENTER_MESSAGES_STORAGE_KEY, o as Kbd, p as SIDEBAR_DIRECTORIES_STORAGE_KEY, q as readStoredRightSidebarOpen, r as COLLAPSED_DIRECTORIES_STORAGE_KEY, s as KeyboardShortcutContent, t as AUTO_SCROLL_ENABLED_STORAGE_KEY, tt as thinkingSummaryText, u as Route, v as TooltipContent, w as cn, x as VIEWER_CONTEXT_STORAGE_KEY, z as promptDraftKey } from "./routes-Di-eYVLe.mjs";
|
|
6
6
|
import { i as useQuery, n as useIsMutating, o as useQueryClient, r as useIsFetching, t as useMutation } from "../_libs/tanstack__react-query.mjs";
|
|
7
7
|
import { t as useHotkeys } from "../_libs/tanstack__react-hotkeys.mjs";
|
|
8
8
|
import { a as matchesKeyboardEvent, i as batch, o as formatForDisplay, r as createStore } from "../_libs/@tanstack/hotkeys+[...].mjs";
|
|
@@ -19,7 +19,7 @@ import { t as remarkGfm } from "../_libs/remark-gfm.mjs";
|
|
|
19
19
|
import { a as getBuiltInSpriteSheet, i as getBuiltInFileIconColor, n as FileTree, r as createFileTreeIconResolver, t as useFileTree } from "../_libs/@pierre/trees+[...].mjs";
|
|
20
20
|
import { a as closestCenter, d as useSensors, f as CSS$1, i as PointerSensor, n as DragOverlay, t as DndContext, u as useSensor } from "../_libs/@dnd-kit/core+[...].mjs";
|
|
21
21
|
import { a as verticalListSortingStrategy, i as useSortable, n as arrayMove, r as horizontalListSortingStrategy, t as SortableContext } from "../_libs/dnd-kit__sortable.mjs";
|
|
22
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/routes-
|
|
22
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/routes-DJqUmK-U.js
|
|
23
23
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
24
24
|
var import_jsx_runtime = require_jsx_runtime();
|
|
25
25
|
var SIDEBAR_RESIZE_START_THRESHOLD_PX = 4;
|
|
@@ -7334,7 +7334,7 @@ var CodeBlockCopyButton = import_react.memo(function CodeBlockCopyButton({ code
|
|
|
7334
7334
|
children: [copyState === "copied" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Copy, { "data-icon": "inline-start" }), copyState === "copied" ? "Copied" : copyState === "error" ? "Retry" : "Copy"]
|
|
7335
7335
|
});
|
|
7336
7336
|
});
|
|
7337
|
-
var CodeBlock = import_react.memo(function CodeBlock({ code, language, streaming = false }) {
|
|
7337
|
+
var CodeBlock = import_react.memo(function CodeBlock({ className, code, language, onPreScroll, preClassName, preRef, streaming = false }) {
|
|
7338
7338
|
const [highlighted, setHighlighted] = import_react.useState(null);
|
|
7339
7339
|
import_react.useEffect(() => {
|
|
7340
7340
|
let cancelled = false;
|
|
@@ -7368,7 +7368,7 @@ var CodeBlock = import_react.memo(function CodeBlock({ code, language, streaming
|
|
|
7368
7368
|
dangerouslySetInnerHTML: highlightedMarkup
|
|
7369
7369
|
}) : null;
|
|
7370
7370
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7371
|
-
className: "not-prose overflow-hidden rounded-xl border bg-muted/40",
|
|
7371
|
+
className: cn("not-prose overflow-hidden rounded-xl border bg-muted/40", className),
|
|
7372
7372
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
7373
7373
|
className: "flex items-center justify-between gap-3 border-b bg-background/80 px-3 py-2 text-xs text-muted-foreground",
|
|
7374
7374
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -7376,7 +7376,9 @@ var CodeBlock = import_react.memo(function CodeBlock({ code, language, streaming
|
|
|
7376
7376
|
children: displayedLanguage || "code"
|
|
7377
7377
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CodeBlockCopyButton, { code })]
|
|
7378
7378
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
|
|
7379
|
-
|
|
7379
|
+
ref: preRef,
|
|
7380
|
+
onScroll: onPreScroll,
|
|
7381
|
+
className: cn("overflow-x-auto bg-transparent px-4 py-3 text-[13px] leading-6 text-foreground", preClassName),
|
|
7380
7382
|
children: highlightedContent || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { children: code })
|
|
7381
7383
|
})]
|
|
7382
7384
|
});
|
|
@@ -7471,12 +7473,12 @@ function toolCommandPreview(block) {
|
|
|
7471
7473
|
if (block.type !== "tool") return "";
|
|
7472
7474
|
if (typeof block.args === "string" && block.args.trim()) return block.args.trim();
|
|
7473
7475
|
const args = normalizeToolArgs(block.args);
|
|
7474
|
-
return getToolArgText(args, "description") || getToolArgText(args, "command") || getToolArgText(args, "path") || getToolArgText(args, "filePath");
|
|
7476
|
+
return getToolArgText(args, "description") || getToolArgText(args, "command") || getToolArgText(args, "path") || getToolArgText(args, "filePath") || getToolArgText(args, "file_path");
|
|
7475
7477
|
}
|
|
7476
7478
|
function toolReadLocation(block) {
|
|
7477
7479
|
if (block.type !== "tool") return "";
|
|
7478
7480
|
const args = normalizeToolArgs(block.args);
|
|
7479
|
-
const filePath = getToolArgText(args, "path") || getToolArgText(args, "filePath");
|
|
7481
|
+
const filePath = getToolArgText(args, "path") || getToolArgText(args, "filePath") || getToolArgText(args, "file_path");
|
|
7480
7482
|
const offset = args?.offset;
|
|
7481
7483
|
const limit = args?.limit;
|
|
7482
7484
|
if (typeof offset === "number" && typeof limit === "number" && limit > 0) return `${filePath}:${offset}-${offset + limit - 1}`;
|
|
@@ -7487,9 +7489,33 @@ function toolReadLocation(block) {
|
|
|
7487
7489
|
function collapseToolPreview(text) {
|
|
7488
7490
|
return text.replace(/\s+/g, " ").trim();
|
|
7489
7491
|
}
|
|
7492
|
+
function countTextDisplayLines(text) {
|
|
7493
|
+
if (!text) return 0;
|
|
7494
|
+
return text.split("\n").length;
|
|
7495
|
+
}
|
|
7496
|
+
function formatCountLabel(count, singular, plural = `${singular}s`) {
|
|
7497
|
+
return `${count} ${count === 1 ? singular : plural}`;
|
|
7498
|
+
}
|
|
7499
|
+
function getWriteToolPayload(block) {
|
|
7500
|
+
if (block.type !== "tool" || block.name !== "write") return void 0;
|
|
7501
|
+
const args = normalizeToolArgs(block.args);
|
|
7502
|
+
if (!args) return void 0;
|
|
7503
|
+
const path = getToolArgText(args, "path") || getToolArgText(args, "filePath") || getToolArgText(args, "file_path");
|
|
7504
|
+
const content = args.content;
|
|
7505
|
+
return {
|
|
7506
|
+
content: typeof content === "string" ? content : void 0,
|
|
7507
|
+
path
|
|
7508
|
+
};
|
|
7509
|
+
}
|
|
7510
|
+
function writeToolSummary(block) {
|
|
7511
|
+
const payload = getWriteToolPayload(block);
|
|
7512
|
+
if (!payload?.path) return "";
|
|
7513
|
+
if (payload.content === void 0) return payload.path;
|
|
7514
|
+
return `${payload.path} · ${formatCountLabel(countTextDisplayLines(payload.content), "line")}`;
|
|
7515
|
+
}
|
|
7490
7516
|
function toolSummary(block) {
|
|
7491
7517
|
if (block.type !== "tool") return "";
|
|
7492
|
-
const preview = block.name === "read" ? toolReadLocation(block) : toolCommandPreview(block);
|
|
7518
|
+
const preview = block.name === "read" ? toolReadLocation(block) : block.name === "write" ? writeToolSummary(block) : toolCommandPreview(block);
|
|
7493
7519
|
if (preview) return collapseToolPreview(preview);
|
|
7494
7520
|
if (block.running) return "Running";
|
|
7495
7521
|
if (block.isError) return "Failed";
|
|
@@ -8458,6 +8484,82 @@ var ToolBlockSection = import_react.memo(function ToolBlockSection({ isError = f
|
|
|
8458
8484
|
function editToolOutputWithoutSuccessMessage(output) {
|
|
8459
8485
|
return output.split("\n").filter((line) => !/^Successfully replaced \d+ block\(s\) in .+\.$/.test(line)).join("\n").trimEnd();
|
|
8460
8486
|
}
|
|
8487
|
+
function writeToolOutputWithoutSuccessMessage(output) {
|
|
8488
|
+
return output.split("\n").filter((line) => !/^Successfully wrote \d+ bytes to .+$/.test(line)).join("\n").trimEnd();
|
|
8489
|
+
}
|
|
8490
|
+
var CODE_LANGUAGE_BY_EXTENSION$1 = {
|
|
8491
|
+
bash: "bash",
|
|
8492
|
+
c: "c",
|
|
8493
|
+
cc: "c",
|
|
8494
|
+
cjs: "javascript",
|
|
8495
|
+
cpp: "c",
|
|
8496
|
+
css: "css",
|
|
8497
|
+
cxx: "c",
|
|
8498
|
+
go: "go",
|
|
8499
|
+
h: "c",
|
|
8500
|
+
htm: "html",
|
|
8501
|
+
html: "html",
|
|
8502
|
+
java: "java",
|
|
8503
|
+
js: "javascript",
|
|
8504
|
+
json: "json",
|
|
8505
|
+
jsonc: "jsonc",
|
|
8506
|
+
jsx: "jsx",
|
|
8507
|
+
mjs: "javascript",
|
|
8508
|
+
md: "markdown",
|
|
8509
|
+
mdx: "mdx",
|
|
8510
|
+
py: "python",
|
|
8511
|
+
rs: "rust",
|
|
8512
|
+
sh: "bash",
|
|
8513
|
+
ts: "typescript",
|
|
8514
|
+
tsx: "tsx",
|
|
8515
|
+
txt: "plaintext",
|
|
8516
|
+
xml: "xml",
|
|
8517
|
+
yaml: "yaml",
|
|
8518
|
+
yml: "yaml",
|
|
8519
|
+
zsh: "bash"
|
|
8520
|
+
};
|
|
8521
|
+
var CODE_LANGUAGE_BY_FILENAME = {
|
|
8522
|
+
dockerfile: "dockerfile",
|
|
8523
|
+
makefile: "makefile"
|
|
8524
|
+
};
|
|
8525
|
+
function codeLanguageFromPath$1(filePath) {
|
|
8526
|
+
const fileName = filePath.replace(/\\/g, "/").split("/").pop()?.toLowerCase();
|
|
8527
|
+
if (!fileName) return void 0;
|
|
8528
|
+
const filenameLanguage = CODE_LANGUAGE_BY_FILENAME[fileName];
|
|
8529
|
+
if (filenameLanguage) return filenameLanguage;
|
|
8530
|
+
if (fileName.endsWith(".d.ts")) return "typescript";
|
|
8531
|
+
const extension = fileName.includes(".") ? fileName.split(".").pop() : "";
|
|
8532
|
+
return extension ? CODE_LANGUAGE_BY_EXTENSION$1[extension] : void 0;
|
|
8533
|
+
}
|
|
8534
|
+
function WriteToolOutput({ block }) {
|
|
8535
|
+
const payload = getWriteToolPayload(block);
|
|
8536
|
+
const content = payload?.content;
|
|
8537
|
+
const extraOutput = writeToolOutputWithoutSuccessMessage(block.output.trimEnd());
|
|
8538
|
+
const autoScroll = useRunningToolAutoScroll({
|
|
8539
|
+
contentKey: content || "",
|
|
8540
|
+
enabled: block.running && content !== void 0
|
|
8541
|
+
});
|
|
8542
|
+
if (block.isError) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlainToolOutput, {
|
|
8543
|
+
isError: true,
|
|
8544
|
+
text: extraOutput || block.output.trimEnd() || "Write failed."
|
|
8545
|
+
});
|
|
8546
|
+
if (!payload || content === void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlainToolOutput, { text: toolOutputText(block) || "No content available." });
|
|
8547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
8548
|
+
className: "space-y-3",
|
|
8549
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CodeBlock, {
|
|
8550
|
+
className: "flex max-h-96 flex-col rounded-lg",
|
|
8551
|
+
code: content,
|
|
8552
|
+
language: payload.path ? codeLanguageFromPath$1(payload.path) : void 0,
|
|
8553
|
+
onPreScroll: autoScroll.onScroll,
|
|
8554
|
+
preClassName: "min-h-0 overflow-auto",
|
|
8555
|
+
preRef: autoScroll.ref,
|
|
8556
|
+
streaming: block.running
|
|
8557
|
+
}), extraOutput ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlainToolOutput, {
|
|
8558
|
+
isError: block.isError,
|
|
8559
|
+
text: extraOutput
|
|
8560
|
+
}) : null]
|
|
8561
|
+
});
|
|
8562
|
+
}
|
|
8461
8563
|
function EditToolOutput({ block }) {
|
|
8462
8564
|
const patch = toolPatchText(block);
|
|
8463
8565
|
const legacyDiff = toolLegacyDiffText(block);
|
|
@@ -8490,16 +8592,18 @@ function ToolBlockCardBody({ block }) {
|
|
|
8490
8592
|
enabled: block.name === "bash" && block.running
|
|
8491
8593
|
});
|
|
8492
8594
|
const isSuccessfulEditTool = block.name === "edit" && !block.running && !block.isError;
|
|
8595
|
+
const isSelfContainedWriteTool = block.name === "write" && !block.isError && getWriteToolPayload(block)?.content !== void 0;
|
|
8596
|
+
const hasSelfContainedToolOutput = isSuccessfulEditTool || isSelfContainedWriteTool;
|
|
8493
8597
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
8494
8598
|
className: "border-t pt-3",
|
|
8495
8599
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
8496
8600
|
ref: block.name === "bash" ? autoScroll.ref : void 0,
|
|
8497
8601
|
onScroll: block.name === "bash" ? autoScroll.onScroll : void 0,
|
|
8498
|
-
className: cn("max-h-96 overflow-auto rounded-lg border bg-background/80
|
|
8602
|
+
className: cn(isSelfContainedWriteTool ? "overflow-hidden rounded-lg" : "max-h-96 overflow-auto", hasSelfContainedToolOutput ? "rounded-lg" : "rounded-lg border bg-background/80 p-3"),
|
|
8499
8603
|
children: block.name === "bash" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("pre", {
|
|
8500
8604
|
className: cn("overflow-x-auto font-mono text-xs leading-5 break-words whitespace-pre-wrap", block.isError && "text-destructive"),
|
|
8501
8605
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnsiText, { text: shellBodyText })
|
|
8502
|
-
}) : block.name === "edit" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EditToolOutput, { block }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
8606
|
+
}) : block.name === "write" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(WriteToolOutput, { block }) : block.name === "edit" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EditToolOutput, { block }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
8503
8607
|
className: "space-y-4",
|
|
8504
8608
|
children: [callText ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToolBlockSection, {
|
|
8505
8609
|
label: "Call",
|
|
@@ -11518,16 +11622,13 @@ function ProjectFilesWorkspace({ viewerContextId, cwd, active, activeFilePath, o
|
|
|
11518
11622
|
},
|
|
11519
11623
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronsDownUp, { className: "size-4" })
|
|
11520
11624
|
})
|
|
11521
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
},
|
|
11529
|
-
children: "Open File"
|
|
11530
|
-
})
|
|
11625
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
11626
|
+
type: "button",
|
|
11627
|
+
variant: "outline",
|
|
11628
|
+
onClick: () => {
|
|
11629
|
+
setOpenFileDialogOpen(true);
|
|
11630
|
+
},
|
|
11631
|
+
children: "Open File"
|
|
11531
11632
|
})]
|
|
11532
11633
|
})]
|
|
11533
11634
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -5,7 +5,7 @@ import { n as clsx } from "../_libs/class-variance-authority+clsx.mjs";
|
|
|
5
5
|
import { t as twMerge } from "../_libs/tailwind-merge.mjs";
|
|
6
6
|
import { B as ArrowDown, I as ArrowUp, M as ChevronUp, O as Command, R as ArrowRight, V as ArrowBigUp, m as Option, z as ArrowLeft } from "../_libs/lucide-react.mjs";
|
|
7
7
|
import { n as string, t as object } from "../_libs/zod.mjs";
|
|
8
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/routes-
|
|
8
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/routes-Di-eYVLe.js
|
|
9
9
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
10
10
|
var import_jsx_runtime = require_jsx_runtime();
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -1265,7 +1265,7 @@ function getSessionTitle(summary) {
|
|
|
1265
1265
|
if (summary?.name?.trim()) return summary.name.trim();
|
|
1266
1266
|
return "New session";
|
|
1267
1267
|
}
|
|
1268
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
1268
|
+
var $$splitComponentImporter = () => import("./routes-DJqUmK-U.mjs");
|
|
1269
1269
|
var indexSearchSchema = object({ session: string().optional() });
|
|
1270
1270
|
var Route = createFileRoute("/")({
|
|
1271
1271
|
validateSearch: indexSearchSchema,
|
|
@@ -3813,7 +3813,7 @@ var defaultSerovalPlugins = [
|
|
|
3813
3813
|
* the dev styles URL for route-scoped CSS collection.
|
|
3814
3814
|
*/
|
|
3815
3815
|
async function getStartManifest(matchedRoutes) {
|
|
3816
|
-
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-
|
|
3816
|
+
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-f3QaV5ex.mjs");
|
|
3817
3817
|
const startManifest = tsrStartManifest();
|
|
3818
3818
|
const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes["__root__"] || {};
|
|
3819
3819
|
rootRoute.assets = rootRoute.assets || [];
|
|
@@ -4799,7 +4799,7 @@ var baseManifestPromise;
|
|
|
4799
4799
|
var cachedFinalManifestPromise;
|
|
4800
4800
|
async function loadEntries() {
|
|
4801
4801
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
4802
|
-
import("./router-
|
|
4802
|
+
import("./router-CvoH1TXL.mjs"),
|
|
4803
4803
|
import("./start-Captdpmb.mjs"),
|
|
4804
4804
|
import("../__23tanstack-start-plugin-adapters-y_fshQDY.mjs")
|
|
4805
4805
|
]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-f3QaV5ex.js
|
|
2
2
|
var tsrStartManifest = () => ({
|
|
3
3
|
routes: {
|
|
4
4
|
__root__: {
|
|
@@ -50,16 +50,16 @@ var tsrStartManifest = () => ({
|
|
|
50
50
|
"/api/ui/$id"
|
|
51
51
|
],
|
|
52
52
|
assets: void 0,
|
|
53
|
-
preloads: ["/assets/index-
|
|
53
|
+
preloads: ["/assets/index-BWtOMO0B.js", "/assets/rolldown-runtime-S-ySWqyJ.js"]
|
|
54
54
|
},
|
|
55
55
|
"/": {
|
|
56
56
|
filePath: "/home/runner/work/pico/pico/src/routes/index.tsx",
|
|
57
57
|
children: void 0,
|
|
58
58
|
assets: void 0,
|
|
59
|
-
preloads: ["/assets/routes-
|
|
59
|
+
preloads: ["/assets/routes-5c_6T6hK.js"]
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
clientEntry: "/assets/index-
|
|
62
|
+
clientEntry: "/assets/index-BWtOMO0B.js"
|
|
63
63
|
});
|
|
64
64
|
//#endregion
|
|
65
65
|
export { tsrStartManifest };
|