A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
feat: run a bundled engine with its own home and sign in to providers from the app
Alan Buscaglia43a512dbff74
diff --git a/README.md b/README.mdindex 7e2acf9..f1f37d2 100644--- a/README.md+++ b/README.md@@ -7,7 +7,7 @@ Design: [docs/design.md](docs/design.md) · Plan: [odd/tasks/gentle-dot.md](odd/## Requirements- Node.js 24 and pnpm 10-- `gentle-shell` on `PATH` with a configured model provider+- Nothing else: the assistant brings its own Gentle Shell engine (the `gentle-pi` dependency) and signs in from its Accounts screen- Rust stable (only for the desktop app)## Run locallydiff --git a/apps/desktop/src-tauri/capabilities/default.json b/apps/desktop/src-tauri/capabilities/default.jsonindex 6a6c783..d3d5053 100644--- a/apps/desktop/src-tauri/capabilities/default.json+++ b/apps/desktop/src-tauri/capabilities/default.json@@ -1,12 +1,13 @@{"$schema": "../gen/schemas/desktop-schema.json","identifier": "default",- "description": "What the Dot and panel UI may call: event listening, Dot dragging, and the four shell commands.",+ "description": "What the Dot and panel UI may call: event listening, Dot dragging, opening web pages (sign-in), and the four shell commands.","windows": ["dot", "panel"],"permissions": ["core:event:allow-listen","core:event:allow-unlisten","core:window:allow-start-dragging",+ "opener:default","allow-connection-info","allow-toggle-panel","allow-hide-panel",diff --git a/docs/design.md b/docs/design.mdindex 9642744..9f13fd9 100644--- a/docs/design.md+++ b/docs/design.md@@ -85,6 +85,10 @@ Client to daemon:| `list_conversations` | — | daemon reads the session dir || `open_conversation` | `conversationId` | `switch_session` || `get_history` | — | `get_messages` |+| `auth_list` | — | daemon `ModelRuntime.getProviders()` and `getProviderAuthStatus()` |+| `auth_login` | `providerId`, `method` (`oauth` \| `api_key`) | daemon `ModelRuntime.login()`; one flow at a time |+| `auth_reply` | `flowId`, `value` \| `cancelled` | answers the flow's current prompt |+| `auth_logout` | `providerId` | daemon `ModelRuntime.logout()` |Daemon to client:@@ -103,6 +107,14 @@ Daemon to client:| `toast` | sanitized `notify` || `history` | conversation messages for rendering || `error` | `code`, `message` safe for the user |+| `auth_providers` | providers with `methods`, `oauthName`, `configured`, `source`; `open: true` when the user typed `/login` |+| `auth_prompt` | `flowId`, `kind` (`text`, `secret`, `select`, `manual_code`), `message`, `options` — sent only to the window that started the flow |+| `auth_event` | `auth_url`, `device_code`, `progress`, or `info` |+| `auth_done` | `ok`, plain-language `message` on failure or cancellation |++### Sign-in (S10) and own instance (S12)++The daemon runs the Gentle Shell bundled as its `gentle-pi` dependency, with `--home ~/.gentle-dot/agent` and `GENTLE_PI_CONFIG_HOME=~/.gentle-dot/gentle-ai`, so nothing is shared with a Gentle Shell the user may have installed. `/login` is a terminal-only command in Pi, so sign-in runs in the daemon through Pi's `ModelRuntime` on that same home (same `auth.json` format, file locking, mode 0600). Typed answers are never logged. After new credentials, the daemon refreshes every window's account list and restarts the agent once it is idle, so the new models appear. Typing `/login` in the chat opens the accounts screen.Every daemon message carries `seq` (monotonic per connection) so the UI can detect gaps and request `get_history`.@@ -218,4 +230,4 @@ On launch, the app checks `GET /health`. If the daemon does not answer, the app{ "port": 4317, "workspace": "~", "shortcut": "Alt+Space", "launchAtLogin": false }```-Environment overrides: `GENTLE_DOT_PORT`, `GENTLE_DOT_HOST` (default `127.0.0.1`; `0.0.0.0` only inside a container), `GENTLE_DOT_DATA_DIR`, `GENTLE_DOT_WORKSPACE`, `GENTLE_DOT_UI_DIR`, `GENTLE_DOT_AGENT_BIN`, `GENTLE_DOT_AGENT_ARGS` (JSON array), `GENTLE_DOT_ALLOWED_ORIGINS` (JSON array).+Environment overrides: `GENTLE_DOT_AGENT_HOME` (default `~/.gentle-dot/agent`), `GENTLE_DOT_PORT`, `GENTLE_DOT_HOST` (default `127.0.0.1`; `0.0.0.0` only inside a container), `GENTLE_DOT_DATA_DIR`, `GENTLE_DOT_WORKSPACE`, `GENTLE_DOT_UI_DIR`, `GENTLE_DOT_AGENT_BIN`, `GENTLE_DOT_AGENT_ARGS` (JSON array), `GENTLE_DOT_ALLOWED_ORIGINS` (JSON array).diff --git a/e2e/serve.ts b/e2e/serve.tsindex c343eb9..57677d9 100644--- a/e2e/serve.ts+++ b/e2e/serve.ts@@ -10,6 +10,8 @@ rmSync(dataDir, { recursive: true, force: true });mkdirSync(dataDir, { recursive: true });writeFileSync(join(dataDir, "token"), `${E2E_TOKEN}\n`, { mode: 0o600 });+// Provider keys in the developer's environment would mark accounts as connected.+delete process.env.OPENAI_API_KEY;process.env.GENTLE_DOT_DATA_DIR = dataDir;process.env.GENTLE_DOT_WORKSPACE = dataDir;process.env.GENTLE_DOT_AGENT_BIN = process.execPath;diff --git a/e2e/web.spec.ts b/e2e/web.spec.tsindex 0f19243..83266a9 100644--- a/e2e/web.spec.ts+++ b/e2e/web.spec.ts@@ -64,6 +64,29 @@ test("keeps the conversation after a page reload", async ({ page }) => {await expect(page.locator(".message-assistant").last()).toHaveText("Echo: remember this");});+test("opens accounts with /login and connects and disconnects an API key", async ({ page }) => {+ await open(page);+ await say(page, "/login");+ const accounts = page.getByRole("region", { name: "Accounts" });+ await expect(accounts).toBeVisible();+ await expect(accounts.getByRole("button", { name: /Sign in with .*Claude Pro\/Max/ })).toBeVisible();+ await accounts.getByRole("searchbox", { name: "Search providers" }).fill("OpenAI");+ const openai = accounts.getByRole("listitem").filter({ has: page.getByText("OpenAI", { exact: true }) });+ await openai.getByRole("button", { name: "Use an API key" }).click();+ const key = accounts.getByLabel("Enter OpenAI API key");+ await expect(key).toHaveAttribute("type", "password");+ await key.fill("sk-e2e-not-real");+ await accounts.getByRole("button", { name: "Continue" }).click();+ await expect(accounts.getByRole("status")).toHaveText("Connected to OpenAI.");+ await accounts.getByRole("button", { name: "Back to accounts" }).click();+ await accounts.getByRole("searchbox", { name: "Search providers" }).fill("OpenAI");+ await expect(openai.getByText("Connected")).toBeVisible();+ await openai.getByRole("button", { name: "Sign out" }).click();+ await expect(openai.getByText("Connected")).toBeHidden();+ await accounts.getByRole("button", { name: "Close accounts" }).click();+ await expect(page.getByRole("textbox", { name: "Message" })).toBeVisible();+});+test("explains a rejected access key", async ({ page }) => {await page.goto("/#token=wrong-token");await expect(page.getByRole("status")).toContainText("This link is not valid anymore");diff --git a/packages/daemon/package.json b/packages/daemon/package.jsonindex 9f759a5..967ea7b 100644--- a/packages/daemon/package.json+++ b/packages/daemon/package.json@@ -7,7 +7,11 @@"gentle-dot": "./src/cli.ts"},"dependencies": {+ "@earendil-works/pi-ai": "1.0.4",+ "@earendil-works/pi-coding-agent": "1.0.4",+ "@earendil-works/pi-tui": "1.0.4","@gentle-dot/protocol": "workspace:*",+ "gentle-pi": "4.0.0","ws": "^8.22.0"},"devDependencies": {diff --git a/packages/daemon/src/auth.ts b/packages/daemon/src/auth.tsnew file mode 100644index 0000000..fa8fa11--- /dev/null+++ b/packages/daemon/src/auth.ts@@ -0,0 +1,252 @@+import { randomUUID } from "node:crypto";+import { mkdirSync } from "node:fs";+import { join, resolve } from "node:path";+import type { AuthEvent, AuthMethod, AuthPrompt, AuthProvider, ServerPayload } from "@gentle-dot/protocol";+import { presentText } from "./white-label.ts";++type PromptRequest = {+ type: AuthPrompt["kind"];+ message: string;+ placeholder?: string;+ options?: readonly { id: string; label: string; description?: string }[];+ signal?: AbortSignal;+};++type EventRequest =+ | { type: "info"; message: string; links?: readonly { url: string; label?: string }[] }+ | { type: "auth_url"; url: string; instructions?: string }+ | {+ type: "device_code";+ userCode: string;+ verificationUri: string;+ intervalSeconds?: number;+ expiresInSeconds?: number;+ }+ | { type: "progress"; message: string };++export interface AuthInteraction {+ signal?: AbortSignal;+ prompt(prompt: PromptRequest): Promise<string>;+ notify(event: EventRequest): void;+}++/** The part of Pi's ModelRuntime the assistant uses for sign-in. */+export interface AuthRuntime {+ getProviders(): readonly {+ id: string;+ name: string;+ auth: { apiKey?: { name: string }; oauth?: { name: string } };+ }[];+ getProviderAuthStatus(providerId: string): { configured: boolean; source?: string };+ login(+ providerId: string,+ type: AuthMethod,+ interaction: AuthInteraction,+ options?: { getDeviceId?: () => string },+ ): Promise<unknown>;+ logout(providerId: string): Promise<void>;+}++/** The assistant's own engine home: never the user's Gentle Shell or Pi home unless explicitly overridden. */+export function resolveAgentHome(env: NodeJS.ProcessEnv, dataDir: string): string {+ return resolve(env.GENTLE_DOT_AGENT_HOME ?? join(dataDir, "agent"));+}++/** Pi's ModelRuntime on the assistant's home: same auth.json format and file locking as Gentle Shell. */+export async function createModelAuthRuntime(agentHome: string, cwd: string): Promise<AuthRuntime> {+ mkdirSync(agentHome, { recursive: true, mode: 0o700 });+ const { ModelRuntime, SettingsManager } = await import("@earendil-works/pi-coding-agent");+ const runtime = await ModelRuntime.create({+ authPath: join(agentHome, "auth.json"),+ modelsPath: join(agentHome, "models.json"),+ // Offline, but refreshed on create so credentials saved by other runtimes are visible.+ allowModelNetwork: false,+ });+ const settings = SettingsManager.create(cwd, agentHome);+ return {+ getProviders: () => runtime.getProviders() as unknown as ReturnType<AuthRuntime["getProviders"]>,+ getProviderAuthStatus: (providerId) => runtime.getProviderAuthStatus(providerId),+ login: (providerId, type, interaction) =>+ runtime.login(providerId, type, interaction as never, {+ getDeviceId: () => settings.getOrCreateDeviceId(),+ }),+ logout: (providerId) => runtime.logout(providerId),+ };+}++type Emit = (payload: ServerPayload) => void;++interface Flow {+ id: string;+ providerId: string;+ owner: object;+ controller: AbortController;+ pending?: { resolve: (value: string) => void; reject: (error: Error) => void };+ /** Values the user typed in this flow; removed from anything logged. */+ answers: string[];+}++export interface AuthManagerOptions {+ runtime: () => Promise<AuthRuntime>;+ log?: (line: string) => void;+}++/**+ * Runs sign-in flows for the UI. One flow at a time (OAuth callback ports are+ * shared), prompts go to the window that started it, and typed answers never+ * reach logs.+ */+export class AuthManager {+ private flow: Flow | undefined;+ private readonly options: AuthManagerOptions;+ onCredentialsChanged: () => void = () => {};++ constructor(options: AuthManagerOptions) {+ this.options = options;+ }++ async providers(): Promise<AuthProvider[]> {+ const runtime = await this.options.runtime();+ return runtime.getProviders().flatMap((provider) => {+ const methods: AuthMethod[] = [];+ if (provider.auth.oauth) methods.push("oauth");+ if (provider.auth.apiKey) methods.push("api_key");+ if (methods.length === 0) return [];+ const status = runtime.getProviderAuthStatus(provider.id);+ const entry: AuthProvider = {+ id: provider.id,+ name: provider.name,+ methods,+ configured: status.configured,+ };+ if (provider.auth.oauth) entry.oauthName = provider.auth.oauth.name;+ if (status.configured && status.source) entry.source = status.source;+ return [entry];+ });+ }++ /** Starts a flow; returns false when another sign-in is already running. */+ start(owner: object, providerId: string, method: AuthMethod, emit: Emit): boolean {+ if (this.flow) return false;+ const flow: Flow = {+ id: randomUUID(),+ providerId,+ owner,+ controller: new AbortController(),+ answers: [],+ };+ this.flow = flow;+ void this.run(flow, method, emit);+ return true;+ }++ /** Delivers the user's answer (or cancellation) to the waiting prompt. */+ reply(flowId: string, answer: { value?: string; cancelled?: boolean }): boolean {+ const flow = this.flow;+ if (!flow || flow.id !== flowId) return false;+ if (answer.cancelled) {+ flow.controller.abort();+ return true;+ }+ if (!flow.pending || answer.value === undefined) return false;+ flow.answers.push(answer.value);+ const { resolve } = flow.pending;+ flow.pending = undefined;+ resolve(answer.value);+ return true;+ }++ /** A window that goes away takes its sign-in with it. */+ cancelOwnedBy(owner: object): void {+ if (this.flow?.owner === owner) this.flow.controller.abort();+ }++ async logout(providerId: string): Promise<void> {+ const runtime = await this.options.runtime();+ await runtime.logout(providerId);+ this.log(`signed out of ${providerId}`);+ this.onCredentialsChanged();+ }++ private async run(flow: Flow, method: AuthMethod, emit: Emit): Promise<void> {+ const { signal } = flow.controller;+ signal.addEventListener("abort", () => {+ flow.pending?.reject(new Error("cancelled"));+ flow.pending = undefined;+ });+ const interaction: AuthInteraction = {+ signal,+ prompt: (request) =>+ new Promise<string>((resolvePrompt, rejectPrompt) => {+ if (signal.aborted) return rejectPrompt(new Error("cancelled"));+ flow.pending = { resolve: resolvePrompt, reject: rejectPrompt };+ const prompt: AuthPrompt = {+ flowId: flow.id,+ kind: request.type,+ message: presentText(request.message),+ };+ if (request.placeholder) prompt.placeholder = request.placeholder;+ if (request.options)+ prompt.options = request.options.map((o) => ({ ...o, label: presentText(o.label) }));+ emit({ type: "auth_prompt", prompt });+ }),+ notify: (event) => emit({ type: "auth_event", flowId: flow.id, event: toAuthEvent(event) }),+ };+ try {+ const runtime = await this.options.runtime();+ await runtime.login(flow.providerId, method, interaction);+ this.log(`signed in to ${flow.providerId} (${method})`);+ emit({ type: "auth_done", flowId: flow.id, providerId: flow.providerId, ok: true });+ this.flow = undefined;+ this.onCredentialsChanged();+ } catch (error) {+ const cancelled = signal.aborted;+ if (!cancelled)+ this.log(`sign-in to ${flow.providerId} failed: ${redact((error as Error).message, flow.answers)}`);+ emit({+ type: "auth_done",+ flowId: flow.id,+ providerId: flow.providerId,+ ok: false,+ message: cancelled ? "Sign-in cancelled." : "Sign-in did not finish. Please try again.",+ });+ } finally {+ if (this.flow === flow) this.flow = undefined;+ }+ }++ private log(line: string): void {+ this.options.log?.(line);+ }+}++function toAuthEvent(event: EventRequest): AuthEvent {+ switch (event.type) {+ case "info": {+ const info: AuthEvent = { kind: "info", message: presentText(event.message) };+ if (event.links) info.links = event.links.map((l) => ({ ...l }));+ return info;+ }+ case "auth_url":+ return event.instructions+ ? { kind: "auth_url", url: event.url, instructions: presentText(event.instructions) }+ : { kind: "auth_url", url: event.url };+ case "device_code": {+ const code: AuthEvent = {+ kind: "device_code",+ userCode: event.userCode,+ verificationUri: event.verificationUri,+ };+ if (event.expiresInSeconds) code.expiresInSeconds = event.expiresInSeconds;+ return code;+ }+ case "progress":+ return { kind: "progress", message: presentText(event.message) };+ }+}++function redact(text: string, secrets: string[]): string {+ let safe = text.slice(0, 300);+ for (const secret of secrets) if (secret.length >= 4) safe = safe.split(secret).join("[redacted]");+ return safe;+}diff --git a/packages/daemon/src/bridge.ts b/packages/daemon/src/bridge.tsindex 4c76c71..37bb963 100644--- a/packages/daemon/src/bridge.ts+++ b/packages/daemon/src/bridge.ts@@ -1,5 +1,6 @@import { join } from "node:path";import type { AgentState, Ask, ClientMessage, ServerPayload } from "@gentle-dot/protocol";+import type { AuthManager } from "./auth.ts";import {conversationIdOf,historyFromMessages,@@ -17,6 +18,7 @@ export interface BridgeClient {export interface BridgeOptions {dataDir: string;log?: (line: string) => void;+ auth?: AuthManager;}const DIALOG_METHODS = new Set(["select", "confirm", "input", "editor"]);@@ -42,12 +44,14 @@ export class DotBridge {private interrupted = false;private nextMessage = 0;private assistantId: string | undefined;+ private restartPending = false;constructor(supervisor: AgentSupervisor, options: BridgeOptions) {this.supervisor = supervisor;this.options = options;this.sessionDir = join(options.dataDir, "sessions");supervisor.onEvent((event) => this.onAgentEvent(event));+ if (options.auth) options.auth.onCredentialsChanged = () => this.afterCredentialsChange();this.state = this.deriveState();}@@ -65,7 +69,10 @@ export class DotBridge {});for (const { ask } of this.asks.values()) this.deliver(client, { type: "ask", ask });if (this.interrupted) this.deliver(client, { type: "interrupted" });- return () => this.clients.delete(client);+ return () => {+ this.clients.delete(client);+ this.options.auth?.cancelOwnedBy(client);+ };}async handle(client: BridgeClient, message: ClientMessage): Promise<void> {@@ -98,6 +105,10 @@ export class DotBridge {return;}if (message.requestId && this.alreadySeen(message.requestId)) return;+ if (/^\s*\/login\s*$/i.test(message.text)) {+ await this.sendProviders(client, true);+ return;+ }this.interrupted = false;const busy = this.supervisor.busy;await this.supervisor.request(@@ -157,6 +168,35 @@ export class DotBridge {this.afterConversationChange(await this.loadHistory());return;}+ case "auth_list":+ await this.sendProviders(client);+ return;+ case "auth_login": {+ const auth = this.requireAuth();+ const started = auth.start(client, message.providerId, message.method, (payload) =>+ this.deliver(client, payload),+ );+ if (!started) {+ this.deliver(client, {+ type: "error",+ code: "auth_busy",+ message: "Another sign-in is in progress. Finish or cancel it first.",+ });+ }+ return;+ }+ case "auth_reply":+ if (!this.requireAuth().reply(message.flowId, message)) {+ this.deliver(client, {+ type: "error",+ code: "auth_flow_not_found",+ message: "That sign-in is no longer active.",+ });+ }+ return;+ case "auth_logout":+ await this.requireAuth().logout(message.providerId);+ return;case "get_history":this.deliver(client, {type: "history",@@ -167,6 +207,34 @@ export class DotBridge {}}+ private requireAuth(): AuthManager {+ if (!this.options.auth) throw new Error("sign-in is not available");+ return this.options.auth;+ }++ private async sendProviders(client: BridgeClient, open = false): Promise<void> {+ const providers = await this.requireAuth().providers();+ this.deliver(client, { type: "auth_providers", providers, ...(open ? { open: true } : {}) });+ }++ /** New credentials: refresh every window, and restart the agent once it is idle so it sees new models. */+ private afterCredentialsChange(): void {+ void this.requireAuth()+ .providers()+ .then((providers) => this.broadcast({ type: "auth_providers", providers }))+ .catch((error: Error) => this.log(`could not list providers: ${error.message}`));+ if (this.supervisor.busy) {+ this.restartPending = true;+ return;+ }+ this.restartAgent();+ }++ private restartAgent(): void {+ this.restartPending = false;+ this.supervisor.restart().catch((error: Error) => this.log(`agent restart failed: ${error.message}`));+ }+private afterConversationChange(messages: unknown[]): void {this.interrupted = false;this.assistantId = undefined;@@ -220,6 +288,7 @@ export class DotBridge {this.assistantId = undefined;// The title of a new conversation comes from its first message.this.broadcast(this.conversationsPayload());+ if (this.restartPending) this.restartAgent();break;case "extension_ui_request":this.onUiRequest(event);diff --git a/packages/daemon/src/cli.ts b/packages/daemon/src/cli.tsindex 836985a..b10df40 100644--- a/packages/daemon/src/cli.ts+++ b/packages/daemon/src/cli.ts@@ -14,6 +14,7 @@ async function main(): Promise<void> {uiDir: config.uiDir,agentCommand: config.agentCommand,agentArgs: config.agentArgs,+ ...(config.agentHome ? { agentHome: config.agentHome } : {}),allowedOrigins: config.allowedOrigins,log,});diff --git a/packages/daemon/src/config.ts b/packages/daemon/src/config.tsindex 3ca7719..e8b45bf 100644--- a/packages/daemon/src/config.ts+++ b/packages/daemon/src/config.ts@@ -1,4 +1,5 @@import { existsSync, readFileSync } from "node:fs";+import { createRequire } from "node:module";import { homedir } from "node:os";import { join, resolve } from "node:path";import { fileURLToPath } from "node:url";@@ -11,11 +12,23 @@ export interface DotConfig {uiDir: string;agentCommand: string;agentArgs: string[];+ /** The assistant's own Gentle Shell home; undefined for a custom agent script. */+ agentHome: string | undefined;allowedOrigins: string[];}const DEFAULT_UI_DIR = fileURLToPath(new URL("../../ui/dist/app", import.meta.url));+/** Path of the Gentle Shell launcher bundled with the daemon (the `gentle-pi` dependency). */+export function bundledGentleShell(): string {+ const require = createRequire(import.meta.url);+ for (const dir of require.resolve.paths("gentle-pi") ?? []) {+ const bin = join(dir, "gentle-pi", "bin", "gentle-shell.mjs");+ if (existsSync(bin)) return bin;+ }+ throw new Error("The bundled assistant engine is missing. Run `pnpm install`.");+}+function expandHome(path: string): string {return path === "~" || path.startsWith("~/") ? join(homedir(), path.slice(1)) : path;}@@ -46,6 +59,24 @@ function parseList(value: string | undefined, name: string): string[] {return parsed;}+/**+ * The agent is the bundled Gentle Shell by default, run with the assistant's own+ * home so nothing is shared with a Gentle Shell the user may have installed.+ * GENTLE_DOT_AGENT_ARGS marks a custom agent script (tests), which gets no home.+ */+function agentConfig(env: NodeJS.ProcessEnv, dataDir: string) {+ const custom = parseList(env.GENTLE_DOT_AGENT_ARGS, "GENTLE_DOT_AGENT_ARGS");+ const agentHome = resolve(expandHome(env.GENTLE_DOT_AGENT_HOME ?? join(dataDir, "agent")));+ if (env.GENTLE_DOT_AGENT_ARGS)+ return {+ agentCommand: env.GENTLE_DOT_AGENT_BIN ?? process.execPath,+ agentArgs: custom,+ agentHome: undefined,+ };+ if (env.GENTLE_DOT_AGENT_BIN) return { agentCommand: env.GENTLE_DOT_AGENT_BIN, agentArgs: [], agentHome };+ return { agentCommand: process.execPath, agentArgs: [bundledGentleShell()], agentHome };+}+/** Resolves configuration from environment variables, then `~/.gentle-dot/config.json`, then defaults. */export function loadConfig(env: NodeJS.ProcessEnv = process.env): DotConfig {const dataDir = resolve(expandHome(env.GENTLE_DOT_DATA_DIR ?? "~/.gentle-dot"));@@ -60,8 +91,7 @@ export function loadConfig(env: NodeJS.ProcessEnv = process.env): DotConfig {expandHome(env.GENTLE_DOT_WORKSPACE ?? (typeof file.workspace === "string" ? file.workspace : "~")),),uiDir: resolve(env.GENTLE_DOT_UI_DIR ?? DEFAULT_UI_DIR),- agentCommand: env.GENTLE_DOT_AGENT_BIN ?? "gentle-shell",- agentArgs: parseList(env.GENTLE_DOT_AGENT_ARGS, "GENTLE_DOT_AGENT_ARGS"),+ ...agentConfig(env, dataDir),allowedOrigins: parseList(env.GENTLE_DOT_ALLOWED_ORIGINS, "GENTLE_DOT_ALLOWED_ORIGINS"),};}diff --git a/packages/daemon/src/daemon.ts b/packages/daemon/src/daemon.tsindex ddc1c3f..a542cff 100644--- a/packages/daemon/src/daemon.ts+++ b/packages/daemon/src/daemon.ts@@ -5,6 +5,7 @@ import type { AddressInfo } from "node:net";import { extname, join, resolve, sep } from "node:path";import { type ClientMessage, CloseCode, PROTOCOL_VERSION, parseClientMessage } from "@gentle-dot/protocol";import { type WebSocket, WebSocketServer } from "ws";+import { AuthManager, type AuthRuntime, createModelAuthRuntime, resolveAgentHome } from "./auth.ts";import { type BridgeClient, DotBridge } from "./bridge.ts";import { AgentSupervisor } from "./supervisor.ts";import { identityArgs } from "./white-label.ts";@@ -20,6 +21,10 @@ export interface DaemonOptions {agentArgs?: string[];agentExtraArgs?: string[];agentEnv?: NodeJS.ProcessEnv;+ /** The assistant's own Gentle Shell home (`--home`); profiles go next to it. */+ agentHome?: string;+ /** Creates the sign-in runtime; defaults to Pi's ModelRuntime on the agent home. */+ authRuntime?: () => Promise<AuthRuntime>;/** Origins allowed to open the WebSocket, besides the daemon's own and the desktop app's. */allowedOrigins?: string[];backoffMs?: number[];@@ -63,17 +68,35 @@ export function ensureToken(dataDir: string): string {export async function startDaemon(options: DaemonOptions): Promise<DotDaemon> {const log = options.log ?? (() => {});const token = ensureToken(options.dataDir);+ const agentEnv = { ...(options.agentEnv ?? process.env) };+ const homeArgs: string[] = [];+ if (options.agentHome) {+ homeArgs.push("--home", options.agentHome);+ agentEnv.GENTLE_PI_CONFIG_HOME = join(options.dataDir, "gentle-ai");+ }const supervisor = new AgentSupervisor({command: options.agentCommand,- args: options.agentArgs ?? [],+ args: [...(options.agentArgs ?? []), ...homeArgs],extraArgs: [...identityArgs(options.dataDir), ...(options.agentExtraArgs ?? [])],cwd: options.workspace,dataDir: options.dataDir,- env: options.agentEnv ?? process.env,+ env: agentEnv,+ // The first start in a new home installs the engine's companion packages.+ ...(options.agentHome ? { startTimeoutMs: 180_000 } : {}),...(options.backoffMs ? { backoffMs: options.backoffMs } : {}),log: (line) => log(`[agent] ${line}`),});- const bridge = new DotBridge(supervisor, { dataDir: options.dataDir, log });+ const auth = new AuthManager({+ runtime:+ options.authRuntime ??+ (() =>+ createModelAuthRuntime(+ options.agentHome ?? resolveAgentHome(process.env, options.dataDir),+ options.workspace,+ )),+ log,+ });+ const bridge = new DotBridge(supervisor, { dataDir: options.dataDir, log, auth });const server = createServer((req, res) => handleHttp(req, res, options.uiDir, bridge));const wss = new WebSocketServer({ noServer: true, maxPayload: 1024 * 1024 });diff --git a/packages/daemon/src/supervisor.ts b/packages/daemon/src/supervisor.tsindex 12d07b2..c973400 100644--- a/packages/daemon/src/supervisor.ts+++ b/packages/daemon/src/supervisor.ts@@ -73,6 +73,7 @@ export class AgentSupervisor {private attempts = 0;private spawnedAt = 0;private stopping = false;+ private restarting = false;private interrupted = false;private restartTimer: NodeJS.Timeout | undefined;private closeWaiters: (() => void)[] = [];@@ -124,6 +125,23 @@ export class AgentSupervisor {this.child.stdin.write(encodeRecord(record));}+ /**+ * Replaces the agent process on purpose (for example after new credentials),+ * reopening the same conversation. Not reported as an interruption.+ */+ async restart(): Promise<void> {+ const child = this.child;+ if (!child || this.stopping) return;+ this.restarting = true;+ const closed = new Promise<void>((resolve) => this.closeWaiters.push(resolve));+ child.stdin?.end();+ const term = setTimeout(() => child.kill("SIGTERM"), this.options.stopTimeoutMs ?? 5000);+ await closed;+ clearTimeout(term);+ this.setState("restarting");+ await this.spawnAndInitialize();+ }+async stop(): Promise<void> {this.stopping = true;clearTimeout(this.restartTimer);@@ -228,6 +246,11 @@ export class AgentSupervisor {}const wasBusy = this.busy;this.busy = false;+ if (this.restarting) {+ this.restarting = false;+ for (const resolve of this.closeWaiters.splice(0)) resolve();+ return;+ }for (const resolve of this.closeWaiters.splice(0)) resolve();if (this.stopping) {this.setState("stopped");diff --git a/packages/daemon/test/auth.test.ts b/packages/daemon/test/auth.test.tsnew file mode 100644index 0000000..8cabbdf--- /dev/null+++ b/packages/daemon/test/auth.test.ts@@ -0,0 +1,210 @@+import { statSync } from "node:fs";+import { join } from "node:path";+import type { ServerMessage } from "@gentle-dot/protocol";+import { afterEach, describe, expect, it } from "vitest";+import WebSocket from "ws";+import { createModelAuthRuntime, resolveAgentHome } from "../src/auth.ts";+import { type DotDaemon, startDaemon } from "../src/daemon.ts";+import { fakeAuthRuntime } from "./fake-auth-runtime.ts";+import { FAKE_AGENT, tempDir, waitFor } from "./helpers.ts";++const daemons: DotDaemon[] = [];+afterEach(async () => {+ await Promise.all(daemons.splice(0).map((d) => d.close()));+});++async function setup() {+ const fake = fakeAuthRuntime();+ const logs: string[] = [];+ const dataDir = tempDir();+ const d = await startDaemon({+ port: 0,+ host: "127.0.0.1",+ dataDir,+ workspace: dataDir,+ uiDir: dataDir,+ agentCommand: process.execPath,+ agentArgs: [FAKE_AGENT],+ backoffMs: [50],+ authRuntime: async () => fake.runtime,+ log: (line) => logs.push(line),+ });+ daemons.push(d);+ const ws = new WebSocket(`ws://127.0.0.1:${d.port}/ws`);+ const messages: ServerMessage[] = [];+ ws.on("message", (data) => messages.push(JSON.parse(String(data)) as ServerMessage));+ await new Promise((resolve) => ws.on("open", resolve));+ ws.send(JSON.stringify({ type: "hello", token: d.token, protocol: 1 }));+ await waitFor(() => messages.some((m) => m.type === "ready"));+ const send = (m: object) => ws.send(JSON.stringify(m));+ function find<T extends ServerMessage["type"]>(+ type: T,+ where: (m: Extract<ServerMessage, { type: T }>) => boolean = () => true,+ ) {+ return waitFor(() =>+ messages.find(+ (m): m is Extract<ServerMessage, { type: T }> =>+ m.type === type && where(m as Extract<ServerMessage, { type: T }>),+ ),+ );+ }+ return { d, fake, logs, ws, messages, send, find };+}++describe("sign-in", () => {+ it("lists the providers that support sign-in with their status", async () => {+ const { send, find } = await setup();+ send({ type: "auth_list" });+ const list = await find("auth_providers");+ expect(list.providers).toEqual([+ {+ id: "anthropic",+ name: "Anthropic",+ methods: ["oauth", "api_key"],+ oauthName: "Claude Pro/Max",+ configured: false,+ },+ { id: "openai", name: "OpenAI", methods: ["api_key"], configured: false },+ ]);+ expect(list.open).toBeUndefined();+ });++ it("opens the accounts screen when the user types /login", async () => {+ const { send, find, messages } = await setup();+ send({ type: "send", text: "/login" });+ const list = await find("auth_providers");+ expect(list.open).toBe(true);+ expect(messages.some((m) => m.type === "user_message")).toBe(false);+ });++ it("runs a subscription sign-in: link, code prompt, success, refreshed status, and an agent restart", async () => {+ const { d, send, find } = await setup();+ const pid = d.supervisor.pid;+ send({ type: "auth_login", providerId: "anthropic", method: "oauth" });+ const link = await find("auth_event", (m) => m.event.kind === "auth_url");+ expect(link.event).toEqual({+ kind: "auth_url",+ url: "https://example.com/authorize?x=1",+ instructions: "Sign in",+ });+ await find("auth_event", (m) => m.event.kind === "progress");+ const prompt = await find("auth_prompt");+ expect(prompt.prompt).toMatchObject({+ kind: "manual_code",+ message: "Paste the code",+ flowId: link.flowId,+ });+ send({ type: "auth_reply", flowId: link.flowId, value: "good-code" });+ const done = await find("auth_done");+ expect(done).toMatchObject({ ok: true, providerId: "anthropic", flowId: link.flowId });+ const refreshed = await find("auth_providers", (m) =>+ m.providers.some((p) => p.id === "anthropic" && p.configured),+ );+ expect(refreshed.providers.find((p) => p.id === "anthropic")?.source).toBe("stored");+ await waitFor(() => d.supervisor.pid !== pid && d.supervisor.state === "ready");+ });++ it("saves an API key without ever logging it", async () => {+ const { send, find, logs, messages } = await setup();+ send({ type: "auth_login", providerId: "openai", method: "api_key" });+ const prompt = await find("auth_prompt");+ expect(prompt.prompt.kind).toBe("secret");+ send({ type: "auth_reply", flowId: prompt.prompt.flowId, value: "sk-very-secret-value" });+ expect((await find("auth_done")).ok).toBe(true);+ expect(logs.join("\n")).not.toContain("sk-very-secret-value");+ expect(JSON.stringify(messages)).not.toContain("sk-very-secret-value");+ });++ it("reports a failed sign-in in plain words", async () => {+ const { send, find } = await setup();+ send({ type: "auth_login", providerId: "anthropic", method: "oauth" });+ const prompt = await find("auth_prompt");+ send({ type: "auth_reply", flowId: prompt.prompt.flowId, value: "wrong" });+ const done = await find("auth_done");+ expect(done.ok).toBe(false);+ expect(done.message).toBe("Sign-in did not finish. Please try again.");+ });++ it("cancels a sign-in and aborts the provider flow", async () => {+ const { send, find, fake } = await setup();+ send({ type: "auth_login", providerId: "anthropic", method: "oauth" });+ const prompt = await find("auth_prompt");+ send({ type: "auth_reply", flowId: prompt.prompt.flowId, cancelled: true });+ const done = await find("auth_done");+ expect(done).toMatchObject({ ok: false, message: "Sign-in cancelled." });+ expect(fake.state.aborted).toBe(true);+ });++ it("runs one sign-in at a time", async () => {+ const { send, find } = await setup();+ send({ type: "auth_login", providerId: "anthropic", method: "oauth" });+ await find("auth_prompt");+ send({ type: "auth_login", providerId: "openai", method: "api_key" });+ expect((await find("error")).code).toBe("auth_busy");+ });++ it("cancels the sign-in when its window disconnects", async () => {+ const { ws, find, fake } = await setup();+ ws.send(JSON.stringify({ type: "auth_login", providerId: "anthropic", method: "oauth" }));+ await find("auth_prompt");+ ws.close();+ await waitFor(() => fake.state.aborted);+ });++ it("signs out", async () => {+ const { send, find, fake } = await setup();+ fake.configured.add("openai");+ send({ type: "auth_logout", providerId: "openai" });+ const list = await find("auth_providers", (m) =>+ m.providers.some((p) => p.id === "openai" && !p.configured),+ );+ expect(list.providers.find((p) => p.id === "openai")?.configured).toBe(false);+ });++ it("waits for the current run to finish before restarting the agent", async () => {+ const { d, send, find } = await setup();+ send({ type: "send", text: "hang" });+ await find("agent_state", (m) => m.state === "thinking");+ const pid = d.supervisor.pid;+ send({ type: "auth_login", providerId: "openai", method: "api_key" });+ const prompt = await find("auth_prompt");+ send({ type: "auth_reply", flowId: prompt.prompt.flowId, value: "sk-ok" });+ await find("auth_done");+ await new Promise((resolve) => setTimeout(resolve, 200));+ expect(d.supervisor.pid).toBe(pid);+ send({ type: "abort" });+ await waitFor(() => d.supervisor.pid !== pid && d.supervisor.state === "ready");+ });+});++describe("createModelAuthRuntime (Pi's runtime, offline)", () => {+ it("stores an API key in the assistant's home and a fresh runtime sees it", async () => {+ const home = tempDir();+ const saved = process.env.OPENAI_API_KEY;+ delete process.env.OPENAI_API_KEY;+ try {+ const first = await createModelAuthRuntime(home, home);+ await first.login("openai", "api_key", { prompt: async () => "sk-test-not-real", notify: () => {} });+ const fresh = await createModelAuthRuntime(home, home);+ expect(fresh.getProviderAuthStatus("openai")).toEqual({ configured: true, source: "stored" });+ expect(statSync(join(home, "auth.json")).mode & 0o777).toBe(0o600);+ await fresh.logout("openai");+ expect((await createModelAuthRuntime(home, home)).getProviderAuthStatus("openai").configured).toBe(+ false,+ );+ } finally {+ if (saved !== undefined) process.env.OPENAI_API_KEY = saved;+ }+ });+});++describe("resolveAgentHome", () => {+ it("belongs to the assistant: <dataDir>/agent unless overridden, never the user's Gentle Shell home", () => {+ const dataDir = tempDir();+ expect(resolveAgentHome({}, dataDir)).toBe(`${dataDir}/agent`);+ expect(resolveAgentHome({ GENTLE_SHELL_HOME: "/x", PI_CODING_AGENT_DIR: "/z" }, dataDir)).toBe(+ `${dataDir}/agent`,+ );+ expect(resolveAgentHome({ GENTLE_DOT_AGENT_HOME: "/y" }, dataDir)).toBe("/y");+ });+});diff --git a/packages/daemon/test/config.test.ts b/packages/daemon/test/config.test.tsindex c7cf83b..86becda 100644--- a/packages/daemon/test/config.test.ts+++ b/packages/daemon/test/config.test.ts@@ -1,20 +1,44 @@-import { writeFileSync } from "node:fs";+import { existsSync, writeFileSync } from "node:fs";import { join } from "node:path";import { describe, expect, it } from "vitest";import { loadConfig } from "../src/config.ts";import { tempDir } from "./helpers.ts";describe("loadConfig", () => {- it("uses local-only defaults", () => {+ it("uses local-only defaults and the bundled Gentle Shell with the assistant's own home", () => {const dataDir = tempDir();const config = loadConfig({ GENTLE_DOT_DATA_DIR: dataDir });expect(config).toMatchObject({port: 4317,host: "127.0.0.1",dataDir,+ agentCommand: process.execPath,+ agentHome: join(dataDir, "agent"),+ });+ expect(config.agentArgs).toHaveLength(1);+ expect(config.agentArgs[0]).toMatch(/node_modules\/gentle-pi\/bin\/gentle-shell\.mjs$/);+ expect(existsSync(config.agentArgs[0] ?? "")).toBe(true);+ });++ it("keeps the assistant's own home for an explicit gentle-shell binary, and honors an override", () => {+ const dataDir = tempDir();+ expect(loadConfig({ GENTLE_DOT_DATA_DIR: dataDir, GENTLE_DOT_AGENT_BIN: "gentle-shell" })).toMatchObject({agentCommand: "gentle-shell",agentArgs: [],+ agentHome: join(dataDir, "agent"),+ });+ expect(loadConfig({ GENTLE_DOT_DATA_DIR: dataDir, GENTLE_DOT_AGENT_HOME: "/h" }).agentHome).toBe("/h");+ });++ it("runs a custom agent script without the Gentle Shell home", () => {+ const dataDir = tempDir();+ const config = loadConfig({+ GENTLE_DOT_DATA_DIR: dataDir,+ GENTLE_DOT_AGENT_BIN: "node",+ GENTLE_DOT_AGENT_ARGS: '["fake.ts"]',});+ expect(config).toMatchObject({ agentCommand: "node", agentArgs: ["fake.ts"] });+ expect(config.agentHome).toBeUndefined();});it("reads config.json and lets environment variables win", () => {diff --git a/packages/daemon/test/fake-auth-runtime.ts b/packages/daemon/test/fake-auth-runtime.tsnew file mode 100644index 0000000..dc1b4da--- /dev/null+++ b/packages/daemon/test/fake-auth-runtime.ts@@ -0,0 +1,47 @@+import type { AuthRuntime } from "../src/auth.ts";++type Interaction = Parameters<AuthRuntime["login"]>[2];++/** A stand-in for Pi's ModelRuntime: two providers and scripted sign-in flows. */+export function fakeAuthRuntime() {+ const configured = new Set<string>();+ const state = { aborted: false };+ const runtime: AuthRuntime = {+ getProviders: () => [+ {+ id: "anthropic",+ name: "Anthropic",+ auth: { apiKey: { name: "API key" }, oauth: { name: "Claude Pro/Max" } },+ },+ { id: "openai", name: "OpenAI", auth: { apiKey: { name: "API key" } } },+ { id: "local", name: "Local", auth: {} },+ ],+ getProviderAuthStatus: (id) =>+ configured.has(id) ? { configured: true, source: "stored" } : { configured: false },+ async login(id, type, interaction: Interaction) {+ interaction.signal?.addEventListener("abort", () => {+ state.aborted = true;+ });+ if (type === "oauth") {+ interaction.notify({+ type: "auth_url",+ url: "https://example.com/authorize?x=1",+ instructions: "Sign in",+ });+ interaction.notify({ type: "progress", message: "Waiting for the browser…" });+ const code = await interaction.prompt({ type: "manual_code", message: "Paste the code" });+ if (code !== "good-code")+ throw new Error("token exchange failed: invalid_grant (raw provider detail)");+ } else {+ const key = await interaction.prompt({ type: "secret", message: "Enter your API key" });+ if (!key.startsWith("sk-")) throw new Error("bad key");+ }+ configured.add(id);+ return { type: type === "oauth" ? "oauth" : "api_key" };+ },+ async logout(id) {+ configured.delete(id);+ },+ };+ return { runtime, configured, state };+}diff --git a/packages/daemon/test/fixtures/fake-agent.ts b/packages/daemon/test/fixtures/fake-agent.tsindex 9ce59fb..a1f1321 100644--- a/packages/daemon/test/fixtures/fake-agent.ts+++ b/packages/daemon/test/fixtures/fake-agent.ts@@ -11,6 +11,7 @@// Environment:// FAKE_AGENT_ARGS_FILE write argv as JSON to this file// FAKE_AGENT_BRANDING emit branded startup UI records+// FAKE_AGENT_ENV_FILE write selected environment variables as JSON to this fileimport { randomUUID } from "node:crypto";import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";import { join } from "node:path";@@ -20,6 +21,12 @@ type Message = { role: "user" | "assistant"; content: string };const argv = process.argv.slice(2);if (process.env.FAKE_AGENT_ARGS_FILE) writeFileSync(process.env.FAKE_AGENT_ARGS_FILE, JSON.stringify(argv));+if (process.env.FAKE_AGENT_ENV_FILE) {+ writeFileSync(+ process.env.FAKE_AGENT_ENV_FILE,+ JSON.stringify({ GENTLE_PI_CONFIG_HOME: process.env.GENTLE_PI_CONFIG_HOME }),+ );+}const sessionDir = argValue("--session-dir") ?? join(process.cwd(), ".fake-sessions");mkdirSync(sessionDir, { recursive: true });diff --git a/packages/daemon/test/gateway.test.ts b/packages/daemon/test/gateway.test.tsindex c31abf9..aabd869 100644--- a/packages/daemon/test/gateway.test.ts+++ b/packages/daemon/test/gateway.test.ts@@ -246,6 +246,31 @@ describe("gateway", () => {});});+describe("own instance", () => {+ it("runs the agent with the assistant's own home and profile store", async () => {+ const scratch = tempDir();+ const argsFile = join(scratch, "argv.json");+ const envFile = join(scratch, "env.json");+ const dataDir = tempDir();+ const d = await startDaemon({+ port: 0,+ host: "127.0.0.1",+ dataDir,+ workspace: dataDir,+ uiDir: dataDir,+ agentCommand: process.execPath,+ agentArgs: [FAKE_AGENT],+ agentHome: join(dataDir, "agent"),+ agentEnv: { ...process.env, FAKE_AGENT_ARGS_FILE: argsFile, FAKE_AGENT_ENV_FILE: envFile },+ });+ daemons.push(d);+ const argv = JSON.parse(readFileSync(argsFile, "utf8")) as string[];+ expect(argv.slice(0, 4)).toEqual(["--home", join(dataDir, "agent"), "--mode", "rpc"]);+ const env = JSON.parse(readFileSync(envFile, "utf8")) as Record<string, string>;+ expect(env.GENTLE_PI_CONFIG_HOME).toBe(join(dataDir, "gentle-ai"));+ });+});+describe("white label", () => {it("passes the product identity to the agent", async () => {const argsFile = join(tempDir(), "argv.json");diff --git a/packages/daemon/test/supervisor.test.ts b/packages/daemon/test/supervisor.test.tsindex b5ddec3..ce0bfa1 100644--- a/packages/daemon/test/supervisor.test.ts+++ b/packages/daemon/test/supervisor.test.ts@@ -110,6 +110,20 @@ describe("AgentSupervisor", () => {expect(second.supervisor.sessionFile).toBe(session);});+ it("restarts on request, keeping the conversation and without an interruption", async () => {+ const { supervisor, events } = track(fakeSupervisor());+ await supervisor.start();+ await supervisor.request({ type: "prompt", message: "keep me" });+ await waitFor(() => events.some((e) => e.type === "agent_settled"));+ const session = supervisor.sessionFile;+ const pid = supervisor.pid;+ await supervisor.restart();+ expect(supervisor.state).toBe("ready");+ expect(supervisor.pid).not.toBe(pid);+ expect(supervisor.sessionFile).toBe(session);+ expect(events.some((e) => e.type === "interrupted")).toBe(false);+ });+it("stops cleanly and reports the stopped state", async () => {const { supervisor } = track(fakeSupervisor());await supervisor.start();diff --git a/packages/protocol/src/index.ts b/packages/protocol/src/index.tsindex 5560ee4..2902635 100644--- a/packages/protocol/src/index.ts+++ b/packages/protocol/src/index.ts@@ -42,6 +42,34 @@ export interface ConversationSummary {updatedAt: string;}+export type AuthMethod = "oauth" | "api_key";++export interface AuthProvider {+ id: string;+ name: string;+ /** Sign-in methods the provider supports. */+ methods: AuthMethod[];+ /** Name of the subscription sign-in, for example "Claude Pro/Max". */+ oauthName?: string;+ configured: boolean;+ /** Where the working credential comes from, for example "stored" or "environment". */+ source?: string;+}++export interface AuthPrompt {+ flowId: string;+ kind: "text" | "secret" | "select" | "manual_code";+ message: string;+ placeholder?: string;+ options?: { id: string; label: string; description?: string }[];+}++export type AuthEvent =+ | { kind: "info"; message: string; links?: { url: string; label?: string }[] }+ | { kind: "auth_url"; url: string; instructions?: string }+ | { kind: "device_code"; userCode: string; verificationUri: string; expiresInSeconds?: number }+ | { kind: "progress"; message: string };+export type ClientMessage =| { type: "hello"; token: string; protocol: number }| { type: "send"; text: string; requestId?: string }@@ -51,7 +79,11 @@ export type ClientMessage =| { type: "new_conversation" }| { type: "list_conversations" }| { type: "open_conversation"; conversationId: string }- | { type: "get_history" };+ | { type: "get_history" }+ | { type: "auth_list" }+ | { type: "auth_login"; providerId: string; method: AuthMethod }+ | { type: "auth_reply"; flowId: string; value?: string; cancelled?: boolean }+ | { type: "auth_logout"; providerId: string };export type ServerPayload =| { type: "ready"; agentState: AgentState; conversationId?: string; model?: string }@@ -66,7 +98,11 @@ export type ServerPayload =| { type: "history"; conversationId?: string; messages: HistoryMessage[] }| { type: "conversations"; conversations: ConversationSummary[]; activeId?: string }| { type: "interrupted" }- | { type: "error"; code: string; message: string };+ | { type: "error"; code: string; message: string }+ | { type: "auth_providers"; providers: AuthProvider[]; open?: boolean }+ | { type: "auth_prompt"; prompt: AuthPrompt }+ | { type: "auth_event"; flowId: string; event: AuthEvent }+ | { type: "auth_done"; flowId: string; providerId: string; ok: boolean; message?: string };/** Every daemon message carries a per-connection, monotonic `seq`. */export type ServerMessage = ServerPayload & { seq: number };@@ -111,6 +147,20 @@ export function parseClientMessage(raw: string): ClientMessage | undefined {}return undefined;}+ case "auth_login":+ return isString(m.providerId) && (m.method === "oauth" || m.method === "api_key")+ ? { type: "auth_login", providerId: m.providerId, method: m.method }+ : undefined;+ case "auth_reply":+ if (!isString(m.flowId)) return undefined;+ if (m.cancelled === true) return { type: "auth_reply", flowId: m.flowId, cancelled: true };+ return isString(m.value) && m.value.length <= MAX_TEXT+ ? { type: "auth_reply", flowId: m.flowId, value: m.value }+ : undefined;+ case "auth_logout":+ return isString(m.providerId) ? { type: "auth_logout", providerId: m.providerId } : undefined;+ case "auth_list":+ return { type: "auth_list" };case "open_conversation":return isString(m.conversationId)? { type: "open_conversation", conversationId: m.conversationId }diff --git a/packages/protocol/test/protocol.test.ts b/packages/protocol/test/protocol.test.tsindex d304f7c..c83bcd9 100644--- a/packages/protocol/test/protocol.test.ts+++ b/packages/protocol/test/protocol.test.ts@@ -23,6 +23,21 @@ describe("protocol", () => {confirmed: false,});expect(parseClientMessage('{"type":"abort","extra":1}')).toEqual({ type: "abort" });+ expect(parseClientMessage('{"type":"auth_login","providerId":"anthropic","method":"oauth"}')).toEqual({+ type: "auth_login",+ providerId: "anthropic",+ method: "oauth",+ });+ expect(parseClientMessage('{"type":"auth_reply","flowId":"f","value":"sk-x"}')).toEqual({+ type: "auth_reply",+ flowId: "f",+ value: "sk-x",+ });+ expect(parseClientMessage('{"type":"auth_reply","flowId":"f","cancelled":true}')).toEqual({+ type: "auth_reply",+ flowId: "f",+ cancelled: true,+ });});it("rejects malformed or unknown messages", () => {@@ -34,6 +49,8 @@ describe("protocol", () => {'{"type":"ui_response","requestId":"a"}','{"type":"open_conversation"}','{"type":"shell","cmd":"rm"}',+ '{"type":"auth_login","providerId":"x","method":"password"}',+ '{"type":"auth_reply","flowId":"f"}',]) {expect(parseClientMessage(raw), raw).toBeUndefined();}diff --git a/packages/ui/package.json b/packages/ui/package.jsonindex 5a6edaa..21d10ee 100644--- a/packages/ui/package.json+++ b/packages/ui/package.json@@ -10,6 +10,7 @@"dependencies": {"@gentle-dot/protocol": "workspace:*","@tauri-apps/api": "^2.12.1",+ "@tauri-apps/plugin-opener": "^2.7.0","react": "^19.3.0","react-dom": "^19.3.0","react-markdown": "^10.1.0",diff --git a/packages/ui/src/App.tsx b/packages/ui/src/App.tsxindex c5c640f..0b654ad 100644--- a/packages/ui/src/App.tsx+++ b/packages/ui/src/App.tsx@@ -36,7 +36,7 @@ export function App() {const [info, setInfo] = useState<ConnectionInfo | undefined>(undefined);const [missingToken, setMissingToken] = useState(false);const [focusKey, setFocusKey] = useState(0);- const { state, send, dismiss } = useDot(info);+ const { state, send, dismiss, dispatch } = useDot(info);useEffect(() => {if (inDesktop()) {@@ -97,6 +97,7 @@ export function App() {state={state}send={send}dismiss={dismiss}+ dispatch={dispatch}focusKey={focusKey}{...(surface === "panel" ? { onHide: hidePanel } : {})}/>diff --git a/packages/ui/src/client.ts b/packages/ui/src/client.tsindex e9972b9..bb4d040 100644--- a/packages/ui/src/client.ts+++ b/packages/ui/src/client.ts@@ -71,6 +71,7 @@ export class DotClient {this.handlers.onStatus("open");this.send({ type: "get_history" });this.send({ type: "list_conversations" });+ this.send({ type: "auth_list" });}};socket.onclose = (event: CloseEvent) => {diff --git a/packages/ui/src/components/AccountsPanel.tsx b/packages/ui/src/components/AccountsPanel.tsxnew file mode 100644index 0000000..f2c518b--- /dev/null+++ b/packages/ui/src/components/AccountsPanel.tsx@@ -0,0 +1,198 @@+import type { AuthEvent, AuthPrompt, AuthProvider } from "@gentle-dot/protocol";+import { useState } from "react";+import type { AuthState, DotAction } from "../store.ts";+import type { Send } from "./types.ts";++interface AccountsPanelProps {+ auth: AuthState;+ send: Send;+ dispatch: (action: DotAction) => void;+ openUrl: (url: string) => void;+}++/** Sign-in for subscriptions and API keys, without a terminal. */+export function AccountsPanel({ auth, send, dispatch, openUrl }: AccountsPanelProps) {+ const [filter, setFilter] = useState("");+ const flow = auth.flow;+ const busy = flow !== undefined && flow.done === undefined;+ const login = (provider: AuthProvider, method: "oauth" | "api_key") => {+ dispatch({ type: "auth_started", providerId: provider.id });+ send({ type: "auth_login", providerId: provider.id, method });+ };+ const providers = (auth.providers ?? []).filter((p) =>+ p.name.toLowerCase().includes(filter.trim().toLowerCase()),+ );+ const providerName = (id: string) => auth.providers?.find((p) => p.id === id)?.name ?? id;++ return (+ <section className="accounts" aria-label="Accounts">+ <header className="accounts-header">+ <h2>Accounts</h2>+ <button+ type="button"+ className="icon"+ aria-label="Close accounts"+ onClick={() => dispatch({ type: "accounts", open: false })}+ >+ ×+ </button>+ </header>+ <p className="muted">+ Connect the AI service you already pay for, or paste an API key. Your sign-in stays on this computer.+ </p>++ {flow ? (+ <div className="auth-flow">+ <p className="auth-flow-title">Signing in to {providerName(flow.providerId)}</p>+ {flow.events.map((event, i) => (+ // biome-ignore lint/suspicious/noArrayIndexKey: events are append-only and never reordered+ <FlowEvent key={`${event.kind}-${i}`} event={event} openUrl={openUrl} />+ ))}+ {flow.prompt ? <FlowPrompt key={flow.prompt.message} prompt={flow.prompt} send={send} /> : null}+ {busy && !flow.prompt && flow.events.length === 0 ? <p className="muted">Starting…</p> : null}+ {flow.done ? (+ <p className={`auth-result ${flow.done.ok ? "ok" : "failed"}`} role="status">+ {flow.done.ok+ ? `Connected to ${providerName(flow.providerId)}.`+ : (flow.done.message ?? "Sign-in did not finish.")}+ </p>+ ) : null}+ <div className="auth-actions">+ {busy && flow.flowId ? (+ <button+ type="button"+ onClick={() => send({ type: "auth_reply", flowId: flow.flowId ?? "", cancelled: true })}+ >+ Cancel+ </button>+ ) : null}+ {flow.done ? (+ <button type="button" onClick={() => dispatch({ type: "accounts", open: true })}>+ Back to accounts+ </button>+ ) : null}+ </div>+ </div>+ ) : (+ <>+ <input+ type="search"+ className="accounts-search"+ aria-label="Search providers"+ placeholder="Search providers"+ value={filter}+ onChange={(event) => setFilter(event.target.value)}+ />+ <ul className="providers">+ {providers.map((provider) => (+ <li key={provider.id}>+ <div className="provider-name">+ <b>{provider.name}</b>+ {provider.configured ? <span className="chip ok">Connected</span> : null}+ </div>+ <div className="provider-actions">+ {provider.methods.includes("oauth") ? (+ <button type="button" className="primary" onClick={() => login(provider, "oauth")}>+ {`Sign in with ${provider.oauthName ?? provider.name}`}+ </button>+ ) : null}+ {provider.methods.includes("api_key") ? (+ <button type="button" onClick={() => login(provider, "api_key")}>+ Use an API key+ </button>+ ) : null}+ {provider.configured && provider.source === "stored" ? (+ <button+ type="button"+ className="link"+ onClick={() => send({ type: "auth_logout", providerId: provider.id })}+ >+ Sign out+ </button>+ ) : null}+ </div>+ </li>+ ))}+ </ul>+ </>+ )}+ </section>+ );+}++function FlowEvent({ event, openUrl }: { event: AuthEvent; openUrl: (url: string) => void }) {+ switch (event.kind) {+ case "auth_url":+ return (+ <div className="auth-step">+ <p>{event.instructions ?? "Finish signing in on the provider's page."}</p>+ <button type="button" className="primary" onClick={() => openUrl(event.url)}>+ Open the sign-in page+ </button>+ </div>+ );+ case "device_code":+ return (+ <div className="auth-step">+ <p>Open the page below and enter this code:</p>+ <code className="device-code">{event.userCode}</code>+ <button type="button" className="primary" onClick={() => openUrl(event.verificationUri)}>+ Open the page+ </button>+ </div>+ );+ case "info":+ case "progress":+ return <p className="muted">{event.message}</p>;+ }+}++function FlowPrompt({ prompt, send }: { prompt: AuthPrompt; send: Send }) {+ const [value, setValue] = useState("");+ const answer = (text: string) => send({ type: "auth_reply", flowId: prompt.flowId, value: text });+ if (prompt.kind === "select") {+ return (+ <div className="auth-step">+ <p>{prompt.message}</p>+ <div className="ask-options">+ {(prompt.options ?? []).map((option) => (+ <button+ key={option.id}+ type="button"+ title={option.description}+ onClick={() => answer(option.id)}+ >+ {option.label}+ </button>+ ))}+ </div>+ </div>+ );+ }+ return (+ <form+ className="auth-step ask-form"+ onSubmit={(event) => {+ event.preventDefault();+ if (value.trim()) answer(value.trim());+ }}+ >+ <label>+ <span>{prompt.message}</span>+ <input+ type={prompt.kind === "secret" ? "password" : "text"}+ autoComplete="off"+ placeholder={+ prompt.placeholder ??+ (prompt.kind === "manual_code" ? "Paste the code or the full address here" : "")+ }+ value={value}+ onChange={(event) => setValue(event.target.value)}+ />+ </label>+ <button type="submit" className="primary" disabled={!value.trim()}>+ Continue+ </button>+ </form>+ );+}diff --git a/packages/ui/src/components/ChatSurface.tsx b/packages/ui/src/components/ChatSurface.tsxindex 80fc3ff..bc4714b 100644--- a/packages/ui/src/components/ChatSurface.tsx+++ b/packages/ui/src/components/ChatSurface.tsx@@ -1,5 +1,7 @@import { useState } from "react";-import { activeTitle, type DotState, isBusy } from "../store.ts";+import { openUrl as openExternal } from "../desktop.ts";+import { activeTitle, type DotAction, type DotState, isBusy, needsAccount } from "../store.ts";+import { AccountsPanel } from "./AccountsPanel.tsx";import { AskCard } from "./AskCard.tsx";import { Composer } from "./Composer.tsx";import { MessageList } from "./MessageList.tsx";@@ -12,6 +14,8 @@ interface ChatSurfaceProps {dismiss: (id: number) => void;onHide?: () => void;focusKey?: number;+ dispatch?: (action: DotAction) => void;+ openUrl?: (url: string) => void;}const CONTINUE_TEXT = "Continue where you left off.";@@ -27,7 +31,20 @@ function statusText(state: DotState): string | undefined {return undefined;}-export function ChatSurface({ variant, state, send, dismiss, onHide, focusKey }: ChatSurfaceProps) {+export function ChatSurface({+ variant,+ state,+ send,+ dismiss,+ onHide,+ focusKey,+ dispatch = () => {},+ openUrl = openExternal,+}: ChatSurfaceProps) {+ const openAccounts = () => {+ send({ type: "auth_list" });+ dispatch({ type: "accounts", open: true });+ };const [showConversations, setShowConversations] = useState(false);const status = statusText(state);const ready =@@ -50,6 +67,9 @@ export function ChatSurface({ variant, state, send, dismiss, onHide, focusKey }:>☰</button>+ <button type="button" className="icon" aria-label="Accounts" onClick={openAccounts}>+ ⚿+ </button><buttontype="button"className="icon"@@ -99,7 +119,22 @@ export function ChatSurface({ variant, state, send, dismiss, onHide, focusKey }:</div>) : null}- <main className="chat-body">+ {state.auth.open ? (+ <main className="chat-body">+ <AccountsPanel auth={state.auth} send={send} dispatch={dispatch} openUrl={openUrl} />+ </main>+ ) : null}++ {!state.auth.open && needsAccount(state) ? (+ <div className="onboarding">+ <p>To start, connect the AI service you use (a subscription or an API key).</p>+ <button type="button" className="primary" onClick={openAccounts}>+ Connect an AI account+ </button>+ </div>+ ) : null}++ <main className="chat-body" hidden={state.auth.open}><MessageList messages={state.messages} />{state.interrupted ? (<div className="interrupted">diff --git a/packages/ui/src/desktop.ts b/packages/ui/src/desktop.tsindex fa92d58..7b8d119 100644--- a/packages/ui/src/desktop.ts+++ b/packages/ui/src/desktop.ts@@ -21,6 +21,16 @@ export function setDotState(state: AgentState): void {if (inDesktop()) void invoke("set_dot_state", { state });}+/** Opens a web page (sign-in) in the user's browser. Only http and https. */+export function openUrl(url: string): void {+ if (!/^https?:\/\//i.test(url)) return;+ if (inDesktop()) {+ void import("@tauri-apps/plugin-opener").then(({ openUrl: open }) => open(url));+ return;+ }+ window.open(url, "_blank", "noopener,noreferrer");+}+export async function startDragging(): Promise<void> {const { getCurrentWindow } = await import("@tauri-apps/api/window");await getCurrentWindow().startDragging();diff --git a/packages/ui/src/store.ts b/packages/ui/src/store.tsindex e4e4ec1..d48bae3 100644--- a/packages/ui/src/store.ts+++ b/packages/ui/src/store.ts@@ -1,4 +1,28 @@-import type { Activity, AgentState, Ask, ConversationSummary, ServerMessage } from "@gentle-dot/protocol";+import type {+ Activity,+ AgentState,+ Ask,+ AuthEvent,+ AuthPrompt,+ AuthProvider,+ ConversationSummary,+ ServerMessage,+} from "@gentle-dot/protocol";++export interface AuthFlowState {+ providerId: string;+ flowId?: string;+ events: AuthEvent[];+ prompt?: AuthPrompt;+ done?: { ok: boolean; message?: string };+}++export interface AuthState {+ open: boolean;+ /** Undefined until the first provider list arrives. */+ providers?: AuthProvider[];+ flow?: AuthFlowState;+}export type ConnectionStatus = "connecting" | "open" | "closed" | "unauthorized";@@ -26,12 +50,15 @@ export interface DotState {conversations: ConversationSummary[];interrupted: boolean;notices: Notice[];+ auth: AuthState;}export type DotAction =| { type: "server"; message: ServerMessage }| { type: "connection"; status: ConnectionStatus }- | { type: "dismiss"; id: number };+ | { type: "dismiss"; id: number }+ | { type: "accounts"; open: boolean }+ | { type: "auth_started"; providerId: string };export const initialState: DotState = {connection: "connecting",@@ -41,6 +68,7 @@ export const initialState: DotState = {conversations: [],interrupted: false,notices: [],+ auth: { open: false },};let nextNotice = 0;@@ -55,6 +83,19 @@ export function reduce(state: DotState, action: DotAction): DotState {};case "dismiss":return { ...state, notices: state.notices.filter((n) => n.id !== action.id) };+ case "accounts": {+ // Closing drops the flow; reopening keeps a running one and leaves a finished one.+ const keep = action.open && state.auth.flow !== undefined && state.auth.flow.done === undefined;+ return {+ ...state,+ auth: { ...state.auth, open: action.open, flow: keep ? state.auth.flow : undefined },+ };+ }+ case "auth_started":+ return {+ ...state,+ auth: { ...state.auth, open: true, flow: { providerId: action.providerId, events: [] } },+ };case "server":return reduceServer(state, action.message);}@@ -121,6 +162,23 @@ function reduceServer(state: DotState, message: ServerMessage): DotState {};case "interrupted":return { ...state, interrupted: true };+ case "auth_providers":+ return {+ ...state,+ auth: { ...state.auth, providers: message.providers, open: message.open ? true : state.auth.open },+ };+ case "auth_event":+ return updateFlow(state, message.flowId, (f) => ({ ...f, events: [...f.events, message.event] }));+ case "auth_prompt":+ return updateFlow(state, message.prompt.flowId, (f) => ({ ...f, prompt: message.prompt }));+ case "auth_done":+ return updateFlow(state, message.flowId, (f) => {+ const { prompt: _prompt, ...rest } = f;+ return {+ ...rest,+ done: message.message ? { ok: message.ok, message: message.message } : { ok: message.ok },+ };+ });case "toast":return addNotice(state, message.level, message.message);case "error":@@ -128,6 +186,17 @@ function reduceServer(state: DotState, message: ServerMessage): DotState {}}+function updateFlow(state: DotState, flowId: string, update: (f: AuthFlowState) => AuthFlowState): DotState {+ const flow = state.auth.flow;+ if (!flow || (flow.flowId && flow.flowId !== flowId)) return state;+ return { ...state, auth: { ...state.auth, flow: update({ ...flow, flowId }) } };+}++/** True once providers are known and none has a working credential. */+export function needsAccount(state: DotState): boolean {+ return state.auth.providers !== undefined && !state.auth.providers.some((p) => p.configured);+}+function updateAssistant(state: DotState, id: string, update: (m: ChatMessage) => ChatMessage): DotState {const index = state.messages.findIndex((m) => m.id === id);if (index < 0) {diff --git a/packages/ui/src/styles.css b/packages/ui/src/styles.cssindex 586cbed..492fed0 100644--- a/packages/ui/src/styles.css+++ b/packages/ui/src/styles.css@@ -557,6 +557,133 @@ button.icon {border-radius: 999px;}+/* ---------- Accounts ---------- */++.onboarding {+ margin: 10px 12px 0;+ padding: 12px;+ border-radius: 14px;+ border: 1px solid var(--accent);+ background: var(--accent-soft);+}++.onboarding p {+ margin: 0 0 10px;+}++.accounts-header {+ display: flex;+ align-items: center;+ justify-content: space-between;+}++.accounts h2 {+ margin: 0;+ font-size: 16px;+}++.accounts .muted {+ margin: 4px 0 12px;+}++.accounts-search {+ width: 100%;+ padding: 8px 10px;+ border-radius: 10px;+ border: 1px solid var(--line);+ background: var(--raised);+}++.providers {+ list-style: none;+ margin: 12px 0 0;+ padding: 0;+}++.providers li {+ padding: 10px 0;+ border-bottom: 1px solid var(--line);+}++.provider-name {+ display: flex;+ align-items: center;+ gap: 8px;+ margin-bottom: 8px;+}++.provider-actions {+ display: flex;+ flex-wrap: wrap;+ gap: 8px;+}++.chip.ok {+ padding: 1px 8px;+ border-radius: 999px;+ font-size: 11px;+ background: rgba(62, 207, 142, 0.16);+ color: #3ecf8e;+}++button.link {+ border: none;+ background: none;+ color: var(--muted);+ text-decoration: underline;+}++.auth-flow {+ padding: 12px;+ border-radius: 14px;+ border: 1px solid var(--line);+ background: var(--raised);+}++.auth-flow-title {+ margin: 0 0 8px;+ font-weight: 600;+}++.auth-step {+ margin: 10px 0;+}++.auth-step p {+ margin: 0 0 8px;+}++.auth-step label {+ display: flex;+ flex-direction: column;+ gap: 6px;+ flex: 1 1 100%;+}++.device-code {+ display: block;+ margin: 0 0 10px;+ font:+ 600 22px / 28px "SF Mono",+ ui-monospace,+ Menlo,+ monospace;+ letter-spacing: 0.08em;+}++.auth-result.ok {+ color: #3ecf8e;+}++.auth-result.failed {+ color: var(--danger);+}++.auth-actions {+ display: flex;+ gap: 8px;+}+@media (prefers-reduced-motion: reduce) {*,*::before,diff --git a/packages/ui/src/useDot.ts b/packages/ui/src/useDot.tsindex c9d79c7..be54fa6 100644--- a/packages/ui/src/useDot.ts+++ b/packages/ui/src/useDot.ts@@ -34,5 +34,5 @@ export function useDot(info: ConnectionInfo | undefined) {}, []);const dismiss = useCallback((id: number) => dispatch({ type: "dismiss", id }), []);- return { state, send, dismiss };+ return { state, send, dismiss, dispatch };}diff --git a/packages/ui/test/accounts.test.tsx b/packages/ui/test/accounts.test.tsxnew file mode 100644index 0000000..b151d3b--- /dev/null+++ b/packages/ui/test/accounts.test.tsx@@ -0,0 +1,187 @@+import type { ServerMessage, ServerPayload } from "@gentle-dot/protocol";+import { render, screen } from "@testing-library/react";+import userEvent from "@testing-library/user-event";+import { describe, expect, it, vi } from "vitest";+import { AccountsPanel } from "../src/components/AccountsPanel.tsx";+import { ChatSurface } from "../src/components/ChatSurface.tsx";+import { type DotState, initialState, reduce } from "../src/store.ts";++const providers = [+ {+ id: "anthropic",+ name: "Anthropic",+ methods: ["oauth", "api_key"] as const,+ oauthName: "Claude Pro/Max",+ configured: false,+ },+ { id: "openai", name: "OpenAI", methods: ["api_key"] as const, configured: true, source: "stored" },+].map((p) => ({ ...p, methods: [...p.methods] }));++function apply(state: DotState, ...payloads: ServerPayload[]): DotState {+ return payloads.reduce(+ (s, p) => reduce(s, { type: "server", message: { ...p, seq: 1 } as ServerMessage }),+ state,+ );+}++function base(): DotState {+ return apply(+ { ...initialState, connection: "open", agentState: "idle" },+ { type: "auth_providers", providers },+ );+}++describe("auth state", () => {+ it("opens the accounts screen when the server asks (/login)", () => {+ const s = apply(base(), { type: "auth_providers", providers, open: true });+ expect(s.auth.open).toBe(true);+ });++ it("tracks one flow: started, link, prompt, and result", () => {+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ expect(s.auth.flow).toMatchObject({ providerId: "anthropic", events: [] });+ s = apply(+ s,+ { type: "auth_event", flowId: "f1", event: { kind: "auth_url", url: "https://example.com/a" } },+ { type: "auth_prompt", prompt: { flowId: "f1", kind: "manual_code", message: "Paste the code" } },+ );+ expect(s.auth.flow).toMatchObject({ flowId: "f1", prompt: { kind: "manual_code" } });+ s = apply(s, { type: "auth_done", flowId: "f1", providerId: "anthropic", ok: true });+ expect(s.auth.flow).toMatchObject({ done: { ok: true } });+ expect(s.auth.flow?.prompt).toBeUndefined();+ });++ it("goes back to the provider list after a finished sign-in", () => {+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ s = apply(s, { type: "auth_done", flowId: "f1", providerId: "anthropic", ok: true });+ s = reduce(s, { type: "accounts", open: true });+ expect(s.auth).toMatchObject({ open: true, flow: undefined });+ });++ it("keeps a running sign-in when the accounts screen is reopened", () => {+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ s = reduce(s, { type: "accounts", open: true });+ expect(s.auth.flow?.providerId).toBe("anthropic");+ });+});++describe("AccountsPanel", () => {+ it("lists providers with their status and sign-in options", async () => {+ const send = vi.fn();+ const dispatch = vi.fn();+ render(<AccountsPanel auth={base().auth} send={send} dispatch={dispatch} openUrl={vi.fn()} />);+ expect(screen.getByText("Anthropic")).toBeInTheDocument();+ expect(screen.getByText("Connected")).toBeInTheDocument();+ await userEvent.click(screen.getByRole("button", { name: "Sign in with Claude Pro/Max" }));+ expect(send).toHaveBeenCalledWith({ type: "auth_login", providerId: "anthropic", method: "oauth" });+ expect(dispatch).toHaveBeenCalledWith({ type: "auth_started", providerId: "anthropic" });+ await userEvent.click(screen.getAllByRole("button", { name: "Use an API key" })[0] as HTMLElement);+ expect(send).toHaveBeenCalledWith({ type: "auth_login", providerId: "anthropic", method: "api_key" });+ });++ it("filters providers by name", async () => {+ render(<AccountsPanel auth={base().auth} send={vi.fn()} dispatch={vi.fn()} openUrl={vi.fn()} />);+ await userEvent.type(screen.getByRole("searchbox", { name: "Search providers" }), "open");+ expect(screen.queryByText("Anthropic")).toBeNull();+ expect(screen.getByText("OpenAI")).toBeInTheDocument();+ });++ it("opens the sign-in page, takes the pasted code, and can cancel", async () => {+ const send = vi.fn();+ const openUrl = vi.fn();+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ s = apply(+ s,+ {+ type: "auth_event",+ flowId: "f1",+ event: { kind: "auth_url", url: "https://example.com/a", instructions: "Sign in" },+ },+ {+ type: "auth_prompt",+ prompt: { flowId: "f1", kind: "manual_code", message: "Paste the code", placeholder: "code" },+ },+ );+ render(<AccountsPanel auth={s.auth} send={send} dispatch={vi.fn()} openUrl={openUrl} />);+ await userEvent.click(screen.getByRole("button", { name: "Open the sign-in page" }));+ expect(openUrl).toHaveBeenCalledWith("https://example.com/a");+ await userEvent.type(screen.getByPlaceholderText("code"), "abc123");+ await userEvent.click(screen.getByRole("button", { name: "Continue" }));+ expect(send).toHaveBeenCalledWith({ type: "auth_reply", flowId: "f1", value: "abc123" });+ await userEvent.click(screen.getByRole("button", { name: "Cancel" }));+ expect(send).toHaveBeenLastCalledWith({ type: "auth_reply", flowId: "f1", cancelled: true });+ });++ it("hides a secret while typing and shows a device code to copy", () => {+ let s = reduce(base(), { type: "auth_started", providerId: "openai" });+ s = apply(+ s,+ {+ type: "auth_event",+ flowId: "f2",+ event: { kind: "device_code", userCode: "ABCD-1234", verificationUri: "https://example.com/device" },+ },+ { type: "auth_prompt", prompt: { flowId: "f2", kind: "secret", message: "Enter your API key" } },+ );+ render(<AccountsPanel auth={s.auth} send={vi.fn()} dispatch={vi.fn()} openUrl={vi.fn()} />);+ expect(screen.getByText("ABCD-1234")).toBeInTheDocument();+ expect(screen.getByLabelText("Enter your API key")).toHaveAttribute("type", "password");+ });++ it("answers a choice prompt with the option id", async () => {+ const send = vi.fn();+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ s = apply(s, {+ type: "auth_prompt",+ prompt: {+ flowId: "f3",+ kind: "select",+ message: "Choose a plan",+ options: [{ id: "max", label: "Max" }],+ },+ });+ render(<AccountsPanel auth={s.auth} send={send} dispatch={vi.fn()} openUrl={vi.fn()} />);+ await userEvent.click(screen.getByRole("button", { name: "Max" }));+ expect(send).toHaveBeenCalledWith({ type: "auth_reply", flowId: "f3", value: "max" });+ });++ it("reports the result in plain words", () => {+ let s = reduce(base(), { type: "auth_started", providerId: "anthropic" });+ s = apply(s, { type: "auth_done", flowId: "f1", providerId: "anthropic", ok: true });+ const { rerender } = render(+ <AccountsPanel auth={s.auth} send={vi.fn()} dispatch={vi.fn()} openUrl={vi.fn()} />,+ );+ expect(screen.getByRole("status")).toHaveTextContent("Connected to Anthropic.");+ s = apply(reduce(base(), { type: "auth_started", providerId: "anthropic" }), {+ type: "auth_done",+ flowId: "f9",+ providerId: "anthropic",+ ok: false,+ message: "Sign-in cancelled.",+ });+ rerender(<AccountsPanel auth={s.auth} send={vi.fn()} dispatch={vi.fn()} openUrl={vi.fn()} />);+ expect(screen.getByRole("status")).toHaveTextContent("Sign-in cancelled.");+ });+});++describe("ChatSurface onboarding", () => {+ it("asks to connect an account when none is configured", async () => {+ const dispatch = vi.fn();+ const s = apply(+ { ...initialState, connection: "open", agentState: "idle" },+ { type: "auth_providers", providers: providers.map((p) => ({ ...p, configured: false })) },+ );+ render(<ChatSurface variant="web" state={s} send={vi.fn()} dismiss={vi.fn()} dispatch={dispatch} />);+ await userEvent.click(screen.getByRole("button", { name: "Connect an AI account" }));+ expect(dispatch).toHaveBeenCalledWith({ type: "accounts", open: true });+ });++ it("opens accounts from the header", async () => {+ const dispatch = vi.fn();+ const send = vi.fn();+ render(<ChatSurface variant="web" state={base()} send={send} dismiss={vi.fn()} dispatch={dispatch} />);+ await userEvent.click(screen.getByRole("button", { name: "Accounts" }));+ expect(dispatch).toHaveBeenCalledWith({ type: "accounts", open: true });+ expect(send).toHaveBeenCalledWith({ type: "auth_list" });+ });+});diff --git a/packages/ui/test/client.test.ts b/packages/ui/test/client.test.tsindex f71ed15..da45116 100644--- a/packages/ui/test/client.test.ts+++ b/packages/ui/test/client.test.ts@@ -55,7 +55,7 @@ beforeEach(() => {afterEach(() => vi.useRealTimers());describe("DotClient", () => {- it("says hello with the token, then asks for history and conversations once ready", () => {+ it("says hello with the token, then asks for history, conversations, and accounts once ready", () => {const { client, statuses, messages } = makeClient();client.start();const socket = FakeSocket.all[0];@@ -64,7 +64,11 @@ describe("DotClient", () => {socket?.receive({ type: "ready", agentState: "idle" });expect(statuses.at(-1)).toBe("open");expect(messages.map((m) => m.type)).toEqual(["ready"]);- expect(socket?.sent.slice(1)).toEqual([{ type: "get_history" }, { type: "list_conversations" }]);+ expect(socket?.sent.slice(1)).toEqual([+ { type: "get_history" },+ { type: "list_conversations" },+ { type: "auth_list" },+ ]);});it("reconnects with backoff after a drop", () => {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 2137d01..cd4d949 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -22,7 +22,7 @@ importers:version: 7.0.2vitest:specifier: ^5.0.3- version: 5.0.3(@types/[email protected])([email protected])([email protected](@types/[email protected]))+ version: 5.0.3(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))apps/desktop:devDependencies:@@ -32,9 +32,21 @@ importers:packages/daemon:dependencies:+ '@earendil-works/pi-ai':+ specifier: 1.0.4+ version: 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ '@earendil-works/pi-coding-agent':+ specifier: 1.0.4+ '@earendil-works/pi-tui':+ specifier: 1.0.4+ version: 1.0.4'@gentle-dot/protocol':specifier: workspace:*version: link:../protocol+ gentle-pi:+ specifier: 4.0.0+ version: 4.0.0(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected]))(@earendil-works/[email protected])([email protected])ws:specifier: ^8.22.0version: 8.22.0@@ -53,6 +65,9 @@ importers:'@tauri-apps/api':specifier: ^2.12.1version: 2.12.1+ '@tauri-apps/plugin-opener':+ specifier: ^2.7.0+ version: 2.7.0react:specifier: ^19.3.0version: 19.3.0@@ -68,7 +83,7 @@ importers:devDependencies:'@testing-library/jest-dom':specifier: ^7.0.1- version: 7.0.1(@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])))+ version: 7.0.1(@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])))'@testing-library/react':specifier: ^16.3.3version: 16.3.3(@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])@@ -83,19 +98,28 @@ importers:version: 19.3.0(@types/[email protected])'@vitejs/plugin-react':specifier: ^6.1.2- version: 6.1.2([email protected](@types/[email protected]))+ version: 6.1.2([email protected](@types/[email protected])([email protected])([email protected])([email protected]))jsdom:specifier: ^30.1.2version: 30.1.2vite:specifier: ^8.3.3- version: 8.3.3(@types/[email protected])packages:'@adobe/[email protected]':resolution: {integrity: sha512-6OzddxPio9UiWTCemp4N8cYLV2ZN1ncRnV1cVGtve7dhPOtRkleRyx32GQCYSwDYgaHU3USMm84tNsvKzRCa1Q==}+ '@anthropic-ai/[email protected]':+ resolution: {integrity: sha512-MH7LB20kNpGLUpPTe2OG5XvL/KhX8HUO9XyBaFjgFk6TLS4Xjt0VPIuMKywe7POKKPslX+QxSlVok9e+8kG5Nw==}+ hasBin: true+ peerDependencies:+ zod: ^3.25.0 || ^4.0.0+ peerDependenciesMeta:+ zod:+ optional: true+'@asamuzakjp/[email protected]':resolution: {integrity: sha512-1t1U8Cm3RBl9vh3RAZhjkPaduzLSvQJRToRrxpGR/eDRW99mOREleuu+mWfiFa795bUzjwht7NgphCKTs2ianQ==}engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}@@ -104,6 +128,86 @@ packages:resolution: {integrity: sha512-YnVzxDxLaqL0t7Q4wfcgHZjg55Wm6y5EaO7Bhu3q9J7wq/8iw3PhsnWiOQhYekx4VexnbkgWpTT6n+QIV7kczw==}engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}+ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-IDl/lrPb90aH+pZFHGNDmgH9nAUQj5PlZH1sJ3w7RikctyjHSnY3oNjZhrLoaBoQn/rNK0zsP6OHEqEhj2tdLA==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-LbY9aGsEiznDWmUc30Nwv3aIX/+dbwTx8KfS0yOC3NPYMO+O91e6jkT1azf34FwjOndq8/Q+RcVVZz5xnerwdg==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-xTKO/FWJPozTIXbozVnVGoNBhaGba8TBcx+KyUjRVeOlXE+dUc7GTR1cLvu0uTdIdmemzaFbqqCshXeZA1fZew==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-u91E/hT8f4d1xy0Jl7VG4nVKJ3lxbrZkoBTeSVoJdWBiSEUMwMS/9+e0H/aJVQV//Lt5wuzP+E69v4aRSsNTmw==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-ged4KXdBkvIC81bLvNHHuQKdKak/VXhQTR1NWYTTqW0474nlmsxy9O/vlgTIohDDWH3xpBdtVMZRyjb+DnocDA==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-L+Z85anONJd8MaiuraO4wRxATCdEejBZ3K3eymzWI5JPXa9sOS9CkIm72PBKqXKX+Z9p9NGMX5AIMXm0LEflgw==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-oHt854odINVwzwsh+c5x69j0ajm4DbqqqVJ+O1ECsCIZeMDAbzFpXItaqP7UZstJj/ATdTk/KFSH0LaNAgV+kA==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-rLIp2xbMjX/k9/od7APpqq1ZgXXnV0pOL1Th3ZsL8Wu0TRtBsDTVS8iPqcfRFcHakFxPvR04OSTv2ka2qOb/2A==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-IGihaJfFZYacJJr/odqILCoK7W/mvrZ7cuK7ECn3sAu4vLC6u0V8bS7mCGbdugJ8Aum2tnvqmx0F2MRFp2rn9g==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-/y9WvNtlcPBGLR0qc1a+9J/xtYZfVczvLUOuXaVWylzttH7ewsxwHtjmiJSolNrVSDorIxHGHMU61CbonRkmwA==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-a8xilRoRaalvSPZdfrs0VY3/BPc0uYhXW56Z/k6nmZ5Vk430LHeowf9APIPq8utM3tMJSNGSSuJMlB9YrPsN+A==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-B6gvZlcnRBNWraKgyEjKsbhv+VjtbyHmpU7hmtTHzXpDSxHPpCJnYLpglEOOsF+SFne20DbZC5IVC1aNr2Pb4A==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-bhESdru8u8KosziH8jcVta/NM/dNreeRz2+2aU86si5bfBYOiJ6IiqD+9U4URUcU5WJO3Yw+jO3GLDIHlscXMQ==}+ engines: {node: '>= 14.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-oRxtBcka/JGHGs9l9p9IVajGoTP8vTPmoAzdHGy4Qcy9P5vPnDf6nhIeM/COQNY9k/OahImTRaLkHftoXvfcmQ==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-Zk08macMvQTHzQJCLJVkOlviVoqwYMrpXv4lmLN7b7sAbiMoOK7Go0NYdR5UeF+MW8LIbRmwrNy9u/5VvX1U5g==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-Dv2TMWBshJ+tF6ahs2Sy5bh4Iabsd4GAQqVvE9XZmYmnoaVbpS2QKIKE/HRacc7bTtbjEEvP+laGzHvHlf1CiQ==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-GpyAr0DD63YOEmYFM6Df+gJuIgC92MMTiBK4FTKfxii5MJ9ge20epR7LyroulscYlG89J+ZB2ivFDPjvfQhzdw==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-v/clNZzZnDxGyvpHMOGpJKVXFAExJzUNAAjaWGdcx8QAcXLGwTaOkw33p5SHAi0YAioK32xB3hWwOekRVfmfKg==}+ engines: {node: '>=20.0.0'}++ '@aws-sdk/[email protected]':+ resolution: {integrity: sha512-ctjVSyCMegrWfXlx6VqzSBFI6UqmQ5ZlnfMhdLIiWmhoH8UAQxSCP5N3OpG7X3k4LnS7ou74C4mt20+bfTW2aQ==}+ engines: {node: '>=20.0.0'}++ '@aws/[email protected]':+ resolution: {integrity: sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==}+ engines: {node: '>=18.0.0'}+'@babel/[email protected]':resolution: {integrity: sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==}engines: {node: '>=6.9.0'}@@ -213,6 +317,196 @@ packages:resolution: {integrity: sha512-OoKoR0f76dCY666JlcbhmVTs2drYj1GUXZTYTcbUgJjh9Nv41aFfZ21bPQTERm5+L5cBDo466NltB2lplS5GBw==}engines: {node: '>=20.19.0'}+ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-d2JZw2utoa/reoSmL07O71wsXiMDhIlnnxTb4LCNV+Oq8Evj2rGLvjVuYrlXZGbXUr0IDNfvd1RT/utCY1UhkQ==}+ engines: {node: '>=22.19.0'}++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-/xGICE+N/+G9N7KfYFSxlE8G8fQcBlLHKiY+j1Ehz9vvb1zhvGneWosFK56d2qmA5oteafeG7yKr2nqU4ed9ig==}+ engines: {node: '>=22.19.0'}++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-/Eu5R0gfor6wcmRcVyOmulUiZmsHJ0bKu5wXXnpCoSHF3y4FnW4fgnjRlLjNza8NJWXdvW5Uew90Zukx7Sh2rw==}+ engines: {node: '>=22.19.0'}+ hasBin: true++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-e198pjBsdEQJ/RCjJ9ZeYIjRaQYWUgtoZbPCmJ57auuOsiRsBXeSZ1aiWtTah0/7gx97WIOD1XqHvgRU0gOXtg==}+ engines: {node: '>=22.19.0'}++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-+956nfMFHr5lDUVY/2Q4k+YzojzBuCaBXFgj0eSlXVGr7QVliVddKdc1Pz6yVg1dOlJQmb67doOVrlMsIcIdaw==}+ engines: {node: '>=22.19.0'}+ hasBin: true++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-I6SqOqrKED+XrjkkFIXY7Ze38QtXtjojPJlQsJ2v5soCPV4QI1bNxXDwQaqzZ2a+6pNN8meWrRw1qkSMbPy9QQ==}+ engines: {node: '>=22.19.0'}++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-DL2eXXtnL5/VQkuQd97fL57GXTG1/zKHtMmDsrv8tGeJ5EgYYTWvzy44dqbYL0lD0Z22v/NOwqU3PHO75HVrqA==}+ engines: {node: '>=22.19.0'}++ '@earendil-works/[email protected]':+ resolution: {integrity: sha512-TgvDJohtxvG3XWQID5w6bwEyBocywdG0F9yHZtP+Ywvtiq9RgeSMbeB8quUobk7/4ko6IvFOQo45AqIqNVr8Rg==}+ engines: {node: '>=22.19.0'}++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [aix]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [android]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [darwin]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [freebsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==}+ engines: {node: '>=18'}+ cpu: [arm]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==}+ engines: {node: '>=18'}+ cpu: [loong64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==}+ engines: {node: '>=18'}+ cpu: [mips64el]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==}+ engines: {node: '>=18'}+ cpu: [ppc64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==}+ engines: {node: '>=18'}+ cpu: [riscv64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==}+ engines: {node: '>=18'}+ cpu: [s390x]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [linux]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [netbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [openbsd]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [openharmony]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [sunos]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==}+ engines: {node: '>=18'}+ cpu: [arm64]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==}+ engines: {node: '>=18'}+ cpu: [ia32]+ os: [win32]++ '@esbuild/[email protected]':+ resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==}+ engines: {node: '>=18'}+ cpu: [x64]+ os: [win32]+'@exodus/[email protected]':resolution: {integrity: sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==}engines: {node: ^20.19.0 || ^22.12.0 || >=24.0.0}@@ -222,6 +516,77 @@ packages:'@noble/hashes':optional: true+ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-hGOo0wlxdhObNdK9lTNhNIrzOs99l352E0QqglD/3H1B6LsSVoVHxNeR09RmiSoIM1lOJ+FnkpXOJ5EZXSGl0w==}+ cpu: [arm64]+ os: [android]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-Y0A1f9/UHYg0ej35rnt8Q2A2DMbBzRa4Fc9WpoBST/oVvWOQ7v5JF5ko7NAapOFM0N5oaB9oey1Hsshs6LIyYA==}+ cpu: [arm64]+ os: [darwin]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-qQnmQWnotuOne10vtVHoMKTxCSANaJ3a/cegBKvfN8cZCr4b4Vtg51APADh8U3AwsI/k61rJQgjy6BqdBYj3cw==}+ cpu: [x64]+ os: [darwin]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-JwfgfwL4V0+tJCc1HW3In++1c+EZLix0ecV/k4b+8DyzSGh3GPZB1i7F4JXQFHVibs71mLeFEJO4owglullZNw==}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-g0ggmohZiVkNQsNho1r6I06sk8jlKmb8gzmmgL8HeDcaxyiZnxQrqxHmvwROP7T0scEbZGSOle/gyyqfcBRvjg==}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-oC8Tlg/+aNbdfEkj4QtVCbrqYUEjQZkP/e1KLwv142+dwjgxHQKQGSIKB67IvP07DKazvUG/0I0YR91dP/ClLA==}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-voj2gFq6knjzXKNy2k7EyqoXizv/VZbJ6bfq7enMI5T+tCM0cKlSEjwlBOMaVj+cxrh6fSb5vnnPjhBSuZcxmA==}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-GFfA21vuxcyqZZ2pSq7V5ClAKIVrWLulK5h93wjUc308zyxApY2luJdyIBHtw93UTkJQ079mRMPIthkeCEEn9A==}+ cpu: [arm64]+ os: [win32]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-EjOHtxRNmZnjrNx2fahiAhP2wLDad6tlLL3cIk3snEzHpP30VygZMcuq3u8fNBZOeHgEPGRnqkfhILQDyblvJQ==}+ cpu: [x64]+ os: [win32]++ '@ff-labs/[email protected]':+ resolution: {integrity: sha512-TYp7dgX7IIwwvYTCCHmPs+Ymt/z9w6+kKDfwZhFgU7pFBIHPkmQbLwuwQdUvngvZMgUuHyKTo7irzinjT8UWgQ==}+ engines: {node: '>=18.0.0'}+ cpu: [x64, arm64]+ os: [darwin, linux, win32, android]++ '@google/[email protected]':+ resolution: {integrity: sha512-+PDtco2/Z0ONdzCGekCoCT+O1VJS9xJQNN4XzQpXG/t3El/SWWMkCWlFRO1KmivOHPa4Q0VjUYu1HBKCZ/v33Q==}+ engines: {node: '>=20.0.0'}+ peerDependencies:+ '@modelcontextprotocol/sdk': ^1.25.2+ peerDependenciesMeta:+ '@modelcontextprotocol/sdk':+ optional: true++ '@heyhuynhgiabuu/[email protected]':+ resolution: {integrity: sha512-4Jj+n6ZBFdn979fWAA3nMcJ45Q5qtcLeq1Pe6+Oo2LDIpDhqv7heoTKkBpq9G74/pNYc0EaXR28pssQ5Wbc5bg==}+ peerDependencies:+ '@earendil-works/pi-ai': '*'+ '@earendil-works/pi-coding-agent': '*'+ '@earendil-works/pi-tui': '*'+'@jridgewell/[email protected]':resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}engines: {node: '>=6.0.0'}@@ -240,6 +605,33 @@ packages:engines: {node: '>=20'}hasBin: true+ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==}++ '@protobufjs/[email protected]':+ resolution: {integrity: sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==}+'@rolldown/[email protected]':resolution: {integrity: sha512-dB/a1214qKfHMXCpgqR4OZT+jS4kTyEXbQGJPqzobt5EwH5rX080pxE37alt3RzvR1bf1Yz/yGqRfrYAxuPw0A==}engines: {node: ^20.19.0 || >=22.12.0}@@ -339,6 +731,100 @@ packages:'@rolldown/[email protected]':resolution: {integrity: sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-zas7qVanoL30c0LNeU5SHJKrYOrb/13/wXe0NLWfvc8GpnaDrUHuLG5I9wfHYdhVa+R71VH5IiwsM8aZ2akoNw==}+ engines: {node: '>=20'}+ hasBin: true++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-hxT0YF4ExEqB8G/qFdtJvpmHXBYJ2lWW7qTHDarVkIudPFE6iCIrqdgWxGn5s+ppkGXI0aEGlibI0PAyzP3zlw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-6CIgwq+bt2JZ3OSjb/nBkkwEf/CfpHcbam+Mg5Pllco7HAGRQ2/EFhZrrJtbyNTgKwknfVS+llsXGygiDGwJWw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-7PW0Nm49DcoUIQEXlJhNNBHyoGMjalRETTCcjMqEaMoJRLljy1Bi/EGV3/qLBgLKQejdspiiYuHGQW6dX94Nag==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-Ed6UdEj84LyYkwnxM5CvSMWAD+id9ExTYri0/+x41U9zrgNifPSS9lZm0JqBP0VfYI8yr8tY5nbNq9+p9R0kFA==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-UpCB9Y2sUKlS9z8juFSKz7ZtysmeXCgnRF0dlhXBkmQnek7lAToPte8DkxmEYGNTMii72zU/lyXiCB6StuZeJg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-dKVmbJecVdB9recl8a/CU4jdpNXyjJQrIcesIkpS70s5HS02ohpnCSpMUbotPnEUzbAcLQ+S4hwZYbkBBiTcJw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-KaXby5dvoeuZzN0rYQiPMjFoUrz4hgwIE+D6Du9owcHcl6/g16/yT5BQxSW5cGt2MZBz6Hl0YuRqf12omRfUUg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-wwBTqwduXSz0X4v9Qa2EWeFaYJEw1clCncWjoRNQRbVDu3SPRTRWucnouYapKj3b8Q+sk/41Vbc4B5c8nuYzLA==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-M6UMPrSa3fN5ayeJwFVl9qWofl273wtK1VG8ySDZ1mQBfhCpdd8nEx7nPZ/tk7k+TYcpqBZzj/AnwxT9lO+HJw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-UM7ShlA8oz0OWxLLO8BmO9Ip6fVqdkt8yF0EH7nOCqHfrx1eEAzF0ZUVK7L+I8NEgeu1PEWSRlxaiPPeCb4iDg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-mjCafwt8lJJaVSsQvNVrJumbnnj1RI8jbUKrPKgE6E3OvQKxnuRoBaYC51H4IGHePsGN/QtALglWBU7DoKDFnA==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-zGb87H3UBbpuI4yoh5UguB1XbU+2BDU3kflM7UfZ+Cy2hWo9lBtqjSVK20gmLY6ukYl040hAypGXMgud9vul8Q==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-qzbeRooUTPnLE+sHD/Z8DStmaDgnbbc/pMrU203950aRqjX/6AFHeDYT+j00y2lPdz0ywJKx7o/7qnqTivtlXg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-drtPrtD8N0DENyD2cyt6Ajy+IWsiCLgMxODwLTpvH1UsN6a9jf90tNTPjqwHvA+0Lzu9e0txk8DjfqH1p9UJRw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}++ '@silvia-odwyer/[email protected]':+ resolution: {integrity: sha512-bnly4BKB3KDTFxrUIcgCLbaeVVS8lrAkri1pEzskpmxu9MdfGQTy8b8EgcD83ywD3RPMsIulY8xJH5Awa+t9fA==}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-i4YPS4B6ts7bjn7UwLnGjiZdprOvHvgGobFZsYK3GIY3E5hIqtj0rReU69BcTpGp+fvtraSNXeG1l+jtJvF55w==}+ engines: {node: '>=18.0.0'}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==}+ engines: {node: '>=18.0.0'}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==}+ engines: {node: '>=18.0.0'}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-ThMkboGeONWXAelq9FvGsuJC4rOi+qyC4/zhUF58xYpxUg5sQKx2VXZYJmtNjr4dSuBJ1HeJXETQILCz3wOHvw==}+ engines: {node: '>=18.0.0'}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-tHy0K0VtqNd5Y7Y41h0a0Lhh0L1GzC08dTWg0F7vRJWFtTENg7IZikf3wQkanYIRdb7ngoIPMTmqgUi401fEeQ==}+ engines: {node: '>=18.0.0'}++ '@smithy/[email protected]':+ resolution: {integrity: sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==}+ engines: {node: '>=18.0.0'}++ '@stablelib/[email protected]':+ resolution: {integrity: sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==}+'@tauri-apps/[email protected]':resolution: {integrity: sha512-DeyFHa3wynpyoqTDikDEDGTJIq4LQ5USfolQGRmGIWT6JMADyxZBTDa5cAdT3tDg73rUXufPaCwN7aXBos4OnQ==}@@ -418,6 +904,9 @@ packages:engines: {node: '>= 10'}hasBin: true+ '@tauri-apps/[email protected]':+ resolution: {integrity: sha512-mBorYfVKh9Lt7s4ZFtKbMUTxBw+Y/sVmSlKCtkkoBgMTC/DIbt/kaPm67L/2djAUqDI1wbixy5OHHVmipjuGMw==}+'@testing-library/[email protected]':resolution: {integrity: sha512-yzr2S9HyAIdhz2/6qHgbs665Q7PKVcDF05vsOlHPxG1mo36gKVesdYVeDLnXgfjJ03CrKRk08knc6+E/9m8v2Q==}engines: {node: '>=18'}@@ -491,6 +980,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==}+ '@types/[email protected]':+ resolution: {integrity: sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==}+'@types/[email protected]':resolution: {integrity: sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==}@@ -653,6 +1145,84 @@ packages:'@vitest/[email protected]':resolution: {integrity: sha512-XhFysQTB8AZ+P4gMi+Lpo99vg2AZi0qKpaB9yXQl37+CaMEAPO3iH/wGVnSyL5MPERiLezpqTVtrR6UZH5GCXg==}+ '@yuuang/[email protected]':+ resolution: {integrity: sha512-t6Wx3Xll6c07Nuk0k3xnZsxKFxlshm92i0U/BiTHc6kQbvu+fMJF+gKsj4yEj886jH51CM3EqZT9Xdhq9CdUVw==}+ engines: {node: '>= 12'}+ cpu: [arm64]+ os: [android]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-OueBlUFBT9IwD9pQnoYs0UszRBEySskfrEPXXfvKfGjL/DXnfn6kUheQ3oIP6sSmshVGNQUwrTCPo6feAa4QjA==}+ engines: {node: '>= 12'}+ cpu: [arm64]+ os: [darwin]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-x4mxXOKwSgwYx6OBAKrW+Ocp8um2KoPpUwaD0Z2tmR6EekoRvFGN7s/eEK1avqCxcsLN7/MzGOnCCFyGpOVfPA==}+ engines: {node: '>= 12'}+ cpu: [x64]+ os: [darwin]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-9r//Z022QYVoIAY458Dpk8HWkisk/y4NJC3d52RlkdsLD+9p0zn0cKKSoMF/xUsOWDFSmOf+cwU/Xadi/wxFMQ==}+ engines: {node: '>= 12'}+ cpu: [arm]+ os: [linux]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-nrW4MlFlyQInfxTsI5wtcIpbV4KlHLWo2BCk4CHIETlUT+PUspNFqDg+Byy7My3hpCZlXp0WsMVP/3N0LlybNw==}+ engines: {node: '>= 12'}+ cpu: [arm64]+ os: [linux]+ libc: [glibc]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-eLLx4P8DzNnuPif19nAvKPaf88lSf6KFbDetH3nAIRZvI495h0jigN835Ayr7uAADssohGfO9MPMH33DXmFErA==}+ engines: {node: '>= 12'}+ cpu: [arm64]+ os: [linux]+ libc: [musl]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-upEz1Q98T51x2In872fsjgHCJbE3e8r9JxhJD+5NvSMk6BpieYWRodTbsMxV6oKWmfl12loKwF2j4OBSWKl0lA==}+ engines: {node: '>= 12'}+ cpu: [x64]+ os: [linux]+ libc: [glibc]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-YOcOkIwVvIhpwuGJ428h15vpE0KnT3teFG0g2J31FrBxrVh9IH4HeTGXjelI3l9SI5gyiZDnD4PQnQ1U6oqTcA==}+ engines: {node: '>= 12'}+ cpu: [x64]+ os: [linux]+ libc: [musl]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-ZfYzLV1w7Mhzh9XRScEMpw9oazIEiwO+0+TYHHRL882d5oD0Q99YikmRhdifsoHCCQefKmWF/4BXCeFkzg8NFA==}+ engines: {node: '>= 12'}+ cpu: [arm64]+ os: [win32]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-ifYz+f+giKpT39lKWDru+om6QnA9J7J953ns60xHgB46ESZvPd/Y2W5+PesRNC9U+vnFEiLZ9CNC+R3fBWC1pg==}+ engines: {node: '>= 12'}+ cpu: [x64, ia32]+ os: [win32]++ '@yuuang/[email protected]':+ resolution: {integrity: sha512-H3s4wOLtZtKtmuPjUNE+bhnSKxxpXcuxG70jRC8dUMHqIm5iCvdoZ4XYDeq7/uUYlySerXFmRL4dAVCX/TUNTg==}+ engines: {node: '>= 12'}+ cpu: [x64]+ os: [win32]++ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==}+ engines: {node: '>= 20'}+resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}engines: {node: '>=8'}@@ -661,6 +1231,10 @@ packages:resolution: {integrity: sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==}engines: {node: '>=10'}+ resolution: {integrity: sha512-9k3v7xcHwgdO/DruxGIg4HtjvlAZlcnsX/mzqUb1t3NkYnl9kK2UJ+Gq0io+vQf7iT//BD/HB/NBkUR1LWxoeA==}+ engines: {node: '>=14'}+resolution: {integrity: sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==}@@ -675,8 +1249,32 @@ packages:resolution: {integrity: sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==}- resolution: {integrity: sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==}+ resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==}+ engines: {node: 18 || 20 || >=22}++ resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==}++ resolution: {integrity: sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==}++ resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==}++ resolution: {integrity: sha512-tzPjzCxygAKWFOJP011oxFHs57HzIhOEracIgAePE4pqB3LikALKnSzUyU4MGs9/iCEUuHlAJTjTc5M+u7YEGg==}++ resolution: {integrity: sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==}+ engines: {node: 20 || >=22}++ resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==}++ resolution: {integrity: sha512-tixWYgm5ZoOD+3g6UTea91eow5z6AAHaho3g0V9CNSNb45gM8SmflpAc+GRd1InC4AqN/07Unrgp56Y94N9hJQ==}+ engines: {node: '>=20.19.0'}resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}@@ -685,6 +1283,10 @@ packages:resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==}engines: {node: '>=18'}+ resolution: {integrity: sha512-2uNTXIuTTxk7ciZgAU1BQcgnchcG0xXnrs6jzkQfj9SsRa9M2s5zE8WT96hS6KmG4MzWHSrvH43DF1m4XRkrFg==}+ engines: {node: '>=22'}+resolution: {integrity: sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==}@@ -700,6 +1302,10 @@ packages:resolution: {integrity: sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==}+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}+ engines: {node: '>= 8'}+resolution: {integrity: sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==}engines: {node: ^10 || ^12.20.0 || ^14.13.0 || >=15.0.0}@@ -710,6 +1316,10 @@ packages:resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}+ engines: {node: '>= 12'}+resolution: {integrity: sha512-JQUCCK+/CAGbGGx618PlFZMXH81Jtj7t73CHv9dd/zVWvxgGT2zLFRjnKb+Ng46GIwcy+f7f88qd4duqllK+WQ==}engines: {node: ^22.14.0 || >=24.0.0}@@ -740,12 +1350,19 @@ packages:resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==}+ resolution: {integrity: sha512-DPi0FmjiSU5EvQV0++GFDOJ9ASQUVFh5kD+OzOnYdi7n3Wpm9hWWGfB/O2blfHcMVTL5WkQXSnRiK9makhrcnw==}+ engines: {node: '>=0.3.1'}+resolution: {integrity: sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==}resolution: {integrity: sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==}+ resolution: {integrity: sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==}+resolution: {integrity: sha512-kxL7msIffSuh9aaFAMD7rxAIuTRMAHMeBtgHW2yUdWw732ZNh4MehkF2gdjvtdmikkaIP9bFDDJOPlsvm7avrA==}engines: {node: '>=20.19.0'}@@ -753,6 +1370,11 @@ packages:resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==}+ resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==}+ engines: {node: '>=18'}+ hasBin: true+resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}engines: {node: '>=12'}@@ -770,6 +1392,9 @@ packages:resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}+ resolution: {integrity: sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==}+resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}engines: {node: '>=12.0.0'}@@ -779,17 +1404,82 @@ packages:picomatch:optional: true+ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}+ engines: {node: ^12.20 || >= 14.13}++ resolution: {integrity: sha512-5MMZQS2t/6f/ec3sx0f51gBcKGZPGfolPAW04lvLOSYnr7gmOKs8YzH1Rh+34WGO+VtcgcTuxaUUoJLcR4Tirg==}++ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}+ engines: {node: '>=12.20.0'}+resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}os: [darwin]+ resolution: {integrity: sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-ZG/diWBSKPfjU4MjiHVUXxHWQvDSRS2dvpPCma4ZINuV+8UGdZAPHca6vcK27FLAAG7crlJpwdWOcwVNW4rh/Q==}+ engines: {node: '>=22.19.0'}+ hasBin: true+ peerDependencies:+ '@earendil-works/pi-ai': '*'+ '@earendil-works/pi-coding-agent': '>=0.99.1'+ '@earendil-works/pi-tui': '*'+ typebox: '*'+ peerDependenciesMeta:+ '@earendil-works/pi-ai':+ optional: true+ '@earendil-works/pi-coding-agent':+ optional: true+ '@earendil-works/pi-tui':+ optional: true++ resolution: {integrity: sha512-QRbvDIbx6YklUe6RxeTeleMR0yv3cYH6PsPZHcnVn7xv7zO1BHN8r0XETu8n6Ye3Q+ahtSarc3WgtNWmehIBfA==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==}+ engines: {node: '>=14'}++ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}++ resolution: {integrity: sha512-/4KopAbsjvuRP9MdPtlDjOHUmUVEohOX73JNcsWpzAtFxh+bq5+Dhb6gzvRieLDwIPQIR3/vy8V1NNTuz4Zsmg==}+ engines: {node: '>=18'}++ resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}+resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}+ resolution: {integrity: sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==}++ resolution: {integrity: sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==}+ engines: {node: ^20.17.0 || >=22.9.0}+resolution: {integrity: sha512-UikN5yr7xsCDAq87Or5or0PAlD3HJJOKVzM05az588WnpDJ4Ux7a2A53Qi6gofGg2/EtvF/H4hCi/TXfCW4Y6w==}engines: {node: ^22.13.0 || >=24.0.0}@@ -797,6 +1487,25 @@ packages:resolution: {integrity: sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==}+ resolution: {integrity: sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==}++ resolution: {integrity: sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==}+ engines: {node: '>= 20'}++ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}+ engines: {node: '>= 14'}++ resolution: {integrity: sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==}+ engines: {node: '>= 20'}++ resolution: {integrity: sha512-YYNsSlXBjMk92SKnkwvB5LOVSa6OznlFUGcsvrFgNJbJCd0M1XKeFVRc8ZByeCqz32FivYNHJVooLmdqrmvp/Q==}+ engines: {node: '>= 4'}+resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}engines: {node: '>=8'}@@ -823,6 +1532,13 @@ packages:resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}++ resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==}+ hasBin: true+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -835,6 +1551,19 @@ packages:canvas:optional: true+ resolution: {integrity: sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==}++ resolution: {integrity: sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==}+ engines: {node: '>=16'}++ resolution: {integrity: sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==}++ resolution: {integrity: sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==}+resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==}engines: {node: '>= 12.0.0'}@@ -909,6 +1638,9 @@ packages:resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==}engines: {node: '>= 12.0.0'}+ resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==}+resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}@@ -926,6 +1658,11 @@ packages:resolution: {integrity: sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==}+ resolution: {integrity: sha512-HnslJfsZkRPBDJRHvVtAaWlZHEpSu7u8LgQuJCELjRKuWR+hpq4A7sLq3p8HaI9ypVoXDXxV34CsQJEe1+J5Aw==}+ engines: {node: '>= 20'}+ hasBin: true+resolution: {integrity: sha512-xPgpDNl0/OXHsI7TlaIs22lWnH3KlpvZdXG1ET/m/YT2Hhdkx8lJV4kLphE6l9simyM4KPDFBwas08BgEob6Jw==}@@ -1065,6 +1802,10 @@ packages:resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==}engines: {node: '>=4'}+ resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==}+ engines: {node: 18 || 20 || >=22}+resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}@@ -1073,16 +1814,66 @@ packages:engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}hasBin: true+ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}+ engines: {node: '>=10.5.0'}+ deprecated: Use your platform's native DOMException instead++ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}+resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==}engines: {node: '>=12.20.0'}+ resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}++ resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}++ resolution: {integrity: sha512-MX2s3u2L5racTO0CC/SWpCOasJQBCJrqLKXK+l82cAhdeF8mPMBEe/gxMm0ZFa2xpKpOFLRjxv5afYEZbBXmbQ==}+ engines: {node: '>=22.0.0'}+ peerDependencies:+ '@aws-sdk/credential-provider-node': '>=3.972.0 <4'+ '@smithy/hash-node': '>=4.3.0 <5'+ '@smithy/signature-v4': '>=5.4.0 <6'+ undici: '>=5 <9'+ ws: ^8.21.0+ zod: ^3.25 || ^4.0+ peerDependenciesMeta:+ '@aws-sdk/credential-provider-node':+ optional: true+ '@smithy/hash-node':+ optional: true+ '@smithy/signature-v4':+ optional: true+ undici:+ optional: true+ ws:+ optional: true+ zod:+ optional: true++ resolution: {integrity: sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==}resolution: {integrity: sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==}+ resolution: {integrity: sha512-Njv/59hHaokb/hRUjce3Hdv12wd60MtM9Z5Olmn+nehe0QDAsRtRbJPvJ0Z91TusF0SuZRIvnM+S4l6EIP8leA==}++ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}@@ -1108,13 +1899,32 @@ packages:resolution: {integrity: sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==}engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0}+ resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==}+resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==}+ resolution: {integrity: sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==}+ engines: {node: '>=12.0.0'}++ resolution: {integrity: sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==}+ engines: {node: '>= 20'}+ peerDependencies:+ kerberos: ^2.0.0+ peerDependenciesMeta:+ kerberos:+ optional: true+resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-FCqGtGOrMgzUiIrMNMA2YnsOxCNwo31dzqXvclXUC6xeT35NJLKXQJsvbeCTjvoFAwZgEAPg8U6+KAPDGXn8Mg==}+resolution: {integrity: sha512-JDk8dgif51OjFoDE70+OT9ICyYr+69HlmihNwp1+Nsfbna3t5sIiCa9ZJktDmQ4/1b/rn26hIAR2uYXDMr5r0Q==}peerDependencies:@@ -1137,6 +1947,15 @@ packages:resolution: {integrity: sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==}engines: {node: '>=8'}+ resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==}++ resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==}++ resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}+resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}@@ -1153,11 +1972,22 @@ packages:resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==}+ engines: {node: '>= 4'}++ resolution: {integrity: sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==}+ engines: {node: '>= 4'}+resolution: {integrity: sha512-8wafseiaG80xmXSfqidUNqZcylTlhmPZZt+za2m+js2sFZ8dTNlhIOV2WcbIPx2hgwPBJpEUGFAMZ9bgBBLTSQ==}engines: {node: ^20.19.0 || >=22.12.0}hasBin: true+ resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==}+resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==}engines: {node: '>=v12.22.7'}@@ -1165,6 +1995,30 @@ packages:resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==}+ resolution: {integrity: sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==}+ engines: {node: '>=10'}+ hasBin: true++ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-eAVKTMedR5ckPo4xne/PjYQYrU3qx78gtJZ+sHlXEg5IHhhoQhMfZVzetTYuaJS0L2Ef3AcCRzCHV8T0WI6nIQ==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-OcRW72ngQvc+MSVWBRIovC/BTW589iUE/Vxav7VeM4RcY9MUjqB+IR6ILG1k9nuW6LiG/nct9uma4/MBtnZbmQ==}+ engines: {node: '>=20'}++ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}+resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==}engines: {node: '>=0.10.0'}@@ -1172,6 +2026,9 @@ packages:resolution: {integrity: sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==}+ resolution: {integrity: sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==}+resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==}@@ -1221,6 +2078,15 @@ packages:resolution: {integrity: sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==}+ resolution: {integrity: sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==}++ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}++ resolution: {integrity: sha512-zu+jc1pcy4UiNThxikUr36f0Rybk9PEeCg/NE6adeWr/SKsdNO4EzZHYRDlv2YCVAfj3Odq3dESSo/jNyoBXzA==}+resolution: {integrity: sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==}engines: {node: '>=16.20.0'}@@ -1229,6 +2095,10 @@ packages:resolution: {integrity: sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==}+ resolution: {integrity: sha512-/y4/bH9YNU5hi9NIrpOuvGXFcxrj3CMrV+/AYpowAYTpHn8gX/XPFjNy766FPoYY0miQhdW977JFWKGNhBdwyQ==}+ engines: {node: '>=22.19.0'}+resolution: {integrity: sha512-u4UB2/IrKdU6lFxumHmmo1a3fCQO5tzQllRorfoRS63txhrB7xTpSn1PftwC4qEHkOaqP95fCWW4lJzwErwzhQ==}engines: {node: '>=22.19.0'}@@ -1345,6 +2215,10 @@ packages:resolution: {integrity: sha512-4Nsy8K5Tr6SPDH9jhKJOHf7ChDrc1zufZTVSF7x72hwuEXBqxqk9G6cK+K2NRUtB3iELRJqjXb4JPDMBjMTl2Q==}engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}+ resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}+ engines: {node: '>= 8'}+resolution: {integrity: sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==}engines: {node: '>=20'}@@ -1357,6 +2231,11 @@ packages:resolution: {integrity: sha512-IhLIHNcBrzIixC5XXsbr4DxdjajyA5vQ5RwGZMtrUp+GbtE5Nrsge9QKau7jXrC0aTXLYGV0xiW7Tb4YS2aomw==}engines: {node: ^22.14.0 || >=24.0.0}+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}+ engines: {node: '>= 8'}+ hasBin: true+resolution: {integrity: sha512-Tb2FUhB4vUsGQlfSquQLYkApkuPAFQXGFzxWKHHumVz2dK+X1RUm/HnID4+TfIGYJ1kTcwOaCk/buYCEJr6YjQ==}engines: {node: '>=20.11'}@@ -1381,6 +2260,11 @@ packages:resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==}+ resolution: {integrity: sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==}+ engines: {node: '>= 14.6'}+ hasBin: true+resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -1388,6 +2272,11 @@ snapshots:'@adobe/[email protected]': {}+ '@anthropic-ai/[email protected]':+ dependencies:+ json-schema-to-ts: 3.1.1+ standardwebhooks: 1.1.1+'@asamuzakjp/[email protected]':dependencies:'@csstools/css-calc': 3.4.3(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])@@ -1403,6 +2292,188 @@ snapshots:is-potential-custom-element-name: 1.0.1lru-cache: 11.5.3+ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/credential-provider-node': 3.972.84+ '@aws-sdk/eventstream-handler-node': 3.972.35+ '@aws-sdk/middleware-eventstream': 3.972.30+ '@aws-sdk/middleware-websocket': 3.972.54+ '@aws-sdk/token-providers': 3.1127.0+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/fetch-http-handler': 5.8.0+ '@smithy/node-http-handler': 4.12.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/types': 3.974.6+ '@aws-sdk/xml-builder': 3.972.41+ '@aws/lambda-invoke-store': 0.3.0+ '@smithy/core': 3.35.1+ '@smithy/signature-v4': 5.7.4+ '@smithy/types': 4.19.0+ bowser: 2.14.1+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/fetch-http-handler': 5.8.0+ '@smithy/node-http-handler': 4.12.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/credential-provider-env': 3.972.72+ '@aws-sdk/credential-provider-http': 3.972.74+ '@aws-sdk/credential-provider-login': 3.972.79+ '@aws-sdk/credential-provider-process': 3.972.72+ '@aws-sdk/credential-provider-sso': 3.973.16+ '@aws-sdk/credential-provider-web-identity': 3.972.78+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/credential-provider-imds': 4.5.2+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/credential-provider-env': 3.972.72+ '@aws-sdk/credential-provider-http': 3.972.74+ '@aws-sdk/credential-provider-ini': 3.973.17+ '@aws-sdk/credential-provider-process': 3.972.72+ '@aws-sdk/credential-provider-sso': 3.973.16+ '@aws-sdk/credential-provider-web-identity': 3.972.78+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/credential-provider-imds': 4.5.2+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/token-providers': 3.1138.0+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/fetch-http-handler': 5.8.0+ '@smithy/signature-v4': 5.7.4+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/signature-v4-multi-region': 3.996.47+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/fetch-http-handler': 5.8.0+ '@smithy/node-http-handler': 4.12.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/types': 3.974.6+ '@smithy/signature-v4': 5.7.4+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@aws-sdk/core': 3.978.1+ '@aws-sdk/nested-clients': 3.997.46+ '@aws-sdk/types': 3.974.6+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws-sdk/[email protected]':+ dependencies:+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@aws/[email protected]': {}+'@babel/[email protected]':dependencies:'@babel/helper-validator-identifier': 7.29.7@@ -1454,29 +2525,291 @@ snapshots:'@csstools/[email protected]': {}- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':- dependencies:- '@csstools/css-parser-algorithms': 4.0.2(@csstools/[email protected])- '@csstools/css-tokenizer': 4.0.2+ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ dependencies:+ '@csstools/css-parser-algorithms': 4.0.2(@csstools/[email protected])+ '@csstools/css-tokenizer': 4.0.2++ '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':+ dependencies:+ '@csstools/color-helpers': 6.1.2+ '@csstools/css-calc': 3.4.3(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])+ '@csstools/css-parser-algorithms': 4.0.2(@csstools/[email protected])+ '@csstools/css-tokenizer': 4.0.2++ '@csstools/[email protected](@csstools/[email protected])':+ dependencies:+ '@csstools/css-tokenizer': 4.0.2++ '@csstools/[email protected]([email protected])':+ optionalDependencies:+ css-tree: 3.2.1++ '@csstools/[email protected]': {}++ '@earendil-works/[email protected]':+ dependencies:+ esbuild: 0.28.2++ '@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])':+ dependencies:+ '@earendil-works/pi-ai': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ typebox: 1.3.27+ transitivePeerDependencies:+ - '@aws-sdk/credential-provider-node'+ - '@modelcontextprotocol/sdk'+ - '@smithy/hash-node'+ - '@smithy/signature-v4'+ - bufferutil+ - kerberos+ - supports-color+ - undici+ - utf-8-validate+ - ws+ - zod++ '@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])':+ dependencies:+ '@anthropic-ai/sdk': 0.129.0+ '@aws-sdk/client-bedrock-runtime': 3.1127.0+ '@earendil-works/pi-telemetry': 1.0.4+ '@google/genai': 2.21.0+ '@smithy/node-http-handler': 4.12.1+ http-proxy-agent: 9.1.0+ https-proxy-agent: 9.1.0+ openai: 7.19.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ partial-json: 0.1.7+ typebox: 1.3.27+ transitivePeerDependencies:+ - '@aws-sdk/credential-provider-node'+ - '@modelcontextprotocol/sdk'+ - '@smithy/hash-node'+ - '@smithy/signature-v4'+ - bufferutil+ - kerberos+ - supports-color+ - undici+ - utf-8-validate+ - ws+ - zod++ '@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])':+ dependencies:+ '@anthropic-ai/sdk': 0.129.0+ '@aws-sdk/client-bedrock-runtime': 3.1127.0+ '@earendil-works/pi-telemetry': 1.0.4+ '@google/genai': 2.21.0+ '@smithy/node-http-handler': 4.12.1+ http-proxy-agent: 9.1.0+ https-proxy-agent: 9.1.0+ openai: 7.19.0(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ partial-json: 0.1.7+ typebox: 1.3.27+ transitivePeerDependencies:+ - '@aws-sdk/credential-provider-node'+ - '@modelcontextprotocol/sdk'+ - '@smithy/hash-node'+ - '@smithy/signature-v4'+ - bufferutil+ - kerberos+ - supports-color+ - undici+ - utf-8-validate+ - ws+ - zod++ '@earendil-works/[email protected]':+ dependencies:+ quickjs-wasi: 3.6.2++ '@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])':+ dependencies:+ '@earendil-works/chord': 1.0.4+ '@earendil-works/pi-agent-core': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ '@earendil-works/pi-ai': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ '@earendil-works/pi-codemode': 1.0.4+ '@earendil-works/pi-mcp': 1.0.4+ '@earendil-works/pi-tui': 1.0.4+ '@silvia-odwyer/photon-node': 0.3.4+ brace-expansion: 5.0.12+ chalk: 6.0.0+ cross-spawn: 7.0.6+ diff: 8.0.4+ grok-mermaid: 0.2.3+ highlight.js: 10.7.3+ hosted-git-info: 9.0.3+ ignore: 7.0.8+ jiti: 2.7.0+ minimatch: 10.2.6+ proper-lockfile: 4.1.2+ quickjs-wasi: 3.6.2+ semver: 7.8.5+ typebox: 1.3.27+ undici: 8.10.2+ yaml: 2.9.0+ transitivePeerDependencies:+ - '@aws-sdk/credential-provider-node'+ - '@modelcontextprotocol/sdk'+ - '@smithy/hash-node'+ - '@smithy/signature-v4'+ - bufferutil+ - kerberos+ - supports-color+ - utf-8-validate+ - ws+ - zod++ '@earendil-works/[email protected]':+ dependencies:+ cross-spawn: 7.0.6++ '@earendil-works/[email protected]': {}++ '@earendil-works/[email protected]':+ dependencies:+ get-east-asian-width: 1.6.0+ marked: 18.0.11++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@esbuild/[email protected]':+ optional: true++ '@exodus/[email protected]': {}++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true++ '@ff-labs/[email protected]':+ optional: true- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':- dependencies:- '@csstools/color-helpers': 6.1.2- '@csstools/css-calc': 3.4.3(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])- '@csstools/css-parser-algorithms': 4.0.2(@csstools/[email protected])- '@csstools/css-tokenizer': 4.0.2+ '@ff-labs/[email protected]':+ optional: true- '@csstools/[email protected](@csstools/[email protected])':+ '@ff-labs/[email protected]':dependencies:- '@csstools/css-tokenizer': 4.0.2-- '@csstools/[email protected]([email protected])':+ ffi-rs: 1.3.7optionalDependencies:- css-tree: 3.2.1-- '@csstools/[email protected]': {}+ '@ff-labs/fff-bin-android-arm64': 0.10.6+ '@ff-labs/fff-bin-darwin-arm64': 0.10.6+ '@ff-labs/fff-bin-darwin-x64': 0.10.6+ '@ff-labs/fff-bin-linux-arm64-gnu': 0.10.6+ '@ff-labs/fff-bin-linux-arm64-musl': 0.10.6+ '@ff-labs/fff-bin-linux-x64-gnu': 0.10.6+ '@ff-labs/fff-bin-linux-x64-musl': 0.10.6+ '@ff-labs/fff-bin-win32-arm64': 0.10.6+ '@ff-labs/fff-bin-win32-x64': 0.10.6++ '@google/[email protected]':+ dependencies:+ google-auth-library: 10.9.1+ p-retry: 4.6.2+ protobufjs: 7.6.6+ ws: 8.22.0+ transitivePeerDependencies:+ - bufferutil+ - supports-color+ - utf-8-validate- '@exodus/[email protected]': {}+ '@heyhuynhgiabuu/[email protected](@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected]))(@earendil-works/[email protected])':+ dependencies:+ '@earendil-works/pi-ai': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ '@earendil-works/pi-coding-agent': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])+ '@earendil-works/pi-tui': 1.0.4+ '@ff-labs/fff-node': 0.10.6+ '@shikijs/cli': 4.5.0+ shiki: 4.0.2'@jridgewell/[email protected]': {}@@ -1493,6 +2826,26 @@ snapshots:dependencies:playwright: 1.63.0+ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]':+ dependencies:+ '@protobufjs/aspromise': 1.1.2++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}++ '@protobufjs/[email protected]': {}+'@rolldown/[email protected]':optional: true@@ -1540,6 +2893,128 @@ snapshots:'@rolldown/[email protected]': {}+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ ansis: 4.4.0+ cac: 7.0.0+ shiki: 4.5.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/primitive': 4.0.2+ '@shikijs/types': 4.0.2+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5+ hast-util-to-html: 9.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/primitive': 4.5.0+ '@shikijs/types': 4.5.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5+ hast-util-to-html: 9.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.0.2+ '@shikijs/vscode-textmate': 10.0.2+ oniguruma-to-es: 4.3.6++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.5.0+ '@shikijs/vscode-textmate': 10.0.2+ oniguruma-to-es: 4.3.6++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.0.2+ '@shikijs/vscode-textmate': 10.0.2++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.5.0+ '@shikijs/vscode-textmate': 10.0.2++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.0.2++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.5.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.0.2+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.5.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.0.2++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.5.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ '@shikijs/[email protected]': {}++ '@silvia-odwyer/[email protected]': {}++ '@smithy/[email protected]':+ dependencies:+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@smithy/[email protected]':+ dependencies:+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@smithy/[email protected]':+ dependencies:+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@smithy/[email protected]':+ dependencies:+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@smithy/[email protected]':+ dependencies:+ '@smithy/core': 3.35.1+ '@smithy/types': 4.19.0+ tslib: 2.8.1++ '@smithy/[email protected]':+ dependencies:+ tslib: 2.8.1++ '@stablelib/[email protected]': {}+'@tauri-apps/[email protected]': {}'@tauri-apps/[email protected]':@@ -1589,6 +3064,10 @@ snapshots:'@tauri-apps/cli-win32-ia32-msvc': 2.12.1'@tauri-apps/cli-win32-x64-msvc': 2.12.1+ '@tauri-apps/[email protected]':+ dependencies:+ '@tauri-apps/api': 2.12.1+'@testing-library/[email protected]':dependencies:'@babel/code-frame': 7.29.7@@ -1600,7 +3079,7 @@ snapshots:picocolors: 1.1.1pretty-format: 27.5.1- '@testing-library/[email protected](@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])))':+ '@testing-library/[email protected](@testing-library/[email protected])([email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])))':dependencies:'@adobe/css-tools': 4.5.0'@testing-library/dom': 10.4.2@@ -1610,7 +3089,7 @@ snapshots:picocolors: 1.1.1redent: 3.0.0optionalDependencies:- vitest: 5.0.3(@types/[email protected])([email protected])([email protected](@types/[email protected]))+ vitest: 5.0.3(@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))'@testing-library/[email protected](@testing-library/[email protected])(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:@@ -1667,6 +3146,8 @@ snapshots:dependencies:csstype: 3.2.3+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}@@ -1737,26 +3218,65 @@ snapshots:'@ungap/[email protected]': {}+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@rolldown/pluginutils': 1.0.1- vite: 8.3.3(@types/[email protected])+ '@vitest/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@jridgewell/trace-mapping': 0.3.31'@vitest/spy': 5.0.3estree-walker: 3.0.3magic-string: 1.4.3optionalDependencies:- vite: 8.3.3(@types/[email protected])'@vitest/[email protected]': {}+ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ '@yuuang/[email protected]':+ optional: true++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+dependencies:dequal: 2.0.3@@ -1767,14 +3287,32 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:require-from-string: 2.0.2+ [email protected]: {}++ [email protected]: {}++ dependencies:+ balanced-match: 4.0.4++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+@@ -1785,6 +3323,12 @@ snapshots:+ dependencies:+ path-key: 3.1.1+ shebang-command: 2.0.0+ which: 2.0.2+dependencies:mdn-data: 2.27.1@@ -1794,6 +3338,8 @@ snapshots:+ [email protected]: {}+dependencies:whatwg-mimetype: 5.0.0@@ -1819,14 +3365,49 @@ snapshots:dependencies:dequal: 2.0.3+ [email protected]: {}++ dependencies:+ safe-buffer: 5.2.1++ optionalDependencies:+ '@esbuild/aix-ppc64': 0.28.2+ '@esbuild/android-arm': 0.28.2+ '@esbuild/android-arm64': 0.28.2+ '@esbuild/android-x64': 0.28.2+ '@esbuild/darwin-arm64': 0.28.2+ '@esbuild/darwin-x64': 0.28.2+ '@esbuild/freebsd-arm64': 0.28.2+ '@esbuild/freebsd-x64': 0.28.2+ '@esbuild/linux-arm': 0.28.2+ '@esbuild/linux-arm64': 0.28.2+ '@esbuild/linux-ia32': 0.28.2+ '@esbuild/linux-loong64': 0.28.2+ '@esbuild/linux-mips64el': 0.28.2+ '@esbuild/linux-ppc64': 0.28.2+ '@esbuild/linux-riscv64': 0.28.2+ '@esbuild/linux-s390x': 0.28.2+ '@esbuild/linux-x64': 0.28.2+ '@esbuild/netbsd-arm64': 0.28.2+ '@esbuild/netbsd-x64': 0.28.2+ '@esbuild/openbsd-arm64': 0.28.2+ '@esbuild/openbsd-x64': 0.28.2+ '@esbuild/openharmony-arm64': 0.28.2+ '@esbuild/sunos-x64': 0.28.2+ '@esbuild/win32-arm64': 0.28.2+ '@esbuild/win32-ia32': 0.28.2+ '@esbuild/win32-x64': 0.28.2+@@ -1839,13 +3420,96 @@ snapshots:+ [email protected]: {}+optionalDependencies:picomatch: 4.0.7+ dependencies:+ node-domexception: 1.0.0+ web-streams-polyfill: 3.3.3++ optionalDependencies:+ '@yuuang/ffi-rs-android-arm64': 1.3.7+ '@yuuang/ffi-rs-darwin-arm64': 1.3.7+ '@yuuang/ffi-rs-darwin-x64': 1.3.7+ '@yuuang/ffi-rs-linux-arm-gnueabihf': 1.3.7+ '@yuuang/ffi-rs-linux-arm64-gnu': 1.3.7+ '@yuuang/ffi-rs-linux-arm64-musl': 1.3.7+ '@yuuang/ffi-rs-linux-x64-gnu': 1.3.7+ '@yuuang/ffi-rs-linux-x64-musl': 1.3.7+ '@yuuang/ffi-rs-win32-arm64-msvc': 1.3.7+ '@yuuang/ffi-rs-win32-ia32-msvc': 1.3.7+ '@yuuang/ffi-rs-win32-x64-msvc': 1.3.7++ dependencies:+ fetch-blob: 3.2.0+optional: true+ dependencies:+ extend: 3.0.2+ https-proxy-agent: 7.0.6+ node-fetch: 3.3.2+ transitivePeerDependencies:+ - supports-color++ dependencies:+ gaxios: 7.3.1+ google-logging-utils: 1.1.3+ json-bigint: 1.0.0+ transitivePeerDependencies:+ - supports-color++ [email protected](@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected]))(@earendil-works/[email protected])([email protected]):+ dependencies:+ '@heyhuynhgiabuu/pi-pretty': 0.6.27(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]))(@earendil-works/[email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected]))(@earendil-works/[email protected])+ typebox: 1.3.27+ optionalDependencies:+ '@earendil-works/pi-ai': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected])+ '@earendil-works/pi-coding-agent': 1.0.4(@aws-sdk/[email protected])(@smithy/[email protected])([email protected])+ '@earendil-works/pi-tui': 1.0.4++ [email protected]: {}++ dependencies:+ base64-js: 1.5.1+ ecdsa-sig-formatter: 1.0.11+ gaxios: 7.3.1+ gcp-metadata: 8.1.2+ google-logging-utils: 1.1.3+ jws: 4.0.1+ transitivePeerDependencies:+ - supports-color++ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ '@types/hast': 3.0.5+ '@types/unist': 3.0.3+ ccount: 2.0.1+ comma-separated-tokens: 2.0.3+ hast-util-whitespace: 3.0.0+ html-void-elements: 3.0.0+ mdast-util-to-hast: 13.2.1+ property-information: 7.2.0+ space-separated-tokens: 2.0.2+ stringify-entities: 4.0.4+ zwitch: 2.0.4+dependencies:'@types/estree': 1.0.9@@ -1870,6 +3534,12 @@ snapshots:dependencies:'@types/hast': 3.0.5+ [email protected]: {}++ dependencies:+ lru-cache: 11.5.3+dependencies:'@exodus/bytes': 1.16.0@@ -1878,6 +3548,35 @@ snapshots:+ [email protected]: {}++ dependencies:+ agent-base: 9.0.0+ debug: 4.4.3+ proxy-agent-negotiate: 1.1.0+ transitivePeerDependencies:+ - kerberos+ - supports-color++ dependencies:+ agent-base: 7.1.4+ debug: 4.4.3+ transitivePeerDependencies:+ - supports-color++ dependencies:+ agent-base: 9.0.0+ debug: 4.4.3+ proxy-agent-negotiate: 1.1.0+ transitivePeerDependencies:+ - kerberos+ - supports-color++ [email protected]: {}+@@ -1897,6 +3596,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+@@ -1924,6 +3627,26 @@ snapshots:transitivePeerDependencies:- '@noble/hashes'+ dependencies:+ bignumber.js: 9.3.1++ dependencies:+ '@babel/runtime': 7.29.7+ ts-algebra: 2.0.0++ dependencies:+ buffer-equal-constant-time: 1.0.1+ ecdsa-sig-formatter: 1.0.11+ safe-buffer: 5.2.1++ dependencies:+ jwa: 2.0.1+ safe-buffer: 5.2.1+optional: true@@ -1973,6 +3696,8 @@ snapshots:lightningcss-win32-arm64-msvc: 1.33.0lightningcss-win32-x64-msvc: 1.33.0+ [email protected]: {}+@@ -1985,6 +3710,8 @@ snapshots:+ [email protected]: {}+dependencies:'@types/mdast': 4.0.4@@ -2341,12 +4068,51 @@ snapshots:+ dependencies:+ brace-expansion: 5.0.12++ [email protected]: {}++ dependencies:+ data-uri-to-buffer: 4.0.1+ fetch-blob: 3.2.0+ formdata-polyfill: 4.0.10++ [email protected]: {}++ dependencies:+ oniguruma-parser: 0.12.2+ regex: 6.1.0+ regex-recursion: 6.0.2++ [email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]):+ optionalDependencies:+ '@aws-sdk/credential-provider-node': 3.972.84+ '@smithy/signature-v4': 5.7.4+ undici: 8.10.2+ ws: 8.22.0++ [email protected](@aws-sdk/[email protected])(@smithy/[email protected])([email protected])([email protected]):+ optionalDependencies:+ '@aws-sdk/credential-provider-node': 3.972.84+ '@smithy/signature-v4': 5.7.4+ undici: 8.11.2+ ws: 8.22.0++ dependencies:+ '@types/retry': 0.12.0+ retry: 0.13.1+dependencies:'@types/unist': 2.0.11@@ -2361,6 +4127,10 @@ snapshots:dependencies:entities: 8.1.0+ [email protected]: {}++ [email protected]: {}+@@ -2383,10 +4153,34 @@ snapshots:ansi-styles: 5.2.0react-is: 17.0.2+ dependencies:+ graceful-fs: 4.2.11+ retry: 0.12.0+ signal-exit: 3.0.7++ dependencies:+ '@protobufjs/aspromise': 1.1.2+ '@protobufjs/base64': 1.1.2+ '@protobufjs/codegen': 2.0.5+ '@protobufjs/eventemitter': 1.1.1+ '@protobufjs/fetch': 1.1.1+ '@protobufjs/float': 1.0.2+ '@protobufjs/path': 1.1.2+ '@protobufjs/pool': 1.1.0+ '@protobufjs/utf8': 1.1.2+ '@types/node': 26.6.4+ long: 5.3.2++ [email protected]: {}++ [email protected]: {}+dependencies:react: 19.3.0@@ -2419,6 +4213,16 @@ snapshots:indent-string: 4.0.0strip-indent: 3.0.0+ dependencies:+ regex-utilities: 2.3.0++ [email protected]: {}++ dependencies:+ regex-utilities: 2.3.0+dependencies:'@types/mdast': 4.0.4@@ -2455,6 +4259,10 @@ snapshots:+ [email protected]: {}++ [email protected]: {}+dependencies:'@oxc-project/types': 0.152.0@@ -2476,16 +4284,55 @@ snapshots:'@rolldown/binding-win32-arm64-msvc': 1.2.12'@rolldown/binding-win32-x64-msvc': 1.2.12+ [email protected]: {}+dependencies:xmlchars: 2.2.0+ [email protected]: {}++ dependencies:+ shebang-regex: 3.0.0++ [email protected]: {}++ dependencies:+ '@shikijs/core': 4.0.2+ '@shikijs/engine-javascript': 4.0.2+ '@shikijs/engine-oniguruma': 4.0.2+ '@shikijs/langs': 4.0.2+ '@shikijs/themes': 4.0.2+ '@shikijs/types': 4.0.2+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ dependencies:+ '@shikijs/core': 4.5.0+ '@shikijs/engine-javascript': 4.5.0+ '@shikijs/engine-oniguruma': 4.5.0+ '@shikijs/langs': 4.5.0+ '@shikijs/themes': 4.5.0+ '@shikijs/types': 4.5.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.5++ [email protected]: {}++ dependencies:+ '@stablelib/base64': 1.0.1+ fast-sha256: 1.3.0+@@ -2532,6 +4379,12 @@ snapshots:+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}+optionalDependencies:'@typescript/typescript-aix-ppc64': 7.0.2@@ -2557,6 +4410,8 @@ snapshots:+ [email protected]: {}+@@ -2602,7 +4457,7 @@ snapshots:'@types/unist': 3.0.3vfile-message: 4.0.3- [email protected](@types/[email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):dependencies:lightningcss: 1.33.0picomatch: 4.0.7@@ -2611,12 +4466,15 @@ snapshots:tinyglobby: 0.2.17optionalDependencies:'@types/node': 26.6.4+ esbuild: 0.28.2fsevents: 2.3.3+ jiti: 2.7.0+ yaml: 2.9.0- [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])):+ [email protected](@types/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:'@types/chai': 5.2.3- '@vitest/mocker': 5.0.3([email protected](@types/[email protected]))+ '@vitest/mocker': 5.0.3([email protected](@types/[email protected])([email protected])([email protected])([email protected]))chai: 6.3.0es-module-lexer: 2.3.2expect-type: 1.4.0@@ -2627,7 +4485,7 @@ snapshots:tinybench: 6.2.1tinyexec: 1.3.1tinyglobby: 0.2.17- vite: 8.3.3(@types/[email protected])why-is-node-running: 3.2.1optionalDependencies:'@types/node': 26.6.4@@ -2639,6 +4497,8 @@ snapshots:dependencies:xml-name-validator: 5.0.0+ [email protected]: {}+@@ -2651,6 +4511,10 @@ snapshots:transitivePeerDependencies:- '@noble/hashes'+ dependencies:+ isexe: 2.0.0+@@ -2659,4 +4523,6 @@ snapshots:+ [email protected]: {}+diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 6f00273..75a9c91 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -1,3 +1,11 @@packages:- packages/*- apps/*+allowBuilds:+ # Vite's bundler verifies its platform binary.+ esbuild: true+ # Installs the gentle-ai binary that the bundled Gentle Shell uses.+ gentle-pi: true+ # Not needed: optional extras of the Pi SDK.+ '@google/genai': false+ protobufjs: false