From 05abd0c8c0d54fef17418dadf02e4e2adf2a1306 Mon Sep 17 00:00:00 2001 From: Greg Anders Date: Fri, 21 Aug 2026 12:08:21 -0500 Subject: [PATCH] Update to pi 0.84.2 --- AGENTS.md | 2 +- agent/APPEND_SYSTEM.md | 1 + agent/extensions/lsp/client.ts | 12 +- agent/extensions/lsp/config.ts | 24 + agent/extensions/lsp/index.ts | 12 +- agent/extensions/lsp/test/client.test.ts | 4 + agent/extensions/lsp/test/config.test.ts | 43 + agent/extensions/sandbox/index.ts | 13 +- agent/extensions/sandbox/policy.ts | 8 +- agent/extensions/sandbox/test/policy.test.ts | 4 + agent/extensions/search-tools.ts | 11 - agent/extensions/settings.ts | 2 +- agent/extensions/subagent/index.ts | 225 ++- agent/extensions/subagent/test/viewer.test.ts | 97 +- agent/keybindings.json | 3 +- agent/settings.json | 14 +- agent/themes/nord.json | 3 + pnpm-lock.yaml | 1353 +++++++++++++---- pnpm-workspace.yaml | 8 +- 19 files changed, 1504 insertions(+), 335 deletions(-) create mode 100644 agent/APPEND_SYSTEM.md delete mode 100644 agent/extensions/search-tools.ts diff --git a/AGENTS.md b/AGENTS.md index 770010a..9f122a3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,6 +1,6 @@ # Agent instructions for working on the user's pi configuration -* If the user mentions a pi extension to reference, assume first they are referring to the extensions directory in this repo: `agents/extensions/` +* If the user mentions a pi extension to reference, assume first they are referring to the extensions directory in this repo: `agent/extensions/` * If the user mentions an "example extension", look in `examples/extensions/` under pi's installation source directory * Tests for extensions should be in a dedicated tests subdirectory (i.e. `extensions//test/`) * Design and implement extensions such that they don't have inner knowledge of each other's workings. They should be well isolated and expose clear interfaces without depending on internal implementation details of other extensions. Use Pi's event bus mechanism for "message passing" between extensions. diff --git a/agent/APPEND_SYSTEM.md b/agent/APPEND_SYSTEM.md new file mode 100644 index 0000000..1542816 --- /dev/null +++ b/agent/APPEND_SYSTEM.md @@ -0,0 +1 @@ +- Always bias toward simplicity. Do not write hundreds of lines of code to address an edge case that is rare, hypothetical, or low impact. diff --git a/agent/extensions/lsp/client.ts b/agent/extensions/lsp/client.ts index 2cbdc5a..7b8326f 100644 --- a/agent/extensions/lsp/client.ts +++ b/agent/extensions/lsp/client.ts @@ -18,6 +18,8 @@ export interface ServerConfig { markers?: string[]; root?: string; format?: boolean; + tabSize?: number; + insertSpaces?: boolean; settings?: Record; } @@ -259,12 +261,10 @@ export class LspClient { } async open(uri: string, languageId: string, text: string) { - // A newly opened document makes the server re-analyze, so any earlier - // idle conclusion no longer applies. - if (!this.versions.has(uri)) { - this.progressSeen = false; - this.markBusy(false); - } + // A reopened document makes the server re-analyze too, so an earlier + // idle conclusion must never carry into this document lifetime. + this.progressSeen = false; + this.markBusy(false); const version = (this.versions.get(uri) ?? 0) + 1; this.versions.set(uri, version); await this.notify("textDocument/didOpen", { diff --git a/agent/extensions/lsp/config.ts b/agent/extensions/lsp/config.ts index 23b1515..f0b0f6a 100644 --- a/agent/extensions/lsp/config.ts +++ b/agent/extensions/lsp/config.ts @@ -70,6 +70,24 @@ export function loadConfig( if (server.format !== undefined && typeof server.format !== "boolean") { throw new Error(`LSP server ${name} format must be a boolean.`); } + if ( + server.tabSize !== undefined && + (typeof server.tabSize !== "number" || + !Number.isInteger(server.tabSize) || + server.tabSize < 1) + ) { + throw new Error( + `LSP server ${name} tabSize must be a positive integer.`, + ); + } + if ( + server.insertSpaces !== undefined && + typeof server.insertSpaces !== "boolean" + ) { + throw new Error( + `LSP server ${name} insertSpaces must be a boolean.`, + ); + } if ( server.root !== undefined && (typeof server.root !== "string" || server.root.trim().length === 0) @@ -90,6 +108,12 @@ export function loadConfig( name, command: server.command, ...(server.format === false ? { format: false } : {}), + ...(server.tabSize === undefined + ? {} + : { tabSize: server.tabSize }), + ...(server.insertSpaces === undefined + ? {} + : { insertSpaces: server.insertSpaces }), extensions: server.extensions.map((extension) => extension.startsWith(".") ? extension : `.${extension}`, ), diff --git a/agent/extensions/lsp/index.ts b/agent/extensions/lsp/index.ts index a29a2f1..46db839 100644 --- a/agent/extensions/lsp/index.ts +++ b/agent/extensions/lsp/index.ts @@ -59,6 +59,13 @@ const LANGUAGE_IDS: Record = { type RootFor = (server: ServerConfig, source: string) => string | undefined; type OnServerStart = (server: ServerConfig, folders: string[]) => void; +export function formattingOptions(server: ServerConfig) { + return { + tabSize: server.tabSize ?? 4, + insertSpaces: server.insertSpaces ?? true, + }; +} + export function renderSymbolCall( args: { action?: "definition" | "references"; @@ -291,10 +298,7 @@ failure. "textDocument/formatting", { textDocument: { uri }, - options: { - tabSize: 4, - insertSpaces: true, - }, + options: formattingOptions(server), }, ctx.signal, )) ?? []; diff --git a/agent/extensions/lsp/test/client.test.ts b/agent/extensions/lsp/test/client.test.ts index 8ab5480..b3307b2 100644 --- a/agent/extensions/lsp/test/client.test.ts +++ b/agent/extensions/lsp/test/client.test.ts @@ -128,6 +128,10 @@ test("keeps an initialized LSP connection alive across requests", async () => { }, ); await client.closeDocument(uri); + (client as unknown as { idle: boolean }).idle = true; + await client.open(uri, "typescript", "answer\n"); + assert.equal((client as unknown as { idle: boolean }).idle, false); + await client.closeDocument(uri); } finally { await pool.close(); rmSync(root, { recursive: true, force: true }); diff --git a/agent/extensions/lsp/test/config.test.ts b/agent/extensions/lsp/test/config.test.ts index d5b4561..62bac1e 100644 --- a/agent/extensions/lsp/test/config.test.ts +++ b/agent/extensions/lsp/test/config.test.ts @@ -5,6 +5,7 @@ import path from "node:path"; import test from "node:test"; import type { ServerConfig } from "../client.ts"; import { loadProjectConfig } from "../config.ts"; +import { formattingOptions } from "../index.ts"; const globalServers: ServerConfig[] = [ { @@ -92,6 +93,48 @@ test("trusted project config adds servers and overrides global servers", (t) => ]); }); +test("project config controls LSP formatting options", (t) => { + const root = mkdtempSync(path.join(tmpdir(), "pi-lsp-config-format-")); + t.after(() => rmSync(root, { recursive: true, force: true })); + const configPath = projectConfig( + root, + JSON.stringify({ + typescript: { tabSize: 2, insertSpaces: false }, + }), + ); + + const server = loadProjectConfig(globalServers, configPath, true)[0]; + assert.ok(server); + assert.deepEqual(formattingOptions(server), { + tabSize: 2, + insertSpaces: false, + }); + assert.deepEqual(formattingOptions(globalServers[0] as ServerConfig), { + tabSize: 4, + insertSpaces: true, + }); +}); + +test("rejects invalid LSP formatting options", (t) => { + const root = mkdtempSync(path.join(tmpdir(), "pi-lsp-config-format-")); + t.after(() => rmSync(root, { recursive: true, force: true })); + + for (const [value, message] of [ + [{ tabSize: 0 }, /tabSize must be a positive integer/], + [{ tabSize: 2.5 }, /tabSize must be a positive integer/], + [{ insertSpaces: "yes" }, /insertSpaces must be a boolean/], + ] as const) { + const configPath = projectConfig( + root, + JSON.stringify({ typescript: value }), + ); + assert.throws( + () => loadProjectConfig(globalServers, configPath, true), + message, + ); + } +}); + test("trusted project config can override only the root", (t) => { const root = mkdtempSync(path.join(tmpdir(), "pi-lsp-config-root-only-")); t.after(() => rmSync(root, { recursive: true, force: true })); diff --git a/agent/extensions/sandbox/index.ts b/agent/extensions/sandbox/index.ts index 80e7546..70717b1 100644 --- a/agent/extensions/sandbox/index.ts +++ b/agent/extensions/sandbox/index.ts @@ -422,12 +422,15 @@ export default function sandboxExtension(pi: ExtensionAPI) { // Does not change `state`; callers decide whether that means "disabled" // (still running, deliberately off) or "stopped" (process exiting). async function stopSandbox(): Promise { - if (initialized) { - initialized = false; - await SandboxManager.reset(); + try { + if (initialized) { + initialized = false; + await SandboxManager.reset(); + } + } finally { + caBundle?.cleanup(); + caBundle = undefined; } - caBundle?.cleanup(); - caBundle = undefined; } pi.on("before_agent_start", (event) => { diff --git a/agent/extensions/sandbox/policy.ts b/agent/extensions/sandbox/policy.ts index dc55679..0a72a93 100644 --- a/agent/extensions/sandbox/policy.ts +++ b/agent/extensions/sandbox/policy.ts @@ -562,11 +562,13 @@ export interface CABundle { cleanup(): void; } -// Pi's own per-command session metadata (session id/file, provider, model, -// reasoning level). Not secrets -- pi exposes these to unsandboxed bash -// commands by default (see createBashToolDefinition), so pass them through +// Pi's agent markers and per-command session metadata (session id/file, +// provider, model, reasoning level). Not secrets -- pi exposes these to +// unsandboxed bash commands by default (see createBashToolDefinition), so pass them through // here too instead of silently dropping them. const SESSION_ENV_VARS = [ + "AI_AGENT", + "PI_CODING_AGENT", "PI_SESSION_ID", "PI_SESSION_FILE", "PI_PROVIDER", diff --git a/agent/extensions/sandbox/test/policy.test.ts b/agent/extensions/sandbox/test/policy.test.ts index 1018bce..77dc5c4 100644 --- a/agent/extensions/sandbox/test/policy.test.ts +++ b/agent/extensions/sandbox/test/policy.test.ts @@ -629,6 +629,8 @@ test("withSessionEnv passes through only pi's session vars, ignoring everything const env = withSessionEnv( { PATH: "/usr/bin" }, { + AI_AGENT: "pi", + PI_CODING_AGENT: "1", PI_SESSION_ID: "abc", PI_MODEL: "gpt-5", SECRET_TOKEN: "nope", @@ -636,6 +638,8 @@ test("withSessionEnv passes through only pi's session vars, ignoring everything ); assert.deepEqual(env, { PATH: "/usr/bin", + AI_AGENT: "pi", + PI_CODING_AGENT: "1", PI_SESSION_ID: "abc", PI_MODEL: "gpt-5", }); diff --git a/agent/extensions/search-tools.ts b/agent/extensions/search-tools.ts deleted file mode 100644 index 61a7659..0000000 --- a/agent/extensions/search-tools.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; - -const SEARCH_TOOLS = ["grep", "find", "ls"]; - -export default function searchToolsExtension(pi: ExtensionAPI) { - pi.on("session_start", () => { - pi.setActiveTools([ - ...new Set([...pi.getActiveTools(), ...SEARCH_TOOLS]), - ]); - }); -} diff --git a/agent/extensions/settings.ts b/agent/extensions/settings.ts index 91a4b4e..50ebc29 100644 --- a/agent/extensions/settings.ts +++ b/agent/extensions/settings.ts @@ -1,6 +1,6 @@ import { SettingsManager } from "@earendil-works/pi-coding-agent"; -// ponytail: blocks ALL persistence for these 4 fields, including via /settings. +// Blocks ALL persistence for these 4 fields, including via /settings. // Change defaults by hand-editing settings.json. Remove this file once // https://github.com/earendil-works/pi/pull/5270 (or equivalent) lands. const proto = SettingsManager.prototype; diff --git a/agent/extensions/subagent/index.ts b/agent/extensions/subagent/index.ts index 66e5547..5a3f84e 100644 --- a/agent/extensions/subagent/index.ts +++ b/agent/extensions/subagent/index.ts @@ -144,6 +144,11 @@ interface BackgroundDisplay { type CancellationStatus = "canceled" | "timed_out"; +interface TranscriptRecord { + bytes: number; + event: Record; +} + interface ChildJob { agent: string; bytes: number; @@ -153,7 +158,7 @@ interface ChildJob { cwd: string; deadline: ReturnType; done: Promise; - events: Array<{ bytes: number; event: Record }>; + events: TranscriptRecord[]; finish: () => void; finishedAt?: number; id: string; @@ -163,6 +168,8 @@ interface ChildJob { sourceSignal?: AbortSignal; sourceAbort?: () => void; state: string; + streamingAssistant?: AssistantMessage; + streamingEvent?: TranscriptRecord; summary: string; task: string; truncated?: boolean; @@ -265,18 +272,49 @@ function notifyTranscript( } } +function trimTranscript(job: ChildJob): void { + while (job.bytes > MAX_TRANSCRIPT_BYTES && job.events.length > 1) { + const removed = job.events.shift(); + job.bytes -= removed?.bytes ?? 0; + if (removed === job.streamingEvent) { + job.streamingAssistant = undefined; + job.streamingEvent = undefined; + } + job.truncated = true; + } +} + function updateTranscript( job: ChildJob, event: Record, bytes: number, -): void { - job.events.push({ bytes, event }); +): TranscriptRecord { + const record = { bytes, event }; + job.events.push(record); job.bytes += bytes; - while (job.bytes > MAX_TRANSCRIPT_BYTES && job.events.length > 1) { - job.bytes -= job.events.shift()?.bytes ?? 0; - job.truncated = true; - } + trimTranscript(job); notifyTranscript(job, event); + return record; +} + +function refreshTranscript(job: ChildJob, record: TranscriptRecord): void { + const bytes = Buffer.byteLength(JSON.stringify(record.event)); + job.bytes += bytes - record.bytes; + record.bytes = bytes; + trimTranscript(job); + notifyTranscript(job, record.event); +} + +function removeTranscript(job: ChildJob, record: TranscriptRecord): void { + const index = job.events.indexOf(record); + if (index >= 0) { + job.events.splice(index, 1); + job.bytes -= record.bytes; + } + if (job.streamingEvent === record) { + job.streamingAssistant = undefined; + job.streamingEvent = undefined; + } } function finishJob(job: ChildJob): void { @@ -421,6 +459,126 @@ function assistantText(content: unknown): string { : ""; } +// JSON mode omits cumulative partial messages, so retain one local snapshot for the viewer. +function applyAssistantUpdate( + message: AssistantMessage, + update: Record, + usage: unknown, +): boolean { + if (isRecord(usage)) { + message.usage = usage as unknown as Usage; + } + + const index = update.contentIndex; + const contentIndex = + typeof index === "number" && + Number.isSafeInteger(index) && + index >= 0 && + index <= message.content.length + ? index + : undefined; + switch (update.type) { + case "text_start": + if (contentIndex === message.content.length) { + message.content[contentIndex] = { type: "text", text: "" }; + return true; + } + return false; + case "text_delta": { + const content = + contentIndex === undefined + ? undefined + : message.content[contentIndex]; + if (content?.type !== "text" || typeof update.delta !== "string") { + return false; + } + content.text += update.delta; + return true; + } + case "text_end": { + const content = + contentIndex === undefined + ? undefined + : message.content[contentIndex]; + if ( + content?.type !== "text" || + typeof update.content !== "string" + ) { + return false; + } + content.text = update.content; + return true; + } + case "thinking_start": + if (contentIndex === message.content.length) { + message.content[contentIndex] = { + type: "thinking", + thinking: "", + }; + return true; + } + return false; + case "thinking_delta": { + const content = + contentIndex === undefined + ? undefined + : message.content[contentIndex]; + if ( + content?.type !== "thinking" || + typeof update.delta !== "string" + ) { + return false; + } + content.thinking += update.delta; + return true; + } + case "thinking_end": { + const content = + contentIndex === undefined + ? undefined + : message.content[contentIndex]; + if ( + content?.type !== "thinking" || + typeof update.content !== "string" + ) { + return false; + } + content.thinking = update.content; + return true; + } + case "toolcall_end": + if ( + contentIndex !== undefined && + isRecord(update.toolCall) && + update.toolCall.type === "toolCall" && + typeof update.toolCall.id === "string" && + typeof update.toolCall.name === "string" && + isRecord(update.toolCall.arguments) + ) { + message.content[contentIndex] = + update.toolCall as unknown as AssistantMessage["content"][number]; + return true; + } + return false; + case "done": + case "error": { + const final = + update.type === "done" ? update.message : update.error; + if ( + isRecord(final) && + final.role === "assistant" && + Array.isArray(final.content) + ) { + Object.assign(message, final); + return true; + } + return false; + } + default: + return false; + } +} + type ToolCallColor = "accent" | "dim" | "muted" | "toolOutput" | "warning"; type ToolRenderers = Pick< ToolDefinition, @@ -1029,8 +1187,7 @@ async function runSingleAgent( const processLine = (line: string) => { if ( !line.trim() || - line.startsWith('{"type":"tool_execution_update"') || - (line.startsWith('{"type":"message_update"') && !job.onUpdate) + line.startsWith('{"type":"tool_execution_update"') ) { return; } @@ -1044,12 +1201,42 @@ async function runSingleAgent( return; } if (event.type === "message_update") { - // Message deltas only matter to an open viewer; completed events are retained. - notifyTranscript(job, event); + if ( + job.streamingAssistant && + job.streamingEvent && + isRecord(event.assistantMessageEvent) && + applyAssistantUpdate( + job.streamingAssistant, + event.assistantMessageEvent, + event.usage, + ) + ) { + refreshTranscript(job, job.streamingEvent); + } return; } const eventBytes = Buffer.byteLength(line); if ( + event.type === "message_start" && + isRecord(event.message) && + event.message.role === "assistant" && + Array.isArray(event.message.content) + ) { + if (job.streamingEvent) { + removeTranscript(job, job.streamingEvent); + } + const snapshot = { + type: "assistant_snapshot", + message: event.message, + }; + job.streamingAssistant = + event.message as unknown as AssistantMessage; + job.streamingEvent = updateTranscript( + job, + snapshot, + Buffer.byteLength(JSON.stringify(snapshot)), + ); + } else if ( event.type === "tool_execution_start" && typeof event.toolName === "string" ) { @@ -1093,6 +1280,9 @@ async function runSingleAgent( isRecord(event.message) && event.message.role === "assistant" ) { + if (job.streamingEvent) { + removeTranscript(job, job.streamingEvent); + } updateTranscript(job, event, eventBytes); acceptAssistant(event.message); emitUpdate(); @@ -1360,7 +1550,8 @@ async function showTranscript( }; const processEvent = (event: Record) => { if ( - (event.type === "message_update" || + (event.type === "message_start" || + event.type === "assistant_snapshot" || event.type === "message_end") && isRecord(event.message) && event.message.role === "assistant" && @@ -1368,15 +1559,17 @@ async function showTranscript( ) { const message = event.message as unknown as AssistantMessage; - if (assistant) { - assistant.updateContent(message); - } else { + if (!assistant) { assistant = new AssistantMessageComponent( - message, + undefined, thinkingHidden, ); components.push(assistant); } + assistant.updateContent( + message, + event.type !== "message_end", + ); if (event.type === "message_end") { assistant = undefined; } diff --git a/agent/extensions/subagent/test/viewer.test.ts b/agent/extensions/subagent/test/viewer.test.ts index 2eb719c..6c55e4c 100644 --- a/agent/extensions/subagent/test/viewer.test.ts +++ b/agent/extensions/subagent/test/viewer.test.ts @@ -1,5 +1,6 @@ import assert from "node:assert/strict"; -import { writeFileSync } from "node:fs"; +import { existsSync, writeFileSync } from "node:fs"; +import { join } from "node:path"; import test from "node:test"; import { initTheme } from "@earendil-works/pi-coding-agent"; import { Container, Text } from "@earendil-works/pi-tui"; @@ -8,29 +9,42 @@ import { context, fixture, loadExtension, waitFor } from "./helpers.ts"; test("subagent transcripts replay and update live", async (t) => { initTheme(undefined, false); const f = fixture("viewer"); + const liveMarker = join(f.dir, "live-update"); + const continueMarker = join(f.dir, "continue"); t.after(f.restore); writeFileSync( f.fakePi, - `const emit = value => console.log(JSON.stringify(value)); + `import { existsSync, writeFileSync } from "node:fs"; +const emit = value => console.log(JSON.stringify(value)); +const emptyUsage = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, totalTokens: 0, cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 } }; emit({ type: "tool_execution_start", toolCallId: "checkpoint-1", toolName: "subagent_checkpoint", args: { findings: "HIDDEN CHECKPOINT", final: false } }); emit({ type: "tool_execution_end", toolCallId: "checkpoint-1", toolName: "subagent_checkpoint", result: { content: [{ type: "text", text: "saved" }] }, isError: false }); emit({ type: "message_end", message: { role: "assistant", content: [{ type: "text", text: "I will inspect the file." }, { type: "toolCall", id: "read-1", name: "read", arguments: { path: "README.md" } }], model: "fake", stopReason: "toolUse", usage: { input: 1, output: 1, cacheRead: 0, cacheWrite: 0, totalTokens: 2, cost: { total: 0 } } } }); emit({ type: "tool_execution_start", toolCallId: "read-1", toolName: "read", args: { path: "README.md" } }); setTimeout(() => emit({ type: "tool_execution_end", toolCallId: "read-1", toolName: "read", result: { content: [{ type: "text", text: "file contents" }] }, isError: false }), 20); -setTimeout(() => emit({ type: "message_update", message: { role: "assistant", content: [{ type: "text", text: "Live update" }], model: "fake" }, assistantMessageEvent: { type: "text_delta", delta: "update" } }), 40); -setTimeout(() => { +setTimeout(async () => { + emit({ type: "message_start", message: { role: "assistant", content: [], api: "fake", provider: "fake", model: "fake", usage: emptyUsage, stopReason: "pending", timestamp: Date.now() } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "thinking_start", contentIndex: 0 } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "thinking_delta", contentIndex: 0, delta: "LIVE THOUGHT" } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "thinking_end", contentIndex: 0, content: "LIVE THOUGHT" } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "text_start", contentIndex: 1 } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "text_delta", contentIndex: 1, delta: "Live " } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "text_delta", contentIndex: 1, delta: "update" } }); + emit({ type: "message_update", usage: emptyUsage, assistantMessageEvent: { type: "text_end", contentIndex: 1, content: "Live update" } }); + writeFileSync(${JSON.stringify(liveMarker)}, "ready"); + while (!existsSync(${JSON.stringify(continueMarker)})) { + await new Promise(resolve => setTimeout(resolve, 10)); + } emit({ type: "tool_execution_start", toolCallId: "hidden-1", toolName: "hidden_tool", args: {} }); emit({ type: "tool_execution_end", toolCallId: "hidden-1", toolName: "hidden_tool", result: { content: [{ type: "text", text: "hidden output" }] }, isError: false }); emit({ type: "tool_execution_start", toolCallId: "custom-1", toolName: "custom_tool", args: { target: "example" } }); emit({ type: "tool_execution_end", toolCallId: "custom-1", toolName: "custom_tool", result: { content: [{ type: "text", text: "generic output" }] }, isError: false }); emit({ type: "tool_execution_start", toolCallId: "shell-1", toolName: "custom_shell_tool", args: { command: "pwd" } }); emit({ type: "tool_execution_end", toolCallId: "shell-1", toolName: "custom_shell_tool", result: { content: [{ type: "text", text: "/project" }] }, isError: false }); -}, 60); -setTimeout(() => { emit({ type: "message_end", message: { role: "assistant", content: [{ type: "thinking", thinking: "PRIVATE THOUGHT" }, { type: "text", text: "Finished" }], model: "fake", stopReason: "stop", usage: { input: 1, output: 1, cacheRead: 0, cacheWrite: 0, totalTokens: 2, cost: { total: 0 } } } }); emit({ type: "tool_execution_start", toolCallId: "checkpoint-final", toolName: "subagent_checkpoint", args: { findings: "FINAL REPORT", final: true } }); emit({ type: "tool_execution_end", toolCallId: "checkpoint-final", toolName: "subagent_checkpoint", result: { content: [{ type: "text", text: "sent" }] }, isError: false }); -}, 80); +}, 40); `, ); @@ -102,8 +116,9 @@ setTimeout(() => { ); component.handleInput?.(expandKey); liveExpanded = component.render(100).join("\n"); - component.handleInput?.("page-up"); + component.handleInput?.("g"); liveScrolled = component.render(100).join("\n"); + writeFileSync(continueMarker, "continue"); } else { completedCollapsed = component.render(100).join("\n"); component.handleInput?.(thinkingKey); @@ -156,7 +171,9 @@ setTimeout(() => { [`view ${id}`], ); + await waitFor(() => existsSync(liveMarker)); await extension.commands.get("subagents")?.(`view ${id}`, ctx); + assert.match(liveExpanded, /LIVE THOUGHT/); assert.match(liveExpanded, /Live update/); assert.match(liveExpanded, /file contents/); assert.match(liveScrolled, /Task: Inspect README/); @@ -190,3 +207,67 @@ setTimeout(() => { assert.match(notice, new RegExp(`${id}\\) — completed`)); await extension.handlers.get("session_shutdown")?.({}, ctx); }); + +test("subagent transcripts retain partial messages for late viewers", async (t) => { + initTheme(undefined, false); + const f = fixture("late-viewer"); + t.after(f.restore); + writeFileSync( + f.fakePi, + `const emit = value => console.log(JSON.stringify(value)); +const usage = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, totalTokens: 0, cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 } }; +emit({ type: "message_start", message: { role: "assistant", content: [], api: "fake", provider: "fake", model: "fake", usage, stopReason: "pending", timestamp: Date.now() } }); +emit({ type: "message_update", usage, assistantMessageEvent: { type: "text_start", contentIndex: 4294967294 } }); +emit({ type: "message_update", usage, assistantMessageEvent: { type: "text_start", contentIndex: 0 } }); +emit({ type: "message_update", usage, assistantMessageEvent: { type: "text_delta", contentIndex: 0, delta: "Late update" } }); +`, + ); + + const extension = loadExtension(); + const tool = extension.tools.get("subagent"); + assert.ok(tool); + const ctx = context(f.dir, true); + let rendered = ""; + const ui = ctx.ui as { + custom: (factory: (...args: unknown[]) => unknown) => Promise; + }; + ui.custom = async (factory) => { + const component = (await factory( + { terminal: { rows: 24 }, requestRender() {} }, + { fg: (_color: string, text: string) => text }, + { matches: () => false }, + () => {}, + )) as { + dispose?: () => void; + render: (width: number) => string[]; + }; + rendered = component.render(100).join("\n"); + component.dispose?.(); + }; + await extension.handlers.get("session_start")?.({}, ctx); + + const started = await tool.execute( + "late-viewer", + { + mode: "parallel", + tasks: [ + { + agent: "fake", + task: "Stream a partial answer", + thinking: "medium", + }, + ], + background: true, + }, + undefined, + undefined, + ctx, + ); + const id = started.content[0].text.match(/id ([\da-f]{8})/)?.[1]; + assert.ok(id); + await waitFor(() => extension.messages.length === 1); + + await extension.commands.get("subagents")?.(`view ${id}`, ctx); + assert.match(rendered, /Late update/); + await extension.handlers.get("session_shutdown")?.({}, ctx); +}); diff --git a/agent/keybindings.json b/agent/keybindings.json index 03b7fed..4cf94e1 100644 --- a/agent/keybindings.json +++ b/agent/keybindings.json @@ -1,9 +1,8 @@ { "app.exit": ["ctrl+c"], - "app.session.tree": ["alt+t"], "app.thinking.cycle": ["ctrl+t"], "app.thinking.toggle": ["shift+tab"], - "app.editor.external": ["ctrl+g", "alt+e"], + "app.editor.external": ["ctrl+g"], "tui.editor.yank": [], "tui.select.up": ["up", "ctrl+p"], "tui.select.down": ["down", "ctrl+n"] diff --git a/agent/settings.json b/agent/settings.json index 6817138..931af1b 100644 --- a/agent/settings.json +++ b/agent/settings.json @@ -1,15 +1,19 @@ { - "lastChangelogVersion": "0.83.0", + "lastChangelogVersion": "0.84.2", "theme": "nord", "defaultProvider": "cloudflare-ai-gateway", "enabledModels": [ - "cloudflare-ai-gateway/workers-ai/@cf/zai-org/glm-5.2", - "cloudflare-ai-gateway/workers-ai/@cf/zai-org/glm-4.7-flash", - "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6" + "cloudflare-ai-gateway/workers-ai/@cf/zai-org/glm-5.2", + "cloudflare-ai-gateway/workers-ai/@cf/zai-org/glm-4.7-flash", + "cloudflare-ai-gateway/workers-ai/@cf/moonshotai/kimi-k2.6" ], "steeringMode": "all", + "defaultTools": ["read", "bash", "edit", "write", "grep", "find", "ls"], "enableInstallTelemetry": false, "packages": ["npm:@gotgenes/pi-permission-system"], "skills": [], - "quietStartup": true + "quietStartup": true, + "treeFilterMode": "user-only", + "tuiMode": "fullscreen", + "fullscreenExitOutput": "resume-hint" } diff --git a/agent/themes/nord.json b/agent/themes/nord.json index 3396190..f8a3709 100644 --- a/agent/themes/nord.json +++ b/agent/themes/nord.json @@ -37,6 +37,9 @@ "thinkingText": "nord4", "selectedBg": "nord2", + "scrollbarThumb": "nord3", + "searchMatchBg": "nord13", + "searchMatchText": "nord0", "userMessageBg": "nord1", "userMessageText": "nord6", "customMessageBg": "nord1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8fa68f2..a094275 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,17 +7,17 @@ settings: catalogs: default: '@earendil-works/pi-agent-core': - specifier: 0.83.0 - version: 0.83.0 + specifier: 0.84.2 + version: 0.84.2 '@earendil-works/pi-ai': - specifier: 0.83.0 - version: 0.83.0 + specifier: 0.84.2 + version: 0.84.2 '@earendil-works/pi-coding-agent': - specifier: 0.83.0 - version: 0.83.0 + specifier: 0.84.2 + version: 0.84.2 '@earendil-works/pi-tui': - specifier: 0.83.0 - version: 0.83.0 + specifier: 0.84.2 + version: 0.84.2 importers: @@ -25,16 +25,16 @@ importers: devDependencies: '@earendil-works/pi-agent-core': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-ai': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-coding-agent': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-tui': specifier: 'catalog:' - version: 0.83.0 + version: 0.84.2 '@types/node': specifier: 24.12.4 version: 24.12.4 @@ -57,7 +57,7 @@ importers: devDependencies: '@earendil-works/pi-coding-agent': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) agent/extensions/sandbox: dependencies: @@ -76,10 +76,10 @@ importers: devDependencies: '@earendil-works/pi-coding-agent': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-tui': specifier: 'catalog:' - version: 0.83.0 + version: 0.84.2 '@types/node': specifier: 24.10.1 version: 24.10.1 @@ -94,13 +94,13 @@ importers: devDependencies: '@earendil-works/pi-ai': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-coding-agent': specifier: 'catalog:' - version: 0.83.0(ws@8.21.1)(zod@3.25.76) + version: 0.84.2(ws@8.21.3)(zod@3.25.76) '@earendil-works/pi-tui': specifier: 'catalog:' - version: 0.83.0 + version: 0.84.2 typebox: specifier: 1.1.38 version: 1.1.38 @@ -144,83 +144,80 @@ packages: resolution: {integrity: sha512-u+NT61JZEkRFtpL0CAw1N1dwxnaLgwVXQl/zjJxTGgLyS/jTIdg2SdoEoCTHxgDyCnqa1HEi9QOoE9/pYRNpOQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/core@3.977.3': - resolution: {integrity: sha512-6YZTpF5Zzl0KdSrztM0l6ErKdnXrnnodIDYfayHE9SFfZU8Ubxls7H2XnfWT121jgwiG+WP1z5kyfVDsH5V4qA==} + '@aws-sdk/core@3.977.8': + resolution: {integrity: sha512-7+Kcrkvrk9lM/m7jRhHpT4jCdvzGHsuaSRbF8TdzzkY1mRzp/Ogwf9c7H29k4gGhey0BBWhCWr16+t0J61gwmg==} engines: {node: '>=20.0.0'} - deprecated: |- - Deprecated due to Document number parsing bug in JSON, see - https://github.com/aws/aws-sdk-js-v3/issues/8246. Newer version available. - '@aws-sdk/credential-provider-env@3.972.64': - resolution: {integrity: sha512-14kkR5aj1c7D+cYCrEcG2W3xw87wMYAEUeB/tMiQ2j0RVKzzdewd4mJw1+Q0JVLr4IFU1JHGDCyj0WqLrtIixg==} + '@aws-sdk/credential-provider-env@3.972.69': + resolution: {integrity: sha512-AreCFzcB4kH2HF9031Ot0jSJr3KXvRg6e8uDeub20JEVdZU3Bv0sTq1plc7VsT3KiqutlzH7l0j50UcCWHUioA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-http@3.972.66': - resolution: {integrity: sha512-BrZxoXScBZ+nTOYy388zHkz1n5cS8C+uGFMozD4w9OKEWMq39Cu/9l/k385Hb54dtv0VIeh12f8h67o3xDNH9g==} + '@aws-sdk/credential-provider-http@3.972.71': + resolution: {integrity: sha512-A8ObcqVmDMnk4F9NozZ7JwmUu9Q4xyBJkmyq1C5U+wNM9ht9J7+EuuyabsLWXZnOoTqFaJuYBYTKf5CTipkEjA==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-ini@3.973.9': - resolution: {integrity: sha512-d/mMvS+sQjSWNA6+JCldK1YB/jQmtoWM8Izj10mrOZdRCeWNVb8IYQuuyHHKKKXcpGo5Pd0LIK6onHbLvlhuVQ==} + '@aws-sdk/credential-provider-ini@3.973.14': + resolution: {integrity: sha512-7c+Wti2LsERNWMfm7ySz3/6RPopFW3Nmn7s63Xpcq6R/tRuY5hpvkHA2xVgi5ukJbvok9l0IDtVEvqTtg+X7dw==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-login@3.972.71': - resolution: {integrity: sha512-l93922lXnTs5RjM3QrMCXSmXiEgLFLaQ0Lco9F3tJ08o0mzGdAj6m2nAXDuTMHoUuL0u7RKmrhm+Z8/7GCilyg==} + '@aws-sdk/credential-provider-login@3.972.76': + resolution: {integrity: sha512-LVixwOnEJfrrfKHeZjBA8pIMTZjNDq8ak8VpcoWUuCJDrSnBNU8POJksULMgvN089P0MXtQYH2Zs627/MK1K0g==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-node@3.972.75': - resolution: {integrity: sha512-sdFhR4E3HWZefGL6OsBhxqXdqtFvxGOh8VLfiu9yttPgVNcpEozEDPmrTYmXA3CIf6npUETVLveQPGQ7GBzVhg==} + '@aws-sdk/credential-provider-node@3.972.80': + resolution: {integrity: sha512-bE2qh8ww4iClO1jHsBXdOE8FUgzDbdxbyorNjSCoPSkQd51k3jODItuPZfuwcLHZqDXsH+bI4AMHhqtuyR7mSg==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-process@3.972.64': - resolution: {integrity: sha512-Q5noG5vfFo++bUaLGcjj8OHX5tmwa1O/5nDVMeaSSZgjzgvWbW6tgu/gSa+aENwcJXjoXDQh+8TRZR2zHds/aw==} + '@aws-sdk/credential-provider-process@3.972.69': + resolution: {integrity: sha512-9kpTNdZTrcqXTfhxM7fgl9Z68ek3Fu5oe3Yf+A/pJGibEqpgZxz2tSY7SinmyCIU2PJ+ygY4FPoBBnLpocMtrQ==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-sso@3.973.8': - resolution: {integrity: sha512-37okeZyRdVkGrU6nyKBPGqQvyl/7CEiMpUVOb0+BCNCIR0VAuBxNgjMb0mnsR1EXm8dqQFfQZOJ5YW/0sBfa1w==} + '@aws-sdk/credential-provider-sso@3.973.13': + resolution: {integrity: sha512-Oc81qauMPzUoTnAS2YKpNwY6sY/LUyQTEeaf6yP197WMxkEBQfcKLR1MFpD7+pNTubXnfkH6gwpji+Gc7iyD2Q==} engines: {node: '>=20.0.0'} - '@aws-sdk/credential-provider-web-identity@3.972.70': - resolution: {integrity: sha512-Ps/f9USafScb6CSQTRPNMzdKL5x5XRwDIRgFvnuFWfClGZe7/fI7iCFqXdxKjc9LBxP28E7iUgNloGgfgw406w==} + '@aws-sdk/credential-provider-web-identity@3.972.75': + resolution: {integrity: sha512-YPN6uoGDgjjjeVFZrcOeCJqmB6zpXoeeNgIjqe+DexJaWqdjVfCCe+VAZwli9Z2h8KhFW8oxkO39emQ1tyz/Mw==} engines: {node: '>=20.0.0'} - '@aws-sdk/eventstream-handler-node@3.972.31': - resolution: {integrity: sha512-/BRzvkp46mF6eXBL/l9WKPQQfifLlUPaWli6n9/T/WDLUg8he7TCyuNFnk6RvHP5j5W/kMj5Gxw7W778LJaXDA==} + '@aws-sdk/eventstream-handler-node@3.972.33': + resolution: {integrity: sha512-1Dd5WyEE2Kb3HvY44u7Ob16ST2W6iutOqsQ8Y2hUmsL2mAH/STlGS1dS9h3IOE6L7Ld3AR2HzKJ6XeCMOw8Peg==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-eventstream@3.972.26': - resolution: {integrity: sha512-2eIvouTZoxPu5ClHY6ij13De1yhY8Rmllt0dlGeBNXX3wmR7fU1pvMCGb50fKm1GxcuntWK0t1T0cMjTyDoUQA==} + '@aws-sdk/middleware-eventstream@3.972.28': + resolution: {integrity: sha512-Z1EDXnS01P7H5jVrUx+/dBqV0m7dta7bSxLclkOuDuS93pNNQm0IcT4YLUbuvWKPYNxbI8aTG0p5Br30GSKDgA==} engines: {node: '>=20.0.0'} - '@aws-sdk/middleware-websocket@3.972.46': - resolution: {integrity: sha512-4ZWFqfiqSTda+SsMUihhype6L0sHWKnLouWj2WYRrF5oC+3G+yUatBILLiesELF+7AP+kHMhEpD2UGnk2vOPMw==} + '@aws-sdk/middleware-websocket@3.972.51': + resolution: {integrity: sha512-jdgP3jR5Q96j1jjZ98GGwpGg1CBNFIO2YE+vXg8cg8PvNY4NvgQNYJsqDaRX2PYv5gSUX/+C0D58Fhspj9ELMQ==} engines: {node: '>= 14.0.0'} - '@aws-sdk/nested-clients@3.997.38': - resolution: {integrity: sha512-jQDs+nxnmgo4+WPOmY373HIC8jx4KyYYMYDI74FWrzX3Ba9fYsV0dSA+7PNYNkhRbbRCRLre83tQ31F1ACCHkA==} + '@aws-sdk/nested-clients@3.997.43': + resolution: {integrity: sha512-bit+VpqWNyi3wHxFoTsTliNXimCSL2r2OeDTm7ZrG+YsTZ2D7ofDJ6r/t9PVBn80i6/v0X2h9Tgw6QP2MAKfPw==} engines: {node: '>=20.0.0'} - '@aws-sdk/signature-v4-multi-region@3.996.43': - resolution: {integrity: sha512-lKekx8bLBXSv4O+cslk9Zfnw2XKSkWBs3uWL5QGhH2ZAQfNS7FE0vcSSN2vD/AhxX54ZTywWxR4STThoeOXlBA==} + '@aws-sdk/signature-v4-multi-region@3.996.45': + resolution: {integrity: sha512-bBuyztukzXq6plzFGHAWiQt0QXo+HL8b8lX5cFTzkez/74PtS1c0qPFCIVuHkyoT+miH2qOjAcm1/yoro2ESPA==} engines: {node: '>=20.0.0'} '@aws-sdk/token-providers@3.1048.0': resolution: {integrity: sha512-k0y/GcuesuSfWyUM0WamrGyeZmltRYaPbHO82UDA6mZ/doB+FOHKutikPAtSXMn/hDz970cF+iRuuiYO9VEbAA==} engines: {node: '>=20.0.0'} - '@aws-sdk/token-providers@3.1098.0': - resolution: {integrity: sha512-6cFAviffeqYGjrXn4FqGbWcTxB3nbpBpQXUm6MvnrWZThJaVBTHHnespHgSUh4yVLfzhipSh9H/XjzkHQd9P4g==} + '@aws-sdk/token-providers@3.1111.0': + resolution: {integrity: sha512-JfljgoVtl+s3Qy21n9a7Z48uCQaOXcN74KJ3TEQfPoB293GrXFSt6HSQJF1sTZ8c/5QedEvd3NjJQMO4u9qa5A==} engines: {node: '>=20.0.0'} - '@aws-sdk/types@3.974.2': - resolution: {integrity: sha512-3W6IUtSxFbH6X7Wb7DzGCV5QiFQsd0g8bOfntpmDxQlzBoKWUMBu/JPQR0DwkE+Hpnxd6db1tXbOwdeHddG6cA==} + '@aws-sdk/types@3.974.4': + resolution: {integrity: sha512-dSFDNG00MEz0/xl5gxL62giLd1iYyJsTxZ1I1DOj6lC+bbgLB4TRsYClJg3b62dhXT1uATzsTNXPnC+33EJV3A==} engines: {node: '>=20.0.0'} - '@aws-sdk/util-locate-window@3.965.8': - resolution: {integrity: sha512-uUbMs1cBZPafD0ohUj6EwNf0fPZ534NvBxHox4hjX+0Rxq5paSYUem7+hi833pYrzrcnBATKIYpR02MDXT5M9g==} + '@aws-sdk/util-locate-window@3.965.10': + resolution: {integrity: sha512-ycwH6Zd2GhuSqdXX9ihbCjeGTB6xOJs+O3+Jb8/zDG9978XU80qs75dfkPJRMNKe5MvBZPuNeFpd4JZKPoUF4g==} engines: {node: '>=20.0.0'} - '@aws-sdk/xml-builder@3.972.37': - resolution: {integrity: sha512-zKq4HQum8JwDyEuyfuI4bbiAcU0KxP6qy+9PR/IsR92IyE/DaBAikzAS50tjxip4bqIIANpCcG+Yyj6CVhXupg==} + '@aws-sdk/xml-builder@3.972.39': + resolution: {integrity: sha512-FTti8DS5MMWXNUWiRwXAJeYS+0GHHiMy0+7XOhcwk63ILHmfS2UFy2z/HNpZCSOJJ3P3dnWY6hfYNW3DF0nXUA==} engines: {node: '>=20.0.0'} '@aws/lambda-invoke-store@0.3.0': @@ -231,22 +228,34 @@ packages: resolution: {integrity: sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==} engines: {node: '>=6.9.0'} - '@earendil-works/pi-agent-core@0.83.0': - resolution: {integrity: sha512-RorGp9OH5l3ElpuC5a5ZQ2eWcchZGXflXRzVGkV99y3y6tT+LLNyxoYIdVKvTKWEObwhExeQbTH0fI2tE4iX4g==} + '@earendil-works/pi-agent-core@0.84.2': + resolution: {integrity: sha512-8Pn3wSCxj0cfo5I6jxQYVB/3uuQRmHhAlEclyjqpOuMEdQMIODHizRogv56FLdbU+dTiGnybeHQ2N+sV1/L2YA==} engines: {node: '>=22.19.0'} - '@earendil-works/pi-ai@0.83.0': - resolution: {integrity: sha512-m3IZD4g3er0V8TC9+Vpgw/sjTKqcJlkcIBy/JvsgRubuuik3tAVzyugUg4rVrShIkkOT69mEd34NEqKUIsl6JQ==} + '@earendil-works/pi-ai@0.84.2': + resolution: {integrity: sha512-6MzsrYIYNVlE7SfpbL2yYb67Qo58p/7Q+xWG1RZvoX1P80aRCHSod2/13aFpxkow1lPO2LEh3c495J0Gwmyjig==} engines: {node: '>=22.19.0'} hasBin: true - '@earendil-works/pi-coding-agent@0.83.0': - resolution: {integrity: sha512-uYhF+FsZxogoSX/AxBcUdiY+ZklubwaXyAoEGA2eQwsHcyEAhUYIKh/WLXe/a8+k8eTCmxb+ZN2Zo9mzQtzbWw==} + '@earendil-works/pi-client@0.84.2': + resolution: {integrity: sha512-/RFSPhD/bZbpOp1oJj+UneSUFSgZhWxzcSENUY+8+8xhoBrWXMYI2t77XNx4Yf+c8YK2qTHquForhNcelYpXvg==} + engines: {node: '>=22.19.0'} + + '@earendil-works/pi-coding-agent@0.84.2': + resolution: {integrity: sha512-l4E+B7hgXKWddRo8bC/eSue2aWZjEgJ9xIpf5p0Og+lq8a2TArCwJ0HCoCPCgaBP/tN4zbYH/wOwvx9pJpeLCA==} engines: {node: '>=22.19.0'} hasBin: true - '@earendil-works/pi-tui@0.83.0': - resolution: {integrity: sha512-IoYrb0rORjELmEpNtoCA/U8je3KopMkRAVJRdSzvXRvgb+Huo1gNh8Q5CSZvNOiYtDxJdj2tYZZHZ4B3+IN3hA==} + '@earendil-works/pi-protocol@0.84.2': + resolution: {integrity: sha512-jbBh03fkeckWEroHpcZBr4w5/Ibat8WwdXFlXHivYQImrQNFtLpDeL0t1cku4hmK0q3pceIRQHkw4fwbM4YILQ==} + engines: {node: '>=22.19.0'} + + '@earendil-works/pi-telemetry@0.84.2': + resolution: {integrity: sha512-wg5caea7uIv1BHRBm2Y116RvFG4oSAiP5qk9tA2463PDGIr4K8M1Ceyyg5DOpF/shUUl0gk826yQJAeAcHYB9g==} + engines: {node: '>=22.19.0'} + + '@earendil-works/pi-tui@0.84.2': + resolution: {integrity: sha512-ds2TLihOnM5sLJB3VpXV6y0uR5efVuHf4MN7yDpsty6hA2DUO/EDVzjp/0od0G2JslzVLMjT8T8zavtxVb+qbg==} engines: {node: '>=22.19.0'} '@google/genai@1.52.0': @@ -258,6 +267,12 @@ packages: '@modelcontextprotocol/sdk': optional: true + '@hono/node-server@2.1.0': + resolution: {integrity: sha512-XovyyCCnBzW+zKu+z/zq8hwNs4KOR5rEMAOxo2f40Q5xoOI37IMm6MIg2COOUtUApo0i6850MTBKH2u4QLGIqg==} + engines: {node: '>=20'} + peerDependencies: + hono: ^4 + '@mariozechner/clipboard-darwin-arm64@0.3.9': resolution: {integrity: sha512-BfgV7vCEWZwJwZJw03r6bP5+tf0iI/ANuQYCxi9RNn7FrWB3yzGuMKCrNLRl6V761vXRdL8+OqZ0wd4TqlsNOQ==} engines: {node: '>= 10'} @@ -326,22 +341,20 @@ packages: resolution: {integrity: sha512-ABnA53mdfkGZwOFUdZNv2S0CWGO/EIuPj8Vv9xmBFmSYg/qFc7ihO6q5FcQjvoE67kZpWkEc4AhD6B/os04yuA==} engines: {node: '>= 10'} - '@mistralai/mistralai@2.2.6': - resolution: {integrity: sha512-W8pX7zHxjJvMIpw8JMxeJEleapXX0Q9NPszdNzqkM3MIEoIGPObdodujj+WHteXEvGfaP/AMwlNyRfEzSY6dQQ==} + '@modelcontextprotocol/sdk@1.30.0': + resolution: {integrity: sha512-xKd8OIzlqNzcqcNumGAa6g+PW2kjD5vrpcKOnfldAUPP3j7lnqMPwlTXQm8gF+UwH72z0lqaRbjr9hqGz0eITA==} + engines: {node: '>=18'} peerDependencies: - '@opentelemetry/api': ^1.9.0 + '@cfworker/json-schema': ^4.1.1 + zod: ^3.25 || ^4.0 peerDependenciesMeta: - '@opentelemetry/api': + '@cfworker/json-schema': optional: true '@opentelemetry/api@1.9.0': resolution: {integrity: sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==} engines: {node: '>=8.0.0'} - '@opentelemetry/semantic-conventions@1.43.0': - resolution: {integrity: sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==} - engines: {node: '>=14'} - '@pondwader/socks5-server@1.0.10': resolution: {integrity: sha512-bQY06wzzR8D2+vVCUoBsr5QS2U6UgPUQRmErNwtsuI6vLcyRKkafjkr3KxbtGFf9aBBIV2mcvlsKD1UYaIV+sg==} @@ -375,36 +388,36 @@ packages: '@silvia-odwyer/photon-node@0.3.4': resolution: {integrity: sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA==} - '@smithy/core@3.31.1': - resolution: {integrity: sha512-CyogUINxvi7C7LDsh8Syo6hVJOT9ckz4rG8dRZfTJ8r91HkMY59PnNooaj7WcHyxEkxPfBAmbgztZU+xTo76lg==} + '@smithy/core@3.33.3': + resolution: {integrity: sha512-CsOeKq/9kA3y6VJHt+/+VTCtBaxJ4OTFpgrjIUhPpDIKxBci1k2bJaQASF2h/ELWrulGp+t97DZ0mevfAD8idg==} engines: {node: '>=18.0.0'} - '@smithy/credential-provider-imds@4.4.16': - resolution: {integrity: sha512-QfuLWAkLzptffFW980AFeHZFdqds2B64rpEd3uJ6lgs3xVn9QegGMUgUcj+4d7dRrAsya3r58ZKpku97WcFb4w==} + '@smithy/credential-provider-imds@4.5.2': + resolution: {integrity: sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==} engines: {node: '>=18.0.0'} - '@smithy/fetch-http-handler@5.6.13': - resolution: {integrity: sha512-4fW86pEUOMbrD5nkbyl/tTvPHHWJFbuB2odl6ps9lWfHoXf9HWh3Q/Smh59qH1g7+c/BSZghX6bbUk4gsiMs8A==} + '@smithy/fetch-http-handler@5.7.2': + resolution: {integrity: sha512-nZyWTmSpJEXl6VtWVMBJve/7x12DZu6sIX1z1a+ZMaHlQQRs9Zpu6NbTe/gmxYXVRpkjxyDYpZ5gx2IM6f/Wkw==} engines: {node: '>=18.0.0'} '@smithy/is-array-buffer@2.2.0': resolution: {integrity: sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==} engines: {node: '>=14.0.0'} - '@smithy/node-http-handler@4.7.3': - resolution: {integrity: sha512-/jPhevcTFPMVl6KNjbaI47iOg1zxC7IsnX4PQDGVZKMFceOXtB8IEYaB7a9VvkP/3oC60WzTeKocvSI7vLT0vA==} + '@smithy/node-http-handler@4.11.2': + resolution: {integrity: sha512-avwAh9HM3h2lcfjvP3zYIZGf+XVgLQ91wOJ2qoFbNpW1UZeZb33aGlhTZvtkANHfcGhJroRY64525OjfgOg30g==} engines: {node: '>=18.0.0'} - '@smithy/node-http-handler@4.9.13': - resolution: {integrity: sha512-Nmd/Nl35zfYrd+a6OO2cDJb3GPh9bgTjIUhcM+JFfjpp8/osCgboDV5nCT1I01Pv6R13eSKDKLSoVa5ZB6Zsfw==} + '@smithy/node-http-handler@4.7.3': + resolution: {integrity: sha512-/jPhevcTFPMVl6KNjbaI47iOg1zxC7IsnX4PQDGVZKMFceOXtB8IEYaB7a9VvkP/3oC60WzTeKocvSI7vLT0vA==} engines: {node: '>=18.0.0'} - '@smithy/signature-v4@5.6.12': - resolution: {integrity: sha512-I6KLtq3H0qqSuV9vLglfi8puHqzygzWHOnI4z/Rdoo+q50vvo18vBRdPAvvEtcaKROz7Zn6qnPa14kRfPH6PcQ==} + '@smithy/signature-v4@5.7.3': + resolution: {integrity: sha512-7ImGm+FkHRLcBaRttIAMZ6bzJZWb2cJGoYjq46F2UjycujWzrL9GEN9h4w7eQyXJYnltrUhxbbieBAIRrdqpow==} engines: {node: '>=18.0.0'} - '@smithy/types@4.16.1': - resolution: {integrity: sha512-0JFs3V2y2M9tKW5na/qxe69Zv+uxLMO7QBbhxF/FHu/Gp2NFZAAL9tWl9PU02xxo07pb3G9FTyjNc6D5uZrJIg==} + '@smithy/types@4.17.2': + resolution: {integrity: sha512-FOKpVZob9MPTn2znRzGrnsMHv7BOsKVw3XiP/cOyYLDVZ9qKp4nifIiSCuUU/fIj5Vu0UOAxCFr+qRAtG0NUkA==} engines: {node: '>=18.0.0'} '@smithy/util-buffer-from@2.2.0': @@ -424,10 +437,20 @@ packages: '@types/retry@0.12.0': resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==} + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + agent-base@7.1.4: resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} engines: {node: '>= 14'} + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + balanced-match@4.0.4: resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} engines: {node: 18 || 20 || >=22} @@ -438,6 +461,10 @@ packages: bignumber.js@9.3.1: resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} + body-parser@2.3.0: + resolution: {integrity: sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==} + engines: {node: '>=18'} + boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -451,6 +478,18 @@ packages: buffer-equal-constant-time@1.0.1: resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + chalk@5.6.2: resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} @@ -459,6 +498,30 @@ packages: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} + content-disposition@1.1.0: + resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==} + engines: {node: '>=18'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + + content-type@2.0.0: + resolution: {integrity: sha512-j/O/d7GcZCyNl7/hwZAb606rzqkyvaDctLmckbxLzHvFBzTJHuGEdodATcP3yIRoDrLHkIATJuvzbFlp/ki2cQ==} + engines: {node: '>=18'} + + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + cors@2.8.6: + resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} + engines: {node: '>= 0.10'} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -483,6 +546,10 @@ packages: supports-color: optional: true + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + diff@8.0.4: resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==} engines: {node: '>=0.3.1'} @@ -500,26 +567,95 @@ packages: domutils@3.2.2: resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==} + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + ecdsa-sig-formatter@1.0.11: resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==} + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + + encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + eventsource-parser@3.1.1: + resolution: {integrity: sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==} + engines: {node: '>=18.0.0'} + + eventsource@3.0.7: + resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==} + engines: {node: '>=18.0.0'} + + express-rate-limit@8.6.2: + resolution: {integrity: sha512-YH4ru+eOJxQABscKFfRCy9R7x9QFGdezclVMwwgFFndzS2Xnm0uo6B0ABZsLhcpeptGv2qvuJVWlQr9gQZoC3A==} + engines: {node: '>= 16'} + peerDependencies: + express: '>= 4.11' + + express@5.2.1: + resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==} + engines: {node: '>= 18'} + extend@3.0.2: resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==} + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-uri@3.1.5: + resolution: {integrity: sha512-gHwA1O9LDIcKunMKhObS/HimwtehO1nPUECKAu5TpKgaO19fcWEl4bliWe1jWxVFvIXztJjjQ4L8XQ1EU9f7Jw==} + fetch-blob@3.2.0: resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} engines: {node: ^12.20 || >= 14.13} + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + formdata-polyfill@4.0.10: resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} engines: {node: '>=12.20.0'} - gaxios@7.3.0: - resolution: {integrity: sha512-RB5vLV+vvQeoFPCX4QMK6/hjVkbIamPp1QSUD0CiZcnj12qbpiL+pLbYtgD+oZkWl0tl9z+o2Utp+MpM3QRhBA==} + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + gaxios@7.3.1: + resolution: {integrity: sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==} engines: {node: '>=18'} gcp-metadata@8.1.2: @@ -530,6 +666,14 @@ packages: resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==} engines: {node: '>=18'} + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + glob@13.0.6: resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==} engines: {node: 18 || 20 || >=22} @@ -542,9 +686,29 @@ packages: resolution: {integrity: sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==} engines: {node: '>=14'} + google-logging-utils@1.2.0: + resolution: {integrity: sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==} + engines: {node: '>=18'} + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + grok-mermaid@0.2.2: + resolution: {integrity: sha512-XcJEP5dDC8liHBh52mlLjU18fNvu1ckFsu0QpIG3+APZ270fsj9wxpiA6cOURmbUEuoMVgjbC2+UYgTdCqqgzA==} + engines: {node: '>=18'} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + he@1.2.0: resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true @@ -552,10 +716,18 @@ packages: highlight.js@10.7.3: resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==} + hono@4.13.2: + resolution: {integrity: sha512-JydRilDRkYBQMt9qR9U92mXxmbGqsqSn/IKOrh4e7/gEbn+0zSr8igTu0obwJoNGN4sez28DIql7FBHWydoJpA==} + engines: {node: '>=16.9.0'} + hosted-git-info@9.0.3: resolution: {integrity: sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==} engines: {node: ^20.17.0 || >=22.9.0} + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + http-proxy-agent@7.0.2: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} @@ -564,10 +736,28 @@ packages: resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} engines: {node: '>= 14'} + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + ignore@7.0.5: resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==} engines: {node: '>= 4'} + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + ip-address@10.5.0: + resolution: {integrity: sha512-R5SnVLJmgYYvf2F2ZgwSBnelz5G4q5AxIC277GDfUaNbrZKNANcBC7RHqYYePlszf4kBolVkJauG0ZjHHFh55g==} + engines: {node: '>= 12'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} @@ -575,6 +765,9 @@ packages: resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} hasBin: true + jose@6.2.8: + resolution: {integrity: sha512-Bsdjwm3Qsd/P0jR+BHDe3LytDfY7WBq2HmCCLIwuVRHMuEC9ae7/R474GIUdF1NgCyZjzVo/A9DOiOBtXq8ZoQ==} + json-bigint@1.0.0: resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==} @@ -582,6 +775,12 @@ packages: resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==} engines: {node: '>=16'} + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + json-schema-typed@8.0.2: + resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==} + jwa@2.0.1: resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==} @@ -600,10 +799,34 @@ packages: engines: {node: '>= 20'} hasBin: true + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + media-typer@1.1.1: + resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + minimatch@10.2.5: resolution: {integrity: sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==} engines: {node: 18 || 20 || >=22} + minimatch@10.2.6: + resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} + engines: {node: 18 || 20 || >=22} + minipass@7.1.3: resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} engines: {node: '>=16 || 14 >=14.17'} @@ -611,6 +834,10 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + negotiator@1.0.0: + resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} + engines: {node: '>= 0.6'} + node-addon-api@8.9.0: resolution: {integrity: sha512-ekZMeaaIzSQTSpr7X2X3iJM7lTzgnx8ahAG9pJfT/7+14mlEM8ZYQ9cgCDvSSRbReFK0oHli3WrZdCiRsgAT9Q==} engines: {node: ^18 || ^20 || >= 21} @@ -642,9 +869,23 @@ packages: nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} - openai@6.26.0: - resolution: {integrity: sha512-zd23dbWTjiJ6sSAX6s0HrCZi41JwTA1bQVs0wLQPZ2/5o2gxOJA5wh7yOAUgwYybfhDXyhwlpeQf7Mlgx8EOCA==} - hasBin: true + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + openai@6.40.0: + resolution: {integrity: sha512-MWtTjd/gQt4jpbji61NTgFWJLoY/PdRJ6wG9/ZDRMYNMlBKrCrSlkLI+KgHP1vR1qT6LKSAyAqIxno6lcK9JiA==} peerDependencies: ws: ^8.18.0 zod: ^3.25 || ^4.0 @@ -658,6 +899,10 @@ packages: resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==} engines: {node: '>=8'} + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + partial-json@0.1.7: resolution: {integrity: sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==} @@ -669,6 +914,13 @@ packages: resolution: {integrity: sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==} engines: {node: 18 || 20 || >=22} + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + + pkce-challenge@5.0.1: + resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==} + engines: {node: '>=16.20.0'} + proper-lockfile@4.1.2: resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} @@ -676,6 +928,26 @@ packages: resolution: {integrity: sha512-/FPD0nUc9jH6rfFjji9IBqOz4pcSE3CsT1m7Ep6Mdb0LxSUMj8hgl6GomOvZzpNpAqqGaXA0P3VSrZLFzIhQrw==} engines: {node: '>=12.0.0'} + proxy-addr@2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + + qs@6.15.3: + resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==} + engines: {node: '>=0.6'} + + range-parser@1.3.0: + resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + retry@0.12.0: resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} engines: {node: '>= 4'} @@ -684,14 +956,32 @@ packages: resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==} engines: {node: '>= 4'} + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + semver@7.8.0: resolution: {integrity: sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==} engines: {node: '>=10'} hasBin: true + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -700,9 +990,33 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + side-channel-list@1.0.1: + resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.1: + resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} + engines: {node: '>= 0.4'} + signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + tree-sitter-bash@0.25.1: resolution: {integrity: sha512-7hMytuYIMoXOq24yRulgIxthE9YmggZIOHCyPTTuJcu6EU54tYD+4G39cUb28kxC6jMf/AbPfWGLQtgPTdh3xw==} peerDependencies: @@ -717,6 +1031,10 @@ packages: tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + typebox@1.1.38: resolution: {integrity: sha512-pZ0aQPmMmXoUvSbeuWf/Hzsc+avNw/Zd6VeE8CFgkVGWyuHPJvqeJJDeJqLve+K70LvjYIoleGcoJHPT17cWoA==} @@ -731,10 +1049,18 @@ packages: undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - undici@8.5.0: - resolution: {integrity: sha512-xamtWoB1EshgjpmlXd7GGm2VfdDtw1+rD8uhry8pSNW3If6S8E0m2T2+orSKeZXEn/aPJMviCpDBA65WJt8zhg==} + undici@8.9.0: + resolution: {integrity: sha512-aWZpUj7XoGonMClx4gdDRfgBjqeA+F473aDmROQQbM9n6PRfK/u1q/a0X4wMTgcHfT8H6fpbt98PFuDUwFg2YA==} engines: {node: '>=22.19.0'} + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + vscode-jsonrpc@9.0.1: resolution: {integrity: sha512-rfuA6T75H6m5EkbhtEPzre9pT0HPcDI2MMy4+nPFIBks5J8JBAUHD4tRYSgaBOijIEC7SRkC1kKyXTLqbmh9jw==} engines: {node: '>=14.0.0'} @@ -751,6 +1077,9 @@ packages: engines: {node: '>= 8'} hasBin: true + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + ws@8.21.1: resolution: {integrity: sha512-+0NTnW77fFN/DjQi6k/Sq/Yvk4Sgajw7urW8V+asjXnRgDs9gyGkdb7EzgfhA4goXsRIZKE28fzIXBHEzhuiWw==} engines: {node: '>=10.0.0'} @@ -763,6 +1092,18 @@ packages: utf-8-validate: optional: true + ws@8.21.3: + resolution: {integrity: sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + yaml@2.9.0: resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==} engines: {node: '>= 14.6'} @@ -776,6 +1117,9 @@ packages: zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} + zod@4.4.3: + resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} + snapshots: '@anthropic-ai/sandbox-runtime@0.0.66': @@ -791,20 +1135,26 @@ snapshots: optionalDependencies: zod: 3.25.76 + '@anthropic-ai/sdk@0.91.1(zod@4.4.3)': + dependencies: + json-schema-to-ts: 3.1.1 + optionalDependencies: + zod: 4.4.3 + '@aws-crypto/sha256-browser@5.2.0': dependencies: '@aws-crypto/sha256-js': 5.2.0 '@aws-crypto/supports-web-crypto': 5.2.0 '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.974.2 - '@aws-sdk/util-locate-window': 3.965.8 + '@aws-sdk/types': 3.974.4 + '@aws-sdk/util-locate-window': 3.965.10 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 '@aws-crypto/sha256-js@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.974.2 + '@aws-sdk/types': 3.974.4 tslib: 2.8.1 '@aws-crypto/supports-web-crypto@5.2.0': @@ -813,7 +1163,7 @@ snapshots: '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.974.2 + '@aws-sdk/types': 3.974.4 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -821,195 +1171,196 @@ snapshots: dependencies: '@aws-crypto/sha256-browser': 5.2.0 '@aws-crypto/sha256-js': 5.2.0 - '@aws-sdk/core': 3.977.3 - '@aws-sdk/credential-provider-node': 3.972.75 - '@aws-sdk/eventstream-handler-node': 3.972.31 - '@aws-sdk/middleware-eventstream': 3.972.26 - '@aws-sdk/middleware-websocket': 3.972.46 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/credential-provider-node': 3.972.80 + '@aws-sdk/eventstream-handler-node': 3.972.33 + '@aws-sdk/middleware-eventstream': 3.972.28 + '@aws-sdk/middleware-websocket': 3.972.51 '@aws-sdk/token-providers': 3.1048.0 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/fetch-http-handler': 5.6.13 - '@smithy/node-http-handler': 4.9.13 - '@smithy/types': 4.16.1 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/fetch-http-handler': 5.7.2 + '@smithy/node-http-handler': 4.11.2 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/core@3.977.3': + '@aws-sdk/core@3.977.8': dependencies: - '@aws-sdk/types': 3.974.2 - '@aws-sdk/xml-builder': 3.972.37 + '@aws-sdk/types': 3.974.4 + '@aws-sdk/xml-builder': 3.972.39 '@aws/lambda-invoke-store': 0.3.0 - '@smithy/core': 3.31.1 - '@smithy/signature-v4': 5.6.12 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/signature-v4': 5.7.3 + '@smithy/types': 4.17.2 bowser: 2.14.1 tslib: 2.8.1 - '@aws-sdk/credential-provider-env@3.972.64': + '@aws-sdk/credential-provider-env@3.972.69': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-http@3.972.66': + '@aws-sdk/credential-provider-http@3.972.71': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/fetch-http-handler': 5.6.13 - '@smithy/node-http-handler': 4.9.13 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/fetch-http-handler': 5.7.2 + '@smithy/node-http-handler': 4.11.2 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-ini@3.973.9': - dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/credential-provider-env': 3.972.64 - '@aws-sdk/credential-provider-http': 3.972.66 - '@aws-sdk/credential-provider-login': 3.972.71 - '@aws-sdk/credential-provider-process': 3.972.64 - '@aws-sdk/credential-provider-sso': 3.973.8 - '@aws-sdk/credential-provider-web-identity': 3.972.70 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/credential-provider-imds': 4.4.16 - '@smithy/types': 4.16.1 + '@aws-sdk/credential-provider-ini@3.973.14': + dependencies: + '@aws-sdk/core': 3.977.8 + '@aws-sdk/credential-provider-env': 3.972.69 + '@aws-sdk/credential-provider-http': 3.972.71 + '@aws-sdk/credential-provider-login': 3.972.76 + '@aws-sdk/credential-provider-process': 3.972.69 + '@aws-sdk/credential-provider-sso': 3.973.13 + '@aws-sdk/credential-provider-web-identity': 3.972.75 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-login@3.972.71': + '@aws-sdk/credential-provider-login@3.972.76': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-node@3.972.75': - dependencies: - '@aws-sdk/credential-provider-env': 3.972.64 - '@aws-sdk/credential-provider-http': 3.972.66 - '@aws-sdk/credential-provider-ini': 3.973.9 - '@aws-sdk/credential-provider-process': 3.972.64 - '@aws-sdk/credential-provider-sso': 3.973.8 - '@aws-sdk/credential-provider-web-identity': 3.972.70 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/credential-provider-imds': 4.4.16 - '@smithy/types': 4.16.1 + '@aws-sdk/credential-provider-node@3.972.80': + dependencies: + '@aws-sdk/credential-provider-env': 3.972.69 + '@aws-sdk/credential-provider-http': 3.972.71 + '@aws-sdk/credential-provider-ini': 3.973.14 + '@aws-sdk/credential-provider-process': 3.972.69 + '@aws-sdk/credential-provider-sso': 3.973.13 + '@aws-sdk/credential-provider-web-identity': 3.972.75 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/credential-provider-imds': 4.5.2 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-process@3.972.64': + '@aws-sdk/credential-provider-process@3.972.69': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-sso@3.973.8': + '@aws-sdk/credential-provider-sso@3.973.13': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/token-providers': 3.1098.0 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/token-providers': 3.1111.0 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/credential-provider-web-identity@3.972.70': + '@aws-sdk/credential-provider-web-identity@3.972.75': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/eventstream-handler-node@3.972.31': + '@aws-sdk/eventstream-handler-node@3.972.33': dependencies: - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/middleware-eventstream@3.972.26': + '@aws-sdk/middleware-eventstream@3.972.28': dependencies: - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/middleware-websocket@3.972.46': + '@aws-sdk/middleware-websocket@3.972.51': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/fetch-http-handler': 5.6.13 - '@smithy/signature-v4': 5.6.12 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/fetch-http-handler': 5.7.2 + '@smithy/signature-v4': 5.7.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/nested-clients@3.997.38': + '@aws-sdk/nested-clients@3.997.43': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/signature-v4-multi-region': 3.996.43 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/fetch-http-handler': 5.6.13 - '@smithy/node-http-handler': 4.9.13 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/signature-v4-multi-region': 3.996.45 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/fetch-http-handler': 5.7.2 + '@smithy/node-http-handler': 4.11.2 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/signature-v4-multi-region@3.996.43': + '@aws-sdk/signature-v4-multi-region@3.996.45': dependencies: - '@aws-sdk/types': 3.974.2 - '@smithy/signature-v4': 5.6.12 - '@smithy/types': 4.16.1 + '@aws-sdk/types': 3.974.4 + '@smithy/signature-v4': 5.7.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 '@aws-sdk/token-providers@3.1048.0': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/token-providers@3.1098.0': + '@aws-sdk/token-providers@3.1111.0': dependencies: - '@aws-sdk/core': 3.977.3 - '@aws-sdk/nested-clients': 3.997.38 - '@aws-sdk/types': 3.974.2 - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@aws-sdk/core': 3.977.8 + '@aws-sdk/nested-clients': 3.997.43 + '@aws-sdk/types': 3.974.4 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/types@3.974.2': + '@aws-sdk/types@3.974.4': dependencies: - '@smithy/types': 4.16.1 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@aws-sdk/util-locate-window@3.965.8': + '@aws-sdk/util-locate-window@3.965.10': dependencies: tslib: 2.8.1 - '@aws-sdk/xml-builder@3.972.37': + '@aws-sdk/xml-builder@3.972.39': dependencies: - '@smithy/types': 4.16.1 + '@smithy/types': 4.17.2 tslib: 2.8.1 '@aws/lambda-invoke-store@0.3.0': {} '@babel/runtime@7.29.7': {} - '@earendil-works/pi-agent-core@0.83.0(ws@8.21.1)(zod@3.25.76)': + '@earendil-works/pi-agent-core@0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3)': dependencies: - '@earendil-works/pi-ai': 0.83.0(ws@8.21.1)(zod@3.25.76) + '@earendil-works/pi-ai': 0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3) + '@earendil-works/pi-telemetry': 0.84.2 diff: 8.0.4 ignore: 7.0.5 typebox: 1.3.7 @@ -1022,17 +1373,54 @@ snapshots: - ws - zod - '@earendil-works/pi-ai@0.83.0(ws@8.21.1)(zod@3.25.76)': + '@earendil-works/pi-agent-core@0.84.2(ws@8.21.3)(zod@3.25.76)': + dependencies: + '@earendil-works/pi-ai': 0.84.2(ws@8.21.3)(zod@3.25.76) + '@earendil-works/pi-telemetry': 0.84.2 + diff: 8.0.4 + ignore: 7.0.5 + typebox: 1.3.7 + yaml: 2.9.0 + transitivePeerDependencies: + - '@modelcontextprotocol/sdk' + - bufferutil + - supports-color + - utf-8-validate + - ws + - zod + + '@earendil-works/pi-ai@0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3)': + dependencies: + '@anthropic-ai/sdk': 0.91.1(zod@4.4.3) + '@aws-sdk/client-bedrock-runtime': 3.1048.0 + '@earendil-works/pi-telemetry': 0.84.2 + '@google/genai': 1.52.0(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3)) + '@opentelemetry/api': 1.9.0 + '@smithy/node-http-handler': 4.7.3 + http-proxy-agent: 7.0.2 + https-proxy-agent: 7.0.6 + openai: 6.40.0(ws@8.21.1)(zod@4.4.3) + partial-json: 0.1.7 + typebox: 1.3.7 + transitivePeerDependencies: + - '@modelcontextprotocol/sdk' + - bufferutil + - supports-color + - utf-8-validate + - ws + - zod + + '@earendil-works/pi-ai@0.84.2(ws@8.21.3)(zod@3.25.76)': dependencies: '@anthropic-ai/sdk': 0.91.1(zod@3.25.76) '@aws-sdk/client-bedrock-runtime': 3.1048.0 + '@earendil-works/pi-telemetry': 0.84.2 '@google/genai': 1.52.0 - '@mistralai/mistralai': 2.2.6(@opentelemetry/api@1.9.0) '@opentelemetry/api': 1.9.0 '@smithy/node-http-handler': 4.7.3 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 - openai: 6.26.0(ws@8.21.1)(zod@3.25.76) + openai: 6.40.0(ws@8.21.3)(zod@3.25.76) partial-json: 0.1.7 typebox: 1.3.7 transitivePeerDependencies: @@ -1043,16 +1431,23 @@ snapshots: - ws - zod - '@earendil-works/pi-coding-agent@0.83.0(ws@8.21.1)(zod@3.25.76)': + '@earendil-works/pi-client@0.84.2': dependencies: - '@earendil-works/pi-agent-core': 0.83.0(ws@8.21.1)(zod@3.25.76) - '@earendil-works/pi-ai': 0.83.0(ws@8.21.1)(zod@3.25.76) - '@earendil-works/pi-tui': 0.83.0 + '@earendil-works/pi-protocol': 0.84.2 + + '@earendil-works/pi-coding-agent@0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3)': + dependencies: + '@earendil-works/pi-agent-core': 0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3) + '@earendil-works/pi-ai': 0.84.2(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))(ws@8.21.1)(zod@4.4.3) + '@earendil-works/pi-client': 0.84.2 + '@earendil-works/pi-protocol': 0.84.2 + '@earendil-works/pi-tui': 0.84.2 '@silvia-odwyer/photon-node': 0.3.4 chalk: 5.6.2 cross-spawn: 7.0.6 diff: 8.0.4 glob: 13.0.6 + grok-mermaid: 0.2.2 highlight.js: 10.7.3 hosted-git-info: 9.0.3 ignore: 7.0.5 @@ -1061,7 +1456,7 @@ snapshots: proper-lockfile: 4.1.2 semver: 7.8.0 typebox: 1.3.7 - undici: 8.5.0 + undici: 8.9.0 yaml: 2.9.0 optionalDependencies: '@mariozechner/clipboard': 0.3.9 @@ -1073,22 +1468,78 @@ snapshots: - ws - zod - '@earendil-works/pi-tui@0.83.0': + '@earendil-works/pi-coding-agent@0.84.2(ws@8.21.3)(zod@3.25.76)': + dependencies: + '@earendil-works/pi-agent-core': 0.84.2(ws@8.21.3)(zod@3.25.76) + '@earendil-works/pi-ai': 0.84.2(ws@8.21.3)(zod@3.25.76) + '@earendil-works/pi-client': 0.84.2 + '@earendil-works/pi-protocol': 0.84.2 + '@earendil-works/pi-tui': 0.84.2 + '@silvia-odwyer/photon-node': 0.3.4 + chalk: 5.6.2 + cross-spawn: 7.0.6 + diff: 8.0.4 + glob: 13.0.6 + grok-mermaid: 0.2.2 + highlight.js: 10.7.3 + hosted-git-info: 9.0.3 + ignore: 7.0.5 + jiti: 2.7.0 + minimatch: 10.2.5 + proper-lockfile: 4.1.2 + semver: 7.8.0 + typebox: 1.3.7 + undici: 8.9.0 + yaml: 2.9.0 + optionalDependencies: + '@mariozechner/clipboard': 0.3.9 + transitivePeerDependencies: + - '@modelcontextprotocol/sdk' + - bufferutil + - supports-color + - utf-8-validate + - ws + - zod + + '@earendil-works/pi-protocol@0.84.2': + dependencies: + typebox: 1.3.7 + + '@earendil-works/pi-telemetry@0.84.2': {} + + '@earendil-works/pi-tui@0.84.2': dependencies: get-east-asian-width: 1.6.0 marked: 18.0.5 '@google/genai@1.52.0': + dependencies: + google-auth-library: 10.9.1 + p-retry: 4.6.2 + protobufjs: 7.6.5 + ws: 8.21.3 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + + '@google/genai@1.52.0(@modelcontextprotocol/sdk@1.30.0(zod@4.4.3))': dependencies: google-auth-library: 10.9.1 p-retry: 4.6.2 protobufjs: 7.6.5 ws: 8.21.1 + optionalDependencies: + '@modelcontextprotocol/sdk': 1.30.0(zod@4.4.3) transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate + '@hono/node-server@2.1.0(hono@4.13.2)': + dependencies: + hono: 4.13.2 + '@mariozechner/clipboard-darwin-arm64@0.3.9': optional: true @@ -1133,22 +1584,30 @@ snapshots: '@mariozechner/clipboard-win32-x64-msvc': 0.3.9 optional: true - '@mistralai/mistralai@2.2.6(@opentelemetry/api@1.9.0)': + '@modelcontextprotocol/sdk@1.30.0(zod@4.4.3)': dependencies: - '@opentelemetry/semantic-conventions': 1.43.0 - ws: 8.21.1 - zod: 3.25.76 - zod-to-json-schema: 3.25.2(zod@3.25.76) - optionalDependencies: - '@opentelemetry/api': 1.9.0 + '@hono/node-server': 2.1.0(hono@4.13.2) + ajv: 8.20.0 + ajv-formats: 3.0.1 + content-type: 1.0.5 + cors: 2.8.6 + cross-spawn: 7.0.6 + eventsource: 3.0.7 + eventsource-parser: 3.1.1 + express: 5.2.1 + express-rate-limit: 8.6.2(express@5.2.1) + hono: 4.13.2 + jose: 6.2.8 + json-schema-typed: 8.0.2 + pkce-challenge: 5.0.1 + raw-body: 3.0.2 + zod: 4.4.3 + zod-to-json-schema: 3.25.2(zod@4.4.3) transitivePeerDependencies: - - bufferutil - - utf-8-validate + - supports-color '@opentelemetry/api@1.9.0': {} - '@opentelemetry/semantic-conventions@1.43.0': {} - '@pondwader/socks5-server@1.0.10': {} '@protobufjs/aspromise@1.1.2': {} @@ -1173,46 +1632,46 @@ snapshots: '@silvia-odwyer/photon-node@0.3.4': {} - '@smithy/core@3.31.1': + '@smithy/core@3.33.3': dependencies: - '@smithy/types': 4.16.1 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@smithy/credential-provider-imds@4.4.16': + '@smithy/credential-provider-imds@4.5.2': dependencies: - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@smithy/fetch-http-handler@5.6.13': + '@smithy/fetch-http-handler@5.7.2': dependencies: - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 '@smithy/is-array-buffer@2.2.0': dependencies: tslib: 2.8.1 - '@smithy/node-http-handler@4.7.3': + '@smithy/node-http-handler@4.11.2': dependencies: - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@smithy/node-http-handler@4.9.13': + '@smithy/node-http-handler@4.7.3': dependencies: - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@smithy/signature-v4@5.6.12': + '@smithy/signature-v4@5.7.3': dependencies: - '@smithy/core': 3.31.1 - '@smithy/types': 4.16.1 + '@smithy/core': 3.33.3 + '@smithy/types': 4.17.2 tslib: 2.8.1 - '@smithy/types@4.16.1': + '@smithy/types@4.17.2': dependencies: tslib: 2.8.1 @@ -1236,14 +1695,44 @@ snapshots: '@types/retry@0.12.0': {} + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.0.0 + agent-base@7.1.4: {} + ajv-formats@3.0.1: + dependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.5 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + balanced-match@4.0.4: {} base64-js@1.5.1: {} bignumber.js@9.3.1: {} + body-parser@2.3.0: + dependencies: + bytes: 3.1.2 + content-type: 2.0.0 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.1 + qs: 6.15.3 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + boolbase@1.0.0: {} bowser@2.14.1: {} @@ -1254,10 +1743,37 @@ snapshots: buffer-equal-constant-time@1.0.1: {} + bytes@3.1.2: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + chalk@5.6.2: {} commander@12.1.0: {} + content-disposition@1.1.0: {} + + content-type@1.0.5: {} + + content-type@2.0.0: {} + + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + + cors@2.8.6: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1280,6 +1796,8 @@ snapshots: dependencies: ms: 2.1.3 + depd@2.0.0: {} + diff@8.0.4: {} dom-serializer@2.0.0: @@ -1300,24 +1818,114 @@ snapshots: domelementtype: 2.3.0 domhandler: 5.0.3 + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + ecdsa-sig-formatter@1.0.11: dependencies: safe-buffer: 5.2.1 + ee-first@1.1.1: {} + + encodeurl@2.0.0: {} + entities@4.5.0: {} + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + + escape-html@1.0.3: {} + + etag@1.8.1: {} + + eventsource-parser@3.1.1: {} + + eventsource@3.0.7: + dependencies: + eventsource-parser: 3.1.1 + + express-rate-limit@8.6.2(express@5.2.1): + dependencies: + debug: 4.4.3 + express: 5.2.1 + ip-address: 10.5.0 + transitivePeerDependencies: + - supports-color + + express@5.2.1: + dependencies: + accepts: 2.0.0 + body-parser: 2.3.0 + content-disposition: 1.1.0 + content-type: 1.0.5 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1 + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.1 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.7 + qs: 6.15.3 + range-parser: 1.3.0 + router: 2.2.0 + send: 1.2.1 + serve-static: 2.2.1 + statuses: 2.0.2 + type-is: 2.1.0 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + extend@3.0.2: {} + fast-deep-equal@3.1.3: {} + + fast-uri@3.1.5: {} + fetch-blob@3.2.0: dependencies: node-domexception: 1.0.0 web-streams-polyfill: 3.3.3 + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + formdata-polyfill@4.0.10: dependencies: fetch-blob: 3.2.0 - gaxios@7.3.0: + forwarded@0.2.0: {} + + fresh@2.0.0: {} + + function-bind@1.1.2: {} + + gaxios@7.3.1: dependencies: extend: 3.0.2 https-proxy-agent: 7.0.6 @@ -1327,17 +1935,35 @@ snapshots: gcp-metadata@8.1.2: dependencies: - gaxios: 7.3.0 - google-logging-utils: 1.1.3 + gaxios: 7.3.1 + google-logging-utils: 1.2.0 json-bigint: 1.0.0 transitivePeerDependencies: - supports-color get-east-asian-width@1.6.0: {} + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.2 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.4 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + glob@13.0.6: dependencies: - minimatch: 10.2.5 + minimatch: 10.2.6 minipass: 7.1.3 path-scurry: 2.0.2 @@ -1345,7 +1971,7 @@ snapshots: dependencies: base64-js: 1.5.1 ecdsa-sig-formatter: 1.0.11 - gaxios: 7.3.0 + gaxios: 7.3.1 gcp-metadata: 8.1.2 google-logging-utils: 1.1.3 jws: 4.0.1 @@ -1354,16 +1980,38 @@ snapshots: google-logging-utils@1.1.3: {} + google-logging-utils@1.2.0: {} + + gopd@1.2.0: {} + graceful-fs@4.2.11: {} + grok-mermaid@0.2.2: {} + + has-symbols@1.1.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + he@1.2.0: {} highlight.js@10.7.3: {} + hono@4.13.2: {} + hosted-git-info@9.0.3: dependencies: lru-cache: 11.5.2 + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.4 @@ -1378,12 +2026,26 @@ snapshots: transitivePeerDependencies: - supports-color + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + ignore@7.0.5: {} + inherits@2.0.4: {} + + ip-address@10.5.0: {} + + ipaddr.js@1.9.1: {} + + is-promise@4.0.0: {} + isexe@2.0.0: {} jiti@2.7.0: {} + jose@6.2.8: {} + json-bigint@1.0.0: dependencies: bignumber.js: 9.3.1 @@ -1393,6 +2055,10 @@ snapshots: '@babel/runtime': 7.29.7 ts-algebra: 2.0.0 + json-schema-traverse@1.0.0: {} + + json-schema-typed@8.0.2: {} + jwa@2.0.1: dependencies: buffer-equal-constant-time: 1.0.1 @@ -1410,14 +2076,32 @@ snapshots: marked@18.0.5: {} + math-intrinsics@1.1.0: {} + + media-typer@1.1.1: {} + + merge-descriptors@2.0.0: {} + + mime-db@1.54.0: {} + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + minimatch@10.2.5: dependencies: brace-expansion: 5.0.9 + minimatch@10.2.6: + dependencies: + brace-expansion: 5.0.9 + minipass@7.1.3: {} ms@2.1.3: {} + negotiator@1.0.0: {} + node-addon-api@8.9.0: {} node-domexception@1.0.0: {} @@ -1445,9 +2129,26 @@ snapshots: dependencies: boolbase: 1.0.0 - openai@6.26.0(ws@8.21.1)(zod@3.25.76): + object-assign@4.1.1: {} + + object-inspect@1.13.4: {} + + on-finished@2.4.1: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + openai@6.40.0(ws@8.21.1)(zod@4.4.3): optionalDependencies: ws: 8.21.1 + zod: 4.4.3 + + openai@6.40.0(ws@8.21.3)(zod@3.25.76): + optionalDependencies: + ws: 8.21.3 zod: 3.25.76 p-retry@4.6.2: @@ -1455,6 +2156,8 @@ snapshots: '@types/retry': 0.12.0 retry: 0.13.1 + parseurl@1.3.3: {} + partial-json@0.1.7: {} path-key@3.1.1: {} @@ -1464,6 +2167,10 @@ snapshots: lru-cache: 11.5.2 minipass: 7.1.3 + path-to-regexp@8.4.2: {} + + pkce-challenge@5.0.1: {} + proper-lockfile@4.1.2: dependencies: graceful-fs: 4.2.11 @@ -1481,25 +2188,117 @@ snapshots: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.2 - '@types/node': 24.10.1 + '@types/node': 24.12.4 long: 5.3.2 + proxy-addr@2.0.7: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + + qs@6.15.3: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + + range-parser@1.3.0: {} + + raw-body@3.0.2: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + unpipe: 1.0.0 + + require-from-string@2.0.2: {} + retry@0.12.0: {} retry@0.13.1: {} + router@2.2.0: + dependencies: + debug: 4.4.3 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.4.2 + transitivePeerDependencies: + - supports-color + safe-buffer@5.2.1: {} + safer-buffer@2.1.2: {} + semver@7.8.0: {} + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.3.0 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + + setprototypeof@1.2.0: {} + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 shebang-regex@3.0.0: {} + side-channel-list@1.0.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.1 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + signal-exit@3.0.7: {} + statuses@2.0.2: {} + + toidentifier@1.0.1: {} + tree-sitter-bash@0.25.1: dependencies: node-addon-api: 8.9.0 @@ -1509,6 +2308,12 @@ snapshots: tslib@2.8.1: {} + type-is@2.1.0: + dependencies: + content-type: 2.0.0 + media-typer: 1.1.1 + mime-types: 3.0.2 + typebox@1.1.38: {} typebox@1.3.7: {} @@ -1517,7 +2322,11 @@ snapshots: undici-types@7.16.0: {} - undici@8.5.0: {} + undici@8.9.0: {} + + unpipe@1.0.0: {} + + vary@1.1.2: {} vscode-jsonrpc@9.0.1: {} @@ -1529,12 +2338,18 @@ snapshots: dependencies: isexe: 2.0.0 + wrappy@1.0.2: {} + ws@8.21.1: {} + ws@8.21.3: {} + yaml@2.9.0: {} - zod-to-json-schema@3.25.2(zod@3.25.76): + zod-to-json-schema@3.25.2(zod@4.4.3): dependencies: - zod: 3.25.76 + zod: 4.4.3 zod@3.25.76: {} + + zod@4.4.3: {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 50d0eb2..449790f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,10 +4,10 @@ packages: autoInstallPeers: false catalog: - '@earendil-works/pi-agent-core': 0.83.0 - '@earendil-works/pi-ai': 0.83.0 - '@earendil-works/pi-coding-agent': 0.83.0 - '@earendil-works/pi-tui': 0.83.0 + '@earendil-works/pi-agent-core': 0.84.2 + '@earendil-works/pi-ai': 0.84.2 + '@earendil-works/pi-coding-agent': 0.84.2 + '@earendil-works/pi-tui': 0.84.2 allowBuilds: '@google/genai': true -- knotmirror 0.0.1