@alivault/pico 0.13.0 → 0.14.0
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-CW1T9dk-.js → index-DBVxXDtw.js} +4 -4
- package/.output/public/assets/routes-yUxD2q-l.js +2194 -0
- package/.output/public/assets/styles-CUVz7jV9.css +2 -0
- package/.output/public/screenshots/pico-ios-dark.png +0 -0
- package/.output/public/screenshots/pico-ios-light.png +0 -0
- package/.output/public/screenshots/pico-macos-dark.jpg +0 -0
- package/.output/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/server/_chunks/ssr-renderer.mjs +3 -3
- package/.output/server/_libs/crossws.mjs +2929 -0
- package/.output/server/_libs/h3+rou3+srvx.mjs +7 -1
- package/.output/server/_libs/unctx.mjs +1 -1
- package/.output/server/_routes/api/terminal/[id]/ws.mjs +8874 -0
- package/.output/server/_ssr/{router-l__gf5Y7.mjs → router-CN4JMm2A.mjs} +1074 -316
- package/.output/server/_ssr/{routes-DySm_W8N.mjs → routes-BsQ26pbY.mjs} +738 -189
- package/.output/server/_ssr/{routes-CuWg5WTI.mjs → routes-DbjuMLFI.mjs} +19 -10
- package/.output/server/_ssr/ssr.mjs +3 -3
- package/.output/server/_ssr/start-jIczsXlR.mjs +4 -0
- package/.output/server/{_tanstack-start-manifest_v-CVoKKKc_.mjs → _tanstack-start-manifest_v-Bs4g_j1_.mjs} +7 -4
- package/.output/server/index.mjs +621 -542
- package/.output/server/node_modules/node-pty/build/Makefile +2 -2
- package/.output/server/node_modules/node-pty/build/pty.target.mk +14 -14
- package/README.md +68 -6
- package/bin/pico.mjs +103 -1
- package/package.json +4 -4
- package/public/screenshots/pico-ios-dark.png +0 -0
- package/public/screenshots/pico-ios-light.png +0 -0
- package/public/screenshots/pico-macos-dark.jpg +0 -0
- package/public/screenshots/pico-macos-light.jpg +0 -0
- package/.output/public/assets/routes-2LboeUx4.js +0 -2194
- package/.output/public/assets/styles-B1ITYh-r.css +0 -2
- package/.output/server/_ssr/start-Captdpmb.mjs +0 -4
|
@@ -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 { H as ChevronUp, K as ArrowUp, Q as ArrowBigUp, R as Command, X as ArrowLeft, Y as ArrowRight, Z as ArrowDown, v as Option } 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-DbjuMLFI.js
|
|
9
9
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
10
10
|
var import_jsx_runtime = require_jsx_runtime();
|
|
11
11
|
function cn(...inputs) {
|
|
@@ -2698,7 +2698,7 @@ function samePromptImages(leftImages = [], rightImages = []) {
|
|
|
2698
2698
|
return true;
|
|
2699
2699
|
}
|
|
2700
2700
|
function sameUserMessageBody(left, right) {
|
|
2701
|
-
return left.text === right.text && samePromptImages(left.images, right.images) && Boolean(left.queued) === Boolean(right.queued) && left.streamingBehavior === right.streamingBehavior;
|
|
2701
|
+
return left.text === right.text && samePromptImages(left.images, right.images) && Boolean(left.queued) === Boolean(right.queued) && left.streamingBehavior === right.streamingBehavior && (left.forkEntryId || "") === (right.forkEntryId || "");
|
|
2702
2702
|
}
|
|
2703
2703
|
function sameUserMessageContent(left, right) {
|
|
2704
2704
|
return (left.itemKey || "") === (right.itemKey || "") && sameUserMessageBody(left, right);
|
|
@@ -2709,7 +2709,7 @@ function sameAssistantBlockPayload(left, right) {
|
|
|
2709
2709
|
case "text": return right.type === "text" && left.text === right.text && Boolean(left.isError) === Boolean(right.isError);
|
|
2710
2710
|
case "thinking": return right.type === "thinking" && left.text === right.text && (left.summaryLabel || "") === (right.summaryLabel || "");
|
|
2711
2711
|
case "tool": return right.type === "tool" && (left.callId || "") === (right.callId || "") && (left.name || "") === (right.name || "") && stableJsonValue(left.args) === stableJsonValue(right.args) && left.output === right.output && stableJsonValue(left.details) === stableJsonValue(right.details) && Boolean(left.isError) === Boolean(right.isError) && Boolean(left.running) === Boolean(right.running);
|
|
2712
|
-
case "compaction": return right.type === "compaction" && left.summary === right.summary && left.tokensBefore === right.tokensBefore;
|
|
2712
|
+
case "compaction": return right.type === "compaction" && left.summary === right.summary && left.tokensBefore === right.tokensBefore && left.estimatedTokensAfter === right.estimatedTokensAfter;
|
|
2713
2713
|
default: return false;
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
@@ -2722,7 +2722,7 @@ function sameAssistantModel(left, right) {
|
|
|
2722
2722
|
return left.id === right.id && (left.provider || "") === (right.provider || "") && (left.name || "") === (right.name || "") && Boolean(left.reasoning) === Boolean(right.reasoning);
|
|
2723
2723
|
}
|
|
2724
2724
|
function sameAssistantMessageMeta(left, right) {
|
|
2725
|
-
return sameAssistantModel(left.model, right.model) && left.done === false === (right.done === false);
|
|
2725
|
+
return sameAssistantModel(left.model, right.model) && left.done === false === (right.done === false) && (left.branchEntryId || "") === (right.branchEntryId || "");
|
|
2726
2726
|
}
|
|
2727
2727
|
function sameStateItem(left, right) {
|
|
2728
2728
|
if (!left || !right || left.kind !== right.kind) return false;
|
|
@@ -2940,7 +2940,8 @@ function assistantBlocksFromMessage(message, keyPrefix = "assistant") {
|
|
|
2940
2940
|
});
|
|
2941
2941
|
return blocks;
|
|
2942
2942
|
}
|
|
2943
|
-
function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compaction") {
|
|
2943
|
+
function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compaction", estimatedTokensAfter) {
|
|
2944
|
+
const normalizedEstimatedTokensAfter = estimatedTokensAfter == null ? NaN : Number(estimatedTokensAfter);
|
|
2944
2945
|
return {
|
|
2945
2946
|
kind: "assistant",
|
|
2946
2947
|
itemKey,
|
|
@@ -2948,7 +2949,8 @@ function createCompactionSummaryItem(summary, tokensBefore, itemKey = "compactio
|
|
|
2948
2949
|
type: "compaction",
|
|
2949
2950
|
blockKey: `${itemKey}:compaction`,
|
|
2950
2951
|
summary: typeof summary === "string" ? summary : "",
|
|
2951
|
-
tokensBefore: Number.isFinite(Number(tokensBefore)) ? Number(tokensBefore) : 0
|
|
2952
|
+
tokensBefore: Number.isFinite(Number(tokensBefore)) ? Number(tokensBefore) : 0,
|
|
2953
|
+
...Number.isFinite(normalizedEstimatedTokensAfter) ? { estimatedTokensAfter: normalizedEstimatedTokensAfter } : {}
|
|
2952
2954
|
}],
|
|
2953
2955
|
streaming: false
|
|
2954
2956
|
};
|
|
@@ -3182,7 +3184,7 @@ function buildItemsFromSync(sync, previousItems = []) {
|
|
|
3182
3184
|
continue;
|
|
3183
3185
|
}
|
|
3184
3186
|
if (message.role === "compactionSummary") {
|
|
3185
|
-
items.push(createCompactionSummaryItem(message.summary, message.tokensBefore, itemKey));
|
|
3187
|
+
items.push(createCompactionSummaryItem(message.summary, message.tokensBefore, itemKey, message.estimatedTokensAfter));
|
|
3186
3188
|
continue;
|
|
3187
3189
|
}
|
|
3188
3190
|
if (message.role === "toolResult") {
|
|
@@ -3327,8 +3329,15 @@ function createInitialSessionState() {
|
|
|
3327
3329
|
historyOffset: 0,
|
|
3328
3330
|
historyTotalCount: 0,
|
|
3329
3331
|
firstMessage: "",
|
|
3330
|
-
thinkingLevel: "
|
|
3331
|
-
availableThinkingLevels: [
|
|
3332
|
+
thinkingLevel: "xhigh",
|
|
3333
|
+
availableThinkingLevels: [
|
|
3334
|
+
"off",
|
|
3335
|
+
"minimal",
|
|
3336
|
+
"low",
|
|
3337
|
+
"medium",
|
|
3338
|
+
"high",
|
|
3339
|
+
"xhigh"
|
|
3340
|
+
],
|
|
3332
3341
|
availableModels: [],
|
|
3333
3342
|
availableSkills: [],
|
|
3334
3343
|
hideThinkingBlock: false,
|
|
@@ -3381,7 +3390,7 @@ function getSessionTitle(summary) {
|
|
|
3381
3390
|
if (summary?.name?.trim()) return summary.name.trim();
|
|
3382
3391
|
return "New session";
|
|
3383
3392
|
}
|
|
3384
|
-
var $$splitComponentImporter = () => import("./routes-
|
|
3393
|
+
var $$splitComponentImporter = () => import("./routes-BsQ26pbY.mjs");
|
|
3385
3394
|
var indexSearchSchema = object({ session: string().optional() });
|
|
3386
3395
|
var Route = createFileRoute("/")({
|
|
3387
3396
|
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-Bs4g_j1_.mjs");
|
|
3817
3817
|
const startManifest = tsrStartManifest();
|
|
3818
3818
|
const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes["__root__"] || {};
|
|
3819
3819
|
rootRoute.assets = rootRoute.assets || [];
|
|
@@ -4799,8 +4799,8 @@ var baseManifestPromise;
|
|
|
4799
4799
|
var cachedFinalManifestPromise;
|
|
4800
4800
|
async function loadEntries() {
|
|
4801
4801
|
const [routerEntry, startEntry, pluginAdapters] = await Promise.all([
|
|
4802
|
-
import("./router-
|
|
4803
|
-
import("./start-
|
|
4802
|
+
import("./router-CN4JMm2A.mjs"),
|
|
4803
|
+
import("./start-jIczsXlR.mjs"),
|
|
4804
4804
|
import("../__23tanstack-start-plugin-adapters-y_fshQDY.mjs")
|
|
4805
4805
|
]);
|
|
4806
4806
|
return {
|
|
@@ -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-Bs4g_j1_.js
|
|
2
2
|
var tsrStartManifest = () => ({
|
|
3
3
|
routes: {
|
|
4
4
|
__root__: {
|
|
@@ -39,16 +39,19 @@ var tsrStartManifest = () => ({
|
|
|
39
39
|
"/api/auth/logout",
|
|
40
40
|
"/api/auth/oauth",
|
|
41
41
|
"/api/auth/providers",
|
|
42
|
+
"/api/client/manifest",
|
|
42
43
|
"/api/directory/resolve",
|
|
43
44
|
"/api/files/read",
|
|
44
45
|
"/api/files/tree",
|
|
45
46
|
"/api/pending-message/remove",
|
|
46
47
|
"/api/pending-messages/reorder",
|
|
48
|
+
"/api/pending-messages/start",
|
|
47
49
|
"/api/session/clone",
|
|
48
50
|
"/api/session/delete",
|
|
49
51
|
"/api/session/fork",
|
|
50
52
|
"/api/session/history",
|
|
51
53
|
"/api/session/move",
|
|
54
|
+
"/api/session/name",
|
|
52
55
|
"/api/session/new",
|
|
53
56
|
"/api/session/read-state",
|
|
54
57
|
"/api/session/rename",
|
|
@@ -59,16 +62,16 @@ var tsrStartManifest = () => ({
|
|
|
59
62
|
"/api/ui/$id"
|
|
60
63
|
],
|
|
61
64
|
assets: void 0,
|
|
62
|
-
preloads: ["/assets/index-
|
|
65
|
+
preloads: ["/assets/index-DBVxXDtw.js", "/assets/rolldown-runtime-S-ySWqyJ.js"]
|
|
63
66
|
},
|
|
64
67
|
"/": {
|
|
65
68
|
filePath: "/home/runner/work/pico/pico/src/routes/index.tsx",
|
|
66
69
|
children: void 0,
|
|
67
70
|
assets: void 0,
|
|
68
|
-
preloads: ["/assets/routes-
|
|
71
|
+
preloads: ["/assets/routes-yUxD2q-l.js"]
|
|
69
72
|
}
|
|
70
73
|
},
|
|
71
|
-
clientEntry: "/assets/index-
|
|
74
|
+
clientEntry: "/assets/index-DBVxXDtw.js"
|
|
72
75
|
});
|
|
73
76
|
//#endregion
|
|
74
77
|
export { tsrStartManifest };
|