From 97f6c1276ca269a3dd060117254d573a403a56c0 Mon Sep 17 00:00:00 2001 From: dhaern Date: Tue, 6 Oct 2026 16:50:54 +0000 Subject: [PATCH 01/10] fix(web): feed terminals from reconnecting session sockets Add rawData to subscribed replies to order snapshots before live output. Write directly to xterm, isolate session sockets, and retry after disconnects. Reset the terminal in band (RIS) so queued writes and a half-parsed escape sequence cannot corrupt a snapshot. Keep HTTP input fallback and existing raw-buffer endpoints. --- src/web/client/components/app.tsx | 53 ++----- .../client/components/terminal-renderer.tsx | 26 +--- src/web/client/hooks/session-socket.ts | 73 +++++++++ src/web/client/hooks/use-session-manager.ts | 64 +------- src/web/client/hooks/use-web-socket.ts | 139 ++++-------------- src/web/server/handlers/websocket.ts | 1 + src/web/shared/types.ts | 1 + test/session-socket.test.ts | 78 ++++++++++ test/websocket.test.ts | 43 +++++- 9 files changed, 249 insertions(+), 229 deletions(-) create mode 100644 src/web/client/hooks/session-socket.ts create mode 100644 test/session-socket.test.ts diff --git a/src/web/client/components/app.tsx b/src/web/client/components/app.tsx index a672d385..4698c988 100644 --- a/src/web/client/components/app.tsx +++ b/src/web/client/components/app.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect, useCallback } from 'react' +import { useState, useEffect, useCallback, useRef } from 'react' import type { PTYSessionInfo } from 'opencode-pty/web/shared/types' import { useWebSocket } from '../hooks/use-web-socket.ts' @@ -11,40 +11,24 @@ import { api } from '../../shared/api-client.ts' export function App() { const [sessions, setSessions] = useState([]) const [activeSession, setActiveSession] = useState(null) - const [rawOutput, setRawOutput] = useState('') + const terminalRef = useRef(null) - const [connected, setConnected] = useState(false) const [wsMessageCount, setWsMessageCount] = useState(0) const [sessionUpdateCount, setSessionUpdateCount] = useState(0) - const { - connected: wsConnected, - subscribeWithRetry, - sendInput, - } = useWebSocket({ + const { connected, sendInput } = useWebSocket({ activeSession, + onSnapshot: useCallback((snapshot: string) => { + terminalRef.current?.reset(snapshot) + }, []), onRawData: useCallback((rawData: string) => { - setRawOutput((prev) => { - const newOutput = prev + rawData - return newOutput - }) + terminalRef.current?.write(rawData) setWsMessageCount((prev) => prev + 1) }, []), onSessionList: useCallback( (newSessions: PTYSessionInfo[], autoSelected: PTYSessionInfo | null) => { setSessions(newSessions) - if (!autoSelected) { - return - } - setActiveSession(autoSelected) - api.session.buffer - .raw({ id: autoSelected.id }) - .then((data) => { - setRawOutput(data.raw) - }) - .catch((error) => { - console.error('Failed to fetch initial raw buffer for auto-selected session', error) - }) + if (autoSelected) setActiveSession(autoSelected) }, [] ), @@ -65,11 +49,6 @@ export function App() { }, []), }) - // Update connected from wsConnected - useEffect(() => { - setConnected(wsConnected) - }, [wsConnected]) - // Periodic session list sync every 10 seconds useEffect(() => { const syncInterval = setInterval(async () => { @@ -83,15 +62,9 @@ export function App() { return () => clearInterval(syncInterval) }, []) - const { handleSessionClick, handleSendInput, handleKillSession } = useSessionManager({ + const { handleSendInput, handleKillSession } = useSessionManager({ activeSession, - setActiveSession, - subscribeWithRetry, sendInput, - wsConnected, - onRawOutputUpdate: useCallback((rawOutput: string) => { - setRawOutput(rawOutput) - }, []), }) return ( @@ -99,7 +72,7 @@ export function App() {
@@ -114,15 +87,15 @@ export function App() {
- Debug: {rawOutput.length} chars, active: {activeSession?.id || 'none'}, WS raw_data:{' '} - {wsMessageCount}, session_updates: {sessionUpdateCount} + Debug: active: {activeSession?.id || 'none'}, WS raw_data: {wsMessageCount}, + session_updates: {sessionUpdateCount}
) : ( diff --git a/src/web/client/components/terminal-renderer.tsx b/src/web/client/components/terminal-renderer.tsx index e79cc085..6eaa7035 100644 --- a/src/web/client/components/terminal-renderer.tsx +++ b/src/web/client/components/terminal-renderer.tsx @@ -13,7 +13,6 @@ declare global { } interface RawTerminalProps { - rawOutput: string onSendInput?: (data: string) => void onInterrupt?: () => void disabled?: boolean @@ -27,28 +26,15 @@ export class RawTerminal extends React.Component { override componentDidMount() { this.initializeTerminal() - if (this.xtermInstance && this.props.rawOutput) { - this.xtermInstance.write(this.props.rawOutput) - } } - override componentDidUpdate(prevProps: RawTerminalProps) { - if (!this.xtermInstance) return - - const currentData = this.props.rawOutput - const prevData = prevProps.rawOutput + // In band (RIS): Terminal.reset() keeps queued writes and any half-parsed escape sequence. + reset(snapshot: string): void { + this.write(`\x1bc${snapshot}`) + } - // Optimized diff-based writing - only write new content - if (currentData.startsWith(prevData)) { - const newData = currentData.slice(prevData.length) - if (newData) { - this.xtermInstance.write(newData) - } - } else { - // Session switch/truncate/etc - clear and rewrite - this.xtermInstance.clear() - this.xtermInstance.write(currentData) - } + write(chunk: string): void { + this.xtermInstance?.write(chunk) } override componentWillUnmount() { diff --git a/src/web/client/hooks/session-socket.ts b/src/web/client/hooks/session-socket.ts new file mode 100644 index 00000000..173ea43f --- /dev/null +++ b/src/web/client/hooks/session-socket.ts @@ -0,0 +1,73 @@ +import { RETRY_DELAY } from '../../shared/constants.ts' +import type { + PTYSessionInfo, + WSMessageServerRawData, + WSMessageServerSessionList, + WSMessageServerSessionUpdate, + WSMessageServerSubscribedSession, +} from '../../shared/types.ts' + +export function connectSessionSocket( + url: string, + sessionId: string | undefined, + callbacks: { + onConnected: (connected: boolean) => void + onSnapshot?: (snapshot: string) => void + onRawData?: (rawData: string) => void + onSessionList: (sessions: PTYSessionInfo[]) => void + onSessionUpdate?: (session: PTYSessionInfo) => void + } +) { + let ws: WebSocket + let retry: ReturnType | undefined + let closed = false + + const connect = () => { + ws = new WebSocket(url) + ws.onopen = () => { + if (closed) return + callbacks.onConnected(true) + ws.send(JSON.stringify({ type: 'session_list' })) + if (sessionId) ws.send(JSON.stringify({ type: 'subscribe', sessionId })) + } + ws.onmessage = (event) => { + if (closed) return + try { + const data = JSON.parse(event.data) as + | WSMessageServerSubscribedSession + | WSMessageServerRawData + | WSMessageServerSessionList + | WSMessageServerSessionUpdate + if (data.type === 'subscribed' && data.sessionId === sessionId) { + callbacks.onSnapshot?.(data.rawData) + } else if (data.type === 'raw_data' && data.session.id === sessionId) { + callbacks.onRawData?.(data.rawData) + } else if (data.type === 'session_list') { + callbacks.onSessionList(data.sessions || []) + } else if (data.type === 'session_update') { + callbacks.onSessionUpdate?.(data.session) + } + // Ignore malformed messages without interrupting the stream. + } catch {} + } + ws.onclose = () => { + if (closed) return + callbacks.onConnected(false) + retry = setTimeout(connect, RETRY_DELAY) + } + } + connect() + + return { + sendInput(sessionId: string, data: string): boolean { + if (ws.readyState !== WebSocket.OPEN) return false + ws.send(JSON.stringify({ type: 'input', sessionId, data })) + return true + }, + close() { + closed = true + clearTimeout(retry) + ws.close() + }, + } +} diff --git a/src/web/client/hooks/use-session-manager.ts b/src/web/client/hooks/use-session-manager.ts index 9411f9e7..b4d64163 100644 --- a/src/web/client/hooks/use-session-manager.ts +++ b/src/web/client/hooks/use-session-manager.ts @@ -5,75 +5,22 @@ import { api } from '../../shared/api-client' interface UseSessionManagerOptions { activeSession: PTYSessionInfo | null - setActiveSession: (session: PTYSessionInfo | null) => void - subscribeWithRetry: (sessionId: string) => void - sendInput?: (sessionId: string, data: string) => void - wsConnected?: boolean - onRawOutputUpdate?: (rawOutput: string) => void + sendInput: (sessionId: string, data: string) => boolean } -export function useSessionManager({ - activeSession, - setActiveSession, - subscribeWithRetry, - sendInput, - wsConnected, - onRawOutputUpdate, -}: UseSessionManagerOptions) { - const handleSessionClick = useCallback( - async (session: PTYSessionInfo) => { - try { - // Validate session object first - if (!session?.id) { - return - } - setActiveSession(session) - onRawOutputUpdate?.('') - // Subscribe to this session for live updates - subscribeWithRetry(session.id) - - try { - // Fetch raw buffer data only (processed output endpoint removed) - const rawData = await api.session.buffer - .raw({ id: session.id }) - .catch(() => ({ raw: '' })) - - // Call callback with raw data - onRawOutputUpdate?.(rawData.raw || '') - } catch { - onRawOutputUpdate?.('') - } - } catch { - // Ensure UI remains stable - onRawOutputUpdate?.('') - } - }, - [setActiveSession, subscribeWithRetry, onRawOutputUpdate] - ) - +export function useSessionManager({ activeSession, sendInput }: UseSessionManagerOptions) { const handleSendInput = useCallback( async (data: string) => { - if (!data || !activeSession) { + // WebSocket first; HTTP while it is not open (e.g. reconnecting). + if (!data || !activeSession || sendInput(activeSession.id, data)) { return } - - // Try WebSocket first if connected and available - if (wsConnected && sendInput) { - try { - sendInput(activeSession.id, data) - return - } catch (error) { - console.warn('WebSocket input failed, falling back to HTTP:', error) - } - } - - // HTTP fallback try { await api.session.input({ id: activeSession.id }, { data }) // eslint-disable-next-line no-empty } catch {} }, - [activeSession, wsConnected, sendInput] + [activeSession, sendInput] ) const handleKillSession = useCallback(async () => { @@ -97,7 +44,6 @@ export function useSessionManager({ }, [activeSession]) return { - handleSessionClick, handleSendInput, handleKillSession, } diff --git a/src/web/client/hooks/use-web-socket.ts b/src/web/client/hooks/use-web-socket.ts index a8201eed..b3957d94 100644 --- a/src/web/client/hooks/use-web-socket.ts +++ b/src/web/client/hooks/use-web-socket.ts @@ -1,17 +1,12 @@ import { useState, useEffect, useRef } from 'react' import type { PTYSessionInfo } from 'opencode-pty/web/shared/types' -import type { - WSMessageServer, - WSMessageServerRawData, - WSMessageServerSessionList, - WSMessageServerSessionUpdate, -} from 'opencode-pty/web/shared/types' -import { RETRY_DELAY, SKIP_AUTOSELECT_KEY } from 'opencode-pty/web/shared/constants' - +import { SKIP_AUTOSELECT_KEY } from 'opencode-pty/web/shared/constants' import { RouteBuilder } from 'opencode-pty/web/shared/route-builder' +import { connectSessionSocket } from './session-socket.ts' interface UseWebSocketOptions { activeSession: PTYSessionInfo | null + onSnapshot?: (snapshot: string) => void onRawData?: (rawData: string) => void onSessionList: (sessions: PTYSessionInfo[], autoSelected: PTYSessionInfo | null) => void onSessionUpdate?: (updatedSession: PTYSessionInfo) => void @@ -19,117 +14,43 @@ interface UseWebSocketOptions { export function useWebSocket({ activeSession, + onSnapshot, onRawData, onSessionList, onSessionUpdate, }: UseWebSocketOptions) { const [connected, setConnected] = useState(false) + const socketRef = useRef | null>(null) + const sessionId = activeSession?.id - const wsRef = useRef(null) - const activeSessionRef = useRef(null) - - // Keep ref in sync with activeSession useEffect(() => { - activeSessionRef.current = activeSession - }, [activeSession]) - - // Connect to WebSocket on mount - useEffect(() => { - const ws = new WebSocket( - `${RouteBuilder.websocket()}`.replace(/^\/ws/, `ws://${location.host}/ws`) - ) - ws.onopen = () => { - setConnected(true) - // Request initial session list - ws.send(JSON.stringify({ type: 'session_list' })) - // Resubscribe to active session if exists - if (activeSessionRef.current) { - ws.send(JSON.stringify({ type: 'subscribe', sessionId: activeSessionRef.current.id })) - } - } - ws.onmessage = (event) => { - try { - const data = JSON.parse(event.data) as WSMessageServer - if (data.type === 'session_list') { - const sessionListMsg = data as WSMessageServerSessionList - const sessions = sessionListMsg.sessions || [] - // Auto-select first running session if none selected (skip in tests that need empty state) - const shouldSkipAutoselect = localStorage.getItem(SKIP_AUTOSELECT_KEY) === 'true' - let autoSelected: PTYSessionInfo | null = null - if (sessions.length > 0 && !activeSession && !shouldSkipAutoselect) { - const runningSession = - sessions.find((s: PTYSessionInfo) => s.status === 'running') || null - autoSelected = runningSession || sessions[0] || null - if (autoSelected) { - activeSessionRef.current = autoSelected - // Subscribe to the auto-selected session for live updates - const readyState = wsRef.current?.readyState - - if (readyState === WebSocket.OPEN && wsRef.current) { - wsRef.current.send( - JSON.stringify({ type: 'subscribe', sessionId: autoSelected.id }) - ) - } else { - setTimeout( - (autoSelected) => { - const retryReadyState = wsRef.current?.readyState - if (retryReadyState === WebSocket.OPEN && wsRef.current) { - wsRef.current.send( - JSON.stringify({ type: 'subscribe', sessionId: autoSelected.id }) - ) - } - }, - RETRY_DELAY, - autoSelected - ) - } - } - } + const socket = connectSessionSocket( + RouteBuilder.websocket().replace(/^\/ws/, `ws://${location.host}/ws`), + sessionId, + { + onConnected: setConnected, + onSnapshot, + onRawData, + onSessionList: (sessions) => { + const skipAutoselect = localStorage.getItem(SKIP_AUTOSELECT_KEY) === 'true' + const autoSelected = + !sessionId && !skipAutoselect + ? sessions.find((s) => s.status === 'running') || sessions[0] || null + : null onSessionList(sessions, autoSelected) - } else if (data.type === 'session_update') { - const sessionUpdateMsg = data as WSMessageServerSessionUpdate - onSessionUpdate?.(sessionUpdateMsg.session) - } else if (data.type === 'raw_data') { - const rawDataMsg = data as WSMessageServerRawData - const isForActiveSession = rawDataMsg.session.id === activeSessionRef.current?.id - if (isForActiveSession) { - onRawData?.(rawDataMsg.rawData) - } - } - // eslint-disable-next-line no-empty - } catch {} - } - ws.onclose = () => { - setConnected(false) - } - ws.onerror = () => {} - wsRef.current = ws + }, + onSessionUpdate, + } + ) + socketRef.current = socket return () => { - ws.close() - } - }, [activeSession, onRawData, onSessionList, onSessionUpdate]) - - const subscribe = (sessionId: string) => { - if (wsRef.current?.readyState === WebSocket.OPEN) { - wsRef.current.send(JSON.stringify({ type: 'subscribe', sessionId })) - } - } - - const subscribeWithRetry = (sessionId: string) => { - if (wsRef.current?.readyState === WebSocket.OPEN) { - subscribe(sessionId) - } else { - setTimeout(() => { - subscribe(sessionId) - }, RETRY_DELAY) + socketRef.current = null + socket.close() } - } + }, [sessionId, onSnapshot, onRawData, onSessionList, onSessionUpdate]) - const sendInput = (sessionId: string, data: string) => { - if (wsRef.current?.readyState === WebSocket.OPEN) { - wsRef.current.send(JSON.stringify({ type: 'input', sessionId, data })) - } - } + const sendInput = (sessionId: string, data: string) => + socketRef.current?.sendInput(sessionId, data) ?? false - return { connected, subscribe, subscribeWithRetry, sendInput } + return { connected, sendInput } } diff --git a/src/web/server/handlers/websocket.ts b/src/web/server/handlers/websocket.ts index 1ad79567..3dfc1919 100644 --- a/src/web/server/handlers/websocket.ts +++ b/src/web/server/handlers/websocket.ts @@ -40,6 +40,7 @@ class WebSocketHandler { const response: WSMessageServerSubscribedSession = { type: 'subscribed', sessionId: message.sessionId, + rawData: manager.getRawBuffer(message.sessionId)?.raw ?? '', } ws.send(JSON.stringify(response)) } diff --git a/src/web/shared/types.ts b/src/web/shared/types.ts index aaa795b5..76c27c1e 100644 --- a/src/web/shared/types.ts +++ b/src/web/shared/types.ts @@ -66,6 +66,7 @@ export interface WSMessageServer { export interface WSMessageServerSubscribedSession extends WSMessageServer { type: 'subscribed' sessionId: string + rawData: string } export interface WSMessageServerUnsubscribedSession extends WSMessageServer { diff --git a/test/session-socket.test.ts b/test/session-socket.test.ts new file mode 100644 index 00000000..70ae3cd8 --- /dev/null +++ b/test/session-socket.test.ts @@ -0,0 +1,78 @@ +import { afterEach, beforeEach, expect, it, jest, mock } from 'bun:test' +import { connectSessionSocket } from '../src/web/client/hooks/session-socket.ts' +import { RETRY_DELAY } from '../src/web/shared/constants.ts' + +class FakeWebSocket { + static instances: FakeWebSocket[] = [] + onopen: (() => void) | null = null + onclose: (() => void) | null = null + onmessage: ((event: { data: string }) => void) | null = null + send = mock() + constructor() { + FakeWebSocket.instances.push(this) + } + close() { + this.onclose?.() + } + open() { + this.onopen?.() + } + message(data: unknown) { + this.onmessage?.({ data: JSON.stringify(data) }) + } +} + +const originalWebSocket = globalThis.WebSocket +let close: (() => void) | undefined +beforeEach(() => { + jest.useFakeTimers() + FakeWebSocket.instances = [] + globalThis.WebSocket = FakeWebSocket as unknown as typeof WebSocket +}) +afterEach(() => { + close?.() + globalThis.WebSocket = originalWebSocket + jest.useRealTimers() +}) + +it('reconnects and resubscribes after an unexpected close', () => { + const onConnected = mock() + close = connectSessionSocket('ws://localhost/ws', 'active', { + onConnected, + onSessionList: mock(), + }).close + FakeWebSocket.instances[0]?.open() + FakeWebSocket.instances[0]?.close() + expect(onConnected).toHaveBeenLastCalledWith(false) + jest.advanceTimersByTime(RETRY_DELAY - 1) + expect(FakeWebSocket.instances).toHaveLength(1) + jest.advanceTimersByTime(1) + expect(FakeWebSocket.instances).toHaveLength(2) + FakeWebSocket.instances[1]?.open() + expect(FakeWebSocket.instances[1]?.send).toHaveBeenCalledWith( + JSON.stringify({ type: 'subscribe', sessionId: 'active' }) + ) +}) + +it('ignores output from sessions and sockets that are no longer active', () => { + const callbacks = { + onConnected: mock(), + onSessionList: mock(), + onSnapshot: mock(), + onRawData: mock(), + } + const previous = connectSessionSocket('ws://localhost/ws', 'previous', callbacks) + const oldSocket = FakeWebSocket.instances[0] + previous.close() + close = connectSessionSocket('ws://localhost/ws', 'active', callbacks).close + const socket = FakeWebSocket.instances[1] + oldSocket?.message({ type: 'raw_data', session: { id: 'previous' }, rawData: 'late' }) + socket?.message({ type: 'subscribed', sessionId: 'previous', rawData: 'wrong snapshot' }) + socket?.message({ type: 'raw_data', session: { id: 'previous' }, rawData: 'wrong chunk' }) + socket?.message({ type: 'subscribed', sessionId: 'active', rawData: 'snapshot' }) + socket?.message({ type: 'raw_data', session: { id: 'active' }, rawData: 'chunk' }) + expect(callbacks.onRawData).toHaveBeenCalledTimes(1) + expect(callbacks.onRawData).toHaveBeenCalledWith('chunk') + expect(callbacks.onSnapshot).toHaveBeenCalledTimes(1) + expect(callbacks.onSnapshot).toHaveBeenCalledWith('snapshot') +}) diff --git a/test/websocket.test.ts b/test/websocket.test.ts index 19fd713e..561c8282 100644 --- a/test/websocket.test.ts +++ b/test/websocket.test.ts @@ -1,5 +1,9 @@ import { describe, it, expect, beforeAll, afterAll } from 'bun:test' -import { manager } from '../src/plugin/pty/manager.ts' +import { + manager, + registerRawOutputCallback, + removeRawOutputCallback, +} from '../src/plugin/pty/manager.ts' import type { CustomError, WSMessageServerError, @@ -67,6 +71,43 @@ describe('WebSocket Functionality', () => { }) describe('WebSocket Message Handling', () => { + it('should send the snapshot before subsequent live output without replaying it', async () => { + await using client = await ManagedTestClient.create(managedTestServer.server.getWsUrl()) + const snapshot = 'one\r\ntwo\r\n' + const session = manager.spawn({ + command: 'sh', + args: ['-c', 'stty -echo; printf "one\\ntwo\\n"; read line; printf "three\\n"'], + parentSessionId: managedTestServer.sessionId, + }) + // Output is delivered asynchronously, so registering after spawn misses nothing. + await new Promise((resolve) => { + const onOutput = () => { + if (manager.getRawBuffer(session.id)?.raw === snapshot) { + removeRawOutputCallback(onOutput) + resolve() + } + } + registerRawOutputCallback(onOutput) + }) + const subscribed = new Promise((resolve) => { + client.subscribedCallbacks.push(resolve) + }) + let liveOutput = '' + const live = new Promise((resolve) => { + client.rawDataCallbacks.push((message) => { + if (message.session.id === session.id) { + liveOutput += message.rawData + if (liveOutput.includes('three\r\n')) resolve() + } + }) + }) + client.send({ type: 'subscribe', sessionId: session.id }) + expect((await subscribed).rawData).toBe(snapshot) + manager.write(session.id, 'go\n') + await live + expect(liveOutput).toBe('three\r\n') + }, 1000) + it('should handle subscribe message', async () => { await using managedTestClient = await ManagedTestClient.create( managedTestServer.server.getWsUrl() From 9f272d88889238ffc76713729bae27cd5127ab70 Mon Sep 17 00:00:00 2001 From: Jeff Sheldon Date: Tue, 13 Oct 2026 12:32:24 -0400 Subject: [PATCH 02/10] fix(v2): dual-mode default export so the bare npm ref loads under V2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `. ` entrypoint exported only named symbols — no default at all — so the V2 loader's bare-ref resolution schema-failed with `Missing key at ["default"]` (#67). The documented `opencode-pty/v2` subpath ref cannot install either (the V2 loader parses subpath refs as npm install specs), leaving no published-package path to load the plugin on V2. Add the dual-mode default export (the pattern opencode-mem shipped in 2.27.0 via PR #311): `{ id, server, setup }` — V1 (>= 1.18.29) calls `server()`, V2 calls `setup()`. The `./v2` subpath export stays for direct-import consumers. Correct the README's V2 example, which used the V1 `plugin` field (silently ignored by V2) and recommended the un-installable subpath ref. Adopted from jss79's #84. Refs #67, #85, #83. Co-authored-by: Jeff Sheldon --- README.md | 11 ++++++++--- index.ts | 15 +++++++++++++++ test/dual-mode-default.test.ts | 25 +++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 test/dual-mode-default.test.ts diff --git a/README.md b/README.md index 1968c1bd..e05165b7 100644 --- a/README.md +++ b/README.md @@ -43,14 +43,14 @@ Add the plugin to your [OpenCode config](https://opencode.ai/docs/config/): ### OpenCode V2 -OpenCode V2 uses the new plugin API. You can load `opencode-pty/v2` and optionally configure options (such as a fixed web UI port): +OpenCode V2 uses the new plugin API. Load the package by its bare npm ref — the `.` entrypoint is a dual-mode export that serves both runtimes — and optionally configure options (such as a fixed web UI port): ```json { "$schema": "https://opencode.ai/config.json", - "plugin": [ + "plugins": [ { - "package": "opencode-pty/v2", + "package": "opencode-pty", "options": { "port": 4200, "hostname": "127.0.0.1", @@ -61,6 +61,11 @@ OpenCode V2 uses the new plugin API. You can load `opencode-pty/v2` and optional } ``` +Notes for V2: + +- V2 reads the `plugins` array (object form). The V1 `plugin` field is silently ignored — a V1-shaped array produces zero plugin loads. +- The previous `opencode-pty/v2` subpath ref does not install: the V2 loader parses subpath refs as npm install specs ([#67](https://github.com/shekohex/opencode-pty/issues/67)). The bare ref works via the dual-mode default export; the `./v2` subpath remains valid for direct-import consumers. + | Option | Type | Default | Description | | --- | --- | --- | --- | | `port` | `number` | `0` (ephemeral) | Fixed port for the PTY Web UI observer server | diff --git a/index.ts b/index.ts index 8799a0a1..84aece80 100644 --- a/index.ts +++ b/index.ts @@ -1,2 +1,17 @@ +import { Plugin } from './src/v2/index.ts' +import { PTYPlugin } from './src/plugin.ts' + export { PTYPlugin } from './src/plugin.ts' export { PTYPlugin as server } from './src/plugin.ts' +export { Plugin } from './src/v2/index.ts' + +// Dual-mode default export: opencode V1 (>= 1.18.29) resolves the object entrypoint and +// calls `server()`; V2 validates `{ id, setup }` and calls `setup()`. The bare npm ref +// therefore loads on both runtimes — necessary because the V2 loader parses the +// documented `opencode-pty/v2` subpath ref as an npm install spec and cannot install it +// (#67), and the previous `.` entrypoint carried no default export at all. +export default { + id: Plugin.id, + server: PTYPlugin, + setup: Plugin.setup, +} diff --git a/test/dual-mode-default.test.ts b/test/dual-mode-default.test.ts new file mode 100644 index 00000000..2f9c34fc --- /dev/null +++ b/test/dual-mode-default.test.ts @@ -0,0 +1,25 @@ +import { describe, expect, it } from 'bun:test' +import defaults, { PTYPlugin } from '../index.ts' +import { Plugin } from '../src/v2/index.ts' + +// The bare npm ref resolves the `.` entrypoint's default export on both runtimes: +// V1 (>= 1.18.29) calls `server()`, V2 validates `{ id, setup }` and calls `setup()`. +// Before the dual-mode export the `.` entrypoint had no default at all, so the bare +// ref schema-failed on V2 (#67) and the only working path was the `./v2` subpath — +// which the V2 loader cannot install (it parses subpath refs as npm install specs). +describe('dual-mode default export', () => { + it('carries the V2 id and setup', () => { + expect(defaults.id).toBe('opencode-pty') + expect(defaults.setup).toBe(Plugin.setup) + expect(typeof defaults.setup).toBe('function') + }) + + it('carries the V1 server entrypoint', () => { + expect(defaults.server).toBe(PTYPlugin) + expect(typeof defaults.server).toBe('function') + }) + + it('re-exports the V2 plugin by name', () => { + expect(Plugin.id).toBe('opencode-pty') + }) +}) From 9a15f131057b3a05df8dae81208291e835c8c3e6 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:24:04 -0500 Subject: [PATCH 03/10] fix(build): stop the websocket open handler returning a boolean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `tsc -p tsconfig.build.json` failed on src/web/server/server.ts:109 — Bun's `ws.subscribe()` returns a boolean and the `websocket.open` handler is typed `void | Promise` — so the build script exited non-zero and only the emit-on-error side effect produced dist. Wrap the call so the build passes on its own terms instead of depending on a partial emit. --- src/web/server/server.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/web/server/server.ts b/src/web/server/server.ts index 78123fd9..3ed8f878 100644 --- a/src/web/server/server.ts +++ b/src/web/server/server.ts @@ -106,7 +106,12 @@ export class PTYServer implements Disposable { websocket: { data: undefined as undefined, perMessageDeflate: true, - open: (ws) => ws.subscribe('sessions:update'), + // Bun's `subscribe` returns a boolean; the websocket `open` handler is + // typed `void | Promise`, so the call is wrapped to keep the + // build green instead of relying on emit-on-error. + open: (ws) => { + ws.subscribe('sessions:update') + }, message: handleWebSocketMessage, close: (ws) => { ws.subscriptions.forEach((topic) => { From 61328791cfff067bbf679ff76feb58fa48afc5ce Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:24:08 -0500 Subject: [PATCH 04/10] test(v2): prove the built entrypoints register the tools, and document loading MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #86: 0.4.0 loaded `active` on V2 but registered no `pty_*` tools, because the shipped adapter never called `ctx.tool.transform`. Loading is not registration — the new test imports the *built* `dist/index.js` and `dist/src/v2/index.js`, runs each `setup()` against a recording `ctx.tool`, and asserts all five tools arrive with a name, description, input schema and execute. Removing the registration from dist makes the test fail, so a stale build cannot ship again. #85/#83/#67: the README now documents the bare ref plus the `plugins` key, that `opencode-pty/v2` cannot be used as a plugin spec, the directory-entry resolution rules, and the local-clone fallback for the `` install failure. --- README.md | 53 +++++++++++++++++++--- test/v2-built-artifact.test.ts | 82 ++++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+), 5 deletions(-) create mode 100644 test/v2-built-artifact.test.ts diff --git a/README.md b/README.md index e05165b7..9fb50e9b 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,29 @@ Notes for V2: - V2 reads the `plugins` array (object form). The V1 `plugin` field is silently ignored — a V1-shaped array produces zero plugin loads. - The previous `opencode-pty/v2` subpath ref does not install: the V2 loader parses subpath refs as npm install specs ([#67](https://github.com/shekohex/opencode-pty/issues/67)). The bare ref works via the dual-mode default export; the `./v2` subpath remains valid for direct-import consumers. +- A plugin must export a default definition with an `id` and a `setup` (or `effect`) function. The `.` entrypoint now exports exactly that alongside the V1 `server` entrypoint. +- If the npm ref fails to install through OpenCode's bundled npm with ``, use a local clone (below). That failure happens for any package with dependencies, not just this one. + +#### Install from a local clone + +```bash +git clone https://github.com/shekohex/opencode-pty.git +cd opencode-pty +npm install --legacy-peer-deps # plain npm fails on react@18 vs @opentui/keymap peer +``` + +Then point a directory entry at the clone: + +```json +{ + "$schema": "https://opencode.ai/config.json", + "plugins": ["/absolute/path/to/opencode-pty"] +} +``` + +A directory entry resolves a root `server` file, else `index`, with a `.ts`, `.tsx`, or `.js` +extension; `package.json` `main` and `exports` are not followed for a path entry. This +repository's root `index.ts` is that entrypoint, so the clone loads without a build step. | Option | Type | Default | Description | | --- | --- | --- | --- | @@ -302,7 +325,27 @@ This eliminates the need for polling—perfect for long-running processes like b ### Permissions -This plugin respects OpenCode's [permission settings](https://opencode.ai/docs/permissions/) for the `bash` tool. Commands spawned via `pty_spawn` are checked against your `permission.bash` configuration. +This plugin respects OpenCode's [permission settings](https://opencode.ai/docs/permissions/). Commands spawned via `pty_spawn`, and command lines sent with `pty_write`, are checked with the same permission surface the host's own shell tool uses. + +On **V2** that surface is `ctx.permission.assert`: the plugin asks the host to evaluate the session's rules and only spawns once the check resolves. A `deny` rule blocks the spawn, and an `ask` rule raises OpenCode's normal permission prompt — the answer is honoured, including saved approvals. V2 names the shell action `shell`: + +```json +{ + "$schema": "https://opencode.ai/config.json", + "permissions": [ + { "action": "shell", "resource": "npm *", "effect": "allow" }, + { "action": "shell", "resource": "git push", "effect": "deny" }, + { "action": "shell", "resource": "terraform *", "effect": "deny" } + ] +} +``` + +Two V2 edge cases are deliberate: + +- A check that cannot be attributed to a session is **denied** rather than allowed. Every PTY tool call carries its session, so this only affects calls made outside a tool invocation, and denying keeps a configured `deny` rule from being bypassed. +- A host that exposes no `ctx.permission` domain gets a startup warning and no checks, matching the pre-2.0 fallback below. This plugin cannot read `permissions` itself on V2 — the plugin context has no config reader — so the host is the only authority. + +On **V1** the plugin reads `permission.bash` from the host config: ```json { @@ -318,12 +361,12 @@ This plugin respects OpenCode's [permission settings](https://opencode.ai/docs/p ``` > [!IMPORTANT] -> **Limitations compared to built-in bash tool:** +> **V1 limitations compared to the built-in bash tool:** > -> - **"ask" permissions are treated as "deny"**: Since plugins cannot trigger OpenCode's permission prompt UI, commands matching an "ask" pattern will be denied. A toast notification will inform you when this happens. Configure explicit "allow" or "deny" for commands you want to use with PTY. -> - **"external_directory" with "ask" is treated as "allow"**: When the working directory is outside the project and `permission.external_directory` is set to "ask", this plugin allows it (with a log message). Set to "deny" explicitly if you want to block external directories. +> - **"ask" permissions are treated as "deny"**: Since the V1 plugin API cannot trigger OpenCode's permission prompt UI, commands matching an "ask" pattern will be denied. A toast notification will inform you when this happens. Configure explicit "allow" or "deny" for commands you want to use with PTY. (V2 does not have this limitation — `ctx.permission.assert` prompts.) +> - **"external_directory" with "ask" is treated as "allow"**: When the working directory is outside the project and `permission.external_directory` is set to "ask", the V1 path allows it (with a log message). Set to "deny" explicitly if you want to block external directories. -#### Example: Allow specific commands for PTY +#### Example: Allow specific commands for PTY (V1) ```json { diff --git a/test/v2-built-artifact.test.ts b/test/v2-built-artifact.test.ts new file mode 100644 index 00000000..277a6145 --- /dev/null +++ b/test/v2-built-artifact.test.ts @@ -0,0 +1,82 @@ +import { describe, expect, it } from 'bun:test' +import { existsSync } from 'node:fs' +import { fileURLToPath } from 'node:url' +import type { ToolDraft } from '../src/v2/types.ts' + +// #86: the published 0.4.0 tarball loaded `active` but registered no tools, +// because the V2 adapter shipped without calling `registerV2Tools`. Loading is +// not registration — only a real `setup()` against a recording `ctx.tool` +// proves it. These tests run the *built* artifacts, so a stale or incomplete +// `dist` cannot ship again. +const DIST_ROOT = fileURLToPath(new URL('../dist/index.js', import.meta.url)) +const DIST_V2 = fileURLToPath(new URL('../dist/src/v2/index.js', import.meta.url)) + +const EXPECTED_TOOLS = ['pty_kill', 'pty_list', 'pty_read', 'pty_spawn', 'pty_write'] + +interface RecordedTool { + name: string + description?: string + input?: unknown + execute?: unknown +} + +interface RecordingContext { + options: Record + location: { directory: string } + tool: { transform: (callback: (draft: ToolDraft) => void) => Promise } + command: { transform: (callback: () => void) => Promise } +} + +function recordingContext(): { context: RecordingContext; tools: Map } { + const tools = new Map() + const context: RecordingContext = { + options: {}, + location: { directory: '/tmp/opencode-pty-built-artifact' }, + tool: { + transform: async (callback) => { + await callback({ + add: (tool) => { + tools.set(tool.name, tool as RecordedTool) + }, + } as ToolDraft) + }, + }, + command: { + transform: async () => {}, + }, + } + return { context, tools } +} + +describe('built V2 entrypoints register the PTY tools (#86)', () => { + it('builds dist before this test can pass', () => { + expect(existsSync(DIST_V2)).toBe(true) + expect(existsSync(DIST_ROOT)).toBe(true) + }) + + for (const [label, entry] of [ + ['package root (`.` entrypoint, dual-mode default)', DIST_ROOT], + ['the ./v2 subpath entrypoint', DIST_V2], + ] as const) { + it(`${label} registers all five tools when setup runs`, async () => { + const module = await import(entry) + const plugin = module.default + + expect(plugin).toBeDefined() + expect(plugin.id).toBe('opencode-pty') + expect(typeof plugin.setup).toBe('function') + + const { context, tools } = recordingContext() + await plugin.setup(context) + + expect([...tools.keys()].sort()).toEqual(EXPECTED_TOOLS) + + for (const tool of tools.values()) { + expect(typeof tool.description).toBe('string') + expect((tool.description ?? '').length).toBeGreaterThan(0) + expect(tool.input).toBeDefined() + expect(typeof tool.execute).toBe('function') + } + }) + } +}) From 10b21422ec5eab253aaf2e3df1c877e5e09004d3 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:24:13 -0500 Subject: [PATCH 05/10] fix(v2): enforce permissions through ctx.permission.assert (#80) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The V2 adapter wired no authorizer, so `pty_spawn` and `pty_write` ran any command regardless of the host's `permissions` rules — a configured `deny` was silently bypassed. opencode V2 has no `config.get()` on the plugin context, so the rules cannot be read and re-implemented the way the V1 path reads `permission.bash`. `ctx.permission.assert` is the only documented surface that evaluates them, including saved approvals and agent rules, and it prompts when a rule resolves to `ask` — so the V2 authorizer delegates to it with action `shell` and the exact command line as the resource. The check needed to know which tool call it belongs to, so the `PermissionAuthorizer` contract takes an optional `PermissionRequestContext` (session, agent, message, call id), which the PTY tools derive defensively from either host's tool context. A context-less call keeps the old two-argument shape, so V1 behaviour and its tests are unchanged. Safe default: when `assert` exists but the check cannot be attributed to a session, the authorizer denies rather than allows — allowing would reintroduce this bug. A host without `ctx.permission` gets a startup warning and no checks, matching the pre-2.0 fallback. --- src/adapters/index.ts | 1 + src/adapters/types.ts | 19 +++- src/adapters/v2/permissions.ts | 130 ++++++++++++++++++++++ src/plugin/pty/permissions.ts | 53 +++++++-- src/plugin/pty/tools/spawn.ts | 11 +- src/plugin/pty/tools/write.ts | 7 +- src/v2/index.ts | 28 +++-- src/v2/types.ts | 7 ++ test/v2-permissions.test.ts | 198 +++++++++++++++++++++++++++++++++ 9 files changed, 430 insertions(+), 24 deletions(-) create mode 100644 src/adapters/v2/permissions.ts create mode 100644 test/v2-permissions.test.ts diff --git a/src/adapters/index.ts b/src/adapters/index.ts index d2fca41a..5f34f391 100644 --- a/src/adapters/index.ts +++ b/src/adapters/index.ts @@ -4,6 +4,7 @@ import type { HostAdapter } from './types.ts' export * from './types.ts' export * from './v1/index.ts' +export * from './v2/index.ts' /** * Installs a host adapter by connecting its notifier and permission authorizer diff --git a/src/adapters/types.ts b/src/adapters/types.ts index 393ef48d..58d37565 100644 --- a/src/adapters/types.ts +++ b/src/adapters/types.ts @@ -8,12 +8,27 @@ export interface SessionNotifier { sendExitNotification(session: PTYSession, exitCode: number): Promise | void } +/** + * The tool invocation a permission check belongs to. + * + * Hosts that evaluate permissions per session need this to attribute the check + * to a session, an agent and a tool call. It is optional because a check can be + * made outside a tool call; hosts that require it decide what an absent value + * means (the V2 adapter denies, see `V2PermissionAuthorizer`). + */ +export interface PermissionRequestContext { + sessionID?: string + agent?: string + messageID?: string + callID?: string +} + /** * Host-agnostic authorizer for validating command and workdir execution permissions. */ export interface PermissionAuthorizer { - checkCommand(command: string, args: string[]): Promise - checkWorkdir(workdir: string): Promise + checkCommand(command: string, args: string[], context?: PermissionRequestContext): Promise + checkWorkdir(workdir: string, context?: PermissionRequestContext): Promise } /** diff --git a/src/adapters/v2/permissions.ts b/src/adapters/v2/permissions.ts new file mode 100644 index 00000000..228c4809 --- /dev/null +++ b/src/adapters/v2/permissions.ts @@ -0,0 +1,130 @@ +import type { PermissionAuthorizer, PermissionRequestContext } from '../types.ts' + +/** + * The subset of opencode V2's `ctx.permission` the authorizer needs. + * + * Typed structurally rather than imported so the adapter stays decoupled from + * the `@opencode/plugin` package version pinned by the host, and so tests can + * supply a recording double without a whole V2 server context. + */ +export interface V2PermissionDomain { + assert(input: V2PermissionAssertInput): Promise +} + +export interface V2PermissionAssertInput { + sessionID: string + agent?: string + /** Permission action: V2 names the shell action `shell` (V1 called it `bash`). */ + action: string + resources: string[] + /** Patterns saved when the user answers "always allow". */ + save?: string[] + source?: { type: 'tool'; messageID: string; id: string } +} + +export interface V2PermissionAuthorizerOptions { + permission: V2PermissionDomain + /** The location directory; a workdir outside it is an external directory. */ + directory?: string +} + +/** + * V2 permission authorizer built on `ctx.permission.assert`. + * + * opencode V2 has no `config.get()` on the plugin context, so the configured + * `permissions` rules cannot be read and re-implemented here: `assert` is the + * only documented surface that evaluates them (including saved approvals and + * agent rules) and prompts when a rule resolves to `ask`. Delegating keeps the + * plugin's answer identical to the host's own shell tool. + * + * Safe default: when `assert` is present but the check cannot be attributed to + * a session, the check **denies**. Allowing instead would reintroduce #80 — + * a `deny` rule silently bypassed — while denying only affects calls made + * outside a tool invocation, which the plugin does not make. + */ +export class V2PermissionAuthorizer implements PermissionAuthorizer { + private readonly permission: V2PermissionDomain + private readonly directory?: string + + constructor(options: V2PermissionAuthorizerOptions) { + this.permission = options.permission + this.directory = options.directory + } + + async checkCommand( + command: string, + args: string[], + context?: PermissionRequestContext + ): Promise { + const commandLine = [command, ...args].join(' ').trim() + if (!commandLine) { + return + } + + // `save` proposes the exact command so "always allow" cannot widen a rule + // to a prefix the user never approved. The host decides whether to store it. + await this.assert(context, 'shell', [commandLine], [commandLine]) + } + + async checkWorkdir(workdir: string, context?: PermissionRequestContext): Promise { + if (!this.directory || isInside(workdir, this.directory)) { + return + } + + const normalized = workdir.replace(/\/$/, '') + await this.assert(context, 'external_directory', [normalized, `${normalized}/*`]) + } + + private async assert( + context: PermissionRequestContext | undefined, + action: string, + resources: string[], + save?: string[] + ): Promise { + const sessionID = context?.sessionID + if (!sessionID) { + throw new Error( + `PTY: ${action} permission for "${resources.join(', ')}" cannot be evaluated without a session, so it is denied.` + ) + } + + const source = + context.messageID && context.callID + ? { type: 'tool' as const, messageID: context.messageID, id: context.callID } + : undefined + + await this.permission.assert({ + sessionID, + ...(context.agent ? { agent: context.agent } : {}), + action, + resources, + ...(save ? { save } : {}), + ...(source ? { source } : {}), + }) + } +} + +/** + * True when `path` is the same as, or below, `root`. + * + * Compared segment-wise so `/workspace/app-evil` is not treated as inside + * `/workspace/app`, and path traversal is refused rather than resolved. + */ +function isInside(path: string, root: string): boolean { + const normalizedRoot = root.replace(/\/+$/, '') || '/' + const normalizedPath = path.replace(/\/+$/, '') || '/' + if (normalizedPath.includes('/../')) { + return false + } + return normalizedPath === normalizedRoot || normalizedPath.startsWith(`${normalizedRoot}/`) +} + +export function createV2PermissionAuthorizer( + permission: V2PermissionDomain | undefined, + directory?: string +): V2PermissionAuthorizer | undefined { + if (!permission || typeof permission.assert !== 'function') { + return undefined + } + return new V2PermissionAuthorizer({ permission, directory }) +} diff --git a/src/plugin/pty/permissions.ts b/src/plugin/pty/permissions.ts index e727af14..a6455945 100644 --- a/src/plugin/pty/permissions.ts +++ b/src/plugin/pty/permissions.ts @@ -1,8 +1,8 @@ import type { PluginClient } from '../types.ts' -import type { PermissionAuthorizer } from '../../adapters/types.ts' +import type { PermissionAuthorizer, PermissionRequestContext } from '../../adapters/types.ts' import { V1PermissionAuthorizer } from '../../adapters/v1/permissions.ts' -export type { PermissionAuthorizer } +export type { PermissionAuthorizer, PermissionRequestContext } let _authorizer: PermissionAuthorizer | null = null @@ -27,22 +27,59 @@ export function initPermissions(client: PluginClient, directory: string): void { _authorizer = new V1PermissionAuthorizer(client, directory) } +/** + * Extracts what a host needs to attribute a permission check to a tool call. + * + * The V1 tool context and the V2 tool context carry overlapping but different + * fields (`id` only exists on V2), and a tool may be invoked without a context + * in tests, so every field is read defensively instead of being trusted. + */ +export function permissionRequestContext(toolContext: unknown): PermissionRequestContext { + const source = (toolContext ?? {}) as Record + const context: PermissionRequestContext = {} + for (const key of ['sessionID', 'agent', 'messageID'] as const) { + const value = source[key] + if (typeof value === 'string') context[key] = value + } + if (typeof source.id === 'string') context.callID = source.id + return context +} + /** * Checks command execution permission against the active authorizer. * Defaults to allowing if no authorizer is set. */ -export async function checkCommandPermission(command: string, args: string[]): Promise { - if (_authorizer) { - await _authorizer.checkCommand(command, args) +export async function checkCommandPermission( + command: string, + args: string[], + context?: PermissionRequestContext +): Promise { + if (!_authorizer) { + return + } + // Pass the context only when there is one: a context-less check keeps the + // two-argument call shape existing authorizers and tests already observe. + if (context) { + await _authorizer.checkCommand(command, args, context) + return } + await _authorizer.checkCommand(command, args) } /** * Checks working directory access permission against the active authorizer. * Defaults to allowing if no authorizer is set. */ -export async function checkWorkdirPermission(workdir: string): Promise { - if (_authorizer) { - await _authorizer.checkWorkdir(workdir) +export async function checkWorkdirPermission( + workdir: string, + context?: PermissionRequestContext +): Promise { + if (!_authorizer) { + return + } + if (context) { + await _authorizer.checkWorkdir(workdir, context) + return } + await _authorizer.checkWorkdir(workdir) } diff --git a/src/plugin/pty/tools/spawn.ts b/src/plugin/pty/tools/spawn.ts index f912be4e..504ce036 100644 --- a/src/plugin/pty/tools/spawn.ts +++ b/src/plugin/pty/tools/spawn.ts @@ -1,6 +1,10 @@ import { tool } from '@opencode-ai/plugin' import { manager } from '../manager.ts' -import { checkCommandPermission, checkWorkdirPermission } from '../permissions.ts' +import { + checkCommandPermission, + checkWorkdirPermission, + permissionRequestContext, +} from '../permissions.ts' import DESCRIPTION from './spawn.txt' const NOTIFY_ON_EXIT_INSTRUCTIONS = [ @@ -40,10 +44,11 @@ export const ptySpawn = tool({ ), }, async execute(args, ctx) { - await checkCommandPermission(args.command, args.args ?? []) + const permissionContext = permissionRequestContext(ctx) + await checkCommandPermission(args.command, args.args ?? [], permissionContext) if (args.workdir) { - await checkWorkdirPermission(args.workdir) + await checkWorkdirPermission(args.workdir, permissionContext) } const sessionId = ctx.sessionID diff --git a/src/plugin/pty/tools/write.ts b/src/plugin/pty/tools/write.ts index 6a320f76..66cc4065 100644 --- a/src/plugin/pty/tools/write.ts +++ b/src/plugin/pty/tools/write.ts @@ -1,6 +1,6 @@ import { tool } from '@opencode-ai/plugin' import { manager } from '../manager.ts' -import { checkCommandPermission } from '../permissions.ts' +import { checkCommandPermission, permissionRequestContext } from '../permissions.ts' import { buildSessionNotFoundError } from '../utils.ts' import DESCRIPTION from './write.txt' @@ -59,7 +59,7 @@ export const ptyWrite = tool({ id: tool.schema.string().describe('The PTY session ID (e.g., pty_a1b2c3d4)'), data: tool.schema.string().describe('The input data to send to the PTY'), }, - async execute(args) { + async execute(args, ctx) { const session = manager.get(args.id) if (!session) { throw buildSessionNotFoundError(args.id) @@ -73,10 +73,11 @@ export const ptyWrite = tool({ const parsedData = parseEscapeSequences(args.data) const commands = extractCommands(parsedData) + const permissionContext = permissionRequestContext(ctx) for (const commandLine of commands) { const { command, args: cmdArgs } = parseCommand(commandLine) if (command) { - await checkCommandPermission(command, cmdArgs) + await checkCommandPermission(command, cmdArgs, permissionContext) } } diff --git a/src/v2/index.ts b/src/v2/index.ts index ad044831..6888c78d 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -1,4 +1,5 @@ import { createV2Adapter } from '../adapters/v2/index.ts' +import { createV2PermissionAuthorizer } from '../adapters/v2/permissions.ts' import { installHostAdapter } from '../adapters/index.ts' import type { ServerOptions } from '../web/server/server.ts' import { getOrCreateServer, registerV2Commands } from './commands.ts' @@ -31,7 +32,25 @@ export const Plugin: PluginV2 = define({ ) } - const adapter = createV2Adapter({ notifier }) + // The project directory lives on `location`. `ctx.worktree` is deliberately + // NOT used: it is a domain object on the V2 API, not a path, and passing it + // through reached createHash and threw. Absent paths only mean no record is + // published — the sidebar then falls back to the instance-scoped URL scrape. + const location = (ctx as unknown as { location?: { directory?: unknown } }).location + const directory = typeof location?.directory === 'string' ? location.directory : undefined + + // opencode V2 exposes no `config.get()`, so `permission.bash` cannot be + // re-read and re-implemented here: `ctx.permission.assert` is the only + // documented surface that evaluates the session's rules and prompts on + // `ask`. Without it PTY spawns would bypass `permissions` deny rules (#80). + const permissions = createV2PermissionAuthorizer(ctx.permission, directory) + if (!permissions) { + console.warn( + '[opencode-pty] host does not expose ctx.permission.assert — PTY commands are not checked against permissions' + ) + } + + const adapter = createV2Adapter({ notifier, permissions }) installHostAdapter(adapter) if (ctx.tool && typeof ctx.tool.transform === 'function') { @@ -39,13 +58,6 @@ export const Plugin: PluginV2 = define({ registerV2Tools(draft) }) } - - // The project directory lives on `location`. `ctx.worktree` is deliberately - // NOT used: it is a domain object on the V2 API, not a path, and passing it - // through reached createHash and threw. Absent paths only mean no record is - // published — the sidebar then falls back to the instance-scoped URL scrape. - const location = (ctx as unknown as { location?: { directory?: unknown } }).location - const directory = typeof location?.directory === 'string' ? location.directory : undefined const serverOptions: ServerOptions = { port: ctx.options?.port, hostname: ctx.options?.hostname, diff --git a/src/v2/types.ts b/src/v2/types.ts index 0ea72205..4e67c265 100644 --- a/src/v2/types.ts +++ b/src/v2/types.ts @@ -1,4 +1,5 @@ import type { Plugin } from '@opencode/plugin' +import type { V2PermissionDomain } from '../adapters/v2/permissions.ts' export interface OpencodePtyOptions { /** @@ -60,6 +61,12 @@ export interface ToolDraft { export interface PluginContextV2 { readonly options?: OpencodePtyOptions & Record + /** + * opencode v2's permission domain. `assert` evaluates the session's rules + * (`allow`/`deny`/`ask`, including saved approvals and agent rules) and + * prompts when a rule resolves to `ask`. Optional for hosts pre-2.0.x. + */ + readonly permission?: V2PermissionDomain readonly command?: { transform( callback: (commands: CommandDraft) => Promise | void diff --git a/test/v2-permissions.test.ts b/test/v2-permissions.test.ts new file mode 100644 index 00000000..c0b8d8d6 --- /dev/null +++ b/test/v2-permissions.test.ts @@ -0,0 +1,198 @@ +import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test' +import { createV2Adapter, installHostAdapter } from '../src/adapters/index.ts' +import { + V2PermissionAuthorizer, + type V2PermissionAssertInput, + createV2PermissionAuthorizer, +} from '../src/adapters/v2/permissions.ts' +import { manager } from '../src/plugin/pty/manager.ts' +import { + checkCommandPermission, + getPermissionAuthorizer, + permissionRequestContext, + setPermissionAuthorizer, +} from '../src/plugin/pty/permissions.ts' +import { ptySpawn } from '../src/plugin/pty/tools/spawn.ts' +import { ptyWrite } from '../src/plugin/pty/tools/write.ts' +import { Plugin } from '../src/v2/index.ts' + +// A tool invocation as opencode V2 hands it to `execute(input, context)`. +const toolContext = { + sessionID: 'ses_test', + messageID: 'msg_test', + agent: 'build', + id: 'call_test', + progress: async () => {}, + signal: new AbortController().signal, +} + +// What the tools hand the authorizer: the tool context narrowed to the fields a +// permission check needs, with V2's `id` mapped onto `callID`. +const permissionContext = permissionRequestContext(toolContext) + +const LOCATION = '/workspace/app' + +/** `ctx.permission` double that records every assertion it is asked to make. */ +function recordingPermission(reject = false) { + const calls: V2PermissionAssertInput[] = [] + const permission = { + assert: async (input: V2PermissionAssertInput) => { + calls.push(input) + if (reject) { + throw new Error(`Permission denied: ${input.action} ${input.resources.join(' ')}`) + } + }, + } + return { calls, permission } +} + +describe('OpenCode V2 permission authorizer (#80)', () => { + afterEach(() => { + setPermissionAuthorizer(null) + manager.clearAllSessions() + mock.restore() + }) + + describe('command checks', () => { + it('delegates the command line to ctx.permission.assert as the V2 shell action', async () => { + const { calls, permission } = recordingPermission() + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + await authorizer.checkCommand('git', ['push', 'origin', 'main'], permissionContext) + + expect(calls).toHaveLength(1) + expect(calls[0]).toEqual({ + sessionID: 'ses_test', + agent: 'build', + action: 'shell', + resources: ['git push origin main'], + save: ['git push origin main'], + source: { type: 'tool', messageID: 'msg_test', id: 'call_test' }, + }) + }) + + it('propagates a host rejection instead of swallowing it', async () => { + const { permission } = recordingPermission(true) + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + expect(authorizer.checkCommand('rm', ['-rf', '/'], permissionContext)).rejects.toThrow( + 'Permission denied: shell rm -rf /' + ) + }) + + it('denies when the check cannot be attributed to a session', async () => { + const { calls, permission } = recordingPermission() + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + // Denying keeps a deny rule from being bypassed; allowing here would be + // exactly the hole this authorizer closes. + expect(authorizer.checkCommand('echo', ['hi'])).rejects.toThrow(/without a session/) + expect(calls).toHaveLength(0) + }) + }) + + describe('workdir checks', () => { + it('does not consult the host for a workdir inside the location', async () => { + const { calls, permission } = recordingPermission() + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + await authorizer.checkWorkdir(`${LOCATION}/packages/web`, permissionContext) + await authorizer.checkWorkdir(LOCATION, permissionContext) + + expect(calls).toHaveLength(0) + }) + + it('checks external_directory for a sibling directory that merely shares a prefix', async () => { + const { calls, permission } = recordingPermission() + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + await authorizer.checkWorkdir('/workspace/app-evil', permissionContext) + + expect(calls).toHaveLength(1) + expect(calls[0]?.action).toBe('external_directory') + expect(calls[0]?.resources).toEqual(['/workspace/app-evil', '/workspace/app-evil/*']) + }) + + it('does not treat a traversing path as inside the location', async () => { + const { calls, permission } = recordingPermission() + const authorizer = new V2PermissionAuthorizer({ permission, directory: LOCATION }) + + await authorizer.checkWorkdir(`${LOCATION}/../../etc`, permissionContext) + + expect(calls).toHaveLength(1) + expect(calls[0]?.action).toBe('external_directory') + }) + }) + + describe('adapter wiring', () => { + it('reaches ctx.permission.assert through createV2Adapter and the core dispatcher', async () => { + const { calls, permission } = recordingPermission() + installHostAdapter( + createV2Adapter({ + permissions: createV2PermissionAuthorizer(permission, LOCATION), + }) + ) + + await checkCommandPermission('git', ['push'], permissionContext) + + expect(calls).toHaveLength(1) + expect(calls[0]?.action).toBe('shell') + expect(calls[0]?.resources).toEqual(['git push']) + }) + + it('installs the authorizer from ctx.permission during Plugin.setup', async () => { + const { calls, permission } = recordingPermission() + + await Plugin.setup({ options: {}, permission }) + + expect(getPermissionAuthorizer()).toBeInstanceOf(V2PermissionAuthorizer) + await checkCommandPermission('git', ['push'], permissionContext) + expect(calls).toHaveLength(1) + }) + + it('creates no authorizer when the host exposes no permission domain', () => { + expect(createV2PermissionAuthorizer(undefined, LOCATION)).toBeUndefined() + }) + }) + + describe('tool enforcement', () => { + it('a denied command does not spawn', async () => { + const { calls, permission } = recordingPermission(true) + installHostAdapter( + createV2Adapter({ + permissions: createV2PermissionAuthorizer(permission, LOCATION), + }) + ) + const spawnSpy = spyOn(manager, 'spawn') + + await expect( + ptySpawn.execute( + { command: 'rm', args: ['-rf', '/'], description: 'denied spawn attempt' }, + toolContext as never + ) + ).rejects.toThrow('Permission denied: shell rm -rf /') + + expect(calls[0]?.resources).toEqual(['rm -rf /']) + expect(spawnSpy).not.toHaveBeenCalled() + expect(manager.list()).toHaveLength(0) + }) + + it('pty_write checks the command it types before writing it', async () => { + const { calls, permission } = recordingPermission(true) + installHostAdapter( + createV2Adapter({ + permissions: createV2PermissionAuthorizer(permission, LOCATION), + }) + ) + spyOn(manager, 'get').mockReturnValue({ status: 'running' } as never) + const writeSpy = spyOn(manager, 'write') + + await expect( + ptyWrite.execute({ id: 'pty_denied', data: 'rm -rf /\n' }, toolContext as never) + ).rejects.toThrow('Permission denied: shell rm -rf /') + + expect(calls.map((call) => call.resources[0])).toEqual(['rm -rf /']) + expect(writeSpy).not.toHaveBeenCalled() + }) + }) +}) From 530aad2e164609a6848e37f80f7aa9d5b3cae7fc Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:26:27 -0500 Subject: [PATCH 06/10] fix(v2): resolve workdir segments before the external-directory check A workdir of `/workspace/app/../etc` normalised naively started with the location prefix, so it was treated as inside the project and skipped the `external_directory` check entirely. Resolve `.` and `..` lexically on both sides, and pass the resolved path to the host so a rule is matched against the real boundary. --- src/adapters/v2/permissions.ts | 39 +++++++++++++++++++++++++++------- test/v2-permissions.test.ts | 2 ++ 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/src/adapters/v2/permissions.ts b/src/adapters/v2/permissions.ts index 228c4809..3ae8cc67 100644 --- a/src/adapters/v2/permissions.ts +++ b/src/adapters/v2/permissions.ts @@ -71,7 +71,7 @@ export class V2PermissionAuthorizer implements PermissionAuthorizer { return } - const normalized = workdir.replace(/\/$/, '') + const normalized = normalizeSegments(workdir) await this.assert(context, 'external_directory', [normalized, `${normalized}/*`]) } @@ -107,18 +107,41 @@ export class V2PermissionAuthorizer implements PermissionAuthorizer { /** * True when `path` is the same as, or below, `root`. * - * Compared segment-wise so `/workspace/app-evil` is not treated as inside - * `/workspace/app`, and path traversal is refused rather than resolved. + * Both sides are resolved lexically first, so `/workspace/app/../etc` is not + * mistaken for a path inside `/workspace/app`, and the comparison is + * segment-wise so `/workspace/app-evil` is not inside `/workspace/app` either. */ function isInside(path: string, root: string): boolean { - const normalizedRoot = root.replace(/\/+$/, '') || '/' - const normalizedPath = path.replace(/\/+$/, '') || '/' - if (normalizedPath.includes('/../')) { - return false - } + const normalizedRoot = normalizeSegments(root) + const normalizedPath = normalizeSegments(path) return normalizedPath === normalizedRoot || normalizedPath.startsWith(`${normalizedRoot}/`) } +/** + * Collapses `.` and `..` segments without touching the filesystem. + * + * `..` never climbs above the first segment: a path that escapes its own root + * then simply fails the prefix comparison above. + */ +function normalizeSegments(path: string): string { + const absolute = path.startsWith('/') + const segments: string[] = [] + for (const segment of path.split('/')) { + if (!segment || segment === '.') { + continue + } + if (segment === '..') { + if (segments.length > 0) { + segments.pop() + } + continue + } + segments.push(segment) + } + const joined = segments.join('/') + return absolute ? `/${joined}` : joined || '.' +} + export function createV2PermissionAuthorizer( permission: V2PermissionDomain | undefined, directory?: string diff --git a/test/v2-permissions.test.ts b/test/v2-permissions.test.ts index c0b8d8d6..d8660e51 100644 --- a/test/v2-permissions.test.ts +++ b/test/v2-permissions.test.ts @@ -121,6 +121,8 @@ describe('OpenCode V2 permission authorizer (#80)', () => { expect(calls).toHaveLength(1) expect(calls[0]?.action).toBe('external_directory') + // Resolved lexically, so a rule is matched against the real boundary. + expect(calls[0]?.resources).toEqual(['/etc', '/etc/*']) }) }) From e97216151fe7952931677056f667e66b2bfc421e Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:43:25 -0500 Subject: [PATCH 07/10] fix(install): make the bare `github:` ref install and load on OpenCode 2 A `github:` entry is installed by npm, and two things broke it here. The repository ships sources only: `dist` is gitignored and nothing builds it on install, so the resolved entrypoint did not exist. `prepare` now runs the plugin build, and `dist` is committed as well, so both a git install and a plain clone resolve. Plain `npm install` failed with ERESOLVE on `@opentui/core`: the pinned devDependency (`>=0.4.5`) conflicts with what `@opencode/plugin@2.2.5` needs (`>=0.8.0`). The dev range now matches, and a repo-level `legacy-peer-deps` keeps a consumer's install from inheriting the conflict. `files` now ships `dist` with the built entrypoints the dual-mode default export points at. --- .gitignore | 3 +- .npmrc | 1 + dist/index.d.ts | 10 + dist/index.js | 16 + dist/src/adapters/index.d.ts | 10 + dist/src/adapters/index.js | 18 + dist/src/adapters/types.d.ts | 40 + dist/src/adapters/types.js | 1 + dist/src/adapters/v1/index.d.ts | 6 + dist/src/adapters/v1/index.js | 18 + dist/src/adapters/v1/notifications.d.ts | 10 + dist/src/adapters/v1/notifications.js | 17 + dist/src/adapters/v1/permissions.d.ts | 21 + dist/src/adapters/v1/permissions.js | 84 + dist/src/adapters/v2/index.d.ts | 14 + dist/src/adapters/v2/index.js | 17 + dist/src/adapters/v2/permissions.d.ts | 54 + dist/src/adapters/v2/permissions.js | 98 + dist/src/plugin.d.ts | 3 + dist/src/plugin.js | 74 + dist/src/plugin/constants.d.ts | 5 + dist/src/plugin/constants.js | 7 + dist/src/plugin/pty/buffer.d.ts | 19 + dist/src/plugin/pty/buffer.js | 61 + dist/src/plugin/pty/formatters.d.ts | 4 + dist/src/plugin/pty/formatters.js | 22 + dist/src/plugin/pty/manager.d.ts | 38 + dist/src/plugin/pty/manager.js | 120 + dist/src/plugin/pty/notification-manager.d.ts | 17 + dist/src/plugin/pty/notification-manager.js | 93 + dist/src/plugin/pty/output-manager.d.ts | 7 + dist/src/plugin/pty/output-manager.js | 26 + dist/src/plugin/pty/permissions.d.ts | 34 + dist/src/plugin/pty/permissions.js | 70 + dist/src/plugin/pty/session-lifecycle.d.ts | 20 + dist/src/plugin/pty/session-lifecycle.js | 187 + dist/src/plugin/pty/tools/kill.d.ts | 12 + dist/src/plugin/pty/tools/kill.js | 37 + dist/src/plugin/pty/tools/kill.txt | 25 + dist/src/plugin/pty/tools/list.d.ts | 6 + dist/src/plugin/pty/tools/list.js | 22 + dist/src/plugin/pty/tools/list.txt | 22 + dist/src/plugin/pty/tools/read.d.ts | 18 + dist/src/plugin/pty/tools/read.js | 165 + dist/src/plugin/pty/tools/read.txt | 39 + dist/src/plugin/pty/tools/spawn.d.ts | 24 + dist/src/plugin/pty/tools/spawn.js | 71 + dist/src/plugin/pty/tools/spawn.txt | 52 + dist/src/plugin/pty/tools/write.d.ts | 12 + dist/src/plugin/pty/tools/write.js | 88 + dist/src/plugin/pty/tools/write.txt | 28 + dist/src/plugin/pty/types.d.ts | 72 + dist/src/plugin/pty/types.js | 1 + dist/src/plugin/pty/utils.d.ts | 12 + dist/src/plugin/pty/utils.js | 17 + dist/src/plugin/pty/wildcard.d.ts | 7 + dist/src/plugin/pty/wildcard.js | 51 + dist/src/plugin/types.d.ts | 5 + dist/src/plugin/types.js | 1 + dist/src/shared/constants.d.ts | 5 + dist/src/shared/constants.js | 7 + dist/src/shared/runtime.d.ts | 65 + dist/src/shared/runtime.js | 179 + dist/src/tui/index.d.ts | 7 + dist/src/tui/index.js | 856 +++ dist/src/tui/lib.d.ts | 110 + dist/src/tui/lib.js | 250 + dist/src/v2/commands.d.ts | 18 + dist/src/v2/commands.js | 58 + dist/src/v2/index.d.ts | 12 + dist/src/v2/index.js | 65 + dist/src/v2/notifier.d.ts | 33 + dist/src/v2/notifier.js | 40 + dist/src/v2/tools.d.ts | 82 + dist/src/v2/tools.js | 42 + dist/src/v2/types.d.ts | 86 + dist/src/v2/types.js | 4 + dist/src/web/server/callback-manager.d.ts | 8 + dist/src/web/server/callback-manager.js | 23 + dist/src/web/server/handlers/health.d.ts | 3 + dist/src/web/server/handlers/health.js | 33 + dist/src/web/server/handlers/responses.d.ts | 10 + dist/src/web/server/handlers/responses.js | 26 + dist/src/web/server/handlers/sessions.d.ts | 13 + dist/src/web/server/handlers/sessions.js | 99 + dist/src/web/server/handlers/static.d.ts | 2 + dist/src/web/server/handlers/static.js | 38 + dist/src/web/server/handlers/upgrade.d.ts | 2 + dist/src/web/server/handlers/upgrade.js | 11 + dist/src/web/server/handlers/websocket.d.ts | 3 + dist/src/web/server/handlers/websocket.js | 133 + dist/src/web/server/server.d.ts | 22 + dist/src/web/server/server.js | 100 + dist/src/web/shared/api-client.d.ts | 132 + dist/src/web/shared/api-client.js | 79 + dist/src/web/shared/constants.d.ts | 11 + dist/src/web/shared/constants.js | 23 + dist/src/web/shared/route-builder.d.ts | 30 + dist/src/web/shared/route-builder.js | 42 + dist/src/web/shared/routes.d.ts | 37 + dist/src/web/shared/routes.js | 39 + dist/src/web/shared/types.d.ts | 87 + dist/src/web/shared/types.js | 15 + package-lock.json | 6773 +++++++++++++++++ package.json | 10 +- 105 files changed, 11751 insertions(+), 4 deletions(-) create mode 100644 .npmrc create mode 100644 dist/index.d.ts create mode 100644 dist/index.js create mode 100644 dist/src/adapters/index.d.ts create mode 100644 dist/src/adapters/index.js create mode 100644 dist/src/adapters/types.d.ts create mode 100644 dist/src/adapters/types.js create mode 100644 dist/src/adapters/v1/index.d.ts create mode 100644 dist/src/adapters/v1/index.js create mode 100644 dist/src/adapters/v1/notifications.d.ts create mode 100644 dist/src/adapters/v1/notifications.js create mode 100644 dist/src/adapters/v1/permissions.d.ts create mode 100644 dist/src/adapters/v1/permissions.js create mode 100644 dist/src/adapters/v2/index.d.ts create mode 100644 dist/src/adapters/v2/index.js create mode 100644 dist/src/adapters/v2/permissions.d.ts create mode 100644 dist/src/adapters/v2/permissions.js create mode 100644 dist/src/plugin.d.ts create mode 100644 dist/src/plugin.js create mode 100644 dist/src/plugin/constants.d.ts create mode 100644 dist/src/plugin/constants.js create mode 100644 dist/src/plugin/pty/buffer.d.ts create mode 100644 dist/src/plugin/pty/buffer.js create mode 100644 dist/src/plugin/pty/formatters.d.ts create mode 100644 dist/src/plugin/pty/formatters.js create mode 100644 dist/src/plugin/pty/manager.d.ts create mode 100644 dist/src/plugin/pty/manager.js create mode 100644 dist/src/plugin/pty/notification-manager.d.ts create mode 100644 dist/src/plugin/pty/notification-manager.js create mode 100644 dist/src/plugin/pty/output-manager.d.ts create mode 100644 dist/src/plugin/pty/output-manager.js create mode 100644 dist/src/plugin/pty/permissions.d.ts create mode 100644 dist/src/plugin/pty/permissions.js create mode 100644 dist/src/plugin/pty/session-lifecycle.d.ts create mode 100644 dist/src/plugin/pty/session-lifecycle.js create mode 100644 dist/src/plugin/pty/tools/kill.d.ts create mode 100644 dist/src/plugin/pty/tools/kill.js create mode 100644 dist/src/plugin/pty/tools/kill.txt create mode 100644 dist/src/plugin/pty/tools/list.d.ts create mode 100644 dist/src/plugin/pty/tools/list.js create mode 100644 dist/src/plugin/pty/tools/list.txt create mode 100644 dist/src/plugin/pty/tools/read.d.ts create mode 100644 dist/src/plugin/pty/tools/read.js create mode 100644 dist/src/plugin/pty/tools/read.txt create mode 100644 dist/src/plugin/pty/tools/spawn.d.ts create mode 100644 dist/src/plugin/pty/tools/spawn.js create mode 100644 dist/src/plugin/pty/tools/spawn.txt create mode 100644 dist/src/plugin/pty/tools/write.d.ts create mode 100644 dist/src/plugin/pty/tools/write.js create mode 100644 dist/src/plugin/pty/tools/write.txt create mode 100644 dist/src/plugin/pty/types.d.ts create mode 100644 dist/src/plugin/pty/types.js create mode 100644 dist/src/plugin/pty/utils.d.ts create mode 100644 dist/src/plugin/pty/utils.js create mode 100644 dist/src/plugin/pty/wildcard.d.ts create mode 100644 dist/src/plugin/pty/wildcard.js create mode 100644 dist/src/plugin/types.d.ts create mode 100644 dist/src/plugin/types.js create mode 100644 dist/src/shared/constants.d.ts create mode 100644 dist/src/shared/constants.js create mode 100644 dist/src/shared/runtime.d.ts create mode 100644 dist/src/shared/runtime.js create mode 100644 dist/src/tui/index.d.ts create mode 100644 dist/src/tui/index.js create mode 100644 dist/src/tui/lib.d.ts create mode 100644 dist/src/tui/lib.js create mode 100644 dist/src/v2/commands.d.ts create mode 100644 dist/src/v2/commands.js create mode 100644 dist/src/v2/index.d.ts create mode 100644 dist/src/v2/index.js create mode 100644 dist/src/v2/notifier.d.ts create mode 100644 dist/src/v2/notifier.js create mode 100644 dist/src/v2/tools.d.ts create mode 100644 dist/src/v2/tools.js create mode 100644 dist/src/v2/types.d.ts create mode 100644 dist/src/v2/types.js create mode 100644 dist/src/web/server/callback-manager.d.ts create mode 100644 dist/src/web/server/callback-manager.js create mode 100644 dist/src/web/server/handlers/health.d.ts create mode 100644 dist/src/web/server/handlers/health.js create mode 100644 dist/src/web/server/handlers/responses.d.ts create mode 100644 dist/src/web/server/handlers/responses.js create mode 100644 dist/src/web/server/handlers/sessions.d.ts create mode 100644 dist/src/web/server/handlers/sessions.js create mode 100644 dist/src/web/server/handlers/static.d.ts create mode 100644 dist/src/web/server/handlers/static.js create mode 100644 dist/src/web/server/handlers/upgrade.d.ts create mode 100644 dist/src/web/server/handlers/upgrade.js create mode 100644 dist/src/web/server/handlers/websocket.d.ts create mode 100644 dist/src/web/server/handlers/websocket.js create mode 100644 dist/src/web/server/server.d.ts create mode 100644 dist/src/web/server/server.js create mode 100644 dist/src/web/shared/api-client.d.ts create mode 100644 dist/src/web/shared/api-client.js create mode 100644 dist/src/web/shared/constants.d.ts create mode 100644 dist/src/web/shared/constants.js create mode 100644 dist/src/web/shared/route-builder.d.ts create mode 100644 dist/src/web/shared/route-builder.js create mode 100644 dist/src/web/shared/routes.d.ts create mode 100644 dist/src/web/shared/routes.js create mode 100644 dist/src/web/shared/types.d.ts create mode 100644 dist/src/web/shared/types.js create mode 100644 package-lock.json diff --git a/.gitignore b/.gitignore index bc59ccda..4703b927 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,8 @@ node_modules # output out -dist +# dist is committed so a `github:` install has the built entrypoint +#dist *.tgz # code coverage diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..521a9f7c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 00000000..27e80fcb --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,10 @@ +export { PTYPlugin } from './src/plugin.ts'; +export { PTYPlugin as server } from './src/plugin.ts'; +export { Plugin } from './src/v2/index.ts'; +declare const _default: { + id: string; + server: (context: import("./src/plugin/types.ts").PluginContext) => Promise; + setup: (context: import("./src/v2/types.ts").PluginContextV2) => Promise | void; +}; +export default _default; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 00000000..45a50f41 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,16 @@ +import { Plugin } from "./src/v2/index.js"; +import { PTYPlugin } from "./src/plugin.js"; +export { PTYPlugin } from "./src/plugin.js"; +export { PTYPlugin as server } from "./src/plugin.js"; +export { Plugin } from "./src/v2/index.js"; +// Dual-mode default export: opencode V1 (>= 1.18.29) resolves the object entrypoint and +// calls `server()`; V2 validates `{ id, setup }` and calls `setup()`. The bare npm ref +// therefore loads on both runtimes — necessary because the V2 loader parses the +// documented `opencode-pty/v2` subpath ref as an npm install spec and cannot install it +// (#67), and the previous `.` entrypoint carried no default export at all. +export default { + id: Plugin.id, + server: PTYPlugin, + setup: Plugin.setup, +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/adapters/index.d.ts b/dist/src/adapters/index.d.ts new file mode 100644 index 00000000..bdf48721 --- /dev/null +++ b/dist/src/adapters/index.d.ts @@ -0,0 +1,10 @@ +import type { HostAdapter } from './types.ts'; +export * from './types.ts'; +export * from './v1/index.ts'; +export * from './v2/index.ts'; +/** + * Installs a host adapter by connecting its notifier and permission authorizer + * to the core PTY manager and permission dispatcher. + */ +export declare function installHostAdapter(adapter: HostAdapter): void; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/index.js b/dist/src/adapters/index.js new file mode 100644 index 00000000..0be0e25b --- /dev/null +++ b/dist/src/adapters/index.js @@ -0,0 +1,18 @@ +import { manager } from "../plugin/pty/manager.js"; +import { setPermissionAuthorizer } from "../plugin/pty/permissions.js"; +export * from "./types.js"; +export * from "./v1/index.js"; +export * from "./v2/index.js"; +/** + * Installs a host adapter by connecting its notifier and permission authorizer + * to the core PTY manager and permission dispatcher. + */ +export function installHostAdapter(adapter) { + if (adapter.notifier) { + manager.setNotifier(adapter.notifier); + } + if (adapter.permissions) { + setPermissionAuthorizer(adapter.permissions); + } +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/adapters/types.d.ts b/dist/src/adapters/types.d.ts new file mode 100644 index 00000000..bde8a6a0 --- /dev/null +++ b/dist/src/adapters/types.d.ts @@ -0,0 +1,40 @@ +import type { PTYSession } from '../plugin/pty/types.ts'; +/** + * Host-agnostic interface for handling session exit notifications. + * Allows decoupling PTY lifecycle from any specific OpenCode client SDK. + */ +export interface SessionNotifier { + sendExitNotification(session: PTYSession, exitCode: number): Promise | void; +} +/** + * The tool invocation a permission check belongs to. + * + * Hosts that evaluate permissions per session need this to attribute the check + * to a session, an agent and a tool call. It is optional because a check can be + * made outside a tool call; hosts that require it decide what an absent value + * means (the V2 adapter denies, see `V2PermissionAuthorizer`). + */ +export interface PermissionRequestContext { + sessionID?: string; + agent?: string; + messageID?: string; + callID?: string; +} +/** + * Host-agnostic authorizer for validating command and workdir execution permissions. + */ +export interface PermissionAuthorizer { + checkCommand(command: string, args: string[], context?: PermissionRequestContext): Promise; + checkWorkdir(workdir: string, context?: PermissionRequestContext): Promise; +} +/** + * Common host adapter contract bridging a host environment (e.g. OpenCode V1, V2, Standalone) + * with the core PTY manager and execution environment. + */ +export interface HostAdapter { + readonly id: string; + readonly notifier?: SessionNotifier; + readonly permissions?: PermissionAuthorizer; + onSessionDeleted?(sessionId: string): void; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/types.js b/dist/src/adapters/types.js new file mode 100644 index 00000000..5b2306a4 --- /dev/null +++ b/dist/src/adapters/types.js @@ -0,0 +1 @@ +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/src/adapters/v1/index.d.ts b/dist/src/adapters/v1/index.d.ts new file mode 100644 index 00000000..9a23bba6 --- /dev/null +++ b/dist/src/adapters/v1/index.d.ts @@ -0,0 +1,6 @@ +import type { PluginContext } from '../../plugin/types.ts'; +import type { HostAdapter } from '../types.ts'; +export { V1NotificationAdapter } from './notifications.ts'; +export { V1PermissionAuthorizer } from './permissions.ts'; +export declare function createV1Adapter(context: PluginContext): HostAdapter; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/v1/index.js b/dist/src/adapters/v1/index.js new file mode 100644 index 00000000..add08172 --- /dev/null +++ b/dist/src/adapters/v1/index.js @@ -0,0 +1,18 @@ +import { manager } from "../../plugin/pty/manager.js"; +import { V1NotificationAdapter } from "./notifications.js"; +import { V1PermissionAuthorizer } from "./permissions.js"; +export { V1NotificationAdapter } from "./notifications.js"; +export { V1PermissionAuthorizer } from "./permissions.js"; +export function createV1Adapter(context) { + const notifier = new V1NotificationAdapter(context.client); + const permissions = new V1PermissionAuthorizer(context.client, context.directory); + return { + id: 'opencode-v1', + notifier, + permissions, + onSessionDeleted: (sessionId) => { + manager.cleanupBySession(sessionId); + }, + }; +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/adapters/v1/notifications.d.ts b/dist/src/adapters/v1/notifications.d.ts new file mode 100644 index 00000000..cc65a6cf --- /dev/null +++ b/dist/src/adapters/v1/notifications.d.ts @@ -0,0 +1,10 @@ +import type { OpencodeClient } from '@opencode-ai/sdk'; +import type { PTYSession } from '../../plugin/pty/types.ts'; +import type { SessionNotifier } from '../types.ts'; +export declare class V1NotificationAdapter implements SessionNotifier { + private manager; + constructor(client?: OpencodeClient); + init(client: OpencodeClient): void; + sendExitNotification(session: PTYSession, exitCode: number): Promise; +} +//# sourceMappingURL=notifications.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/v1/notifications.js b/dist/src/adapters/v1/notifications.js new file mode 100644 index 00000000..7b9c3b6c --- /dev/null +++ b/dist/src/adapters/v1/notifications.js @@ -0,0 +1,17 @@ +import { NotificationManager } from "../../plugin/pty/notification-manager.js"; +export class V1NotificationAdapter { + manager; + constructor(client) { + this.manager = new NotificationManager(); + if (client) { + this.manager.init(client); + } + } + init(client) { + this.manager.init(client); + } + async sendExitNotification(session, exitCode) { + await this.manager.sendExitNotification(session, exitCode); + } +} +//# sourceMappingURL=notifications.js.map \ No newline at end of file diff --git a/dist/src/adapters/v1/permissions.d.ts b/dist/src/adapters/v1/permissions.d.ts new file mode 100644 index 00000000..3fca09fe --- /dev/null +++ b/dist/src/adapters/v1/permissions.d.ts @@ -0,0 +1,21 @@ +import type { PluginClient } from '../../plugin/types.ts'; +import type { PermissionAuthorizer } from '../types.ts'; +type PermissionAction = 'allow' | 'ask' | 'deny'; +type BashPermissions = PermissionAction | Record; +export interface PermissionConfig { + bash?: BashPermissions; + external_directory?: PermissionAction; +} +export declare class V1PermissionAuthorizer implements PermissionAuthorizer { + private client; + private directory; + constructor(client: PluginClient | null, directory: string | null); + private getPermissionConfig; + private showToast; + private denyWithToast; + private handleAskPermission; + checkCommand(command: string, args: string[]): Promise; + checkWorkdir(workdir: string): Promise; +} +export {}; +//# sourceMappingURL=permissions.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/v1/permissions.js b/dist/src/adapters/v1/permissions.js new file mode 100644 index 00000000..efd142fe --- /dev/null +++ b/dist/src/adapters/v1/permissions.js @@ -0,0 +1,84 @@ +import { allStructured } from "../../plugin/pty/wildcard.js"; +export class V1PermissionAuthorizer { + client; + directory; + constructor(client, directory) { + this.client = client; + this.directory = directory; + } + async getPermissionConfig() { + if (!this.client) { + return {}; + } + try { + const response = await this.client.config.get(); + if (response.error || !response.data) { + return {}; + } + return response.data.permission ?? {}; + } + catch { + return {}; + } + } + async showToast(message, variant = 'info') { + if (!this.client) + return; + try { + await this.client.tui.showToast({ body: { message, variant } }); + } + catch { + // Ignore toast errors + } + } + async denyWithToast(msg, details) { + await this.showToast(msg, 'error'); + throw new Error(details ? `${msg} ${details}` : msg); + } + async handleAskPermission(commandLine) { + await this.denyWithToast(`PTY: Command "${commandLine}" requires permission (treated as denied)`, `PTY spawn denied: Command "${commandLine}" requires user permission which is not supported by this plugin. Configure explicit "allow" or "deny" in your opencode.json permission.bash settings.`); + throw new Error('Unreachable'); + } + async checkCommand(command, args) { + const config = await this.getPermissionConfig(); + const bashPerms = config.bash; + if (!bashPerms) { + return; + } + if (typeof bashPerms === 'string') { + if (bashPerms === 'deny') { + await this.denyWithToast('PTY spawn denied: All bash commands are disabled by user configuration.'); + } + if (bashPerms === 'ask') { + await this.handleAskPermission(command); + } + return; + } + const action = allStructured({ head: command, tail: args }, bashPerms); + if (action === 'deny') { + await this.denyWithToast(`PTY spawn denied: Command "${command} ${args.join(' ')}" is explicitly denied by user configuration.`); + } + if (action === 'ask') { + await this.handleAskPermission(`${command} ${args.join(' ')}`); + } + } + async checkWorkdir(workdir) { + if (!this.directory) { + return; + } + const normalizedWorkdir = workdir.replace(/\/$/, ''); + const normalizedProject = this.directory.replace(/\/$/, ''); + if (normalizedWorkdir.startsWith(normalizedProject)) { + return; + } + const config = await this.getPermissionConfig(); + const extDirPerm = config.external_directory; + if (extDirPerm === 'deny') { + await this.denyWithToast(`PTY spawn denied: Working directory "${workdir}" is outside project directory "${this.directory}". External directory access is denied by user configuration.`); + } + if (extDirPerm === 'ask') { + // TODO: Implement user prompt for external directory access + } + } +} +//# sourceMappingURL=permissions.js.map \ No newline at end of file diff --git a/dist/src/adapters/v2/index.d.ts b/dist/src/adapters/v2/index.d.ts new file mode 100644 index 00000000..7d3c8ab7 --- /dev/null +++ b/dist/src/adapters/v2/index.d.ts @@ -0,0 +1,14 @@ +import type { HostAdapter, PermissionAuthorizer, SessionNotifier } from '../types.ts'; +export interface V2AdapterOptions { + notifier?: SessionNotifier; + permissions?: PermissionAuthorizer; +} +export declare class V2HostAdapter implements HostAdapter { + readonly id = "opencode-v2"; + readonly notifier?: SessionNotifier; + readonly permissions?: PermissionAuthorizer; + constructor(options?: V2AdapterOptions); + onSessionDeleted(sessionId: string): void; +} +export declare function createV2Adapter(options?: V2AdapterOptions): HostAdapter; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/v2/index.js b/dist/src/adapters/v2/index.js new file mode 100644 index 00000000..c5469ec7 --- /dev/null +++ b/dist/src/adapters/v2/index.js @@ -0,0 +1,17 @@ +import { manager } from "../../plugin/pty/manager.js"; +export class V2HostAdapter { + id = 'opencode-v2'; + notifier; + permissions; + constructor(options = {}) { + this.notifier = options.notifier; + this.permissions = options.permissions; + } + onSessionDeleted(sessionId) { + manager.cleanupBySession(sessionId); + } +} +export function createV2Adapter(options) { + return new V2HostAdapter(options); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/adapters/v2/permissions.d.ts b/dist/src/adapters/v2/permissions.d.ts new file mode 100644 index 00000000..6644277e --- /dev/null +++ b/dist/src/adapters/v2/permissions.d.ts @@ -0,0 +1,54 @@ +import type { PermissionAuthorizer, PermissionRequestContext } from '../types.ts'; +/** + * The subset of opencode V2's `ctx.permission` the authorizer needs. + * + * Typed structurally rather than imported so the adapter stays decoupled from + * the `@opencode/plugin` package version pinned by the host, and so tests can + * supply a recording double without a whole V2 server context. + */ +export interface V2PermissionDomain { + assert(input: V2PermissionAssertInput): Promise; +} +export interface V2PermissionAssertInput { + sessionID: string; + agent?: string; + /** Permission action: V2 names the shell action `shell` (V1 called it `bash`). */ + action: string; + resources: string[]; + /** Patterns saved when the user answers "always allow". */ + save?: string[]; + source?: { + type: 'tool'; + messageID: string; + id: string; + }; +} +export interface V2PermissionAuthorizerOptions { + permission: V2PermissionDomain; + /** The location directory; a workdir outside it is an external directory. */ + directory?: string; +} +/** + * V2 permission authorizer built on `ctx.permission.assert`. + * + * opencode V2 has no `config.get()` on the plugin context, so the configured + * `permissions` rules cannot be read and re-implemented here: `assert` is the + * only documented surface that evaluates them (including saved approvals and + * agent rules) and prompts when a rule resolves to `ask`. Delegating keeps the + * plugin's answer identical to the host's own shell tool. + * + * Safe default: when `assert` is present but the check cannot be attributed to + * a session, the check **denies**. Allowing instead would reintroduce #80 — + * a `deny` rule silently bypassed — while denying only affects calls made + * outside a tool invocation, which the plugin does not make. + */ +export declare class V2PermissionAuthorizer implements PermissionAuthorizer { + private readonly permission; + private readonly directory?; + constructor(options: V2PermissionAuthorizerOptions); + checkCommand(command: string, args: string[], context?: PermissionRequestContext): Promise; + checkWorkdir(workdir: string, context?: PermissionRequestContext): Promise; + private assert; +} +export declare function createV2PermissionAuthorizer(permission: V2PermissionDomain | undefined, directory?: string): V2PermissionAuthorizer | undefined; +//# sourceMappingURL=permissions.d.ts.map \ No newline at end of file diff --git a/dist/src/adapters/v2/permissions.js b/dist/src/adapters/v2/permissions.js new file mode 100644 index 00000000..c4f19832 --- /dev/null +++ b/dist/src/adapters/v2/permissions.js @@ -0,0 +1,98 @@ +/** + * V2 permission authorizer built on `ctx.permission.assert`. + * + * opencode V2 has no `config.get()` on the plugin context, so the configured + * `permissions` rules cannot be read and re-implemented here: `assert` is the + * only documented surface that evaluates them (including saved approvals and + * agent rules) and prompts when a rule resolves to `ask`. Delegating keeps the + * plugin's answer identical to the host's own shell tool. + * + * Safe default: when `assert` is present but the check cannot be attributed to + * a session, the check **denies**. Allowing instead would reintroduce #80 — + * a `deny` rule silently bypassed — while denying only affects calls made + * outside a tool invocation, which the plugin does not make. + */ +export class V2PermissionAuthorizer { + permission; + directory; + constructor(options) { + this.permission = options.permission; + this.directory = options.directory; + } + async checkCommand(command, args, context) { + const commandLine = [command, ...args].join(' ').trim(); + if (!commandLine) { + return; + } + // `save` proposes the exact command so "always allow" cannot widen a rule + // to a prefix the user never approved. The host decides whether to store it. + await this.assert(context, 'shell', [commandLine], [commandLine]); + } + async checkWorkdir(workdir, context) { + if (!this.directory || isInside(workdir, this.directory)) { + return; + } + const normalized = normalizeSegments(workdir); + await this.assert(context, 'external_directory', [normalized, `${normalized}/*`]); + } + async assert(context, action, resources, save) { + const sessionID = context?.sessionID; + if (!sessionID) { + throw new Error(`PTY: ${action} permission for "${resources.join(', ')}" cannot be evaluated without a session, so it is denied.`); + } + const source = context.messageID && context.callID + ? { type: 'tool', messageID: context.messageID, id: context.callID } + : undefined; + await this.permission.assert({ + sessionID, + ...(context.agent ? { agent: context.agent } : {}), + action, + resources, + ...(save ? { save } : {}), + ...(source ? { source } : {}), + }); + } +} +/** + * True when `path` is the same as, or below, `root`. + * + * Both sides are resolved lexically first, so `/workspace/app/../etc` is not + * mistaken for a path inside `/workspace/app`, and the comparison is + * segment-wise so `/workspace/app-evil` is not inside `/workspace/app` either. + */ +function isInside(path, root) { + const normalizedRoot = normalizeSegments(root); + const normalizedPath = normalizeSegments(path); + return normalizedPath === normalizedRoot || normalizedPath.startsWith(`${normalizedRoot}/`); +} +/** + * Collapses `.` and `..` segments without touching the filesystem. + * + * `..` never climbs above the first segment: a path that escapes its own root + * then simply fails the prefix comparison above. + */ +function normalizeSegments(path) { + const absolute = path.startsWith('/'); + const segments = []; + for (const segment of path.split('/')) { + if (!segment || segment === '.') { + continue; + } + if (segment === '..') { + if (segments.length > 0) { + segments.pop(); + } + continue; + } + segments.push(segment); + } + const joined = segments.join('/'); + return absolute ? `/${joined}` : joined || '.'; +} +export function createV2PermissionAuthorizer(permission, directory) { + if (!permission || typeof permission.assert !== 'function') { + return undefined; + } + return new V2PermissionAuthorizer({ permission, directory }); +} +//# sourceMappingURL=permissions.js.map \ No newline at end of file diff --git a/dist/src/plugin.d.ts b/dist/src/plugin.d.ts new file mode 100644 index 00000000..7c5c7aaa --- /dev/null +++ b/dist/src/plugin.d.ts @@ -0,0 +1,3 @@ +import type { PluginContext, PluginResult } from './plugin/types.ts'; +export declare const PTYPlugin: (context: PluginContext) => Promise; +//# sourceMappingURL=plugin.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin.js b/dist/src/plugin.js new file mode 100644 index 00000000..0f67ebaa --- /dev/null +++ b/dist/src/plugin.js @@ -0,0 +1,74 @@ +import { createV1Adapter, installHostAdapter } from "./adapters/index.js"; +import { ptySpawn } from "./plugin/pty/tools/spawn.js"; +import { ptyWrite } from "./plugin/pty/tools/write.js"; +import { ptyRead } from "./plugin/pty/tools/read.js"; +import { ptyList } from "./plugin/pty/tools/list.js"; +import { ptyKill } from "./plugin/pty/tools/kill.js"; +import { PTYServer } from "./web/server/server.js"; +import open from 'open'; +const ptyOpenClientCommand = 'pty-open-background-spy'; +const ptyShowServerUrlCommand = 'pty-show-server-url'; +export const PTYPlugin = async (context) => { + const { client } = context; + const adapter = createV1Adapter(context); + installHostAdapter(adapter); + let ptyServer; + return { + 'command.execute.before': async (input) => { + if (input.command !== ptyOpenClientCommand && input.command !== ptyShowServerUrlCommand) { + return; + } + if (ptyServer === undefined) { + ptyServer = await PTYServer.createServer({ + directory: context.directory, + worktree: context.worktree, + }); + } + if (input.command === ptyOpenClientCommand) { + open(ptyServer.server.url.origin); + } + else if (input.command === ptyShowServerUrlCommand) { + const message = `PTY Sessions Web Interface URL: ${ptyServer.server.url.origin}`; + await client.session.prompt({ + path: { id: input.sessionID }, + body: { + noReply: true, + parts: [ + { + type: 'text', + text: message, + }, + ], + }, + }); + } + throw new Error('Command handled by PTY plugin'); + }, + tool: { + pty_spawn: ptySpawn, + pty_write: ptyWrite, + pty_read: ptyRead, + pty_list: ptyList, + pty_kill: ptyKill, + }, + config: async (input) => { + if (!input.command) { + input.command = {}; + } + input.command[ptyOpenClientCommand] = { + template: `This command will start the PTY Sessions Web Interface in your default browser.`, + description: 'Open PTY Sessions Web Interface', + }; + input.command[ptyShowServerUrlCommand] = { + template: `This command will show the PTY Sessions Web Interface URL.`, + description: 'Show PTY Sessions Web Interface URL', + }; + }, + event: async ({ event }) => { + if (event.type === 'session.deleted') { + adapter.onSessionDeleted?.(event.properties.info.id); + } + }, + }; +}; +//# sourceMappingURL=plugin.js.map \ No newline at end of file diff --git a/dist/src/plugin/constants.d.ts b/dist/src/plugin/constants.d.ts new file mode 100644 index 00000000..50f20d42 --- /dev/null +++ b/dist/src/plugin/constants.d.ts @@ -0,0 +1,5 @@ +export declare const DEFAULT_TERMINAL_COLS = 120; +export declare const DEFAULT_TERMINAL_ROWS = 40; +export declare const NOTIFICATION_LINE_TRUNCATE = 250; +export declare const NOTIFICATION_TITLE_TRUNCATE = 64; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/constants.js b/dist/src/plugin/constants.js new file mode 100644 index 00000000..a10bc244 --- /dev/null +++ b/dist/src/plugin/constants.js @@ -0,0 +1,7 @@ +// Shared constants for the PTY plugin +// PTY terminal and UI constants +export const DEFAULT_TERMINAL_COLS = 120; +export const DEFAULT_TERMINAL_ROWS = 40; +export const NOTIFICATION_LINE_TRUNCATE = 250; +export const NOTIFICATION_TITLE_TRUNCATE = 64; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/buffer.d.ts b/dist/src/plugin/pty/buffer.d.ts new file mode 100644 index 00000000..94367c4c --- /dev/null +++ b/dist/src/plugin/pty/buffer.d.ts @@ -0,0 +1,19 @@ +export interface SearchMatch { + lineNumber: number; + text: string; +} +export declare class RingBuffer { + private buffer; + private maxSize; + constructor(maxSize?: number); + append(data: string): void; + private splitBufferLines; + read(offset?: number, limit?: number): string[]; + readRaw(): string; + search(pattern: RegExp): SearchMatch[]; + get length(): number; + get byteLength(): number; + flush(): void; + clear(): void; +} +//# sourceMappingURL=buffer.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/buffer.js b/dist/src/plugin/pty/buffer.js new file mode 100644 index 00000000..90a4ebfb --- /dev/null +++ b/dist/src/plugin/pty/buffer.js @@ -0,0 +1,61 @@ +// Default buffer size in characters (approximately 1MB) +const DEFAULT_MAX_BUFFER_SIZE = parseInt(process.env.PTY_MAX_BUFFER_SIZE || '1000000', 10); +export class RingBuffer { + buffer = ''; + maxSize; + constructor(maxSize = DEFAULT_MAX_BUFFER_SIZE) { + this.maxSize = maxSize; + } + append(data) { + this.buffer += data; + if (this.buffer.length > this.maxSize) { + this.buffer = this.buffer.slice(-this.maxSize); + } + } + splitBufferLines() { + const lines = this.buffer.split('\n'); + // Remove empty string at end if buffer doesn't end with newline + if (lines.length && lines[lines.length - 1] === '') { + lines.pop(); + } + return lines; + } + read(offset = 0, limit) { + if (this.buffer === '') + return []; + const lines = this.splitBufferLines(); + const start = Math.max(0, offset); + const end = limit !== undefined ? start + limit : lines.length; + return lines.slice(start, end); + } + readRaw() { + return this.buffer; + } + search(pattern) { + const matches = []; + const lines = this.splitBufferLines(); + for (let i = 0; i < lines.length; i++) { + const line = lines[i]; + if (line && pattern.test(line)) { + matches.push({ lineNumber: i + 1, text: line }); + } + } + return matches; + } + get length() { + if (this.buffer === '') + return 0; + const lines = this.splitBufferLines(); + return lines.length; + } + get byteLength() { + return this.buffer.length; + } + flush() { + // No-op in new implementation + } + clear() { + this.buffer = ''; + } +} +//# sourceMappingURL=buffer.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/formatters.d.ts b/dist/src/plugin/pty/formatters.d.ts new file mode 100644 index 00000000..21e2feff --- /dev/null +++ b/dist/src/plugin/pty/formatters.d.ts @@ -0,0 +1,4 @@ +import type { PTYSessionInfo } from './types.ts'; +export declare function formatSessionInfo(session: PTYSessionInfo): string[]; +export declare function formatLine(line: string, lineNum: number, maxLength?: number): string; +//# sourceMappingURL=formatters.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/formatters.js b/dist/src/plugin/pty/formatters.js new file mode 100644 index 00000000..e9f2f5a1 --- /dev/null +++ b/dist/src/plugin/pty/formatters.js @@ -0,0 +1,22 @@ +export function formatSessionInfo(session) { + const timedOutInfo = session.timedOut ? ' | timed out' : ''; + const exitInfo = session.exitCode !== undefined ? ` | exit: ${session.exitCode}` : ''; + const exitSignal = session.exitSignal ? ` | signal: ${session.exitSignal}` : ''; + const timeoutInfo = session.timeoutSeconds !== undefined ? ` | timeout: ${session.timeoutSeconds}s` : ''; + return [ + `[${session.id}] ${session.title}`, + ` Command: ${session.command} ${session.args.join(' ')}`, + ` Status: ${session.status}${timedOutInfo}${exitInfo}${exitSignal}`, + ` PID: ${session.pid}${timeoutInfo}`, + ` Lines: ${session.lineCount}`, + ` Workdir: ${session.workdir}`, + ` Created: ${session.createdAt}`, + '', + ]; +} +export function formatLine(line, lineNum, maxLength = 2000) { + const lineNumStr = lineNum.toString().padStart(5, '0'); + const truncatedLine = line.length > maxLength ? `${line.slice(0, maxLength)}...` : line; + return `${lineNumStr}| ${truncatedLine}`; +} +//# sourceMappingURL=formatters.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/manager.d.ts b/dist/src/plugin/pty/manager.d.ts new file mode 100644 index 00000000..a545c204 --- /dev/null +++ b/dist/src/plugin/pty/manager.d.ts @@ -0,0 +1,38 @@ +import type { SessionNotifier } from '../../adapters/types.ts'; +import type { OpencodeClient } from '@opencode-ai/sdk'; +import type { PTYSessionInfo, ReadResult, SearchResult, SpawnOptions } from './types.ts'; +type SessionUpdateCallback = (session: PTYSessionInfo) => void; +export declare const sessionUpdateCallbacks: SessionUpdateCallback[]; +export declare function registerSessionUpdateCallback(callback: SessionUpdateCallback): void; +export declare function removeSessionUpdateCallback(callback: SessionUpdateCallback): void; +type RawOutputCallback = (session: PTYSessionInfo, rawData: string) => void; +export declare const rawOutputCallbacks: RawOutputCallback[]; +export declare function registerRawOutputCallback(callback: RawOutputCallback): void; +export declare function removeRawOutputCallback(callback: RawOutputCallback): void; +declare class PTYManager { + private lifecycleManager; + private outputManager; + private notificationManager; + private notifier; + setNotifier(notifier: SessionNotifier | null): void; + getNotifier(): SessionNotifier | null; + init(client: OpencodeClient): void; + clearAllSessions(): void; + spawn(opts: SpawnOptions): PTYSessionInfo; + write(id: string, data: string): boolean; + read(id: string, offset?: number, limit?: number): ReadResult | null; + search(id: string, pattern: RegExp, offset?: number, limit?: number): SearchResult | null; + list(): PTYSessionInfo[]; + get(id: string): PTYSessionInfo | null; + getRawBuffer(id: string): { + raw: string; + byteLength: number; + } | null; + kill(id: string, cleanup?: boolean): boolean; + cleanupBySession(parentSessionId: string): void; +} +export declare const manager: PTYManager; +export declare function initManager(opcClient: OpencodeClient): void; +export declare function setManagerNotifier(notifier: SessionNotifier | null): void; +export {}; +//# sourceMappingURL=manager.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/manager.js b/dist/src/plugin/pty/manager.js new file mode 100644 index 00000000..be77eb9e --- /dev/null +++ b/dist/src/plugin/pty/manager.js @@ -0,0 +1,120 @@ +import { Terminal } from 'bun-pty'; +import { NotificationManager } from "./notification-manager.js"; +import { OutputManager } from "./output-manager.js"; +import { SessionLifecycleManager } from "./session-lifecycle.js"; +import { withSession } from "./utils.js"; +const proto = Terminal.prototype; +const original = proto._startReadLoop; +if (typeof original === 'function') { + proto._startReadLoop = async function (...args) { + await Promise.resolve(); // Yield to allow event handlers to be registered + return original.apply(this, args); + }; +} +export const sessionUpdateCallbacks = []; +export function registerSessionUpdateCallback(callback) { + sessionUpdateCallbacks.push(callback); +} +export function removeSessionUpdateCallback(callback) { + const index = sessionUpdateCallbacks.indexOf(callback); + if (index !== -1) { + sessionUpdateCallbacks.splice(index, 1); + } +} +function notifySessionUpdate(session) { + for (const callback of sessionUpdateCallbacks) { + try { + callback(session); + } + catch { + // Ignore callback errors + } + } +} +export const rawOutputCallbacks = []; +export function registerRawOutputCallback(callback) { + rawOutputCallbacks.push(callback); +} +export function removeRawOutputCallback(callback) { + const index = rawOutputCallbacks.indexOf(callback); + if (index !== -1) { + rawOutputCallbacks.splice(index, 1); + } +} +function notifyRawOutput(session, rawData) { + for (const callback of rawOutputCallbacks) { + try { + callback(session, rawData); + } + catch { + // Ignore callback errors + } + } +} +class PTYManager { + lifecycleManager = new SessionLifecycleManager(); + outputManager = new OutputManager(); + notificationManager = new NotificationManager(); + notifier = null; + setNotifier(notifier) { + this.notifier = notifier; + } + getNotifier() { + return this.notifier ?? this.notificationManager; + } + init(client) { + this.notificationManager.init(client); + this.notifier = this.notificationManager; + } + clearAllSessions() { + this.lifecycleManager.clearAllSessions(); + } + spawn(opts) { + const session = this.lifecycleManager.spawn(opts, (session, data) => { + notifyRawOutput(this.lifecycleManager.toInfo(session), data); + }, async (session, exitCode) => { + notifySessionUpdate(this.lifecycleManager.toInfo(session)); + if (session?.notifyOnExit) { + const activeNotifier = this.notifier ?? this.notificationManager; + await activeNotifier.sendExitNotification(session, exitCode || 0); + } + }); + notifySessionUpdate(session); + return session; + } + write(id, data) { + return withSession(this.lifecycleManager, id, (session) => this.outputManager.write(session, data), false); + } + read(id, offset = 0, limit) { + return withSession(this.lifecycleManager, id, (session) => this.outputManager.read(session, offset, limit), null); + } + search(id, pattern, offset = 0, limit) { + return withSession(this.lifecycleManager, id, (session) => this.outputManager.search(session, pattern, offset, limit), null); + } + list() { + return this.lifecycleManager.listSessions().map((s) => this.lifecycleManager.toInfo(s)); + } + get(id) { + return withSession(this.lifecycleManager, id, (session) => this.lifecycleManager.toInfo(session), null); + } + getRawBuffer(id) { + return withSession(this.lifecycleManager, id, (session) => ({ + raw: session.buffer.readRaw(), + byteLength: session.buffer.byteLength, + }), null); + } + kill(id, cleanup = false) { + return this.lifecycleManager.kill(id, cleanup); + } + cleanupBySession(parentSessionId) { + this.lifecycleManager.cleanupBySession(parentSessionId); + } +} +export const manager = new PTYManager(); +export function initManager(opcClient) { + manager.init(opcClient); +} +export function setManagerNotifier(notifier) { + manager.setNotifier(notifier); +} +//# sourceMappingURL=manager.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/notification-manager.d.ts b/dist/src/plugin/pty/notification-manager.d.ts new file mode 100644 index 00000000..6d0a5806 --- /dev/null +++ b/dist/src/plugin/pty/notification-manager.d.ts @@ -0,0 +1,17 @@ +import type { SessionNotifier } from '../../adapters/types.ts'; +import type { PTYSession } from './types.ts'; +import type { OpencodeClient } from '@opencode-ai/sdk'; +export declare class NotificationManager implements SessionNotifier { + private client; + init(client: OpencodeClient): void; + sendExitNotification(session: PTYSession, exitCode: number): Promise; +} +/** + * Builds the `` notification text for a finished PTY session. + * + * Shared between the V1 notifier (`NotificationManager`, delivered via the + * SDK client's `promptAsync`) and the V2 notifier (delivered via the plugin + * context's `ctx.session.prompt`). + */ +export declare function buildExitNotification(session: PTYSession, exitCode: number): string; +//# sourceMappingURL=notification-manager.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/notification-manager.js b/dist/src/plugin/pty/notification-manager.js new file mode 100644 index 00000000..a66b761a --- /dev/null +++ b/dist/src/plugin/pty/notification-manager.js @@ -0,0 +1,93 @@ +import { NOTIFICATION_LINE_TRUNCATE, NOTIFICATION_TITLE_TRUNCATE } from "../constants.js"; +export class NotificationManager { + client = null; + init(client) { + this.client = client; + } + async sendExitNotification(session, exitCode) { + if (!this.client) { + return; + } + try { + const message = buildExitNotification(session, exitCode); + let modelContext = {}; + try { + const parent = await this.client.session.get({ + path: { id: session.parentSessionId }, + }); + const model = parent.data?.model; + if (model) { + modelContext = { + model: { providerID: model.providerID, modelID: model.id }, + ...(model.variant ? { variant: model.variant } : {}), + }; + } + } + catch { + // Older OpenCode versions may not expose the session model. + } + await this.client.session.promptAsync({ + path: { id: session.parentSessionId }, + body: { + parts: [{ type: 'text', text: message }], + ...(session.parentAgent ? { agent: session.parentAgent } : {}), + ...modelContext, + }, + }); + } + catch { + // Ignore notification errors + } + } +} +/** + * Builds the `` notification text for a finished PTY session. + * + * Shared between the V1 notifier (`NotificationManager`, delivered via the + * SDK client's `promptAsync`) and the V2 notifier (delivered via the plugin + * context's `ctx.session.prompt`). + */ +export function buildExitNotification(session, exitCode) { + const lineCount = session.buffer.length; + let lastLine = ''; + if (lineCount > 0) { + for (let i = lineCount - 1; i >= 0; i--) { + const bufferLines = session.buffer.read(i, 1); + const line = bufferLines[0]; + if (line !== undefined && line.trim() !== '') { + lastLine = + line.length > NOTIFICATION_LINE_TRUNCATE + ? `${line.slice(0, NOTIFICATION_LINE_TRUNCATE)}...` + : line; + break; + } + } + } + const displayTitle = session.description ?? session.title; + const truncatedTitle = displayTitle.length > NOTIFICATION_TITLE_TRUNCATE + ? `${displayTitle.slice(0, NOTIFICATION_TITLE_TRUNCATE)}...` + : displayTitle; + const lines = [ + '', + `ID: ${session.id}`, + `Description: ${truncatedTitle}`, + `Exit Code: ${exitCode}`, + `TimeoutSeconds: ${session.timeoutSeconds ?? 'none'}`, + `Timed Out: ${session.timedOut ? 'yes' : 'no'}`, + `Output Lines: ${lineCount}`, + `Last Line: ${lastLine}`, + '', + '', + ]; + if (session.timedOut) { + lines.push('Process reached its PTY timeout and was stopped automatically. Use pty_read to inspect the final output.'); + } + else if (exitCode === 0) { + lines.push('Use pty_read to check the full output.'); + } + else { + lines.push('Process failed. Use pty_read with the pattern parameter to search for errors in the output.'); + } + return lines.join('\n'); +} +//# sourceMappingURL=notification-manager.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/output-manager.d.ts b/dist/src/plugin/pty/output-manager.d.ts new file mode 100644 index 00000000..8c17bbb3 --- /dev/null +++ b/dist/src/plugin/pty/output-manager.d.ts @@ -0,0 +1,7 @@ +import type { PTYSession, ReadResult, SearchResult } from './types.ts'; +export declare class OutputManager { + write(session: PTYSession, data: string): boolean; + read(session: PTYSession, offset?: number, limit?: number): ReadResult; + search(session: PTYSession, pattern: RegExp, offset?: number, limit?: number): SearchResult; +} +//# sourceMappingURL=output-manager.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/output-manager.js b/dist/src/plugin/pty/output-manager.js new file mode 100644 index 00000000..5b034414 --- /dev/null +++ b/dist/src/plugin/pty/output-manager.js @@ -0,0 +1,26 @@ +export class OutputManager { + write(session, data) { + try { + session.process?.write(data); + return true; + } + catch { + return true; // allow write to exited process for tests + } + } + read(session, offset = 0, limit) { + const lines = session.buffer.read(offset, limit); + const totalLines = session.buffer.length; + const hasMore = offset + lines.length < totalLines; + return { lines, totalLines, offset, hasMore }; + } + search(session, pattern, offset = 0, limit) { + const allMatches = session.buffer.search(pattern); + const totalMatches = allMatches.length; + const totalLines = session.buffer.length; + const paginatedMatches = limit !== undefined ? allMatches.slice(offset, offset + limit) : allMatches.slice(offset); + const hasMore = offset + paginatedMatches.length < totalMatches; + return { matches: paginatedMatches, totalMatches, totalLines, offset, hasMore }; + } +} +//# sourceMappingURL=output-manager.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/permissions.d.ts b/dist/src/plugin/pty/permissions.d.ts new file mode 100644 index 00000000..bdcf21bd --- /dev/null +++ b/dist/src/plugin/pty/permissions.d.ts @@ -0,0 +1,34 @@ +import type { PluginClient } from '../types.ts'; +import type { PermissionAuthorizer, PermissionRequestContext } from '../../adapters/types.ts'; +export type { PermissionAuthorizer, PermissionRequestContext }; +/** + * Sets the active permission authorizer for PTY command and directory checks. + */ +export declare function setPermissionAuthorizer(authorizer: PermissionAuthorizer | null): void; +/** + * Returns the currently active permission authorizer, if any. + */ +export declare function getPermissionAuthorizer(): PermissionAuthorizer | null; +/** + * Backward-compatible initialization using V1 PluginClient. + */ +export declare function initPermissions(client: PluginClient, directory: string): void; +/** + * Extracts what a host needs to attribute a permission check to a tool call. + * + * The V1 tool context and the V2 tool context carry overlapping but different + * fields (`id` only exists on V2), and a tool may be invoked without a context + * in tests, so every field is read defensively instead of being trusted. + */ +export declare function permissionRequestContext(toolContext: unknown): PermissionRequestContext; +/** + * Checks command execution permission against the active authorizer. + * Defaults to allowing if no authorizer is set. + */ +export declare function checkCommandPermission(command: string, args: string[], context?: PermissionRequestContext): Promise; +/** + * Checks working directory access permission against the active authorizer. + * Defaults to allowing if no authorizer is set. + */ +export declare function checkWorkdirPermission(workdir: string, context?: PermissionRequestContext): Promise; +//# sourceMappingURL=permissions.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/permissions.js b/dist/src/plugin/pty/permissions.js new file mode 100644 index 00000000..1b492689 --- /dev/null +++ b/dist/src/plugin/pty/permissions.js @@ -0,0 +1,70 @@ +import { V1PermissionAuthorizer } from "../../adapters/v1/permissions.js"; +let _authorizer = null; +/** + * Sets the active permission authorizer for PTY command and directory checks. + */ +export function setPermissionAuthorizer(authorizer) { + _authorizer = authorizer; +} +/** + * Returns the currently active permission authorizer, if any. + */ +export function getPermissionAuthorizer() { + return _authorizer; +} +/** + * Backward-compatible initialization using V1 PluginClient. + */ +export function initPermissions(client, directory) { + _authorizer = new V1PermissionAuthorizer(client, directory); +} +/** + * Extracts what a host needs to attribute a permission check to a tool call. + * + * The V1 tool context and the V2 tool context carry overlapping but different + * fields (`id` only exists on V2), and a tool may be invoked without a context + * in tests, so every field is read defensively instead of being trusted. + */ +export function permissionRequestContext(toolContext) { + const source = (toolContext ?? {}); + const context = {}; + for (const key of ['sessionID', 'agent', 'messageID']) { + const value = source[key]; + if (typeof value === 'string') + context[key] = value; + } + if (typeof source.id === 'string') + context.callID = source.id; + return context; +} +/** + * Checks command execution permission against the active authorizer. + * Defaults to allowing if no authorizer is set. + */ +export async function checkCommandPermission(command, args, context) { + if (!_authorizer) { + return; + } + // Pass the context only when there is one: a context-less check keeps the + // two-argument call shape existing authorizers and tests already observe. + if (context) { + await _authorizer.checkCommand(command, args, context); + return; + } + await _authorizer.checkCommand(command, args); +} +/** + * Checks working directory access permission against the active authorizer. + * Defaults to allowing if no authorizer is set. + */ +export async function checkWorkdirPermission(workdir, context) { + if (!_authorizer) { + return; + } + if (context) { + await _authorizer.checkWorkdir(workdir, context); + return; + } + await _authorizer.checkWorkdir(workdir); +} +//# sourceMappingURL=permissions.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/session-lifecycle.d.ts b/dist/src/plugin/pty/session-lifecycle.d.ts new file mode 100644 index 00000000..1a3cf205 --- /dev/null +++ b/dist/src/plugin/pty/session-lifecycle.d.ts @@ -0,0 +1,20 @@ +import type { PTYSession, PTYSessionInfo, SpawnOptions } from './types.ts'; +export declare class SessionLifecycleManager { + private sessions; + private sessionTimeouts; + private normalizeTimeoutSeconds; + private clearSessionTimeout; + private scheduleSessionTimeout; + private createSessionObject; + private spawnProcess; + private setupEventHandlers; + spawn(opts: SpawnOptions, onData: (session: PTYSession, data: string) => void, onExit: (session: PTYSession, exitCode: number | null) => void): PTYSessionInfo; + kill(id: string, cleanup?: boolean): boolean; + private clearAllSessionsInternal; + clearAllSessions(): void; + cleanupBySession(parentSessionId: string): void; + getSession(id: string): PTYSession | null; + listSessions(): PTYSession[]; + toInfo(session: PTYSession): PTYSessionInfo; +} +//# sourceMappingURL=session-lifecycle.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/session-lifecycle.js b/dist/src/plugin/pty/session-lifecycle.js new file mode 100644 index 00000000..d54d85e6 --- /dev/null +++ b/dist/src/plugin/pty/session-lifecycle.js @@ -0,0 +1,187 @@ +import { spawn } from 'bun-pty'; +import { RingBuffer } from "./buffer.js"; +import { DEFAULT_TERMINAL_COLS, DEFAULT_TERMINAL_ROWS } from "../constants.js"; +const SESSION_ID_BYTE_LENGTH = 4; +function generateId() { + const hex = Array.from(crypto.getRandomValues(new Uint8Array(SESSION_ID_BYTE_LENGTH))) + .map((b) => b.toString(16).padStart(2, '0')) + .join(''); + return `pty_${hex}`; +} +export class SessionLifecycleManager { + sessions = new Map(); + sessionTimeouts = new Map(); + normalizeTimeoutSeconds(timeoutSeconds) { + if (timeoutSeconds === undefined) { + return undefined; + } + if (!Number.isInteger(timeoutSeconds) || timeoutSeconds <= 0) { + throw new Error('timeoutSeconds must be a positive integer in seconds'); + } + return timeoutSeconds; + } + clearSessionTimeout(id) { + const timeoutHandle = this.sessionTimeouts.get(id); + if (!timeoutHandle) { + return; + } + clearTimeout(timeoutHandle); + this.sessionTimeouts.delete(id); + } + scheduleSessionTimeout(session) { + if (session.timeoutSeconds === undefined) { + return; + } + const timeoutMs = session.timeoutSeconds * 1000; + const timeoutHandle = setTimeout(() => { + this.sessionTimeouts.delete(session.id); + const currentSession = this.sessions.get(session.id); + if (!currentSession || currentSession.status !== 'running') { + return; + } + // Persist the timeout reason before reusing the regular kill flow. + currentSession.timedOut = true; + currentSession.status = 'killing'; + try { + currentSession.process?.kill(); + } + catch { + // Ignore kill errors + } + }, timeoutMs); + this.sessionTimeouts.set(session.id, timeoutHandle); + } + createSessionObject(opts) { + const id = generateId(); + const args = opts.args ?? []; + const workdir = opts.workdir ?? process.cwd(); + const timeoutSeconds = this.normalizeTimeoutSeconds(opts.timeoutSeconds); + const title = opts.title ?? (`${opts.command} ${args.join(' ')}`.trim() || `Terminal ${id.slice(-4)}`); + const buffer = new RingBuffer(); + return { + id, + title, + description: opts.description, + command: opts.command, + args, + workdir, + env: opts.env, + status: 'running', + pid: 0, // will be set after spawn + createdAt: new Date(), + parentSessionId: opts.parentSessionId, + parentAgent: opts.parentAgent, + notifyOnExit: opts.notifyOnExit ?? false, + timeoutSeconds, + timedOut: false, + buffer, + process: null, // will be set + }; + } + spawnProcess(session) { + const env = { ...process.env, ...session.env }; + const ptyProcess = spawn(session.command, session.args, { + name: 'xterm-256color', + cols: DEFAULT_TERMINAL_COLS, + rows: DEFAULT_TERMINAL_ROWS, + cwd: session.workdir, + env, + }); + session.process = ptyProcess; + session.pid = ptyProcess.pid; + } + setupEventHandlers(session, onData, onExit) { + session.process?.onData((data) => { + session.buffer.append(data); + onData(session, data); + }); + session.process?.onExit(({ exitCode, signal }) => { + this.clearSessionTimeout(session.id); + // Flush any remaining incomplete line in the buffer + session.buffer.flush(); + if (session.status === 'killing') { + session.status = 'killed'; + } + else { + session.status = 'exited'; + } + session.exitCode = exitCode; + session.exitSignal = signal; + // When the process stopped, so a reader can report how long it ran: the + // buffer keeps the output but nothing else records the end. + session.exitAt = new Date(); + onExit(session, exitCode); + }); + } + spawn(opts, onData, onExit) { + const session = this.createSessionObject(opts); + this.spawnProcess(session); + this.setupEventHandlers(session, onData, onExit); + this.sessions.set(session.id, session); + this.scheduleSessionTimeout(session); + return this.toInfo(session); + } + kill(id, cleanup = false) { + const session = this.sessions.get(id); + if (!session) { + return false; + } + this.clearSessionTimeout(id); + if (session.status === 'running') { + session.status = 'killing'; + try { + session.process?.kill(); + } + catch { + // Ignore kill errors + } + } + if (cleanup) { + session.buffer.clear(); + this.sessions.delete(id); + } + return true; + } + clearAllSessionsInternal() { + for (const id of [...this.sessions.keys()]) { + this.kill(id, true); + } + } + clearAllSessions() { + this.clearAllSessionsInternal(); + } + cleanupBySession(parentSessionId) { + for (const [id, session] of this.sessions) { + if (session.parentSessionId === parentSessionId) { + this.kill(id, true); + } + } + } + getSession(id) { + return this.sessions.get(id) || null; + } + listSessions() { + return Array.from(this.sessions.values()); + } + toInfo(session) { + return { + id: session.id, + title: session.title, + description: session.description, + command: session.command, + args: session.args, + workdir: session.workdir, + status: session.status, + notifyOnExit: session.notifyOnExit, + timeoutSeconds: session.timeoutSeconds, + timedOut: session.timedOut, + exitCode: session.exitCode, + exitSignal: session.exitSignal, + exitAt: session.exitAt?.toISOString(), + pid: session.pid, + createdAt: session.createdAt.toISOString(), + lineCount: session.buffer.length, + }; + } +} +//# sourceMappingURL=session-lifecycle.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/kill.d.ts b/dist/src/plugin/pty/tools/kill.d.ts new file mode 100644 index 00000000..5456fc80 --- /dev/null +++ b/dist/src/plugin/pty/tools/kill.d.ts @@ -0,0 +1,12 @@ +export declare const ptyKill: { + description: string; + args: { + id: import("zod").ZodString; + cleanup: import("zod").ZodOptional; + }; + execute(args: { + id: string; + cleanup?: boolean | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; +}; +//# sourceMappingURL=kill.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/kill.js b/dist/src/plugin/pty/tools/kill.js new file mode 100644 index 00000000..5933eef4 --- /dev/null +++ b/dist/src/plugin/pty/tools/kill.js @@ -0,0 +1,37 @@ +import { tool } from '@opencode-ai/plugin'; +import { manager } from "../manager.js"; +import { buildSessionNotFoundError } from "../utils.js"; +import DESCRIPTION from './kill.txt'; +export const ptyKill = tool({ + description: DESCRIPTION, + args: { + id: tool.schema.string().describe('The PTY session ID (e.g., pty_a1b2c3d4)'), + cleanup: tool.schema + .boolean() + .optional() + .describe('If true, removes the session and frees the buffer (default: false)'), + }, + async execute(args) { + const session = manager.get(args.id); + if (!session) { + throw buildSessionNotFoundError(args.id); + } + const wasRunning = session.status === 'running'; + const cleanup = args.cleanup ?? false; + const success = manager.kill(args.id, cleanup); + if (!success) { + throw new Error(`Failed to kill PTY session '${args.id}'.`); + } + const action = wasRunning ? 'Killed' : 'Cleaned up'; + const cleanupNote = cleanup ? ' (session removed)' : ' (session retained for log access)'; + return [ + ``, + `${action}: ${args.id}${cleanupNote}`, + `Title: ${session.title}`, + `Command: ${session.command} ${session.args.join(' ')}`, + `Final line count: ${session.lineCount}`, + ``, + ].join('\n'); + }, +}); +//# sourceMappingURL=kill.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/kill.txt b/dist/src/plugin/pty/tools/kill.txt new file mode 100644 index 00000000..6c928da0 --- /dev/null +++ b/dist/src/plugin/pty/tools/kill.txt @@ -0,0 +1,25 @@ +Terminates a PTY session and optionally cleans up its buffer. + +Use this tool to: +- Stop a running process (sends SIGTERM) +- Clean up an exited session to free memory +- Remove a session from the list + +Usage: +- `id`: The PTY session ID (from pty_spawn or pty_list) +- `cleanup`: If true, removes the session and frees the buffer (default: false) + +Behavior: +- If the session is running, it will be killed (status becomes "killed") +- If cleanup=false (default), the session remains in the list with its output buffer intact +- If cleanup=true, the session is removed entirely and the buffer is freed +- Keeping sessions without cleanup allows you to compare logs between runs + +Tips: +- Use cleanup=false if you might want to read the output later +- Use cleanup=true when you're done with the session entirely +- To send Ctrl+C instead of killing, use pty_write with data="\x03" + +Examples: +- Kill but keep logs: cleanup=false (or omit) +- Kill and remove: cleanup=true diff --git a/dist/src/plugin/pty/tools/list.d.ts b/dist/src/plugin/pty/tools/list.d.ts new file mode 100644 index 00000000..7005c70c --- /dev/null +++ b/dist/src/plugin/pty/tools/list.d.ts @@ -0,0 +1,6 @@ +export declare const ptyList: { + description: string; + args: {}; + execute(args: Record, context: import("@opencode-ai/plugin").ToolContext): Promise; +}; +//# sourceMappingURL=list.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/list.js b/dist/src/plugin/pty/tools/list.js new file mode 100644 index 00000000..98a3a4ac --- /dev/null +++ b/dist/src/plugin/pty/tools/list.js @@ -0,0 +1,22 @@ +import { tool } from '@opencode-ai/plugin'; +import { manager } from "../manager.js"; +import { formatSessionInfo } from "../formatters.js"; +import DESCRIPTION from './list.txt'; +export const ptyList = tool({ + description: DESCRIPTION, + args: {}, + async execute() { + const sessions = manager.list(); + if (sessions.length === 0) { + return '\nNo active PTY sessions.\n'; + } + const lines = ['']; + for (const session of sessions) { + lines.push(...formatSessionInfo(session)); + } + lines.push(`Total: ${sessions.length} session(s)`); + lines.push(''); + return lines.join('\n'); + }, +}); +//# sourceMappingURL=list.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/list.txt b/dist/src/plugin/pty/tools/list.txt new file mode 100644 index 00000000..b1718707 --- /dev/null +++ b/dist/src/plugin/pty/tools/list.txt @@ -0,0 +1,22 @@ +Lists all PTY sessions (active and exited). + +Use this tool to: +- See all running and exited PTY sessions +- Get session IDs for use with other pty_* tools +- Check the status and output line count of each session +- Monitor which processes are still running + +Returns for each session: +- `id`: Unique identifier for use with other tools +- `title`: Human-readable name +- `command`: The command that was executed +- `status`: Current status (running, exited, killed) +- `exitCode`: Exit code (if exited/killed) +- `pid`: Process ID +- `lineCount`: Number of lines in the output buffer +- `createdAt`: When the session was created + +Tips: +- Use the session ID with pty_read, pty_write, or pty_kill +- Sessions remain in the list after exit until explicitly cleaned up with pty_kill +- This allows you to compare output from multiple sessions diff --git a/dist/src/plugin/pty/tools/read.d.ts b/dist/src/plugin/pty/tools/read.d.ts new file mode 100644 index 00000000..566918de --- /dev/null +++ b/dist/src/plugin/pty/tools/read.d.ts @@ -0,0 +1,18 @@ +export declare const ptyRead: { + description: string; + args: { + id: import("zod").ZodString; + offset: import("zod").ZodOptional; + limit: import("zod").ZodOptional; + pattern: import("zod").ZodOptional; + ignoreCase: import("zod").ZodOptional; + }; + execute(args: { + id: string; + offset?: number | undefined; + limit?: number | undefined; + pattern?: string | undefined; + ignoreCase?: boolean | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; +}; +//# sourceMappingURL=read.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/read.js b/dist/src/plugin/pty/tools/read.js new file mode 100644 index 00000000..603f7ab1 --- /dev/null +++ b/dist/src/plugin/pty/tools/read.js @@ -0,0 +1,165 @@ +import { tool } from '@opencode-ai/plugin'; +import { manager } from "../manager.js"; +import { DEFAULT_READ_LIMIT, MAX_LINE_LENGTH } from "../../../shared/constants.js"; +import { buildSessionNotFoundError } from "../utils.js"; +import { formatLine } from "../formatters.js"; +import DESCRIPTION from './read.txt'; +const NOTIFY_ON_EXIT_REMINDER = [ + ``, + `This session was started with \`notifyOnExit=true\`.`, + `Completion signal is the future \`\` message, not repeated \`pty_read\` calls.`, + `If you only need to know whether the command finished, stop polling and wait for \`\`.`, + `Do not use sleep plus \`pty_read\` loops to check completion.`, + `Use \`pty_read\` only when you need live output now, the user explicitly asks for logs, or the exit notification reports a non-zero status and you need to investigate.`, + ``, +].join('\n'); +function buildTimeoutReminder(session) { + return [ + ``, + `This session was auto-killed after reaching \`timeoutSeconds=${session.timeoutSeconds ?? 'unknown'}\`.`, + `Use \`pty_read\` to inspect the final output or \`pty_list\` to review other sessions.`, + ``, + ].join('\n'); +} +/** + * Formats PTY output with XML tags and pagination + */ +function formatPtyOutput(id, status, pattern, formattedLines, hasMore, paginationMessage, endMessage) { + const output = [ + ``, + ...formattedLines, + '', + hasMore ? paginationMessage : endMessage, + ``, + ]; + return output.join('\n'); +} +function appendNotifyOnExitReminder(output, session) { + if (!session.notifyOnExit || session.status !== 'running') { + return output; + } + return `${output}\n\n${NOTIFY_ON_EXIT_REMINDER}`; +} +function appendTimeoutReminder(output, session) { + if (!session.timedOut) { + return output; + } + return `${output}\n\n${buildTimeoutReminder(session)}`; +} +function appendSessionReminders(output, session) { + return appendTimeoutReminder(appendNotifyOnExitReminder(output, session), session); +} +/** + * Validates and creates a RegExp from pattern string + */ +function validateAndCreateRegex(pattern, ignoreCase) { + if (!validateRegex(pattern)) { + throw new Error(`Potentially dangerous regex pattern rejected: '${pattern}'. Please use a safer pattern.`); + } + try { + return new RegExp(pattern, ignoreCase ? 'i' : ''); + } + catch (e) { + const error = e instanceof Error ? e.message : String(e); + throw new Error(`Invalid regex pattern '${pattern}': ${error}`); + } +} +/** + * Handles pattern-based reading and formatting + */ +function handlePatternRead(id, pattern, ignoreCase, session, offset, limit) { + const regex = validateAndCreateRegex(pattern, ignoreCase); + const result = manager.search(id, regex, offset, limit); + if (!result) { + throw buildSessionNotFoundError(id); + } + if (result.matches.length === 0) { + return appendSessionReminders([ + ``, + `No lines matched the pattern '${pattern}'.`, + `Total lines in buffer: ${result.totalLines}`, + ``, + ].join('\n'), session); + } + const formattedLines = result.matches.map((match) => formatLine(match.text, match.lineNumber, MAX_LINE_LENGTH)); + const paginationMessage = `(${result.matches.length} of ${result.totalMatches} matches shown. Use offset=${offset + result.matches.length} to see more.)`; + const endMessage = `(${result.totalMatches} match${result.totalMatches === 1 ? '' : 'es'} from ${result.totalLines} total lines)`; + return appendSessionReminders(formatPtyOutput(id, session.status, pattern, formattedLines, result.hasMore, paginationMessage, endMessage), session); +} +/** + * Handles plain reading and formatting + */ +function handlePlainRead(args, session, offset, limit) { + const result = manager.read(args.id, offset, limit); + if (!result) { + throw buildSessionNotFoundError(args.id); + } + if (result.lines.length === 0) { + return appendSessionReminders([ + ``, + `(No output available - buffer is empty)`, + `Total lines: ${result.totalLines}`, + ``, + ].join('\n'), session); + } + const formattedLines = result.lines.map((line, index) => formatLine(line, result.offset + index + 1, MAX_LINE_LENGTH)); + const paginationMessage = `(Buffer has more lines. Use offset=${result.offset + result.lines.length} to read beyond line ${result.offset + result.lines.length})`; + const endMessage = `(End of buffer - total ${result.totalLines} lines)`; + return appendSessionReminders(formatPtyOutput(args.id, session.status, undefined, formattedLines, result.hasMore, paginationMessage, endMessage), session); +} +/** + * Formats a single line with line number and truncation + */ +function validateRegex(pattern) { + try { + new RegExp(pattern); + // Check for potentially dangerous patterns that can cause exponential backtracking + // This is a basic check - more sophisticated validation could be added + const dangerousPatterns = [ + /\(\?:.*\)\*.*\(\?:.*\)\*/, // nested optional groups with repetition + /.*\(\.\*\?\)\{2,\}.*/, // overlapping non-greedy quantifiers + /.*\(.*\|.*\)\{3,\}.*/, // complex alternation with repetition + ]; + return !dangerousPatterns.some((dangerous) => dangerous.test(pattern)); + } + catch { + return false; + } +} +export const ptyRead = tool({ + description: DESCRIPTION, + args: { + id: tool.schema.string().describe('The PTY session ID (e.g., pty_a1b2c3d4)'), + offset: tool.schema + .number() + .optional() + .describe('Line number to start reading from (0-based, defaults to 0). When using pattern, this applies to filtered matches.'), + limit: tool.schema + .number() + .optional() + .describe('Number of lines to read (defaults to 500). When using pattern, this applies to filtered matches.'), + pattern: tool.schema + .string() + .optional() + .describe('Regex pattern to filter lines. When set, only matching lines are returned, then offset/limit apply to the matches.'), + ignoreCase: tool.schema + .boolean() + .optional() + .describe('Case-insensitive pattern matching (default: false)'), + }, + async execute(args) { + const session = manager.get(args.id); + if (!session) { + throw buildSessionNotFoundError(args.id); + } + const offset = args.offset ?? 0; + const limit = args.limit ?? DEFAULT_READ_LIMIT; + if (args.pattern) { + return handlePatternRead(args.id, args.pattern, args.ignoreCase, session, offset, limit); + } + else { + return handlePlainRead(args, session, offset, limit); + } + }, +}); +//# sourceMappingURL=read.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/read.txt b/dist/src/plugin/pty/tools/read.txt new file mode 100644 index 00000000..5ea8b2b5 --- /dev/null +++ b/dist/src/plugin/pty/tools/read.txt @@ -0,0 +1,39 @@ +Reads output from a PTY session's buffer. + +The PTY maintains a rolling buffer of output lines. Use offset and limit to paginate through the output, similar to reading a file. + +Usage: +- `id`: The PTY session ID (from pty_spawn or pty_list) +- `offset`: Line number to start reading from (0-based, defaults to 0) +- `limit`: Number of lines to read (defaults to 500) +- `pattern`: Regex pattern to filter lines (optional) +- `ignoreCase`: Case-insensitive pattern matching (default: false) + +Returns: +- Numbered lines of output (similar to cat -n format) +- Total line count in the buffer +- Indicator if more lines are available + +The buffer stores up to PTY_MAX_BUFFER_LINES (default: 50000) lines. Older lines are discarded when the limit is reached. + +Pattern Filtering: +- When `pattern` is set, lines are FILTERED FIRST using the regex, then offset/limit apply to the MATCHES +- Original line numbers are preserved so you can see where matches occurred in the buffer +- Supports full regex syntax (e.g., "error", "ERROR|WARN", "failed.*connection", etc.) +- If the pattern is invalid, an error message is returned explaining the issue +- If no lines match the pattern, a clear message indicates zero matches + +Tips: +- To see the latest output, use a high offset or omit offset to read from the start +- To tail recent output, calculate offset as (totalLines - N) where N is how many recent lines you want +- Lines longer than 2000 characters are truncated +- Empty output may mean the process hasn't produced output yet +- If the session was started with `notifyOnExit=true`, do not use repeated `pty_read` calls only to detect completion; wait for the future `` message instead + +Examples: +- Read first 100 lines: offset=0, limit=100 +- Read lines 500-600: offset=500, limit=100 +- Read all available: omit both parameters +- Find errors: pattern="error", ignoreCase=true +- Find specific log levels: pattern="ERROR|WARN|FATAL" +- First 10 matches only: pattern="error", limit=10 diff --git a/dist/src/plugin/pty/tools/spawn.d.ts b/dist/src/plugin/pty/tools/spawn.d.ts new file mode 100644 index 00000000..242c7bdf --- /dev/null +++ b/dist/src/plugin/pty/tools/spawn.d.ts @@ -0,0 +1,24 @@ +export declare const ptySpawn: { + description: string; + args: { + command: import("zod").ZodString; + args: import("zod").ZodArray; + workdir: import("zod").ZodOptional; + env: import("zod").ZodOptional>; + title: import("zod").ZodOptional; + description: import("zod").ZodString; + notifyOnExit: import("zod").ZodOptional; + timeoutSeconds: import("zod").ZodOptional; + }; + execute(args: { + command: string; + args: string[]; + description: string; + workdir?: string | undefined; + env?: Record | undefined; + title?: string | undefined; + notifyOnExit?: boolean | undefined; + timeoutSeconds?: number | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; +}; +//# sourceMappingURL=spawn.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/spawn.js b/dist/src/plugin/pty/tools/spawn.js new file mode 100644 index 00000000..3f7d6498 --- /dev/null +++ b/dist/src/plugin/pty/tools/spawn.js @@ -0,0 +1,71 @@ +import { tool } from '@opencode-ai/plugin'; +import { manager } from "../manager.js"; +import { checkCommandPermission, checkWorkdirPermission, permissionRequestContext, } from "../permissions.js"; +import DESCRIPTION from './spawn.txt'; +const NOTIFY_ON_EXIT_INSTRUCTIONS = [ + ``, + `Completion signal for this session is the future \`\` message.`, + `If you only need to know whether the command finished, do not call \`pty_read\`; wait for \`\`.`, + `Never use sleep plus \`pty_read\` loops to check completion for this session.`, + `Call \`pty_read\` before exit only if you need live output now, the user explicitly asks for logs, or the exit notification reports a non-zero status and you need to investigate.`, + ``, +].join('\n'); +export const ptySpawn = tool({ + description: DESCRIPTION, + args: { + command: tool.schema.string().describe('The command/executable to run'), + args: tool.schema.array(tool.schema.string()).describe('Arguments to pass to the command'), + workdir: tool.schema.string().optional().describe('Working directory for the PTY session'), + env: tool.schema + .record(tool.schema.string(), tool.schema.string()) + .optional() + .describe('Additional environment variables'), + title: tool.schema.string().optional().describe('Human-readable title for the session'), + description: tool.schema + .string() + .describe('Clear, concise description of what this PTY session is for in 5-10 words'), + notifyOnExit: tool.schema + .boolean() + .optional() + .describe('If true, sends a notification to the session when the process exits (default: false)'), + timeoutSeconds: tool.schema + .number() + .optional() + .describe('Optional per-session timeout in seconds. The PTY is killed automatically when this duration elapses.'), + }, + async execute(args, ctx) { + const permissionContext = permissionRequestContext(ctx); + await checkCommandPermission(args.command, args.args ?? [], permissionContext); + if (args.workdir) { + await checkWorkdirPermission(args.workdir, permissionContext); + } + const sessionId = ctx.sessionID; + const info = manager.spawn({ + command: args.command, + args: args.args, + workdir: args.workdir, + env: args.env, + title: args.title, + description: args.description, + parentSessionId: sessionId, + parentAgent: ctx.agent, + notifyOnExit: args.notifyOnExit, + timeoutSeconds: args.timeoutSeconds, + }); + const output = [ + ``, + `ID: ${info.id}`, + `Title: ${info.title}`, + `Command: ${info.command} ${info.args.join(' ')}`, + `Workdir: ${info.workdir}`, + `PID: ${info.pid}`, + `Status: ${info.status}`, + `NotifyOnExit: ${info.notifyOnExit}`, + `TimeoutSeconds: ${info.timeoutSeconds ?? 'none'}`, + ``, + ...(info.notifyOnExit ? ['', NOTIFY_ON_EXIT_INSTRUCTIONS] : []), + ].join('\n'); + return output; + }, +}); +//# sourceMappingURL=spawn.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/spawn.txt b/dist/src/plugin/pty/tools/spawn.txt new file mode 100644 index 00000000..b36c33a1 --- /dev/null +++ b/dist/src/plugin/pty/tools/spawn.txt @@ -0,0 +1,52 @@ +Spawns a new interactive PTY (pseudo-terminal) session that runs in the background. + +Unlike the built-in bash tool which runs commands synchronously and waits for completion, PTY sessions persist and allow you to: +- Run long-running processes (dev servers, watch modes, etc.) +- Send interactive input (including Ctrl+C, arrow keys, etc.) +- Read output at any time +- Manage multiple concurrent terminal sessions + +Usage: +- The `command` parameter is required (e.g., "npm", "python", "bash") +- Use `args` to pass arguments to the command (e.g., ["run", "dev"]) +- Use `workdir` to set the working directory (defaults to project root) +- Use `env` to set additional environment variables +- Use `title` to give the session a human-readable name +- The `description` parameter is required: a clear, concise 5-10 word description +- Use `notifyOnExit` to receive a notification when the process exits (default: false) +- Use `timeoutSeconds` to auto-kill the PTY after a fixed number of seconds +- Do not set `timeoutSeconds` by default for sessions that are meant to keep running, such as dev servers, watch modes, local APIs, or REPLs. Only add a timeout for those when the user explicitly asks for one. +- Prefer setting `timeoutSeconds` for long-running commands that are still expected to finish on their own, such as builds, unit test suites, end-to-end tests, migrations, or other commands where you are waiting for a result. + +Returns the session info including: +- `id`: Unique identifier (pty_XXXXXXXX) for use with other pty_* tools +- `pid`: Process ID +- `status`: Current status ("running") + +After spawning, use: +- `pty_write` to send input to the PTY +- `pty_read` to read output from the PTY +- `pty_list` to see all active PTY sessions +- `pty_kill` to terminate the PTY + +Exit Notifications: +When `notifyOnExit` is true, you will receive a message when the process exits containing: +- Session ID and title +- Exit code +- Total output lines +- Last line of output (truncated to 250 chars) + +This is useful for long-running processes where you want to be notified when they complete +instead of polling with `pty_read`. +- Completion signal is the future `` message +- If you only need to know whether the command finished, do not call `pty_read`; wait for `` +- Never use sleep plus `pty_read` loops to check completion +- Use `pty_read` before exit only if you need live output now, the user explicitly asks for logs, or the exit notification reports a non-zero status and you need to investigate + +Examples: +- Start a dev server: command="npm", args=["run", "dev"], title="Dev Server" +- Start a timed dev server when explicitly requested: command="npm", args=["run", "dev"], title="Dev Server", timeoutSeconds=600 +- Start a Python REPL: command="python3", title="Python REPL" +- Run tests in watch mode: command="npm", args=["test", "--", "--watch"] +- Run build with notification and timeout: command="npm", args=["run", "build"], title="Build", notifyOnExit=true, timeoutSeconds=900 +- Run end-to-end tests with timeout: command="npm", args=["run", "test:e2e"], title="E2E Tests", notifyOnExit=true, timeoutSeconds=1800 diff --git a/dist/src/plugin/pty/tools/write.d.ts b/dist/src/plugin/pty/tools/write.d.ts new file mode 100644 index 00000000..932520ce --- /dev/null +++ b/dist/src/plugin/pty/tools/write.d.ts @@ -0,0 +1,12 @@ +export declare const ptyWrite: { + description: string; + args: { + id: import("zod").ZodString; + data: import("zod").ZodString; + }; + execute(args: { + id: string; + data: string; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; +}; +//# sourceMappingURL=write.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/write.js b/dist/src/plugin/pty/tools/write.js new file mode 100644 index 00000000..e0f9e078 --- /dev/null +++ b/dist/src/plugin/pty/tools/write.js @@ -0,0 +1,88 @@ +import { tool } from '@opencode-ai/plugin'; +import { manager } from "../manager.js"; +import { checkCommandPermission, permissionRequestContext } from "../permissions.js"; +import { buildSessionNotFoundError } from "../utils.js"; +import DESCRIPTION from './write.txt'; +const ETX = String.fromCharCode(3); +const EOT = String.fromCharCode(4); +/** + * Parse escape sequences in a string to their actual byte values. + * Handles: \n, \r, \t, \xNN (hex), \uNNNN (unicode), \\ + */ +function parseEscapeSequences(input) { + return input.replace(/\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|[nrt\\])/g, (match, seq) => { + if (seq.startsWith('x')) { + return String.fromCharCode(parseInt(seq.slice(1), 16)); + } + if (seq.startsWith('u')) { + return String.fromCharCode(parseInt(seq.slice(1), 16)); + } + switch (seq) { + case 'n': + return '\n'; + case 'r': + return '\r'; + case 't': + return '\t'; + case '\\': + return '\\'; + default: + return match; + } + }); +} +function extractCommands(data) { + const commands = []; + const lines = data.split(/[\n\r]+/); + for (const line of lines) { + const trimmed = line.trim(); + if (trimmed && !trimmed.startsWith(ETX) && !trimmed.startsWith(EOT)) { + commands.push(trimmed); + } + } + return commands; +} +function parseCommand(commandLine) { + const parts = commandLine.split(/\s+/).filter(Boolean); + const command = parts[0] ?? ''; + const args = parts.slice(1); + return { command, args }; +} +export const ptyWrite = tool({ + description: DESCRIPTION, + args: { + id: tool.schema.string().describe('The PTY session ID (e.g., pty_a1b2c3d4)'), + data: tool.schema.string().describe('The input data to send to the PTY'), + }, + async execute(args, ctx) { + const session = manager.get(args.id); + if (!session) { + throw buildSessionNotFoundError(args.id); + } + if (session.status !== 'running') { + throw new Error(`Cannot write to PTY '${args.id}' - session status is '${session.status}'.`); + } + // Parse escape sequences to actual bytes + const parsedData = parseEscapeSequences(args.data); + const commands = extractCommands(parsedData); + const permissionContext = permissionRequestContext(ctx); + for (const commandLine of commands) { + const { command, args: cmdArgs } = parseCommand(commandLine); + if (command) { + await checkCommandPermission(command, cmdArgs, permissionContext); + } + } + const success = manager.write(args.id, parsedData); + if (!success) { + throw new Error(`Failed to write to PTY '${args.id}'.`); + } + const preview = args.data.length > 50 ? `${args.data.slice(0, 50)}...` : args.data; + const displayPreview = preview + .replace(new RegExp(ETX, 'g'), '^C') + .replace(new RegExp(EOT, 'g'), '^D') + .replace(/\n/g, '\\n') + .replace(/\r/g, '\\r'); + return `Sent ${args.data.length} bytes to ${args.id}: "${displayPreview}"`; + }, +}); +//# sourceMappingURL=write.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/write.txt b/dist/src/plugin/pty/tools/write.txt new file mode 100644 index 00000000..c7a09a03 --- /dev/null +++ b/dist/src/plugin/pty/tools/write.txt @@ -0,0 +1,28 @@ +Sends input data to an active PTY session. + +Use this tool to: +- Type commands or text into an interactive terminal +- Send special key sequences (Ctrl+C, Enter, arrow keys, etc.) +- Respond to prompts in interactive programs + +Usage: +- `id`: The PTY session ID (from pty_spawn or pty_list) +- `data`: The input to send (text, commands, or escape sequences) + +Common escape sequences: +- Enter/newline: "\n" or "\r" +- Ctrl+C (interrupt): "\x03" +- Ctrl+D (EOF): "\x04" +- Ctrl+Z (suspend): "\x1a" +- Tab: "\t" +- Arrow Up: "\x1b[A" +- Arrow Down: "\x1b[B" +- Arrow Right: "\x1b[C" +- Arrow Left: "\x1b[D" + +Returns success or error message. + +Examples: +- Send a command: data="ls -la\n" +- Interrupt a process: data="\x03" +- Answer a prompt: data="yes\n" diff --git a/dist/src/plugin/pty/types.d.ts b/dist/src/plugin/pty/types.d.ts new file mode 100644 index 00000000..8d7e767b --- /dev/null +++ b/dist/src/plugin/pty/types.d.ts @@ -0,0 +1,72 @@ +import type { IPty } from 'bun-pty'; +import type { RingBuffer } from './buffer.ts'; +export type PTYStatus = 'running' | 'exited' | 'killing' | 'killed'; +export interface PTYSession { + id: string; + title: string; + description?: string; + command: string; + args: string[]; + workdir: string; + env?: Record; + status: PTYStatus; + exitCode?: number; + exitSignal?: number | string; + exitAt?: Date; + pid: number; + createdAt: Date; + parentSessionId: string; + parentAgent?: string; + notifyOnExit: boolean; + timeoutSeconds?: number; + timedOut: boolean; + buffer: RingBuffer; + process: IPty | null; +} +export interface PTYSessionInfo { + id: string; + title: string; + description?: string; + command: string; + args: string[]; + workdir: string; + status: PTYStatus; + notifyOnExit: boolean; + timeoutSeconds?: number; + timedOut: boolean; + exitCode?: number; + exitSignal?: number | string; + exitAt?: string; + pid: number; + createdAt: string; + lineCount: number; +} +export interface SpawnOptions { + command: string; + args?: string[]; + workdir?: string; + env?: Record; + title?: string; + description?: string; + parentSessionId: string; + parentAgent?: string; + notifyOnExit?: boolean; + timeoutSeconds?: number; +} +export interface ReadResult { + lines: string[]; + totalLines: number; + offset: number; + hasMore: boolean; +} +export interface SearchResult { + matches: Array<{ + lineNumber: number; + text: string; + }>; + totalMatches: number; + totalLines: number; + offset: number; + hasMore: boolean; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/types.js b/dist/src/plugin/pty/types.js new file mode 100644 index 00000000..5b2306a4 --- /dev/null +++ b/dist/src/plugin/pty/types.js @@ -0,0 +1 @@ +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/utils.d.ts b/dist/src/plugin/pty/utils.d.ts new file mode 100644 index 00000000..cbccda7c --- /dev/null +++ b/dist/src/plugin/pty/utils.d.ts @@ -0,0 +1,12 @@ +export declare function buildSessionNotFoundError(id: string): Error; +/** + * Helper to DRY up session-get/null-check logic + * - manager: object with a getSession(id) or similar method + * - id: session id + * - fn: function called with session if found + * - defaultValue: what to return if not found (default null) + */ +export declare function withSession(manager: { + getSession(id: string): TSession | null; +}, id: string, fn: (session: TSession) => TResult, defaultValue: TResult): TResult; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/utils.js b/dist/src/plugin/pty/utils.js new file mode 100644 index 00000000..0127b44e --- /dev/null +++ b/dist/src/plugin/pty/utils.js @@ -0,0 +1,17 @@ +export function buildSessionNotFoundError(id) { + return new Error(`PTY session '${id}' not found. Use pty_list to see active sessions.`); +} +/** + * Helper to DRY up session-get/null-check logic + * - manager: object with a getSession(id) or similar method + * - id: session id + * - fn: function called with session if found + * - defaultValue: what to return if not found (default null) + */ +export function withSession(manager, id, fn, defaultValue) { + const session = manager.getSession(id); + if (!session) + return defaultValue; + return fn(session); +} +//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/dist/src/plugin/pty/wildcard.d.ts b/dist/src/plugin/pty/wildcard.d.ts new file mode 100644 index 00000000..0601c5fb --- /dev/null +++ b/dist/src/plugin/pty/wildcard.d.ts @@ -0,0 +1,7 @@ +export declare function match(str: string, pattern: string): boolean; +export declare function all(input: string, patterns: Record): string | undefined; +export declare function allStructured(input: { + head: string; + tail: string[]; +}, patterns: Record): string | undefined; +//# sourceMappingURL=wildcard.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/pty/wildcard.js b/dist/src/plugin/pty/wildcard.js new file mode 100644 index 00000000..754ff141 --- /dev/null +++ b/dist/src/plugin/pty/wildcard.js @@ -0,0 +1,51 @@ +export function match(str, pattern) { + const regex = new RegExp('^' + + pattern + .replace(/[.+^${}()|[\]\\]/g, '\\$&') + .replace(/\*/g, '.*') + .replace(/\?/g, '.') + + '$', 's'); + return regex.test(str); +} +export function all(input, patterns) { + const sorted = Object.entries(patterns).sort((a, b) => a[0].length - b[0].length || a[0].localeCompare(b[0])); + let result; + for (const [pattern, value] of sorted) { + if (match(input, pattern)) { + result = value; + } + } + return result; +} +export function allStructured(input, patterns) { + const sorted = Object.entries(patterns).sort((a, b) => a[0].length - b[0].length || a[0].localeCompare(b[0])); + let result; + for (const [pattern, value] of sorted) { + const parts = pattern.split(/\s+/); + const firstPart = parts[0]; + if (!firstPart || !match(input.head, firstPart)) + continue; + if (parts.length === 1 || matchSequence(input.tail, parts.slice(1))) { + result = value; + } + } + return result; +} +function matchSequence(items, patterns) { + if (patterns.length === 0) + return true; + const [pattern, ...rest] = patterns; + if (pattern === '*') + return matchSequence(items, rest); + for (let i = 0; i < items.length; i++) { + const item = items[i]; + if (item !== undefined && + pattern !== undefined && + match(item, pattern) && + matchSequence(items.slice(i + 1), rest)) { + return true; + } + } + return false; +} +//# sourceMappingURL=wildcard.js.map \ No newline at end of file diff --git a/dist/src/plugin/types.d.ts b/dist/src/plugin/types.d.ts new file mode 100644 index 00000000..bcd106bf --- /dev/null +++ b/dist/src/plugin/types.d.ts @@ -0,0 +1,5 @@ +import type { Plugin } from '@opencode-ai/plugin'; +export type PluginClient = Parameters[0]['client']; +export type PluginContext = Parameters[0]; +export type PluginResult = Awaited>; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/src/plugin/types.js b/dist/src/plugin/types.js new file mode 100644 index 00000000..5b2306a4 --- /dev/null +++ b/dist/src/plugin/types.js @@ -0,0 +1 @@ +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/src/shared/constants.d.ts b/dist/src/shared/constants.d.ts new file mode 100644 index 00000000..b25e13a0 --- /dev/null +++ b/dist/src/shared/constants.d.ts @@ -0,0 +1,5 @@ +export declare const DEFAULT_READ_LIMIT = 500; +export declare const MAX_LINE_LENGTH = 2000; +export declare const DEFAULT_MAX_BUFFER_LINES = 50000; +export declare const PERFORMANCE_MEASURE_LIMIT = 100; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/src/shared/constants.js b/dist/src/shared/constants.js new file mode 100644 index 00000000..587ae2ce --- /dev/null +++ b/dist/src/shared/constants.js @@ -0,0 +1,7 @@ +// Shared constants used across the entire application +export const DEFAULT_READ_LIMIT = 500; +export const MAX_LINE_LENGTH = 2000; +export const DEFAULT_MAX_BUFFER_LINES = 50000; +// Performance monitoring constants +export const PERFORMANCE_MEASURE_LIMIT = 100; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/src/shared/runtime.d.ts b/dist/src/shared/runtime.d.ts new file mode 100644 index 00000000..15c30a08 --- /dev/null +++ b/dist/src/shared/runtime.d.ts @@ -0,0 +1,65 @@ +export declare const RUNTIME_DIR_NAME = "opencode-pty"; +/** + * Where origin records live: per-user, and overridable so tests (and embedders) + * can redirect it. + * + * `XDG_RUNTIME_DIR` is preferred on Linux — per-user, 0700, tmpfs-backed — while + * macOS and Windows already hand out a per-user `tmpdir()`. + */ +export declare function runtimeDir(): string; +export interface OriginRecord { + pid: number; + hostname: string; + port: number; + directory?: string; + worktree?: string; + startedAt: number; +} +/** A stable, filename-safe key for a project path. */ +export declare function projectKey(path: string): string; +/** + * Publish this process's origin for a project. Returns the file written, or null + * when no usable project path was supplied — an unkeyed record could not be + * attributed to an instance, so it is not written at all. + */ +export declare function writeOrigin(input: { + directory?: unknown; + worktree?: unknown; + hostname: string; + port: number; +}): string | null; +/** Remove a published origin. Best-effort, and safe on null. */ +export declare function removeOrigin(file: string | null): void; +/** + * Every well-formed origin record. + * + * Records are never deleted here (see the header): a malformed or foreign file + * is skipped, and whether a record is *live* is decided by the caller probing + * it, not by this function. + */ +export declare function readOrigins(): OriginRecord[]; +/** + * The records for this project, most specific match first. + * + * Both sides know the project directory (V1 `PluginInput.directory`/`worktree`; + * V2 `ctx.location.directory`; TUI `state.path.directory`/`worktree`), which is + * what lets a record be attributed to the instance that wrote it — the job + * `/proc` used to do by process ownership. + * + * `directory` is the precise key (two instances of one worktree differ by it), + * so an exact directory match wins outright; `worktree` is only a fallback for a + * host that could not supply one. Returning both kinds together would make two + * instances in different subdirectories of one worktree ambiguous. + */ +export declare function originsForProject(directory?: string, worktree?: string): OriginRecord[]; +/** + * Origins to probe for a record. + * + * A wildcard bind (`0.0.0.0`/`::`) is not a connectable address, so loopback is + * probed instead; an IPv6 literal needs brackets in a URL. + */ +export declare function candidateOrigins(record: { + hostname: string; + port: number; +}): string[]; +//# sourceMappingURL=runtime.d.ts.map \ No newline at end of file diff --git a/dist/src/shared/runtime.js b/dist/src/shared/runtime.js new file mode 100644 index 00000000..58a435e1 --- /dev/null +++ b/dist/src/shared/runtime.js @@ -0,0 +1,179 @@ +// Runtime discovery: the PTY server publishes its origin to a small file, so the +// sidebar can find it without /proc (Linux-only) and without scraping the chat. +// +// A file is used rather than an advisory lock because Bun exposes no flock API +// and Windows has no equivalent — but no lock is needed: `/health` is the +// liveness test, so the file only has to carry the address. Nothing here treats a +// record as authority; a reader validates every candidate by probing it. +// +// Two deliberate consequences of that: +// - a reader NEVER deletes a record. PID liveness is namespace-sensitive (a +// container's pid is not visible from the host) and a partial read looks like +// corruption, so a reader cannot prove a record is stale. The owner removes +// its own record on dispose; anything left over is simply ignored. +// - writes are atomic (temp + rename), so a reader never sees a half-written +// record. +import { createHash } from 'node:crypto'; +import { mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, rmSync, writeFileSync, } from 'node:fs'; +import { tmpdir } from 'node:os'; +import { join } from 'node:path'; +export const RUNTIME_DIR_NAME = 'opencode-pty'; +/** + * Where origin records live: per-user, and overridable so tests (and embedders) + * can redirect it. + * + * `XDG_RUNTIME_DIR` is preferred on Linux — per-user, 0700, tmpfs-backed — while + * macOS and Windows already hand out a per-user `tmpdir()`. + */ +export function runtimeDir() { + const override = process.env.PTY_RUNTIME_DIR; + if (override) + return override; + const xdg = process.env.XDG_RUNTIME_DIR; + if (xdg) + return join(xdg, RUNTIME_DIR_NAME); + return join(tmpdir(), RUNTIME_DIR_NAME); +} +/** A stable, filename-safe key for a project path. */ +export function projectKey(path) { + return createHash('sha256').update(path).digest('hex').slice(0, 16); +} +/** + * A path as it will be compared: symlinks resolved, so the server's view of a + * project and the TUI's agree even when one went through a link. Falls back to + * the literal path when it cannot be resolved (e.g. it no longer exists). + */ +function canonical(path) { + if (typeof path !== 'string' || path === '') + return undefined; + try { + return realpathSync(path); + } + catch (_) { + return path; + } +} +/** + * Publish this process's origin for a project. Returns the file written, or null + * when no usable project path was supplied — an unkeyed record could not be + * attributed to an instance, so it is not written at all. + */ +export function writeOrigin(input) { + try { + // Accept only strings: the host's `worktree` is a domain object on the V2 + // API, and a non-string here used to reach createHash and throw. + const directory = canonical(typeof input.directory === 'string' ? input.directory : undefined); + const worktree = canonical(typeof input.worktree === 'string' ? input.worktree : undefined); + const key = directory ?? worktree; + if (!key) + return null; + const file = join(runtimeDir(), `${projectKey(key)}-${process.pid}.json`); + const record = { + pid: process.pid, + hostname: input.hostname, + port: input.port, + ...(directory ? { directory } : {}), + ...(worktree ? { worktree } : {}), + startedAt: Date.now(), + }; + mkdirSync(runtimeDir(), { recursive: true, mode: 0o700 }); + // Temp + rename: a reader either sees the whole record or does not see it. + const temp = `${file}.tmp`; + writeFileSync(temp, JSON.stringify(record), { mode: 0o600 }); + renameSync(temp, file); + return file; + } + catch (_) { + /* discovery is best-effort: never break the server over a temp file */ + return null; + } +} +/** Remove a published origin. Best-effort, and safe on null. */ +export function removeOrigin(file) { + if (!file) + return; + try { + rmSync(file, { force: true }); + } + catch (_) { + /* already gone */ + } +} +function isOriginRecord(value) { + if (!value || typeof value !== 'object') + return false; + const v = value; + return typeof v.pid === 'number' && typeof v.hostname === 'string' && typeof v.port === 'number'; +} +/** + * Every well-formed origin record. + * + * Records are never deleted here (see the header): a malformed or foreign file + * is skipped, and whether a record is *live* is decided by the caller probing + * it, not by this function. + */ +export function readOrigins() { + let names; + try { + names = readdirSync(runtimeDir()); + } + catch (_) { + return []; // no runtime dir yet — nothing has been published + } + const records = []; + for (const name of names) { + if (!name.endsWith('.json')) + continue; + let parsed; + try { + parsed = JSON.parse(readFileSync(join(runtimeDir(), name), 'utf8')); + } + catch (_) { + continue; // half-written or foreign — ignore, never delete + } + if (isOriginRecord(parsed)) + records.push(parsed); + } + return records; +} +/** + * The records for this project, most specific match first. + * + * Both sides know the project directory (V1 `PluginInput.directory`/`worktree`; + * V2 `ctx.location.directory`; TUI `state.path.directory`/`worktree`), which is + * what lets a record be attributed to the instance that wrote it — the job + * `/proc` used to do by process ownership. + * + * `directory` is the precise key (two instances of one worktree differ by it), + * so an exact directory match wins outright; `worktree` is only a fallback for a + * host that could not supply one. Returning both kinds together would make two + * instances in different subdirectories of one worktree ambiguous. + */ +export function originsForProject(directory, worktree) { + const wantedDirectory = canonical(directory); + const wantedWorktree = canonical(worktree); + const records = readOrigins(); + if (wantedDirectory) { + const exact = records.filter((record) => canonical(record.directory) === wantedDirectory); + if (exact.length > 0) + return exact; + } + if (wantedWorktree) { + return records.filter((record) => canonical(record.worktree) === wantedWorktree); + } + return []; +} +/** + * Origins to probe for a record. + * + * A wildcard bind (`0.0.0.0`/`::`) is not a connectable address, so loopback is + * probed instead; an IPv6 literal needs brackets in a URL. + */ +export function candidateOrigins(record) { + const wildcard = record.hostname === '0.0.0.0' || record.hostname === '::' || record.hostname === ''; + const hosts = wildcard + ? ['[::1]', '127.0.0.1'] + : [record.hostname.includes(':') ? `[${record.hostname}]` : record.hostname]; + return hosts.map((host) => `http://${host}:${record.port}`); +} +//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/dist/src/tui/index.d.ts b/dist/src/tui/index.d.ts new file mode 100644 index 00000000..6f671063 --- /dev/null +++ b/dist/src/tui/index.d.ts @@ -0,0 +1,7 @@ +import type { TuiPluginApi } from '@opencode-ai/plugin/tui'; +declare const _default: { + id: string; + tui: (api: TuiPluginApi) => Promise; +}; +export default _default; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/src/tui/index.js b/dist/src/tui/index.js new file mode 100644 index 00000000..04bb7f0f --- /dev/null +++ b/dist/src/tui/index.js @@ -0,0 +1,856 @@ +// ============================================================================= +// src/tui/index.ts +// PTY sidebar TUI plugin: lists the plugin's sessions in the sidebar and shows +// a session's live output in a dialog. +// +// Design notes, each learned the hard way: +// +// - **Default-export an object `{ id, tui }`.** Named exports fail to load with +// "Plugin export is not a function". +// - **Build elements lazily, inside a render pass.** `createElement` resolves +// its renderer from a Solid context, so constructing one outside a render +// throws "No renderer found". Never precompute elements. +// - **`sidebar_content` is additive** (with an `order`), so this panel sits +// alongside the built-ins rather than replacing them. +// - **Present output in a dialog**, not a route and not a mirror session: a +// route replaces the entire view, and child-session views have no sidebar. +// - **Take the LATEST posted URL.** The PTY server binds a random port on every +// start, so an older message holds a dead origin. +// - **`/buffer/plain` returns JSON** (`{ plain, byteLength }`), CRLF-terminated. +// - **Stop propagation at a control nested in a row or the header.** opentui +// bubbles a mouse event to the parent only while `propagationStopped` is +// false, so the row's `✕` and the header's clear action must swallow the +// event or they also open the dialog / collapse the panel. +// - **Fail loudly.** A silent no-op is indistinguishable from a bug, so every +// failure path surfaces a status line and a toast. +// +// The PTY server is a hard dependency: its HTTP API is the only window onto PTY +// sessions. It publishes its bound address for discovery, and is started on +// demand through the plugin's own `pty-show-server-url` command. +// ============================================================================= +import { appendFileSync, mkdirSync } from 'node:fs'; +import { createElement, createTextNode, insert, insertNode, setProp, } from '@opentui/solid'; +import { createSignal } from 'solid-js'; +import { candidateOrigins, originsForProject } from "../shared/runtime.js"; +import { bootstrapFailureCause, clearActionLabel, decodeBuffer, finishedSessions, formatDetail, formatDuration, headerLabel, isPtyHealth, latestServerUrl, ROW_BULLET, rowLabel, rowTone, tail, } from "./lib.js"; +const POLL_MS = 2500; +const TAIL_LINES = 300; +const SLOT_ORDER = 450; +const BOOTSTRAP_TITLE = 'opencode-pty sidebar bootstrap'; +/** The per-row remove control. Leading space so it does not crowd the label. */ +const REMOVE_GLYPH = ' \u2715'; +/** Consecutive bootstrap failures before the poll stops retrying by itself. */ +const MAX_BOOTSTRAP_FAILURES = 3; +/** + * Collapse state — persisted in kv, deliberately NOT scoped per process: it is a + * user preference that should hold across every opencode instance. Defaults to + * collapsed so the panel stays out of the way until asked for. + */ +const KV_COLLAPSED = 'opencode-pty.sidebar.collapsed'; +/** + * The resolved origin, cached in MEMORY rather than in kv. + * + * `api.kv` is shared by every opencode process while the PTY server is + * per-process, and kv has no delete API — so a per-PID key would leave one stale + * entry behind on every single opencode start, forever. In-memory is + * per-process by construction and needs no cleanup. + */ +let cachedOrigin = null; +/** + * The reason the last bootstrap failed, kept so the panel can report the CAUSE + * rather than just "server unavailable". The most common one is real and + * actionable: `command not found: pty-show-server-url` means the PTY server + * plugin is not registered in opencode.jsonc, which makes retrying pointless and + * is otherwise invisible. + */ +let lastBootstrapError = null; +function sessionClient(api) { + return api.client.session; +} +function rendererView(api) { + return api.renderer; +} +/** + * The sidebar status while the PTY server cannot be reached. + * + * Reports the CAUSE once the retries have been exhausted. `command not found: + * pty-show-server-url` in particular means the server plugin this depends on is + * not registered in the project's opencode.jsonc, so the panel says that instead + * of inviting a retry that cannot possibly work. + */ +function bootstrapFailureStatus(failures) { + if (failures < MAX_BOOTSTRAP_FAILURES) + return 'starting server…'; + if (!lastBootstrapError) + return 'server unavailable — toggle the panel to retry'; + return `unavailable: ${String(lastBootstrapError).split('\n')[0]?.slice(0, 44)}`; +} +/** + * The sidebar status while nothing is listening and no request to start the + * server has been made. + * + * Starting it is not free: it goes through the plugin's command, which runs + * server initialisation and creates and deletes a throwaway session. That does + * not belong on the startup path, so it happens only on an explicit request — + * which is why the text names the click: it renders in the panel header, where + * the click lives. + */ +const IDLE_STATUS = 'not running — click to start'; +// A TUI plugin has no console, so a small event log on disk is the only way to +// diagnose interaction problems. OFF BY DEFAULT: it appends unboundedly, and +// shipping a plugin that quietly grows a file in /tmp forever is not acceptable. +// Set PTY_TUI_DEBUG=1 to turn it on when diagnosing. +const LOG_DIR = '/tmp/opencode'; +const LOG = `${LOG_DIR}/opencode-pty-tui.log`; +const DEBUG_ENABLED = typeof process !== 'undefined' && + process.env && + process.env.PTY_TUI_DEBUG !== undefined && + process.env.PTY_TUI_DEBUG !== '' && + process.env.PTY_TUI_DEBUG !== '0'; +function debug(event, detail) { + if (!DEBUG_ENABLED) + return; + try { + mkdirSync(LOG_DIR, { recursive: true }); + appendFileSync(LOG, `${new Date().toISOString()} ${event} ${detail ? JSON.stringify(detail) : ''}\n`); + } + catch (_) { + /* logging must never break the plugin */ + } +} +// ── host helpers (no elements) ──────────────────────────────────────────────── +/** Every text-bearing part of a session's messages, oldest first. */ +function messageTexts(api, sessionID) { + const out = []; + let messages = []; + try { + messages = api.state.session.messages(sessionID) ?? []; + } + catch (_) { + return out; + } + for (const m of messages) { + const message = m; + let parts = message?.parts; + if (!parts && message && typeof message.id === 'string') { + try { + parts = api.state.part(message.id); + } + catch (_) { + parts = null; + } + } + for (const p of Array.isArray(parts) ? parts : []) { + const part = p; + const body = part && (part.text || part.state?.output); + if (typeof body === 'string') + out.push(body); + } + } + return out; +} +/** + * Every probe is bounded. A stopped-but-listening loopback peer accepts the + * connection and then never answers, which without a timeout would hold a + * refresh — and with it the overlap guard, and the poll behind it — open + * indefinitely. + */ +const FETCH_TIMEOUT_MS = 2000; +function fetchWithTimeout(url, init) { + return fetch(url, { ...init, signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) }); +} +/** + * Stop a mouse event from reaching the row or header handler behind a control. + * + * Defensive about the event being absent: the handlers are unit-invoked in tests + * without an event object. + */ +function stopPropagation(evt) { + const event = evt; + if (event && typeof event.stopPropagation === 'function') + event.stopPropagation(); +} +// Liveness of a *known* origin. Checks the payload, not merely res.ok, so it +// agrees with the discovery path about what the PTY server looks like — an +// unrelated service that happens to answer 200 must not be mistaken for it. +async function isHealthy(origin) { + try { + const res = await fetchWithTimeout(`${origin}/health`); + if (!res.ok) + return false; + return isPtyHealth(await res.json()); + } + catch (_) { + return false; + } +} +/** + * Origins this project's running servers have published, confirmed healthy. + * + * A record is only a hint about where to look: `/health` decides whether + * anything is actually serving there. That also covers a server that died + * without cleaning up (its record is pruned by the reader) and an unrelated + * service squatting the port. + */ +async function healthyRuntimeOrigins(api) { + let directory; + let worktree; + try { + directory = api.state.path.directory; + worktree = api.state.path.worktree; + } + catch (_) { + return []; // host state not ready yet — no candidates this tick + } + const healthy = []; + for (const record of originsForProject(directory, worktree)) { + for (const origin of candidateOrigins(record)) { + if (await isHealthy(origin)) { + healthy.push(origin); + break; + } + } + } + return healthy; +} +/** + * Start the PTY server without leaving a trace in the user's session. + * + * The server is only ever created as a side effect of one of the plugin's two + * commands: `pty-show-server-url` (which POSTS THE URL AS A CHAT MESSAGE) or + * `pty-open-background-spy` (which opens a browser). Neither is acceptable to + * fire into the user's own transcript, and the server cannot be started any + * other way. + * + * So the message-posting command is run inside a THROWAWAY session: the URL lands + * there instead, the origin is scraped from that private session, and the + * session is deleted. The server survives — it is a plugin-level object, not + * per-session — so the panel then works and the user's chat stays clean. + * + * It doubles as the tie-breaker when several servers advertise for the same + * project: only the caller's own opencode server can say which is its own. + */ +async function bootstrapOrigin(api) { + const client = sessionClient(api); + let scratchID = null; + try { + const created = await client.create({ title: BOOTSTRAP_TITLE }); + const data = created.data ?? created; + const info = data; + scratchID = info?.id || info?.info?.id || null; + if (!scratchID) { + debug('bootstrap.failed', { reason: 'session.create returned no id' }); + return null; + } + } + catch (e) { + debug('bootstrap.failed', { step: 'create', error: String(e) }); + return null; + } + try { + await client.command({ + sessionID: scratchID, + command: 'pty-show-server-url', + arguments: '', + }); + } + catch (e) { + // Only a REAL error is worth remembering: opencode's message is the + // difference between "the server is slow" and "the plugin you depend on is + // not installed". The sentinel is the plugin's normal completion signal, + // thrown after it has already started the server and posted the URL. + lastBootstrapError = bootstrapFailureCause(e); + if (lastBootstrapError === null) + debug('bootstrap.command.handled', {}); + else + debug('bootstrap.command.failed', { error: lastBootstrapError }); + } + let origin = null; + for (let attempt = 0; attempt < 20 && !origin; attempt++) { + await new Promise((r) => setTimeout(r, 300)); + // The scrape is the only instance-correct source: it goes through the + // caller's own opencode server, so a sibling instance's origin can never be + // mistaken for ours. + origin = latestServerUrl(messageTexts(api, scratchID)); + if (origin && !(await isHealthy(origin))) + origin = null; + } + try { + await client.delete({ sessionID: scratchID }); + } + catch (e) { + debug('bootstrap.cleanup.failed', { scratchID, error: String(e) }); + } + debug('bootstrap.done', { origin, scratchID }); + return origin; +} +/** + * Resolve the PTY server origin, cheapest and quietest first: + * + * 1. cached, while it still answers + * 2. an origin record this project published, confirmed by `/health` — the + * common case, and it costs no session + * 3. the instance-scoped scrape through a throwaway session — when nothing is + * advertised (starting one, if asked) or when several records match and only + * the caller's own opencode server can say which is ours + * + * A cached origin that stops answering is re-resolved, because the server is + * bound a new random port every time it starts. + */ +async function resolveOrigin(api, allowBootstrap) { + if (cachedOrigin && (await isHealthy(cachedOrigin))) + return cachedOrigin; + const advertised = await healthyRuntimeOrigins(api); + if (advertised.length === 1) { + const only = advertised[0] ?? null; + debug('origin.runtime-file', { origin: only }); + cachedOrigin = only; + return only; + } + // Only an explicit request may reach the scrape: it runs a command, so on an + // unattended poll it is reserved for the one case where guessing would attach + // the panel to a sibling instance's sessions (several records, no way to tell + // them apart). Everything else waits for the user, who resolves it by clicking. + if (!allowBootstrap) + return null; + const viaScrape = await bootstrapOrigin(api); + if (viaScrape) + cachedOrigin = viaScrape; + return viaScrape; +} +async function listSessions(origin) { + const res = await fetchWithTimeout(`${origin}/api/sessions`); + const body = await res.json(); + const arr = Array.isArray(body) ? body : body?.sessions; + return Array.isArray(arr) ? arr : []; +} +async function readBuffer(origin, id) { + const res = await fetchWithTimeout(`${origin}/api/sessions/${id}/buffer/plain`); + return decodeBuffer(await res.json()); +} +/** + * Drop a session from the server's store, killing it first when it is still + * running. CLEANUP — not a plain kill — is what deletes the entry; a plain kill + * keeps the session around for log access, which is why the list only ever grew. + */ +async function cleanupSession(origin, id) { + const res = await fetchWithTimeout(`${origin}/api/sessions/${id}/cleanup`, { + method: 'DELETE', + }); + return res.ok; +} +// ── element helpers — call ONLY inside a render pass ────────────────────────── +function text(content) { + const el = createElement('text'); + insertNode(el, createTextNode(String(content))); + return el; +} +/** A text element whose content tracks an accessor (reactive). */ +function textLive(accessor) { + const el = createElement('text'); + insert(el, () => String(accessor())); + return el; +} +function column(children) { + const box = createElement('box'); + setProp(box, 'flexDirection', 'column'); + for (const child of children) { + if (child) + insertNode(box, child); + } + return box; +} +/** A column whose children follow an accessor (reactive list). */ +function columnLive(accessor) { + const box = createElement('box'); + setProp(box, 'flexDirection', 'column'); + insert(box, () => accessor()); + return box; +} +/** + * A scrollable holder for the output. + * + * A scrollbox only scrolls if it has a BOUNDED height, so one is supplied in + * rows. `stickyScroll` + `stickyStart: "bottom"` keep the view pinned to the + * newest output, which is what you want when watching a live process — the + * same idiom opencode-user-timeline uses for its list. + */ +function scrollboxFor(child, rows) { + const box = createElement('scrollbox'); + setProp(box, 'width', '100%'); + setProp(box, 'height', rows); + setProp(box, 'scrollY', true); + setProp(box, 'stickyScroll', true); + setProp(box, 'stickyStart', 'bottom'); + insertNode(box, child); + return box; +} +/** + * opentui's imperative `createElement` returns a `BaseRenderable`, but the slot + * and dialog render callbacks are typed in terms of solid's DOM `JSX.Element`. + * The runtime accepts the renderable — only the types disagree — so the bridge + * is one documented cast instead of `any` at each call site. + */ +function slotElement(node) { + return node; +} +// ── plugin ──────────────────────────────────────────────────────────────────── +const tui = async (api) => { + const [sessions, setSessions] = createSignal([]); + const [status, setStatus] = createSignal('starting…'); + // Restored from kv so the panel remembers its state across restarts, matching + // how the built-in sidebar items (MCP, File Tree, Todo) behave. + const [collapsed, setCollapsed] = createSignal(Boolean(api.kv.get(KV_COLLAPSED, true))); + let origin = null; + let disposed = false; + let rootTimer = null; + let refreshing = false; + let bootstrapFailures = 0; + let bootstrapPending = false; + let refreshPending = false; + /** + * `force` marks a refresh the user is waiting on (after a removal). A plain + * poll tick that lands mid-refresh can be dropped — the in-flight one is + * already refreshing the list — but a forced one must never be, because that + * in-flight fetch still carries the pre-removal list and the row the user just + * removed would linger until the next tick. + */ + const refresh = async (allowBootstrap = false, force = false) => { + if (disposed) + return; + // Guard against overlap: a bootstrap can take ~6s while the poll ticks every + // 2.5s, so without this a host where the server never comes up would run + // several create-session/delete-session cycles at once, forever. + if (refreshing) { + // An explicit ask must never be dropped — the user clicks once, they do + // not retry in a loop. Remember it and run it when this refresh finishes. + if (allowBootstrap) + bootstrapPending = true; + else if (force) + refreshPending = true; + return; + } + refreshing = true; + try { + // Checked BEFORE the attempt, so "backed off" actually means no further + // create-session/delete-session cycles until the user retries. + if (!origin && allowBootstrap && bootstrapFailures >= MAX_BOOTSTRAP_FAILURES) { + setStatus(bootstrapFailureStatus(bootstrapFailures)); + return; + } + if (!origin) + origin = await resolveOrigin(api, allowBootstrap); + if (!origin) { + // Nothing is listening. Only an explicit request may start the server, + // so without one there is no attempt to count down — just an idle panel. + if (allowBootstrap) { + bootstrapFailures++; + debug('refresh.bootstrap-failed', { bootstrapFailures }); + setStatus(bootstrapFailureStatus(bootstrapFailures)); + } + else { + setStatus(IDLE_STATUS); + } + setSessions([]); + return; + } + bootstrapFailures = 0; + const list = await listSessions(origin); + setSessions(list); + setStatus(list.length === 1 ? '1 session' : `${list.length} sessions`); + } + catch (_) { + // Force re-discovery next tick: the server may have restarted on a new port. + origin = null; + setStatus('server unreachable'); + setSessions([]); + } + finally { + refreshing = false; + if (bootstrapPending) { + // A bootstrap refresh re-lists too, so it supersedes a queued plain one. + bootstrapPending = false; + refreshPending = false; + refresh(true).catch(() => { }); + } + else if (refreshPending) { + refreshPending = false; + refresh().catch(() => { }); + } + } + }; + const openOutput = async (session) => { + if (!origin) { + api.ui.toast({ variant: 'warning', title: 'opencode-pty', message: 'PTY server unavailable' }); + return; + } + // Captured for the lifetime of this dialog. `origin` is shared state and + // refresh() nulls it on a transient failure — reading the shared variable + // here would then report a buffer-read failure for a session that is fine. + const dialogOrigin = origin; + const [buf, setBuf] = createSignal('loading…'); + let timer = null; + // The run timer: `now` drives it while the process is going, and the panel's + // own poll keeps `sessions()` fresh — so a process that exits while the + // dialog is open freezes the figure without another API call. Reading the + // live session also covers a status the snapshot predates. + const [now, setNow] = createSignal(Date.now()); + let tick = null; + const liveSession = () => sessions().find((s) => s.id === session.id) ?? session; + const elapsedMs = () => { + const started = Date.parse(liveSession().createdAt ?? ''); + if (!Number.isFinite(started)) + return null; + const ended = Date.parse(liveSession().exitAt ?? ''); + return (Number.isFinite(ended) ? ended : now()) - started; + }; + const load = async () => { + try { + setBuf(await readBuffer(dialogOrigin, session.id)); + } + catch (_) { + setBuf('(failed to read buffer — the session may have been cleaned up)'); + } + }; + await load(); + // The host dismisses the dialog on a mouse-up on its overlay, but ignores + // that release when a text selection was active on the preceding mouse-down + // (so you can drag-select without the dialog vanishing) — which is what made + // closing take two outside clicks. Clearing any stale selection first means + // the very next click finds nothing to protect and closes on the first one. + try { + const renderer = rendererView(api); + if (typeof renderer.clearSelection === 'function') + renderer.clearSelection(); + } + catch (_) { + /* best effort — clearing is an optimisation, not a requirement */ + } + // The host renders the dialog as a full-screen overlay with + // `alignItems:center` (horizontal only) and `paddingTop = terminalHeight/4`, + // so the dialog's top edge is pinned a QUARTER of the screen down and it + // grows downward from there. For its midpoint to land on the screen's + // midpoint its total height must therefore be exactly HALF the screen: any + // row beyond that pushes the bottom down without lifting the top. Width is + // capped independently at 116 columns by size "xlarge", so HEIGHT is the + // only shape lever available — and it is spent here filling downward to the + // screen edge (the tallest the host will show), which trades away the + // centring that a half-screen box would give. + const renderer = rendererView(api); + const screenRows = typeof renderer.height === 'number' ? renderer.height : 40; + const cols = typeof renderer.width === 'number' ? renderer.width : 80; + const topOffset = Math.floor(screenRows / 4); + // Header (4 lines incl. the hint + its 2-row border), the output frame's + // border (2), and the host's own chrome are all subtracted so the box cannot + // run past the screen edge. + const rows = Math.max(6, screenRows - topOffset - 12); + debug('dialog.metrics', { screenRows, cols, topOffset, rows }); + const palette = api.theme.current; + const dialogHeaderFor = () => { + // A tinted bar, matching how the built-ins band their section headers. The + // hint lives INSIDE the band so the whole header reads as one block, and + // the bar carries the same border as the output frame below it. + const bar = createElement('box'); + setProp(bar, 'flexDirection', 'column'); + setProp(bar, 'width', '100%'); + setProp(bar, 'border', true); + setProp(bar, 'borderStyle', 'single'); + if (palette.border) + setProp(bar, 'borderColor', palette.border); + if (palette.backgroundElement) + setProp(bar, 'backgroundColor', palette.backgroundElement); + insertNode(bar, text(`⟡ ${session.title || session.id}`)); + insertNode(bar, text(formatDetail(session))); + // The run timer sits in the band's bottom-right corner: a growing spacer + // pushes it there, and as the last row it reads as the footer. + const foot = createElement('box'); + setProp(foot, 'flexDirection', 'row'); + const hint = createElement('text'); + setProp(hint, 'flexGrow', 1); + if (palette.textMuted) + setProp(hint, 'fg', palette.textMuted); + insertNode(hint, createTextNode('esc to close')); + insertNode(foot, hint); + const runTime = textLive(() => { + const ms = elapsedMs(); + return ms === null ? '' : formatDuration(ms); + }); + if (palette.textMuted) + setProp(runTime, 'fg', palette.textMuted); + insertNode(foot, runTime); + insertNode(bar, foot); + return bar; + }; + const framedOutput = () => { + // A small inner border around the output area, so the scrollable region is + // visually distinct from the surrounding dialog. + const frame = createElement('box'); + setProp(frame, 'width', '100%'); + setProp(frame, 'border', true); + setProp(frame, 'borderStyle', 'single'); + if (palette.border) + setProp(frame, 'borderColor', palette.border); + insertNode(frame, scrollboxFor(textLive(() => tail(buf(), TAIL_LINES)), rows)); + return frame; + }; + api.ui.dialog.replace(() => slotElement(column([dialogHeaderFor(), framedOutput()])), () => { + debug('dialog.closed', { id: session.id }); + if (timer) + clearInterval(timer); + timer = null; + if (tick) + clearInterval(tick); + tick = null; + }); + // setSize must come AFTER replace: replace resets the size as part of + // pushing the entry, so calling it before is silently overridden. + // Size is a WIDTH (xlarge = 116 cols), so pick it from the terminal width — + // the same thresholds opencode's own plugin manager uses, otherwise the + // dialog is wider than a narrow terminal. + api.ui.dialog.setSize(cols >= 128 ? 'xlarge' : cols >= 96 ? 'large' : 'medium'); + debug('dialog.opened', { id: session.id, size: api.ui.dialog.size, cols }); + timer = setInterval(load, POLL_MS); + // A finished session's figure is fixed, so only a running one needs waking. + if (!Number.isFinite(Date.parse(liveSession().exitAt ?? ''))) { + tick = setInterval(() => setNow(Date.now()), 1000); + } + }; + /** + * Drop one session, then refresh at once — waiting up to a poll interval for + * the list to catch up would read as a click that did nothing. + */ + const removeSession = async (session) => { + if (!origin) { + api.ui.toast({ variant: 'warning', title: 'opencode-pty', message: 'PTY server unavailable' }); + return; + } + const label = session.title || session.id; + let failure = null; + try { + if (!(await cleanupSession(origin, String(session.id)))) { + throw new Error('the server refused the request'); + } + debug('remove.done', { id: session.id }); + } + catch (e) { + failure = e; + debug('remove.failed', { id: session.id, error: String(e) }); + } + // Both toasts sit OUTSIDE that try, and both are best-effort: a throw from + // the success toast must not be mistaken for a failed removal and reported + // as one. + try { + if (failure) { + api.ui.toast({ + variant: 'error', + title: 'opencode-pty', + message: `Could not remove ${label}: ${String(failure)}`, + }); + } + else { + api.ui.toast({ variant: 'info', title: 'opencode-pty', message: `Removed ${label}` }); + } + } + catch (_) { + /* toast is best-effort */ + } + // force: the user is waiting on this one, so it must not be dropped. + refresh(false, true).catch(() => { }); + }; + /** + * Removing a RUNNING session kills a live process, so it is confirmed first; a + * finished one is only a record, so its ✕ acts at once. DialogConfirm clears + * itself after a choice, so neither branch touches the dialog stack. + */ + const confirmRemove = (session) => { + debug('row.remove', { id: session.id, status: session.status }); + // Only a healthy live process earns a confirmation. A `killing` session has + // already been asked to die — cleanup merely drops the record — so gating on + // anything but `running` would ask a question with one sane answer. This is + // also why `isFinished`, which drives clear-finished, excludes `killing`: + // that path must not race the process teardown. + if (session.status !== 'running') { + removeSession(session).catch(() => { }); + return; + } + api.ui.dialog.replace(() => api.ui.DialogConfirm({ + title: 'Remove PTY session', + message: 'Kill the running session \u201c' + + (session.title || session.id) + + '\u201d and remove it?', + onConfirm: () => removeSession(session).catch(() => { }), + })); + }; + /** + * Drop every finished session. Only ever touches non-running ones, so it needs + * no confirmation; a partial failure is reported rather than hidden. + */ + const clearFinished = async () => { + if (!origin) { + api.ui.toast({ variant: 'warning', title: 'opencode-pty', message: 'PTY server unavailable' }); + return; + } + const targets = finishedSessions(sessions()); + debug('clear-finished.start', { count: targets.length }); + const results = await Promise.all(targets.map((s) => cleanupSession(origin, String(s.id)).catch(() => false))); + const failed = results.filter((ok) => !ok).length; + if (failed) { + api.ui.toast({ + variant: 'error', + title: 'opencode-pty', + message: `Could not remove ${failed} of ${targets.length} finished sessions`, + }); + } + // force: the user is waiting on this one, so it must not be dropped. + refresh(false, true).catch(() => { }); + }; + const rowFor = (session) => { + // Bullet and label are SEPARATE text elements in a row box, because `fg` is + // only proven to work on text elements (opencode-tabs colours its labels + // that way). Nesting a `span` inside a `text` and colouring the span — my + // first attempt — silently rendered uncoloured. + const row = createElement('box'); + setProp(row, 'flexDirection', 'row'); + const palette = api.theme.current; + const tone = rowTone(session); + const toneColor = tone === 'success' ? palette.success : tone === 'error' ? palette.error : palette.textMuted; + const bullet = createElement('text'); + if (toneColor) + setProp(bullet, 'fg', toneColor); + insertNode(bullet, createTextNode(ROW_BULLET)); + insertNode(row, bullet); + const label = createElement('text'); + if (palette.text) + setProp(label, 'fg', palette.text); + // Grow so the remove glyph is pushed to the panel's right edge. + setProp(label, 'flexGrow', 1); + insertNode(label, createTextNode(rowLabel(session))); + insertNode(row, label); + // The row opens the dialog on mouse UP, so the glyph must swallow BOTH + // events, not just the one it acts on — otherwise the removal would also + // open the dialog for the session the user just removed. + const remove = createElement('text'); + if (palette.textMuted) + setProp(remove, 'fg', palette.textMuted); + insertNode(remove, createTextNode(REMOVE_GLYPH)); + setProp(remove, 'onMouseDown', (evt) => { + stopPropagation(evt); + debug('row.remove.mousedown', { id: session.id }); + }); + setProp(remove, 'onMouseUp', (evt) => { + stopPropagation(evt); + confirmRemove(session); + }); + insertNode(row, remove); + // Diagnose the mousedown-vs-mouseup ordering (see activate below). + setProp(row, 'onMouseDown', () => debug('row.mousedown', { id: session.id })); + setProp(row, 'onMouseUp', () => activate(session)); + return row; + }; + // Open the dialog on mouse UP, deferred one tick. + // + // Opening on mouse DOWN meant the dialog's click-outside dismissal then saw + // the still-pending mouseup/click land outside the brand-new modal and closed + // it in the same gesture. Waiting for mouseup and letting the trailing click + // event pass before opening avoids that entirely. + const activate = (session) => { + debug('row.mouseup', { id: session.id }); + setTimeout(() => { + debug('row.open', { id: session.id }); + openOutput(session).catch((e) => { + // A click that silently does nothing is indistinguishable from a broken + // panel, so say so out loud rather than only to the debug log. + debug('row.open.failed', { error: String(e) }); + try { + api.ui.toast({ + variant: 'error', + title: 'opencode-pty', + message: `Could not open ${session.title || session.id}: ${String(e)}`, + }); + } + catch (_) { + /* toast is best-effort */ + } + }); + }, 0); + }; + // A collapsible header, matching the built-in sidebar items (MCP, File Tree, + // Todo): chevron glyph, click to toggle, state persisted in kv. The count + // stays visible while collapsed so the panel is still informative. It carries + // the clear-finished action too — rendered only when something can be cleared. + const headerFor = () => { + const palette = api.theme.current; + const row = createElement('box'); + setProp(row, 'flexDirection', 'row'); + const toggle = createElement('text'); + // Grow so the clear action is pushed to the panel's right edge. + setProp(toggle, 'flexGrow', 1); + insert(toggle, () => headerLabel({ collapsed: collapsed(), status: status() })); + setProp(toggle, 'onMouseDown', () => { + const next = !collapsed(); + setCollapsed(next); + api.kv.set(KV_COLLAPSED, next); + // Expanding is the user asking to see the sessions, so it is the trigger + // for starting the server — the only one. Dropping the resolved origin is + // what makes the click a real retry: without it, refresh() would reuse a + // stale origin instead of re-resolving. The cached origin is kept, because + // resolveOrigin re-validates that one with a health probe. Clearing the + // backoff and the remembered cause keeps a failure recoverable by clicking. + // The panel defaults to collapsed, which keeps a start off the load path. + if (!next) { + origin = null; + bootstrapFailures = 0; + lastBootstrapError = null; + refresh(true).catch(() => { }); + } + }); + insertNode(row, toggle); + const clear = createElement('text'); + if (palette.textMuted) + setProp(clear, 'fg', palette.textMuted); + // Empty when nothing is finished: a zero-width element presents no hit + // target, so the header never offers an action that would delete nothing. + insert(clear, () => clearActionLabel(sessions()) || ''); + setProp(clear, 'onMouseDown', (evt) => { + // Without this the click would also toggle the panel shut, hiding the very + // list it is cleaning. + stopPropagation(evt); + clearFinished().catch(() => { }); + }); + insertNode(row, clear); + return row; + }; + // ── sidebar panel ───────────────────────────────────────────────────────── + api.slots.register({ + order: SLOT_ORDER, + slots: { + sidebar_content() { + return slotElement(column([ + headerFor(), + columnLive(() => { + if (collapsed()) + return []; + const list = sessions(); + if (!list.length) + return [text(' (none)')]; + return list.map((s) => rowFor(s)); + }), + ])); + }, + }, + }); + api.lifecycle.onDispose(() => { + disposed = true; + if (rootTimer) + clearInterval(rootTimer); + rootTimer = null; + }); + // Deliberately not awaited: opencode's TUI plugin loader awaits this factory + // before the TUI is usable, so the factory must never wait on a refresh. + refresh().catch(() => { }); + rootTimer = setInterval(() => { + refresh().catch(() => { }); + }, POLL_MS); +}; +export default { id: 'opencode-pty', tui }; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/tui/lib.d.ts b/dist/src/tui/lib.d.ts new file mode 100644 index 00000000..5b84216e --- /dev/null +++ b/dist/src/tui/lib.d.ts @@ -0,0 +1,110 @@ +/** + * Extract the newest origin found in a single text, or null. + * + * Newest within the text, not first, because the PTY server binds a fresh + * random port on every start — an earlier mention is a dead port. + */ +export declare function matchServerUrl(text: unknown): string | null; +/** + * Extract the newest origin across an ordered list of texts (oldest first), or + * null. This is the function the plugin actually uses: it maps the session's + * message texts through here and takes the result as the live origin. + */ +export declare function latestServerUrl(texts: unknown): string | null; +/** + * The error the PTY plugin's command handler throws to signal it handled the + * command itself. + * + * It is NOT a failure: the handler throws only after it has already started the + * PTY server and posted the URL, using the throw to stop opencode running the + * command's template. Reading it as an error is what made a working server look + * unavailable. + */ +export declare const PTY_COMMAND_SENTINEL = "Command handled by PTY plugin"; +export declare function isPtyCommandSentinel(error: unknown): boolean; +/** + * The message worth remembering as the bootstrap's failure cause, or null when + * there is nothing to report. + * + * The sentinel is not a failure — the plugin throws it only after it has started + * the server and posted the URL — so recording it would report a working server + * as unavailable. + */ +export declare function bootstrapFailureCause(error: unknown): string | null; +/** + * Decode a `/api/sessions/:id/buffer/plain` response into displayable text. + * + * The endpoint returns a JSON envelope — `{ plain, byteLength }` — not a raw + * body, and the content is CRLF-terminated (it is a terminal buffer). + */ +export declare function decodeBuffer(raw: unknown): string; +/** Every row carries the same bullet, matching the built-in sidebar items + * (MCP, File Tree, Todo); the colour carries the state instead. */ +export declare const ROW_BULLET = "\u2022 "; +/** + * A row's text WITHOUT its bullet, so the caller can colour the bullet + * separately — the built-in sidebar items style the glyph and leave the label + * in the normal text colour. + */ +export declare function rowLabel(session: unknown): string; +/** + * Which theme colour a row's bullet should take. + * + * Returns a semantic key rather than a colour so it stays pure and testable — + * the palette lookup belongs to the caller, which has the theme. + */ +export declare function rowTone(session: unknown): 'success' | 'error' | 'muted'; +/** + * Whether a session has stopped. + * + * `killing` is deliberately NOT finished: it is the transient state between the + * kill request and the exit callback that reports `killed`, so treating it as + * finished would let a clear race the process teardown. + */ +export declare function isFinished(session: unknown): boolean; +/** The sessions a "clear finished" acts on, kept in their list order. */ +export declare function finishedSessions(list: unknown): Array>; +/** + * The header's clear-action label, or null when there is nothing to clear. + * + * Returns null rather than a disabled label so the header never offers a control + * that would delete nothing — and so it can never read as touching live sessions. + */ +export declare function clearActionLabel(list: unknown): string | null; +/** The collapsible header's text: chevron, panel name, status. */ +export declare function headerLabel(input: { + collapsed?: unknown; + status?: unknown; +}): string; +/** Header block for the output dialog — the detail that does not fit a row. + * + * Capped at TWO lines on purpose: every line spent here is a line unavailable + * to the output, and a taller header pushes the dialog past the screen bottom. + */ +export declare function formatDetail(session: unknown): string; +/** + * Does this look like the PTY server's `/health` payload? + * + * Each published record is only a hint about where to look, so a candidate is + * confirmed by this shape: another local service can answer on a loopback port + * too — CUPS owns `[::1]:631` on the machine this was built on and returns an + * HTML error page. + */ +export declare function isPtyHealth(value: unknown): boolean; +/** + * The last `lines` lines of `text`, prefixed with `…` when anything was cut. + * + * Lives here rather than in the plugin so it can be tested: it decides what the + * dialog shows, and an off-by-one would silently hide the newest output. + */ +export declare function tail(text: unknown, lines: number): string; +/** + * How long a session has been running, as a compact label. + * + * Seconds zero-padded below an hour (`1m 05s`), minutes above it (`2h 07m`) — + * the unit that matters is the leading one, and a bare `0s` beats a `NaN` or an + * empty cell for a session whose timestamps are missing or inverted (a clock can + * move backwards between the server and the panel). + */ +export declare function formatDuration(ms: unknown): string; +//# sourceMappingURL=lib.d.ts.map \ No newline at end of file diff --git a/dist/src/tui/lib.js b/dist/src/tui/lib.js new file mode 100644 index 00000000..e603246b --- /dev/null +++ b/dist/src/tui/lib.js @@ -0,0 +1,250 @@ +// Pure logic for the PTY sidebar TUI plugin — no TUI, no I/O, no host API. +// +// Kept deliberately separate from the wiring so it can be unit-tested: the TUI +// half cannot be driven headlessly, but every bug found while building the +// sidebar lived in one of these functions. +/** Matches the PTY web interface URL the plugin posts into the session. + * A scheme is REQUIRED: the earlier loose `\S+` form matched a doc placeholder + * ("PTY Sessions Web Interface URL: ``.") that appears in the transcript, + * producing "fetch() URL is invalid". */ +const URL_RE = /PTY Sessions Web Interface URL:\s*(https?:\/\/\S+)/g; +/** Trailing punctuation that can follow a URL in prose but is not part of it. */ +const TRAILING_JUNK = /[.,;:`'")\]]+$/; +/** + * Extract the newest origin found in a single text, or null. + * + * Newest within the text, not first, because the PTY server binds a fresh + * random port on every start — an earlier mention is a dead port. + */ +export function matchServerUrl(text) { + if (typeof text !== 'string' || text.length === 0) + return null; + const re = new RegExp(URL_RE.source, 'g'); + let match = re.exec(text); + let found = null; + while (match !== null) { + const captured = match[1]; + if (captured !== undefined) + found = captured.replace(TRAILING_JUNK, ''); + match = re.exec(text); + } + return found; +} +/** + * Extract the newest origin across an ordered list of texts (oldest first), or + * null. This is the function the plugin actually uses: it maps the session's + * message texts through here and takes the result as the live origin. + */ +export function latestServerUrl(texts) { + if (!Array.isArray(texts)) + return null; + let found = null; + for (const text of texts) { + const hit = matchServerUrl(text); + if (hit) + found = hit; + } + return found; +} +/** + * The error the PTY plugin's command handler throws to signal it handled the + * command itself. + * + * It is NOT a failure: the handler throws only after it has already started the + * PTY server and posted the URL, using the throw to stop opencode running the + * command's template. Reading it as an error is what made a working server look + * unavailable. + */ +export const PTY_COMMAND_SENTINEL = 'Command handled by PTY plugin'; +export function isPtyCommandSentinel(error) { + const message = error && typeof error === 'object' && 'message' in error + ? String(error.message) + : String(error); + return message.includes(PTY_COMMAND_SENTINEL); +} +/** + * The message worth remembering as the bootstrap's failure cause, or null when + * there is nothing to report. + * + * The sentinel is not a failure — the plugin throws it only after it has started + * the server and posted the URL — so recording it would report a working server + * as unavailable. + */ +export function bootstrapFailureCause(error) { + if (isPtyCommandSentinel(error)) + return null; + return String(error); +} +/** + * Decode a `/api/sessions/:id/buffer/plain` response into displayable text. + * + * The endpoint returns a JSON envelope — `{ plain, byteLength }` — not a raw + * body, and the content is CRLF-terminated (it is a terminal buffer). + */ +export function decodeBuffer(raw) { + let text; + if (typeof raw === 'string') { + text = raw; + } + else if (raw && + typeof raw === 'object' && + typeof raw.plain === 'string') { + text = raw.plain; + } + else { + return ''; + } + return text.replace(/\r\n/g, '\n'); +} +/** Title column width in the sidebar. */ +const TITLE_MAX = 24; +function truncate(value, max) { + if (value.length <= max) + return value; + return `${value.slice(0, max - 1)}…`; +} +/** Every row carries the same bullet, matching the built-in sidebar items + * (MCP, File Tree, Todo); the colour carries the state instead. */ +export const ROW_BULLET = '• '; +/** + * The trailing state field of a row. + * + * The PTY status is not just running/exited — it also reports `killing` and + * `killed`, which carry no exit code. Rendering those as `exit ?` reads as a + * bug, so any non-running state without a numeric exit code shows the status + * word itself. + */ +function rowTail(s) { + if (s.status === 'running') { + return `${typeof s.lineCount === 'number' ? s.lineCount : 0}L`; + } + if (typeof s.exitCode === 'number') + return `exit ${s.exitCode}`; + return typeof s.status === 'string' && s.status.length > 0 ? s.status : '?'; +} +/** + * A row's text WITHOUT its bullet, so the caller can colour the bullet + * separately — the built-in sidebar items style the glyph and leave the label + * in the normal text colour. + */ +export function rowLabel(session) { + const s = (session && typeof session === 'object' ? session : {}); + const title = typeof s.title === 'string' && s.title.length > 0 ? s.title : 'untitled'; + return `${truncate(title, TITLE_MAX)} ${rowTail(s)}`; +} +/** + * Which theme colour a row's bullet should take. + * + * Returns a semantic key rather than a colour so it stays pure and testable — + * the palette lookup belongs to the caller, which has the theme. + */ +export function rowTone(session) { + if (!session || typeof session !== 'object') + return 'muted'; + const s = session; + if (s.status === 'running') + return 'success'; + if (typeof s.exitCode === 'number' && s.exitCode !== 0) + return 'error'; + return 'muted'; +} +/** + * Whether a session has stopped. + * + * `killing` is deliberately NOT finished: it is the transient state between the + * kill request and the exit callback that reports `killed`, so treating it as + * finished would let a clear race the process teardown. + */ +export function isFinished(session) { + if (!session || typeof session !== 'object') + return false; + const status = session.status; + return status === 'exited' || status === 'killed'; +} +/** The sessions a "clear finished" acts on, kept in their list order. */ +export function finishedSessions(list) { + if (!Array.isArray(list)) + return []; + return list.filter(isFinished); +} +/** + * The header's clear-action label, or null when there is nothing to clear. + * + * Returns null rather than a disabled label so the header never offers a control + * that would delete nothing — and so it can never read as touching live sessions. + */ +export function clearActionLabel(list) { + return finishedSessions(list).length > 0 ? '(clear finished)' : null; +} +/** The collapsible header's text: chevron, panel name, status. */ +export function headerLabel(input) { + const chevron = input?.collapsed ? '\u25B6' : '\u25BC'; + const status = typeof input?.status === 'string' ? input.status : ''; + return `${chevron} PTY ${status}`; +} +/** Header block for the output dialog — the detail that does not fit a row. + * + * Capped at TWO lines on purpose: every line spent here is a line unavailable + * to the output, and a taller header pushes the dialog past the screen bottom. + */ +export function formatDetail(session) { + if (!session || typeof session !== 'object') + return ''; + const s = session; + const args = Array.isArray(s.args) ? s.args.filter((a) => typeof a === 'string') : []; + const command = [typeof s.command === 'string' ? s.command : '', ...args] + .filter(Boolean) + .join(' '); + return [ + `${typeof s.id === 'string' ? s.id : '?'} ${typeof s.status === 'string' ? s.status : '?'} pid ${typeof s.pid === 'number' ? s.pid : '?'} lines ${typeof s.lineCount === 'number' ? s.lineCount : 0}`, + [command, typeof s.workdir === 'string' ? s.workdir : ''].filter(Boolean).join(' · '), + ] + .filter((line) => line.length > 0) + .join('\n'); +} +/** + * Does this look like the PTY server's `/health` payload? + * + * Each published record is only a hint about where to look, so a candidate is + * confirmed by this shape: another local service can answer on a loopback port + * too — CUPS owns `[::1]:631` on the machine this was built on and returns an + * HTML error page. + */ +export function isPtyHealth(value) { + if (!value || typeof value !== 'object') + return false; + const v = value; + return v.status === 'healthy' && !!v.sessions && typeof v.sessions === 'object'; +} +/** + * The last `lines` lines of `text`, prefixed with `…` when anything was cut. + * + * Lives here rather than in the plugin so it can be tested: it decides what the + * dialog shows, and an off-by-one would silently hide the newest output. + */ +export function tail(text, lines) { + const all = String(text).split('\n'); + if (all.length <= lines) + return all.join('\n'); + return `…\n${all.slice(-lines).join('\n')}`; +} +/** + * How long a session has been running, as a compact label. + * + * Seconds zero-padded below an hour (`1m 05s`), minutes above it (`2h 07m`) — + * the unit that matters is the leading one, and a bare `0s` beats a `NaN` or an + * empty cell for a session whose timestamps are missing or inverted (a clock can + * move backwards between the server and the panel). + */ +export function formatDuration(ms) { + const totalSeconds = typeof ms === 'number' && Number.isFinite(ms) && ms > 0 ? Math.floor(ms / 1000) : 0; + const seconds = totalSeconds % 60; + const minutes = Math.floor(totalSeconds / 60) % 60; + const hours = Math.floor(totalSeconds / 3600); + if (hours > 0) + return `${hours}h ${String(minutes).padStart(2, '0')}m`; + if (minutes > 0) + return `${minutes}m ${String(seconds).padStart(2, '0')}s`; + return `${seconds}s`; +} +//# sourceMappingURL=lib.js.map \ No newline at end of file diff --git a/dist/src/v2/commands.d.ts b/dist/src/v2/commands.d.ts new file mode 100644 index 00000000..5a733eba --- /dev/null +++ b/dist/src/v2/commands.d.ts @@ -0,0 +1,18 @@ +import { PTYServer, type ServerOptions } from '../web/server/server.ts'; +import type { CommandDraft } from './types.ts'; +export declare const PTY_OPEN_CLIENT_COMMAND = "pty-open-background-spy"; +export declare const PTY_SHOW_SERVER_URL_COMMAND = "pty-show-server-url"; +export declare function getOrCreateServer(options?: ServerOptions): Promise; +export declare function getActiveServer(): PTYServer | null; +export declare function stopActiveServer(): void; +export declare function handleOpenClientCommand(options?: ServerOptions): Promise; +export declare function handleShowServerUrlCommand(options?: ServerOptions): Promise; +/** + * Registers the PTY slash commands with opencode v2's `CommandEditor`. + * + * opencode v2's `command.transform` draft exposes `add(definition)` only + * (there is no `update`), so commands must be created with an `execute` + * handler rather than "updated". + */ +export declare function registerV2Commands(draft: CommandDraft, options?: ServerOptions): void; +//# sourceMappingURL=commands.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/commands.js b/dist/src/v2/commands.js new file mode 100644 index 00000000..1f6dfff2 --- /dev/null +++ b/dist/src/v2/commands.js @@ -0,0 +1,58 @@ +import open from 'open'; +import { PTYServer } from "../web/server/server.js"; +export const PTY_OPEN_CLIENT_COMMAND = 'pty-open-background-spy'; +export const PTY_SHOW_SERVER_URL_COMMAND = 'pty-show-server-url'; +let activeServer = null; +export async function getOrCreateServer(options) { + if (!activeServer) { + activeServer = await PTYServer.createServer(options); + } + return activeServer; +} +export function getActiveServer() { + return activeServer; +} +export function stopActiveServer() { + if (activeServer) { + activeServer[Symbol.dispose](); + activeServer = null; + } +} +export async function handleOpenClientCommand(options) { + const server = await getOrCreateServer(options); + const url = server.server.url.origin; + open(url); + return `PTY Sessions Web Interface opened at: ${url}`; +} +export async function handleShowServerUrlCommand(options) { + const server = await getOrCreateServer(options); + return `PTY Sessions Web Interface URL: ${server.server.url.origin}`; +} +/** + * Registers the PTY slash commands with opencode v2's `CommandEditor`. + * + * opencode v2's `command.transform` draft exposes `add(definition)` only + * (there is no `update`), so commands must be created with an `execute` + * handler rather than "updated". + */ +export function registerV2Commands(draft, options) { + if (typeof draft.add !== 'function') { + return; + } + const add = draft.add.bind(draft); + add({ + name: PTY_OPEN_CLIENT_COMMAND, + description: 'Open PTY Sessions Web Interface', + execute: async () => { + await handleOpenClientCommand(options); + }, + }); + add({ + name: PTY_SHOW_SERVER_URL_COMMAND, + description: 'Show PTY Sessions Web Interface URL', + execute: async () => { + await handleShowServerUrlCommand(options); + }, + }); +} +//# sourceMappingURL=commands.js.map \ No newline at end of file diff --git a/dist/src/v2/index.d.ts b/dist/src/v2/index.d.ts new file mode 100644 index 00000000..d7382b56 --- /dev/null +++ b/dist/src/v2/index.d.ts @@ -0,0 +1,12 @@ +import { type PluginV2 } from './types.ts'; +export * from './commands.ts'; +export * from './notifier.ts'; +export * from './tools.ts'; +export * from './types.ts'; +/** + * OpenCode V2 Plugin definition for opencode-pty. + * Conforms to the V2 Plugin.define({ id, setup }) contract. + */ +export declare const Plugin: PluginV2; +export default Plugin; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/index.js b/dist/src/v2/index.js new file mode 100644 index 00000000..215df757 --- /dev/null +++ b/dist/src/v2/index.js @@ -0,0 +1,65 @@ +import { createV2Adapter } from "../adapters/v2/index.js"; +import { createV2PermissionAuthorizer } from "../adapters/v2/permissions.js"; +import { installHostAdapter } from "../adapters/index.js"; +import { getOrCreateServer, registerV2Commands } from "./commands.js"; +import { V2SessionNotifier } from "./notifier.js"; +import { registerV2Tools } from "./tools.js"; +import { define } from "./types.js"; +export * from "./commands.js"; +export * from "./notifier.js"; +export * from "./tools.js"; +export * from "./types.js"; +/** + * OpenCode V2 Plugin definition for opencode-pty. + * Conforms to the V2 Plugin.define({ id, setup }) contract. + */ +export const Plugin = define({ + id: 'opencode-pty', + setup: async (ctx) => { + // opencode v2 plugin contexts are server clients: `ctx.session.prompt` + // wakes a session with a user prompt, preserving the session's current + // model by construction. Pre-2.0 hosts without the session domain still + // load the plugin, but exit notifications are disabled with a visible + // warning instead of silently never arriving. + const notifier = typeof ctx.session?.prompt === 'function' ? new V2SessionNotifier(ctx.session) : undefined; + if (!notifier) { + console.warn('[opencode-pty] host does not expose ctx.session.prompt — exit notifications disabled'); + } + // The project directory lives on `location`. `ctx.worktree` is deliberately + // NOT used: it is a domain object on the V2 API, not a path, and passing it + // through reached createHash and threw. Absent paths only mean no record is + // published — the sidebar then falls back to the instance-scoped URL scrape. + const location = ctx.location; + const directory = typeof location?.directory === 'string' ? location.directory : undefined; + // opencode V2 exposes no `config.get()`, so `permission.bash` cannot be + // re-read and re-implemented here: `ctx.permission.assert` is the only + // documented surface that evaluates the session's rules and prompts on + // `ask`. Without it PTY spawns would bypass `permissions` deny rules (#80). + const permissions = createV2PermissionAuthorizer(ctx.permission, directory); + if (!permissions) { + console.warn('[opencode-pty] host does not expose ctx.permission.assert — PTY commands are not checked against permissions'); + } + const adapter = createV2Adapter({ notifier, permissions }); + installHostAdapter(adapter); + if (ctx.tool && typeof ctx.tool.transform === 'function') { + await ctx.tool.transform((draft) => { + registerV2Tools(draft); + }); + } + const serverOptions = { + port: ctx.options?.port, + hostname: ctx.options?.hostname, + ...(directory ? { directory } : {}), + }; + if (ctx.command && typeof ctx.command.transform === 'function') { + await ctx.command.transform((draft) => { + registerV2Commands(draft, serverOptions); + }); + } + if (ctx.options?.autostart) { + await getOrCreateServer(serverOptions); + } + }, +}); +export default Plugin; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/v2/notifier.d.ts b/dist/src/v2/notifier.d.ts new file mode 100644 index 00000000..607cc811 --- /dev/null +++ b/dist/src/v2/notifier.d.ts @@ -0,0 +1,33 @@ +import type { Plugin } from '@opencode/plugin'; +import type { SessionNotifier } from '../adapters/types.ts'; +import type { PTYSession } from '../plugin/pty/types.ts'; +/** + * The subset of opencode v2's plugin `session` domain we use to wake a session. + * + * The full domain (`Plugin.Context["session"]`) also exposes `get`, + * `switchModel`, `wait`, `context` and more; keeping the notifier bound to + * `prompt` only makes it easy to construct in tests and resilient to hosts + * that only expose part of the surface. + */ +export type V2SessionPrompt = Pick; +/** + * Delivers `` notifications through opencode v2's plugin context. + * + * The notification is admitted as a user prompt with a deterministic message + * id (`pty__exited`), so `admission.reconcile` makes repeated deliveries + * idempotent (e.g. when a kill races the process exit). Default delivery + * (`steer`) plus `execution.wake` starts a new agent turn, and opencode + * resolves the run with the session's *current* model — so the user's model + * selection is preserved without the explicit model lookup the V1 notifier + * needs (`session/runner/model.ts` has no `agent.model` fallback like the + * V1 `setAgentModel` chain did). + * + * Delivery failures are logged instead of swallowed, so a dead wake-up is + * never indistinguishable from "the model decided not to respond". + */ +export declare class V2SessionNotifier implements SessionNotifier { + private readonly session; + constructor(session: V2SessionPrompt); + sendExitNotification(session: PTYSession, exitCode: number): Promise; +} +//# sourceMappingURL=notifier.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/notifier.js b/dist/src/v2/notifier.js new file mode 100644 index 00000000..8909f766 --- /dev/null +++ b/dist/src/v2/notifier.js @@ -0,0 +1,40 @@ +import { buildExitNotification } from "../plugin/pty/notification-manager.js"; +/** + * Delivers `` notifications through opencode v2's plugin context. + * + * The notification is admitted as a user prompt with a deterministic message + * id (`pty__exited`), so `admission.reconcile` makes repeated deliveries + * idempotent (e.g. when a kill races the process exit). Default delivery + * (`steer`) plus `execution.wake` starts a new agent turn, and opencode + * resolves the run with the session's *current* model — so the user's model + * selection is preserved without the explicit model lookup the V1 notifier + * needs (`session/runner/model.ts` has no `agent.model` fallback like the + * V1 `setAgentModel` chain did). + * + * Delivery failures are logged instead of swallowed, so a dead wake-up is + * never indistinguishable from "the model decided not to respond". + */ +export class V2SessionNotifier { + session; + constructor(session) { + this.session = session; + } + async sendExitNotification(session, exitCode) { + if (!session.parentSessionId) { + console.warn(`[opencode-pty] cannot notify: session ${session.id} has no parent session`); + return; + } + const text = buildExitNotification(session, exitCode); + try { + await this.session.prompt({ + sessionID: session.parentSessionId, + id: `pty_${session.id}_exited`, + text, + }); + } + catch (error) { + console.error(`[opencode-pty] failed to deliver exit notification for ${session.id}:`, error instanceof Error ? error.message : String(error)); + } + } +} +//# sourceMappingURL=notifier.js.map \ No newline at end of file diff --git a/dist/src/v2/tools.d.ts b/dist/src/v2/tools.d.ts new file mode 100644 index 00000000..0f7f8f75 --- /dev/null +++ b/dist/src/v2/tools.d.ts @@ -0,0 +1,82 @@ +import type { ToolDraft } from './types.ts'; +export declare const ptyTools: { + readonly pty_spawn: { + description: string; + args: { + command: import("zod").ZodString; + args: import("zod").ZodArray; + workdir: import("zod").ZodOptional; + env: import("zod").ZodOptional>; + title: import("zod").ZodOptional; + description: import("zod").ZodString; + notifyOnExit: import("zod").ZodOptional; + timeoutSeconds: import("zod").ZodOptional; + }; + execute(args: { + command: string; + args: string[]; + description: string; + workdir?: string | undefined; + env?: Record | undefined; + title?: string | undefined; + notifyOnExit?: boolean | undefined; + timeoutSeconds?: number | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; + }; + readonly pty_write: { + description: string; + args: { + id: import("zod").ZodString; + data: import("zod").ZodString; + }; + execute(args: { + id: string; + data: string; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; + }; + readonly pty_read: { + description: string; + args: { + id: import("zod").ZodString; + offset: import("zod").ZodOptional; + limit: import("zod").ZodOptional; + pattern: import("zod").ZodOptional; + ignoreCase: import("zod").ZodOptional; + }; + execute(args: { + id: string; + offset?: number | undefined; + limit?: number | undefined; + pattern?: string | undefined; + ignoreCase?: boolean | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; + }; + readonly pty_list: { + description: string; + args: {}; + execute(args: Record, context: import("@opencode-ai/plugin").ToolContext): Promise; + }; + readonly pty_kill: { + description: string; + args: { + id: import("zod").ZodString; + cleanup: import("zod").ZodOptional; + }; + execute(args: { + id: string; + cleanup?: boolean | undefined; + }, context: import("@opencode-ai/plugin").ToolContext): Promise; + }; +}; +export type PTYToolName = keyof typeof ptyTools; +/** + * Registers the PTY tools with opencode v2's `ToolEditor`. + * + * The tool definitions are authored against the V1 `tool()` helper + * (`{ description, args, execute }`). opencode v2 expects `Tool.Info` + * (`{ name, input, description, execute }`); we adapt: + * - `args` (Zod raw shape) -> `input`: JSON Schema (Zod v4 `toJSONSchema`) + * - string result -> `{ content }` + */ +export declare function registerV2Tools(draft: ToolDraft): void; +//# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/tools.js b/dist/src/v2/tools.js new file mode 100644 index 00000000..5e9ed537 --- /dev/null +++ b/dist/src/v2/tools.js @@ -0,0 +1,42 @@ +import { tool } from '@opencode-ai/plugin'; +import { ptyKill } from "../plugin/pty/tools/kill.js"; +import { ptyList } from "../plugin/pty/tools/list.js"; +import { ptyRead } from "../plugin/pty/tools/read.js"; +import { ptySpawn } from "../plugin/pty/tools/spawn.js"; +import { ptyWrite } from "../plugin/pty/tools/write.js"; +export const ptyTools = { + pty_spawn: ptySpawn, + pty_write: ptyWrite, + pty_read: ptyRead, + pty_list: ptyList, + pty_kill: ptyKill, +}; +/** + * Registers the PTY tools with opencode v2's `ToolEditor`. + * + * The tool definitions are authored against the V1 `tool()` helper + * (`{ description, args, execute }`). opencode v2 expects `Tool.Info` + * (`{ name, input, description, execute }`); we adapt: + * - `args` (Zod raw shape) -> `input`: JSON Schema (Zod v4 `toJSONSchema`) + * - string result -> `{ content }` + */ +export function registerV2Tools(draft) { + if (typeof draft.add !== 'function') { + return; + } + const add = draft.add.bind(draft); + const tools = ptyTools; + for (const [name, definition] of Object.entries(tools)) { + const info = { + name, + description: definition.description, + input: tool.schema.toJSONSchema(tool.schema.object(definition.args)), + execute: async (input, context) => { + const result = await definition.execute(input, context); + return typeof result === 'string' ? { content: result } : result; + }, + }; + add(info); + } +} +//# sourceMappingURL=tools.js.map \ No newline at end of file diff --git a/dist/src/v2/types.d.ts b/dist/src/v2/types.d.ts new file mode 100644 index 00000000..512bdfdc --- /dev/null +++ b/dist/src/v2/types.d.ts @@ -0,0 +1,86 @@ +import type { Plugin } from '@opencode/plugin'; +import type { V2PermissionDomain } from '../adapters/v2/permissions.ts'; +export interface OpencodePtyOptions { + /** + * Fixed port for the PTY Web UI observer server. + * If not set, defaults to an available ephemeral port or PTY_WEB_PORT env var. + */ + port?: number; + /** + * Hostname to bind the PTY Web UI observer server to. + * Defaults to '::1' (or PTY_WEB_HOSTNAME env var). + */ + hostname?: string; + /** + * Automatically start the PTY Web UI observer server upon plugin initialization. + * Default is false (started on-demand when slash command is executed). + */ + autostart?: boolean; +} +/** + * Command definition accepted by opencode v2's CommandEditor. + * + * NOTE: opencode v2's `command.transform` draft exposes `add(definition)` + * (see `CommandEditor` in @opencode-ai/plugin). There is no `update`/`list`/`get`. + */ +export interface CommandDefinition { + name: string; + description?: string; + execute: (input: unknown) => Promise | void; +} +export interface CommandDraft { + add?(command: CommandDefinition): void; + list?(): readonly unknown[]; + get?(name: string): unknown; + remove?(name: string): void; + [key: string]: unknown; +} +/** + * Tool definition accepted by opencode v2's ToolEditor. + * + * Mirrors `Tool.Info` from @opencode-ai/plugin's promise API: + * { name, input, description, execute(input, context) } + */ +export interface ToolInfoV2 { + name: string; + description: string; + input: unknown; + execute: (input: unknown, context: unknown) => Promise; +} +export interface ToolDraft { + add?(tool: ToolInfoV2): void; + [key: string]: unknown; +} +export interface PluginContextV2 { + readonly options?: OpencodePtyOptions & Record; + /** + * opencode v2's permission domain. `assert` evaluates the session's rules + * (`allow`/`deny`/`ask`, including saved approvals and agent rules) and + * prompts when a rule resolves to `ask`. Optional for hosts pre-2.0.x. + */ + readonly permission?: V2PermissionDomain; + readonly command?: { + transform(callback: (commands: CommandDraft) => Promise | void): Promise | undefined; + reload?(): Promise | void; + }; + readonly tool?: { + transform(callback: (tools: ToolDraft) => Promise | void): Promise | undefined; + reload?(): Promise | void; + }; + /** + * opencode v2's plugin contexts are server clients: the `session` domain is + * how a plugin reads sessions and wakes them with user prompts. Typed from + * `@opencode/plugin` (the V2 SDK) so `ctx.session?.prompt` is checked + * against the real `SessionPromptInput`. Optional because hosts pre-2.0.x + * may not expose it; the setup guards at runtime. + */ + readonly session?: { + readonly prompt: Plugin.Context['session']['prompt']; + }; +} +export interface PluginV2 { + readonly id: string; + readonly setup: (context: PluginContextV2) => Promise | void; +} +export declare function define(plugin: PluginV2): PluginV2; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/types.js b/dist/src/v2/types.js new file mode 100644 index 00000000..80e8daad --- /dev/null +++ b/dist/src/v2/types.js @@ -0,0 +1,4 @@ +export function define(plugin) { + return plugin; +} +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/dist/src/web/server/callback-manager.d.ts b/dist/src/web/server/callback-manager.d.ts new file mode 100644 index 00000000..8844543b --- /dev/null +++ b/dist/src/web/server/callback-manager.d.ts @@ -0,0 +1,8 @@ +export declare class CallbackManager implements Disposable { + private server; + constructor(server: Bun.Server); + private sessionUpdateCallback; + private rawOutputCallback; + [Symbol.dispose](): void; +} +//# sourceMappingURL=callback-manager.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/callback-manager.js b/dist/src/web/server/callback-manager.js new file mode 100644 index 00000000..a59dca61 --- /dev/null +++ b/dist/src/web/server/callback-manager.js @@ -0,0 +1,23 @@ +import { registerRawOutputCallback, registerSessionUpdateCallback, removeRawOutputCallback, removeSessionUpdateCallback, } from '../../plugin/pty/manager'; +export class CallbackManager { + server; + constructor(server) { + this.server = server; + this.server = server; + registerSessionUpdateCallback(this.sessionUpdateCallback); + registerRawOutputCallback(this.rawOutputCallback); + } + sessionUpdateCallback = (session) => { + const message = { type: 'session_update', session }; + this.server.publish('sessions:update', JSON.stringify(message)); + }; + rawOutputCallback = (session, rawData) => { + const message = { type: 'raw_data', session, rawData }; + this.server.publish(`session:${session.id}`, JSON.stringify(message)); + }; + [Symbol.dispose]() { + removeSessionUpdateCallback(this.sessionUpdateCallback); + removeRawOutputCallback(this.rawOutputCallback); + } +} +//# sourceMappingURL=callback-manager.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/health.d.ts b/dist/src/web/server/handlers/health.d.ts new file mode 100644 index 00000000..b5da0d25 --- /dev/null +++ b/dist/src/web/server/handlers/health.d.ts @@ -0,0 +1,3 @@ +import { JsonResponse } from './responses.ts'; +export declare function handleHealth(server: Bun.Server): JsonResponse; +//# sourceMappingURL=health.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/health.js b/dist/src/web/server/handlers/health.js new file mode 100644 index 00000000..31a30de1 --- /dev/null +++ b/dist/src/web/server/handlers/health.js @@ -0,0 +1,33 @@ +import { manager } from "../../../plugin/pty/manager.js"; +import { JsonResponse } from "./responses.js"; +export function handleHealth(server) { + const sessions = manager.list(); + const activeSessions = sessions.filter((s) => s.status === 'running').length; + const totalSessions = sessions.length; + // Calculate response time (rough approximation) + const startTime = Date.now(); + const healthResponse = { + status: 'healthy', + timestamp: new Date().toISOString(), + uptime: process.uptime(), + sessions: { + total: totalSessions, + active: activeSessions, + }, + websocket: { + connections: server.pendingWebSockets, + }, + memory: process.memoryUsage + ? { + rss: process.memoryUsage().rss, + heapUsed: process.memoryUsage().heapUsed, + heapTotal: process.memoryUsage().heapTotal, + } + : undefined, + }; + // Add response time + const responseTime = Date.now() - startTime; + healthResponse.responseTime = responseTime; + return new JsonResponse(healthResponse); +} +//# sourceMappingURL=health.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/responses.d.ts b/dist/src/web/server/handlers/responses.d.ts new file mode 100644 index 00000000..f8a5e0b7 --- /dev/null +++ b/dist/src/web/server/handlers/responses.d.ts @@ -0,0 +1,10 @@ +/** + * Response helper classes for consistent JSON responses + */ +export declare class JsonResponse extends Response { + constructor(data: unknown, status?: number, headers?: Record); +} +export declare class ErrorResponse extends Response { + constructor(message: string, status?: number, headers?: Record); +} +//# sourceMappingURL=responses.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/responses.js b/dist/src/web/server/handlers/responses.js new file mode 100644 index 00000000..8e8655e1 --- /dev/null +++ b/dist/src/web/server/handlers/responses.js @@ -0,0 +1,26 @@ +/** + * Response helper classes for consistent JSON responses + */ +export class JsonResponse extends Response { + constructor(data, status = 200, headers = {}) { + super(JSON.stringify(data), { + status, + headers: { + 'Content-Type': 'application/json', + ...headers, + }, + }); + } +} +export class ErrorResponse extends Response { + constructor(message, status = 500, headers = {}) { + super(JSON.stringify({ error: message }), { + status, + headers: { + 'Content-Type': 'application/json', + ...headers, + }, + }); + } +} +//# sourceMappingURL=responses.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/sessions.d.ts b/dist/src/web/server/handlers/sessions.d.ts new file mode 100644 index 00000000..525f4343 --- /dev/null +++ b/dist/src/web/server/handlers/sessions.d.ts @@ -0,0 +1,13 @@ +import type { BunRequest } from 'bun'; +import { JsonResponse, ErrorResponse } from './responses.ts'; +import type { routes } from '../../shared/routes.ts'; +export declare function getSessions(): JsonResponse; +export declare function createSession(req: Request): Promise; +export declare function clearSessions(): JsonResponse; +export declare function getSession(req: BunRequest): JsonResponse | ErrorResponse; +export declare function sendInput(req: BunRequest): Promise; +export declare function cleanupSession(req: BunRequest): JsonResponse | ErrorResponse; +export declare function killSession(req: BunRequest): JsonResponse | ErrorResponse; +export declare function getRawBuffer(req: BunRequest): JsonResponse | ErrorResponse; +export declare function getPlainBuffer(req: BunRequest): JsonResponse | ErrorResponse; +//# sourceMappingURL=sessions.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/sessions.js b/dist/src/web/server/handlers/sessions.js new file mode 100644 index 00000000..263e44fe --- /dev/null +++ b/dist/src/web/server/handlers/sessions.js @@ -0,0 +1,99 @@ +import { manager } from "../../../plugin/pty/manager.js"; +import { checkCommandPermission, checkWorkdirPermission } from "../../../plugin/pty/permissions.js"; +import { JsonResponse, ErrorResponse } from "./responses.js"; +export function getSessions() { + const sessions = manager.list(); + return new JsonResponse(sessions); +} +export async function createSession(req) { + let body; + try { + body = (await req.json()); + } + catch { + return new ErrorResponse('Invalid JSON in request body', 400); + } + if (!body.command || typeof body.command !== 'string' || body.command.trim() === '') { + return new ErrorResponse('Command is required', 400); + } + try { + const args = body.args || []; + await checkCommandPermission(body.command, args); + if (body.workdir) { + await checkWorkdirPermission(body.workdir); + } + const session = manager.spawn({ + command: body.command, + args, + title: body.description, + description: body.description, + workdir: body.workdir, + timeoutSeconds: body.timeoutSeconds, + parentSessionId: 'web-api', + }); + return new JsonResponse(session); + } + catch (error) { + return new ErrorResponse(error instanceof Error ? error.message : 'Failed to create session', 400); + } +} +export function clearSessions() { + manager.clearAllSessions(); + return new JsonResponse({ success: true }); +} +export function getSession(req) { + const session = manager.get(req.params.id); + if (!session) { + return new ErrorResponse('Session not found', 404); + } + return new JsonResponse(session); +} +export async function sendInput(req) { + try { + const body = (await req.json()); + if (!body.data || typeof body.data !== 'string') { + return new ErrorResponse('Data field is required and must be a string', 400); + } + const success = manager.write(req.params.id, body.data); + if (!success) { + return new ErrorResponse('Failed to write to session', 400); + } + return new JsonResponse({ success: true }); + } + catch { + return new ErrorResponse('Invalid JSON in request body', 400); + } +} +export function cleanupSession(req) { + const success = manager.kill(req.params.id, true); + if (!success) { + return new ErrorResponse('Failed to kill session', 400); + } + return new JsonResponse({ success: true }); +} +export function killSession(req) { + const success = manager.kill(req.params.id); + if (!success) { + return new ErrorResponse('Failed to kill session', 400); + } + return new JsonResponse({ success: true }); +} +export function getRawBuffer(req) { + const bufferData = manager.getRawBuffer(req.params.id); + if (!bufferData) { + return new ErrorResponse('Session not found', 404); + } + return new JsonResponse(bufferData); +} +export function getPlainBuffer(req) { + const bufferData = manager.getRawBuffer(req.params.id); + if (!bufferData) { + return new ErrorResponse('Session not found', 404); + } + const plainText = Bun.stripANSI(bufferData.raw); + return new JsonResponse({ + plain: plainText, + byteLength: new TextEncoder().encode(plainText).length, + }); +} +//# sourceMappingURL=sessions.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/static.d.ts b/dist/src/web/server/handlers/static.d.ts new file mode 100644 index 00000000..35c8e290 --- /dev/null +++ b/dist/src/web/server/handlers/static.d.ts @@ -0,0 +1,2 @@ +export declare function buildStaticRoutes(): Promise>; +//# sourceMappingURL=static.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/static.js b/dist/src/web/server/handlers/static.js new file mode 100644 index 00000000..0cfc4548 --- /dev/null +++ b/dist/src/web/server/handlers/static.js @@ -0,0 +1,38 @@ +import { readdirSync, statSync } from 'node:fs'; +import { extname, join, resolve } from 'node:path'; +import { ASSET_CONTENT_TYPES } from "../../shared/constants.js"; +// ----- MODULE-SCOPE CONSTANTS ----- +// Resolve project root regardless of whether we're running from source or dist/ +const MODULE_DIR = resolve(import.meta.dir, '../../../..'); +const PROJECT_ROOT = MODULE_DIR.replace(/[\\/]dist$/, ''); +const SECURITY_HEADERS = { + 'X-Content-Type-Options': 'nosniff', + 'X-Frame-Options': 'DENY', + 'X-XSS-Protection': '1; mode=block', + 'Referrer-Policy': 'strict-origin-when-cross-origin', + 'Content-Security-Policy': "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';", +}; +const STATIC_DIR = join(PROJECT_ROOT, 'dist/web'); +export async function buildStaticRoutes() { + const routes = {}; + const files = readdirSync(STATIC_DIR, { recursive: true }); + for (const file of files) { + if (typeof file === 'string' && !statSync(join(STATIC_DIR, file)).isDirectory()) { + const ext = extname(file); + const routeKey = `/${file.replace(/\\/g, '/')}`; // e.g., /assets/js/bundle.js + const fullPath = join(STATIC_DIR, file); + const fileObj = Bun.file(fullPath); + const contentType = fileObj.type || ASSET_CONTENT_TYPES[ext] || 'application/octet-stream'; + // Buffer all files in memory + routes[routeKey] = new Response(await fileObj.bytes(), { + headers: { + 'Content-Type': contentType, + 'Cache-Control': 'public, max-age=31536000, immutable', + ...SECURITY_HEADERS, + }, + }); + } + } + return routes; +} +//# sourceMappingURL=static.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/upgrade.d.ts b/dist/src/web/server/handlers/upgrade.d.ts new file mode 100644 index 00000000..213ed9df --- /dev/null +++ b/dist/src/web/server/handlers/upgrade.d.ts @@ -0,0 +1,2 @@ +export declare function handleUpgrade(server: Bun.Server, req: Request): Response | undefined; +//# sourceMappingURL=upgrade.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/upgrade.js b/dist/src/web/server/handlers/upgrade.js new file mode 100644 index 00000000..3cdb07ff --- /dev/null +++ b/dist/src/web/server/handlers/upgrade.js @@ -0,0 +1,11 @@ +export function handleUpgrade(server, req) { + if (!(req.headers.get('upgrade') === 'websocket')) { + return new Response('WebSocket endpoint - use WebSocket upgrade', { status: 426 }); + } + const success = server.upgrade(req); + if (success) { + return undefined; // Upgrade succeeded, Bun sends 101 automatically + } + return new Response('WebSocket upgrade failed', { status: 400 }); +} +//# sourceMappingURL=upgrade.js.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/websocket.d.ts b/dist/src/web/server/handlers/websocket.d.ts new file mode 100644 index 00000000..d3f5e8ca --- /dev/null +++ b/dist/src/web/server/handlers/websocket.d.ts @@ -0,0 +1,3 @@ +import type { ServerWebSocket } from 'bun'; +export declare function handleWebSocketMessage(ws: ServerWebSocket, data: string | Buffer): void; +//# sourceMappingURL=websocket.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/handlers/websocket.js b/dist/src/web/server/handlers/websocket.js new file mode 100644 index 00000000..cae2e10b --- /dev/null +++ b/dist/src/web/server/handlers/websocket.js @@ -0,0 +1,133 @@ +import { manager } from '../../../plugin/pty/manager'; +import { checkCommandPermission, checkWorkdirPermission } from '../../../plugin/pty/permissions'; +import { CustomError, } from '../../shared/types'; +class WebSocketHandler { + sendSessionList(ws) { + const sessions = manager.list(); + const message = { type: 'session_list', sessions }; + ws.send(JSON.stringify(message)); + } + handleSubscribe(ws, message) { + const session = manager.get(message.sessionId); + if (!session) { + const error = { + type: 'error', + error: new CustomError(`Session ${message.sessionId} not found`), + }; + ws.send(JSON.stringify(error)); + } + else { + ws.subscribe(`session:${message.sessionId}`); + const response = { + type: 'subscribed', + sessionId: message.sessionId, + }; + ws.send(JSON.stringify(response)); + } + } + handleUnsubscribe(ws, message) { + const topic = `session:${message.sessionId}`; + ws.unsubscribe(topic); + const response = { + type: 'unsubscribed', + sessionId: message.sessionId, + }; + ws.send(JSON.stringify(response)); + } + handleSessionListRequest(ws, _message) { + this.sendSessionList(ws); + } + handleUnknownMessage(ws, message) { + const error = { + type: 'error', + error: new CustomError(`Unknown message type ${message.type}`), + }; + ws.send(JSON.stringify(error)); + } + handleWebSocketMessage(ws, data) { + if (typeof data !== 'string') { + const error = { + type: 'error', + error: new CustomError('Binary messages are not supported yet. File an issue.'), + }; + ws.send(JSON.stringify(error)); + return; + } + try { + const message = JSON.parse(data); + switch (message.type) { + case 'subscribe': + this.handleSubscribe(ws, message); + break; + case 'unsubscribe': + this.handleUnsubscribe(ws, message); + break; + case 'session_list': + this.handleSessionListRequest(ws, message); + break; + case 'spawn': + void this.handleSpawn(ws, message); + break; + case 'input': + this.handleInput(message); + break; + case 'readRaw': + this.handleReadRaw(ws, message); + break; + default: + this.handleUnknownMessage(ws, message); + } + } + catch (err) { + const error = { + type: 'error', + error: new CustomError(Bun.inspect(err)), + }; + ws.send(JSON.stringify(error)); + } + } + async handleSpawn(ws, message) { + try { + await checkCommandPermission(message.command, message.args ?? []); + if (message.workdir) { + await checkWorkdirPermission(message.workdir); + } + const sessionInfo = manager.spawn(message); + if (message.subscribe) { + this.handleSubscribe(ws, { type: 'subscribe', sessionId: sessionInfo.id }); + } + } + catch (err) { + const error = { + type: 'error', + error: new CustomError(err instanceof Error ? err.message : Bun.inspect(err)), + }; + ws.send(JSON.stringify(error)); + } + } + handleInput(message) { + manager.write(message.sessionId, message.data); + } + handleReadRaw(ws, message) { + const rawData = manager.getRawBuffer(message.sessionId); + if (!rawData) { + const error = { + type: 'error', + error: new CustomError(`Session ${message.sessionId} not found`), + }; + ws.send(JSON.stringify(error)); + return; + } + const response = { + type: 'readRawResponse', + sessionId: message.sessionId, + rawData: rawData.raw, + }; + ws.send(JSON.stringify(response)); + } +} +export function handleWebSocketMessage(ws, data) { + const handler = new WebSocketHandler(); + handler.handleWebSocketMessage(ws, data); +} +//# sourceMappingURL=websocket.js.map \ No newline at end of file diff --git a/dist/src/web/server/server.d.ts b/dist/src/web/server/server.d.ts new file mode 100644 index 00000000..9272f880 --- /dev/null +++ b/dist/src/web/server/server.d.ts @@ -0,0 +1,22 @@ +import type { Server } from 'bun'; +export interface ServerOptions { + port?: number; + hostname?: string; + /** The project this server belongs to — published so the TUI can find it. */ + directory?: string; + worktree?: string; +} +export declare class PTYServer implements Disposable { + readonly server: Server; + private readonly staticRoutes; + private readonly stack; + private readonly options?; + /** The published origin record, removed when the server is disposed. */ + private readonly originFile; + private constructor(); + [Symbol.dispose](): void; + static createServer(options?: ServerOptions): Promise; + private startWebServer; + getWsUrl(): string; +} +//# sourceMappingURL=server.d.ts.map \ No newline at end of file diff --git a/dist/src/web/server/server.js b/dist/src/web/server/server.js new file mode 100644 index 00000000..b503bda4 --- /dev/null +++ b/dist/src/web/server/server.js @@ -0,0 +1,100 @@ +import { routes } from "../shared/routes.js"; +import { removeOrigin, writeOrigin } from "../../shared/runtime.js"; +import { CallbackManager } from "./callback-manager.js"; +import { handleHealth } from "./handlers/health.js"; +import { cleanupSession, clearSessions, createSession, getPlainBuffer, getRawBuffer, getSession, getSessions, killSession, sendInput, } from "./handlers/sessions.js"; +import { buildStaticRoutes } from "./handlers/static.js"; +import { handleUpgrade } from "./handlers/upgrade.js"; +import { handleWebSocketMessage } from "./handlers/websocket.js"; +export class PTYServer { + server; + staticRoutes; + stack = new DisposableStack(); + options; + /** The published origin record, removed when the server is disposed. */ + originFile; + constructor(staticRoutes, options) { + this.staticRoutes = staticRoutes; + this.options = options; + this.server = this.startWebServer(); + // Publish the bound address, not the requested one: a wildcard bind or a + // normalised hostname would otherwise be recorded as something that cannot + // be connected to. Bun's types mark both as optional, so they are narrowed + // rather than asserted — a missing one just means nothing is published. + const { hostname, port } = this.server; + this.originFile = + typeof hostname === 'string' && typeof port === 'number' + ? writeOrigin({ + directory: options?.directory, + worktree: options?.worktree, + hostname, + port, + }) + : null; + this.stack.use(this.server); + this.stack.use(new CallbackManager(this.server)); + this.stack.use({ [Symbol.dispose]: () => removeOrigin(this.originFile) }); + } + [Symbol.dispose]() { + this.stack.dispose(); + } + static async createServer(options) { + const staticRoutes = await buildStaticRoutes(); + return new PTYServer(staticRoutes, options); + } + startWebServer() { + const port = this.options?.port ?? (process.env.PTY_WEB_PORT ? parseInt(process.env.PTY_WEB_PORT, 10) : 0); + const hostname = this.options?.hostname ?? process.env.PTY_WEB_HOSTNAME ?? '::1'; + return Bun.serve({ + port, + hostname, + routes: { + ...this.staticRoutes, + [routes.websocket.path]: (req) => handleUpgrade(this.server, req), + [routes.health.path]: () => handleHealth(this.server), + [routes.sessions.path]: { + GET: getSessions, + POST: createSession, + DELETE: clearSessions, + }, + [routes.session.path]: { + GET: getSession, + DELETE: killSession, + }, + [routes.session.cleanup.path]: { + DELETE: cleanupSession, + }, + [routes.session.input.path]: { + POST: sendInput, + }, + [routes.session.buffer.raw.path]: { + GET: getRawBuffer, + }, + [routes.session.buffer.plain.path]: { + GET: getPlainBuffer, + }, + }, + websocket: { + data: undefined, + perMessageDeflate: true, + // Bun's `subscribe` returns a boolean; the websocket `open` handler is + // typed `void | Promise`, so the call is wrapped to keep the + // build green instead of relying on emit-on-error. + open: (ws) => { + ws.subscribe('sessions:update'); + }, + message: handleWebSocketMessage, + close: (ws) => { + ws.subscriptions.forEach((topic) => { + ws.unsubscribe(topic); + }); + }, + }, + fetch: () => new Response(null, { status: 302, headers: { Location: '/index.html' } }), + }); + } + getWsUrl() { + return `${this.server.url.origin.replace(/^http/, 'ws')}${routes.websocket.path}`; + } +} +//# sourceMappingURL=server.js.map \ No newline at end of file diff --git a/dist/src/web/shared/api-client.d.ts b/dist/src/web/shared/api-client.d.ts new file mode 100644 index 00000000..744bf736 --- /dev/null +++ b/dist/src/web/shared/api-client.d.ts @@ -0,0 +1,132 @@ +import type { HealthResponse, PTYSessionInfo } from 'opencode-pty/web/shared/types'; +type ExtractParams = T extends `${infer _}:${infer Param}/${infer Rest}` ? { + [K in Param | keyof ExtractParams]: string | number; +} : T extends `${infer _}:${infer Param}` ? { + [K in Param]: string | number; +} : Record; +type AllowedMethods = T extends { + methods: readonly string[]; +} ? T['methods'][number] : never; +type ApiFetchOptions> = { + method: Method; + params?: ExtractParams; + body?: Method extends 'POST' ? unknown : never; + baseUrl?: string; +}; +export declare function apiFetch>(route: Route, options: ApiFetchOptions): Promise; +export declare function apiFetchJson, T = unknown>(route: Route, options: ApiFetchOptions): Promise; +export declare function createApiClient(baseUrl: string): { + readonly sessions: { + readonly list: () => Promise; + readonly create: (body: { + command: string; + args?: string[]; + description?: string; + workdir?: string; + timeoutSeconds?: number; + }) => Promise; + readonly clear: () => Promise<{ + success: boolean; + }>; + }; + readonly session: { + readonly get: (params: { + id: string; + }) => Promise; + readonly kill: (params: { + id: string; + }) => Promise<{ + success: boolean; + }>; + readonly input: (params: { + id: string; + }, body: { + data: string; + }) => Promise<{ + success: boolean; + }>; + readonly cleanup: (params: { + id: string; + }) => Promise<{ + success: boolean; + }>; + readonly buffer: { + readonly raw: (params: { + id: string; + }) => Promise<{ + raw: string; + byteLength: number; + }>; + readonly plain: (params: { + id: string; + }) => Promise<{ + plain: string; + byteLength: number; + }>; + }; + }; + readonly health: () => Promise; +}; +export declare const api: { + readonly sessions: { + readonly list: () => Promise; + readonly create: (body: { + command: string; + args?: string[]; + description?: string; + workdir?: string; + timeoutSeconds?: number; + }) => Promise; + readonly clear: () => Promise<{ + success: boolean; + }>; + }; + readonly session: { + readonly get: (params: { + id: string; + }) => Promise; + readonly kill: (params: { + id: string; + }) => Promise<{ + success: boolean; + }>; + readonly input: (params: { + id: string; + }, body: { + data: string; + }) => Promise<{ + success: boolean; + }>; + readonly cleanup: (params: { + id: string; + }) => Promise<{ + success: boolean; + }>; + readonly buffer: { + readonly raw: (params: { + id: string; + }) => Promise<{ + raw: string; + byteLength: number; + }>; + readonly plain: (params: { + id: string; + }) => Promise<{ + plain: string; + byteLength: number; + }>; + }; + }; + readonly health: () => Promise; +}; +export {}; +//# sourceMappingURL=api-client.d.ts.map \ No newline at end of file diff --git a/dist/src/web/shared/api-client.js b/dist/src/web/shared/api-client.js new file mode 100644 index 00000000..1aebb5d2 --- /dev/null +++ b/dist/src/web/shared/api-client.js @@ -0,0 +1,79 @@ +// Type-safe API client for making HTTP requests with compile-time validation +// Uses the structured routes to ensure correct methods and parameters +import { routes } from './routes'; +// Build URL by replacing path parameters +function buildUrl(path, params) { + if (!params) + return path; + let result = path; + for (const [key, value] of Object.entries(params)) { + result = result.replace(`:${key}`, String(value)); + } + return result; +} +// Type-safe fetch function +export async function apiFetch(route, options) { + const baseUrl = options.baseUrl || `${location.protocol}//${location.host}`; + const url = baseUrl + buildUrl(route.path, options.params); + const fetchOptions = { + method: options.method, + headers: { 'Content-Type': 'application/json' }, + }; + if (options.body && options.method === 'POST') { + fetchOptions.body = JSON.stringify(options.body); + } + return fetch(url, fetchOptions); +} +// Type-safe JSON fetch with response parsing +export async function apiFetchJson(route, options) { + const response = await apiFetch(route, options); + if (!response.ok) { + throw new Error(`API error: ${response.status} ${response.statusText}`); + } + return response.json(); +} +// Factory function to create API client with fixed baseUrl (for tests) +export function createApiClient(baseUrl) { + return { + sessions: { + list: () => apiFetchJson(routes.sessions, { + method: 'GET', + baseUrl, + }), + create: (body) => apiFetchJson(routes.sessions, { + method: 'POST', + body, + baseUrl, + }), + clear: () => apiFetchJson(routes.sessions, { + method: 'DELETE', + baseUrl, + }), + }, + session: { + get: (params) => apiFetchJson(routes.session, { + method: 'GET', + params, + baseUrl, + }), + kill: (params) => apiFetchJson(routes.session, { + method: 'DELETE', + params, + baseUrl, + }), + input: (params, body) => apiFetchJson(routes.session.input, { method: 'POST', params, body, baseUrl }), + cleanup: (params) => apiFetchJson(routes.session.cleanup, { method: 'DELETE', params, baseUrl }), + buffer: { + raw: (params) => apiFetchJson(routes.session.buffer.raw, { method: 'GET', params, baseUrl }), + plain: (params) => apiFetchJson(routes.session.buffer.plain, { method: 'GET', params, baseUrl }), + }, + }, + health: () => apiFetchJson(routes.health, { + method: 'GET', + baseUrl, + }), + }; +} +// Convenience API for browser use (auto-detects baseUrl from location) +export const api = createApiClient(''); +//# sourceMappingURL=api-client.js.map \ No newline at end of file diff --git a/dist/src/web/shared/constants.d.ts b/dist/src/web/shared/constants.d.ts new file mode 100644 index 00000000..447f6601 --- /dev/null +++ b/dist/src/web/shared/constants.d.ts @@ -0,0 +1,11 @@ +export declare const WEBSOCKET_PING_INTERVAL = 30000; +export declare const WEBSOCKET_RECONNECT_DELAY = 100; +export declare const RETRY_DELAY = 500; +export declare const SESSION_LOAD_TIMEOUT = 2000; +export declare const OUTPUT_LOAD_TIMEOUT = 5000; +export declare const SKIP_AUTOSELECT_KEY = "skip-autoselect"; +export declare const TEST_SERVER_PORT_BASE = 8765; +export declare const TEST_TIMEOUT_BUFFER = 1000; +export declare const TEST_SESSION_CLEANUP_DELAY = 500; +export declare const ASSET_CONTENT_TYPES: Record; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/src/web/shared/constants.js b/dist/src/web/shared/constants.js new file mode 100644 index 00000000..5362e0df --- /dev/null +++ b/dist/src/web/shared/constants.js @@ -0,0 +1,23 @@ +// Web-specific constants for the web server and related components +// WebSocket and session related constants +export const WEBSOCKET_PING_INTERVAL = 30000; +export const WEBSOCKET_RECONNECT_DELAY = 100; +export const RETRY_DELAY = 500; +export const SESSION_LOAD_TIMEOUT = 2000; +export const OUTPUT_LOAD_TIMEOUT = 5000; +export const SKIP_AUTOSELECT_KEY = 'skip-autoselect'; +// Test-related constants +export const TEST_SERVER_PORT_BASE = 8765; +export const TEST_TIMEOUT_BUFFER = 1000; +export const TEST_SESSION_CLEANUP_DELAY = 500; +// Asset and file serving constants +export const ASSET_CONTENT_TYPES = { + '.js': 'application/javascript', + '.css': 'text/css', + '.json': 'application/json', + '.html': 'text/html', + '.png': 'image/png', + '.jpg': 'image/jpeg', + '.svg': 'image/svg+xml', +}; +//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/dist/src/web/shared/route-builder.d.ts b/dist/src/web/shared/route-builder.d.ts new file mode 100644 index 00000000..0025321c --- /dev/null +++ b/dist/src/web/shared/route-builder.d.ts @@ -0,0 +1,30 @@ +export declare const RouteBuilder: { + websocket(): string; + health(): string; + sessions: { + list: () => string; + create: () => string; + clear: () => string; + }; + session: { + get: (params: { + id: string | number; + }) => string; + kill: (params: { + id: string | number; + }) => string; + cleanup: (params: { + id: string | number; + }) => string; + input: (params: { + id: string | number; + }) => string; + rawBuffer: (params: { + id: string | number; + }) => string; + plainBuffer: (params: { + id: string | number; + }) => string; + }; +}; +//# sourceMappingURL=route-builder.d.ts.map \ No newline at end of file diff --git a/dist/src/web/shared/route-builder.js b/dist/src/web/shared/route-builder.js new file mode 100644 index 00000000..0f95c2cb --- /dev/null +++ b/dist/src/web/shared/route-builder.js @@ -0,0 +1,42 @@ +// Type-safe URL builder using constants and manual parameter validation +// Provides compile-time type checking for route parameters +// Simple URL builder that validates parameters are present +function buildUrl(template, params) { + let result = template; + const requiredParams = template.match(/:(\w+)/g)?.map((p) => p.slice(1)) || []; + for (const param of requiredParams) { + if (!(param in params)) { + throw new Error(`Missing required parameter '${param}' for route '${template}'`); + } + result = result.replace(`:${param}`, String(params[param])); + } + return result; +} +// Import route templates from shared constants +import { routes } from './routes'; +export const RouteBuilder = { + // WebSocket routes + websocket() { + return routes.websocket.path; + }, + // Health check routes + health() { + return routes.health.path; + }, + // Session collection routes + sessions: { + list: () => routes.sessions.path, + create: () => routes.sessions.path, + clear: () => routes.sessions.path, + }, + // Individual session routes with type-safe parameter building + session: { + get: (params) => buildUrl(routes.session.path, params), + kill: (params) => buildUrl(routes.session.path, params), + cleanup: (params) => buildUrl(routes.session.cleanup.path, params), + input: (params) => buildUrl(routes.session.input.path, params), + rawBuffer: (params) => buildUrl(routes.session.buffer.raw.path, params), + plainBuffer: (params) => buildUrl(routes.session.buffer.plain.path, params), + }, +}; +//# sourceMappingURL=route-builder.js.map \ No newline at end of file diff --git a/dist/src/web/shared/routes.d.ts b/dist/src/web/shared/routes.d.ts new file mode 100644 index 00000000..e11e61fb --- /dev/null +++ b/dist/src/web/shared/routes.d.ts @@ -0,0 +1,37 @@ +export declare const routes: { + readonly websocket: { + readonly path: "/ws"; + readonly methods: readonly ["GET"]; + }; + readonly health: { + readonly path: "/health"; + readonly methods: readonly ["GET"]; + }; + readonly sessions: { + readonly path: "/api/sessions"; + readonly methods: readonly ["GET", "POST", "DELETE"]; + }; + readonly session: { + readonly path: "/api/sessions/:id"; + readonly methods: readonly ["GET", "DELETE"]; + readonly input: { + readonly path: "/api/sessions/:id/input"; + readonly methods: readonly ["POST"]; + }; + readonly cleanup: { + readonly path: "/api/sessions/:id/cleanup"; + readonly methods: readonly ["DELETE"]; + }; + readonly buffer: { + readonly raw: { + readonly path: "/api/sessions/:id/buffer/raw"; + readonly methods: readonly ["GET"]; + }; + readonly plain: { + readonly path: "/api/sessions/:id/buffer/plain"; + readonly methods: readonly ["GET"]; + }; + }; + }; +}; +//# sourceMappingURL=routes.d.ts.map \ No newline at end of file diff --git a/dist/src/web/shared/routes.js b/dist/src/web/shared/routes.js new file mode 100644 index 00000000..f37729e1 --- /dev/null +++ b/dist/src/web/shared/routes.js @@ -0,0 +1,39 @@ +// Structured route definitions with paths, methods, and type information +// Used by both server and client for type-safe API interactions +export const routes = { + websocket: { + path: '/ws', + methods: ['GET'], + }, + health: { + path: '/health', + methods: ['GET'], + }, + sessions: { + path: '/api/sessions', + methods: ['GET', 'POST', 'DELETE'], + }, + session: { + path: '/api/sessions/:id', + methods: ['GET', 'DELETE'], + input: { + path: '/api/sessions/:id/input', + methods: ['POST'], + }, + cleanup: { + path: '/api/sessions/:id/cleanup', + methods: ['DELETE'], + }, + buffer: { + raw: { + path: '/api/sessions/:id/buffer/raw', + methods: ['GET'], + }, + plain: { + path: '/api/sessions/:id/buffer/plain', + methods: ['GET'], + }, + }, + }, +}; +//# sourceMappingURL=routes.js.map \ No newline at end of file diff --git a/dist/src/web/shared/types.d.ts b/dist/src/web/shared/types.d.ts new file mode 100644 index 00000000..6689bf0e --- /dev/null +++ b/dist/src/web/shared/types.d.ts @@ -0,0 +1,87 @@ +import type { PTYSessionInfo, PTYStatus, SpawnOptions } from '../../plugin/pty/types'; +export type { PTYSessionInfo, PTYStatus, HealthResponse }; +export declare class CustomError extends Error { + name: string; + prettyPrintColor: string; + prettyPrintNoColor: string; + toJSON(): Record; +} +export interface WSMessageClient { + type: 'subscribe' | 'unsubscribe' | 'session_list' | 'spawn' | 'input' | 'readRaw'; +} +export interface WSMessageClientSubscribeSession extends WSMessageClient { + type: 'subscribe'; + sessionId: string; +} +export interface WSMessageClientUnsubscribeSession extends WSMessageClient { + type: 'unsubscribe'; + sessionId: string; +} +export interface WSMessageClientSessionList extends WSMessageClient { + type: 'session_list'; +} +export interface WSMessageClientSpawnSession extends WSMessageClient, SpawnOptions { + type: 'spawn'; + subscribe?: boolean; +} +export interface WSMessageClientInput extends WSMessageClient { + type: 'input'; + sessionId: string; + data: string; +} +export interface WSMessageClientReadRaw extends WSMessageClient { + type: 'readRaw'; + sessionId: string; +} +export interface WSMessageServer { + type: 'subscribed' | 'unsubscribed' | 'raw_data' | 'readRawResponse' | 'session_list' | 'session_update' | 'error'; +} +export interface WSMessageServerSubscribedSession extends WSMessageServer { + type: 'subscribed'; + sessionId: string; +} +export interface WSMessageServerUnsubscribedSession extends WSMessageServer { + type: 'unsubscribed'; + sessionId: string; +} +export interface WSMessageServerRawData extends WSMessageServer { + type: 'raw_data'; + session: PTYSessionInfo; + rawData: string; +} +export interface WSMessageServerReadRawResponse extends WSMessageServer { + type: 'readRawResponse'; + sessionId: string; + rawData: string; +} +export interface WSMessageServerSessionList extends WSMessageServer { + type: 'session_list'; + sessions: PTYSessionInfo[]; +} +export interface WSMessageServerSessionUpdate extends WSMessageServer { + type: 'session_update'; + session: PTYSessionInfo; +} +export interface WSMessageServerError extends WSMessageServer { + type: 'error'; + error: CustomError; +} +interface HealthResponse { + status: 'healthy'; + timestamp: string; + uptime: number; + sessions: { + total: number; + active: number; + }; + websocket: { + connections: number; + }; + memory?: { + rss: number; + heapUsed: number; + heapTotal: number; + }; + responseTime?: number; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/src/web/shared/types.js b/dist/src/web/shared/types.js new file mode 100644 index 00000000..14c11959 --- /dev/null +++ b/dist/src/web/shared/types.js @@ -0,0 +1,15 @@ +export class CustomError extends Error { + name = 'CustomError'; + prettyPrintColor = Bun.inspect(this, { colors: true, depth: 10 }); + prettyPrintNoColor = Bun.stripANSI(this.prettyPrintColor); + toJSON() { + const obj = {}; + // Include all own properties, including non-enumerable ones like 'message' and 'stack' + // prettyPrintColor and prettyPrintNoColor are now included automatically as strings + Object.getOwnPropertyNames(this).forEach((key) => { + obj[key] = this[key]; + }); + return obj; + } +} +//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..db071d61 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6773 @@ +{ + "name": "opencode-pty", + "version": "0.4.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "opencode-pty", + "version": "0.4.0", + "license": "MIT", + "dependencies": { + "@opencode-ai/plugin": "^1.18", + "@opencode-ai/sdk": "^1.18", + "@opencode/plugin": "^2.0.10", + "bun-pty": "^0.4.10", + "open": "^11.0.0" + }, + "devDependencies": { + "@biomejs/biome": "2.3.13", + "@opentui/core": "^0.8.0", + "@opentui/keymap": "0.4.5", + "@opentui/solid": "0.4.5", + "@playwright/test": "1.57.0", + "@types/bun": "^1.3.8", + "@types/jsdom": "^27.0.0", + "@types/react": "^18.3.27", + "@types/react-dom": "^18.3.7", + "@vitejs/plugin-react": "^4.7.0", + "@xterm/addon-fit": "^0.11.0", + "@xterm/addon-serialize": "^0.14.0", + "@xterm/xterm": "^6.0.0", + "happy-dom": "^20.5.0", + "jsdom": "^27.4.0", + "playwright-core": "1.57.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "solid-js": "^1.9.12", + "typescript": "^5.9.3", + "vite": "^7.3.1" + }, + "engines": { + "opencode": ">=1.3.13" + }, + "peerDependencies": { + "@opentui/solid": ">=0.4.5", + "solid-js": "^1.9", + "typescript": "^5" + }, + "peerDependenciesMeta": { + "@opentui/solid": { + "optional": true + }, + "solid-js": { + "optional": true + } + } + }, + "node_modules/@acemir/cssom": { + "version": "0.9.32", + "resolved": "https://registry.npmjs.org/@acemir/cssom/-/cssom-0.9.32.tgz", + "integrity": "sha512-OijrAUu7rrJhSIoHNg6LMPS5e344nwUHA+1EFYYjrh64D+GmytUsfBQjci45TjT+rd5Spsp8B5xsZDT+TgyXXQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ai-sdk/provider": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@ai-sdk/provider/-/provider-3.0.8.tgz", + "integrity": "sha512-oGMAgGoQdBXbZqNG0Ze56CHjDZ1IDYOwGYxYjO5KLSlz5HiNQ9udIXsPZ61VWaHGZ5XW/jyjmr6t2xz2jGVwbQ==", + "license": "Apache-2.0", + "dependencies": { + "json-schema": "^0.4.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@asamuzakjp/css-color": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-4.1.2.tgz", + "integrity": "sha512-NfBUvBaYgKIuq6E/RBLY1m0IohzNHAYyaJGuTK79Z23uNwmz2jl1mPsC5ZxCCxylinKhT1Amn5oNTlx1wN8cQg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@csstools/css-calc": "^3.0.0", + "@csstools/css-color-parser": "^4.0.1", + "@csstools/css-parser-algorithms": "^4.0.0", + "@csstools/css-tokenizer": "^4.0.0", + "lru-cache": "^11.2.5" + } + }, + "node_modules/@asamuzakjp/dom-selector": { + "version": "6.8.1", + "resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-6.8.1.tgz", + "integrity": "sha512-MvRz1nCqW0fsy8Qz4dnLIvhOlMzqDVBabZx6lH+YywFDdjXhMY37SmpV1XFX3JzG5GWHn63j6HX6QPr3lZXHvQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/nwsapi": "^2.3.9", + "bidi-js": "^1.0.3", + "css-tree": "^3.1.0", + "is-potential-custom-element-name": "^1.0.1", + "lru-cache": "^11.2.6" + } + }, + "node_modules/@asamuzakjp/nwsapi": { + "version": "2.3.9", + "resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz", + "integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@aws-crypto/crc32": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz", + "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz", + "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-js": "^5.2.0", + "@aws-crypto/supports-web-crypto": "^5.2.0", + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "@aws-sdk/util-locate-window": "^3.0.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/sha256-js": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz", + "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/util": "^5.2.0", + "@aws-sdk/types": "^3.222.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@aws-crypto/supports-web-crypto": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz", + "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz", + "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.222.0", + "@smithy/util-utf8": "^2.0.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz", + "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz", + "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^2.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@aws-sdk/client-cognito-identity": { + "version": "3.1057.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-cognito-identity/-/client-cognito-identity-3.1057.0.tgz", + "integrity": "sha512-5MliYkp2u0+2arTp5fZIaxl+xmm90LEKv/VeSxhfNQW4t0fvWJrNO429/jchWQenNoDRrOGE59VfbuZUfwFujg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "^3.974.15", + "@aws-sdk/credential-provider-node": "^3.972.47", + "@aws-sdk/types": "^3.973.9", + "@smithy/core": "^3.24.5", + "@smithy/fetch-http-handler": "^5.4.5", + "@smithy/node-http-handler": "^4.7.5", + "@smithy/types": "^4.14.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/core": { + "version": "3.979.1", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.979.1.tgz", + "integrity": "sha512-ayOlV1VhLNMiq8PW9ZkVobG4gkldnUoHjG69yy2b8j+VYFlhz/uAL7ZdYQAoQ+eShtGUdNDnnG5rxDg6yUJrOg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.975.0", + "@aws-sdk/xml-builder": "^3.972.42", + "@aws/lambda-invoke-store": "^0.3.0", + "@smithy/core": "^3.38.0", + "@smithy/signature-v4": "^5.7.5", + "@smithy/types": "^4.19.0", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-cognito-identity": { + "version": "3.972.79", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.972.79.tgz", + "integrity": "sha512-T64OD+bN7izbhAuPVu+FATwEvki3IsjXICjKrNlhuIijUXuWMfmMU5irN4ytQq2d31Z3rJp5L8sEjZ5L8wMAmg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-env": { + "version": "3.972.80", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.972.80.tgz", + "integrity": "sha512-uO5TiSvb6j1w9RTe5z28OaOmsrOxVQUPaC5+wZl50RfOXcrYD/KgnS8I9lfyGXc7sGbkCopK6VnhNIAoLqfewQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-http": { + "version": "3.972.82", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.972.82.tgz", + "integrity": "sha512-vQzlDHlC24Yz42p+rT4NBoP/5VdetkBoujbOLq9h6QYWC8THuZSPYnXIR9OP3XcOrdMgPBBipOrdssfxnIiWUg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/fetch-http-handler": "^5.8.0", + "@smithy/node-http-handler": "^4.14.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.973.25", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.973.25.tgz", + "integrity": "sha512-b5xl71uCRdWsu7P1VeGpiGuCf6zfYETsSNOv8AmYVTrsgbvTJRXdmmOPVfxkvGGVNsiKkGctClQW3jAn0SZLug==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/credential-provider-env": "^3.972.80", + "@aws-sdk/credential-provider-http": "^3.972.82", + "@aws-sdk/credential-provider-login": "^3.972.87", + "@aws-sdk/credential-provider-process": "^3.972.80", + "@aws-sdk/credential-provider-sso": "^3.973.24", + "@aws-sdk/credential-provider-web-identity": "^3.972.86", + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/credential-provider-imds": "^4.5.2", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-login": { + "version": "3.972.87", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.972.87.tgz", + "integrity": "sha512-C4ZFmcwM+Zj14Z8huVUk54Gv4uzT1ZdzG9cY3Gdh8FePakq7Bss1OFsgZjAhWFOkFOGpBvFBeu0OWjWf8HNKRQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-node": { + "version": "3.972.92", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.972.92.tgz", + "integrity": "sha512-jC3zmOo7Qxlk+oBivvSsS1Ph7sFGm0QfuhqDGbqgRXi4cxUYMG+dWtBwS2XYYXgc8TIVXJiwgQ65sbNpbYupTA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "^3.972.80", + "@aws-sdk/credential-provider-http": "^3.972.82", + "@aws-sdk/credential-provider-ini": "^3.973.25", + "@aws-sdk/credential-provider-process": "^3.972.80", + "@aws-sdk/credential-provider-sso": "^3.973.24", + "@aws-sdk/credential-provider-web-identity": "^3.972.86", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/credential-provider-imds": "^4.5.2", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-process": { + "version": "3.972.80", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.972.80.tgz", + "integrity": "sha512-xqfixO5aclje7tbQJDias+iNND5wp/3QZixCdZcVQpgWPTZ0V5DfTW9A804A5Z7ezu7sH3WRO+vzUjtiJBA8yg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.973.24", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.973.24.tgz", + "integrity": "sha512-nlg3BKG03Cgzvv/dMnhxvDJPhAhQSpaN0RUdwgU7ziwkasoev7iI8el8Xy4Rd5sqzgaDUbV269fOXck5SargqA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/token-providers": "3.1161.0", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.972.86", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.972.86.tgz", + "integrity": "sha512-zKTyLJBEyfQBVlYqT6Jt+mYV4r8kGbWM7dn6v4Y4MRARizhYafjDXP/iMu76UMRhToSPNmIKX1XAb24gtpBFIA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/credential-providers": { + "version": "3.1057.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-providers/-/credential-providers-3.1057.0.tgz", + "integrity": "sha512-rbrEHtz11g0kxsSkYr3fx2HABNNblp4AhB2MgPvJHgYOWfJ2eBviU7Mvoaef0PW8QH6lbZDfJcnM7eKvtvz3sw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-cognito-identity": "3.1057.0", + "@aws-sdk/core": "^3.974.15", + "@aws-sdk/credential-provider-cognito-identity": "^3.972.38", + "@aws-sdk/credential-provider-env": "^3.972.41", + "@aws-sdk/credential-provider-http": "^3.972.43", + "@aws-sdk/credential-provider-ini": "^3.972.46", + "@aws-sdk/credential-provider-login": "^3.972.45", + "@aws-sdk/credential-provider-node": "^3.972.47", + "@aws-sdk/credential-provider-process": "^3.972.41", + "@aws-sdk/credential-provider-sso": "^3.972.45", + "@aws-sdk/credential-provider-web-identity": "^3.972.45", + "@aws-sdk/nested-clients": "^3.997.13", + "@aws-sdk/types": "^3.973.9", + "@smithy/core": "^3.24.5", + "@smithy/credential-provider-imds": "^4.3.6", + "@smithy/types": "^4.14.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/nested-clients": { + "version": "3.997.54", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.997.54.tgz", + "integrity": "sha512-/OczlavsS7U5sOodRO10Ug4R/AKFVZiXTstKipWe68EfjPkmdDFNXNl9FCJyXWkg1DG6RBm3qAuVB8FNW9O8KQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/signature-v4-multi-region": "^3.996.51", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/fetch-http-handler": "^5.8.0", + "@smithy/node-http-handler": "^4.14.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/signature-v4-multi-region": { + "version": "3.996.51", + "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.996.51.tgz", + "integrity": "sha512-+aHvUugVBuMPXxgkPfWnTMyGdE/yWS8GHi5+qQ37HowS0YqzrbuaDLznj+Dtmtu5jgCdqz36gXmujOToUhNNWw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "^3.975.0", + "@smithy/signature-v4": "^5.7.5", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/token-providers": { + "version": "3.1161.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.1161.0.tgz", + "integrity": "sha512-ypbXSofNcSHwf/KA40bFCXJb0MLaAKrfT7sot4dFaA+2lsuXNah4zLRJIAU7Qmvs9PFJ6rnY0bZFEC+mE7attA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "^3.979.1", + "@aws-sdk/nested-clients": "^3.997.54", + "@aws-sdk/types": "^3.975.0", + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/types": { + "version": "3.975.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.975.0.tgz", + "integrity": "sha512-WQlhs6juByzWOzj5fwxOx0mPJaEqMcG/sDpl3Id61B3XhKE63xY+0QWcnG+sWR/sCfprmreyUo1lM7IKZmHMzw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/util-locate-window": { + "version": "3.965.10", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.965.10.tgz", + "integrity": "sha512-ycwH6Zd2GhuSqdXX9ihbCjeGTB6xOJs+O3+Jb8/zDG9978XU80qs75dfkPJRMNKe5MvBZPuNeFpd4JZKPoUF4g==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws-sdk/xml-builder": { + "version": "3.972.42", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.972.42.tgz", + "integrity": "sha512-smX8/gNP8Kjq+CWTBMZQLQ912vOQjiWExzwzvMO+eujPB5RY8IbtF0AGdUUXHKN7KoDWK9dIcuW0WG269kiP6w==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@aws/lambda-invoke-store": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.3.0.tgz", + "integrity": "sha512-sl4Bm6yiMNYrZKkqqDFWN0UfnWhlS8ivKxrYl+6t0gCLrqr8y3B2IqZZbFRkfaVVp7C/baApyh71P+LeE1A2sQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.0.tgz", + "integrity": "sha512-UlLAnTPrFdNGoFtbSXwcGFQBtQZJCNjaN6hQNP3UPvuNXT1i82N26KL3dZeIpNalWywr9IuQuncaAfUaS1g6sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.0", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.27.3", + "@babel/helpers": "^7.27.6", + "@babel/parser": "^7.28.0", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.0", + "@babel/types": "^7.28.0", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.12.tgz", + "integrity": "sha512-2W76mhjrpQFO1lK5e8IvGYB2D0YZ7S2R1Z2BjO2ZUYuW+amcpK/z60U6ZZmzskwoa7sJ6XohP/Wg8H5KxXI/IA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.12", + "@babel/types": "^7.29.11", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz", + "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.12.tgz", + "integrity": "sha512-ACxGoWMV866q/QlZHeCOaQZAR5QclKsIvkAmlDemqjm6+6Bynijs1mH068BzH2N2e+wSuDmBWY87fqKfvhi1Lw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/traverse": "^7.29.12", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.2.tgz", + "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz", + "integrity": "sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz", + "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz", + "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz", + "integrity": "sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.11.tgz", + "integrity": "sha512-snZbO7MEDOof+hvNa97EjEY7qD7h2kwvQr5AJC3ZhQudKW5dnej6k3kP9NQV88hJwaS8vDqRLFo9rivLEhle2g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", + "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.12.tgz", + "integrity": "sha512-WJ7JBp/Q4+z/ImydtI7jS6NVco5++632ExBemSX+Ysb+G1lCwQ5BVo3SY+jGGOcZXI4ZccbZSUSJLNBW6eEpJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.11" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz", + "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz", + "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz", + "integrity": "sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-self": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", + "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-source": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", + "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz", + "integrity": "sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/plugin-syntax-typescript": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.27.1.tgz", + "integrity": "sha512-l7WfQfX0WK4M0v2RudjuQK4u99BS6yLHYEmdtVPP7lKV013zr9DygFuWNlnbvQ9LR+LS0Egz/XAvGx5U9MX0fQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-syntax-jsx": "^7.27.1", + "@babel/plugin-transform-modules-commonjs": "^7.27.1", + "@babel/plugin-transform-typescript": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.12", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.12.tgz", + "integrity": "sha512-MscXe/NAZcOkYEsRajHZFt3ynsb22PUi6CTrp5U7+RYycR9By84mn9mFN54YgfITiqK4hFx3Ju3tZSyzfpS5ew==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.12", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.12", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.11", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.11", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.11.tgz", + "integrity": "sha512-WCsemW40Cpc6gouC1SrY6PBaZ+oLRlEVY9XBvZBI7il/HyUrb2nJ505wE1MHEFyDZNnrWDEuy4jL50WVHfTTSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.11", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@biomejs/biome": { + "version": "2.3.13", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-2.3.13.tgz", + "integrity": "sha512-Fw7UsV0UAtWIBIm0M7g5CRerpu1eKyKAXIazzxhbXYUyMkwNrkX/KLkGI7b+uVDQ5cLUMfOC9vR60q9IDYDstA==", + "dev": true, + "license": "MIT OR Apache-2.0", + "bin": { + "biome": "bin/biome" + }, + "engines": { + "node": ">=14.21.3" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/biome" + }, + "optionalDependencies": { + "@biomejs/cli-darwin-arm64": "2.3.13", + "@biomejs/cli-darwin-x64": "2.3.13", + "@biomejs/cli-linux-arm64": "2.3.13", + "@biomejs/cli-linux-arm64-musl": "2.3.13", + "@biomejs/cli-linux-x64": "2.3.13", + "@biomejs/cli-linux-x64-musl": "2.3.13", + "@biomejs/cli-win32-arm64": "2.3.13", + "@biomejs/cli-win32-x64": "2.3.13" + } + }, + "node_modules/@biomejs/cli-linux-x64": { + "version": "2.3.13", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-2.3.13.tgz", + "integrity": "sha512-s+YsZlgiXNq8XkgHs6xdvKDFOj/bwTEevqEY6rC2I3cBHbxXYU1LOZstH3Ffw9hE5tE1sqT7U23C00MzkXztMw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT OR Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=14.21.3" + } + }, + "node_modules/@csstools/color-helpers": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.1.2.tgz", + "integrity": "sha512-grhRy3OKmniaAEKXMjua5z/EODX0MSqBGjunw8+j/3HQjOnahs2AGhvEOIYVUWcU6ScApbhLhVrQTX8XqrMrow==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@csstools/css-calc": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.4.3.tgz", + "integrity": "sha512-iex20d8CHVkyvg6B7UKV7uHnI2Bqo9g+EFfT9E0y+GvTvhZ/DwONJ+9aKb1dlqm0ZiGsL5RXjp0fCoJYnkeDjA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.2", + "@csstools/css-tokenizer": "^4.0.2" + } + }, + "node_modules/@csstools/css-color-parser": { + "version": "4.2.7", + "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.2.7.tgz", + "integrity": "sha512-zgm9yjQz5iJB4VL8RyVwd71TWB8Q89FSxt/NzXoWqPSkEBOVtn9L6vAPtSc9hpKfB0Awo/AL2VKFHjYetBLFHQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "dependencies": { + "@csstools/color-helpers": "^6.1.2", + "@csstools/css-calc": "^3.4.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-parser-algorithms": "^4.0.2", + "@csstools/css-tokenizer": "^4.0.2" + } + }, + "node_modules/@csstools/css-parser-algorithms": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.2.tgz", + "integrity": "sha512-40cSKyMvK+tq4qz6Awrlye2WGuOKt3FwPgtGg6KTfbHOWNw+Rk1rzbAtZnZ6IBhsY491HLRnDXwoyBAijmmILA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + }, + "peerDependencies": { + "@csstools/css-tokenizer": "^4.0.2" + } + }, + "node_modules/@csstools/css-syntax-patches-for-csstree": { + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.16.tgz", + "integrity": "sha512-LsDbJPP/B8cPasUJyTA5S99F7C4G93ngW8hUluXz8CFeOaaRnBPtBiIlvgcPYU0HmHNz8CXg+1vwFrIB4F6Dgw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "peerDependencies": { + "css-tree": "^3.2.1" + }, + "peerDependenciesMeta": { + "css-tree": { + "optional": true + } + } + }, + "node_modules/@csstools/css-tokenizer": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.2.tgz", + "integrity": "sha512-OoKoR0f76dCY666JlcbhmVTs2drYj1GUXZTYTcbUgJjh9Nv41aFfZ21bPQTERm5+L5cBDo466NltB2lplS5GBw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT", + "engines": { + "node": ">=20.19.0" + } + }, + "node_modules/@effect/opentelemetry": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@effect/opentelemetry/-/opentelemetry-4.0.6.tgz", + "integrity": "sha512-xhLR1EN4ZNaKM7Bx59SCFiRNduFzgH8LZXDrCpPN8MpQ93V0GQcFHTBah5T3EXO2v+5HTEacdTgetIA0Creqvw==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.9.0 <2.0.0", + "@opentelemetry/api-logs": ">=0.203.0 <0.300.0", + "@opentelemetry/resources": ">=2.0.0 <3.0.0", + "@opentelemetry/sdk-logs": ">=0.203.0 <0.300.0", + "@opentelemetry/sdk-metrics": ">=2.0.0 <3.0.0", + "@opentelemetry/sdk-trace-base": ">=2.0.0 <3.0.0", + "@opentelemetry/sdk-trace-node": ">=2.0.0 <3.0.0", + "@opentelemetry/sdk-trace-web": ">=2.0.0 <3.0.0", + "@opentelemetry/semantic-conventions": ">=1.33.0 <2.0.0", + "effect": "^4.0.6" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@opentelemetry/api-logs": { + "optional": true + }, + "@opentelemetry/resources": { + "optional": true + }, + "@opentelemetry/sdk-logs": { + "optional": true + }, + "@opentelemetry/sdk-metrics": { + "optional": true + }, + "@opentelemetry/sdk-trace-base": { + "optional": true + }, + "@opentelemetry/sdk-trace-node": { + "optional": true + }, + "@opentelemetry/sdk-trace-web": { + "optional": true + } + } + }, + "node_modules/@effect/platform-node": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@effect/platform-node/-/platform-node-4.0.6.tgz", + "integrity": "sha512-gXvGHAy0/8PZbWvMMguloDUyeSP+rzYEo3FSEqUuGduxo9ORcGioDxPI+GOLCIFfam7VuNkmSUxBOiRMIrMrBw==", + "license": "MIT", + "dependencies": { + "@effect/platform-node-shared": "^4.0.6", + "undici": "^8.12.2" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "effect": "^4.0.6", + "redis": ">=5.0.0 <7.0.0" + } + }, + "node_modules/@effect/platform-node-shared": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/@effect/platform-node-shared/-/platform-node-shared-4.0.6.tgz", + "integrity": "sha512-0PhyC4uG30xGtsajnxjkcBWfTjNRzUh4ZKl1Kvo/MNyCTb+W2O+fBzf7wCRCoqt+nLudiq4V7vX40Q8XIBuMaQ==", + "license": "MIT", + "dependencies": { + "@types/ws": "^8.18.2", + "ws": "^8.22.0" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "effect": "^4.0.6" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@exodus/bytes": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.16.0.tgz", + "integrity": "sha512-IcpW84uEn3N7ETtNZMlxKhfl6Pec8rUNGOTBtWbK1FKhJxIFAptZyVrvVRVBimAJxJCgc3PxepxkdWWG4DVzfA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + }, + "peerDependencies": { + "@noble/hashes": "^1.8.0 || ^2.0.0" + }, + "peerDependenciesMeta": { + "@noble/hashes": { + "optional": true + } + } + }, + "node_modules/@gar/promise-retry": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@gar/promise-retry/-/promise-retry-1.0.3.tgz", + "integrity": "sha512-GmzA9ckNokPypTg10pgpeHNQe7ph+iIKKmhKu3Ob9ANkswreCx7R3cKmY781K8QK3AqVL3xVh9A42JvIAbkkSA==", + "license": "MIT", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@isaacs/string-locale-compare/-/string-locale-compare-1.1.0.tgz", + "integrity": "sha512-SQ7Kzhh9+D+ZW9MA0zkYv3VXhIDNx+LzM6EJ+/65I3QY+enU6Itte7E5XX7EWrqLW2FN4n06GWzBnPoC3th2aQ==", + "license": "ISC" + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.6.tgz", + "integrity": "sha512-7zKNTbhIGdVO4gsGFNd39g5Go3jN+fuizvWe8SrbGSck9Pcr8x9I5GbtUX1JzBLMaUuI/tcB0JKEYn8RNjKhFg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@npmcli/agent": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/agent/-/agent-4.0.2.tgz", + "integrity": "sha512-EUEuWAxnL07Sp5/iC/1X6Xj+XThUvnbei9zfRWZdEXa7lss9RTHMhAHBeg+MZ5To9s/gGaSI+UwZTPdYMvKSeg==", + "license": "ISC", + "dependencies": { + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^11.2.1", + "socks-proxy-agent": "^8.0.3" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/arborist": { + "version": "9.4.0", + "resolved": "https://registry.npmjs.org/@npmcli/arborist/-/arborist-9.4.0.tgz", + "integrity": "sha512-4Bm8hNixJG/sii1PMnag0V9i/sGOX9VRzFrUiZMSBJpGlLR38f+Btl85d07G9GL56xO0l0OZjvrGNYsDYp0xKA==", + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^5.0.0", + "@npmcli/installed-package-contents": "^4.0.0", + "@npmcli/map-workspaces": "^5.0.0", + "@npmcli/metavuln-calculator": "^9.0.2", + "@npmcli/name-from-folder": "^4.0.0", + "@npmcli/node-gyp": "^5.0.0", + "@npmcli/package-json": "^7.0.0", + "@npmcli/query": "^5.0.0", + "@npmcli/redact": "^4.0.0", + "@npmcli/run-script": "^10.0.0", + "bin-links": "^6.0.0", + "cacache": "^20.0.1", + "common-ancestor-path": "^2.0.0", + "hosted-git-info": "^9.0.0", + "json-stringify-nice": "^1.1.4", + "lru-cache": "^11.2.1", + "minimatch": "^10.0.3", + "nopt": "^9.0.0", + "npm-install-checks": "^8.0.0", + "npm-package-arg": "^13.0.0", + "npm-pick-manifest": "^11.0.1", + "npm-registry-fetch": "^19.0.0", + "pacote": "^21.0.2", + "parse-conflict-json": "^5.0.1", + "proc-log": "^6.0.0", + "proggy": "^4.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^3.0.1", + "semver": "^7.3.7", + "ssri": "^13.0.0", + "treeverse": "^3.0.0", + "walk-up-path": "^4.0.0" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/config": { + "version": "10.8.1", + "resolved": "https://registry.npmjs.org/@npmcli/config/-/config-10.8.1.tgz", + "integrity": "sha512-MAYk9IlIGiyC0c9fnjdBSQfIFPZT0g1MfeSiD1UXTq2zJOLX55jS9/sETJHqw/7LN18JjITrhYfgCfapbmZHiQ==", + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^5.0.0", + "@npmcli/package-json": "^7.0.0", + "ci-info": "^4.0.0", + "ini": "^6.0.0", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "walk-up-path": "^4.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/fs": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-5.0.0.tgz", + "integrity": "sha512-7OsC1gNORBEawOa5+j2pXN9vsicaIOH5cPXxoR6fJOmH6/EXpJB2CajXOu1fPRFun2m1lktEFX11+P89hqO/og==", + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/git": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-7.0.2.tgz", + "integrity": "sha512-oeolHDjExNAJAnlYP2qzNjMX/Xi9bmu78C9dIGr4xjobrSKbuMYCph8lTzn4vnW3NjIqVmw/f8BCfouqyJXlRg==", + "license": "ISC", + "dependencies": { + "@gar/promise-retry": "^1.0.0", + "@npmcli/promise-spawn": "^9.0.0", + "ini": "^6.0.0", + "lru-cache": "^11.2.1", + "npm-pick-manifest": "^11.0.1", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "which": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/installed-package-contents": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/installed-package-contents/-/installed-package-contents-4.0.0.tgz", + "integrity": "sha512-yNyAdkBxB72gtZ4GrwXCM0ZUedo9nIbOMKfGjt6Cu6DXf0p8y1PViZAKDC8q8kv/fufx0WTjRBdSlyrvnP7hmA==", + "license": "ISC", + "dependencies": { + "npm-bundled": "^5.0.0", + "npm-normalize-package-bin": "^5.0.0" + }, + "bin": { + "installed-package-contents": "bin/index.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/map-workspaces": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/map-workspaces/-/map-workspaces-5.0.3.tgz", + "integrity": "sha512-o2grssXo1e774E5OtEwwrgoszYRh0lqkJH+Pb9r78UcqdGJRDRfhpM8DvZPjzNLLNYeD/rNbjOKM3Ss5UABROw==", + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^4.0.0", + "@npmcli/package-json": "^7.0.0", + "glob": "^13.0.0", + "minimatch": "^10.0.3" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/metavuln-calculator": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/@npmcli/metavuln-calculator/-/metavuln-calculator-9.0.3.tgz", + "integrity": "sha512-94GLSYhLXF2t2LAC7pDwLaM4uCARzxShyAQKsirmlNcpidH89VA4/+K1LbJmRMgz5gy65E/QBBWQdUvGLe2Frg==", + "license": "ISC", + "dependencies": { + "cacache": "^20.0.0", + "json-parse-even-better-errors": "^5.0.0", + "pacote": "^21.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/name-from-folder": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/name-from-folder/-/name-from-folder-4.0.0.tgz", + "integrity": "sha512-qfrhVlOSqmKM8i6rkNdZzABj8MKEITGFAY+4teqBziksCQAOLutiAxM1wY2BKEd8KjUSpWmWCYxvXr0y4VTlPg==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/node-gyp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/node-gyp/-/node-gyp-5.0.0.tgz", + "integrity": "sha512-uuG5HZFXLfyFKqg8QypsmgLQW7smiRjVc45bqD/ofZZcR/uxEjgQU8qDPv0s9TEeMUiAAU/GC5bR6++UdTirIQ==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/package-json": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/@npmcli/package-json/-/package-json-7.0.5.tgz", + "integrity": "sha512-iVuTlG3ORq2iaVa1IWUxAO/jIp77tUKBhoMjuzYW2kL4MLN1bi/ofqkZ7D7OOwh8coAx1/S2ge0rMdGv8sLSOQ==", + "license": "ISC", + "dependencies": { + "@npmcli/git": "^7.0.0", + "glob": "^13.0.0", + "hosted-git-info": "^9.0.0", + "json-parse-even-better-errors": "^5.0.0", + "proc-log": "^6.0.0", + "semver": "^7.5.3", + "spdx-expression-parse": "^4.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/promise-spawn": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-9.0.2.tgz", + "integrity": "sha512-h7b1j0egrruBm/32eVA6/zMw5VJxxaB3vT+uVGGQ4SAAMrQVFHNuzL4+EAXn66j+huj0jApINc1fW3fC+kVoeA==", + "license": "ISC", + "dependencies": { + "which": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/query": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/query/-/query-5.0.0.tgz", + "integrity": "sha512-8TZWfTQOsODpLqo9SVhVjHovmKXNpevHU0gO9e+y4V4fRIOneiXy0u0sMP9LmS71XivrEWfZWg50ReH4WRT4aQ==", + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^7.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/redact": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@npmcli/redact/-/redact-4.0.0.tgz", + "integrity": "sha512-gOBg5YHMfZy+TfHArfVogwgfBeQnKbbGo3pSUyK/gSI0AVu+pEiDVcKlQb0D8Mg1LNRZILZ6XG8I5dJ4KuAd9Q==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@npmcli/run-script": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/@npmcli/run-script/-/run-script-10.0.4.tgz", + "integrity": "sha512-mGUWr1uMnf0le2TwfOZY4SFxZGXGfm4Jtay/nwAa2FLNAKXUoUwaGwBMNH36UHPtinWfTSJ3nqFQr0091CxVGg==", + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^5.0.0", + "@npmcli/package-json": "^7.0.0", + "@npmcli/promise-spawn": "^9.0.0", + "node-gyp": "^12.1.0", + "proc-log": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@opencode-ai/plugin": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@opencode-ai/plugin/-/plugin-1.19.5.tgz", + "integrity": "sha512-79PY+pxcJajHReWv2OP2SYTdlx1f7zOmq2hIaReOJnovsxNaSvxVyQHx+6Yq22T5UcS4z3Qgws4KB4lQOaIbdQ==", + "license": "MIT", + "dependencies": { + "@ai-sdk/provider": "3.0.8", + "@opencode-ai/sdk": "1.19.5", + "effect": "4.0.0-beta.83", + "zod": "4.1.8" + }, + "peerDependencies": { + "@opentui/core": ">=0.4.5", + "@opentui/keymap": ">=0.4.5", + "@opentui/solid": ">=0.4.5" + }, + "peerDependenciesMeta": { + "@opentui/core": { + "optional": true + }, + "@opentui/keymap": { + "optional": true + }, + "@opentui/solid": { + "optional": true + } + } + }, + "node_modules/@opencode-ai/sdk": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@opencode-ai/sdk/-/sdk-1.19.5.tgz", + "integrity": "sha512-+bqu8gHiwmq96T9q5G34uLNHWCInIMsrE3hytCNHj1cVaxjY0AGJyNCT1rkeeZwgPU7A5TMTNwN+0XxCO2vqDg==", + "license": "MIT", + "dependencies": { + "cross-spawn": "7.0.6" + } + }, + "node_modules/@opencode/ai": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/ai/-/ai-2.2.5.tgz", + "integrity": "sha512-TolUvNR615vpkc6FPf2np5PbAbO7k1gaVlrtZ5Wx5tN7Y8K2uSer0BZEiajJ2uBsF6RXJFfjjX1GZbcf85GtGQ==", + "license": "MIT", + "dependencies": { + "@aws-sdk/credential-providers": "3.1057.0", + "@opencode/schema": "2.2.5", + "@smithy/eventstream-codec": "4.2.14", + "@smithy/util-utf8": "4.2.2", + "aws4fetch": "1.0.20", + "effect": "4.0.6", + "google-auth-library": "10.5.0" + } + }, + "node_modules/@opencode/ai/node_modules/effect": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.6.tgz", + "integrity": "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw==", + "license": "MIT" + }, + "node_modules/@opencode/client": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/client/-/client-2.2.5.tgz", + "integrity": "sha512-EjYrFGWHURsIbjtmQdIsGSPmYZGaulxqwEfYxQH5t9838508BCIvDX9f7/ZsgNGHYXM0punA3W8hTt6GjxIEaw==", + "license": "MIT", + "dependencies": { + "@opencode/protocol": "2.2.5", + "@opencode/schema": "2.2.5" + }, + "peerDependencies": { + "effect": "4.0.6", + "solid-js": ">=1.9.0" + }, + "peerDependenciesMeta": { + "effect": { + "optional": true + }, + "solid-js": { + "optional": true + } + } + }, + "node_modules/@opencode/plugin": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/plugin/-/plugin-2.2.5.tgz", + "integrity": "sha512-DHtmC55UM5NbtZwyayLxI/ygTMt3n+6xXYYBkOdNxmZ+rLcIbpjmeJvySqdxFmT3K7Pk/2pHsuocxhquu6sysA==", + "license": "MIT", + "dependencies": { + "@ai-sdk/provider": "3.0.8", + "@opencode/ai": "2.2.5", + "@opencode/client": "2.2.5", + "@opencode/protocol": "2.2.5", + "@opencode/schema": "2.2.5", + "@opencode/util": "2.2.5", + "effect": "4.0.6" + }, + "peerDependencies": { + "@opencode/theme": "2.2.5", + "@opentui/core": ">=0.8.0", + "@opentui/solid": ">=0.8.0", + "electron": "*", + "solid-js": ">=1.9.0", + "vite": ">=6", + "vite-plugin-solid": ">=2.11" + }, + "peerDependenciesMeta": { + "@opencode/theme": { + "optional": true + }, + "@opentui/core": { + "optional": true + }, + "@opentui/solid": { + "optional": true + }, + "electron": { + "optional": true + }, + "solid-js": { + "optional": true + }, + "vite": { + "optional": true + }, + "vite-plugin-solid": { + "optional": true + } + } + }, + "node_modules/@opencode/plugin/node_modules/effect": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.6.tgz", + "integrity": "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw==", + "license": "MIT" + }, + "node_modules/@opencode/protocol": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/protocol/-/protocol-2.2.5.tgz", + "integrity": "sha512-T3ET0kS1kj8sv7/d+c1T2he7TXoZ4Rki7zTqHuv8b0kWhg3Vk6o0t+T9KsEQdEat7PFksgH5haC2iSSdJOB7/w==", + "license": "MIT", + "dependencies": { + "@opencode/schema": "2.2.5", + "effect": "4.0.6" + } + }, + "node_modules/@opencode/protocol/node_modules/effect": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.6.tgz", + "integrity": "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw==", + "license": "MIT" + }, + "node_modules/@opencode/schema": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/schema/-/schema-2.2.5.tgz", + "integrity": "sha512-hlKk6cX28BwvOMOVG3Mtt4tEHxwY68Z6Gz5/cL32N8qfZexykCKsZai49Jms4/2gD8BzvVuBERnnlLDbdLstUA==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "1.1.0", + "effect": "4.0.6" + } + }, + "node_modules/@opencode/schema/node_modules/effect": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.6.tgz", + "integrity": "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw==", + "license": "MIT" + }, + "node_modules/@opencode/util": { + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@opencode/util/-/util-2.2.5.tgz", + "integrity": "sha512-RqbJ2EwxOs6oQMH1P4Yenkejit0oiAyxBTPXhzx4n6j4SOV0+Duz6lhftlJkAjTbq7Rw2b0Mzx4duOJUdw6s5A==", + "license": "MIT", + "dependencies": { + "@effect/opentelemetry": "4.0.6", + "@effect/platform-node": "4.0.6", + "@effect/platform-node-shared": "4.0.6", + "@npmcli/arborist": "9.4.0", + "@npmcli/config": "10.8.1", + "@opentelemetry/api": "1.9.0", + "@opentelemetry/api-logs": "0.219.0", + "@opentelemetry/context-async-hooks": "2.8.0", + "@opentelemetry/exporter-trace-otlp-http": "0.219.0", + "@opentelemetry/resources": "2.8.0", + "@opentelemetry/sdk-logs": "0.219.0", + "@opentelemetry/sdk-metrics": "2.8.0", + "@opentelemetry/sdk-trace-base": "2.8.0", + "@opentelemetry/sdk-trace-node": "2.8.0", + "cross-spawn": "7.0.6", + "effect": "4.0.6", + "glob": "13.0.5", + "mime-types": "3.0.2", + "minimatch": "10.2.5", + "npm-package-arg": "13.0.2", + "open": "11.0.4", + "pacote": "21.5.1" + } + }, + "node_modules/@opencode/util/node_modules/effect": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.6.tgz", + "integrity": "sha512-Tc3mkzuLR6t6P9dhLt0D2GrxYtmU5td4XEJEiXCmILz53IRIfJyHsKZWjTA3xEjiwpNTtXBgI4iqYPxMztBDrw==", + "license": "MIT" + }, + "node_modules/@opentelemetry/api": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz", + "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==", + "license": "Apache-2.0", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/api-logs": { + "version": "0.219.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.219.0.tgz", + "integrity": "sha512-FFx7YnaYJlIjqWW/AG/yAZ0L/NEY724PipXXXQLdtZPbLwBGbUMTGL1i/esI56TWfTUXxhLfpgrnWJCG8aUJyg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api": "^1.3.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/@opentelemetry/context-async-hooks": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-2.8.0.tgz", + "integrity": "sha512-/3FIraneMcng67SUJCxvyInk/oxzwsxyadufk0wwfOBLf5wqtAGX4MoQASwSbndBPeARzBryUM9Azr5kHIdWLw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/core": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-2.8.0.tgz", + "integrity": "sha512-hd1Lfh8p545nNz+jq1Ejfz+Mn1hyLuxYn1YzTfFNrxr8urEWMNQLPf1Th8kjOH+HxwawCrtgBp8JpBUR4ZSgww==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/exporter-trace-otlp-http": { + "version": "0.219.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/exporter-trace-otlp-http/-/exporter-trace-otlp-http-0.219.0.tgz", + "integrity": "sha512-9t6SvBXXBEjOBcIzgozvBbd3jWrv3Gt3ngGhl1fhdZ/zRc7oZDVOFEqbi2zlBpW9BXhgDMKv422J0DL/3iQWfw==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.8.0", + "@opentelemetry/otlp-exporter-base": "0.219.0", + "@opentelemetry/otlp-transformer": "0.219.0", + "@opentelemetry/resources": "2.8.0", + "@opentelemetry/sdk-trace-base": "2.8.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-exporter-base": { + "version": "0.219.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-exporter-base/-/otlp-exporter-base-0.219.0.tgz", + "integrity": "sha512-zvIxQX/AZUVKDU+hCuYx+7UkiP7GRdnk1ZbFQRYzHvYp47cAWR4j3IhoPhV9KaeXEv2xdGq3IA6PnpzDmLcmSA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.8.0", + "@opentelemetry/otlp-transformer": "0.219.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/otlp-transformer": { + "version": "0.219.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.219.0.tgz", + "integrity": "sha512-aaYKAyXhw9VchKZVGOopD3Gw/kPsyrX2c6IQ0AW32mTjqmZOh5Y6Gf5OYqTNqVktAeBjmFinhyFaCwW6GYK9YQ==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.219.0", + "@opentelemetry/core": "2.8.0", + "@opentelemetry/resources": "2.8.0", + "@opentelemetry/sdk-logs": "0.219.0", + "@opentelemetry/sdk-metrics": "2.8.0", + "@opentelemetry/sdk-trace-base": "2.8.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.3.0" + } + }, + "node_modules/@opentelemetry/resources": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-2.8.0.tgz", + "integrity": "sha512-qmXQ27ilDbUK/vGMqwL8D4/rhn76C+sherM4wTbjlfknR8Nvfc/hCxjRJPhkzZzUsPiNg16SA31NxMabwttRjg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.8.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-logs": { + "version": "0.219.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.219.0.tgz", + "integrity": "sha512-s6lTKRakaPClvKoWHRChxnXjDMkM/TQ30ff78jN6EBGf7MI7VzANE5PU3f4z9qDUudWjvZjOLHG0rBnBKYvoXA==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/api-logs": "0.219.0", + "@opentelemetry/core": "2.8.0", + "@opentelemetry/resources": "2.8.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.4.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-metrics": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-2.8.0.tgz", + "integrity": "sha512-UDBGaj6W0Rgy5rTTaoxs8gVGF/aGkAKyjurJv7se6wjRxJu7FoquTLT/vt54DZfo4crbprYfhX/SOK9+BPw1qg==", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.8.0", + "@opentelemetry/resources": "2.8.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.9.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-base": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-2.8.0.tgz", + "integrity": "sha512-mhU4jp+vW0mGbFRd+GeXHvmfA4aDqWjBjLC3pE5XMpLs0IE2ryYb019Ts2AQrOq67gaTF25D91+fgvEHDZEnuQ==", + "deprecated": "Use @opentelemetry/sdk-trace package", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/core": "2.8.0", + "@opentelemetry/resources": "2.8.0", + "@opentelemetry/semantic-conventions": "^1.29.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.3.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/sdk-trace-node": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-2.8.0.tgz", + "integrity": "sha512-nZt9OGufioAc3AfoLTqA9bsAeaMJAictYDdI2VcNQ+PmT+3rfKjAZDZvgPfd8VPX0O5Bw1hdQF6kDK8VSpZiWg==", + "deprecated": "Use @opentelemetry/sdk-trace package", + "license": "Apache-2.0", + "dependencies": { + "@opentelemetry/context-async-hooks": "2.8.0", + "@opentelemetry/core": "2.8.0", + "@opentelemetry/sdk-trace-base": "2.8.0" + }, + "engines": { + "node": "^18.19.0 || >=20.6.0" + }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + } + }, + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.44.0.tgz", + "integrity": "sha512-E3JkOlMBi3N8OGGkbl7tFyqk2MAS6/lySRZBK3Mu7AzjF1fT8oIChH9ChE48SUWzDn9Kdwta+G/p5LJ4xW4CLQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/@opentui/core": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core/-/core-0.8.2.tgz", + "integrity": "sha512-Ko6BfyIiCWjm/15nfgBW7aWS+jkZ+Lh16PaEecawWRnhKo7H0BsJGhnpOe/BVcrnBI7bzLgMIP5cWyDffWEP7w==", + "dev": true, + "license": "MIT", + "dependencies": { + "bun-ffi-structs": "0.3.1", + "diff": "9.0.0", + "marked": "17.0.1", + "string-width": "7.2.0" + }, + "engines": { + "bun": ">=1.3.14", + "node": ">=26.4.0" + }, + "optionalDependencies": { + "@opentui/core-darwin-arm64": "0.8.2", + "@opentui/core-darwin-x64": "0.8.2", + "@opentui/core-linux-arm64": "0.8.2", + "@opentui/core-linux-arm64-musl": "0.8.2", + "@opentui/core-linux-x64": "0.8.2", + "@opentui/core-linux-x64-musl": "0.8.2", + "@opentui/core-win32-arm64": "0.8.2", + "@opentui/core-win32-x64": "0.8.2" + }, + "peerDependencies": { + "web-tree-sitter": "0.25.10" + } + }, + "node_modules/@opentui/core-darwin-arm64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-arm64/-/core-darwin-arm64-0.8.2.tgz", + "integrity": "sha512-/8pFK289hi+jtoUgJYZJEABTreLoQ3tNVQuMFLF0xDBkREJaR9xvh2RHKzhVLut9bhKf9oY2bgD37pMgYNqwqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/core-darwin-x64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-x64/-/core-darwin-x64-0.8.2.tgz", + "integrity": "sha512-AN3QB5yIGQyKs4XKgGuA1vSLA++jonTB6NR2fNLbw4+wizgETlQ77ur30175yEVysaN2tQNO2dJasvHMx05WQg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/core-linux-arm64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64/-/core-linux-arm64-0.8.2.tgz", + "integrity": "sha512-Inkhg/P5UBNPySqeh0+4K8NbqUIolJ3WNgvX9I25x2nT/DFA8kUN1Y7fbQAaX2CrHa7rWu54xOmJYbYfOPsX8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/core-linux-arm64-musl": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64-musl/-/core-linux-arm64-musl-0.8.2.tgz", + "integrity": "sha512-nB/RtlowKo9mlybfL1iHr0Wr4ZF/n4bQ8i7UaphUPNopXSq6YoWT7D4lyjubLBqjJ4KPkaXXHAiReSZ0e1V7ZA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/core-linux-x64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64/-/core-linux-x64-0.8.2.tgz", + "integrity": "sha512-R6SUsvcQdeVuVSdGIOYcAFrCdGGeAxzT2pJ7KT9LK6Tg0pELszpnC+FmRDiofMUz88VSjXP95NygBZx+SAvnuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/core-linux-x64-musl": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64-musl/-/core-linux-x64-musl-0.8.2.tgz", + "integrity": "sha512-vicHTwx+jUFNcI39e6pK+hkjAhv33ebqmm0YpHHek9t3tY1PoWY6YfgI4jZVqVzcckJ7i3r3Nnl3x2YB94UUhw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/core-win32-arm64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-arm64/-/core-win32-arm64-0.8.2.tgz", + "integrity": "sha512-pGXmxoPcoNMRVm5DGX0+U7kwtm21Ubh+qJ5tz+kVk5LnuBiBhpkWDp2L+OjYmu9D57NrQbKhj0Tvrtu/SzdXaA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/core-win32-x64": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-x64/-/core-win32-x64-0.8.2.tgz", + "integrity": "sha512-Tc7eNcNSlkHPB1p/9NBqQkexq/vznOPzB6V7G/kGq08y5LtOXPL0zLMJoIMNV/l52gNvv/YEi6mcBLLnpkD9Rg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT AND LGPL-2.1-or-later", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/keymap": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/keymap/-/keymap-0.4.5.tgz", + "integrity": "sha512-S1wzKHhF70zT6bH+VBFY+lSeTImLcIFW28JNQiME8MoPcy6KGPs7rKFSHrb/U7P8rsTJeRfW5A4d1Cy6PKodDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@opentui/core": "0.4.5" + }, + "peerDependencies": { + "@opentui/react": "0.4.5", + "@opentui/solid": "0.4.5", + "react": ">=19.2.0", + "solid-js": "1.9.12" + }, + "peerDependenciesMeta": { + "@opentui/react": { + "optional": true + }, + "@opentui/solid": { + "optional": true + }, + "react": { + "optional": true + }, + "solid-js": { + "optional": true + } + } + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core/-/core-0.4.5.tgz", + "integrity": "sha512-JsgRTPkA6e+Vxmumxai6SElOSlRQkbzNKHlCfemlArRiLhfC1IZ9RXJo2QH4xSu+uBOWAM90uss73/pPlkdEig==", + "dev": true, + "license": "MIT", + "dependencies": { + "bun-ffi-structs": "0.2.4", + "diff": "9.0.0", + "marked": "17.0.1", + "string-width": "7.2.0", + "strip-ansi": "7.1.2" + }, + "optionalDependencies": { + "@opentui/core-darwin-arm64": "0.4.5", + "@opentui/core-darwin-x64": "0.4.5", + "@opentui/core-linux-arm64": "0.4.5", + "@opentui/core-linux-arm64-musl": "0.4.5", + "@opentui/core-linux-x64": "0.4.5", + "@opentui/core-linux-x64-musl": "0.4.5", + "@opentui/core-win32-arm64": "0.4.5", + "@opentui/core-win32-x64": "0.4.5" + }, + "peerDependencies": { + "web-tree-sitter": "0.25.10" + } + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-darwin-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-arm64/-/core-darwin-arm64-0.4.5.tgz", + "integrity": "sha512-8KUG0oRidnR+oW1RSZJ72/PhZLl+qRRMk5U/mieF4c0SJ5V3tYACpBZAKzQfHNd1f7QzD8FHZct1lPpQgtmkWg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-darwin-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-x64/-/core-darwin-x64-0.4.5.tgz", + "integrity": "sha512-R2bocsg55gwjOqCp/MWFgFYzRmsduKegB6nzgFAPCvAD/L5Jf30xpWJWFlSg3x8vxe1L9WJ84dfqa4M7mZZ3wA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-linux-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64/-/core-linux-arm64-0.4.5.tgz", + "integrity": "sha512-R4MZ25a4CzOAGVjW9aj1hUfzQGVfCJwrwBDbNs2SXaIvzcZqkxCVtU4FoQ5LsaD0j/BdNQVg2CIfFkFsm1fDuQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-linux-arm64-musl": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64-musl/-/core-linux-arm64-musl-0.4.5.tgz", + "integrity": "sha512-ieqdyKI6EIYPalYAETB2wsdP83hr5Ifi+dFnBFUmdEEFHsoKwBmn2S7bsTOYlX7Bg03F4/YPIg+IvRpeC+cUJw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-linux-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64/-/core-linux-x64-0.4.5.tgz", + "integrity": "sha512-SNyuQoxMKI1vuJhgxSSW96adWM6LqFl2SoS3GM4tGeneGOanVVG2Y06PvlytXvF4cKik97t0rqkVMRetmOs93w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-linux-x64-musl": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64-musl/-/core-linux-x64-musl-0.4.5.tgz", + "integrity": "sha512-mKVKcIcPiSVVZZsdPSBoWwoa2/TCeQAaMDeHF7PFw2kt5bTXZPP7xxWfRQLCNIcA1eaGl59UuwUWHDR2Ve548Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-win32-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-arm64/-/core-win32-arm64-0.4.5.tgz", + "integrity": "sha512-GHTTsqeR45q2Iek9Rb7ty+x/hAKn2jZ1ujlCgPR8LBKyF7h0E1dNFryoZ7ehMc3kJndP1sKn836IemKFqxuDdQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/keymap/node_modules/@opentui/core-win32-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-x64/-/core-win32-x64-0.4.5.tgz", + "integrity": "sha512-Y8T/yXCDGagRGiQrtmuB6AhRcPucKFs/Dre3v8kJwNYqDccI4FzUPKclZ7djfmRZNjl7JUqPhZZP/PwDpQocMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/keymap/node_modules/bun-ffi-structs": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/bun-ffi-structs/-/bun-ffi-structs-0.2.4.tgz", + "integrity": "sha512-AJzsqoVFs1KBbJbWHIYrVZLDC3NhTqqh25awRXqzoLzmBAKr5oqk6+CwuYHAekKx+VBCYVohBoKuRq40dV+TYg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "typescript": "^5" + } + }, + "node_modules/@opentui/solid": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/solid/-/solid-0.4.5.tgz", + "integrity": "sha512-B0RSkXnrtPVfEJOX+Hj+axjLJ3lzbG1BZw5I7Pvb9OPp48Vzg2cW2a3cSa86/q48ndLt647i/XwFPIw/jqnI5g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "7.28.0", + "@babel/preset-typescript": "7.27.1", + "@opentui/core": "0.4.5", + "babel-plugin-module-resolver": "5.0.2", + "babel-preset-solid": "1.9.12", + "entities": "7.0.1", + "s-js": "^0.4.9" + }, + "peerDependencies": { + "solid-js": "1.9.12" + } + }, + "node_modules/@opentui/solid/node_modules/@opentui/core": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core/-/core-0.4.5.tgz", + "integrity": "sha512-JsgRTPkA6e+Vxmumxai6SElOSlRQkbzNKHlCfemlArRiLhfC1IZ9RXJo2QH4xSu+uBOWAM90uss73/pPlkdEig==", + "dev": true, + "license": "MIT", + "dependencies": { + "bun-ffi-structs": "0.2.4", + "diff": "9.0.0", + "marked": "17.0.1", + "string-width": "7.2.0", + "strip-ansi": "7.1.2" + }, + "optionalDependencies": { + "@opentui/core-darwin-arm64": "0.4.5", + "@opentui/core-darwin-x64": "0.4.5", + "@opentui/core-linux-arm64": "0.4.5", + "@opentui/core-linux-arm64-musl": "0.4.5", + "@opentui/core-linux-x64": "0.4.5", + "@opentui/core-linux-x64-musl": "0.4.5", + "@opentui/core-win32-arm64": "0.4.5", + "@opentui/core-win32-x64": "0.4.5" + }, + "peerDependencies": { + "web-tree-sitter": "0.25.10" + } + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-darwin-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-arm64/-/core-darwin-arm64-0.4.5.tgz", + "integrity": "sha512-8KUG0oRidnR+oW1RSZJ72/PhZLl+qRRMk5U/mieF4c0SJ5V3tYACpBZAKzQfHNd1f7QzD8FHZct1lPpQgtmkWg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-darwin-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-darwin-x64/-/core-darwin-x64-0.4.5.tgz", + "integrity": "sha512-R2bocsg55gwjOqCp/MWFgFYzRmsduKegB6nzgFAPCvAD/L5Jf30xpWJWFlSg3x8vxe1L9WJ84dfqa4M7mZZ3wA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-linux-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64/-/core-linux-arm64-0.4.5.tgz", + "integrity": "sha512-R4MZ25a4CzOAGVjW9aj1hUfzQGVfCJwrwBDbNs2SXaIvzcZqkxCVtU4FoQ5LsaD0j/BdNQVg2CIfFkFsm1fDuQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-linux-arm64-musl": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-arm64-musl/-/core-linux-arm64-musl-0.4.5.tgz", + "integrity": "sha512-ieqdyKI6EIYPalYAETB2wsdP83hr5Ifi+dFnBFUmdEEFHsoKwBmn2S7bsTOYlX7Bg03F4/YPIg+IvRpeC+cUJw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-linux-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64/-/core-linux-x64-0.4.5.tgz", + "integrity": "sha512-SNyuQoxMKI1vuJhgxSSW96adWM6LqFl2SoS3GM4tGeneGOanVVG2Y06PvlytXvF4cKik97t0rqkVMRetmOs93w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-linux-x64-musl": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-linux-x64-musl/-/core-linux-x64-musl-0.4.5.tgz", + "integrity": "sha512-mKVKcIcPiSVVZZsdPSBoWwoa2/TCeQAaMDeHF7PFw2kt5bTXZPP7xxWfRQLCNIcA1eaGl59UuwUWHDR2Ve548Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-win32-arm64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-arm64/-/core-win32-arm64-0.4.5.tgz", + "integrity": "sha512-GHTTsqeR45q2Iek9Rb7ty+x/hAKn2jZ1ujlCgPR8LBKyF7h0E1dNFryoZ7ehMc3kJndP1sKn836IemKFqxuDdQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/solid/node_modules/@opentui/core-win32-x64": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/@opentui/core-win32-x64/-/core-win32-x64-0.4.5.tgz", + "integrity": "sha512-Y8T/yXCDGagRGiQrtmuB6AhRcPucKFs/Dre3v8kJwNYqDccI4FzUPKclZ7djfmRZNjl7JUqPhZZP/PwDpQocMg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@opentui/solid/node_modules/bun-ffi-structs": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/bun-ffi-structs/-/bun-ffi-structs-0.2.4.tgz", + "integrity": "sha512-AJzsqoVFs1KBbJbWHIYrVZLDC3NhTqqh25awRXqzoLzmBAKr5oqk6+CwuYHAekKx+VBCYVohBoKuRq40dV+TYg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "typescript": "^5" + } + }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@playwright/test": { + "version": "1.57.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.57.0.tgz", + "integrity": "sha512-6TyEnHgd6SArQO8UO2OMTxshln3QMWBtPGrOCgs3wVEmQmwyuNtB10IZMfmYDE0riwNR1cu4q+pPcxMVtaG3TA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright": "1.57.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.0-beta.27", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", + "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.67.4", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.67.4.tgz", + "integrity": "sha512-wL7MS4r0fYcxluF3ne2plofHZiB/LsqNCnyaUlyiKpAJLb6agPSFz7DEFCfkonWAZXMrLwCmC08b2ZEnEdJkog==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@sigstore/bundle": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@sigstore/bundle/-/bundle-4.0.0.tgz", + "integrity": "sha512-NwCl5Y0V6Di0NexvkTqdoVfmjTaQwoLM236r89KEojGmq/jMls8S+zb7yOwAPdXvbwfKDlP+lmXgAL4vKSQT+A==", + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.5.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@sigstore/core": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@sigstore/core/-/core-3.2.1.tgz", + "integrity": "sha512-qRsxPnCrbC/puegGxKuynfnxgLiHqWStrSjxkoB4YKqq3Z3s4cyZyj42ZdWFAEblNP65C+rBH8EuREHIXoi83g==", + "license": "Apache-2.0", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@sigstore/protobuf-specs": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@sigstore/protobuf-specs/-/protobuf-specs-0.5.2.tgz", + "integrity": "sha512-SQqvFMt4V78fdjcDdYX6HbiVSOR4QK3ZgwCa2KOsopAgPIHy1rU5UDUmzLl02r5oyyaYcYHR1hpwDRk/yUe+Mw==", + "license": "Apache-2.0", + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/@sigstore/sign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@sigstore/sign/-/sign-4.1.1.tgz", + "integrity": "sha512-Hf4xglukg0XXQ2RiD5vSoLjdPe8OBUPA8XeVjUObheuDcWdYWrnH/BNmxZCzkAy68MzmNCxXLeurJvs6hcP2OQ==", + "license": "Apache-2.0", + "dependencies": { + "@gar/promise-retry": "^1.0.2", + "@sigstore/bundle": "^4.0.0", + "@sigstore/core": "^3.2.0", + "@sigstore/protobuf-specs": "^0.5.0", + "make-fetch-happen": "^15.0.4", + "proc-log": "^6.1.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@sigstore/tuf": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@sigstore/tuf/-/tuf-4.0.2.tgz", + "integrity": "sha512-TCAzTy0xzdP79EnxSjq9KQ3eaR7+FmudLC6eRKknVKZbV7ZNlGLClAAQb/HMNJ5n2OBNk2GT1tEmU0xuPr+SLQ==", + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.5.0", + "tuf-js": "^4.1.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@sigstore/verify": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@sigstore/verify/-/verify-3.1.1.tgz", + "integrity": "sha512-qv7+G3J2cc6wwFj3yKvXOamzqhMwSk1ogPGmhpS8iXllcPrJaIIBA+4HbttlHVu1pqWTdmaCH/WE7UOC51kdoA==", + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^4.0.0", + "@sigstore/core": "^3.2.1", + "@sigstore/protobuf-specs": "^0.5.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@smithy/core": { + "version": "3.38.1", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.38.1.tgz", + "integrity": "sha512-U/mB2XiwTLaf+NSgLSWwJfptsMT/H8aBi0aTAA/E5e2/TagFeGCqAyhKGG0w0A9IWTkm4qYEmLoD/HB6aYfnRA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/credential-provider-imds": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.5.2.tgz", + "integrity": "sha512-A9uSdn72ozbRUSit0eib0TW7nXuNPlaeM0zcGkJ+nE6tFcSDbnmtwoxbTCFBukVQcszDAyvsd7+rTduPTXpygg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.33.2", + "@smithy/types": "^4.17.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/eventstream-codec": { + "version": "4.2.14", + "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.2.14.tgz", + "integrity": "sha512-erZq0nOIpzfeZdCyzZjdJb4nVSKLUmSkaQUVkRGQTXs30gyUGeKnrYEg+Xe1W5gE3aReS7IgsvANwVPxSzY6Pw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/crc32": "5.2.0", + "@smithy/types": "^4.14.1", + "@smithy/util-hex-encoding": "^4.2.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/fetch-http-handler": { + "version": "5.8.0", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.8.0.tgz", + "integrity": "sha512-ycSJu3tFAQ4v04CBB0agqFMVsSQ1iG3yw+SpgxRqKfaURpQD4CZ8Wn0zPMmSnOuTpTh65Vz+EA0rMrw089wvkA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.33.3", + "@smithy/types": "^4.18.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/is-array-buffer": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz", + "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@smithy/node-http-handler": { + "version": "4.14.1", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.14.1.tgz", + "integrity": "sha512-/T6E1jzCL0fErS9uq8JqES/5yYQQ4ppVmmYHwXw2nlov8KFzLb+3QqHR5iAun1BsuAB50IPxZliV8YMgghLwhA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.38.1", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/signature-v4": { + "version": "5.7.5", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.7.5.tgz", + "integrity": "sha512-WPjdr5oWOk1LArpI4pavu+fSo+/evi0Re1olxGvqwuZopd4gYR1UGCi+Soyn/IjmafqbWs+ZC+3AKxJS3ZpwUg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.38.0", + "@smithy/types": "^4.19.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/types": { + "version": "4.19.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.19.0.tgz", + "integrity": "sha512-r7jh49VJxGerfAcTQA6gXcKc+98zOp/tqRwzYjgOE+iSQsP6cEU1hq2QzbuipmP68QtYdY9wKEhiCQZIzHgZ4Q==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-buffer-from": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.5.2.tgz", + "integrity": "sha512-nxu3SgmAw9JXT2CtkU0m/XNLWpP9MsaBx1zAGAypCbYj15tIFlmcYwpF+Oh18le83d+IM9PT7ENdXnE4C+d5mA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.33.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-hex-encoding": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.5.2.tgz", + "integrity": "sha512-iq+cW3mAb7vfcxEEpYi3zXKpDtbrIFyanWjQl4zBq4seWD4OSxXDWSfespZxenX6aEaighn+NR3u1nU1DSvs3w==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.33.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@smithy/util-utf8": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.2.2.tgz", + "integrity": "sha512-75MeYpjdWRe8M5E3AW0O4Cx3UadweS+cwdXjwYGBW5h/gxxnbeZ877sLPX/ZJA9GVTlL/qG0dXP29JWFCD1Ayw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^4.2.2", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@standard-schema/spec": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", + "integrity": "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==", + "license": "MIT" + }, + "node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz", + "integrity": "sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA==", + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/@tufjs/models": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@tufjs/models/-/models-4.1.0.tgz", + "integrity": "sha512-Y8cK9aggNRsqJVaKUlEYs4s7CvQ1b1ta2DVPyAimb0I2qhzjNk+A+mxvll/klL0RlfuIUei8BF7YWiua4kQqww==", + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^10.1.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/bun": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.4.4.tgz", + "integrity": "sha512-9wkRDXUXK124pEnAutE6n/l18j+i9GC5IAHK8TmX/2nlySETmky0OU6yL5U8pW1AoKh++AN9auDCr647BfurjQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "bun-types": "1.4.4" + } + }, + "node_modules/@types/estree": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.10.tgz", + "integrity": "sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jsdom": { + "version": "27.0.0", + "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-27.0.0.tgz", + "integrity": "sha512-NZyFl/PViwKzdEkQg96gtnB8wm+1ljhdDay9ahn4hgb+SfVtPCbm3TlmDUFXTA+MGN3CijicnMhG18SI5H3rFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } + }, + "node_modules/@types/node": { + "version": "26.6.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", + "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.15", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz", + "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.3.31", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.31.tgz", + "integrity": "sha512-vfEqpXTvwT91yhmwdfouStN2hSKwTvyRs8qpLfADyrq/kxDw0hZM7Wk9Ug1FELj8hIby+S/+kQCSRFF32nv2Qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.2.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.3.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", + "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^18.0.0" + } + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/whatwg-mimetype": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/whatwg-mimetype/-/whatwg-mimetype-3.0.2.tgz", + "integrity": "sha512-c2AKvDT8ToxLIOUlN51gTiHXflsfIFisS4pO7pDPoKouJCESkhZnEy623gwP9laCy5lnLDAw1vAzu2vM2YLOrA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "8.18.2", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.2.tgz", + "integrity": "sha512-67MQl+fpWKVTT1NYdnmo3U4sc/xPo/zQBncVnI74qmQa0z/b+1g6iYqNmGCPbxO+zz2aklb08a0oHfegiVd0/w==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@vitejs/plugin-react": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", + "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.28.0", + "@babel/plugin-transform-react-jsx-self": "^7.27.1", + "@babel/plugin-transform-react-jsx-source": "^7.27.1", + "@rolldown/pluginutils": "1.0.0-beta.27", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.17.0" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0" + } + }, + "node_modules/@xterm/addon-fit": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@xterm/addon-fit/-/addon-fit-0.11.0.tgz", + "integrity": "sha512-jYcgT6xtVYhnhgxh3QgYDnnNMYTcf8ElbxxFzX0IZo+vabQqSPAjC3c1wJrKB5E19VwQei89QCiZZP86DCPF7g==", + "dev": true, + "license": "MIT" + }, + "node_modules/@xterm/addon-serialize": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/@xterm/addon-serialize/-/addon-serialize-0.14.0.tgz", + "integrity": "sha512-uteyTU1EkrQa2Ux6P/uFl2fzmXI46jy5uoQMKEOM0fKTyiW7cSn0WrFenHm5vO5uEXX/GpwW/FgILvv3r0WbkA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@xterm/xterm": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@xterm/xterm/-/xterm-6.0.0.tgz", + "integrity": "sha512-TQwDdQGtwwDt+2cgKDLn0IRaSxYu1tSUjgKarSDkUM0ZNiSRXFpjxEsvc/Zgc5kq5omJ+V0a8/kIM2WD3sMOYg==", + "dev": true, + "license": "MIT", + "workspaces": [ + "addons/*" + ] + }, + "node_modules/abbrev": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", + "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/agent-base": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz", + "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==", + "license": "MIT", + "engines": { + "node": ">= 14" + } + }, + "node_modules/ansi-regex": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.5.0.tgz", + "integrity": "sha512-zhvbbbdt1kbw7EJ9OQoxmQcuaNR9P5kTj7e/YdmOSU10aHWbycofJxA6jKfoEy3vlLdctOF9ZHaxLtmSm998wQ==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/aws4fetch": { + "version": "1.0.20", + "resolved": "https://registry.npmjs.org/aws4fetch/-/aws4fetch-1.0.20.tgz", + "integrity": "sha512-/djoAN709iY65ETD6LKCtyyEI04XIBP5xVvfmNxsEP0uJB5tyaGBztSryRr4HqMStr9R06PisQE7m9zDTXKu6g==", + "license": "MIT" + }, + "node_modules/babel-plugin-jsx-dom-expressions": { + "version": "0.40.11", + "resolved": "https://registry.npmjs.org/babel-plugin-jsx-dom-expressions/-/babel-plugin-jsx-dom-expressions-0.40.11.tgz", + "integrity": "sha512-k7TkOv7uVYnrq/bYyVvG5cWOC9IObAGfmyW3aMkG8l2sq2qt/5THkUBja69PMLEGGi8G+fXB2Fh7eS4OwZRBoQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "7.18.6", + "@babel/plugin-syntax-jsx": "^7.18.6", + "@babel/types": "^7.20.7", + "html-entities": "2.3.3", + "parse5": "^7.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.20.12" + } + }, + "node_modules/babel-plugin-jsx-dom-expressions/node_modules/@babel/helper-module-imports": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", + "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/babel-plugin-module-resolver": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-5.0.2.tgz", + "integrity": "sha512-9KtaCazHee2xc0ibfqsDeamwDps6FZNo5S0Q81dUqEuFzVwPhcT4J5jOqIVvgCA3Q/wO9hKYxN/Ds3tIsp5ygg==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-babel-config": "^2.1.1", + "glob": "^9.3.3", + "pkg-up": "^3.1.0", + "reselect": "^4.1.7", + "resolve": "^1.22.8" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/babel-plugin-module-resolver/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/glob": { + "version": "9.3.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz", + "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "minimatch": "^8.0.2", + "minipass": "^4.2.4", + "path-scurry": "^1.6.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/babel-plugin-module-resolver/node_modules/minimatch": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.7.tgz", + "integrity": "sha512-V+1uQNdzybxa14e/p00HZnQNNcTjnRJjDxg2V8wtkjFctq4M7hXFws4oekyTP0Jebeq7QYtpFyOeBAjc88zvYg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/minipass": { + "version": "4.2.8", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz", + "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/babel-plugin-module-resolver/node_modules/path-scurry/node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/babel-preset-solid": { + "version": "1.9.12", + "resolved": "https://registry.npmjs.org/babel-preset-solid/-/babel-preset-solid-1.9.12.tgz", + "integrity": "sha512-LLqnuKVDlKpyBlMPcH6qEvs/wmS9a+NczppxJ3ryS/c0O5IiSFOIBQi9GzyiGDSbcJpx4Gr87jyFTos1MyEuWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jsx-dom-expressions": "^0.40.6" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "solid-js": "^1.9.12" + }, + "peerDependenciesMeta": { + "solid-js": { + "optional": true + } + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.35", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.35.tgz", + "integrity": "sha512-GNk8KX52CHqeNKGk8+7tZnQab/2k1t/BgrUHPKNdijzpEhF1saPQZHVKb6m5loSAxB39gyrTYw34Qf9CQ3u1qQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/bidi-js": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.1.0.tgz", + "integrity": "sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "require-from-string": "^2.0.2" + } + }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/bin-links": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/bin-links/-/bin-links-6.0.3.tgz", + "integrity": "sha512-Qg5FD7/YSReWJB1zaM8VIi1l4O637JKK/WPaF/JzJGy/9FcMDWtSklF0dOX5S9X2OMrPGhifIHIKuwtHG0IGFg==", + "license": "ISC", + "dependencies": { + "cmd-shim": "^8.0.0", + "npm-normalize-package-bin": "^5.0.0", + "proc-log": "^6.0.0", + "read-cmd-shim": "^6.0.0", + "write-file-atomic": "^7.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/bowser": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.15.0.tgz", + "integrity": "sha512-xic6KSZglg/I4ymp45fdM4GWfYpBK79Fxd/TOvJktlaPgQqqDxvmGwOPZl2V0dyeS3Lj5c180bLhXF43iyAjZQ==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/browserslist": { + "version": "4.29.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.5.tgz", + "integrity": "sha512-khTmKu5NGYTotqcYo8Bew2k4RAE9PuXRSFRXG2lQBrCEQHyeQ/vX6gKMxfokwywBsLiXZMnHsmWMG1pnO8J7uQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.33", + "caniuse-lite": "^1.0.30001819", + "electron-to-chromium": "^1.5.464", + "node-releases": "^2.0.60", + "update-browserslist-db": "^1.3.4" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/buffer-image-size": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/buffer-image-size/-/buffer-image-size-0.6.4.tgz", + "integrity": "sha512-nEh+kZOPY1w+gcCMobZ6ETUp9WfibndnosbpwB1iJk/8Gt5ZF2bhS6+B6bPYz424KtwsR6Rflc3tCz1/ghX2dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/bun-ffi-structs": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/bun-ffi-structs/-/bun-ffi-structs-0.3.1.tgz", + "integrity": "sha512-3gM7PpVWLyrwxWjcilSiGuhWanhZivvo6l0u573NziPH6f/gwk6McbaYgn7oJWov6pKGRTDbrg94W5DcJsKTtQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "typescript": "^5" + } + }, + "node_modules/bun-pty": { + "version": "0.4.11", + "resolved": "https://registry.npmjs.org/bun-pty/-/bun-pty-0.4.11.tgz", + "integrity": "sha512-DpBfXCoWbcDziqL4gT3sFw/O6vfe2Gm1LmsnjfGjpqNhmsPjBcVorTrRv7OVATsy88PiXfn486vp0w4x3/Q84g==", + "license": "MIT", + "engines": { + "bun": ">=1.0.0" + } + }, + "node_modules/bun-types": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.4.4.tgz", + "integrity": "sha512-yjrJh5oGX7mMPKGd19YXyIjmEuj4G4zNC30bs7PM9Az7NQ3ndF3j6hbeRdvJTRQEhJ/FYQwW0a2moweEi2hMxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "undici-types": "*" + } + }, + "node_modules/bundle-name": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", + "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==", + "license": "MIT", + "dependencies": { + "run-applescript": "^7.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacache": { + "version": "20.0.4", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-20.0.4.tgz", + "integrity": "sha512-M3Lab8NPYlZU2exsL3bMVvMrMqgwCnMWfdZbK28bn3pK6APT/Te/I8hjRPNu1uwORY9a1eEQoifXbKPQMfMTOA==", + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^5.0.0", + "fs-minipass": "^3.0.0", + "glob": "^13.0.0", + "lru-cache": "^11.1.0", + "minipass": "^7.0.3", + "minipass-collect": "^2.0.1", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^7.0.2", + "ssri": "^13.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001820", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001820.tgz", + "integrity": "sha512-gfWD6MxqVCqAOwmODfZf7DchWvlrA+SRdNX7ceLfg3xRqe5ssjjpF7EgslC/0tiLiNTajdaNN/q8c/5u/7Gz8w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chownr": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz", + "integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/ci-info": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz", + "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cmd-shim": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-8.0.0.tgz", + "integrity": "sha512-Jk/BK6NCapZ58BKUxlSI+ouKRbjH1NLZCgJkYoab+vEHUY3f6OzpNBN9u7HFSv9J6TRDGs4PLOHezoKGaFRSCA==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/common-ancestor-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/common-ancestor-path/-/common-ancestor-path-2.0.0.tgz", + "integrity": "sha512-dnN3ibLeoRf2HNC+OlCiNc5d2zxbLJXOtiZUudNFSXZrNSydxcCsSpRzXwfu7BBWCIfHPw+xTayeBvJCP/D8Ng==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">= 18" + } + }, + "node_modules/content-type": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-2.1.0.tgz", + "integrity": "sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cross-spawn/node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/css-tree": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz", + "integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.27.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssstyle": { + "version": "5.3.7", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-5.3.7.tgz", + "integrity": "sha512-7D2EPVltRrsTkhpQmksIu+LxeWAIEk6wRDMJ1qljlv+CKHJM+cJLlfhWIzNA44eAsHXSNe3+vO6DW1yCYx8SuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@asamuzakjp/css-color": "^4.1.1", + "@csstools/css-syntax-patches-for-csstree": "^1.0.21", + "css-tree": "^3.1.0", + "lru-cache": "^11.2.4" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/data-urls": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-6.0.1.tgz", + "integrity": "sha512-euIQENZg6x8mj3fO6o9+fOW8MimUI4PpD/fZBhJfeioZVy9TUpM4UY7KjQNVZFlqwJ0UdzRDzkycB997HEq1BQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "whatwg-mimetype": "^5.0.0", + "whatwg-url": "^15.1.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/data-urls/node_modules/whatwg-mimetype": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz", + "integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz", + "integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==", + "dev": true, + "license": "MIT" + }, + "node_modules/default-browser": { + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", + "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==", + "license": "MIT", + "dependencies": { + "bundle-name": "^4.1.0", + "default-browser-id": "^5.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/default-browser-id": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz", + "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/define-lazy-prop": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", + "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-9.0.0.tgz", + "integrity": "sha512-svtcdpS8CgJyqAjEQIXdb3OjhFVVYjzGAPO8WGCmRbrml64SPw/jJD4GoE98aR7r25A0XcgrK3F02yw9R/vhQw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "license": "MIT" + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/effect": { + "version": "4.0.0-beta.83", + "resolved": "https://registry.npmjs.org/effect/-/effect-4.0.0-beta.83.tgz", + "integrity": "sha512-0wsak8RtgGAr9UWSbVDgJHZcUqMSvicHcvaZv1MbMM7MCGgW4Rn/137J1MHQbwYPcwYGxT/IqehFd+UbYuj78w==", + "license": "MIT", + "dependencies": { + "@standard-schema/spec": "^1.1.0", + "fast-check": "^4.8.0", + "find-my-way-ts": "^0.1.6", + "ini": "^7.0.0", + "kubernetes-types": "^1.30.0", + "msgpackr": "^2.0.1", + "multipasta": "^0.2.7", + "toml": "^4.1.1", + "uuid": "^14.0.0", + "yaml": "^2.9.0" + } + }, + "node_modules/effect/node_modules/ini": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-7.0.0.tgz", + "integrity": "sha512-ifK0CgjALofS5bkrcTy4RaQ9Vx2Knf/eLeIO+NaswQEpH1UblrtTSCIvN71qQDMq0PeQ/SSPojvEJp9vvvfr+w==", + "license": "ISC", + "engines": { + "node": "^22.22.2 || ^24.15.0 || >=26.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.475", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.475.tgz", + "integrity": "sha512-S9tceHJbIsHH8VRwh9x+8lJO50SYwTdwVGdEjdz2FERyP59j1N6rdXOSklIusrhxt9GG/WN4V/kRgmDHl9MM5w==", + "dev": true, + "license": "ISC" + }, + "node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "dev": true, + "license": "MIT" + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "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" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/exponential-backoff": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/exponential-backoff/-/exponential-backoff-3.1.3.tgz", + "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==", + "license": "Apache-2.0" + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", + "license": "MIT" + }, + "node_modules/fast-check": { + "version": "4.10.2", + "resolved": "https://registry.npmjs.org/fast-check/-/fast-check-4.10.2.tgz", + "integrity": "sha512-iK2f+YrcmoeGqk6fA0ea2bptcu/itMIm4NfEozq6N25+aG6h7s5HZbB/k1aV7b5w5sFLMCbbtRUsTVR+BgC3xw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT", + "dependencies": { + "pure-rand": "^8.0.0" + }, + "engines": { + "node": ">=12.17.0" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, + "node_modules/find-babel-config": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/find-babel-config/-/find-babel-config-2.1.2.tgz", + "integrity": "sha512-ZfZp1rQyp4gyuxqt1ZqjFGVeVBvmpURMqdIWXbPRfB97Bf6BzdK/xSIbylEINzQ0kB5tlDQfn9HkNXXWsqTqLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "json5": "^2.2.3" + } + }, + "node_modules/find-my-way-ts": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/find-my-way-ts/-/find-my-way-ts-0.1.6.tgz", + "integrity": "sha512-a85L9ZoXtNAey3Y6Z+eBWW658kO/MwR7zIafkIUPUMf3isZG0NCs2pjW2wtjxAKuJPxMAsHUIP4ZPGv0o5gyTA==", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/foreground-child": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz", + "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.6", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, + "node_modules/fs-minipass": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-3.0.3.tgz", + "integrity": "sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw==", + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gaxios": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz", + "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==", + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gcp-metadata": { + "version": "8.1.4", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.4.tgz", + "integrity": "sha512-iJ9KMsiu+xKtNRX0PmGLSaIU3bUBAyzWTyqKemKPzNPsmmsBCQYmlNg+brEbES7IHSXtdVwzBPzx1vz3FAaipw==", + "license": "Apache-2.0", + "dependencies": { + "gaxios": "7.1.3", + "google-logging-utils": "1.1.3", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gcp-metadata/node_modules/gaxios": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.3.tgz", + "integrity": "sha512-YGGyuEdVIjqxkxVH1pUTMY/XtmmsApXrCVv5EU25iX6inEPbV+VakJfLealkBtJN69AQmh1eGOdCl9Sm1UP6XQ==", + "license": "Apache-2.0", + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2", + "rimraf": "^5.0.1" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gcp-metadata/node_modules/google-logging-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", + "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "13.0.5", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.5.tgz", + "integrity": "sha512-BzXxZg24Ibra1pbQ/zE7Kys4Ua1ks7Bn6pKLkVPZ9FZe4JQS6/Q7ef3LG1H+k7lUf5l4T3PLSyYyYJVYUvfgTw==", + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.1", + "minipass": "^7.1.2", + "path-scurry": "^2.0.0" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/google-auth-library": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.5.0.tgz", + "integrity": "sha512-7ABviyMOlX5hIVD60YOfHw4/CxOfBhyduaYB+wbFWCWoni4N7SLcV46hrVRktuBbZjFC9ONyqamZITN7q3n32w==", + "license": "Apache-2.0", + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^7.0.0", + "gcp-metadata": "^8.0.0", + "google-logging-utils": "^1.0.0", + "gtoken": "^8.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/google-logging-utils": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.2.0.tgz", + "integrity": "sha512-WE9av4wKDZgRjBwgVUabocx8T6/7o3Ca1Fat46FXDhXVAFibzNadedcOXrdgd1Kzmk8tsk/9ZH89Wyf/SqeZ3A==", + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/gtoken": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz", + "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==", + "license": "MIT", + "dependencies": { + "gaxios": "^7.0.0", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/happy-dom": { + "version": "20.14.6", + "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-20.14.6.tgz", + "integrity": "sha512-5DDsf4QmEIlRL6NkCv/fxSjYHHkZceL/IaYQdJc2h3G7DRTEai++VTjbfL0LB9geW2VrA3+vrjF3Efx+OTtX0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": ">=20.0.0", + "@types/whatwg-mimetype": "^3.0.2", + "@types/ws": "^8.18.1", + "buffer-image-size": "^0.6.4", + "entities": "^7.0.1", + "whatwg-mimetype": "^3.0.0", + "ws": "^8.21.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hosted-git-info": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-9.0.3.tgz", + "integrity": "sha512-Hc+ghLoSt6QaYZUv0WBiIvmMDZuZZ7oaDvdH8MbfOO4lOsxdXLEvuC6ePoGs9H1X9oCLyq6+NVN0MKqD+ydxyg==", + "license": "ISC", + "dependencies": { + "lru-cache": "^11.1.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz", + "integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@exodus/bytes": "^1.6.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + } + }, + "node_modules/html-entities": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", + "dev": true, + "license": "MIT" + }, + "node_modules/http-cache-semantics": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz", + "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==", + "license": "BSD-2-Clause" + }, + "node_modules/http-proxy-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", + "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/https-proxy-agent": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz", + "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ignore-walk": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-8.0.0.tgz", + "integrity": "sha512-FCeMZT4NiRQGh+YkeKMtWrOmBgWjHjMJ26WQWrRQyoyzqevdaGSakUaJW5xQYmjLlUVk2qUnCjYVBax9EKKg8A==", + "license": "ISC", + "dependencies": { + "minimatch": "^10.0.3" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/ini": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-6.0.0.tgz", + "integrity": "sha512-IBTdIkzZNOpqm7q3dRqJvMaldXjDHWkEDfrwGEQTs5eaQMWV+djAhR+wahyNNMAa+qpbDUhBMVt4ZKNwpPm7xQ==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/ip-address": { + "version": "10.7.6", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.6.tgz", + "integrity": "sha512-00LYkM6byILa9eQIx6qoaXCM40xTLd56AZ4vyaPW3YTyb49VZYPo5xsiAq4tuQ54GH4R7gVdYScJ1B7B77PuTg==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/is-core-module": { + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.18.0.tgz", + "integrity": "sha512-qyax9fgaKOEC4qK8WZn7Q4IcoZC9RC1O1fFxRcRTq/oMMkWT/uXpqpXa12kzWR409zAt1drYN9N9BO26UmBCmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", + "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-in-ssh": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz", + "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-inside-container": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz", + "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==", + "license": "MIT", + "dependencies": { + "is-docker": "^3.0.0" + }, + "bin": { + "is-inside-container": "cli.js" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-wsl": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", + "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==", + "license": "MIT", + "dependencies": { + "is-inside-container": "^1.0.0" + }, + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", + "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=20" + } + }, + "node_modules/jackspeak": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", + "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/jsdom": { + "version": "27.4.0", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-27.4.0.tgz", + "integrity": "sha512-mjzqwWRD9Y1J1KUi7W97Gja1bwOOM5Ug0EZ6UDK3xS7j7mndrkwozHtSblfomlzyB4NepioNt+B2sOSzczVgtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@acemir/cssom": "^0.9.28", + "@asamuzakjp/dom-selector": "^6.7.6", + "@exodus/bytes": "^1.6.0", + "cssstyle": "^5.3.4", + "data-urls": "^6.0.0", + "decimal.js": "^10.6.0", + "html-encoding-sniffer": "^6.0.0", + "http-proxy-agent": "^7.0.2", + "https-proxy-agent": "^7.0.6", + "is-potential-custom-element-name": "^1.0.1", + "parse5": "^8.0.0", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^6.0.0", + "w3c-xmlserializer": "^5.0.0", + "webidl-conversions": "^8.0.0", + "whatwg-mimetype": "^4.0.0", + "whatwg-url": "^15.1.0", + "ws": "^8.18.3", + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=24.0.0" + }, + "peerDependencies": { + "canvas": "^3.0.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/entities": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz", + "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/jsdom/node_modules/parse5": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.0.tgz", + "integrity": "sha512-sq3qBFpee5jeocbFbO48VHlGr8sT7mbXS0vxlKN6sottBtJzrOG3998sr0llSZcQAGgfpdmEYAIZE0P9z0dE8w==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^9.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/jsdom/node_modules/whatwg-mimetype": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz", + "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-5.0.0.tgz", + "integrity": "sha512-ZF1nxZ28VhQouRWhUcVlUIN3qwSgPuswK05s/HIaoetAoE/9tngVmCHjSxmSQPav1nd+lPtTL0YZ/2AFdR/iYQ==", + "license": "MIT", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-stringify-nice": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz", + "integrity": "sha512-5Z5RFW63yxReJ7vANgW6eZFGWaQvnPE3WNmZoOJrSkGju2etKA2L5rrOa1sm877TVTFt57A80BH1bArcmlLfPw==", + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", + "engines": [ + "node >= 0.2.0" + ], + "license": "MIT" + }, + "node_modules/just-diff": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/just-diff/-/just-diff-6.0.2.tgz", + "integrity": "sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA==", + "license": "MIT" + }, + "node_modules/just-diff-apply": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/just-diff-apply/-/just-diff-apply-5.5.0.tgz", + "integrity": "sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw==", + "license": "MIT" + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "dependencies": { + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kubernetes-types": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/kubernetes-types/-/kubernetes-types-1.30.0.tgz", + "integrity": "sha512-Dew1okvhM/SQcIa2rcgujNndZwU8VnSapDgdxlYoB84ZlpAD43U6KLAFqYo17ykSFGHNPrg0qry0bP+GJd9v7Q==", + "license": "Apache-2.0" + }, + "node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/make-fetch-happen": { + "version": "15.0.6", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-15.0.6.tgz", + "integrity": "sha512-Je0fLJ0F5atA7F+eIlLzk+Wkcl57JDf4kf+EW8xiP5E31xOQxkIxTbgf1Oi1Lw9tRI9UEMRdI5Vz2xTzoNU1Jw==", + "license": "ISC", + "dependencies": { + "@gar/promise-retry": "^1.0.0", + "@npmcli/agent": "^4.0.0", + "@npmcli/redact": "^4.0.0", + "cacache": "^20.0.1", + "http-cache-semantics": "^4.1.1", + "minipass": "^7.0.2", + "minipass-fetch": "^5.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^1.0.0", + "proc-log": "^6.0.0", + "ssri": "^13.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/marked": { + "version": "17.0.1", + "resolved": "https://registry.npmjs.org/marked/-/marked-17.0.1.tgz", + "integrity": "sha512-boeBdiS0ghpWcSwoNm/jJBwdpFaMnZWRzjA6SkUMYb40SVaN1x7mmfGKp0jvexGcx+7y2La5zRZsYFZI6Qpypg==", + "dev": true, + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/mdn-data": { + "version": "2.27.1", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz", + "integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==", + "dev": true, + "license": "CC0-1.0" + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minipass-collect": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-2.0.1.tgz", + "integrity": "sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw==", + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minipass-fetch": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-5.0.2.tgz", + "integrity": "sha512-2d0q2a8eCi2IRg/IGubCNRJoYbA1+YPXAzQVRFmB45gdGZafyivnZ5YSEfo3JikbjGxOdntGFvBQGqaSMXlAFQ==", + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^2.0.0", + "minizlib": "^3.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + }, + "optionalDependencies": { + "iconv-lite": "^0.7.2" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.7.tgz", + "integrity": "sha512-TbqTz9cUwWyHS2Dy89P3ocAGUGxKjjLuR9z8w4WUTGAVgEj17/4nhgo2Du56i0Fm3Pm30g4iA8Lcqctc76jCzA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-flush/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-pipeline/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/minipass-sized": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-2.0.0.tgz", + "integrity": "sha512-zSsHhto5BcUVM2m1LurnXY6M//cGhVaegT71OfOXoprxT6o780GZd792ea6FfrQkuU4usHZIUczAQMRUE2plzA==", + "license": "ISC", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", + "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", + "license": "MIT", + "dependencies": { + "minipass": "^7.1.2" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/msgpackr": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-2.1.4.tgz", + "integrity": "sha512-TvP18sX5U3MXoHHSUZen/FagaNTEJObyb8OlnJcNbqN6Ux/oCwYJrHhCOzi31bItyW/Efz1IDnRDKQ23j4ZuvA==", + "license": "MIT", + "optionalDependencies": { + "msgpackr-extract": "^3.0.6" + } + }, + "node_modules/msgpackr-extract": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.6.tgz", + "integrity": "sha512-prUB8+Gc/1rEzaNo+3Rjo0Hdi6gFjQ9Td0mDsvAIkSGUyp6EADdEBiU71ZP5Mj4jCG+vai0qSNV+yisQAMYuSQ==", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "node-gyp-build-optional-packages": "5.2.2" + }, + "bin": { + "download-msgpackr-prebuilds": "bin/download-prebuilds.js" + }, + "optionalDependencies": { + "@msgpackr-extract/msgpackr-extract-darwin-arm64": "3.0.6", + "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.6", + "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.6", + "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.6", + "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.6", + "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.6" + } + }, + "node_modules/multipasta": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/multipasta/-/multipasta-0.2.9.tgz", + "integrity": "sha512-kAovZHgxryqb0xTFz7OTCPxbas8UBTTwCDhfrlaNecp1/z6xcMfp5PVhDxsW7jONHyDF10/ccp30MxA2+66GJw==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.20.tgz", + "integrity": "sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/negotiator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.1.0.tgz", + "integrity": "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==", + "license": "MIT", + "dependencies": { + "content-type": "^2.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "engines": { + "node": ">=10.5.0" + } + }, + "node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/node-gyp": { + "version": "12.4.0", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-12.4.0.tgz", + "integrity": "sha512-OMcPNvqTCFUnNaBlmdgq+lfNqY7gTiSmNRDjY3uAXRyudeKZEZxu3CLtjMQrx4zZxCX2b/mpNqTtwuCJgXhHkw==", + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "graceful-fs": "^4.2.6", + "nopt": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "tar": "^7.5.4", + "tinyglobby": "^0.2.12", + "undici": "^6.25.0", + "which": "^6.0.0" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/node-gyp-build-optional-packages": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz", + "integrity": "sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==", + "license": "MIT", + "optional": true, + "dependencies": { + "detect-libc": "^2.0.1" + }, + "bin": { + "node-gyp-build-optional-packages": "bin.js", + "node-gyp-build-optional-packages-optional": "optional.js", + "node-gyp-build-optional-packages-test": "build-test.js" + } + }, + "node_modules/node-gyp/node_modules/undici": { + "version": "6.29.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.1.tgz", + "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==", + "license": "MIT", + "engines": { + "node": ">=18.17" + } + }, + "node_modules/node-releases": { + "version": "2.0.63", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.63.tgz", + "integrity": "sha512-6li2QanLsAXpIH2R6j77MzRyvOyrvdTqlKtO4CgBdHGNvN99ZZfyxszHc5o5+IZBWD5u6Hzwg83JoGXmqZNG9Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/nopt": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", + "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", + "license": "ISC", + "dependencies": { + "abbrev": "^4.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-bundled": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-5.0.0.tgz", + "integrity": "sha512-JLSpbzh6UUXIEoqPsYBvVNVmyrjVZ1fzEFbqxKkTJQkWBO3xFzFT+KDnSKQWwOQNbuWRwt5LSD6HOTLGIWzfrw==", + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^5.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-install-checks": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-8.0.0.tgz", + "integrity": "sha512-ScAUdMpyzkbpxoNekQ3tNRdFI8SJ86wgKZSQZdUxT+bj0wVFpsEMWnkXP0twVe1gJyNF5apBWDJhhIbgrIViRA==", + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-normalize-package-bin": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-5.0.0.tgz", + "integrity": "sha512-CJi3OS4JLsNMmr2u07OJlhcrPxCeOeP/4xq67aWNai6TNWWbTrlNDgl8NcFKVlcBKp18GPj+EzbNIgrBfZhsag==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-package-arg": { + "version": "13.0.2", + "resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-13.0.2.tgz", + "integrity": "sha512-IciCE3SY3uE84Ld8WZU23gAPPV9rIYod4F+rc+vJ7h7cwAJt9Vk6TVsK60ry7Uj3SRS3bqRRIGuTp9YVlk6WNA==", + "license": "ISC", + "dependencies": { + "hosted-git-info": "^9.0.0", + "proc-log": "^6.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^7.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-packlist": { + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-10.0.4.tgz", + "integrity": "sha512-uMW73iajD8hiH4ZBxEV3HC+eTnppIqwakjOYuvgddnalIw2lJguKviK1pcUJDlIWm1wSJkchpDZDSVVsZEYRng==", + "license": "ISC", + "dependencies": { + "ignore-walk": "^8.0.0", + "proc-log": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-pick-manifest": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/npm-pick-manifest/-/npm-pick-manifest-11.0.3.tgz", + "integrity": "sha512-buzyCfeoGY/PxKqmBqn1IUJrZnUi1VVJTdSSRPGI60tJdUhUoSQFhs0zycJokDdOznQentgrpf8LayEHyyYlqQ==", + "license": "ISC", + "dependencies": { + "npm-install-checks": "^8.0.0", + "npm-normalize-package-bin": "^5.0.0", + "npm-package-arg": "^13.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/npm-registry-fetch": { + "version": "19.1.1", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-19.1.1.tgz", + "integrity": "sha512-TakBap6OM1w0H73VZVDf44iFXsOS3h+L4wVMXmbWOQroZgFhMch0juN6XSzBNlD965yIKvWg2dfu7NSiaYLxtw==", + "license": "ISC", + "dependencies": { + "@npmcli/redact": "^4.0.0", + "jsonparse": "^1.3.1", + "make-fetch-happen": "^15.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^5.0.0", + "minizlib": "^3.0.1", + "npm-package-arg": "^13.0.0", + "proc-log": "^6.0.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/open": { + "version": "11.0.4", + "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz", + "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==", + "license": "MIT", + "dependencies": { + "default-browser": "^5.5.1", + "define-lazy-prop": "^3.0.0", + "is-in-ssh": "^1.0.0", + "is-inside-container": "^1.0.0", + "powershell-utils": "^0.2.1", + "wsl-utils": "^1.0.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-map": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.1.1.tgz", + "integrity": "sha512-6Lh3jQPLthYujSrlw6ccWXBGZTkoTCz27Hd92g79LH/kjAbgoEu0t442cCCNbegPSJsA0lwDX8z0bcKtkpA32g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/package-json-from-dist": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", + "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", + "license": "BlueOak-1.0.0" + }, + "node_modules/pacote": { + "version": "21.5.1", + "resolved": "https://registry.npmjs.org/pacote/-/pacote-21.5.1.tgz", + "integrity": "sha512-KvcJ9iy3crysCsgqc4+PknH/w6jkrp8JN36mpZBPwNaDRwTfMZD37YzRazNstiZUOhuF5pno9f78n9mEJBavwg==", + "license": "ISC", + "dependencies": { + "@gar/promise-retry": "^1.0.0", + "@npmcli/git": "^7.0.0", + "@npmcli/installed-package-contents": "^4.0.0", + "@npmcli/package-json": "^7.0.0", + "@npmcli/promise-spawn": "^9.0.0", + "@npmcli/run-script": "^10.0.0", + "cacache": "^20.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^13.0.0", + "npm-packlist": "^10.0.1", + "npm-pick-manifest": "^11.0.1", + "npm-registry-fetch": "^19.0.0", + "proc-log": "^6.0.0", + "sigstore": "^4.0.0", + "ssri": "^13.0.0", + "tar": "^7.4.3" + }, + "bin": { + "pacote": "bin/index.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/parse-conflict-json": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/parse-conflict-json/-/parse-conflict-json-5.0.1.tgz", + "integrity": "sha512-ZHEmNKMq1wyJXNwLxyHnluPfRAFSIliBvbK/UiOceROt4Xh9Pz0fq49NytIaeaCUf5VR86hwQ/34FCcNU5/LKQ==", + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^5.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/parse5": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz", + "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "entities": "^6.0.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", + "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz", + "integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/playwright": { + "version": "1.57.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.57.0.tgz", + "integrity": "sha512-ilYQj1s8sr2ppEJ2YVadYBN0Mb3mdo9J0wQ+UuDhzYqURwSoW4n1Xs5vs7ORwgDGmyEh33tRMeS8KhdkMoLXQw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "playwright-core": "1.57.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" + } + }, + "node_modules/playwright-core": { + "version": "1.57.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.57.0.tgz", + "integrity": "sha512-agTcKlMw/mjBWOnD6kFZttAAGHgi/Nw0CZ2o6JqWSbMlI219lAFLZZCyqByTsvVAJq5XA5H8cA6PrvBRpBWEuQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/postcss": { + "version": "8.5.32", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.32.tgz", + "integrity": "sha512-LJlKCCAUFKOuZxipUdYw1NzIITEsPcgyOG9LkvRJvuKj/bRzbuRY0ARXvL0pWGpsZvn8jku+LMep2eU0seHp8g==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.20", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-7.1.7.tgz", + "integrity": "sha512-wWBro/7hJ40ye6TPiXkUQoXKCw23xSsjriUvqd7Uls9Sso3oLiON1flc18cCdnjgCRXw4fBVqUJJeOdDTh3P3g==", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/powershell-utils": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz", + "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==", + "license": "MIT", + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/proc-log": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/proc-log/-/proc-log-6.1.0.tgz", + "integrity": "sha512-iG+GYldRf2BQ0UDUAd6JQ/RwzaQy6mXmsk/IzlYyal4A4SNFw54MeH4/tLkF4I5WoWG9SQwuqWzS99jaFQHBuQ==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/proggy": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/proggy/-/proggy-4.0.0.tgz", + "integrity": "sha512-MbA4R+WQT76ZBm/5JUpV9yqcJt92175+Y0Bodg3HgiXzrmKu7Ggq+bpn6y6wHH+gN9NcyKn3yg1+d47VaKwNAQ==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/promise-all-reject-late": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz", + "integrity": "sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw==", + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/promise-call-limit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/promise-call-limit/-/promise-call-limit-3.0.2.tgz", + "integrity": "sha512-mRPQO2T1QQVw11E7+UdCJu7S61eJVWknzml9sC1heAdj1jxl0fWMBypIt9ZOcLFf8FkG995ZD7RnVk7HH72fZw==", + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-8.4.2.tgz", + "integrity": "sha512-vvuOGgcuPJAirlHvuQw1TrOiw7ptaIXXmIbNuiNOY6lNGJJH49PQ1Kj4nd783nPdQhQdicgOjVI2yI/9BD6/Ng==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/react": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", + "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz", + "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.2" + }, + "peerDependencies": { + "react": "^18.3.1" + } + }, + "node_modules/react-refresh": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", + "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/read-cmd-shim": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-6.0.0.tgz", + "integrity": "sha512-1zM5HuOfagXCBWMN83fuFI/x+T/UhZ7k+KIzhrHXcQoeX5+7gmaDYjELQHmmzIodumBHeByBJT4QYS7ufAgs7A==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/reselect": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz", + "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.14", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.14.tgz", + "integrity": "sha512-1ZjYvR9sbkiwC5+9QHetqW5HmA2pHRMaoupD01t2HlYnV/vydC2zPwLixhsMieSWVZt0JJRg5LVIk0Ow1D/TrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.18.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/rimraf": { + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz", + "integrity": "sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==", + "license": "ISC", + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.7.tgz", + "integrity": "sha512-uZbew1NqdmPDTMJ8ah1y+b+9QEJrfkXFk3RcTQw3X0jW/xRUvFKsg1CfQdSYGdTbXZWExtU3J3ccxtnfw1Fi0g==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz", + "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/lru-cache": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", + "license": "ISC" + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.9", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", + "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rollup": { + "version": "4.67.4", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.67.4.tgz", + "integrity": "sha512-Lsv3oKcz5jgOQJej/p7nfwbVEdAbDT+z6OPf/SCdI+nF+q2ENp0pTKT35ZwXAmH8g45mfrIiJeEyAqKYSYoL9Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.10" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@napi-rs/lzma-linux-x64-gnu": "1.5.1", + "@rollup/rollup-android-arm-eabi": "4.67.4", + "@rollup/rollup-android-arm64": "4.67.4", + "@rollup/rollup-android-x64": "4.67.4", + "@rollup/rollup-darwin-arm64": "4.67.4", + "@rollup/rollup-darwin-x64": "4.67.4", + "@rollup/rollup-freebsd-arm64": "4.67.4", + "@rollup/rollup-freebsd-x64": "4.67.4", + "@rollup/rollup-linux-arm-gnueabihf": "4.67.4", + "@rollup/rollup-linux-arm-musleabihf": "4.67.4", + "@rollup/rollup-linux-arm64-gnu": "4.67.4", + "@rollup/rollup-linux-arm64-musl": "4.67.4", + "@rollup/rollup-linux-loong64-gnu": "4.67.4", + "@rollup/rollup-linux-loong64-musl": "4.67.4", + "@rollup/rollup-linux-ppc64-gnu": "4.67.4", + "@rollup/rollup-linux-ppc64-musl": "4.67.4", + "@rollup/rollup-linux-riscv64-gnu": "4.67.4", + "@rollup/rollup-linux-riscv64-musl": "4.67.4", + "@rollup/rollup-linux-s390x-gnu": "4.67.4", + "@rollup/rollup-linux-x64-gnu": "4.67.4", + "@rollup/rollup-linux-x64-musl": "4.67.4", + "@rollup/rollup-openbsd-x64": "4.67.4", + "@rollup/rollup-openharmony-arm64": "4.67.4", + "@rollup/rollup-win32-arm64-msvc": "4.67.4", + "@rollup/rollup-win32-ia32-msvc": "4.67.4", + "@rollup/rollup-win32-x64-gnu": "4.67.4", + "@rollup/rollup-win32-x64-msvc": "4.67.4", + "fsevents": "~2.3.2" + } + }, + "node_modules/run-applescript": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz", + "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/s-js": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/s-js/-/s-js-0.4.9.tgz", + "integrity": "sha512-RtpOm+cM6O0sHg6IA70wH+UC3FZcND+rccBZpBAHzlUgNO2Bm5BN+FnM8+OBxzXdwpKWFwX11JGF0MFRkhSoIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT", + "optional": true + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/scheduler": { + "version": "0.23.2", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", + "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.8.6", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz", + "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/seroval": { + "version": "1.6.12", + "resolved": "https://registry.npmjs.org/seroval/-/seroval-1.6.12.tgz", + "integrity": "sha512-CqbIVfk/7GL3ITwZI55lcPbpQbjHZ2DD5cUj4iH7E9YsCfHNJV1mx7yNp86Z84w5IpmkZZS/2s5vPOWmVWSdQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/seroval-plugins": { + "version": "1.6.12", + "resolved": "https://registry.npmjs.org/seroval-plugins/-/seroval-plugins-1.6.12.tgz", + "integrity": "sha512-+reiwp/lYxiyctSrdvX7OQ1YLrcbWYgBiZrhSFL+V43b0/DGRLNVSDyZINbQe+tWplPOI2fw2dPrdv6hcc09kQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "seroval": "^1.0" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sigstore": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/sigstore/-/sigstore-4.1.1.tgz", + "integrity": "sha512-endqECJkfhozrXMK5ngu/UAA0xVcVEFdnHJCElGaExypjW+HK5i6zu3NteLoaX/iFbRUbC3+DjttQs0GARr+5w==", + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^4.0.0", + "@sigstore/core": "^3.2.1", + "@sigstore/protobuf-specs": "^0.5.0", + "@sigstore/sign": "^4.1.1", + "@sigstore/tuf": "^4.0.2", + "@sigstore/verify": "^3.1.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.10", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz", + "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==", + "license": "MIT", + "dependencies": { + "ip-address": "^10.1.1", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "8.0.5", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-8.0.5.tgz", + "integrity": "sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==", + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.2", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/solid-js": { + "version": "1.9.18", + "resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.9.18.tgz", + "integrity": "sha512-CHGO5YFk6Y9m/1YSxVtKnXfrW7JD3Tmof8HmR4z6TmCPsS8efo8LnzIR8CQh3cUvffqYm6DWyBFfk8dQw1CNQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.1.0", + "seroval": "~1.6.11", + "seroval-plugins": "~1.6.8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/spdx-exceptions": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz", + "integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==", + "license": "CC-BY-3.0" + }, + "node_modules/spdx-expression-parse": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz", + "integrity": "sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==", + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/spdx-license-ids": { + "version": "3.0.24", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.24.tgz", + "integrity": "sha512-cLS9TtWkIQFyLkJ3/5aFQAOHOSKTlOs/7WDut/XPSdjom1fJhUdkepeJAKXa9Y05+FabHd0sti+Et559vDtkpQ==", + "license": "CC0-1.0" + }, + "node_modules/ssri": { + "version": "13.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-13.0.1.tgz", + "integrity": "sha512-QUiRf1+u9wPTL/76GTYlKttDEBWV1ga9ZXW8BG6kfdeyyM8LGPix9gROyg9V2+P0xNyF3X2Go526xKFdMZrHSQ==", + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/string-width-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz", + "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tar": { + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/fs-minipass": "^4.0.0", + "chownr": "^3.0.0", + "minipass": "^7.1.2", + "minizlib": "^3.1.0", + "yallist": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tldts": { + "version": "7.4.19", + "resolved": "https://registry.npmjs.org/tldts/-/tldts-7.4.19.tgz", + "integrity": "sha512-48dH6aSpQnpbzDUc4vIQZ1VjB8tkK+e8c1yx05/SZK+rkssgjEOlxDd/yU8/a4vGYQ9vRgJr9dwMq9TJ0b3X2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "tldts-core": "^7.4.19" + }, + "bin": { + "tldts": "bin/cli.js" + } + }, + "node_modules/tldts-core": { + "version": "7.4.20", + "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-7.4.20.tgz", + "integrity": "sha512-C630TWXZCZmLq0F2bW4QqwnaaxCQ/svpAqvJwnC4JvgEM5ohhBnGsEzTLSOXcN+xjz+kEaHS5uoWIw2klnqd0A==", + "dev": true, + "license": "MIT" + }, + "node_modules/toml": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/toml/-/toml-4.3.0.tgz", + "integrity": "sha512-lVb8X9BsPVuH0M4BKeS91tXAmJvCjQ5UIyAbQFaxkKGyUFK2RPkhwaFSQH8vbpl1d23eu/IBH+dwVMHWaq9A5A==", + "license": "MIT", + "engines": { + "node": ">=20" + } + }, + "node_modules/tough-cookie": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-6.0.2.tgz", + "integrity": "sha512-exgYmnmL/sJpR3upZfXG5PoatXQii55xAiXGXzY+sROLZ/Y+SLcp9PgJNI9Vz37HpQ74WvDcLT8eqm+kV3FzrA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tldts": "^7.0.5" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tr46": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz", + "integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==", + "dev": true, + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/treeverse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/treeverse/-/treeverse-3.0.0.tgz", + "integrity": "sha512-gcANaAnd2QDZFmHFEOF4k7uc1J/6a6z3DJMd/QwEyxLoKGiptJRwid582r7QIsFlFMIZ3SnxfS52S4hm2DHkuQ==", + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/tslib": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", + "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "license": "0BSD" + }, + "node_modules/tuf-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/tuf-js/-/tuf-js-4.1.0.tgz", + "integrity": "sha512-50QV99kCKH5P/Vs4E2Gzp7BopNV+KzTXqWeaxrfu5IQJBOULRsTIS9seSsOVT8ZnGXzCyx55nYWAi4qJzpZKEQ==", + "license": "MIT", + "dependencies": { + "@tufjs/models": "4.1.0", + "debug": "^4.4.3", + "make-fetch-happen": "^15.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici": { + "version": "8.12.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-8.12.3.tgz", + "integrity": "sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==", + "license": "MIT", + "engines": { + "node": ">=22.19.0" + } + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.3.tgz", + "integrity": "sha512-Sc5u1VVln93y1Xnz4R+CunOZc7R9LUcTmhj7Rc7Eg3HVcf7rVn2FOoa812fe0W8p3jD7xeoGSYbfqCGGH2B6xw==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist-node/bin/uuid" + } + }, + "node_modules/validate-npm-package-name": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-7.0.2.tgz", + "integrity": "sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==", + "license": "ISC", + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/vite": { + "version": "7.3.7", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.7.tgz", + "integrity": "sha512-AHEzTORMbi7/7aXp7w7KZ5+DCUdSeLsJz0grY8xHpc9DHdYb0vQu6DqJfm2tOw3gDExNgPgnJTXxM6syYFHaCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.27.0 || ^0.28.0", + "fdir": "^6.5.0", + "picomatch": "^4.0.3", + "postcss": "^8.5.6", + "rollup": "^4.43.0", + "tinyglobby": "^0.2.15" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "lightningcss": "^1.21.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/w3c-xmlserializer": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz", + "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "xml-name-validator": "^5.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/walk-up-path": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/walk-up-path/-/walk-up-path-4.0.0.tgz", + "integrity": "sha512-3hu+tD8YzSLGuFYtPRb48vdhKMi0KQV5sn+uWr8+7dMEq/2G/dtLrdDinkLjqq5TIbIBjYJ4Ax/n3YiaW7QM8A==", + "license": "ISC", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/webidl-conversions": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", + "integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=20" + } + }, + "node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-15.1.0.tgz", + "integrity": "sha512-2ytDk0kiEj/yu90JOAp44PVPUkO9+jVhyf+SybKlRHSDlvOOZhdPIrr7xTH64l4WixO2cP+wQIcgujkGBPPz6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "tr46": "^6.0.0", + "webidl-conversions": "^8.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/which": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", + "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", + "license": "ISC", + "dependencies": { + "isexe": "^4.0.0" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/wrap-ansi-cjs/node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "license": "MIT" + }, + "node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/write-file-atomic": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-7.0.1.tgz", + "integrity": "sha512-OTIk8iR8/aCRWBqvxrzxR0hgxWpnYBblY1S5hDWBQfk/VFmJwzmJgQFN3WsoUKHISv2eAwe+PpbUzyL1CKTLXg==", + "license": "ISC", + "dependencies": { + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^20.17.0 || >=22.9.0" + } + }, + "node_modules/ws": { + "version": "8.22.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.1.tgz", + "integrity": "sha512-oyL6OPYme/CmiFvNuGzeoxCJ4nOrZE2O1FwM9MWM1AsGri6nLXB2pg+lNA8aLeXMSav0J6eIVS1j6vUPzUtK9g==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/wsl-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz", + "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==", + "license": "MIT", + "dependencies": { + "is-wsl": "^3.1.0", + "powershell-utils": "^0.2.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/xml-name-validator": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", + "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true, + "license": "MIT" + }, + "node_modules/yallist": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz", + "integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=18" + } + }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, + "node_modules/zod": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.1.8.tgz", + "integrity": "sha512-5R1P+WwQqmmMIEACyzSvo4JXHY5WiAFHRMg+zBZKgKS+Q1viRa0C1hmUKtHltoIFKtIdki3pRxkmpP74jnNYHQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/package.json b/package.json index c2fae0cc..ab987e4d 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,10 @@ }, "homepage": "https://github.com/shekohex/opencode-pty#readme", "files": [ - "dist" + "dist", + "index.ts", + "README.md", + "LICENSE" ], "license": "MIT", "type": "module", @@ -79,11 +82,12 @@ "lint": "biome lint .", "lint:fix": "biome lint --write .", "format": "biome format .", - "format:fix": "biome format --write ." + "format:fix": "biome format --write .", + "prepare": "npm run build:plugin" }, "devDependencies": { "@biomejs/biome": "2.3.13", - "@opentui/core": "0.4.5", + "@opentui/core": "^0.8.0", "@opentui/keymap": "0.4.5", "@opentui/solid": "0.4.5", "@playwright/test": "1.57.0", From 96a3c3e074b146882ffe9c843e8adfe693124bb1 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:46:28 -0500 Subject: [PATCH 08/10] fix(install): drop the prepare hook; dist ships committed instead `prepare` runs during a `github:` install and needs the full dev tree plus `bun` for the copyfiles step, so it made the git path fail harder than the missing entrypoint it was meant to fix. `dist` is committed, so nothing has to build at install time. --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index ab987e4d..9ea1c8ea 100644 --- a/package.json +++ b/package.json @@ -82,8 +82,7 @@ "lint": "biome lint .", "lint:fix": "biome lint --write .", "format": "biome format .", - "format:fix": "biome format --write .", - "prepare": "npm run build:plugin" + "format:fix": "biome format --write ." }, "devDependencies": { "@biomejs/biome": "2.3.13", From 8830fa278037b3bd9e529c96a0ad76216d0173df Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:50:39 -0500 Subject: [PATCH 09/10] fix(install): remove prepack so a git dependency can be packed npm runs `prepack` while preparing a `github:` install, and it ran `bun build:prod` - tsc, copyfiles over the network, then a vite build of the web UI. In the installer's sandbox that fails, which is what surfaced as ``; a plain `npm install` from a shell succeeded because nothing needed packing. `dist` is committed, so packing has nothing to build. `release.sh` still runs the build explicitly before publishing. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 9ea1c8ea..591b455e 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,6 @@ "build:plugin": "tsc -p tsconfig.build.json && bun x copyfiles -u 0 \"src/**/*.txt\" dist", "build:dev": "bun clean && bun build:plugin && vite build --mode development", "build:prod": "bun clean && bun build:plugin && vite build --mode production", - "prepack": "bun build:prod", "clean": "rm -rf dist playwright-report test-results", "lint": "biome lint .", "lint:fix": "biome lint --write .", From 9ec9f2ccbb699fd704ef5ff0b9f99e2f05b43671 Mon Sep 17 00:00:00 2001 From: BaconDroid <11067111+BaconDroid@users.noreply.github.com> Date: Sun, 15 Nov 2026 23:58:23 -0500 Subject: [PATCH 10/10] fix(spawn): resolve workdir against session project (upstream #72) Resolve relative workdirs against the session project directory before permission checks and manager.spawn. Without resolution, permission checks receive a raw relative path that may not align with the actual working tree. Pass the project directory through to V2 tools for consistent context. --- dist/index.d.ts.map | 1 + dist/index.js.map | 1 + dist/src/adapters/index.d.ts.map | 1 + dist/src/adapters/index.js.map | 1 + dist/src/adapters/types.d.ts.map | 1 + dist/src/adapters/types.js.map | 1 + dist/src/adapters/v1/index.d.ts.map | 1 + dist/src/adapters/v1/index.js.map | 1 + dist/src/adapters/v1/notifications.d.ts.map | 1 + dist/src/adapters/v1/notifications.js.map | 1 + dist/src/adapters/v1/permissions.d.ts.map | 1 + dist/src/adapters/v1/permissions.js.map | 1 + dist/src/adapters/v2/index.d.ts.map | 1 + dist/src/adapters/v2/index.js.map | 1 + dist/src/adapters/v2/permissions.d.ts.map | 1 + dist/src/adapters/v2/permissions.js.map | 1 + dist/src/plugin.d.ts.map | 1 + dist/src/plugin.js.map | 1 + dist/src/plugin/constants.d.ts.map | 1 + dist/src/plugin/constants.js.map | 1 + dist/src/plugin/pty/buffer.d.ts.map | 1 + dist/src/plugin/pty/buffer.js.map | 1 + dist/src/plugin/pty/formatters.d.ts.map | 1 + dist/src/plugin/pty/formatters.js.map | 1 + dist/src/plugin/pty/manager.d.ts.map | 1 + dist/src/plugin/pty/manager.js.map | 1 + dist/src/plugin/pty/notification-manager.d.ts.map | 1 + dist/src/plugin/pty/notification-manager.js.map | 1 + dist/src/plugin/pty/output-manager.d.ts.map | 1 + dist/src/plugin/pty/output-manager.js.map | 1 + dist/src/plugin/pty/permissions.d.ts.map | 1 + dist/src/plugin/pty/permissions.js.map | 1 + dist/src/plugin/pty/session-lifecycle.d.ts.map | 1 + dist/src/plugin/pty/session-lifecycle.js.map | 1 + dist/src/plugin/pty/tools/kill.d.ts.map | 1 + dist/src/plugin/pty/tools/kill.js.map | 1 + dist/src/plugin/pty/tools/list.d.ts.map | 1 + dist/src/plugin/pty/tools/list.js.map | 1 + dist/src/plugin/pty/tools/read.d.ts.map | 1 + dist/src/plugin/pty/tools/read.js.map | 1 + dist/src/plugin/pty/tools/spawn.d.ts.map | 1 + dist/src/plugin/pty/tools/spawn.js | 11 ++++++++--- dist/src/plugin/pty/tools/spawn.js.map | 1 + dist/src/plugin/pty/tools/write.d.ts.map | 1 + dist/src/plugin/pty/tools/write.js.map | 1 + dist/src/plugin/pty/types.d.ts.map | 1 + dist/src/plugin/pty/types.js.map | 1 + dist/src/plugin/pty/utils.d.ts.map | 1 + dist/src/plugin/pty/utils.js.map | 1 + dist/src/plugin/pty/wildcard.d.ts.map | 1 + dist/src/plugin/pty/wildcard.js.map | 1 + dist/src/plugin/types.d.ts.map | 1 + dist/src/plugin/types.js.map | 1 + dist/src/shared/constants.d.ts.map | 1 + dist/src/shared/constants.js.map | 1 + dist/src/shared/runtime.d.ts.map | 1 + dist/src/shared/runtime.js.map | 1 + dist/src/tui/index.d.ts.map | 1 + dist/src/tui/index.js.map | 1 + dist/src/tui/lib.d.ts.map | 1 + dist/src/tui/lib.js.map | 1 + dist/src/v2/commands.d.ts.map | 1 + dist/src/v2/commands.js.map | 1 + dist/src/v2/index.d.ts.map | 1 + dist/src/v2/index.js | 2 +- dist/src/v2/index.js.map | 1 + dist/src/v2/notifier.d.ts.map | 1 + dist/src/v2/notifier.js.map | 1 + dist/src/v2/tools.d.ts | 2 +- dist/src/v2/tools.d.ts.map | 1 + dist/src/v2/tools.js | 5 +++-- dist/src/v2/tools.js.map | 1 + dist/src/v2/types.d.ts.map | 1 + dist/src/v2/types.js.map | 1 + dist/src/web/server/callback-manager.d.ts.map | 1 + dist/src/web/server/callback-manager.js.map | 1 + dist/src/web/server/handlers/health.d.ts.map | 1 + dist/src/web/server/handlers/health.js.map | 1 + dist/src/web/server/handlers/responses.d.ts.map | 1 + dist/src/web/server/handlers/responses.js.map | 1 + dist/src/web/server/handlers/sessions.d.ts.map | 1 + dist/src/web/server/handlers/sessions.js.map | 1 + dist/src/web/server/handlers/static.d.ts.map | 1 + dist/src/web/server/handlers/static.js.map | 1 + dist/src/web/server/handlers/upgrade.d.ts.map | 1 + dist/src/web/server/handlers/upgrade.js.map | 1 + dist/src/web/server/handlers/websocket.d.ts.map | 1 + dist/src/web/server/handlers/websocket.js | 1 + dist/src/web/server/handlers/websocket.js.map | 1 + dist/src/web/server/server.d.ts.map | 1 + dist/src/web/server/server.js.map | 1 + dist/src/web/shared/api-client.d.ts.map | 1 + dist/src/web/shared/api-client.js.map | 1 + dist/src/web/shared/constants.d.ts.map | 1 + dist/src/web/shared/constants.js.map | 1 + dist/src/web/shared/route-builder.d.ts.map | 1 + dist/src/web/shared/route-builder.js.map | 1 + dist/src/web/shared/routes.d.ts.map | 1 + dist/src/web/shared/routes.js.map | 1 + dist/src/web/shared/types.d.ts | 1 + dist/src/web/shared/types.d.ts.map | 1 + dist/src/web/shared/types.js.map | 1 + src/plugin/pty/tools/spawn.ts | 12 +++++++++--- src/v2/index.ts | 2 +- src/v2/tools.ts | 5 +++-- 105 files changed, 124 insertions(+), 13 deletions(-) create mode 100644 dist/index.d.ts.map create mode 100644 dist/index.js.map create mode 100644 dist/src/adapters/index.d.ts.map create mode 100644 dist/src/adapters/index.js.map create mode 100644 dist/src/adapters/types.d.ts.map create mode 100644 dist/src/adapters/types.js.map create mode 100644 dist/src/adapters/v1/index.d.ts.map create mode 100644 dist/src/adapters/v1/index.js.map create mode 100644 dist/src/adapters/v1/notifications.d.ts.map create mode 100644 dist/src/adapters/v1/notifications.js.map create mode 100644 dist/src/adapters/v1/permissions.d.ts.map create mode 100644 dist/src/adapters/v1/permissions.js.map create mode 100644 dist/src/adapters/v2/index.d.ts.map create mode 100644 dist/src/adapters/v2/index.js.map create mode 100644 dist/src/adapters/v2/permissions.d.ts.map create mode 100644 dist/src/adapters/v2/permissions.js.map create mode 100644 dist/src/plugin.d.ts.map create mode 100644 dist/src/plugin.js.map create mode 100644 dist/src/plugin/constants.d.ts.map create mode 100644 dist/src/plugin/constants.js.map create mode 100644 dist/src/plugin/pty/buffer.d.ts.map create mode 100644 dist/src/plugin/pty/buffer.js.map create mode 100644 dist/src/plugin/pty/formatters.d.ts.map create mode 100644 dist/src/plugin/pty/formatters.js.map create mode 100644 dist/src/plugin/pty/manager.d.ts.map create mode 100644 dist/src/plugin/pty/manager.js.map create mode 100644 dist/src/plugin/pty/notification-manager.d.ts.map create mode 100644 dist/src/plugin/pty/notification-manager.js.map create mode 100644 dist/src/plugin/pty/output-manager.d.ts.map create mode 100644 dist/src/plugin/pty/output-manager.js.map create mode 100644 dist/src/plugin/pty/permissions.d.ts.map create mode 100644 dist/src/plugin/pty/permissions.js.map create mode 100644 dist/src/plugin/pty/session-lifecycle.d.ts.map create mode 100644 dist/src/plugin/pty/session-lifecycle.js.map create mode 100644 dist/src/plugin/pty/tools/kill.d.ts.map create mode 100644 dist/src/plugin/pty/tools/kill.js.map create mode 100644 dist/src/plugin/pty/tools/list.d.ts.map create mode 100644 dist/src/plugin/pty/tools/list.js.map create mode 100644 dist/src/plugin/pty/tools/read.d.ts.map create mode 100644 dist/src/plugin/pty/tools/read.js.map create mode 100644 dist/src/plugin/pty/tools/spawn.d.ts.map create mode 100644 dist/src/plugin/pty/tools/spawn.js.map create mode 100644 dist/src/plugin/pty/tools/write.d.ts.map create mode 100644 dist/src/plugin/pty/tools/write.js.map create mode 100644 dist/src/plugin/pty/types.d.ts.map create mode 100644 dist/src/plugin/pty/types.js.map create mode 100644 dist/src/plugin/pty/utils.d.ts.map create mode 100644 dist/src/plugin/pty/utils.js.map create mode 100644 dist/src/plugin/pty/wildcard.d.ts.map create mode 100644 dist/src/plugin/pty/wildcard.js.map create mode 100644 dist/src/plugin/types.d.ts.map create mode 100644 dist/src/plugin/types.js.map create mode 100644 dist/src/shared/constants.d.ts.map create mode 100644 dist/src/shared/constants.js.map create mode 100644 dist/src/shared/runtime.d.ts.map create mode 100644 dist/src/shared/runtime.js.map create mode 100644 dist/src/tui/index.d.ts.map create mode 100644 dist/src/tui/index.js.map create mode 100644 dist/src/tui/lib.d.ts.map create mode 100644 dist/src/tui/lib.js.map create mode 100644 dist/src/v2/commands.d.ts.map create mode 100644 dist/src/v2/commands.js.map create mode 100644 dist/src/v2/index.d.ts.map create mode 100644 dist/src/v2/index.js.map create mode 100644 dist/src/v2/notifier.d.ts.map create mode 100644 dist/src/v2/notifier.js.map create mode 100644 dist/src/v2/tools.d.ts.map create mode 100644 dist/src/v2/tools.js.map create mode 100644 dist/src/v2/types.d.ts.map create mode 100644 dist/src/v2/types.js.map create mode 100644 dist/src/web/server/callback-manager.d.ts.map create mode 100644 dist/src/web/server/callback-manager.js.map create mode 100644 dist/src/web/server/handlers/health.d.ts.map create mode 100644 dist/src/web/server/handlers/health.js.map create mode 100644 dist/src/web/server/handlers/responses.d.ts.map create mode 100644 dist/src/web/server/handlers/responses.js.map create mode 100644 dist/src/web/server/handlers/sessions.d.ts.map create mode 100644 dist/src/web/server/handlers/sessions.js.map create mode 100644 dist/src/web/server/handlers/static.d.ts.map create mode 100644 dist/src/web/server/handlers/static.js.map create mode 100644 dist/src/web/server/handlers/upgrade.d.ts.map create mode 100644 dist/src/web/server/handlers/upgrade.js.map create mode 100644 dist/src/web/server/handlers/websocket.d.ts.map create mode 100644 dist/src/web/server/handlers/websocket.js.map create mode 100644 dist/src/web/server/server.d.ts.map create mode 100644 dist/src/web/server/server.js.map create mode 100644 dist/src/web/shared/api-client.d.ts.map create mode 100644 dist/src/web/shared/api-client.js.map create mode 100644 dist/src/web/shared/constants.d.ts.map create mode 100644 dist/src/web/shared/constants.js.map create mode 100644 dist/src/web/shared/route-builder.d.ts.map create mode 100644 dist/src/web/shared/route-builder.js.map create mode 100644 dist/src/web/shared/routes.d.ts.map create mode 100644 dist/src/web/shared/routes.js.map create mode 100644 dist/src/web/shared/types.d.ts.map create mode 100644 dist/src/web/shared/types.js.map diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 00000000..d0142431 --- /dev/null +++ b/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;;;;;;AAO1C,wBAIC"} \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 00000000..c1d1bc90 --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,SAAS,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,wFAAwF;AACxF,uFAAuF;AACvF,gFAAgF;AAChF,wFAAwF;AACxF,2EAA2E;AAC3E,eAAe;IACb,EAAE,EAAE,MAAM,CAAC,EAAE;IACb,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK;CACpB,CAAA"} \ No newline at end of file diff --git a/dist/src/adapters/index.d.ts.map b/dist/src/adapters/index.d.ts.map new file mode 100644 index 00000000..537e3164 --- /dev/null +++ b/dist/src/adapters/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/adapters/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAE7B;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAO7D"} \ No newline at end of file diff --git a/dist/src/adapters/index.js.map b/dist/src/adapters/index.js.map new file mode 100644 index 00000000..9e99ac49 --- /dev/null +++ b/dist/src/adapters/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAE7B;;;GAGG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAoB;IACrD,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;QACrB,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;IACvC,CAAC;IACD,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;QACxB,uBAAuB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAC9C,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/dist/src/adapters/types.d.ts.map b/dist/src/adapters/types.d.ts.map new file mode 100644 index 00000000..2e3b86be --- /dev/null +++ b/dist/src/adapters/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/adapters/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAClF;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,wBAAwB;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAChG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjF;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAA;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAC3C,gBAAgB,CAAC,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3C"} \ No newline at end of file diff --git a/dist/src/adapters/types.js.map b/dist/src/adapters/types.js.map new file mode 100644 index 00000000..136da679 --- /dev/null +++ b/dist/src/adapters/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/adapters/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/src/adapters/v1/index.d.ts.map b/dist/src/adapters/v1/index.d.ts.map new file mode 100644 index 00000000..73ba4870 --- /dev/null +++ b/dist/src/adapters/v1/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/v1/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAI9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,WAAW,CAYnE"} \ No newline at end of file diff --git a/dist/src/adapters/v1/index.js.map b/dist/src/adapters/v1/index.js.map new file mode 100644 index 00000000..eab2f877 --- /dev/null +++ b/dist/src/adapters/v1/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/v1/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAErD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,MAAM,UAAU,eAAe,CAAC,OAAsB;IACpD,MAAM,QAAQ,GAAG,IAAI,qBAAqB,CAAC,OAAO,CAAC,MAAmC,CAAC,CAAA;IACvF,MAAM,WAAW,GAAG,IAAI,sBAAsB,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;IAEjF,OAAO;QACL,EAAE,EAAE,aAAa;QACjB,QAAQ;QACR,WAAW;QACX,gBAAgB,EAAE,CAAC,SAAiB,EAAE,EAAE;YACtC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAA;QACrC,CAAC;KACF,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/src/adapters/v1/notifications.d.ts.map b/dist/src/adapters/v1/notifications.d.ts.map new file mode 100644 index 00000000..23d2252f --- /dev/null +++ b/dist/src/adapters/v1/notifications.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../../src/adapters/v1/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,qBAAa,qBAAsB,YAAW,eAAe;IAC3D,OAAO,CAAC,OAAO,CAAqB;gBAExB,MAAM,CAAC,EAAE,cAAc;IAOnC,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAI5B,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjF"} \ No newline at end of file diff --git a/dist/src/adapters/v1/notifications.js.map b/dist/src/adapters/v1/notifications.js.map new file mode 100644 index 00000000..c0bb436b --- /dev/null +++ b/dist/src/adapters/v1/notifications.js.map @@ -0,0 +1 @@ +{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../../src/adapters/v1/notifications.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAA;AAI9E,MAAM,OAAO,qBAAqB;IACxB,OAAO,CAAqB;IAEpC,YAAY,MAAuB;QACjC,IAAI,CAAC,OAAO,GAAG,IAAI,mBAAmB,EAAE,CAAA;QACxC,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC3B,CAAC;IACH,CAAC;IAED,IAAI,CAAC,MAAsB;QACzB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAC3B,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,OAAmB,EAAE,QAAgB;QAC9D,MAAM,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC5D,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/adapters/v1/permissions.d.ts.map b/dist/src/adapters/v1/permissions.d.ts.map new file mode 100644 index 00000000..cd9f1c3f --- /dev/null +++ b/dist/src/adapters/v1/permissions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../src/adapters/v1/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAGvD,KAAK,gBAAgB,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAA;AAChD,KAAK,eAAe,GAAG,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;AAE1E,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,kBAAkB,CAAC,EAAE,gBAAgB,CAAA;CACtC;AAED,qBAAa,sBAAuB,YAAW,oBAAoB;IAE/D,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,SAAS;gBADT,MAAM,EAAE,YAAY,GAAG,IAAI,EAC3B,SAAS,EAAE,MAAM,GAAG,IAAI;YAGpB,mBAAmB;YAenB,SAAS;YAYT,aAAa;YAKb,mBAAmB;IAQ3B,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAiC5D,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAyBnD"} \ No newline at end of file diff --git a/dist/src/adapters/v1/permissions.js.map b/dist/src/adapters/v1/permissions.js.map new file mode 100644 index 00000000..62b18658 --- /dev/null +++ b/dist/src/adapters/v1/permissions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../../src/adapters/v1/permissions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAU5D,MAAM,OAAO,sBAAsB;IAEvB;IACA;IAFV,YACU,MAA2B,EAC3B,SAAwB;QADxB,WAAM,GAAN,MAAM,CAAqB;QAC3B,cAAS,GAAT,SAAS,CAAe;IAC/B,CAAC;IAEI,KAAK,CAAC,mBAAmB;QAC/B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,OAAO,EAAE,CAAA;QACX,CAAC;QACD,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC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M,CAAC,kBAAkB,CAAA;QAE5C,IAAI,UAAU,KAAK,MAAM,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,aAAa,CACtB,wCAAwC,OAAO,mCAAmC,IAAI,CAAC,SAAS,+DAA+D,CAChK,CAAA;QACH,CAAC;QAED,IAAI,UAAU,KAAK,KAAK,EAAE,CAAC;YACzB,4DAA4D;QAC9D,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/adapters/v2/index.d.ts.map b/dist/src/adapters/v2/index.d.ts.map new file mode 100644 index 00000000..d4540ba0 --- /dev/null +++ b/dist/src/adapters/v2/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/v2/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAErF,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,WAAW,CAAC,EAAE,oBAAoB,CAAA;CACnC;AAED,qBAAa,aAAc,YAAW,WAAW;IAC/C,QAAQ,CAAC,EAAE,iBAAgB;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAA;IACnC,QAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB,CAAA;gBAE/B,OAAO,GAAE,gBAAqB;IAK1C,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAG1C;AAED,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,gBAAgB,GAAG,WAAW,CAEvE"} \ No newline at end of file diff --git a/dist/src/adapters/v2/index.js.map b/dist/src/adapters/v2/index.js.map new file mode 100644 index 00000000..5c59883b --- /dev/null +++ b/dist/src/adapters/v2/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/v2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAQrD,MAAM,OAAO,aAAa;IACf,EAAE,GAAG,aAAa,CAAA;IAClB,QAAQ,CAAkB;IAC1B,WAAW,CAAuB;IAE3C,YAAY,UAA4B,EAAE;QACxC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QAChC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;IACxC,CAAC;IAED,gBAAgB,CAAC,SAAiB;QAChC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC;CACF;AAED,MAAM,UAAU,eAAe,CAAC,OAA0B;IACxD,OAAO,IAAI,aAAa,CAAC,OAAO,CAAC,CAAA;AACnC,CAAC"} \ No newline at end of file diff --git a/dist/src/adapters/v2/permissions.d.ts.map b/dist/src/adapters/v2/permissions.d.ts.map new file mode 100644 index 00000000..368355da --- /dev/null +++ b/dist/src/adapters/v2/permissions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../src/adapters/v2/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEjF;;;;;;GAMG;AACH,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACtD;AAED,MAAM,WAAW,uBAAuB;IACtC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kFAAkF;IAClF,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAA;CACzD;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,kBAAkB,CAAA;IAC9B,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAoB;IAC/C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAQ;gBAEvB,OAAO,EAAE,6BAA6B;IAK5C,YAAY,CAChB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC;IAWV,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC;YASxE,MAAM;CA2BrB;AAwCD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,kBAAkB,GAAG,SAAS,EAC1C,SAAS,CAAC,EAAE,MAAM,GACjB,sBAAsB,GAAG,SAAS,CAKpC"} \ No newline at end of file diff --git a/dist/src/adapters/v2/permissions.js.map b/dist/src/adapters/v2/permissions.js.map new file mode 100644 index 00000000..365256b8 --- /dev/null +++ b/dist/src/adapters/v2/permissions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../../src/adapters/v2/permissions.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,sBAAsB;IAChB,UAAU,CAAoB;IAC9B,SAAS,CAAS;IAEnC,YAAY,OAAsC;QAChD,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,CAAA;QACpC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;IACpC,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAAe,EACf,IAAc,EACd,OAAkC;QAElC,MAAM,WAAW,GAAG,CAAC,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;IACjC,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,GAAG,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,UAA0C,EAC1C,SAAkB;IAElB,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;QAC3D,OAAO,SAAS,CAAA;IAClB,CAAC;IACD,OAAO,IAAI,sBAAsB,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAA;AAC9D,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin.d.ts.map b/dist/src/plugin.d.ts.map new file mode 100644 index 00000000..9e93cf8d --- /dev/null +++ b/dist/src/plugin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAapE,eAAO,MAAM,SAAS,GAAU,SAAS,aAAa,KAAG,OAAO,CAAC,YAAY,CA8D5E,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin.js.map b/dist/src/plugin.js.map new file mode 100644 index 00000000..2f386036 --- /dev/null +++ b/dist/src/plugin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACpD,OAAO,EA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K,EAAE;4BACL;gCACE,IAAI,EAAE,MAAM;gCACZ,IAAI,EAAE,OAAO;6BACd;yBACF;qBACF;iBACF,CAAC,CAAA;YACJ,CAAC;YACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;QAClD,CAAC;QACD,IAAI,EAAE;YACJ,SAAS,EAAE,QAAQ;YACnB,SAAS,EAAE,QAAQ;YACnB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,OAAO;YACjB,QAAQ,EAAE,OAAO;SAClB;QACD,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;YACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACnB,KAAK,CAAC,OAAO,GAAG,EAAE,CAAA;YACpB,CAAC;YACD,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,GAAG;gBACpC,QAAQ,EAAE,iFAAiF;gBAC3F,WAAW,EAAE,iCAAiC;aAC/C,CAAA;YACD,KAAK,CAAC,OAAO,CAAC,uBAAuB,CAAC,GAAG;gBACvC,QAAQ,EAAE,4DAA4D;gBACtE,WAAW,EAAE,qCAAqC;aACnD,CAAA;QACH,CAAC;QACD,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YACzB,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;gBACrC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACtD,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/constants.d.ts.map b/dist/src/plugin/constants.d.ts.map new file mode 100644 index 00000000..27150bf1 --- /dev/null +++ b/dist/src/plugin/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/plugin/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,MAAM,CAAA;AACxC,eAAO,MAAM,qBAAqB,KAAK,CAAA;AACvC,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,2BAA2B,KAAK,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/constants.js.map b/dist/src/plugin/constants.js.map new file mode 100644 index 00000000..1ca2e7c9 --- /dev/null +++ b/dist/src/plugin/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/plugin/constants.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,gCAAgC;AAChC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;AACxC,MAAM,CAAC,MAAM,qBAAqB,GAAG,EAAE,CAAA;AACvC,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;AAC7C,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/buffer.d.ts.map b/dist/src/plugin/pty/buffer.d.ts.map new file mode 100644 index 00000000..7b8bfb77 --- /dev/null +++ b/dist/src/plugin/pty/buffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"buffer.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/buffer.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,OAAO,CAAQ;gBAEX,OAAO,GAAE,MAAgC;IAIrD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO1B,OAAO,CAAC,gBAAgB;IASxB,IAAI,CAAC,MAAM,GAAE,MAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE;IAQlD,OAAO,IAAI,MAAM;IAIjB,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,EAAE;IAatC,IAAI,MAAM,IAAI,MAAM,CAInB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,KAAK,IAAI,IAAI;IAIb,KAAK,IAAI,IAAI;CAGd"} \ No newline at end of file diff --git a/dist/src/plugin/pty/buffer.js.map b/dist/src/plugin/pty/buffer.js.map new file mode 100644 index 00000000..5506a2b0 --- /dev/null +++ b/dist/src/plugin/pty/buffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/plugin/pty/buffer.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,uBAAuB,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,SAAS,EAAE,EAAE,CAAC,CAAA;AAO1F,MAAM,OAAO,UAAU;IACb,MAAM,GAAW,EAAE,CAAA;IACnB,OAAO,CAAQ;IAEvB,YAAY,UAAkB,uBAAuB;QACnD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,MAAM,CAAC,IAAY;QACjB,IAAI,CAAC,MAAM,IAAI,IAAI,CAAA;QACnB,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YACtC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;IAEO,gBAAgB;QACtB,MAAM,KAAK,GAAa,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAC/C,gEAAgE;QAChE,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;YACnD,KAAK,CAAC,GAAG,EAAE,CAAA;QACb,CAAC;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED,IAAI,CAAC,SAAiB,CAAC,EAAE,KAAc;Q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CAAC;IAED,KAAK;QACH,8BAA8B;IAChC,CAAC;IAED,KAAK;QACH,IAAI,CAAC,MAAM,GAAG,EAAE,CAAA;IAClB,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/plugin/pty/formatters.d.ts.map b/dist/src/plugin/pty/formatters.d.ts.map new file mode 100644 index 00000000..76a6dbc6 --- /dev/null +++ b/dist/src/plugin/pty/formatters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,EAAE,CAgBnE;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,MAAa,GAAG,MAAM,CAI1F"} \ No newline at end of file diff --git a/dist/src/plugin/pty/formatters.js.map b/dist/src/plugin/pty/formatters.js.map new file mode 100644 index 00000000..e756807c --- /dev/null +++ b/dist/src/plugin/pty/formatters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../../src/plugin/pty/formatters.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,iBAAiB,CAAC,OAAuB;IACvD,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAA;IAC3D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IACrF,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAC/E,MAAM,WAAW,GACf,OAAO,CAAC,cAAc,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,OAAO,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IACtF,OAAO;QACL,IAAI,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,KAAK,EAAE;QAClC,cAAc,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACzD,aAAa,OAAO,CAAC,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,EAAE;QACpE,UAAU,OAAO,CAAC,GAAG,GAAG,WAAW,EAAE;QACrC,YAAY,OAAO,CAAC,SAAS,EAAE;QAC/B,cAAc,OAAO,CAAC,OAAO,EAAE;QAC/B,cAAc,OAAO,CAAC,SAAS,EAAE;QACjC,EAAE;KACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY,EAAE,OAAe,EAAE,YAAoB,IAAI;IAChF,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;IACtD,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAA;IACvF,OAAO,GAAG,UAAU,KAAK,aAAa,EAAE,CAAA;AAC1C,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/pty/manager.d.ts.map b/dist/src/plugin/pty/manager.d.ts.map new file mode 100644 index 00000000..ca01bc27 --- /dev/null +++ b/dist/src/plugin/pty/manager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,cAAc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EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI;IAS5F,IAAI,IAAI,cAAc,EAAE;IAIxB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAStC,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAYpE,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,OAAe,GAAG,OAAO;IAInD,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;CAGhD;AAED,eAAO,MAAM,OAAO,YAAmB,CAAA;AAEvC,wBAAgB,WAAW,CAAC,SAAS,EAAE,cAAc,GAAG,IAAI,CAE3D;AAED,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI,GAAG,IAAI,CAEzE"} \ No newline at end of file diff --git a/dist/src/plugin/pty/manager.js.map b/dist/src/plugin/pty/manager.js.map new file mode 100644 index 00000000..fe58ab9b --- /dev/null +++ b/dist/src/plugin/pty/manager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../../../src/plugin/pty/manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAEhE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,MAAM,KAAK,GAAG,QAAQ,CAAC,SAA4E,CAAA;AAEnG,MAAM,QAAQ,GAAG,KAAK,CAAC,cAAc,CAAA;AAErC,IAAI,OAAO,QAA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CAAC;IAED,GAAG,CAAC,EAAU;QACZ,OAAO,WAAW,CAChB,IAAI,CAAC,gBAAgB,EACrB,EAAE,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,EAClD,IAAI,CACL,CAAA;IACH,CAAC;IAED,YAAY,CAAC,EAAU;QACrB,OAAO,WAAW,CAChB,IAAI,CAAC,gBAAgB,EACrB,EAAE,EACF,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACZ,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE;YAC7B,UAAU,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU;SACtC,CAAC,EACF,IAAI,CACL,CAAA;IACH,CAAC;IAED,IAAI,CAAC,EAAU,EAAE,UAAmB,KAAK;QACvC,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAChD,CAAC;IAED,gBAAgB,CAAC,eAAuB;QACtC,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAA;IACzD,CAAC;CACF;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,UAAU,EAAE,CAAA;AAEvC,MAAM,UAAU,WAAW,CAAC,SAAyB;IACnD,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;AACzB,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,QAAgC;IACjE,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;AAC/B,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/pty/notification-manager.d.ts.map b/dist/src/plugin/pty/notification-manager.d.ts.map new file mode 100644 index 00000000..6c218489 --- /dev/null +++ b/dist/src/plugin/pty/notification-manager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"notification-manager.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/notification-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAGtD,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,MAAM,CAA8B;IAE5C,IAAI,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI;IAI5B,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA2CjF;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiDnF"} \ No newline at end of file diff --git a/dist/src/plugin/pty/notification-manager.js.map b/dist/src/plugin/pty/notification-manager.js.map new file mode 100644 index 00000000..2300f1c8 --- /dev/null +++ b/dist/src/plugin/pty/notification-manager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"notification-manager.js","sourceRoot":"","sources":["../../../../src/plugin/pty/notification-manager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAA;AAEzF,MAAM,OAAO,mBAAmB;IACtB,MAAM,GAA0B,IAAI,CAAA;IAE5C,IAAI,CAAC,MAAsB;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,OAAmB,EAAE,QAAgB;QAC9D,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACjB,OAAM;QACR,CAAC;QAED,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;YACxD,IAAI,YAAY,GAGZ,EAAE,CAAA;YACN,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,M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AAK,CAAC,EAAE,CAAC;QAC1B,KAAK,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAA;IACtD,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CACR,6FAA6F,CAC9F,CAAA;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/pty/output-manager.d.ts.map b/dist/src/plugin/pty/output-manager.d.ts.map new file mode 100644 index 00000000..e951ebb1 --- /dev/null +++ b/dist/src/plugin/pty/output-manager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"output-manager.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/output-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEtE,qBAAa,aAAa;IACxB,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO;IASjD,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,GAAE,MAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU;IAOzE,MAAM,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,MAAU,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,YAAY;CAS/F"} \ No newline at end of file diff --git a/dist/src/plugin/pty/output-manager.js.map b/dist/src/plugin/pty/output-manager.js.map new file mode 100644 index 00000000..a2c31bb4 --- /dev/null +++ b/dist/src/plugin/pty/output-manager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"output-manager.js","sourceRoot":"","sources":["../../../../src/plugin/pty/output-manager.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,aAAa;IACxB,KAAK,CAAC,OAAmB,EAAE,IAAY;QACrC,IAAI,CAAC;YACH,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;YAC5B,OAAO,IAAI,CAAA;QACb,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAA,CAAC,0CAA0C;QACxD,CAAC;IACH,CAAC;IAED,IAAI,CAAC,OAAmB,EAAE,SAAiB,CAAC,EAAE,KAAc;QAC1D,MAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QAChD,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAA;QACxC,MAAM,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,UAAU,CAAA;QAClD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;IAC/C,CAAC;IAED,MAAM,CAAC,OAAmB,EAAE,OAAe,EAAE,SAAiB,CAAC,EAAE,KAAc;QAC7E,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QACjD,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAA;QACtC,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAA;QACxC,MAAM,gBAAgB,GACpB,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC3F,MAAM,OAAO,GAAG,MAAM,GAAG,gBAAgB,CAAC,MAAM,GAAG,YAAY,CAAA;QAC/D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,CAAA;IACjF,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/plugin/pty/permissions.d.ts.map b/dist/src/plugin/pty/permissions.d.ts.map new file mode 100644 index 00000000..0799d22a --- /dev/null +++ b/dist/src/plugin/pty/permissions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAG7F,YAAY,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,CAAA;AAI9D;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI,GAAG,IAAI,CAErF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,GAAG,IAAI,CAErE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAE7E;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,OAAO,GAAG,wBAAwB,CASvF;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC,CAWf;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,IAAI,CAAC,CASf"} \ No newline at end of file diff --git a/dist/src/plugin/pty/permissions.js.map b/dist/src/plugin/pty/permissions.js.map new file mode 100644 index 00000000..518f4faf --- /dev/null +++ b/dist/src/plugin/pty/permissions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../../src/plugin/pty/permissions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAIzE,IAAI,WAAW,GAAgC,IAAI,CA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AAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAC1C,OAAe,EACf,OAAkC;IAElC,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAM;IACR,CAAC;IACD,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QAChD,OAAM;IACR,CAAC;IACD,MAAM,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;AACzC,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/pty/session-lifecycle.d.ts.map b/dist/src/plugin/pty/session-lifecycle.d.ts.map new file mode 100644 index 00000000..512092e2 --- /dev/null +++ b/dist/src/plugin/pty/session-lifecycle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"session-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/session-lifecycle.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAY1E,qBAAa,uBAAuB;IAClC,OAAO,CAAC,QAAQ,CAAqC;IACrD,OAAO,CAAC,eAAe,CAAwD;IAE/E,OAAO,CAAC,uBAAuB;IAY/B,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,sBAAsB;IA6B9B,OAAO,CAAC,mBAAmB;IA8B3B,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,kBAAkB;IA8B1B,KAAK,CACH,IAAI,EAAE,YAAY,EAClB,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,EACnD,MAAM,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,GAC7D,cAAc;IASjB,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,OAAe,GAAG,OAAO;IAyBnD,OAAO,CAAC,wBAAwB;IAMhC,gBAAgB,IAAI,IAAI;IAIxB,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI;IAQ/C,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAIzC,YAAY,IAAI,UAAU,EAAE;IAI5B,MAAM,CAAC,OAAO,EAAE,UAAU,GAAG,cAAc;CAoB5C"} \ No newline at end of file diff --git a/dist/src/plugin/pty/session-lifecycle.js.map b/dist/src/plugin/pty/session-lifecycle.js.map new file mode 100644 index 00000000..2726589a --- /dev/null +++ b/dist/src/plugin/pty/session-lifecycle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"session-lifecycle.js","sourceRoot":"","sources":["../../../../src/plugin/pty/session-lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAa,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAE9E,MAAM,sBAAsB,GAAG,CAAC,CAAA;AAEhC,SAAS,UAAU;IACjB,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC;SACnF,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;SAC3C,IAAI,CAAC,EAAE,CAAC,CAAA;IACX,OAAO,OAAO,GAAG,EAAE,CAAA;AACrB,CAAC;AAED,MAAM,OAAO,uBAAuB;IAC1B,QAAQ,GAA4B,IAAI,GAAG,EAAE,CAAA;IAC7C,eAAe,GAA+C,IAAI,GAAG,EAAE,CAAA;IAEvE,uBAAuB,CAAC,cAAkC;QAChE,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,SA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ChB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1C,SAAS,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;SACjC,CAAA;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/kill.d.ts.map b/dist/src/plugin/pty/tools/kill.d.ts.map new file mode 100644 index 00000000..096cc946 --- /dev/null +++ b/dist/src/plugin/pty/tools/kill.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"kill.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/kill.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;;;;;;;CAmClB,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/kill.js.map b/dist/src/plugin/pty/tools/kill.js.map new file mode 100644 index 00000000..8e12a17b --- /dev/null +++ b/dist/src/plugin/pty/tools/kill.js.map @@ -0,0 +1 @@ +{"version":3,"file":"kill.js","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/kill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,WAAW,MAAM,YAAY,CAAA;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE;QACJ,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;QAC5E,OAAO,EAAE,IAAI,CAAC,MAAM;aACjB,OAAO,EAAE;aACT,QAAQ,EAAE;aACV,QAAQ,CAAC,oEAAoE,CAAC;KAClF;IACD,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAC1C,CAAC;QAED,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,KAAK,SAAS,CAAA;QAC/C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,KAAK,CAAA;QACrC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAA;QAE9C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;QAC7D,CAAC;QAED,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAA;QACnD,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,oCAAoC,CAAA;QAEzF,OAAO;YACL,cAAc;YACd,GAAG,MAAM,KAAK,IAAI,CAAC,EAAE,GAAG,WAAW,EAAE;YACrC,UAAU,OAAO,CAAC,KAAK,EAAE;YACzB,YAAY,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACvD,qBAAqB,OAAO,CAAC,SAAS,EAAE;YACxC,eAAe;SAChB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACd,CAAC;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/list.d.ts.map b/dist/src/plugin/pty/tools/list.d.ts.map new file mode 100644 index 00000000..d2e1cdb0 --- /dev/null +++ b/dist/src/plugin/pty/tools/list.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/list.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO;;;;CAmBlB,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/list.js.map b/dist/src/plugin/pty/tools/list.js.map new file mode 100644 index 00000000..6afb62dc --- /dev/null +++ b/dist/src/plugin/pty/tools/list.js.map @@ -0,0 +1 @@ +{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,WAAW,MAAM,YAAY,CAAA;AAEpC,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,EAAE;IACR,KAAK,CAAC,OAAO;QACX,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,EAAE,CAAA;QAE/B,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,OAAO,kDAAkD,CAAA;QAC3D,CAAC;QAED,MAAM,KAAK,GAAG,CAAC,YAAY,CAAC,CAAA;QAC5B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;YAC/B,KAAK,CAAC,IAAI,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAA;QAC3C,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,UAAU,QAAQ,CAAC,MAAM,aAAa,CAAC,CAAA;QAClD,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QAEzB,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACzB,CAAC;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/read.d.ts.map b/dist/src/plugin/pty/tools/read.d.ts.map new file mode 100644 index 00000000..b24e5061 --- /dev/null +++ b/dist/src/plugin/pty/tools/read.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/read.ts"],"names":[],"mappings":"AAoNA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CA0ClB,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/read.js.map b/dist/src/plugin/pty/tools/read.js.map new file mode 100644 index 00000000..b47b5651 --- /dev/null +++ b/dist/src/plugin/pty/tools/read.js.map @@ -0,0 +1 @@ +{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,WAAW,MAAM,YAAY,CAAA;AAEpC,MAAM,uBAAuB,GAAG;IAC9B,mBAAmB;IACnB,sDAAsD;IACtD,4FAA4F;IAC5F,oGAAoG;IACpG,+DAA+D;IAC/D,yKAAyK;IACzK,oBAAoB;CACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAEZ,SAAS,oBAAoB,CAAC,OAAuB;IACnD,OAAO;QACL,mBAAmB;QACnB,gEAAgE,OAAO,CAAC,cAAc,IAAI,SAAS,KAAK;QACxG,wFAAwF;QACxF,oBAAoB;KACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACd,CAAC;AAUD;;GAEG;AACH,SAAS,eAAe,CACtB,EAAU,EACV,MAAc,EACd,OAA2B,EAC3B,cAAwB,EACxB,OAAgB,EAChB,iBAAyB,EACzB,UAAkB;IAElB,MAAM,MAAM,GAAG;QACb,mBAAmB,EAAE,aAAa,MAAM,IAAI,OAAO,CAAC,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EAAE;aACV,QAAQ,CAAC,oDAAoD,CAAC;KAClE;IACD,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QACpC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,yBAAyB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAC1C,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,CAAA;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,kBAAkB,CAAA;QAE9C,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;QAC1F,CAAC;aAAM,CAAC;YACN,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;QACtD,CAAC;IACH,CAAC;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/spawn.d.ts.map b/dist/src/plugin/pty/tools/spawn.d.ts.map new file mode 100644 index 00000000..70703629 --- /dev/null +++ b/dist/src/plugin/pty/tools/spawn.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/spawn.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAsEnB,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/spawn.js b/dist/src/plugin/pty/tools/spawn.js index 3f7d6498..6eecb0bf 100644 --- a/dist/src/plugin/pty/tools/spawn.js +++ b/dist/src/plugin/pty/tools/spawn.js @@ -1,4 +1,5 @@ import { tool } from '@opencode-ai/plugin'; +import { resolve } from 'node:path'; import { manager } from "../manager.js"; import { checkCommandPermission, checkWorkdirPermission, permissionRequestContext, } from "../permissions.js"; import DESCRIPTION from './spawn.txt'; @@ -36,14 +37,18 @@ export const ptySpawn = tool({ async execute(args, ctx) { const permissionContext = permissionRequestContext(ctx); await checkCommandPermission(args.command, args.args ?? [], permissionContext); - if (args.workdir) { - await checkWorkdirPermission(args.workdir, permissionContext); + // Resolve relative workdirs against the session project directory. + // Without resolution, permission checks and manager.spawn receive a + // relative path that may point outside the expected directory tree. + const workdir = resolve(ctx.directory ?? '', args.workdir ?? ''); + if (workdir) { + await checkWorkdirPermission(workdir, permissionContext); } const sessionId = ctx.sessionID; const info = manager.spawn({ command: args.command, args: args.args, - workdir: args.workdir, + workdir, env: args.env, title: args.title, description: args.description, diff --git a/dist/src/plugin/pty/tools/spawn.js.map b/dist/src/plugin/pty/tools/spawn.js.map new file mode 100644 index 00000000..95c7042c --- /dev/null +++ b/dist/src/plugin/pty/tools/spawn.js.map @@ -0,0 +1 @@ +{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/spawn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,WAAW,MAAM,aAAa,CAAA;AAErC,MAAM,2BAA2B,GAAG;IAClC,mBAAmB;IACnB,4EAA4E;IAC5E,6GAA6G;IAC7G,+EAA+E;IAC/E,oLAAoL;IACpL,oBAAoB;CACrB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AAEZ,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE;QACJ,OAAO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git a/dist/src/plugin/pty/tools/write.d.ts.map b/dist/src/plugin/pty/tools/write.d.ts.map new file mode 100644 index 00000000..38b81c66 --- /dev/null +++ b/dist/src/plugin/pty/tools/write.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/write.ts"],"names":[],"mappings":"AAuDA,eAAO,MAAM,QAAQ;;;;;;;;;;CAyCnB,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/tools/write.js.map b/dist/src/plugin/pty/tools/write.js.map new file mode 100644 index 00000000..c8f2293e --- /dev/null +++ b/dist/src/plugin/pty/tools/write.js.map @@ -0,0 +1 @@ +{"version":3,"file":"write.js","sourceRoot":"","sources":["../../../../../src/plugin/pty/tools/write.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,WAAW,MAAM,aAAa,CAAA;AAErC,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;AAClC,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;AAElC;;;GAGG;AACH,SAAS,oBAAoB,CAAC,KAAa;IACzC,OAAO,KAAK,CAAC,OAAO,CAAC,8CAA8C,EAAE,CAAC,KAAK,EAAE,GAAW,EAAE,EAAE;QAC1F,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACxB,OAAO,MAAM,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;QACxD,CAAC;QACD,IAAI,GAAG,CAAC,UAA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C,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,KAAK,CAAC,2BAA2B,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;QACzD,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAA;QAClF,MAAM,cAAc,GAAG,OAAO;aAC3B,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC;aACnC,OAAO,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,IAAI,CAAC;aACnC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;aACrB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;QACxB,OAAO,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,aAAa,IAAI,CAAC,EAAE,MAAM,cAAc,GAAG,CAAA;IAC5E,CAAC;CACF,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/pty/types.d.ts.map b/dist/src/plugin/pty/types.d.ts.map new file mode 100644 index 00000000..e73497ff --- /dev/null +++ b/dist/src/plugin/pty/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AACnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEnE,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM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IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,KAAK,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACpD,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB"} \ No newline at end of file diff --git a/dist/src/plugin/pty/types.js.map b/dist/src/plugin/pty/types.js.map new file mode 100644 index 00000000..114ec989 --- /dev/null +++ b/dist/src/plugin/pty/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugin/pty/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/src/plugin/pty/utils.d.ts.map b/dist/src/plugin/pty/utils.d.ts.map new file mode 100644 index 00000000..35fac7f4 --- /dev/null +++ b/dist/src/plugin/pty/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,OAAO,EAC3C,OAAO,EAAE;IAAE,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAA;CAAE,EACpD,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,EAClC,YAAY,EAAE,OAAO,GACpB,OAAO,CAIT"} \ No newline at end of file diff --git a/dist/src/plugin/pty/utils.js.map b/dist/src/plugin/pty/utils.js.map new file mode 100644 index 00000000..d3cb2fac --- /dev/null +++ b/dist/src/plugin/pty/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/plugin/pty/utils.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,yBAAyB,CAAC,EAAU;IAClD,OAAO,IAAI,KAAK,CAAC,gBAAgB,EAAE,mDAAmD,CAAC,CAAA;AACzF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,WAAW,CACzB,OAAoD,EACpD,EAAU,EACV,EAAkC,EAClC,YAAqB;IAErB,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAA;IACtC,IAAI,CAAC,OAAO;QAAE,OAAO,YAAY,CAAA;IACjC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAA;AACpB,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/pty/wildcard.d.ts.map b/dist/src/plugin/pty/wildcard.d.ts.map new file mode 100644 index 00000000..23fab341 --- /dev/null +++ b/dist/src/plugin/pty/wildcard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"wildcard.d.ts","sourceRoot":"","sources":["../../../../src/plugin/pty/wildcard.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAW3D;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,SAAS,CAWvF;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,EACvC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,GAAG,SAAS,CAcpB"} \ No newline at end of file diff --git a/dist/src/plugin/pty/wildcard.js.map b/dist/src/plugin/pty/wildcard.js.map new file mode 100644 index 00000000..ab611f7e --- /dev/null +++ b/dist/src/plugin/pty/wildcard.js.map @@ -0,0 +1 @@ +{"version":3,"file":"wildcard.js","sourceRoot":"","sources":["../../../../src/plugin/pty/wildcard.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,KAAK,CAAC,GAAW,EAAE,OAAe;IAChD,MAAM,KAAK,GAAG,IAAI,MAAM,CACtB,GAAG;QACD,OAAO;aACJ,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC;aACpC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC;aACpB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;QACtB,GAAG,EACL,GAAG,CACJ,CAAA;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,KAAa,EAAE,QAAgC;IACjE,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC1C,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAChE,CAAA;IACD,IAA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ACtC,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,QAAQ,CAAA;IACnC,IAAI,OAAO,KAAK,GAAG;QAAE,OAAO,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACrB,IACE,IAAI,KAAK,SAAS;YAClB,OAAO,KAAK,SAAS;YACrB,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC;YACpB,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,EACvC,CAAC;YACD,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAA;AACd,CAAC"} \ No newline at end of file diff --git a/dist/src/plugin/types.d.ts.map b/dist/src/plugin/types.d.ts.map new file mode 100644 index 00000000..5428ecd5 --- /dev/null +++ b/dist/src/plugin/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/plugin/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE1D,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/plugin/types.js.map b/dist/src/plugin/types.js.map new file mode 100644 index 00000000..3b091354 --- /dev/null +++ b/dist/src/plugin/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/plugin/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/src/shared/constants.d.ts.map b/dist/src/shared/constants.d.ts.map new file mode 100644 index 00000000..259c6ac2 --- /dev/null +++ b/dist/src/shared/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,MAAM,CAAA;AACrC,eAAO,MAAM,eAAe,OAAO,CAAA;AACnC,eAAO,MAAM,wBAAwB,QAAQ,CAAA;AAG7C,eAAO,MAAM,yBAAyB,MAAM,CAAA"} \ No newline at end of file diff --git a/dist/src/shared/constants.js.map b/dist/src/shared/constants.js.map new file mode 100644 index 00000000..8e137d30 --- /dev/null +++ b/dist/src/shared/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CAAA;AACrC,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAA;AACnC,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAK,CAAA;AAE7C,mCAAmC;AACnC,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA"} \ No newline at end of file diff --git a/dist/src/shared/runtime.d.ts.map b/dist/src/shared/runtime.d.ts.map new file mode 100644 index 00000000..79c6b6c4 --- /dev/null +++ b/dist/src/shared/runtime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/shared/runtime.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,gBAAgB,iBAAiB,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAMnC;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,sDAAsD;AACtD,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/C;AAgBD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IACjC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,MAAM,GAAG,IAAI,CA4BhB;AAED,gEAAgE;AAChE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAOtD;AAQD;;;;;;GAMG;AACH,wBAAgB,WAAW,IAAI,YAAY,EAAE,CAmB5C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,YAAY,EAAE,CAYvF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAOrF"} \ No newline at end of file diff --git a/dist/src/shared/runtime.js.map b/dist/src/shared/runtime.js.map new file mode 100644 index 00000000..4509cca5 --- /dev/null +++ b/dist/src/shared/runtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../src/shared/runtime.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,gFAAgF;AAChF,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,kFAAkF;AAClF,yEAAyE;AACzE,EAAE;AACF,uCAAuC;AACvC,8EAA8E;AAC9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,CAAC;QACxB,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC9E,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,IAAI,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;AAC7D,CAAC"} \ No newline at end of file diff --git a/dist/src/tui/index.d.ts.map b/dist/src/tui/index.d.ts.map new file mode 100644 index 00000000..41e2cd2d --- /dev/null +++ b/dist/src/tui/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tui/index.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,YAAY,EAAmB,MAAM,yBAAyB,CAAA;;;eA+bpD,YAAY,KAAG,OAAO,CAAC,IAAI,CAAC;;AA4cpD,wBAAoE"} \ No newline at end of file diff --git a/dist/src/tui/index.js.map b/dist/src/tui/index.js.map new file mode 100644 index 00000000..25c63ed6 --- /dev/null +++ b/dist/src/tui/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tui/index.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,mBAAmB;AACnB,+EAA+E;AAC/E,uCAAuC;AACvC,EAAE;AACF,2CAA2C;AAC3C,EAAE;AACF,iFAAiF;AACjF,wCAAwC;AACxC,+EAA+E;AAC/E,6EAA6E;AAC7E,4DAA4D;AAC5D,6EAA6E;AAC7E,yDAAyD;AACzD,6EAA6E;AAC7E,8EAA8E;AAC9E,iFAAiF;AACjF,qDAAqD;AACrD,kFAAkF;AAClF,8EAA8E;AAC9E,4EAA4E;AAC5E,4EAA4E;AAC5E,8DAA8D;AAC9D,+EAA+E;AAC/E,sDAAsD;AACtD,EAAE;AACF,gFAAgF;AAChF,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E,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IACzB,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE;QAC3B,OAAO,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IAC3B,CAAC,EAAE,OAAO,CAAC,CAAA;AACb,CAAC,CAAA;AAED,eAAe,EAAE,EAAE,EAAE,cAAc,EAAE,GAAG,EAA4B,CAAA"} \ No newline at end of file diff --git a/dist/src/tui/lib.d.ts.map b/dist/src/tui/lib.d.ts.map new file mode 100644 index 00000000..a43334ab --- /dev/null +++ b/dist/src/tui/lib.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/tui/lib.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAW3D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQ7D;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,kCAAkC,CAAA;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAM5D;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAcjD;AAUD;oEACoE;AACpE,eAAO,MAAM,UAAU,YAAO,CAAA;AAkB9B;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CASjD;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAMvE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAIpD;AAED,yEAAyE;AACzE,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAG9E;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAE7D;AAED,kEAAkE;AAClE,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAIpF;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAuBrD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAInD;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAIzD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,OAAO,GAAG,MAAM,CASlD"} \ No newline at end of file diff --git a/dist/src/tui/lib.js.map b/dist/src/tui/lib.js.map new file mode 100644 index 00000000..e8fadd72 --- /dev/null +++ b/dist/src/tui/lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/tui/lib.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,EAAE;AACF,+EAA+E;AAC/E,2EAA2E;AAC3E,2CAA2C;AAE3C;;;0CAG0C;AAC1C,MAAM,MAAM,GAAG,qDAAqD,CAAA;AAEpE,iFAAiF;AACjF,MAAM,aAAa,GAAG,gBAAgB,CAAA;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAa;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ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C1E,OAAO,GAAG,OAAO,GAAG,CAAA;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/src/v2/commands.d.ts.map b/dist/src/v2/commands.d.ts.map new file mode 100644 index 00000000..6bef0d04 --- /dev/null +++ b/dist/src/v2/commands.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../src/v2/commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAE9C,eAAO,MAAM,uBAAuB,4BAA4B,CAAA;AAChE,eAAO,MAAM,2BAA2B,wBAAwB,CAAA;AAIhE,wBAAsB,iBAAiB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAKnF;AAED,wBAAgB,eAAe,IAAI,SAAS,GAAG,IAAI,CAElD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAKvC;AAED,wBAAsB,uBAAuB,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAKtF;AAED,wBAAsB,0BAA0B,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAGzF;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,CAqBrF"} \ No newline at end of file diff --git a/dist/src/v2/commands.js.map b/dist/src/v2/commands.js.map new file mode 100644 index 00000000..f86d2be0 --- /dev/null +++ b/dist/src/v2/commands.js.map @@ -0,0 +1 @@ +{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../../src/v2/commands.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAE,SAAS,EAAsB,MAAM,yBAAyB,CAAA;AAGvE,MAAM,CA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AAI,CAAC,KAAK,CAAC,CAAA;IAEjC,GAAG,CAAC;QACF,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,iCAAiC;QAC9C,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAA;QACxC,CAAC;KACF,CAAC,CAAA;IAEF,GAAG,CAAC;QACF,IAAI,EAAE,2BAA2B;QACjC,WAAW,EAAE,qCAAqC;QAClD,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,MAAM,0BAA0B,CAAC,OAAO,CAAC,CAAA;QAC3C,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"} \ No newline at end of file diff --git a/dist/src/v2/index.d.ts.map b/dist/src/v2/index.d.ts.map new file mode 100644 index 00000000..513319dd --- /dev/null +++ b/dist/src/v2/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAgC,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAA;AAExE,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAE1B;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,QA0DnB,CAAA;AAEF,eAAe,MAAM,CAAA"} \ No newline at end of file diff --git a/dist/src/v2/index.js b/dist/src/v2/index.js index 215df757..01f561d8 100644 --- a/dist/src/v2/index.js +++ b/dist/src/v2/index.js @@ -43,7 +43,7 @@ export const Plugin = define({ installHostAdapter(adapter); if (ctx.tool && typeof ctx.tool.transform === 'function') { await ctx.tool.transform((draft) => { - registerV2Tools(draft); + registerV2Tools(draft, directory); }); } const serverOptions = { diff --git a/dist/src/v2/index.js.map b/dist/src/v2/index.js.map new file mode 100644 index 00000000..0f10762a --- /dev/null +++ b/dist/src/v2/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources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Ae,MAAM,CAAA"} \ No newline at end of file diff --git a/dist/src/v2/notifier.d.ts.map b/dist/src/v2/notifier.d.ts.map new file mode 100644 index 00000000..c76a2f2f --- /dev/null +++ b/dist/src/v2/notifier.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../../../src/v2/notifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAA;AAEvE;;;;;;;;;;;;;;GAcG;AACH,qBAAa,iBAAkB,YAAW,eAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,eAAe;IAE/C,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAoBjF"} \ No newline at end of file diff --git a/dist/src/v2/notifier.js.map b/dist/src/v2/notifier.js.map new file mode 100644 index 00000000..2c4dbe53 --- /dev/null +++ b/dist/src/v2/notifier.js.map @@ -0,0 +1 @@ +{"version":3,"file":"notifier.js","sourceRoot":"","sources":["../../../src/v2/notifier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAa7E;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,iBAAiB;IACC;IAA7B,YAA6B,OAAwB;QAAxB,YAAO,GAAP,OAAO,CAAiB;IAAG,CAAC;IAEzD,KAAK,CAAC,oBAAoB,CAAC,OAAmB,EAAE,QAAgB;QAC9D,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC;YAC7B,OAAO,CAAC,IAAI,CAAC,yCAAyC,OAAO,CAAC,EAAE,wBAAwB,CAAC,CAAA;YACzF,OAAM;QACR,CAAC;QAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;QACrD,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;gBACxB,SAAS,EAAE,OAAO,CAAC,eAAe;gBAClC,EAAE,EAAE,OAAO,OAAO,CAAC,EAAE,SAAS;gBAC9B,IAAI;aACL,CAAC,CAAA;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CACX,0DAA0D,OAAO,CAAC,EAAE,GAAG,EACvE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CACvD,CAAA;QACH,CAAC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/v2/tools.d.ts b/dist/src/v2/tools.d.ts index 0f7f8f75..435dc40e 100644 --- a/dist/src/v2/tools.d.ts +++ b/dist/src/v2/tools.d.ts @@ -78,5 +78,5 @@ export type PTYToolName = keyof typeof ptyTools; * - `args` (Zod raw shape) -> `input`: JSON Schema (Zod v4 `toJSONSchema`) * - string result -> `{ content }` */ -export declare function registerV2Tools(draft: ToolDraft): void; +export declare function registerV2Tools(draft: ToolDraft, directory?: string): void; //# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/dist/src/v2/tools.d.ts.map b/dist/src/v2/tools.d.ts.map new file mode 100644 index 00000000..ca3350e3 --- /dev/null +++ b/dist/src/v2/tools.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/v2/tools.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,YAAY,CAAA;AAEvD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMX,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,CAAA;AAQ/C;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAoB1E"} \ No newline at end of file diff --git a/dist/src/v2/tools.js b/dist/src/v2/tools.js index 5e9ed537..0a3cfa20 100644 --- a/dist/src/v2/tools.js +++ b/dist/src/v2/tools.js @@ -20,7 +20,7 @@ export const ptyTools = { * - `args` (Zod raw shape) -> `input`: JSON Schema (Zod v4 `toJSONSchema`) * - string result -> `{ content }` */ -export function registerV2Tools(draft) { +export function registerV2Tools(draft, directory) { if (typeof draft.add !== 'function') { return; } @@ -32,7 +32,8 @@ export function registerV2Tools(draft) { description: definition.description, input: tool.schema.toJSONSchema(tool.schema.object(definition.args)), execute: async (input, context) => { - const result = await definition.execute(input, context); + const ctx = { directory, ...context }; + const result = await definition.execute(input, ctx); return typeof result === 'string' ? { content: result } : result; }, }; diff --git a/dist/src/v2/tools.js.map b/dist/src/v2/tools.js.map new file mode 100644 index 00000000..391819bc --- /dev/null +++ b/dist/src/v2/tools.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/v2/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAGvD,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,SAAS,EAAE,QAAQ;IACnB,SAAS,EAAE,QAAQ;IACnB,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,OAAO;CACT,CAAA;AAUV;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,KAAgB,EAAE,SAAkB;IAClE,IAAI,OAAO,KAAK,CAAC,GAAG,KAAK,UAAU,EAAE,CAAC;QACpC,OAAM;IACR,CAAC;IACD,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjC,MAAM,KAAK,GAAG,QAAuD,CAAA;IAErE,KAAK,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,GAAe;YACvB,IAAI;YACJ,WAAW,EAAE,UAAU,CAAC,WAAW;YACnC,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YACpE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;gBAChC,MAAM,GAAG,GAAG,EAAE,SAAS,EAAE,GAAI,OAAkB,EAAE,CAAA;gBACjD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,KAAc,EAAE,GAAY,CAAC,CAAA;gBACrE,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;YAClE,CAAC;SACF,CAAA;QACD,GAAG,CAAC,IAAI,CAAC,CAAA;IACX,CAAC;AACH,CAAC"} \ No newline at end of file diff --git a/dist/src/v2/types.d.ts.map b/dist/src/v2/types.d.ts.map new file mode 100644 index 00000000..394d3fb8 --- /dev/null +++ b/dist/src/v2/types.d.ts.map @@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/dev/null +++ b/dist/src/v2/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/v2/types.ts"],"names":[],"mappings":"AAgGA,MAAM,UAAU,MAAM,CAAC,MAAgB;IACrC,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file diff --git a/dist/src/web/server/callback-manager.d.ts.map b/dist/src/web/server/callback-manager.d.ts.map new file mode 100644 index 00000000..90f1cc85 --- /dev/null +++ b/dist/src/web/server/callback-manager.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"callback-manager.d.ts","sourceRoot":"","sources":["../../../../src/web/server/callback-manager.ts"],"names":[],"mappings":"AASA,qBAAa,eAAgB,YAAW,UAAU;IACpC,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC;IAMjD,OAAO,CAAC,qBAAqB,CAG5B;IAED,OAAO,CAAC,iBAAiB,CAGvB;IAEF,CAAC,MAAM,CAAC,OAAO,CAAC;CAIjB"} \ No newline at end of file diff --git a/dist/src/web/server/callback-manager.js.map b/dist/src/web/server/callback-manager.js.map new file mode 100644 index 00000000..2d54ef22 --- /dev/null +++ b/dist/src/web/server/callback-manager.js.map @@ -0,0 +1 @@ +{"version":3,"file":"callback-manager.js","sourceRoot":"","sources":["../../../../src/web/server/callback-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC7B,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,0BAA0B,CAAA;AAIjC,MAAM,OAAO,eAAe;IACN;IAApB,YAAoB,MAA6B;QAA7B,WAAM,GAAN,MAAM,CAAuB;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,6BAA6B,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;QACzD,yBAAyB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;IACnD,CAAC;IAEO,qBAAqB,GAAG,CAAC,OAAuB,EAAQ,EAAE;QAChE,MAAM,OAAO,GAAiC,EAAE,IAAI,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAA;QACjF,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACjE,CAAC,CAAA;IAEO,iBAAiB,GAAG,CAAC,OAAuB,EAAE,OAAe,EAAQ,EAAE;QAC7E,MAAM,OAAO,GAA2B,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,CAAA;QAC9E,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,OAAO,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACvE,CAAC,CAAC;IAEF,CAAC,MAAM,CAAC,OAAO,CAAC;QACd,2BAA2B,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAA;QACvD,uBAAuB,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;IACjD,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/health.d.ts.map b/dist/src/web/server/handlers/health.d.ts.map new file mode 100644 index 00000000..0125c13a --- /dev/null +++ b/dist/src/web/server/handlers/health.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/health.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,wBAAgB,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,gBAiCzD"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/health.js.map b/dist/src/web/server/handlers/health.js.map new file mode 100644 index 00000000..5477b53f --- /dev/null +++ b/dist/src/web/server/handlers/health.js.map @@ -0,0 +1 @@ +{"version":3,"file":"health.js","sourceRoot":"","sources":["../../../../../src/web/server/handlers/health.ts"],"names":[],"mappings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/server/handlers/responses.d.ts.map new file mode 100644 index 00000000..9d265165 --- /dev/null +++ b/dist/src/web/server/handlers/responses.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/responses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,IAAI,EAAE,OAAO,EAAE,MAAM,SAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;CAS9E;AAED,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,SAAM,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;CAShF"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/responses.js.map b/dist/src/web/server/handlers/responses.js.map new file mode 100644 index 00000000..17568a4b --- /dev/null +++ b/dist/src/web/server/handlers/responses.js.map @@ -0,0 +1 @@ +{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../../src/web/server/handlers/responses.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,OAAO,YAAa,SAAQ,QAAQ;IACxC,YAAY,IAAa,EAAE,MAAM,GAAG,GAAG,EAAE,UAAkC,EAAE;QAC3E,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;YAC1B,MAAM;YACN,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,OAAO;aACX;SACF,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,YAAY,OAAe,EAAE,MAAM,GAAG,GAAG,EAAE,UAAkC,EAAE;QAC7E,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE;YACxC,MAAM;YACN,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;gBAClC,GAAG,OAAO;aACX;SACF,CAAC,CAAA;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/sessions.d.ts.map b/dist/src/web/server/handlers/sessions.d.ts.map new file mode 100644 index 00000000..93cc40d1 --- /dev/null +++ b/dist/src/web/server/handlers/sessions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/sessions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAEpD,wBAAgB,WAAW,iBAG1B;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,OAAO,yCA0C/C;AAED,wBAAgB,aAAa,iBAG5B;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gCAMrE;AAED,wBAAsB,SAAS,CAC7B,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAChD,OAAO,CAAC,QAAQ,CAAC,CAcnB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,gCAMjF;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,gCAMtE;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,gCAOlF;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,gCAWtF"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/sessions.js.map b/dist/src/web/server/handlers/sessions.js.map new file mode 100644 index 00000000..876d384f --- /dev/null +++ b/dist/src/web/server/handlers/sessions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../../../src/web/server/handlers/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AAEnG,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAG5D,MAAM,UAAU,WAAW;IACzB,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,EAAE,CAAA;IAC/B,OAAO,IAAI,YAAY,CAAC,QAAQ,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,GAAY;IAC9C,IAAI,IAMH,CAAA;IAED,IAAI,CAAC;QACH,IAAI,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAgB,CAAA;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,aAAa,CAAC,8BAA8B,EAAE,GAAG,CAAC,CAAA;IAC/D,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QACpF,OAAO,IAAI,aAAa,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAA;IACtD,CAAC;IAED,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAA;QAC5B,MAAM,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAChD,IAAI,IAAI,C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AAC,GAAsD;IACjF,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IACtD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,IAAI,aAAa,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAA;IACpD,CAAC;IAED,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,CAAA;AACrC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAwD;IACrF,MAAM,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IACtD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,IAAI,aAAa,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAA;IACpD,CAAC;IAED,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;IAC/C,OAAO,IAAI,YAAY,CAAC;QACtB,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM;KACvD,CAAC,CAAA;AACJ,CAAC"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/static.d.ts.map b/dist/src/web/server/handlers/static.d.ts.map new file mode 100644 index 00000000..3b347508 --- /dev/null +++ b/dist/src/web/server/handlers/static.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"static.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/static.ts"],"names":[],"mappings":"AAkBA,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAsB3E"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/static.js.map b/dist/src/web/server/handlers/static.js.map new file mode 100644 index 00000000..e58b26a0 --- /dev/null +++ b/dist/src/web/server/handlers/static.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static.js","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,UAAU,EAAE,IAAI,CAAC,CAAA;YACvC,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YAClC,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,IAAI,mBAAmB,CAAC,GAAG,CAAC,IAAI,0BAA0B,CAAA;YAE1F,6BAA6B;YAC7B,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,QAAQ,CAAC,MAAM,OAAO,CAAC,KAAK,EAAE,EAAE;gBACrD,OAAO,EAAE;oBACP,cAAc,EAAE,WAAW;oBAC3B,eAAe,EAAE,qCAAqC;oBACtD,GAAG,gBAAgB;iBACpB;aACF,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/upgrade.d.ts.map b/dist/src/web/server/handlers/upgrade.d.ts.map new file mode 100644 index 00000000..c8851d64 --- /dev/null +++ b/dist/src/web/server/handlers/upgrade.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"upgrade.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/upgrade.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,OAAO,wBASxE"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/upgrade.js.map b/dist/src/web/server/handlers/upgrade.js.map new file mode 100644 index 00000000..9080ae13 --- /dev/null +++ b/dist/src/web/server/handlers/upgrade.js.map @@ -0,0 +1 @@ +{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../../../../../src/web/server/handlers/upgrade.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAAC,MAA6B,EAAE,GAAY;IACvE,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,WAAW,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,QAAQ,CAAC,4CAA4C,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;IACpF,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACnC,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,SAAS,CAAA,CAAC,iDAAiD;IACpE,CAAC;IACD,OAAO,IAAI,QAAQ,CAAC,0BAA0B,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;AAClE,CAAC"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/websocket.d.ts.map b/dist/src/web/server/handlers/websocket.d.ts.map new file mode 100644 index 00000000..da3a5300 --- /dev/null +++ b/dist/src/web/server/handlers/websocket.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../../../src/web/server/handlers/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAA;AA2K1C,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,eAAe,CAAC,SAAS,CAAC,EAC9B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,GACjC,IAAI,CAGN"} \ No newline at end of file diff --git a/dist/src/web/server/handlers/websocket.js b/dist/src/web/server/handlers/websocket.js index cae2e10b..de395cfe 100644 --- a/dist/src/web/server/handlers/websocket.js +++ b/dist/src/web/server/handlers/websocket.js @@ -21,6 +21,7 @@ class WebSocketHandler { const response = { type: 'subscribed', sessionId: message.sessionId, + rawData: manager.getRawBuffer(message.sessionId)?.raw ?? '', }; ws.send(JSON.stringify(response)); } diff --git a/dist/src/web/server/handlers/websocket.js.map b/dist/src/web/server/handlers/websocket.js.map new file mode 100644 index 00000000..033bd952 --- /dev/null +++ b/dist/src/web/server/handlers/websocket.js.map @@ -0,0 +1 @@ +{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../../../src/web/server/handlers/websocket.ts"],"names":[],"m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A8B,EAC9B,IAAkC;IAElC,MAAM,OAAO,GAAG,IAAI,gBAAgB,EAAE,CAAA;IACtC,OAAO,CAAC,sBAAsB,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC"} \ No newline at end of file diff --git a/dist/src/web/server/server.d.ts.map b/dist/src/web/server/server.d.ts.map new file mode 100644 index 00000000..4c07a3a1 --- /dev/null +++ b/dist/src/web/server/server.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../../src/web/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAoBjC,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,SAAU,YAAW,UAAU;IAC1C,SAAgB,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,CAAA;IACzC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0B;IACvD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAwB;IAC9C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAe;IACxC,wEAAwE;IACxE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAe;IAE1C,OAAO;IAuBP,CAAC,MAAM,CAAC,OAAO,CAAC;WAII,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC;IAM7E,OAAO,CAAC,cAAc;IAyDf,QAAQ,IAAI,MAAM;CAG1B"} \ No newline at end of file diff --git a/dist/src/web/server/server.js.map b/dist/src/web/server/server.js.map new file mode 100644 index 00000000..f1fbe072 --- /dev/null +++ b/dist/src/web/server/server.js.map @@ -0,0 +1 @@ +{"version":3,"file":"server.js","sourceRoot":"","sources":["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AAC;aACF;YAED,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,CAAC;SACvF,CAAC,CAAA;IACJ,CAAC;IAEM,QAAQ;QACb,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAA;IACnF,CAAC;CACF"} \ No newline at end of file diff --git a/dist/src/web/shared/api-client.d.ts.map b/dist/src/web/shared/api-client.d.ts.map new file mode 100644 index 00000000..d0ff9702 --- /dev/null +++ b/dist/src/web/shared/api-client.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/api-client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAKnF,KAAK,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GACtF;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM,aAAa,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,MAAM;CAAE,GAE7D,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,KAAK,EAAE,GACnC;KAAG,CAAC,IAAI,KAAK,GAAG,MAAM,GAAG,MAAM;CAAE,GACjC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;AAG3B,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS;IAAE,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,CAAA;AAGhG,KAAK,eA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,MAAM,CAAA;SAAE;gCAOb;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBAC8B,OAAO;;iCAMlD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,QAAQ;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;qBACS,OAAO;;mCAKpD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACmC,OAAO;;;mCAM1D;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE;qBAIjB,MAAM;4BAAc,MAAM;;qCAGrB;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE;uBAIjB,MAAM;4BAAc,MAAM;;;;;EAW9C;AAGD,eAAO,MAAM,GAAG;;;gCAzEK;YACb,OAAO,EAAE,MAAM,CAAA;YACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;YACf,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,cAAc,CAAC,EAAE,MAAM,CAAA;SACxB;;qBAQ2D,OAAO;;;;+BAOrD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;gCAOb;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBAC8B,OAAO;;iCAMlD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,QAAQ;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;qBACS,OAAO;;mCAKpD;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;qBACmC,OAAO;;;mCAM1D;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE;qBAIjB,MAAM;4BAAc,MAAM;;qCAGrB;gBAAE,EAAE,EAAE,MAAM,CAAA;aAAE;uBAIjB,MAAM;4BAAc,MAAM;;;;;CAcT,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/api-client.js.map b/dist/src/web/shared/api-client.js.map new file mode 100644 index 00000000..86b36880 --- /dev/null +++ b/dist/src/web/shared/api-client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api-client.js","sourceRoot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M,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAC1C;YAEH,OAAO,EAAE,CAAC,MAAsB,EAAE,EAAE,CAClC,YAAY,CACV,MAAM,CAAC,OAAO,CAAC,OAAO,EACtB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CACtC;YAEH,MAAM,EAAE;gBACN,GAAG,EAAE,CAAC,MAAsB,EAAE,EAAE,CAC9B,YAAY,CAIV,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;gBAElE,KAAK,EAAE,CAAC,MAAsB,EAAE,EAAE,CAChC,YAAY,CAIV,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;aACrE;SACF;QAED,MAAM,EAAE,GAAG,EAAE,CACX,YAAY,CAA8C,MAAM,CAAC,MAAM,EAAE;YACvE,MAAM,EAAE,KAAK;YACb,OAAO;SACR,CAAC;KACI,CAAA;AACZ,CAAC;AAED,uEAAuE;AACvE,MAAM,CAAC,MAAM,GAAG,GAAG,eAAe,CAAC,EAAE,CAAC,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/constants.d.ts.map b/dist/src/web/shared/constants.d.ts.map new file mode 100644 index 00000000..7c8f41f6 --- /dev/null +++ b/dist/src/web/shared/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,QAAQ,CAAA;AAC5C,eAAO,MAAM,yBAAyB,MAAM,CAAA;AAC5C,eAAO,MAAM,WAAW,MAAM,CAAA;AAC9B,eAAO,MAAM,oBAAoB,OAAO,CAAA;AACxC,eAAO,MAAM,mBAAmB,OAAO,CAAA;AACvC,eAAO,MAAM,mBAAmB,oBAAoB,CAAA;AAGpD,eAAO,MAAM,qBAAqB,OAAO,CAAA;AACzC,eAAO,MAAM,mBAAmB,OAAO,CAAA;AACvC,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAG7C,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQtD,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/constants.js.map b/dist/src/web/shared/constants.js.map new file mode 100644 index 00000000..87bb527d --- /dev/null +++ b/dist/src/web/shared/constants.js.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/web/shared/constants.ts"],"names":[],"mappings":"AAAA,mEAAmE;AAEnE,0CAA0C;AAC1C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAA;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;AAC9B,MAAM,CAAC,MAAM,oBAAoB,GAAG,IAAI,CAAA;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAA;AACvC,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAA;AAEpD,yBAAyB;AACzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAA;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAA;AACvC,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;AAE7C,mCAAmC;AACnC,MAAM,CAAC,MAAM,mBAAmB,GAA2B;IACzD,KAAK,EAAE,wBAAwB;IAC/B,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,eAAe;CACxB,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/route-builder.d.ts.map b/dist/src/web/shared/route-builder.d.ts.map new file mode 100644 index 00000000..7284ff5c --- /dev/null +++ b/dist/src/web/shared/route-builder.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"route-builder.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/route-builder.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,YAAY;iBAEV,MAAM;cAKT,MAAM;;oBAMJ,MAAM;sBACJ,MAAM;qBACP,MAAM;;;sBAKH;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;uBAE/B;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;0BAE7B;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;wBAGlC;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;4BAE5B;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;8BAG9B;YAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,KAAG,MAAM;;CAGzD,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/route-builder.js.map b/dist/src/web/shared/route-builder.js.map new file mode 100644 index 00000000..085cfc31 --- /dev/null +++ b/dist/src/web/shared/route-builder.js.map @@ -0,0 +1 @@ +{"version":3,"file":"route-builder.js","sourceRoot":"","sources":["../../../../src/web/shared/route-builder.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,2DAA2D;AAE3D,2DAA2D;AAC3D,SAAS,QAAQ,CAAC,QAAgB,EAAE,MAAuC;IACzE,IAAI,MAAM,GAAG,QAAQ,CAAA;IACrB,MAAM,cAAc,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IAE9E,KAAK,MAAM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AM,CAAC;QAE/C,KAAK,EAAE,CAAC,MAA+B,EAAU,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;QAE/F,SAAS,EAAE,CAAC,MAA+B,EAAU,EAAE,CACrD,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC;QAElD,WAAW,EAAE,CAAC,MAA+B,EAAU,EAAE,CACvD,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;KACrD;CACF,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/routes.d.ts.map b/dist/src/web/shared/routes.d.ts.map new file mode 100644 index 00000000..945b681e --- /dev/null +++ b/dist/src/web/shared/routes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/routes.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCT,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/routes.js.map b/dist/src/web/shared/routes.js.map new file mode 100644 index 00000000..10790190 --- /dev/null +++ b/dist/src/web/shared/routes.js.map @@ -0,0 +1 @@ +{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../../../src/web/shared/routes.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,gEAAgE;AAEhE,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE;QACT,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,CAAC,KAAK,CAAU;KAC1B;IACD,MAAM,EAAE;QACN,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,KAAK,CAAU;KAC1B;IACD,QAAQ,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAU;KAC5C;IACD,OAAO,EAAE;QACP,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAU;QACnC,KAAK,EAAE;YACL,IAAI,EAAE,yBAAyB;YAC/B,OAAO,EAAE,CAAC,MAAM,CAAU;SAC3B;QACD,OAAO,EAAE;YACP,IAAI,EAAE,2BAA2B;YACjC,OAAO,EAAE,CAAC,QAAQ,CAAU;SAC7B;QACD,MAAM,EAAE;YACN,GAAG,EAAE;gBACH,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,CAAC,KAAK,CAAU;aAC1B;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,gCAAgC;gBACtC,OAAO,EAAE,CAAC,KAAK,CAAU;aAC1B;SACF;KACF;CACO,CAAA"} \ No newline at end of file diff --git a/dist/src/web/shared/types.d.ts b/dist/src/web/shared/types.d.ts index 6689bf0e..77900656 100644 --- a/dist/src/web/shared/types.d.ts +++ b/dist/src/web/shared/types.d.ts @@ -39,6 +39,7 @@ export interface WSMessageServer { export interface WSMessageServerSubscribedSession extends WSMessageServer { type: 'subscribed'; sessionId: string; + rawData: string; } export interface WSMessageServerUnsubscribedSession extends WSMessageServer { type: 'unsubscribed'; diff --git a/dist/src/web/shared/types.d.ts.map b/dist/src/web/shared/types.d.ts.map new file mode 100644 index 00000000..500273a5 --- /dev/null +++ b/dist/src/web/shared/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/web/shared/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErF,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,cAAc,EAAE,CAAA;AAEzD,qBAAa,WAAY,SAAQ,KAAK;IAC3B,IAAI,SAAgB;IAC7B,gBAAgB,EAAE,MAAM,CAAiD;IACzE,kBAAkB,EAAE,MAA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;IAChB,OAAO,EAAE,cAAc,CAAA;IACvB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,8BAA+B,SAAQ,eAAe;IACrE,IAAI,EAAE,iBAAiB,CAAA;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,0BAA2B,SAAQ,eAAe;IACjE,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,4BAA6B,SAAQ,eAAe;IACnE,IAAI,EAAE,gBAAgB,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,WAAW,CAAA;CACnB;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,SAAS,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAA;IAC3C,SAAS,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAA;IAClC,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"} \ No newline at end of file diff --git a/dist/src/web/shared/types.js.map b/dist/src/web/shared/types.js.map new file mode 100644 index 00000000..50ad2fe6 --- /dev/null +++ b/dist/src/web/shared/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/web/shared/types.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC3B,IAAI,GAAG,aAAa,CAAA;IAC7B,gBAAgB,GAAW,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAA;IACzE,kBAAkB,GAAW,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA;IAEjE,MAAM;QACJ,MAAM,GAAG,GAA4B,EAAE,CAAA;QACvC,uFAAuF;QACvF,oFAAoF;QACpF,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/C,GAAG,CAAC,GAAG,CAAC,GAAI,IAAgC,CAAC,GAAG,CAAC,CAAA;QACnD,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAA;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/src/plugin/pty/tools/spawn.ts b/src/plugin/pty/tools/spawn.ts index 504ce036..cffcbdbb 100644 --- a/src/plugin/pty/tools/spawn.ts +++ b/src/plugin/pty/tools/spawn.ts @@ -1,4 +1,5 @@ import { tool } from '@opencode-ai/plugin' +import { resolve } from 'node:path' import { manager } from '../manager.ts' import { checkCommandPermission, @@ -47,15 +48,20 @@ export const ptySpawn = tool({ const permissionContext = permissionRequestContext(ctx) await checkCommandPermission(args.command, args.args ?? [], permissionContext) - if (args.workdir) { - await checkWorkdirPermission(args.workdir, permissionContext) + // Resolve relative workdirs against the session project directory. + // Without resolution, permission checks and manager.spawn receive a + // relative path that may point outside the expected directory tree. + const workdir = resolve(ctx.directory ?? '', args.workdir ?? '') + + if (workdir) { + await checkWorkdirPermission(workdir, permissionContext) } const sessionId = ctx.sessionID const info = manager.spawn({ command: args.command, args: args.args, - workdir: args.workdir, + workdir, env: args.env, title: args.title, description: args.description, diff --git a/src/v2/index.ts b/src/v2/index.ts index 6888c78d..0b57e4be 100644 --- a/src/v2/index.ts +++ b/src/v2/index.ts @@ -55,7 +55,7 @@ export const Plugin: PluginV2 = define({ if (ctx.tool && typeof ctx.tool.transform === 'function') { await ctx.tool.transform((draft) => { - registerV2Tools(draft) + registerV2Tools(draft, directory) }) } const serverOptions: ServerOptions = { diff --git a/src/v2/tools.ts b/src/v2/tools.ts index b5e41868..24b34f24 100644 --- a/src/v2/tools.ts +++ b/src/v2/tools.ts @@ -31,7 +31,7 @@ type V1ToolDefinition = { * - `args` (Zod raw shape) -> `input`: JSON Schema (Zod v4 `toJSONSchema`) * - string result -> `{ content }` */ -export function registerV2Tools(draft: ToolDraft): void { +export function registerV2Tools(draft: ToolDraft, directory?: string): void { if (typeof draft.add !== 'function') { return } @@ -44,7 +44,8 @@ export function registerV2Tools(draft: ToolDraft): void { description: definition.description, input: tool.schema.toJSONSchema(tool.schema.object(definition.args)), execute: async (input, context) => { - const result = await definition.execute(input as never, context as never) + const ctx = { directory, ...(context as object) } + const result = await definition.execute(input as never, ctx as never) return typeof result === 'string' ? { content: result } : result }, }