diff --git a/.dockerignore b/.dockerignore index aed5c1e..b3985bd 100644 --- a/.dockerignore +++ b/.dockerignore @@ -13,6 +13,4 @@ **/*.tsbuildinfo **/test-results **/coverage -apps/ide -infra/oct **/.DS_Store diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0cf844..6a32da5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,18 +62,3 @@ jobs: # A second run must find nothing to apply (requirements FR-K2). - run: npm run db:migrate | tee migrate.log && grep -q 'up to date' migrate.log - run: npm run test:integration - - ide: - name: IDE gateway, collaboration and policy tests - runs-on: ubuntu-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: npm - cache-dependency-path: apps/ide/package-lock.json - # The Theia application itself is not built here; these tests need only its dependencies. - - run: npm ci --prefix apps/ide --ignore-scripts - - run: npm run test:ide diff --git a/.gitignore b/.gitignore index 57ee999..82e26cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ node_modules/ .next/ dist/ -/apps/ide/lib/ coverage/ .env .env.local diff --git a/.prettierignore b/.prettierignore index 6ccf472..f58b7eb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -3,11 +3,6 @@ node_modules/ .next/ dist/ coverage/ -apps/ide/lib/ -apps/ide/plugins/ -apps/ide/src-gen/ -apps/ide/gen-esbuild.*.mjs -apps/ide/esbuild.mjs # Generated or pinned files package-lock.json diff --git a/README.md b/README.md index 1519e60..4dc9438 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WishForge -远程、意图驱动的软件交付平台:用一句话提出愿望(目标 + 验收标准),后端编码 Agent 在隔离环境中实现,独立验证器按受保护的命令判定,失败时把失败信息交还 Agent 自修复,通过后合入代码并按需构建、审批与部署。可以从 Web 工作台、WorkBuddy/Codex(MCP)或云 IDE 发起与跟进。 +远程、意图驱动的软件交付平台:用一句话提出愿望(目标 + 验收标准),后端编码 Agent 在隔离环境中实现,独立验证器按受保护的命令判定,失败时把失败信息交还 Agent 自修复,通过后合入代码并按需构建、审批与部署。可以从 Web 工作台或 WorkBuddy/Codex(MCP)发起与跟进。 - 使用手册(使用者与本机服务维护者):[docs/user-manual.md](docs/user-manual.md) - 综合指引(使用、架构与高频 QA):[docs/wishforge-summary.md](docs/wishforge-summary.md) @@ -67,10 +67,9 @@ npm run dev:all | `apps/api` | 控制面 API(REST `/v1`、内部接口 `/internal`、MCP `/mcp`、模型代理) | | `apps/web` | Web 工作台(Next.js,含 OIDC BFF) | | `apps/worker` | Temporal worker:coordinator / executor / verifier / deployer | -| `apps/provisioner` | 执行环境与 IDE 工作区的创建(`local` 与 `kubernetes` 后端) | +| `apps/provisioner` | 执行环境的创建(`local` 与 `kubernetes` 后端) | | `apps/git-service` | 平台 Git 服务 | | `apps/runner` | 目标环境侧的部署 Runner | -| `apps/ide` | Theia 云 IDE、IDE 网关与协作 | | `packages/contracts` | 领域类型、输入校验、规范化 JSON | | `packages/agent` | Agent 配置与提示词组装 | | `packages/runtime` | 执行器适配、Git、验证、构建与部署适配 | @@ -92,4 +91,4 @@ npm run typecheck npm test ``` -需要外部服务的集成测试默认跳过,开启方式见 [docs/development.md](docs/development.md#7-测试与检查)。 +需要外部服务的集成测试默认跳过,开启方式见 [docs/development.md](docs/development.md#6-测试与检查)。 diff --git a/apps/api/src/auth.ts b/apps/api/src/auth.ts index 4294fbe..8697903 100644 --- a/apps/api/src/auth.ts +++ b/apps/api/src/auth.ts @@ -1,4 +1,3 @@ -import { resolveGatewayTarget } from './domain/gateway-target.js'; import { createRemoteJWKSet, jwtVerify, type JWTPayload } from 'jose'; import { DomainError, type Actor, isProduction, type Run, type RunnerRegistration } from '@wishforge/contracts'; import { currentGeneration, sameSecret } from './domain/policy.js'; @@ -102,13 +101,6 @@ export class Authenticator { throw new DomainError('UNAUTHENTICATED', 'Access token is invalid or expired', 401); } } - /** - * The person behind an established IDE session, with their current membership, so the - * gateway keeps checking access (and sees revocation) after their access token expired. - */ - async sessionUser(tenantId: string, userId: string): Promise { - return this.member(tenantId, userId, 'human'); - } private async member(tenantId: string, userId: string, kind: Actor['kind'], clientId?: string): Promise { const role = await this.store.read(tenantId, tx => tx.membership(userId)); if (!role) throw new DomainError('FORBIDDEN', 'Tenant membership is missing or revoked', 403); @@ -131,9 +123,6 @@ export class Authenticator { return scoped; throw new DomainError('UNAUTHENTICATED', 'Execution credential was revoked or superseded', 401); } - const gateway = await resolveGatewayTarget(this.env, tenant); - if (gateway && sameSecret(token, gateway.token)) - return { tenantId: tenant, userId: 'workspace-gateway', role: 'admin', kind: 'worker' }; // Verifiers only ever use run-scoped tokens; there is no static verifier identity. for (const [name, kind] of [ ['WF_WORKER_TOKEN', 'worker'], diff --git a/apps/api/src/db/migrations/003_retire_cloud_ide.sql b/apps/api/src/db/migrations/003_retire_cloud_ide.sql new file mode 100644 index 0000000..bfa01e4 --- /dev/null +++ b/apps/api/src/db/migrations/003_retire_cloud_ide.sql @@ -0,0 +1,7 @@ +-- Data changes below must see every tenant: fail instead of silently skipping rows under RLS. +SET LOCAL row_security = off; + +-- The cloud IDE was removed: its workspaces and their pending provisioning work go with it. +UPDATE outbox SET delivered_at = now() + WHERE type IN ('workspace.provision', 'workspace.reconcile') AND delivered_at IS NULL; +DELETE FROM entities WHERE kind = 'workspace'; diff --git a/apps/api/src/db/migrations/004_lessons_to_skills.sql b/apps/api/src/db/migrations/004_lessons_to_skills.sql new file mode 100644 index 0000000..936ab29 --- /dev/null +++ b/apps/api/src/db/migrations/004_lessons_to_skills.sql @@ -0,0 +1,32 @@ +-- Project lessons become project skills: one kind of project know-how, one prompt section. +-- Data changes below must see every tenant: fail instead of silently skipping rows under RLS. +SET LOCAL row_security = off; + +-- A lesson recorded from a repaired failure becomes a pitfall skill, a convention one a convention +-- skill. Each keeps its id, project, status, author and source run; its name is made unique from +-- its id, its summary is both its description (shortened) and its content. +INSERT INTO entities(tenant_id, kind, id, version, data, created_at) +SELECT l.tenant_id, 'skill', l.id, 1, + jsonb_strip_nulls(jsonb_build_object( + 'id', l.id, + 'tenantId', l.tenant_id, + 'createdAt', l.data->>'createdAt', + 'updatedAt', coalesce(l.data->>'updatedAt', l.data->>'createdAt'), + 'version', 1, + 'projectId', l.data->>'projectId', + 'name', CASE WHEN l.data->>'kind' = 'convention' THEN 'convention-' ELSE 'pitfall-' END + || substr(regexp_replace(lower(l.id), '[^a-z0-9]', '', 'g'), 1, 12), + 'description', left(regexp_replace(btrim(l.data->>'summary'), '\s+', ' ', 'g'), 300), + 'content', btrim(l.data->>'summary'), + 'category', CASE WHEN l.data->>'kind' = 'convention' THEN 'convention' ELSE 'pitfall' END, + 'status', CASE WHEN l.data->>'status' = 'disabled' THEN 'disabled' ELSE 'active' END, + 'sourceRunIds', CASE WHEN l.data ? 'sourceRunId' THEN jsonb_build_array(l.data->>'sourceRunId') + ELSE '[]'::jsonb END, + 'createdBy', coalesce(l.data->>'createdBy', 'wishforge') + )), + l.created_at + FROM entities l + WHERE l.kind = 'lesson' AND coalesce(btrim(l.data->>'summary'), '') <> '' +ON CONFLICT (tenant_id, kind, id) DO NOTHING; + +DELETE FROM entities WHERE kind = 'lesson'; diff --git a/apps/api/src/db/store.ts b/apps/api/src/db/store.ts index 8e50aa5..cc6073c 100644 --- a/apps/api/src/db/store.ts +++ b/apps/api/src/db/store.ts @@ -59,8 +59,8 @@ export interface ListFilter { /** Only entities created before this time: the cursor for the next page. */ before?: string; } -/** Outbox items are processed in this order: control signals first, then reconciliation, then new work. */ -export const OUTBOX_PRIORITY = ['run.signal', 'workspace.reconcile']; +/** Outbox items are processed in this order: control signals first, then new work. */ +export const OUTBOX_PRIORITY = ['run.signal']; export interface Transaction { tenant(): Promise; membership(userId: string): Promise; @@ -261,7 +261,7 @@ class PgTransaction implements Transaction { } async outbox(): Promise { const r = await this.c.query( - "SELECT id,type,payload,attempts FROM outbox WHERE tenant_id=$1 AND delivered_at IS NULL AND next_attempt_at<=now() AND type IN ('run.start','run.signal','workspace.provision','workspace.reconcile') ORDER BY CASE WHEN type='run.signal' THEN 0 WHEN type='workspace.reconcile' THEN 1 ELSE 2 END,created_at LIMIT 50", + "SELECT id,type,payload,attempts FROM outbox WHERE tenant_id=$1 AND delivered_at IS NULL AND next_attempt_at<=now() AND type IN ('run.start','run.signal') ORDER BY CASE WHEN type='run.signal' THEN 0 ELSE 1 END,created_at LIMIT 50", [this.tenantId], ); return r.rows; diff --git a/apps/api/src/dispatcher.ts b/apps/api/src/dispatcher.ts index b5b9a3b..e731f79 100644 --- a/apps/api/src/dispatcher.ts +++ b/apps/api/src/dispatcher.ts @@ -1,4 +1,3 @@ -import { resolveGatewayTarget } from './domain/gateway-target.js'; import { Client, Connection, WorkflowIdReusePolicy } from '@temporalio/client'; import type { ControlPlane } from './domain/control-plane.js'; import { ServiceTokens } from './service-tokens.js'; @@ -10,9 +9,7 @@ import { requireTenantNamespaces, temporalNamespace, temporalTlsFiles, - type Project, type Run, - type Workspace, } from '@wishforge/contracts'; import { reserveExecutionGrant, recordAllocation } from './domain/entitlements.js'; import { resolveProvisionerTarget, type ProvisionerTarget } from './domain/provisioner-target.js'; @@ -60,95 +57,9 @@ export class Dispatcher { } // Claimed items are invisible to other API replicas until acknowledged, deferred or expired. const pending = await this.control.store.transaction(tenant, tx => - tx.claimOutbox(['run.signal', 'run.start', 'workspace.provision'], 300), + tx.claimOutbox(['run.signal', 'run.start'], 300), ); for (const item of pending) { - if (item.type === 'workspace.provision') { - try { - if (provisionerError) throw provisionerError; - const gateway = await resolveGatewayTarget(this.control.env, tenant); - if (!gateway) { - await this.control.store.transaction(tenant, tx => tx.defer(item.id, 60)); - continue; - } - const { currentWorkspace, project } = await this.control.store.transaction(tenant, async tx => { - const currentWorkspace = await must(tx, 'workspace', String(item.payload.workspaceId)); - return { currentWorkspace, project: await tx.get('project', currentWorkspace.projectId) }; - }); - if (currentWorkspace.lifecycle) { - await this.control.store.transaction(tenant, tx => tx.acknowledge(item.id)); - continue; - } - if (!provisioner) { - await this.control.store.transaction(tenant, tx => tx.defer(item.id, 60)); - continue; - } - const response = await fetch(`${provisioner.url}/workspaces`, { - method: 'POST', - headers: { Authorization: `Bearer ${provisioner.token}`, 'Content-Type': 'application/json' }, - body: JSON.stringify({ - tenantId: tenant, - projectId: item.payload.projectId, - workspaceId: item.payload.workspaceId, - // The workspace then accepts credentials for this repository only. - ...(project?.repositoryStorage === 'platform' && project.repositoryUrl - ? { repositoryUrl: project.repositoryUrl } - : {}), - }), - signal: AbortSignal.timeout(30000), - }); - if (!response.ok) throw new Error('WorkspaceProvisioningFailed'); - const state = (await response.json()) as { - status: 'ready' | 'pending'; - upstreamUrl: string; - collaborationUpstreamUrl?: string; - /** The local backend shares one Theia and cannot pause or resume it. */ - lifecycle?: 'unmanaged'; - }; - if (!['ready', 'pending'].includes(state.status)) throw new Error('InvalidWorkspaceReceipt'); - await this.control.store.transaction(tenant, async tx => { - const w = await must(tx, 'workspace', String(item.payload.workspaceId)); - if (w.lifecycle) { - await tx.acknowledge(item.id); - return; - } - w.managedBy = state.lifecycle === 'unmanaged' ? 'local-provisioner' : 'wishforge-provisioner'; - if (state.status === 'ready') w.lastActivityAt = new Date().toISOString(); - w.status = state.status === 'ready' ? 'ready' : 'requested'; - w.reason = - state.status === 'ready' ? undefined : 'Waiting for the isolated Theia instance to become ready.'; - if (state.status === 'ready') { - const target = new URL(state.upstreamUrl); - if (!['http:', 'https:'].includes(target.protocol) || target.username || target.password) - throw new Error('InvalidWorkspaceTarget'); - w.upstreamUrl = target.toString(); - if (state.collaborationUpstreamUrl) { - const collaboration = new URL(state.collaborationUpstreamUrl); - if ( - collaboration.hostname !== target.hostname || - collaboration.port !== '8100' || - collaboration.username || - collaboration.password || - collaboration.pathname !== '/' || - collaboration.search || - collaboration.hash - ) - throw new Error('InvalidCollaborationTarget'); - w.collaborationUpstreamUrl = collaboration.toString(); - } - w.url = `${gateway.publicUrl}/workspaces/${w.id}/`; - await tx.acknowledge(item.id); - } - await tx.put('workspace', touch(w)); - }); - if (state.status === 'pending') - await this.control.store.transaction(tenant, tx => tx.defer(item.id, 15)); - } catch (error) { - await this.control.store.transaction(tenant, tx => tx.defer(item.id, 60)); - console.error(`Workspace provisioning pending: ${error instanceof Error ? error.name : 'failure'}`); - } - continue; - } if (item.type !== 'run.start' && item.type !== 'run.signal') continue; const workflowId = `wishforge:${tenant}:${String(item.payload.runId)}`; try { @@ -184,7 +95,7 @@ export class Dispatcher { setWaiting( current, 'sandbox_provisioner', - 'An isolated per-run sandbox provisioner must be connected before execution.', + '执行前必须连接为每次运行单独开通沙箱的资源开通服务。', ); await tx.put('run', touch(current)); await tx.event(runId, 'run.waiting', current.waitingDetail!, { reason: current.waitingReason }); @@ -242,7 +153,7 @@ export class Dispatcher { runId, { reason: 'sandbox_provisioner', - detail: 'The sandbox for this generation already ended; resume to provision a new one.', + detail: '这一代执行的沙箱已经结束;请继续运行以开通新的沙箱。', generation: item.id, }, ); @@ -296,12 +207,13 @@ export class Dispatcher { if (item.type === 'run.start' && error instanceof DomainError) await this.control.store.transaction(tenant, async tx => { const current = await must(tx, 'run', String(item.payload.runId)); + const detail = `无法为运行开通沙箱(${error.code}):${error.message}`; if ( !['canceled', 'failed', 'succeeded', 'paused'].includes(current.status) && - (current.waitingReason !== 'sandbox_provisioner' || current.waitingDetail !== error.message) + (current.waitingReason !== 'sandbox_provisioner' || current.waitingDetail !== detail) ) { // Resource grants, runtime images and provisioner errors all block the sandbox. - setWaiting(current, 'sandbox_provisioner', error.message); + setWaiting(current, 'sandbox_provisioner', detail); await tx.put('run', touch(current)); await tx.event(current.id, 'run.waiting', current.waitingDetail!, { reason: current.waitingReason, diff --git a/apps/api/src/domain/application-access.ts b/apps/api/src/domain/application-access.ts index 1530ee2..132b90f 100644 --- a/apps/api/src/domain/application-access.ts +++ b/apps/api/src/domain/application-access.ts @@ -10,12 +10,11 @@ import { /** * Validate an environment's application URL. Deployed applications are untrusted - * code, so they may never share an origin with the console, API or IDE gateways. + * code, so they may never share an origin with the console or API. */ export function applicationUrlFor( environment: Pick & { projectId?: string }, env: NodeJS.ProcessEnv, - additionalOrigins: string[] = [], ): string | undefined { if (!environment.applicationUrl) return undefined; let applicationUrl: string; @@ -39,13 +38,7 @@ export function applicationUrlFor( ); } const origin = new URL(applicationUrl).origin; - for (const configured of [ - env.WF_PUBLIC_URL, - env.WF_API_PUBLIC_URL, - env.WF_IDE_PUBLIC_URL, - env.WF_WORKSPACE_GATEWAY_BASE, - ...additionalOrigins, - ]) { + for (const configured of [env.WF_PUBLIC_URL, env.WF_API_PUBLIC_URL]) { if (!configured) continue; let protectedOrigin: string; try { @@ -60,7 +53,7 @@ export function applicationUrlFor( if (origin === protectedOrigin) throw new DomainError( 'APPLICATION_ORIGIN_CONFLICT', - 'Applications must use an origin separate from the console, API and IDE authentication origins', + 'Applications must use an origin separate from the console and API authentication origins', 400, ); } diff --git a/apps/api/src/domain/artifacts.ts b/apps/api/src/domain/artifacts.ts index be0be36..5485a00 100644 --- a/apps/api/src/domain/artifacts.ts +++ b/apps/api/src/domain/artifacts.ts @@ -207,7 +207,7 @@ export class Artifacts { storageBytes: object.size, at: new Date().toISOString(), }); - await tx.event(runId, 'artifact.stored', 'Source bundle persisted in private content-addressed object storage.', { + await tx.event(runId, 'artifact.stored', '源码包已保存到私有的按内容寻址对象存储。', { artifactId: id, sha256: object.sha256, size: object.size, diff --git a/apps/api/src/domain/connections.ts b/apps/api/src/domain/connections.ts index f5c77c3..edcfb4a 100644 --- a/apps/api/src/domain/connections.ts +++ b/apps/api/src/domain/connections.ts @@ -14,6 +14,7 @@ import type { Store } from '../db/store.js'; import { record, touch, must, executionLease } from './control-plane.js'; import { requireHuman, requireRole } from './policy.js'; import { ProviderProxy } from './provider-proxy.js'; +import { storedExecutorSettings, tenantBaseUrl, tenantBaseUrlBlocked } from './executor-settings.js'; /** Production uses a Vault transit key. The development AES key never enters source control. */ export class CredentialVault { @@ -134,9 +135,10 @@ export class Connections { ) return undefined; executionLease(actor, current, run.lease!.token); - return (await tx.list('provider_connection')).find( + const found = (await tx.list('provider_connection')).find( c => c.provider === current.provider && c.status === 'active', ); + return found && { ...found, settings: await storedExecutorSettings(tx, current.provider) }; }); if (!connection?.ciphertext) return undefined; if (isProduction(this.env) || this.env.WF_PROVIDER_PROXY_ENABLED === 'true') { @@ -152,7 +154,12 @@ export class Connections { }; } const apiKey = await this.vault.open(actor.tenantId, String(connection.ciphertext)); - const baseUrl = providerBaseUrl(this.env, run.provider); + // The tenant's gateway goes only with the tenant's own key; otherwise the operator's, if any. + const tenantGateway = + connection.settings.baseUrl && !tenantBaseUrlBlocked(this.env, actor.tenantId, run.provider) + ? tenantBaseUrl(this.env, connection.settings.baseUrl) + : undefined; + const baseUrl = tenantGateway ?? providerBaseUrl(this.env, run.provider); // Vault I/O runs outside the transaction. Re-check revocation and lease after decrypting. return this.store.transaction(actor.tenantId, async tx => { const current = await must(tx, 'run', run.id); diff --git a/apps/api/src/domain/control-plane.ts b/apps/api/src/domain/control-plane.ts index f78077e..c30d0c0 100644 --- a/apps/api/src/domain/control-plane.ts +++ b/apps/api/src/domain/control-plane.ts @@ -24,6 +24,10 @@ import { type Project, type Wish, type Run, + type Attachment, + base64Size, + MAX_ATTACHMENT_BYTES, + MAX_ATTACHMENTS_TOTAL_BYTES, type Evidence, type Release, type Environment, @@ -52,9 +56,9 @@ import { Artifacts } from './artifacts.js'; import { providerProxyConfigured } from './provider-proxy.js'; import { assertVerificationProfile, verificationPolicyDigest } from './verification-policy.js'; import { IntegrationLeases } from './integration-lease.js'; -import { captureLesson, projectLessons } from './lessons.js'; -import { projectSkills } from './skills.js'; +import { learnFromRun, projectSkills, recordSkillUse } from './skills.js'; import { describeProviderEvent } from './provider-events.js'; +import { runExecutorSettings, storedExecutorSettings } from './executor-settings.js'; import { backendDefined, personWishScope, requirePermission, wishScopeOf } from './permissions.js'; export const now = () => new Date().toISOString(); @@ -142,7 +146,20 @@ async function finishPause(tx: Transaction, run: Run, message: string) { await tx.event(run.id, 'run.paused', message, { revision: run.revision }); await tx.enqueue('run.signal', { runId: run.id, action: 'pause' }); } -const BUDGET_EXHAUSTED = 'The run used up its token or execution-time budget.'; +const BUDGET_EXHAUSTED = '运行已用完 token 或执行时间预算。'; +/** Run commands and evidence kinds as the Chinese timeline names them. */ +const COMMAND_NAMES: Record = { + pause: '暂停', + resume: '继续', + cancel: '取消', + answer: '补充需求后继续', +}; +const EVIDENCE_NAMES: Record = { + verification: '验证', + integration: '合入', + build: '构建', + deployment: '部署', +}; /** * Tokens held against the tenant's monthly limit: only runs that can call the model now @@ -171,8 +188,8 @@ function startBlocker(provider: ProviderInfo, project: Project): { reason: Waiti return { reason: 'git_storage', detail: project.repositoryError - ? `The project repository is unavailable: ${project.repositoryError}` - : 'Provision durable Git storage or connect a repository before execution.', + ? `项目仓库不可用:${project.repositoryError}` + : '执行前请先开通持久的 Git 存储或连接代码仓库。', }; } @@ -328,16 +345,16 @@ export class ControlPlane { const installed = !binaryVariable || Boolean(this.env[binaryVariable]); const enabled = configured && productionAllowed && installed; const reason = !productionAllowed - ? 'Production execution requires a verified credential-isolation proxy and approved model configuration; raw BYOK is never sent to a production job.' + ? '生产环境执行需要经过验证的凭据隔离代理和已批准的模型配置;原始 BYOK 凭据从不发给生产任务。' : !configured - ? 'Connect a tenant-owned provider credential to execute tasks.' + ? '请先连接租户自有的模型凭据,才能执行任务。' : !installed - ? `The ${name} executable is not configured on the worker (${binaryVariable}).` + ? `执行进程上没有配置 ${name} 可执行文件(${binaryVariable})。` : credentialSource === 'mixed' - ? 'Native Claude account mode and a tenant credential are both configured; authentication precedence has not been verified.' + ? '同时配置了本机 Claude 账号模式和租户凭据,认证优先级尚未验证。' : native - ? 'Available through the explicitly configured local Claude CLI account; trusted local operators only.' - : 'Available for worker preflight; account/model access is checked when a task starts.'; + ? '通过明确配置的本机 Claude CLI 账号可用;仅限受信任的本地运维人员。' + : '可用于执行进程预检;账号和模型权限在任务启动时检查。'; return { id, name, @@ -387,11 +404,7 @@ export class ControlPlane { data.sourceBranch && (data.sourceBranch === project.targetBranch || data.sourceBranch.startsWith('wishforge/')) ) - throw new DomainError( - 'INVALID_SOURCE_BRANCH', - 'Start from another branch than the target branch, for example one pushed from the IDE', - 400, - ); + throw new DomainError('INVALID_SOURCE_BRANCH', 'Start from another branch than the target branch', 400); // A wish runs with one of its project's models, flash when offered unless chosen; a project // without models leaves the choice to the agent configuration and the executor. const models = project.models ?? []; @@ -403,8 +416,13 @@ export class ControlPlane { : 'This project offers no choice of model', 400, ); - const { model: chosenModel, ...runInput } = data; + const { model: chosenModel, attachments: files = [], ...runInput } = data; const model = chosenModel ?? defaultProjectModel(models); + const sizes = files.map(file => base64Size(file.data)); + if (sizes.some(size => size > MAX_ATTACHMENT_BYTES)) + throw new DomainError('ATTACHMENT_TOO_LARGE', 'Each attachment may be at most 5 MB', 413); + if (sizes.reduce((sum, size) => sum + size, 0) > MAX_ATTACHMENTS_TOTAL_BYTES) + throw new DomainError('ATTACHMENTS_TOO_LARGE', 'Attachments may be at most 10 MB together', 413); return idempotent(tx, `wish:${actor.userId}:${projectId}:${key ?? ''}`, { projectId, ...data }, async () => { const tenant = await tx.tenant(); const runs = await tx.list('run'); @@ -424,6 +442,7 @@ export class ControlPlane { } as Wish; const identity = record(actor.tenantId); const bundle = await activeBundle(tx); + const executor = await storedExecutorSettings(tx, data.provider); const run = { ...identity, projectId, @@ -438,6 +457,8 @@ export class ControlPlane { providerModel: model ?? bundle.config.model ?? + // The tenant's default for this executor, then the operator's. + executor.defaultModel ?? (data.provider === 'codex' ? (this.env.WF_CODEX_DEFAULT_MODEL ?? this.env.WF_PROVIDER_PROXY_ALLOWED_MODELS?.split(',')[0]?.trim()) : undefined), @@ -448,12 +469,31 @@ export class ControlPlane { ...(frontendOnly !== undefined ? { frontendOnly } : {}), ...(extras.revertOf ? { revertOf: extras.revertOf } : {}), } as Run; + const attachments: Attachment[] = files.map((file, index) => ({ + ...record(actor.tenantId), + projectId, + runId: run.id, + name: file.name, + mediaType: file.mediaType, + size: sizes[index]!, + data: file.data, + })); + if (attachments.length) + run.attachments = attachments.map(({ id, name, mediaType, size }) => ({ id, name, mediaType, size })); const blocked = startBlocker(provider, project); if (blocked) setWaiting(run, blocked.reason, blocked.detail); else run.pendingStartId = randomUUID(); await tx.put('wish', wish); await tx.put('run', run); - await tx.event(run.id, 'wish.submitted', 'Wish accepted and acceptance criteria recorded.', { revision: 1 }); + for (const attachment of attachments) await tx.put('attachment', attachment); + await tx.event( + run.id, + 'wish.submitted', + attachments.length + ? `愿望已受理,验收标准和 ${attachments.length} 个附件已记录。` + : '愿望已受理,验收标准已记录。', + { revision: 1 }, + ); if (run.pendingStartId) await tx.enqueue('run.start', { runId: run.id, revision: 1 }, run.pendingStartId); else await tx.event(run.id, 'run.waiting', run.waitingDetail!, { reason: run.waitingReason }); return { wish_id: wish.id, run_id: run.id, status_url: `/runs/${run.id}` }; @@ -486,6 +526,16 @@ export class ControlPlane { return run; }); } + /** One file attached to a run's wish, for someone who may see the run. */ + async attachment(actor: Actor, runId: string, attachmentId: string) { + return this.store.read(actor.tenantId, async tx => { + const run = await must(tx, 'run', runId); + await projectAccess(tx, actor, run.projectId); + const attachment = await tx.get('attachment', attachmentId); + if (!attachment || attachment.runId !== run.id) throw new DomainError('NOT_FOUND', 'Attachment not found', 404); + return attachment; + }); + } async events(actor: Actor, id: string, after = 0) { return this.store.read(actor.tenantId, async tx => { const run = await must(tx, 'run', id); @@ -517,7 +567,7 @@ export class ControlPlane { return idempotent(tx, `command:${actor.userId}:${id}:${key}`, data, async () => { const result = await this.applyCommand(tx, run, project, data, actor.userId); if (data.allowBackend) - await tx.event(id, 'run.scope', 'The wish may change backend code from now on.', { + await tx.event(id, 'run.scope', '从现在起,这个愿望可以修改后端代码。', { frontendOnly: false, changedBy: actor.userId, }); @@ -563,12 +613,9 @@ export class ControlPlane { run = touch(run); run.pauseRequestedAt = now(); await tx.put('run', run); - await tx.event( - id, - 'run.pause', - data.message ? redact(data.message) : 'Pause requested; the executor saves the work so far first.', - { revision: run.revision }, - ); + await tx.event(id, 'run.pause', data.message ? redact(data.message) : '已请求暂停;执行器会先保存目前的工作。', { + revision: run.revision, + }); return run; } this.accountTime(run); @@ -579,7 +626,7 @@ export class ControlPlane { const answer = [data.allowBackend ? '代码范围改为前端和后端:这个愿望可以修改后端代码。' : '', data.message ?? ''] .filter(Boolean) .join('\n'); - let message = answer ? redact(answer) : `Run ${data.action} requested.`; + let message = answer ? redact(answer) : `已请求${COMMAND_NAMES[data.action] ?? data.action}运行。`; const invalidatePending = async (failureReason: string) => { for (const release of await tx.list('release', { runId: run.id })) if (['awaiting_approval', 'ready'].includes(release.status)) @@ -597,7 +644,7 @@ export class ControlPlane { run.status = 'canceled'; if (!run.providerProxyActiveRequest) run.reservedTokens = 0; clearWaiting(run); - await invalidatePending('The run was canceled'); + await invalidatePending('运行已取消'); } else if (data.action === 'pause') { run.status = 'paused'; clearWaiting(run); @@ -621,7 +668,7 @@ export class ControlPlane { run.repairCount = 0; run.lastFailure = undefined; // A review or release covered the change of the old requirement; the new one is reviewed again. - await invalidatePending('The requirement was revised'); + await invalidatePending('需求已修改'); } else if ( run.status === 'waiting' && (run.waitingReason === 'repair_exhausted' || run.waitingReason === 'integration_conflict') && @@ -631,7 +678,7 @@ export class ControlPlane { run.stage = 'implement'; run.verifiedCommit = undefined; run.repairCount += 1; - message = `Another repair round was authorized (round ${run.repairCount}).`; + message = `已授权再修复一轮(第 ${run.repairCount} 轮)。`; } const provider = (await this.providerInfo(tx)).find(p => p.id === run.provider)!; if (run.activeMilliseconds >= run.budget.maxMinutes * 60_000) @@ -764,7 +811,7 @@ export class ControlPlane { await tx.event( id, 'code_review.skipped', - `The change touches ${paths.length} backend path(s); everyone who asked for it may change backend code directly, so it needs no review.`, + `改动涉及 ${paths.length} 个后端路径;提出需求的人都可以直接修改后端代码,因此无需审核。`, { sourceCommit: input.sourceCommit, requestedBy: run.requestedBy, @@ -800,7 +847,7 @@ export class ControlPlane { await tx.event( id, 'code_review.requested', - `The change touches ${paths.length} path(s) held for review${run.sourceBranch ? ` and brings branch ${run.sourceBranch}` : ''}; a person reviews it before it reaches ${project.targetBranch}.`, + `改动涉及 ${paths.length} 个需要审核的路径${run.sourceBranch ? `,并带入分支 ${run.sourceBranch}` : ''};合入 ${project.targetBranch} 之前需要人工审核。`, { reviewId: review.id, sourceCommit: input.sourceCommit, paths: paths.slice(0, 50) }, ); return { required: true as const, reviewId: review.id, paths: review.paths }; @@ -850,8 +897,8 @@ export class ControlPlane { id, data.decision === 'approve' ? 'code_review.approved' : 'code_review.rejected', data.decision === 'approve' - ? `${who} approved the change ${data.sourceCommit.slice(0, 12)}${data.comment ? `: ${redact(data.comment)}` : ''}` - : `${who} asked for changes: ${redact(data.comment ?? '')}`, + ? `${who} 批准了改动 ${data.sourceCommit.slice(0, 12)}${data.comment ? `:${redact(data.comment)}` : ''}` + : `${who} 要求修改:${redact(data.comment ?? '')}`, { reviewId: review.id, decidedBy: actor.userId }, ); const waiting = run.status === 'waiting' && run.waitingReason === 'code_review'; @@ -912,18 +959,13 @@ export class ControlPlane { throw new DomainError('QUOTA_EXCEEDED', 'Tenant token reservation limit is exhausted', 429); run = touch({ ...run, budget: nextBudget, reservedTokens: remaining }); await tx.put('run', run); - await tx.event( - id, - 'run.budget.updated', - 'An administrator adjusted the run budget; execution remains stopped.', - { - actorId: actor.userId, - oldBudget, - newBudget: nextBudget, - usedTokens: run.usedTokens, - activeMilliseconds: run.activeMilliseconds, - }, - ); + await tx.event(id, 'run.budget.updated', '管理员调整了运行预算;执行仍保持停止。', { + actorId: actor.userId, + oldBudget, + newBudget: nextBudget, + usedTokens: run.usedTokens, + activeMilliseconds: run.activeMilliseconds, + }); return run; }); }); @@ -948,7 +990,7 @@ export class ControlPlane { // The executor of a requested pause stopped before completing it: the run pauses instead. if (run.pauseRequestedAt) { this.accountTime(run); - await finishPause(tx, run, 'The run paused; its executor stopped before it could save its work.'); + await finishPause(tx, run, '运行已暂停;执行器在保存工作之前就已停止。'); await tx.put('run', touch(run)); return undefined; } @@ -969,7 +1011,7 @@ export class ControlPlane { run.leaseOwnerId = actor.userId; run.leaseOwnerKind = actor.kind; await tx.put('run', run); - await tx.event(id, 'run.leased', 'Worker acquired an execution lease.', { fencingToken: run.lease.token }); + await tx.event(id, 'run.leased', '执行进程已接手运行。', { fencingToken: run.lease.token }); return run; }); // Thrown after the transaction, which keeps the completed pause. @@ -983,7 +1025,7 @@ export class ControlPlane { if (run.status !== 'running') throw new DomainError('RUN_NOT_RUNNING', 'Run is no longer running'); this.accountTime(run); if (run.pauseRequestedAt && Date.now() - Date.parse(run.pauseRequestedAt) > PAUSE_GRACE_MS) { - await finishPause(tx, run, 'The run paused; its executor did not confirm saving its work in time.'); + await finishPause(tx, run, '运行已暂停;执行器没有及时确认保存工作。'); await tx.put('run', touch(run)); return run; } @@ -1013,9 +1055,7 @@ export class ControlPlane { await finishPause( tx, run, - saved - ? 'The run paused; the work so far was saved as a checkpoint.' - : 'The run paused before the agent started; there was no new work to save.', + saved ? '运行已暂停;目前的工作已保存为检查点。' : '运行在 Agent 开始之前暂停;没有需要保存的新工作。', ); await tx.put('run', touch(run)); return run; @@ -1027,7 +1067,7 @@ export class ControlPlane { for (const run of await tx.list('run', { status: 'running' })) { if (!run.pauseRequestedAt || Date.now() - Date.parse(run.pauseRequestedAt) <= PAUSE_GRACE_MS) continue; this.accountTime(run); - await finishPause(tx, run, 'The run paused; its executor did not confirm saving its work in time.'); + await finishPause(tx, run, '运行已暂停;执行器没有及时确认保存工作。'); await tx.put('run', touch(run)); } }); @@ -1056,7 +1096,7 @@ export class ControlPlane { // A person asked for a pause; whatever stopped the execution, the run pauses. if (run.pauseRequestedAt) { this.accountTime(run); - await finishPause(tx, run, `The run paused; its execution stopped first (${data.reason}).`); + await finishPause(tx, run, `运行已暂停;执行先停止了(${data.reason})。`); await tx.put('run', touch(run)); return run; } @@ -1135,6 +1175,9 @@ export class ControlPlane { } if (run.status === 'running') run.lastActiveAt = now(); else run.lastActiveAt = undefined; + // The executor starts an implementation round with the project's skills in its prompt. + if (actor.kind === 'worker' && run.stage === 'implement' && run.status === 'running') + await recordSkillUse(tx, run); await tx.put('run', run); await tx.event(id, 'run.transition', redact(data.message), { stage: run.stage, @@ -1180,10 +1223,10 @@ export class ControlPlane { run, conflict ? 'integration_conflict' : 'repair_exhausted', conflict - ? `The change still conflicts with the target branch after ${run.repairCount} repair round(s).` + ? `修复 ${run.repairCount} 轮后,改动仍与目标分支冲突。` : failure.kind === 'scope' - ? `The change still touches backend code after ${run.repairCount} repair round(s), which this frontend-only wish may not change: ${failure.outputTail.split('\n').slice(0, 5).join(', ')}.` - : `Verification still fails after ${run.repairCount} repair round(s): ${failure.argv?.join(' ') ?? 'a protected check'} exited ${failure.exitCode ?? 'non-zero'}.`, + ? `修复 ${run.repairCount} 轮后,改动仍涉及后端代码,而这个仅限前端的愿望不能修改它们:${failure.outputTail.split('\n').slice(0, 5).join(', ')}。` + : `修复 ${run.repairCount} 轮后,验证仍然失败:${failure.argv?.join(' ') ?? '受保护的检查'} 退出码 ${failure.exitCode ?? '非零'}。`, ); await tx.put('run', touch(run)); await tx.event(id, 'run.waiting', run.waitingDetail!, { reason: run.waitingReason }); @@ -1198,12 +1241,12 @@ export class ControlPlane { await tx.event( id, 'run.repair', - `Repair round ${run.repairCount} of ${run.budget.maxRepairRounds}: ${ + `修复第 ${run.repairCount} 轮(共 ${run.budget.maxRepairRounds} 轮):${ failure.kind === 'integration_conflict' - ? 'resolve the merge conflict with the target branch.' + ? '解决与目标分支的合并冲突。' : failure.kind === 'scope' - ? 'take back the changes to backend code, which this frontend-only wish may not make.' - : `fix ${failure.argv?.join(' ') ?? 'the failing check'} (exit ${failure.exitCode ?? 'non-zero'}).` + ? '撤回对后端代码的改动,这个仅限前端的愿望不能修改它们。' + : `修复 ${failure.argv?.join(' ') ?? '失败的检查'}(退出码 ${failure.exitCode ?? '非零'})。` }`, { repairCount: run.repairCount, evidenceId: failure.evidenceId }, ); @@ -1334,10 +1377,15 @@ export class ControlPlane { verificationPolicyDigest: verificationPolicyDigest(project), } as Evidence; await tx.put('evidence', evidence); - await tx.event(run.id, 'evidence.recorded', `${data.type} evidence ${data.passed ? 'passed' : 'failed'}.`, { - evidenceId: evidence.id, - sourceCommit: data.sourceCommit, - }); + await tx.event( + run.id, + 'evidence.recorded', + `${EVIDENCE_NAMES[data.type] ?? data.type}证据:${data.passed ? '通过' : '未通过'}。`, + { + evidenceId: evidence.id, + sourceCommit: data.sourceCommit, + }, + ); const failure = failureSummary(evidence); if (failure) run.lastFailure = failure; if (data.type === 'integration' && data.passed) { @@ -1356,11 +1404,11 @@ export class ControlPlane { clearWaiting(run); if (run.lease) run.lease.expiresAt = now(); if (!run.providerProxyActiveRequest) run.reservedTokens = 0; - await captureLesson(tx, run); + await learnFromRun(tx, run); await tx.event( run.id, 'run.succeeded', - `Integrated ${run.integratedCommit} into ${project.targetBranch}; the project has no delivery configuration, so the run is complete.`, + `已将 ${run.integratedCommit} 合入 ${project.targetBranch};项目没有交付配置,运行到此完成。`, { integratedCommit: run.integratedCommit }, ); } @@ -1405,8 +1453,18 @@ export class ControlPlane { verificationProfileRequired: isProduction(this.env), connectionId: connection?.id ?? null, bundleConfig: await resolveBundle(tx, run.bundleVersion), - lessons: await projectLessons(tx, run.projectId), skills: await projectSkills(tx, run.projectId), + // Only the executor writes the files into its workspace; people fetch them one at a time. + attachments: + actor.kind === 'worker' && run.attachments?.length + ? await Promise.all( + run.attachments.map(async info => { + const file = await must(tx, 'attachment', info.id); + return { id: file.id, name: file.name, mediaType: file.mediaType, data: file.data }; + }), + ) + : [], + executorSettings: await runExecutorSettings(tx, run.provider), delivery: { release, verificationEvidenceId: current('verification'), diff --git a/apps/api/src/domain/entitlements.ts b/apps/api/src/domain/entitlements.ts index c44fcd2..15f8da8 100644 --- a/apps/api/src/domain/entitlements.ts +++ b/apps/api/src/domain/entitlements.ts @@ -21,7 +21,8 @@ export const planLimitsSchema = z .object({ maxMembers: positive.max(10000), maxProjects: positive.max(10000), - maxWorkspaces: positive.max(10000), + /** The retired cloud IDE's allowance: still accepted in stored snapshots and plan files, ignored. */ + maxWorkspaces: positive.max(10000).optional(), maxConcurrentRuns: positive.max(1000), monthlyModelTokens: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER), execution: z @@ -58,7 +59,6 @@ export const PILOT_PLAN: CommercialPlan = { limits: { maxMembers: 10, maxProjects: 10, - maxWorkspaces: 5, maxConcurrentRuns: 2, monthlyModelTokens: 2_000_000, execution: { cpuMilli: 2000, memoryMiB: 4096, storageMiB: 10240 }, @@ -105,7 +105,6 @@ export function effectiveEntitlements(tenant: Tenant): { limits: { ...structuredClone(PILOT_PLAN.limits), maxProjects: 20, - maxWorkspaces: 10, maxConcurrentRuns: tenant.maxConcurrentRuns, monthlyModelTokens: tenant.tokenLimit, }, @@ -128,11 +127,11 @@ export function requirePlatformOperator(actor: Actor, env = process.env) { 403, ); } -export async function requireCapacity(tx: Transaction, kind: 'project' | 'workspace') { +export async function requireCapacity(tx: Transaction, kind: 'project') { const limits = effectiveEntitlements(await tx.tenant()).limits; - // Projects and workspaces cannot be deleted yet (project archiving is planned), so every one counts. + // Projects cannot be deleted yet (project archiving is planned), so every one counts. const count = (await tx.list(kind)).length; - if (count >= (kind === 'project' ? limits.maxProjects : limits.maxWorkspaces)) + if (count >= limits.maxProjects) throw new DomainError('ENTITLEMENT_LIMIT', `Tenant ${kind} allowance is exhausted`, 429); } export function heldAllocation(run: Run): boolean { @@ -289,8 +288,12 @@ export async function recordAllocation( run.id, `resources.${status}`, status === 'released' - ? 'Provisioner confirmed compute Jobs stopped; retained persistent storage remains unmeasured.' - : `Sandbox resource allocation ${status}.`, + ? '资源开通服务确认计算任务已停止;保留的持久存储暂不计量。' + : { + provisioned: '沙箱资源已开通。', + unknown: '沙箱资源分配结果未知。', + releasing: '正在释放沙箱资源。', + }[status], { generation }, ); } @@ -307,7 +310,6 @@ export class Entitlements { counts: { members: (await tx.members()).filter(member => member.active).length, projects: (await tx.list('project')).length, - workspaces: (await tx.list('workspace')).length, reservedExecutionSlots: (await tx.list('run')).filter(occupiesExecutionSlot).length, }, }; diff --git a/apps/api/src/domain/executor-settings.ts b/apps/api/src/domain/executor-settings.ts new file mode 100644 index 0000000..d200b7d --- /dev/null +++ b/apps/api/src/domain/executor-settings.ts @@ -0,0 +1,179 @@ +import { z } from 'zod'; +import { + DomainError, + executorSettingFields, + executorSettingsInput, + isProduction, + plainHttpAllowed, + providerCatalog, + providers, + type Actor, + type Entity, + type ExecutorSettings, + type ProviderId, +} from '@wishforge/contracts'; +import type { Store, Transaction } from '../db/store.js'; +import { record, touch } from './control-plane.js'; +import { nativeClaudeEnabled } from './local-execution.js'; +import { requireHuman, requireRole } from './policy.js'; + +const providerParam = z.enum(providers); +type Settings = Omit; + +/** + * Why a tenant's base URL cannot apply to this executor here, or undefined when it can: only with + * the tenant's own key, sent straight to the model API. Production and the model proxy use the + * operator's upstream, and the deployment's native Claude account must never be sent elsewhere. + */ +export function tenantBaseUrlBlocked(env: NodeJS.ProcessEnv, tenantId: string, provider: ProviderId) { + if (!providerCatalog[provider].settings.includes('baseUrl')) return 'unsupported'; + if (isProduction(env) || env.WF_PROVIDER_PROXY_ENABLED === 'true') return 'operator_managed'; + if (provider === 'claude-code' && nativeClaudeEnabled(env, tenantId)) return 'native_account'; + return undefined; +} + +/** An HTTPS origin with an optional path; plain HTTP only where services may use it (plainHttpAllowed). */ +export function tenantBaseUrl(env: NodeJS.ProcessEnv, value: string) { + let url: URL; + try { + url = new URL(value); + } catch { + throw new DomainError('INVALID_BASE_URL', 'The base URL must be a URL such as https://gateway.example/v1', 400); + } + if ( + !(url.protocol === 'https:' || plainHttpAllowed(env, url)) || + url.username || + url.password || + url.search || + url.hash + ) + throw new DomainError( + 'INVALID_BASE_URL', + 'The base URL must use HTTPS and carry no credentials, query or fragment', + 400, + ); + return url.href.replace(/\/$/, ''); +} + +/** The settings of one executor, or none; tolerant of fields the executor no longer takes. */ +export async function storedExecutorSettings(tx: Transaction, provider: ProviderId): Promise { + const stored = await tx.get('executor_settings', provider); + if (!stored) return {}; + const supported = providerCatalog[provider].settings; + return Object.fromEntries( + executorSettingFields.flatMap(field => + supported.includes(field) && stored[field] !== undefined && stored[field] !== null + ? [[field, stored[field]]] + : [], + ), + ) as Settings; +} + +/** What the executor of a run applies besides the model: its run context's `executorSettings`. */ +export async function runExecutorSettings(tx: Transaction, provider: ProviderId) { + const { smallFastModel, fallbackModel, timeoutMinutes } = await storedExecutorSettings(tx, provider); + return { + ...(smallFastModel ? { smallFastModel } : {}), + ...(fallbackModel ? { fallbackModel } : {}), + ...(timeoutMinutes ? { timeoutMinutes } : {}), + }; +} + +/** + * A tenant admin's settings for each executor: gateway, models and time limit. Unset fields keep + * the operator's configuration. Settings are not secret; keys stay in provider connections. + */ +export class ExecutorSettingsService { + constructor( + private store: Store, + private env = process.env, + ) {} + private view(tenantId: string, provider: ProviderId, settings: Settings, stored?: ExecutorSettings) { + const blocked = tenantBaseUrlBlocked(this.env, tenantId, provider); + return { + provider, + ...settings, + supported: providerCatalog[provider].settings, + baseUrlAllowed: !blocked, + ...(blocked && providerCatalog[provider].settings.includes('baseUrl') ? { baseUrlBlocked: blocked } : {}), + ...(stored ? { version: stored.version, updatedAt: stored.updatedAt } : {}), + }; + } + list(actor: Actor) { + requireRole(actor, ['owner', 'admin']); + return this.store.read(actor.tenantId, async tx => + Promise.all( + providers.map(async provider => + this.view( + actor.tenantId, + provider, + await storedExecutorSettings(tx, provider), + await tx.get('executor_settings', provider), + ), + ), + ), + ); + } + async get(actor: Actor, provider: unknown) { + requireRole(actor, ['owner', 'admin']); + const id = providerParam.parse(provider); + return this.store.read(actor.tenantId, async tx => + this.view( + actor.tenantId, + id, + await storedExecutorSettings(tx, id), + await tx.get('executor_settings', id), + ), + ); + } + /** Replaces the executor's settings; the same body again changes nothing. */ + async put(actor: Actor, provider: unknown, input: unknown) { + requireHuman(actor); + requireRole(actor, ['owner', 'admin']); + const id = providerParam.parse(provider); + const data = executorSettingsInput.parse(input); + const supported = providerCatalog[id].settings; + const unsupported = executorSettingFields.filter(field => data[field] !== undefined && !supported.includes(field)); + if (unsupported.length) + throw new DomainError( + 'SETTING_UNSUPPORTED', + `${providerCatalog[id].name} does not take these settings: ${unsupported.join(', ')}`, + 400, + ); + const settings: Settings = Object.fromEntries( + executorSettingFields.flatMap(field => (data[field] !== undefined ? [[field, data[field]]] : [])), + ); + if (settings.baseUrl !== undefined) { + const blocked = tenantBaseUrlBlocked(this.env, actor.tenantId, id); + if (blocked) + throw new DomainError( + 'BASE_URL_OPERATOR_MANAGED', + blocked === 'native_account' + ? 'This executor runs on the deployment’s own Claude account, whose gateway the operator sets' + : 'The operator manages the model gateway of this deployment', + 400, + ); + settings.baseUrl = tenantBaseUrl(this.env, settings.baseUrl); + } + if (settings.fallbackModel && settings.fallbackModel === settings.defaultModel) + throw new DomainError('INVALID_FALLBACK_MODEL', 'The fallback model must differ from the default model', 400); + return this.store.transaction(actor.tenantId, async tx => { + const current = await tx.get('executor_settings', id); + const same = + current && + executorSettingFields.every(field => (current[field] ?? undefined) === (settings[field] ?? undefined)); + if (same) return this.view(actor.tenantId, id, settings, current); + const next: ExecutorSettings = { + ...(current ? touch(current) : { ...record(actor.tenantId), id }), + provider: id, + ...Object.fromEntries(executorSettingFields.map(field => [field, undefined])), + ...settings, + updatedBy: actor.userId, + }; + // Stored rows are JSON: unset fields are left out rather than kept as undefined. + for (const field of executorSettingFields) if (next[field] === undefined) delete next[field]; + await tx.put('executor_settings', next); + return this.view(actor.tenantId, id, settings, next); + }); + } +} diff --git a/apps/api/src/domain/gateway-target.ts b/apps/api/src/domain/gateway-target.ts deleted file mode 100644 index 2c1e642..0000000 --- a/apps/api/src/domain/gateway-target.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { readFile } from 'node:fs/promises'; -import { z } from 'zod'; -import { DomainError, plainHttpAllowed } from '@wishforge/contracts'; -import { dispatchTenants } from '../tenants.js'; -const entry = z - .object({ - internalUrl: z.string().max(2048), - publicUrl: z.string().max(2048), - tokenEnv: z.string().regex(/^WF_[A-Z0-9_]{1,100}_TOKEN$/), - }) - .strict(); -const schema = z - .object({ schemaVersion: z.literal(1), tenants: z.record(z.string().regex(/^[A-Za-z0-9_-]{1,128}$/), entry) }) - .strict(); -export interface GatewayTarget { - internalUrl: string; - publicUrl: string; - token: string; -} -function origin(raw: string, env: NodeJS.ProcessEnv) { - let value: URL; - try { - value = new URL(raw); - } catch { - throw new DomainError('GATEWAY_CONFIGURATION_INVALID', 'Gateway URL is invalid', 503); - } - if ( - value.username || - value.password || - value.pathname !== '/' || - value.search || - value.hash || - !(value.protocol === 'https:' || plainHttpAllowed(env, value)) - ) - throw new DomainError( - 'GATEWAY_CONFIGURATION_INVALID', - 'Gateway requires an HTTPS origin (development loopback excepted)', - 503, - ); - return value.origin; -} -async function mapping(file: string) { - try { - const bytes = await readFile(file); - if (bytes.length > 65536) throw Error(); - return schema.parse(JSON.parse(bytes.toString('utf8'))); - } catch { - throw new DomainError('GATEWAY_CONFIGURATION_INVALID', 'Operator tenant gateway map is unreadable or invalid', 503); - } -} -export async function resolveGatewayTarget( - env: NodeJS.ProcessEnv, - tenantId: string, -): Promise { - if (!/^[A-Za-z0-9_-]{1,128}$/.test(tenantId)) - throw new DomainError('GATEWAY_CONFIGURATION_INVALID', 'Invalid gateway tenant scope', 503); - let config: { internalUrl: string; publicUrl: string; tokenEnv: string } | undefined; - if (env.WF_WORKSPACE_GATEWAY_TARGETS_FILE) { - const map = await mapping(env.WF_WORKSPACE_GATEWAY_TARGETS_FILE); - config = Object.prototype.hasOwnProperty.call(map.tenants, tenantId) ? map.tenants[tenantId] : undefined; - if (!config) return; - for (const [otherId, other] of Object.entries(map.tenants)) { - if (otherId === tenantId) continue; - if ( - origin(other.publicUrl, env) === origin(config.publicUrl, env) || - (env[config.tokenEnv] && env[config.tokenEnv] === env[other.tokenEnv]) - ) - throw new DomainError( - 'GATEWAY_CONFIGURATION_INVALID', - 'Tenant gateways require distinct public origins and service credentials', - 503, - ); - } - } else { - if (!env.WF_WORKSPACE_GATEWAY_BASE && !env.WF_WORKSPACE_GATEWAY_TOKEN) return; - const tenants = dispatchTenants(env); - const bound = env.WF_WORKSPACE_GATEWAY_TENANT_ID ?? (tenants.length === 1 ? tenants[0] : undefined); - if (!bound) - throw new DomainError( - 'GATEWAY_TENANT_BINDING_REQUIRED', - 'A legacy gateway must be explicitly bound to one tenant; configure a tenant gateway map for multiple tenants', - 503, - ); - if (bound !== tenantId) return; - config = { - internalUrl: env.WF_WORKSPACE_GATEWAY_BASE ?? '', - publicUrl: env.WF_IDE_PUBLIC_URL ?? env.WF_WORKSPACE_GATEWAY_BASE ?? '', - tokenEnv: 'WF_WORKSPACE_GATEWAY_TOKEN', - }; - } - const token = env[config.tokenEnv]; - if (!token || token.length < 32) - throw new DomainError('GATEWAY_CONFIGURATION_INVALID', 'Gateway requires a tenant-scoped service token', 503); - return { internalUrl: origin(config.internalUrl, env), publicUrl: origin(config.publicUrl, env), token }; -} -/** All known platform gateway origins are protected from untrusted application hosting. */ -export async function gatewayIdentityOrigins(env: NodeJS.ProcessEnv): Promise { - if (env.WF_WORKSPACE_GATEWAY_TARGETS_FILE) { - const map = await mapping(env.WF_WORKSPACE_GATEWAY_TARGETS_FILE); - return [ - ...new Set( - Object.values(map.tenants).flatMap(item => [origin(item.internalUrl, env), origin(item.publicUrl, env)]), - ), - ]; - } - return [env.WF_WORKSPACE_GATEWAY_BASE, env.WF_IDE_PUBLIC_URL] - .filter((value): value is string => !!value) - .map(value => origin(value, env)); -} -export function validateGatewayLaunch(target: GatewayTarget, payload: unknown) { - const value = payload as { launchUrl?: unknown; expiresIn?: unknown }; - let url: URL; - try { - if (typeof value?.launchUrl !== 'string') throw Error(); - url = new URL(value.launchUrl); - } catch { - throw new DomainError('INVALID_GATEWAY_LAUNCH', 'Gateway did not return a valid one-time launch URL', 502); - } - const keys = [...url.searchParams.keys()]; - if ( - url.origin !== target.publicUrl || - url.pathname !== '/session' || - url.username || - url.password || - url.hash || - keys.length !== 1 || - keys[0] !== 'code' || - !/^[A-Za-z0-9_-]{40,128}$/.test(url.searchParams.get('code') ?? '') || - value.expiresIn !== 30 - ) - throw new DomainError( - 'INVALID_GATEWAY_LAUNCH', - 'One-time launch URL does not match the assigned tenant gateway', - 502, - ); - return { launchUrl: url.toString(), expiresIn: 30 }; -} diff --git a/apps/api/src/domain/git-storage.ts b/apps/api/src/domain/git-storage.ts index 10d005e..435d999 100644 --- a/apps/api/src/domain/git-storage.ts +++ b/apps/api/src/domain/git-storage.ts @@ -1,8 +1,5 @@ import { DomainError, type Actor, type Project, type Run, plainHttpAllowed } from '@wishforge/contracts'; -/** IDE workspaces push here; a wish starting from such a branch verifies and merges it. */ -export const IDE_BRANCH_PREFIX = 'ide/'; - /** Only the trusted control plane can provision repositories or mint repository-scoped access. */ export class GitStorage { constructor( @@ -44,35 +41,6 @@ export class GitStorage { defaultBranch: project.targetBranch, }); } - /** - * Write access for people editing in the project's IDE workspace. The Git service lets it - * update `ide/` branches only: the target branch changes through verified wishes alone. - */ - workspaceCredential(project: Project) { - if (project.repositoryStorage !== 'platform' || !project.repositoryUrl) - throw new DomainError( - 'WORKSPACE_REPOSITORY_UNSUPPORTED', - 'Only repositories hosted by the platform are cloned into IDE workspaces', - 409, - ); - return this.request<{ token: string; expiresAt: string }>('/tokens', { - tenantId: project.tenantId, - projectId: project.id, - permission: 'write', - ttlSeconds: 900, - refPrefix: `refs/heads/${IDE_BRANCH_PREFIX}`, - }); - } - /** The branches people pushed from the IDE, most recent first. */ - async ideBranches(project: Project) { - if (project.repositoryStorage !== 'platform' || !project.repositoryUrl || !this.configured()) return []; - const listed = await this.request<{ branches: { name: string; commit: string; updatedAt: string }[] }>('/refs', { - tenantId: project.tenantId, - projectId: project.id, - prefix: `refs/heads/${IDE_BRANCH_PREFIX}`, - }); - return listed.branches; - } async credential(actor: Actor, project: Project, run: Run) { if ( project.repositoryStorage !== 'platform' || diff --git a/apps/api/src/domain/github.ts b/apps/api/src/domain/github.ts index 6c5170d..4387325 100644 --- a/apps/api/src/domain/github.ts +++ b/apps/api/src/domain/github.ts @@ -336,7 +336,7 @@ export class GitHubIntegration { await tx.put('github_operation', operation); run.githubOperationId = id; await tx.put('run', touch(run)); - await tx.event(runId, 'github.pr.requested', 'Pull request creation recorded before contacting GitHub.', { + await tx.event(runId, 'github.pr.requested', '已在联系 GitHub 之前记录拉取请求的创建。', { operationId: id, }); return { operation, dispatch: true }; @@ -492,11 +492,7 @@ export class GitHubIntegration { run.verifiedCommit = undefined; run.stage = 'verify'; if (!activeVerifier) { - setWaiting( - run, - 'github_review', - 'GitHub merged a commit other than the verified one; resume the run to verify the merged commit.', - ); + setWaiting(run, 'github_review', 'GitHub 合入的提交不是验证过的那个;请继续运行以验证合入的提交。'); run.lastActiveAt = undefined; if (run.lease) run.lease.expiresAt = new Date().toISOString(); } @@ -517,19 +513,14 @@ export class GitHubIntegration { else operation.status = snapshot.state; const next = touch(operation); await tx.put('github_operation', next); - await tx.event( - run.id, - 'github.pr.observed', - 'GitHub pull request state reconciled; merge acceptance is distinct from source verification.', - { - operationId: id, - number: snapshot.number, - state: next.status, - headSha: snapshot.headSha, - baseSha: snapshot.baseSha, - mergeCommitSha: snapshot.mergeCommitSha, - }, - ); + await tx.event(run.id, 'github.pr.observed', '已核对 GitHub 拉取请求状态;合入验收与源码验证是两回事。', { + operationId: id, + number: snapshot.number, + state: next.status, + headSha: snapshot.headSha, + baseSha: snapshot.baseSha, + mergeCommitSha: snapshot.mergeCommitSha, + }); return next; }); } diff --git a/apps/api/src/domain/lessons.ts b/apps/api/src/domain/lessons.ts deleted file mode 100644 index 6c40335..0000000 --- a/apps/api/src/domain/lessons.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { z } from 'zod'; -import { lessonInput, type Actor, type Lesson, type Run } from '@wishforge/contracts'; -import { LESSON_LIMIT, repairLesson } from '@wishforge/agent'; -import type { Store, Transaction } from '../db/store.js'; -import { must, projectAccess, record, touch } from './control-plane.js'; -import { redact, requireHuman, requireRole } from './policy.js'; - -const statusInput = z.object({ status: z.enum(['active', 'disabled']) }).strict(); -const newestFirst = (a: Lesson, b: Lesson) => b.createdAt.localeCompare(a.createdAt); - -/** Active lessons of a project, most recent first, as they are injected into prompts. */ -export async function projectLessons(tx: Transaction, projectId: string): Promise { - return (await tx.list('lesson', { projectId, status: 'active' })) - .sort(newestFirst) - .slice(0, LESSON_LIMIT) - .map(lesson => lesson.summary); -} - -/** A run that needed a repair round before it succeeded leaves a lesson for later runs of its project. */ -export async function captureLesson(tx: Transaction, run: Run) { - if (!run.repairCount || !run.lastFailure) return; - const lessons = await tx.list('lesson', { projectId: run.projectId }); - if (lessons.some(lesson => lesson.sourceRunId === run.id && lesson.kind === 'repair')) return; - const lesson: Lesson = { - ...record(run.tenantId), - projectId: run.projectId, - kind: 'repair', - summary: redact(repairLesson(run.lastFailure, run.implementationSummary)), - sourceRunId: run.id, - status: 'active', - createdBy: 'wishforge', - }; - await tx.put('lesson', lesson); - await tx.event(run.id, 'lesson.recorded', 'Recorded a project lesson from the repaired failure.', { - lessonId: lesson.id, - }); -} - -/** Owners and admins review what later runs will be told. */ -export class Lessons { - constructor(private readonly store: Store) {} - async list(actor: Actor, projectId: string) { - return this.store.read(actor.tenantId, async tx => { - await projectAccess(tx, actor, projectId); - return (await tx.list('lesson', { projectId })).sort(newestFirst); - }); - } - async create(actor: Actor, projectId: string, input: unknown) { - this.authorize(actor); - const { summary } = lessonInput.parse(input); - return this.store.transaction(actor.tenantId, async tx => { - await projectAccess(tx, actor, projectId); - const lesson: Lesson = { - ...record(actor.tenantId), - projectId, - kind: 'convention', - summary: redact(summary), - status: 'active', - createdBy: actor.userId, - }; - await tx.put('lesson', lesson); - return lesson; - }); - } - async setStatus(actor: Actor, id: string, input: unknown) { - this.authorize(actor); - const { status } = statusInput.parse(input); - return this.store.transaction(actor.tenantId, async tx => { - const lesson = await must(tx, 'lesson', id); - await projectAccess(tx, actor, lesson.projectId); - if (lesson.status === status) return lesson; - const next = { ...touch(lesson), status }; - await tx.put('lesson', next); - return next; - }); - } - async remove(actor: Actor, id: string) { - this.authorize(actor); - return this.store.transaction(actor.tenantId, async tx => { - const lesson = await must(tx, 'lesson', id); - await projectAccess(tx, actor, lesson.projectId); - await tx.remove('lesson', id); - return { deleted: true }; - }); - } - private authorize(actor: Actor) { - requireRole(actor, ['owner', 'admin']); - requireHuman(actor); - } -} diff --git a/apps/api/src/domain/provider-events.ts b/apps/api/src/domain/provider-events.ts index 54ffb72..429b0dc 100644 --- a/apps/api/src/domain/provider-events.ts +++ b/apps/api/src/domain/provider-events.ts @@ -1,6 +1,11 @@ import { countedTokens, type ProviderEventType } from '@wishforge/contracts'; import { redact } from './policy.js'; +/** How a file_change message starts before its paths; older events start with `Changed `. */ +export const CHANGED_PREFIX = '改动了:'; +/** The paths a file_change message lists, for events written in either language. */ +export const changedPathsOf = (message: string) => /^(?:Changed |改动了:)(.+)$/.exec(message)?.[1]; + const text = (value: unknown, max = 2000) => (typeof value === 'string' ? redact(value).slice(0, max) : undefined); const count = (value: unknown) => Number.isSafeInteger(value) && (value as number) >= 0 ? (value as number) : undefined; @@ -16,12 +21,12 @@ export function describeProviderEvent(event: { type: ProviderEventType; data: Re const data = event.data; switch (event.type) { case 'output': - return { message: text(data.text, 5000)?.trim() || 'Agent message', data: {} }; + return { message: text(data.text, 5000)?.trim() || 'Agent 回复', data: {} }; case 'command': { const command = text(data.command) ?? ''; const exitCode = Number.isInteger(data.exitCode) ? (data.exitCode as number) : undefined; return { - message: `$ ${command}${exitCode === undefined ? '' : ` (exit ${exitCode})`}`, + message: `$ ${command}${exitCode === undefined ? '' : ` (退出码 ${exitCode})`}`, data: { command, ...(exitCode === undefined ? {} : { exitCode }) }, }; } @@ -33,8 +38,8 @@ export function describeProviderEvent(event: { type: ProviderEventType; data: Re }); return { message: changes.length - ? `Changed ${changes.map(change => change.path).join(', ')}`.slice(0, 5000) - : 'Changed files', + ? `${CHANGED_PREFIX}${changes.map(change => change.path).join(', ')}`.slice(0, 5000) + : '改动了文件', data: { changes }, }; } @@ -44,7 +49,7 @@ export function describeProviderEvent(event: { type: ProviderEventType; data: Re return step ? [{ text: step, completed: (item as { completed?: unknown }).completed === true }] : []; }); return { - message: items.map(item => `${item.completed ? '[x]' : '[ ]'} ${item.text}`).join('\n') || 'Plan updated', + message: items.map(item => `${item.completed ? '[x]' : '[ ]'} ${item.text}`).join('\n') || '计划已更新', data: { items }, }; } @@ -57,12 +62,10 @@ export function describeProviderEvent(event: { type: ProviderEventType; data: Re // which may undercount the output of the last one. const estimated = data.estimated === true; const counted = countedTokens(data); - const label = estimated - ? 'Model usage (estimated: the session stopped before reporting its total)' - : 'Model usage'; + const label = estimated ? '模型用量(估算:会话在报告总量之前已停止)' : '模型用量'; if (cacheCreation || cacheRead) return { - message: `${label}: ${input} input, ${output} output, ${cacheCreation} cache creation and ${cacheRead} cache read tokens; ${counted} count toward the budget (cache reads a tenth)`, + message: `${label}:输入 ${input}、输出 ${output}、缓存创建 ${cacheCreation}、缓存读取 ${cacheRead} 个 token;计入预算 ${counted} 个(缓存读取按十分之一计)`, data: { input, output, @@ -74,34 +77,34 @@ export function describeProviderEvent(event: { type: ProviderEventType; data: Re }, }; return { - message: `${label}: ${input} input and ${output} output tokens`, + message: `${label}:输入 ${input}、输出 ${output} 个 token`, data: { input, output, ...(estimated ? { estimated } : {}) }, }; } case 'failed': - return { message: text(data.message, 5000) ?? 'The executor reported a failure', data: {} }; + return { message: text(data.message, 5000) ?? '执行器报告失败', data: {} }; case 'started': // Only development sandboxes run an executor without a command sandbox of its own: one that // cannot start here, or a CLI that has none. return data.unsandboxed === true ? { - message: `Executor started without its command sandbox (${text(data.reason, 300) ?? 'no details'}); the run's development sandbox is the only boundary`, + message: `执行器启动,但没有自己的命令沙箱(${text(data.reason, 300) ?? '没有详情'});运行的开发沙箱是唯一的隔离边界`, data: { unsandboxed: true }, } : data.commands === 'sandboxed' ? { - message: 'Executor started; its commands run in a sandbox without network access', + message: '执行器已启动;它的命令在无网络的沙箱里运行', data: { commands: 'sandboxed' }, } : data.commands === 'none' ? { - message: `Executor started with file tools only: its command sandbox cannot start here (${text(data.reason, 300) ?? 'no details'})`, + message: `执行器已启动,仅能使用文件工具:它的命令沙箱在这里无法启动(${text(data.reason, 300) ?? '没有详情'})`, data: { commands: 'none' }, } - : { message: 'Executor started', data: {} }; + : { message: '执行器已启动', data: {} }; case 'completed': - return { message: 'Executor finished its turn', data: {} }; + return { message: '执行器完成本轮', data: {} }; case 'canceled': - return { message: 'Executor stopped', data: {} }; + return { message: '执行器已停止', data: {} }; } } diff --git a/apps/api/src/domain/provider-proxy.ts b/apps/api/src/domain/provider-proxy.ts index 0fc61a2..1744a77 100644 --- a/apps/api/src/domain/provider-proxy.ts +++ b/apps/api/src/domain/provider-proxy.ts @@ -130,9 +130,9 @@ export async function reapStaleProxyRequests(store: Store, tenantId: string) { const run = await tx.get('run', op.runId); if (!run) continue; run.reservedTokens = Math.max(run.reservedTokens, op.reservedTokens); - blockRun(run, 'A model request lost its proxy before it finished; reconcile it before the run continues.'); + blockRun(run, '一个模型请求在完成之前失去了代理进程;请先对账,运行才能继续。'); await tx.put('run', touch(run)); - await tx.event(run.id, 'provider.proxy.unknown', 'A model request lost its proxy before it finished.', { + await tx.event(run.id, 'provider.proxy.unknown', '一个模型请求在完成之前失去了代理进程。', { requestId: op.id, }); } @@ -211,7 +211,7 @@ export class ProviderProxy { op.unknownReason = `reconciled by ${actor.userId}${data.usageTokens === undefined ? ' (reservation charged)' : ''}`; await tx.put('provider_proxy_request', touch(op)); await tx.put('run', touch(run)); - await tx.event(run.id, 'provider.proxy.reconciled', `A model request was reconciled with ${tokens} tokens.`, { + await tx.event(run.id, 'provider.proxy.reconciled', `一个模型请求已对账,计 ${tokens} 个 token。`, { requestId: op.id, usageTokens: tokens, actorId: actor.userId, @@ -548,7 +548,7 @@ export class ProviderProxy { const outputLimit = Math.min(parsed.data.max_output_tokens ?? 8192, remaining - inputReserve); if (outputLimit < 16) { // The run waits for a larger budget; the executor would otherwise report a bare 429. - unaffordable = `The next model request needs ${inputReserve + 16} tokens of budget (one per request byte, plus output), but ${Math.max(0, remaining)} of ${run.budget.maxTokens} remain. Submit the wish again with a larger token budget.`; + unaffordable = `下一个模型请求需要 ${inputReserve + 16} 个 token 的预算(请求每字节一个,另加输出),但 ${run.budget.maxTokens} 个中只剩 ${Math.max(0, remaining)} 个。请用更大的 token 预算重新提交愿望。`; setWaiting(run, 'budget', unaffordable); if (run.lease) run.lease.expiresAt = now(); await tx.put('run', touch(run)); @@ -582,7 +582,7 @@ export class ProviderProxy { run.providerProxyActiveRequest = requestId; await tx.put('run', touch(run)); await tx.put('provider_proxy_request', operation); - await tx.event(run.id, 'provider.proxy.dispatched', 'Scoped model request recorded before upstream I/O.', { + await tx.event(run.id, 'provider.proxy.dispatched', '模型请求已在发往上游之前记录。', { requestId, reservedTokens: reserved, }); @@ -661,10 +661,7 @@ export class ProviderProxy { } if (status === 'unknown') { run.reservedTokens = Math.max(run.reservedTokens, op.reservedTokens); - blockRun( - run, - 'A model request ended without a confirmed outcome or usage; reconcile it before the run continues.', - ); + blockRun(run, '一个模型请求结束时没有确认的结果或用量;请先对账,运行才能继续。'); } else if (run.providerProxyActiveRequest === requestId) { run.providerProxyActiveRequest = undefined; if (['canceled', 'failed', 'succeeded'].includes(run.status)) run.reservedTokens = 0; @@ -673,7 +670,7 @@ export class ProviderProxy { run.usedTokens >= run.budget.maxTokens && !['canceled', 'failed', 'succeeded', 'paused'].includes(run.status) ) { - setWaiting(run, 'budget', 'The run used up its model token budget.'); + setWaiting(run, 'budget', '运行已用完模型 token 预算。'); if (run.lease) run.lease.expiresAt = now(); } await tx.put('provider_proxy_request', touch(op)); @@ -681,9 +678,7 @@ export class ProviderProxy { await tx.event( run.id, `provider.proxy.${status}`, - status === 'unknown' - ? 'Upstream outcome or usage is unknown; new model requests are blocked pending reconciliation.' - : 'Trusted upstream request outcome recorded.', + status === 'unknown' ? '上游结果或用量未知;对账之前新的模型请求会被拦下。' : '已记录上游请求的可信结果。', { requestId, usageTokens, responseId: response?.id }, ); }); diff --git a/apps/api/src/domain/releases.ts b/apps/api/src/domain/releases.ts index 8b12e70..d0b9a1d 100644 --- a/apps/api/src/domain/releases.ts +++ b/apps/api/src/domain/releases.ts @@ -1,7 +1,6 @@ import { assertPocBuild } from './local-poc.js'; import { z } from 'zod'; import { requireDeploymentSecretPolicy } from './deployment-secret-policy.js'; -import { gatewayIdentityOrigins } from './gateway-target.js'; import { DomainError, environmentInput, @@ -32,7 +31,7 @@ import { setWaiting, clearWaiting, } from './control-plane.js'; -import { captureLesson } from './lessons.js'; +import { learnFromRun } from './skills.js'; import { digest, releaseRisk, requireRole, requireHuman } from './policy.js'; import { requirePermission } from './permissions.js'; @@ -76,7 +75,7 @@ export function deploymentIdentity(actor: Actor, environmentId: string, runId: s export async function noteReleaseFailure(tx: Transaction, release: Release, detail: string) { const run = await tx.get('run', release.runId); if (!run || run.status !== 'waiting' || run.stage !== 'release') return; - setWaiting(run, 'deployment', `${detail} Continue the run to request a new release, or submit a follow-up wish.`); + setWaiting(run, 'deployment', `${detail}继续运行可以申请新的发布,也可以提交一个后续愿望。`); await tx.put('run', touch(run)); await tx.event(run.id, 'release.failed', detail, { releaseId: release.id }); } @@ -89,9 +88,9 @@ export async function expireApprovals(store: Store, tenantId: string) { await tx.put('approval', { ...touch(approval), status: 'expired' }); const release = await tx.get('release', approval.releaseId); if (release?.status !== 'awaiting_approval') continue; - const failed = { ...touch(release), status: 'failed' as const, failureReason: 'The approval expired' }; + const failed = { ...touch(release), status: 'failed' as const, failureReason: '审批已过期' }; await tx.put('release', failed); - await noteReleaseFailure(tx, failed, `The approval of release ${release.id} expired.`); + await noteReleaseFailure(tx, failed, `发布 ${release.id} 的审批已过期。`); } }); } @@ -124,7 +123,7 @@ export class Releases { const env = { ...record(actor.tenantId), ...data, - applicationUrl: applicationUrlFor(data, this.env, await gatewayIdentityOrigins(this.env)), + applicationUrl: applicationUrlFor(data, this.env), } as Environment; await tx.put('environment', env); return env; @@ -144,7 +143,6 @@ export class Releases { environment.applicationUrl = applicationUrlFor( { ...environment, applicationUrl: input.applicationUrl ?? undefined }, this.env, - await gatewayIdentityOrigins(this.env), ); await tx.put('environment', touch(environment)); return environment; @@ -298,7 +296,7 @@ export class Releases { if (env.projectId !== run.projectId) throw new DomainError('ENVIRONMENT_MISMATCH', 'Environment belongs to another project'); requireDeploymentSecretPolicy(env); - applicationUrlFor(env, this.env, await gatewayIdentityOrigins(this.env)); + applicationUrlFor(env, this.env); assertApplicationConfigured( { applicationUrl: env.applicationUrl, deliveryRequired: isProduction(this.env) }, this.env, @@ -381,9 +379,7 @@ export class Releases { await tx.event( run.id, 'release.created', - riskReasons.length - ? 'Release requires approval of the exact artifact and environment.' - : 'Release passed the configured automatic policy.', + riskReasons.length ? '发布需要针对这个制品和环境的审批。' : '发布已通过配置的自动策略。', { releaseId: release.id, bindingDigest: release.bindingDigest }, ); return release; @@ -397,8 +393,8 @@ export class Releases { project = await must(tx, 'project', release.projectId); assertVerificationProfile(project, this.env); if (environment.applicationUrl !== release.applicationUrl) - throw new DomainError('RELEASE_STALE', 'Application URL changed; request a new release'); - applicationUrlFor(environment, this.env, await gatewayIdentityOrigins(this.env)); + throw new DomainError('RELEASE_STALE', '应用地址已变化;请申请新的发布'); + applicationUrlFor(environment, this.env); assertApplicationConfigured(release, this.env); if ( digest(releaseBinding(release)) !== release.bindingDigest || @@ -415,10 +411,7 @@ export class Releases { verificationPolicyDigest(project) !== release.verificationPolicyDigest || environment.currentReleaseId !== release.previousReleaseId ) - throw new DomainError( - 'RELEASE_STALE', - 'Requirements, code, policy, configuration, secrets or environment changed; request a new release', - ); + throw new DomainError('RELEASE_STALE', '需求、代码、策略、配置、密钥或环境已变化;请申请新的发布'); requireDeploymentSecretPolicy(release); await assertPocBuild(project, environment.id, release.pocRelease, this.env); if (requireApproval && release.approvalId) { @@ -428,7 +421,7 @@ export class Releases { approval.releaseId !== release.id || approval.bindingDigest !== release.bindingDigest ) - throw new DomainError('APPROVAL_STALE', 'Release approval is absent or invalidated'); + throw new DomainError('APPROVAL_STALE', '发布审批不存在或已失效'); } return { run, environment, project }; } @@ -448,7 +441,7 @@ export class Releases { release.bindingDigest !== approval.bindingDigest || release.status !== 'awaiting_approval' ) - throw new DomainError('APPROVAL_STALE', 'Release no longer matches this approval'); + throw new DomainError('APPROVAL_STALE', '发布已与这次审批不一致'); // Four eyes in production: whoever asked for the release (or the wish) cannot approve it. if (input.decision === 'approve' && isProduction(this.env) && approval.requestedBy === actor.userId) throw new DomainError('SELF_APPROVAL_FORBIDDEN', 'Another person has to approve a release you requested', 403); @@ -457,15 +450,20 @@ export class Releases { approval.decidedBy = actor.userId; release.status = input.decision === 'approve' ? 'ready' : 'failed'; if (input.decision === 'reject') { - release.failureReason = `Rejected by ${actor.userId}`; - await noteReleaseFailure(tx, release, `Release ${release.id} was rejected.`); + release.failureReason = `被 ${actor.userId} 驳回`; + await noteReleaseFailure(tx, release, `发布 ${release.id} 已被驳回。`); } await tx.put('approval', touch(approval)); await tx.put('release', touch(release)); - await tx.event(release.runId, 'release.approval', `Release ${input.decision} decision recorded.`, { - releaseId: release.id, - actorId: actor.userId, - }); + await tx.event( + release.runId, + 'release.approval', + `已记录发布审批决定:${input.decision === 'approve' ? '批准' : '驳回'}。`, + { + releaseId: release.id, + actorId: actor.userId, + }, + ); return release; }); } @@ -542,13 +540,13 @@ export class Releases { run.stage = 'accept'; clearWaiting(run); run.reservedTokens = 0; - await captureLesson(tx, run); + await learnFromRun(tx, run); run.lastActiveAt = undefined; if (run.lease) run.lease.expiresAt = now(); await tx.put('release', touch(release)); await tx.put('environment', touch(env)); await tx.put('run', touch(run)); - await tx.event(run.id, 'delivery.accepted', 'Deployed artifact passed health and business acceptance.', { + await tx.event(run.id, 'delivery.accepted', '已部署的制品通过了健康检查和业务验收。', { releaseId: id, evidenceId: evidence.id, }); @@ -589,7 +587,7 @@ export class Releases { await tx.event( original.runId, 'rollback.abandoned', - `Environment ${environment.name} was unlocked by ${actor.userId} after checking the target; the rollback was abandoned.`, + `${actor.userId} 检查目标后解锁了环境 ${environment.name};回滚已放弃。`, { operationId: rollback.id }, ); return { environmentId, releaseId, status: release.status }; @@ -601,14 +599,10 @@ export class Releases { await tx.put('runner_task', { ...touch(task), status: 'canceled' }); environment.activeReleaseId = undefined; release.status = 'failed'; - release.failureReason = `Unlocked by ${actor.userId} after checking the target`; + release.failureReason = `${actor.userId} 检查目标后解锁了环境`; await tx.put('environment', touch(environment)); await tx.put('release', touch(release)); - await noteReleaseFailure( - tx, - release, - `Environment ${environment.name} was unlocked; release ${release.id} is not live.`, - ); + await noteReleaseFailure(tx, release, `环境 ${environment.name} 已解锁;发布 ${release.id} 没有上线。`); return { environmentId, releaseId, status: release.status }; }); } @@ -711,12 +705,10 @@ export class Releases { env.activeReleaseId = previous.id; await tx.put('environment', touch(env)); await tx.put('runner_task', operation); - await tx.event( - release.runId, - 'rollback.requested', - 'Rollback queued for the authenticated environment runner.', - { operationId: operation.id, targetReleaseId: previous.id }, - ); + await tx.event(release.runId, 'rollback.requested', '回滚已排队,等待经过认证的环境执行器处理。', { + operationId: operation.id, + targetReleaseId: previous.id, + }); return operation; }); }); diff --git a/apps/api/src/domain/resource-dispatch.ts b/apps/api/src/domain/resource-dispatch.ts index d05f3bf..c763400 100644 --- a/apps/api/src/domain/resource-dispatch.ts +++ b/apps/api/src/domain/resource-dispatch.ts @@ -75,7 +75,7 @@ export async function releaseStoppedAllocations( await tx.event( latest.id, 'resources.reconciliation_required', - 'Compute cleanup was observed after an unknown provisioning outcome; operator reconciliation is required before releasing the reserved slot.', + '在开通结果未知之后观察到计算资源已清理;释放预留名额之前需要运维人员对账。', ); } else await recordAllocation(tx, latest.id, allocation.generation, 'released'); }); @@ -139,7 +139,7 @@ export async function purgeRetainedStorage(control: ControlPlane, tenantId: stri if (value?.generation !== allocation.generation || value.status !== 'released') return; latest.resourceAllocation = { ...value, storagePurgedAt: new Date().toISOString() }; await tx.put('run', touch(latest)); - await tx.event(latest.id, 'resources.storage_purged', `Run volumes were removed ${hours} hours after release.`); + await tx.event(latest.id, 'resources.storage_purged', `运行卷在释放 ${hours} 小时后已删除。`); }); } catch { /* Retried at the next hourly pass. */ diff --git a/apps/api/src/domain/runner-broker.ts b/apps/api/src/domain/runner-broker.ts index d1c7536..31991bb 100644 --- a/apps/api/src/domain/runner-broker.ts +++ b/apps/api/src/domain/runner-broker.ts @@ -378,7 +378,7 @@ export class RunnerBroker { await tx.event( original.runId, 'release.rolled_back', - 'Previous immutable artifact restored and passed health and business acceptance.', + '已恢复上一个不可变制品,并通过了健康检查和业务验收。', { operationId: operation.id, targetReleaseId: release.id, evidenceId: evidence.id }, ); rolledBack = true; @@ -391,16 +391,13 @@ export class RunnerBroker { environment.activeReleaseId = undefined; await tx.put('environment', touch(environment)); const original = await must(tx, 'release', String(operation.releaseId)); - await tx.event( - original.runId, - 'rollback.failed', - `Rollback failed (${reason}); the current version keeps serving.`, - { operationId: operation.id }, - ); + await tx.event(original.runId, 'rollback.failed', `回滚失败(${reason});当前版本继续提供服务。`, { + operationId: operation.id, + }); } else { operation.status = 'unknown'; const original = await must(tx, 'release', String(operation.releaseId)); - await tx.event(original.runId, 'rollback.unknown', 'Rollback requires live-state reconciliation.', { + await tx.event(original.runId, 'rollback.unknown', '回滚需要对线上实际状态进行对账。', { operationId: operation.id, }); } @@ -428,11 +425,7 @@ export class RunnerBroker { environment.activeReleaseId = undefined; await tx.put('release', touch(release)); await tx.put('environment', touch(environment)); - await noteReleaseFailure( - tx, - release, - `Deployment of release ${release.id} failed (${reason}); the previous version keeps serving.`, - ); + await noteReleaseFailure(tx, release, `发布 ${release.id} 部署失败(${reason});上一个版本继续提供服务。`); } else { if (!['deploying', 'unknown', 'failed'].includes(release.status)) throw new DomainError('RELEASE_CONFLICT', 'Deployment receipt is obsolete'); @@ -441,7 +434,7 @@ export class RunnerBroker { await tx.event( release.runId, 'release.failure', - `Runner reported ${result.status}; live state must be reconciled before another deployment.`, + `环境执行器报告 ${result.status};再次部署之前必须先对线上状态进行对账。`, { releaseId: release.id, taskId }, ); } @@ -475,7 +468,7 @@ export class RunnerBroker { release.status = 'failed'; release.failureReason = error.message; await tx.put('release', touch(release)); - await noteReleaseFailure(tx, release, `Release ${release.id} went stale before deployment: ${error.message}`); + await noteReleaseFailure(tx, release, `发布 ${release.id} 在部署之前已过期:${error.message}。`); } } } diff --git a/apps/api/src/domain/skill-files.ts b/apps/api/src/domain/skill-files.ts new file mode 100644 index 0000000..5f53c0b --- /dev/null +++ b/apps/api/src/domain/skill-files.ts @@ -0,0 +1,282 @@ +import { crc32, inflateRawSync } from 'node:zlib'; +import { + DomainError, + SKILL_CONTENT_LIMIT, + skillCategories, + skillName, + type Skill, + type SkillCategory, +} from '@wishforge/contracts'; + +/** + * Skills as files: SKILL.md with its name and purpose up front, one directory per skill in a zip, + * as Claude Code's .claude/skills/ expects. Export writes them; import reads them back, from this + * platform's exports or from skills written elsewhere. + */ + +/** What an import may hold. Larger archives and files are refused rather than read partly. */ +export const SKILL_IMPORT_LIMITS = { + /** A zip as uploaded (before base64). */ + archiveBytes: 512 * 1024, + /** Entries a zip's directory may list, skills or not. */ + entries: 500, + /** Skills one import may add. */ + skills: 50, + /** One SKILL.md, uncompressed. */ + fileBytes: 64 * 1024, + /** Every SKILL.md of an archive together, uncompressed. */ + totalBytes: 2 * 1024 * 1024, +} as const; + +/** One skill read from a file, before it joins a project. */ +export interface SkillFile { + name: string; + description: string; + content: string; + category: SkillCategory; + /** Where it came from: the file name or the path inside the archive. */ + source: string; +} + +/** A skill as Claude Code and other agents read it: SKILL.md with its name and purpose up front. */ +export function skillMarkdown(skill: Pick) { + const description = skill.description.replace(/\s+/g, ' ').trim(); + // Other tools ignore metadata; an import here restores what kind of skill it was. + const metadata = + skill.category && skill.category !== 'workflow' ? `metadata:\n wishforge-category: ${skill.category}\n` : ''; + return `---\nname: ${skill.name}\ndescription: ${JSON.stringify(description)}\n${metadata}---\n\n${skill.content.trim()}\n`; +} + +const invalid = (source: string, reason: string) => new DomainError('INVALID_SKILL_FILE', `${source}: ${reason}`, 400); + +/** A YAML scalar as SKILL.md front matter writes it: plain, single- or double-quoted. */ +function scalar(raw: string, source: string): string { + const value = raw.trim(); + if (value.startsWith('"')) { + try { + const parsed: unknown = JSON.parse(value); + if (typeof parsed === 'string') return parsed; + } catch {} + throw invalid(source, 'a quoted value in the front matter is not closed'); + } + if (value.startsWith("'")) { + if (!value.endsWith("'") || value.length < 2) + throw invalid(source, 'a quoted value in the front matter is not closed'); + return value.slice(1, -1).replaceAll("''", "'"); + } + // A comment after a plain value is not part of it. + return value.replace(/\s+#.*$/, ''); +} + +/** + * The front matter keys SKILL.md uses: top-level scalars, block scalars (`|`, `>`) and one level + * of nesting (`metadata:`). Anything richer is ignored rather than misread. + */ +function frontMatter(lines: string[], source: string) { + const fields: Record = {}; + const nested: Record = {}; + for (let i = 0; i < lines.length; i++) { + const line = lines[i]!; + if (!line.trim() || line.trimStart().startsWith('#')) continue; + const match = /^([A-Za-z0-9_-]+):(.*)$/.exec(line); + if (!match) continue; + const [, key, rest] = match as unknown as [string, string, string]; + const indented: string[] = []; + while (i + 1 < lines.length && (/^\s+\S/.test(lines[i + 1]!) || !lines[i + 1]!.trim())) indented.push(lines[++i]!); + const marker = rest.trim(); + if (/^[|>][+-]?$/.test(marker)) { + const body = indented.map(item => item.trim()); + fields[key] = (marker.startsWith('>') ? body.join(' ') : body.join('\n')).trim(); + } else if (marker) { + fields[key] = [scalar(marker, source), ...indented.map(item => item.trim())].join(' ').trim(); + } else + for (const item of indented) { + const child = /^\s+([A-Za-z0-9_-]+):(.*)$/.exec(item); + if (child?.[2]?.trim()) nested[`${key}.${child[1]}`] = scalar(child[2], source); + } + } + return { ...nested, ...fields }; +} + +/** Lowercase words joined by hyphens, from whatever a file or directory was called. */ +export function skillSlug(value: string) { + return value + .normalize('NFKD') + .toLowerCase() + .replace(/[^a-z0-9]+/g, '-') + .replace(/^-+|-+$/g, '') + .slice(0, 64) + .replace(/-+$/, ''); +} + +/** The skill a path names when its front matter does not: `name/SKILL.md`, `name.SKILL.md` or `name.md`. */ +function nameFromPath(source: string) { + const parts = source.split('/').filter(Boolean); + const file = parts.at(-1) ?? ''; + if (/^skill\.md$/i.test(file)) return parts.at(-2) ?? ''; + return file.replace(/(\.skill)?\.md$/i, ''); +} + +/** Reads one SKILL.md; `source` names it in errors and supplies the name when the file has none. */ +export function parseSkillMarkdown(text: string, source: string): SkillFile { + const normalized = text.replace(/^\uFEFF/, '').replace(/\r\n?/g, '\n'); + if (Buffer.byteLength(normalized, 'utf8') > SKILL_IMPORT_LIMITS.fileBytes) + throw invalid(source, `larger than ${SKILL_IMPORT_LIMITS.fileBytes / 1024} KiB`); + let fields: Record = {}; + let body = normalized; + if (normalized.startsWith('---\n')) { + const end = normalized.indexOf('\n---', 4); + if (end === -1) throw invalid(source, 'the front matter is not closed with ---'); + fields = frontMatter(normalized.slice(4, end).split('\n'), source); + body = normalized.slice(end + 4).replace(/^[^\n]*\n?/, ''); + } + const content = body.trim(); + if (!content) throw invalid(source, 'the skill has no instructions after its front matter'); + if (content.length > SKILL_CONTENT_LIMIT) + throw invalid(source, `the instructions are longer than ${SKILL_CONTENT_LIMIT} characters`); + const rawName = fields.name?.trim() || nameFromPath(source); + const name = skillName.safeParse(rawName).success ? rawName : skillSlug(rawName); + if (!name) throw invalid(source, 'the skill has no usable name'); + // Skills written elsewhere sometimes leave the description out; their first line says what they are for. + const description = (fields.description || content.split('\n').find(line => line.trim()) || '') + .replace(/^#+\s*/, '') + .replace(/\s+/g, ' ') + .trim() + .slice(0, 500); + if (!description) throw invalid(source, 'the skill has no description'); + const category = fields['metadata.wishforge-category'] ?? fields.category; + return { + name, + description, + content, + category: (skillCategories as readonly string[]).includes(category ?? '') + ? (category as SkillCategory) + : 'workflow', + source, + }; +} + +/** A zip archive of text files, stored without compression: the format every system opens. */ +export function zipFiles(files: { path: string; content: string }[], at = new Date()): Buffer { + const time = ((at.getHours() << 11) | (at.getMinutes() << 5) | (at.getSeconds() >> 1)) & 0xffff; + const date = (((at.getFullYear() - 1980) << 9) | ((at.getMonth() + 1) << 5) | at.getDate()) & 0xffff; + const locals: Buffer[] = []; + const centrals: Buffer[] = []; + let offset = 0; + for (const file of files) { + const name = Buffer.from(file.path, 'utf8'); + const data = Buffer.from(file.content, 'utf8'); + const checksum = crc32(data); + const local = Buffer.alloc(30); + local.writeUInt32LE(0x04034b50, 0); + local.writeUInt16LE(20, 4); + local.writeUInt16LE(0x0800, 6); // UTF-8 names + local.writeUInt16LE(0, 8); + local.writeUInt16LE(time, 10); + local.writeUInt16LE(date, 12); + local.writeUInt32LE(checksum, 14); + local.writeUInt32LE(data.length, 18); + local.writeUInt32LE(data.length, 22); + local.writeUInt16LE(name.length, 26); + local.writeUInt16LE(0, 28); + const central = Buffer.alloc(46); + central.writeUInt32LE(0x02014b50, 0); + central.writeUInt16LE(20, 4); + central.writeUInt16LE(20, 6); + central.writeUInt16LE(0x0800, 8); + central.writeUInt16LE(0, 10); + central.writeUInt16LE(time, 12); + central.writeUInt16LE(date, 14); + central.writeUInt32LE(checksum, 16); + central.writeUInt32LE(data.length, 20); + central.writeUInt32LE(data.length, 24); + central.writeUInt16LE(name.length, 28); + central.writeUInt32LE(offset, 42); + locals.push(local, name, data); + centrals.push(central, name); + offset += local.length + name.length + data.length; + } + const directory = Buffer.concat(centrals); + const end = Buffer.alloc(22); + end.writeUInt32LE(0x06054b50, 0); + end.writeUInt16LE(files.length, 8); + end.writeUInt16LE(files.length, 10); + end.writeUInt32LE(directory.length, 12); + end.writeUInt32LE(offset, 16); + return Buffer.concat([...locals, directory, end]); +} + +const isSkillFile = (path: string) => /(^|\/)skill\.md$/i.test(path) || /\.skill\.md$/i.test(path); + +/** + * The SKILL.md files of a zip, stored or deflated, as this platform and common tools write them. + * Other files (scripts, references) are counted, not read: a skill here is its instructions. + * Encrypted, multi-disk and ZIP64 archives, and anything beyond the limits, are refused. + */ +export function readSkillArchive(archive: Buffer): { files: { path: string; content: string }[]; ignored: number } { + const bad = (reason: string) => new DomainError('INVALID_SKILL_ARCHIVE', `The zip archive ${reason}`, 400); + if (archive.length > SKILL_IMPORT_LIMITS.archiveBytes) + throw bad(`is larger than ${SKILL_IMPORT_LIMITS.archiveBytes / 1024} KiB`); + let end = -1; + for (let i = archive.length - 22; i >= Math.max(0, archive.length - 22 - 0xffff); i--) + if (archive.readUInt32LE(i) === 0x06054b50) { + end = i; + break; + } + if (end === -1) throw bad('cannot be read: it is not a zip file'); + const count = archive.readUInt16LE(end + 10); + const size = archive.readUInt32LE(end + 12); + const start = archive.readUInt32LE(end + 16); + if (archive.readUInt16LE(end + 4) !== 0 || count === 0xffff || start === 0xffffffff) + throw bad('uses multiple disks or ZIP64, which is not supported'); + if (count > SKILL_IMPORT_LIMITS.entries) throw bad(`has more than ${SKILL_IMPORT_LIMITS.entries} entries`); + if (start + size > end) throw bad('is damaged'); + const files: { path: string; content: string }[] = []; + let ignored = 0; + let total = 0; + let at = start; + for (let n = 0; n < count; n++) { + if (at + 46 > end || archive.readUInt32LE(at) !== 0x02014b50) throw bad('is damaged'); + const flags = archive.readUInt16LE(at + 8); + const method = archive.readUInt16LE(at + 10); + const checksum = archive.readUInt32LE(at + 16); + const compressed = archive.readUInt32LE(at + 20); + const uncompressed = archive.readUInt32LE(at + 24); + const nameLength = archive.readUInt16LE(at + 28); + const extraLength = archive.readUInt16LE(at + 30); + const commentLength = archive.readUInt16LE(at + 32); + const local = archive.readUInt32LE(at + 42); + const path = archive.subarray(at + 46, at + 46 + nameLength).toString('utf8'); + at += 46 + nameLength + extraLength + commentLength; + if (path.endsWith('/')) continue; + // macOS adds resource forks under __MACOSX/; they are not skills. + if (!isSkillFile(path) || path.startsWith('__MACOSX/')) { + ignored++; + continue; + } + if (flags & 1) throw bad(`is encrypted (${path})`); + if (uncompressed > SKILL_IMPORT_LIMITS.fileBytes) + throw bad(`holds ${path}, larger than ${SKILL_IMPORT_LIMITS.fileBytes / 1024} KiB`); + total += uncompressed; + if (total > SKILL_IMPORT_LIMITS.totalBytes) + throw bad(`holds more than ${SKILL_IMPORT_LIMITS.totalBytes / 1024 / 1024} MiB of skills`); + if (local + 30 > end || archive.readUInt32LE(local) !== 0x04034b50) throw bad('is damaged'); + const dataStart = local + 30 + archive.readUInt16LE(local + 26) + archive.readUInt16LE(local + 28); + if (dataStart + compressed > end) throw bad('is damaged'); + const raw = archive.subarray(dataStart, dataStart + compressed); + let data: Buffer; + if (method === 0) data = raw; + else if (method === 8) + try { + data = inflateRawSync(raw, { maxOutputLength: SKILL_IMPORT_LIMITS.fileBytes }); + } catch { + throw bad(`holds ${path}, which cannot be decompressed`); + } + else throw bad(`compresses ${path} in a way that is not supported`); + if (data.length !== uncompressed || crc32(data) !== checksum) throw bad(`holds ${path}, which is damaged`); + files.push({ path, content: data.toString('utf8') }); + if (files.length > SKILL_IMPORT_LIMITS.skills) + throw bad(`holds more than ${SKILL_IMPORT_LIMITS.skills} skills; import them in parts`); + } + return { files, ignored }; +} diff --git a/apps/api/src/domain/skills.ts b/apps/api/src/domain/skills.ts index e2c7b73..569dd08 100644 --- a/apps/api/src/domain/skills.ts +++ b/apps/api/src/domain/skills.ts @@ -1,103 +1,273 @@ -import { crc32 } from 'node:zlib'; import { z } from 'zod'; import { askClaude } from '@wishforge/runtime'; -import { SKILL_LIMIT, type PromptSkill } from '@wishforge/agent'; +import { repairLesson, selectSkills, type PromptSkill } from '@wishforge/agent'; import { DomainError, SKILL_CONTENT_LIMIT, + skillCategories, skillInput, skillName, skillUpdateInput, type Actor, type CodeReview, + type FailureSummary, type Project, type Run, type Skill, type SkillHarvest, + type SkillUsage, } from '@wishforge/contracts'; import type { Store, Transaction } from '../db/store.js'; -import { must, projectAccess, record, touch } from './control-plane.js'; +import { idempotent, must, now, projectAccess, record, terminal, touch } from './control-plane.js'; import { nativeClaudeEnabled } from './local-execution.js'; import { wishScopeOf } from './permissions.js'; import { redact, requireHuman } from './policy.js'; +import { + SKILL_IMPORT_LIMITS, + parseSkillMarkdown, + readSkillArchive, + skillMarkdown, + skillSlug, + zipFiles, + type SkillFile, +} from './skill-files.js'; +import { dispatchTenants } from '../tenants.js'; + +export { skillMarkdown, zipFiles } from './skill-files.js'; const recentlyChanged = (a: Skill, b: Skill) => b.updatedAt.localeCompare(a.updatedAt); -/** Active skills of a project, most recently changed first, as they enter prompts. */ +/** A pitfall records at most this many repaired failures, most recent first. */ +const PITFALL_ENTRIES = 8; +/** A skill remembers at most this many runs it was learned from. */ +const SOURCE_RUNS = 20; +/** A platform-maintained skill is retired after this many settled runs in a row that used it failed. */ +export const RETIRE_AFTER_FAILURES = 3; +/** A platform-maintained skill no run was given for this long, while the project kept running, is retired. */ +export const RETIRE_UNUSED_DAYS = 90; + +/** Whether the project lets the platform activate corroborated skills itself (absent: yes). */ +export const autoActivation = (project: Pick) => project.skillAutoActivation !== false; +/** Learned by the platform and not since written by a person: the platform may rewrite or retire it. */ +export const platformMaintained = (skill: Skill) => skill.createdBy === 'wishforge' && !skill.updatedBy; +/** A change to a skill's bookkeeping only: it keeps its place among the most recently changed. */ +const counted = (skill: Skill, changes: Partial): Skill => ({ + ...skill, + ...changes, + version: skill.version + 1, +}); +const lastRuns = (ids: string[], runId: string) => [...ids.filter(id => id !== runId), runId].slice(-SOURCE_RUNS); + +/** Active skills of a project as they enter prompts: most recently changed first, within the limits. */ +async function promptSkillsOf(tx: Transaction, projectId: string): Promise { + return selectSkills((await tx.list('skill', { projectId, status: 'active' })).sort(recentlyChanged)); +} export async function projectSkills(tx: Transaction, projectId: string): Promise { - return (await tx.list('skill', { projectId, status: 'active' })) - .sort(recentlyChanged) - .slice(0, SKILL_LIMIT) - .map(({ name, description, content }) => ({ name, description, content })); + return (await promptSkillsOf(tx, projectId)).map(({ name, description, content }) => ({ + name, + description, + content, + })); } -/** A skill as Claude Code and other agents read it: SKILL.md with its name and purpose up front. */ -export function skillMarkdown(skill: Pick) { - const description = skill.description.replace(/\s+/g, ' ').trim(); - return `---\nname: ${skill.name}\ndescription: ${JSON.stringify(description)}\n---\n\n${skill.content.trim()}\n`; +/** + * Notes which skills a run's implementation is given, once per run and skill: called when an + * executor takes the run at its implementation stage, just before it reads them. + */ +export async function recordSkillUse(tx: Transaction, run: Run) { + const skills = await promptSkillsOf(tx, run.projectId); + const usage = await tx.get('skill_usage', run.id); + const known = new Set(usage?.skillIds ?? []); + const fresh = skills.filter(skill => !known.has(skill.id)); + if (!fresh.length) return; + const time = now(); + for (const skill of fresh) + await tx.put('skill', counted(skill, { useCount: (skill.useCount ?? 0) + 1, lastUsedAt: time })); + const next: SkillUsage = { + ...(usage ? touch(usage) : { ...record(run.tenantId), id: run.id }), + runId: run.id, + projectId: run.projectId, + skillIds: [...known, ...fresh.map(skill => skill.id)], + }; + await tx.put('skill_usage', next); } -/** A zip archive of text files, stored without compression: the format every system opens. */ -export function zipFiles(files: { path: string; content: string }[], at = new Date()): Buffer { - const time = ((at.getHours() << 11) | (at.getMinutes() << 5) | (at.getSeconds() >> 1)) & 0xffff; - const date = (((at.getFullYear() - 1980) << 9) | ((at.getMonth() + 1) << 5) | at.getDate()) & 0xffff; - const locals: Buffer[] = []; - const centrals: Buffer[] = []; - let offset = 0; - for (const file of files) { - const name = Buffer.from(file.path, 'utf8'); - const data = Buffer.from(file.content, 'utf8'); - const checksum = crc32(data); - const local = Buffer.alloc(30); - local.writeUInt32LE(0x04034b50, 0); - local.writeUInt16LE(20, 4); - local.writeUInt16LE(0x0800, 6); // UTF-8 names - local.writeUInt16LE(0, 8); - local.writeUInt16LE(time, 10); - local.writeUInt16LE(date, 12); - local.writeUInt32LE(checksum, 14); - local.writeUInt32LE(data.length, 18); - local.writeUInt32LE(data.length, 22); - local.writeUInt16LE(name.length, 26); - local.writeUInt16LE(0, 28); - const central = Buffer.alloc(46); - central.writeUInt32LE(0x02014b50, 0); - central.writeUInt16LE(20, 4); - central.writeUInt16LE(20, 6); - central.writeUInt16LE(0x0800, 8); - central.writeUInt16LE(0, 10); - central.writeUInt16LE(time, 12); - central.writeUInt16LE(date, 14); - central.writeUInt32LE(checksum, 16); - central.writeUInt32LE(data.length, 20); - central.writeUInt32LE(data.length, 24); - central.writeUInt16LE(name.length, 28); - central.writeUInt32LE(offset, 42); - locals.push(local, name, data); - centrals.push(central, name); - offset += local.length + name.length + data.length; +/** + * Counts how a finished run that was given skills ended. A success resets each skill's failure + * streak; a failure (or a cancel after a failed check) extends it, and a platform-maintained skill + * whose streak reaches RETIRE_AFTER_FAILURES is disabled. A cancel without a failure counts for + * neither: the person changed their mind, not the skill. + */ +export async function settleSkillUsage(tx: Transaction, run: Run) { + const usage = await tx.get('skill_usage', run.id); + if (!usage || usage.outcome || !terminal(run)) return; + const outcome: NonNullable = + run.status === 'succeeded' + ? 'succeeded' + : run.status === 'failed' || run.repairCount > 0 || run.lastFailure + ? 'failed' + : 'neutral'; + await tx.put('skill_usage', { ...touch(usage), outcome }); + if (outcome === 'neutral') return; + const retired: Skill[] = []; + for (const id of usage.skillIds) { + const skill = await tx.get('skill', id); + if (!skill) continue; + let next = + outcome === 'succeeded' + ? counted(skill, { successCount: (skill.successCount ?? 0) + 1, failureStreak: 0 }) + : counted(skill, { + failureCount: (skill.failureCount ?? 0) + 1, + failureStreak: (skill.failureStreak ?? 0) + 1, + }); + if ( + outcome === 'failed' && + next.status === 'active' && + platformMaintained(next) && + (next.failureStreak ?? 0) >= RETIRE_AFTER_FAILURES + ) { + next = { ...touch(next), status: 'disabled', retiredAt: now(), retiredReason: 'failing' }; + retired.push(next); + } + await tx.put('skill', next); } - const directory = Buffer.concat(centrals); - const end = Buffer.alloc(22); - end.writeUInt32LE(0x06054b50, 0); - end.writeUInt16LE(files.length, 8); - end.writeUInt16LE(files.length, 10); - end.writeUInt32LE(directory.length, 12); - end.writeUInt32LE(offset, 16); - return Buffer.concat([...locals, directory, end]); + if (retired.length) + await tx.event( + run.id, + 'skill.retired', + `已停用 ${retired.map(skill => skill.name).join(', ')}:最近 ${RETIRE_AFTER_FAILURES} 次用到它的运行都失败了。`, + { skillIds: retired.map(skill => skill.id), reason: 'failing' }, + ); } -export const HARVEST_RULES = `你是一名资深工程师,负责为一个软件项目沉淀"技能"(skill):以后在这个项目里做类似工作时,编码 Agent 可以直接照做的、可复用的做法。你会拿到一次已完成的工作记录(需求、验收标准、实现总结、改动的文件、遇到的失败和审核意见)以及项目里已有的技能。 +/** + * What identifies a failure across runs: the failing command, or the conflicting or out-of-scope + * files. The same failure in a later run updates the same pitfall instead of adding another. + */ +export function failureSignature(failure: FailureSummary): string { + const words = (text: string) => text.toLowerCase().split(/\s+/).filter(Boolean); + if (failure.kind === 'integration_conflict' || failure.kind === 'scope') + return `${failure.kind}:${[...new Set(words(failure.outputTail))].sort().join(' ')}`.slice(0, 500); + return `${failure.kind}:${words((failure.argv ?? []).join(' ')).join(' ')}`.slice(0, 500); +} + +const PITFALL_HEADER = '这个项目之前的运行在这里失败过,修复轮修好了它。最近的在前:'; + +/** The name and purpose of a pitfall about a failure. */ +function pitfallOf(failure: FailureSummary): { name: string; description: string } { + const command = `\`${failure.argv?.join(' ') ?? 'verification'}\``; + const files = failure.outputTail.split(/\s+/).filter(Boolean); + const subject = + failure.kind === 'integration_conflict' + ? `merge-conflict ${files[0] ?? ''}` + : failure.kind === 'scope' + ? 'frontend-scope' + : // Executables by name, not by where they are installed. + `${failure.kind === 'install' ? 'install ' : ''}${failure.argv?.map(word => word.split('/').pop()).join(' ') ?? 'verification'}`; + const description = + failure.kind === 'integration_conflict' + ? `改动 ${files.slice(0, 5).join(', ')} 时:之前合入目标分支在这里冲突过,以及当时如何解决。` + : failure.kind === 'scope' + ? '只改前端的愿望:之前误改过后端文件,以及如何让改动留在前端。' + : failure.kind === 'install' + ? `改依赖清单之前:之前的运行用 ${command} 安装依赖失败过,以及怎么修好的。` + : `完成 ${command} 会检查的改动之前:之前的运行在这里怎么失败的,又是怎么修好的。`; + return { + name: `pitfall-${skillSlug(subject)}`.slice(0, 64).replace(/-+$/, ''), + description: description.slice(0, 500), + }; +} + +/** A pitfall's content with a new entry first: rebuilt when the platform keeps it, else prepended. */ +function withEntry(skill: Skill | undefined, entry: string) { + const line = `- ${entry}`; + if (!skill) return `${PITFALL_HEADER}\n\n${line}`; + if (!platformMaintained(skill)) return `${line}\n\n${skill.content}`.slice(0, SKILL_CONTENT_LIMIT); + const entries = skill.content.split('\n').filter(item => item.startsWith('- ')); + return `${PITFALL_HEADER}\n\n${[line, ...entries].slice(0, PITFALL_ENTRIES).join('\n')}`.slice( + 0, + SKILL_CONTENT_LIMIT, + ); +} + +/** A name the project does not use yet: the name itself, or with the next free number. */ +function freeName(name: string, taken: Set) { + if (!taken.has(name)) return name; + for (let n = 2; ; n++) { + const suffix = `-${n}`; + const candidate = `${name.slice(0, 64 - suffix.length).replace(/-+$/, '')}${suffix}`; + if (!taken.has(candidate)) return candidate; + } +} + +/** + * What a run that ended well teaches the project: its skills' counts include it, and when a + * repair round fixed a failure on the way, that failure becomes (or updates) a pitfall skill. + * The pitfall is active right away where the project lets the platform activate skills, since + * it is drawn from a verified failure and a verified fix; otherwise it waits for a person. + */ +export async function learnFromRun(tx: Transaction, run: Run) { + await settleSkillUsage(tx, run); + if (!run.repairCount || !run.lastFailure) return; + const project = await must(tx, 'project', run.projectId); + const skills = await tx.list('skill', { projectId: run.projectId }); + const signature = failureSignature(run.lastFailure); + const entry = redact(repairLesson(run.lastFailure, run.implementationSummary)); + const existing = skills.find(skill => skill.category === 'pitfall' && skill.signature === signature); + if (existing?.sourceRunIds.includes(run.id)) return; + const auto = autoActivation(project); + if (existing) { + const activate = existing.status === 'proposed' && auto; + const next: Skill = { + ...touch(existing), + content: withEntry(existing, entry), + sourceRunIds: lastRuns(existing.sourceRunIds, run.id), + ...(activate ? { status: 'active' as const } : {}), + }; + await tx.put('skill', next); + await tx.event( + run.id, + activate ? 'skill.activated' : 'skill.updated', + `已用这次修复好的失败${activate ? '启用' : '更新'}踩坑技能 ${next.name}${next.status === 'disabled' ? ',它仍保持停用' : ''}。`, + { skillId: next.id }, + ); + return; + } + const pitfall = pitfallOf(run.lastFailure); + const skill: Skill = { + ...record(run.tenantId), + projectId: run.projectId, + name: freeName(pitfall.name, new Set(skills.map(item => item.name))), + description: redact(pitfall.description), + content: withEntry(undefined, entry), + category: 'pitfall', + signature, + status: auto ? 'active' : 'proposed', + sourceRunIds: [run.id], + createdBy: 'wishforge', + }; + await tx.put('skill', skill); + await tx.event( + run.id, + auto ? 'skill.activated' : 'skill.proposed', + `已把修复好的失败记为踩坑技能 ${skill.name}${auto ? ',之后的运行都会知道' : ',等待确认'}。`, + { skillId: skill.id, skillIds: [skill.id] }, + ); +} + +export const HARVEST_RULES = `你是一名资深工程师,负责为一个软件项目沉淀"技能"(skill):以后在这个项目里做类似工作时,编码 Agent 可以直接照做的、可复用的做法。你会拿到一次已完成的工作记录(需求、验收标准、实现总结、改动的文件、遇到的失败和审核意见)以及项目里已有的技能(category 为 workflow 是做法,pitfall 是踩过的坑和修法,convention 是项目约定;status 为 disabled 的是被停用的)。 1. 只提炼以后还会用到的、对这个项目具体有用的做法:例如这个项目里某类改动该改哪些地方、按什么步骤、要注意什么坑、怎么验证。不要把这一次的具体改动本身写成技能。 -2. 通用常识(写测试、读代码、遵守代码风格之类)不算技能。已有技能已经覆盖的不要重复。没有值得沉淀的就返回空数组,这完全正常。 -3. 最多返回 2 个。name 用小写英文单词和连字符,例如 lazy-load-page-css;description 用一两句话写"什么时候用它";content 用 Markdown 写做法:适用场景、步骤、注意事项、如何验证,具体到这个项目的目录、文件和命令,不超过 3000 字。 -4. 只写工作记录里有依据的内容,不要编造文件、命令或结论。 -5. 用和需求相同的语言写 description 和 content。`; +2. 通用常识(写测试、读代码、遵守代码风格之类)不算技能。已有技能已经覆盖的不要重复,被停用的也不要再提。没有值得沉淀的就返回空数组,这完全正常。 +3. 这次的工作让某个已有技能需要补充或修正时,不要新建:把 updates 设为那个技能的 name,name 也用它,content 写合并后的完整做法(保留原有仍然成立的内容)。全新的技能不要填 updates。 +4. 最多返回 2 个。name 用小写英文单词和连字符,例如 lazy-load-page-css;description 用一两句话写"什么时候用它";content 用 Markdown 写做法:适用场景、步骤、注意事项、如何验证,具体到这个项目的目录、文件和命令,不超过 3000 字。 +5. 只写工作记录里有依据的内容,不要编造文件、命令或结论。 +6. 用和需求相同的语言写 description 和 content。`; const proposal = z .object({ name: skillName, description: z.string().trim().min(1).max(500), content: z.string().trim().min(1).max(8000), + updates: z.string().trim().max(64).optional(), }) .strip(); const harvestSchema = { @@ -113,6 +283,7 @@ const harvestSchema = { name: { type: 'string', description: '小写英文单词和连字符' }, description: { type: 'string', description: '什么时候用它,一两句话' }, content: { type: 'string', description: 'Markdown 写的做法:适用场景、步骤、注意事项、如何验证' }, + updates: { type: 'string', description: '补充已有技能时填它的 name;新技能不填' }, }, required: ['name', 'description', 'content'], additionalProperties: false, @@ -127,20 +298,58 @@ function changedFiles(events: { type: string; message: string }[]) { const files = new Set(); for (const event of events) if (event.type === 'provider.file_change') { - const match = /^Changed (.+)$/.exec(event.message); + const match = /^(?:Changed |改动了:)(.+)$/.exec(event.message); const file = match?.[1]?.replace(/^.*\/executor\/[^/]+\/[^/]+-a\d+\//, ''); if (file) files.add(file); } return [...files].slice(0, 100); } +const listQuery = z + .object({ + projectId: z.string().min(1).max(128).optional(), + status: z.enum(['proposed', 'active', 'disabled']).optional(), + category: z.enum(skillCategories).optional(), + q: z.string().trim().max(200).optional(), + }) + .strict(); +const copyInput = z + .object({ skillIds: z.array(z.string().min(1).max(128)).min(1).max(100), projectId: z.string().min(1).max(128) }) + .strict(); +const importInput = z + .object({ + /** SKILL.md files as text, each with its file name. */ + files: z + .array(z.object({ path: z.string().min(1).max(300), content: z.string().max(SKILL_IMPORT_LIMITS.fileBytes) })) + .min(1) + .max(SKILL_IMPORT_LIMITS.skills) + .optional(), + /** A zip, base64-encoded, as the project export writes it. */ + archive: z + .string() + .max(Math.ceil((SKILL_IMPORT_LIMITS.archiveBytes * 4) / 3) + 4) + .optional(), + /** Imported skills are active unless they should wait for a confirmation first. */ + status: z.enum(['active', 'proposed']).default('active'), + }) + .strict() + .refine(value => Boolean(value.files) !== Boolean(value.archive), 'Provide either SKILL.md files or a zip archive'); +/** What adding skills to a project did: added (perhaps under another name), or left out and why. */ +export interface SkillTransfer { + created: Skill[]; + skipped: { name: string; source: string; reason: 'identical' | 'invalid'; detail?: string }[]; + /** Files in an archive that were not SKILL.md. */ + ignored: number; +} + /** At most this many proposals are worked out at once on the deployment's Claude account. */ const CONCURRENCY = 1; let running = 0; /** - * A project's skills: proposed by the platform from finished runs, confirmed, edited, disabled, - * deleted and exported by the people who wish for the project. + * Project skills, the one place a project's know-how lives: workflows the platform proposes from + * finished runs, pitfalls it records from repaired failures, conventions people write. Whoever may + * wish for a project confirms, edits, disables, deletes, copies, imports and exports them. */ export class Skills { constructor( @@ -154,6 +363,32 @@ export class Skills { return (await tx.list('skill', { projectId })).sort(recentlyChanged); }); } + /** Skills of every project the person may see, filtered as the knowledge base page asks. */ + async search(actor: Actor, query: unknown) { + const filter = listQuery.parse(query); + return this.store.read(actor.tenantId, async tx => { + if (filter.projectId) await projectAccess(tx, actor, filter.projectId); + const visible = new Set( + (await tx.list('project')) + .filter(p => ['owner', 'admin'].includes(actor.role) || p.memberIds.includes(actor.userId)) + .map(p => p.id), + ); + const words = filter.q?.toLowerCase(); + return ( + await tx.list('skill', { + ...(filter.projectId ? { projectId: filter.projectId } : {}), + ...(filter.status ? { status: filter.status } : {}), + }) + ) + .filter( + skill => + visible.has(skill.projectId) && + (!filter.category || (skill.category ?? 'workflow') === filter.category) && + (!words || [skill.name, skill.description, skill.content].some(text => text.toLowerCase().includes(words))), + ) + .sort(recentlyChanged); + }); + } async create(actor: Actor, projectId: string, input: unknown) { const data = skillInput.parse(input); return this.store.transaction(actor.tenantId, async tx => { @@ -166,6 +401,7 @@ export class Skills { name: data.name, description: redact(data.description), content: redact(data.content), + category: data.category, status: 'active', sourceRunIds: [], createdBy: actor.userId, @@ -174,21 +410,32 @@ export class Skills { return skill; }); } - /** Edits a skill; confirming a proposal is setting it active. */ + /** + * Edits a skill; confirming a proposal is setting it active. Changing what it says makes it a + * person's: the platform no longer rewrites or retires it. Enabling it again starts its failure + * streak afresh. + */ async update(actor: Actor, id: string, input: unknown) { const data = skillUpdateInput.parse(input); return this.store.transaction(actor.tenantId, async tx => { const skill = await must(tx, 'skill', id); this.authorize(actor, await projectAccess(tx, actor, skill.projectId)); if (data.name && data.name !== skill.name) await this.uniqueName(tx, skill.projectId, data.name, id); + const edited = Boolean(data.name || data.description || data.content || data.category); const next: Skill = { ...touch(skill), ...(data.name ? { name: data.name } : {}), ...(data.description ? { description: redact(data.description) } : {}), ...(data.content ? { content: redact(data.content) } : {}), + ...(data.category ? { category: data.category } : {}), ...(data.status ? { status: data.status } : {}), - updatedBy: actor.userId, + ...(edited ? { updatedBy: actor.userId } : {}), }; + if (data.status === 'active' && skill.status !== 'active') { + delete next.retiredAt; + delete next.retiredReason; + next.failureStreak = 0; + } await tx.put('skill', next); return next; }); @@ -211,7 +458,7 @@ export class Skills { } /** * The project's skills, proposals left out unless asked for, as a zip with a directory per skill - * holding its SKILL.md: what .claude/skills/ expects. + * holding its SKILL.md: what .claude/skills/ expects, and what import reads back. */ async exportAll(actor: Actor, projectId: string, includeProposed = false) { return this.store.read(actor.tenantId, async tx => { @@ -220,17 +467,125 @@ export class Skills { .filter(skill => skill.status === 'active' || (includeProposed && skill.status === 'proposed')) .sort((a, b) => a.name.localeCompare(b.name)); if (!skills.length) throw new DomainError('NO_SKILLS', 'This project has no skills to export', 404); - const slug = project.name - .normalize('NFKD') - .replace(/[^A-Za-z0-9]+/g, '-') - .replace(/^-|-$/g, '') - .toLowerCase(); return { - filename: `${slug || 'project'}-skills.zip`, + filename: `${skillSlug(project.name) || 'project'}-skills.zip`, content: zipFiles(skills.map(skill => ({ path: `${skill.name}/SKILL.md`, content: skillMarkdown(skill) }))), }; }); } + /** + * Adds skills from SKILL.md files or a zip of them (as export writes it) to a project. A skill + * the project already has word for word (description and content) is skipped, so importing the + * same files twice adds nothing; one whose name a different skill holds is added with the next + * free number. + */ + async importFiles(actor: Actor, projectId: string, input: unknown, key?: string): Promise { + const data = importInput.parse(input); + let sources: { path: string; content: string }[]; + let ignored = 0; + if (data.archive) { + const archive = Buffer.from(data.archive, 'base64'); + ({ files: sources, ignored } = readSkillArchive(archive)); + } else sources = data.files!; + const skipped: SkillTransfer['skipped'] = []; + const parsed: SkillFile[] = []; + for (const source of sources) + try { + parsed.push(parseSkillMarkdown(source.content, source.path)); + } catch (error) { + skipped.push({ + name: source.path, + source: source.path, + reason: 'invalid', + detail: error instanceof Error ? error.message : 'unreadable', + }); + } + if (!parsed.length) + throw new DomainError( + 'NO_SKILLS', + skipped.length ? `没有能读取的技能:${skipped[0]!.detail}` : '压缩包里没有 SKILL.md 文件', + 400, + ); + return this.store.transaction(actor.tenantId, async tx => { + this.authorize(actor, await projectAccess(tx, actor, projectId)); + return idempotent(tx, key && `skills-import:${actor.userId}:${projectId}:${key}`, data, async () => { + const result = await this.addSkills(tx, actor, projectId, parsed, () => data.status); + return { ...result, skipped: [...skipped, ...result.skipped], ignored }; + }); + }); + } + /** + * Copies skills to another project the person may shape, keeping what they say and whether they + * are active, but not their counts or the runs they came from. Collisions as for an import. + */ + async copy(actor: Actor, input: unknown, key?: string): Promise { + const data = copyInput.parse(input); + return this.store.transaction(actor.tenantId, async tx => { + this.authorize(actor, await projectAccess(tx, actor, data.projectId)); + return idempotent(tx, key && `skills-copy:${actor.userId}:${key}`, data, async () => { + const originals: Skill[] = []; + for (const id of new Set(data.skillIds)) { + const skill = await must(tx, 'skill', id); + await projectAccess(tx, actor, skill.projectId); + originals.push(skill); + } + const files = originals.map(skill => ({ + name: skill.name, + description: skill.description, + content: skill.content, + category: skill.category ?? 'workflow', + source: skill.id, + signature: skill.signature, + })); + const status = new Map(originals.map(skill => [skill.id, skill.status])); + return { + ...(await this.addSkills(tx, actor, data.projectId, files, file => status.get(file.source)!)), + ignored: 0, + }; + }); + }); + } + private async addSkills( + tx: Transaction, + actor: Actor, + projectId: string, + files: (SkillFile & { signature?: string })[], + status: (file: SkillFile) => Skill['status'], + ): Promise> { + const existing = await tx.list('skill', { projectId }); + const taken = new Set(existing.map(skill => skill.name)); + const created: Skill[] = []; + const skipped: SkillTransfer['skipped'] = []; + for (const file of files) { + const description = redact(file.description); + const content = redact(file.content); + // Saying exactly the same under whatever name: already there. + const same = [...existing, ...created].find( + skill => skill.description === description && skill.content === content, + ); + if (same) { + skipped.push({ name: file.name, source: file.source, reason: 'identical' }); + continue; + } + const name = freeName(file.name, taken); + taken.add(name); + const skill: Skill = { + ...record(actor.tenantId), + projectId, + name, + description, + content, + category: file.category, + ...(file.signature ? { signature: file.signature } : {}), + status: status(file), + sourceRunIds: [], + createdBy: actor.userId, + }; + await tx.put('skill', skill); + created.push(skill); + } + return { created, skipped }; + } available(tenantId: string) { return nativeClaudeEnabled(this.env, tenantId); } @@ -254,8 +609,12 @@ export class Skills { return this.harvest(actor.tenantId, runId); } /** - * Looks for skills in one run and stores what it finds as proposals; records that it looked, so - * the background harvest does not ask again. + * Looks for skills in one run. A proposal that names an existing skill (or is called like one) + * updates it instead of adding another: a proposal is rewritten, as is an active skill only the + * platform maintains where the project lets it activate skills; a skill a person wrote or + * disabled just records the run. A proposal seen in two succeeded runs becomes active where the + * project allows it. Records that it looked, so the background harvest does not ask again. + * Returns the skills it added or changed. */ async harvest(tenantId: string, runId: string): Promise { running++; @@ -285,9 +644,13 @@ export class Skills { ? { kind: run.lastFailure.kind, outputTail: run.lastFailure.outputTail.slice(-2000) } : undefined, reviewComments: reviews.flatMap(review => (review.comment ? [review.comment] : [])).slice(0, 5), - existingSkills: existing - .filter(skill => skill.status !== 'disabled') - .map(skill => ({ name: skill.name, description: skill.description, content: skill.content.slice(0, 1500) })), + existingSkills: existing.sort(recentlyChanged).map(skill => ({ + name: skill.name, + category: skill.category ?? 'workflow', + status: skill.status, + description: skill.description, + ...(skill.status === 'disabled' ? {} : { content: skill.content.slice(0, 1500) }), + })), }; const output = await this.ask({ binary: this.env.WF_CLAUDE_BIN!, @@ -307,35 +670,70 @@ export class Skills { }) .slice(0, 2); return await this.store.transaction(tenantId, async tx => { - const names = new Set((await tx.list('skill', { projectId: run.projectId })).map(skill => skill.name)); + const project = await must(tx, 'project', run.projectId); + const auto = autoActivation(project); + const skills = await tx.list('skill', { projectId: run.projectId }); + const byName = new Map(skills.map(skill => [skill.name, skill])); + const succeeded = async (ids: string[]) => { + let count = 0; + for (const id of ids) if ((await tx.get('run', id))?.status === 'succeeded') count++; + return count; + }; const created: Skill[] = []; + const updated: Skill[] = []; + const activated: Skill[] = []; for (const item of proposals) { - // A name the project uses already gets the next free number. - let name = item.name; - for (let n = 2; names.has(name); n++) name = `${item.name}-${n}`; - names.add(name); + const description = redact(item.description); + const content = redact(item.content).slice(0, SKILL_CONTENT_LIMIT); + const target = (item.updates && byName.get(item.updates)) || byName.get(item.name); + if (target) { + const rewrite = + target.status === 'proposed' || (target.status === 'active' && auto && platformMaintained(target)); + // Asked about the same run again: only new words are news. + const unchanged = !rewrite || (target.content === content && target.description === description); + if (target.sourceRunIds.includes(run.id) && unchanged) continue; + const sourceRunIds = lastRuns(target.sourceRunIds, run.id); + const activate = target.status === 'proposed' && auto && (await succeeded(sourceRunIds)) >= 2; + const next: Skill = rewrite + ? { ...touch(target), description, content, sourceRunIds } + : counted(target, { sourceRunIds }); + if (activate) next.status = 'active'; + await tx.put('skill', next); + byName.set(next.name, next); + (activate ? activated : updated).push(next); + continue; + } const skill: Skill = { ...record(tenantId), projectId: run.projectId, - name, - description: redact(item.description), - content: redact(item.content).slice(0, SKILL_CONTENT_LIMIT), + name: freeName(item.name, new Set(byName.keys())), + description, + content, + category: 'workflow', status: 'proposed', sourceRunIds: [run.id], createdBy: 'wishforge', }; await tx.put('skill', skill); + byName.set(skill.name, skill); created.push(skill); } - await this.recordHarvest(tx, run, { status: 'done', skillIds: created.map(skill => skill.id) }); + const changed = [...created, ...updated, ...activated]; + await this.recordHarvest(tx, run, { status: 'done', skillIds: changed.map(skill => skill.id) }); + const names = (list: Skill[]) => list.map(skill => skill.name).join(', '); if (created.length) - await tx.event( - run.id, - 'skill.proposed', - `Proposed ${created.length} project skill${created.length > 1 ? 's' : ''}: ${created.map(skill => skill.name).join(', ')}`, - { skillIds: created.map(skill => skill.id) }, - ); - return created; + await tx.event(run.id, 'skill.proposed', `提议了 ${created.length} 个项目技能:${names(created)}`, { + skillIds: created.map(skill => skill.id), + }); + if (updated.length) + await tx.event(run.id, 'skill.updated', `已用这次运行更新项目技能:${names(updated)}`, { + skillIds: updated.map(skill => skill.id), + }); + if (activated.length) + await tx.event(run.id, 'skill.activated', `已启用 ${names(activated)}:又一次成功的运行再次提议了它。`, { + skillIds: activated.map(skill => skill.id), + }); + return changed; }); } catch (error) { await this.store @@ -387,6 +785,38 @@ export class Skills { await this.harvest(tenantId, next.id); return next.id; } + /** + * Keeps the skills honest: counts the outcome of every finished run that was given skills (a + * success counts when it happens; failures and cancels are found here), and retires + * platform-maintained skills no run was given for RETIRE_UNUSED_DAYS while their project kept + * running, crowded out by newer ones. Returns the skills it retired. + */ + async maintain(tenantId: string, at = new Date()): Promise { + return this.store.transaction(tenantId, async tx => { + const usages = await tx.list('skill_usage'); + // Oldest first, so a failure streak ends on the run that completed it. + for (const usage of usages.filter(item => !item.outcome).reverse()) { + const run = await tx.get('run', usage.runId); + if (!run) await tx.put('skill_usage', { ...touch(usage), outcome: 'neutral' }); + else await settleSkillUsage(tx, run); + } + const cutoff = new Date(at.getTime() - RETIRE_UNUSED_DAYS * 86_400_000).toISOString(); + const live = new Set(usages.filter(usage => usage.createdAt >= cutoff).map(usage => usage.projectId)); + const retired: Skill[] = []; + for (const skill of await tx.list('skill', { status: 'active' })) + if (platformMaintained(skill) && live.has(skill.projectId) && (skill.lastUsedAt ?? skill.updatedAt) < cutoff) { + const next: Skill = { + ...touch(skill), + status: 'disabled', + retiredAt: at.toISOString(), + retiredReason: 'stale', + }; + await tx.put('skill', next); + retired.push(next); + } + return retired; + }); + } /** * Every run that succeeded is looked at once, oldest first, one at a time; a failed look is tried * again a few times. Runs only where the deployment's Claude account serves its tenant. @@ -410,6 +840,28 @@ export class Skills { timer.unref(); return () => clearInterval(timer); } + /** Counts finished runs and retires stale skills for every tenant this deployment serves. */ + startMaintenance(intervalMs = 10 * 60_000) { + const tenants = [ + ...new Set([...(this.env.WF_TENANT_ID ? [this.env.WF_TENANT_ID] : []), ...dispatchTenants(this.env)]), + ]; + if (!tenants.length) return () => undefined; + let busy = false; + const tick = async () => { + if (busy) return; + busy = true; + try { + for (const tenantId of tenants) await this.maintain(tenantId); + } catch (error) { + console.error(`[skills] ${error instanceof Error ? error.message : 'maintenance failed'}`); + } finally { + busy = false; + } + }; + const timer = setInterval(() => void tick(), intervalMs); + timer.unref(); + return () => clearInterval(timer); + } /** Whoever may wish for the project may shape the skills its later wishes follow. */ private authorize(actor: Actor, project: Project) { requireHuman(actor); diff --git a/apps/api/src/domain/wish-refiner.ts b/apps/api/src/domain/wish-refiner.ts index 0661ed1..eff4e1e 100644 --- a/apps/api/src/domain/wish-refiner.ts +++ b/apps/api/src/domain/wish-refiner.ts @@ -11,6 +11,7 @@ import type { Store } from '../db/store.js'; import { CredentialVault } from './connections.js'; import { copilotModel } from './copilot-model.js'; import { projectAccess } from './control-plane.js'; +import { storedExecutorSettings } from './executor-settings.js'; import { nativeClaudeEnabled } from './local-execution.js'; import { requireRole } from './policy.js'; @@ -104,10 +105,16 @@ const CONCURRENCY = 2; /** Long enough for a model to finish the structured JSON; the console proxy waits for both attempts. */ const ASK_TIMEOUT_MS = 180_000; const PRO = 'deepseek-pro@latest'; -/** The small model first; the coding model if that one times out or returns JSON that does not parse. */ -function askModels(env: NodeJS.ProcessEnv): string[] { - const primary = copilotModel(env); - const fallback = env.WF_CLAUDE_ASK_FALLBACK_MODEL ?? PRO; +/** + * The small model first; the coding model if that one times out or returns JSON that does not + * parse. The tenant's Claude Code settings come before the operator's. + */ +export function askModels( + env: NodeJS.ProcessEnv, + tenant: { askModel?: string; askFallbackModel?: string } = {}, +): string[] { + const primary = tenant.askModel || copilotModel(env); + const fallback = tenant.askFallbackModel || (env.WF_CLAUDE_ASK_FALLBACK_MODEL ?? PRO); return [...new Set([primary, fallback].filter(Boolean))]; } let running = 0; @@ -158,7 +165,10 @@ export class WishRefiner { async refine(actor: Actor, projectId: string, input: unknown) { requireRole(actor, ['owner', 'admin', 'developer']); const draft = wishRefinementInput.parse(input); - const project = await this.store.read(actor.tenantId, tx => projectAccess(tx, actor, projectId)); + const [project, settings] = await this.store.read( + actor.tenantId, + async tx => [await projectAccess(tx, actor, projectId), await storedExecutorSettings(tx, 'claude-code')] as const, + ); if (!(await this.available(actor.tenantId))) throw new DomainError( 'REFINER_UNAVAILABLE', @@ -192,7 +202,7 @@ export class WishRefiner { timeoutMs: ASK_TIMEOUT_MS, ...(credentialEnv ? { credentialEnv } : {}), }; - const models = askModels(this.env); + const models = askModels(this.env, settings); let failure: unknown; for (const model of models) { try { diff --git a/apps/api/src/domain/wish-report.ts b/apps/api/src/domain/wish-report.ts index cfd4822..875fc1b 100644 --- a/apps/api/src/domain/wish-report.ts +++ b/apps/api/src/domain/wish-report.ts @@ -12,6 +12,7 @@ import { import type { Store } from '../db/store.js'; import { must, projectAccess } from './control-plane.js'; import { redact } from './policy.js'; +import { changedPathsOf } from './provider-events.js'; const STAGES: Record = { clarify: '澄清', @@ -188,7 +189,10 @@ function runSection(index: number, { run, events, evidence, reviews, releases, c ...new Set( events .filter(event => event.type === 'provider.file_change') - .map(event => workspacePath(event.message.replace(/^Changed /, ''))), + .flatMap(event => { + const paths = changedPathsOf(event.message); + return paths ? [workspacePath(paths)] : []; + }), ), ]; if (files.length) lines.push('#### Agent 改动的文件', files.map(file => `- \`${file}\``).join('\n')); diff --git a/apps/api/src/domain/workspace-git.ts b/apps/api/src/domain/workspace-git.ts deleted file mode 100644 index e304fc1..0000000 --- a/apps/api/src/domain/workspace-git.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { DomainError, type Actor, type Workspace } from '@wishforge/contracts'; -import type { Authenticator } from '../auth.js'; -import type { Store } from '../db/store.js'; -import { must, projectAccess } from './control-plane.js'; -import { GitStorage } from './git-storage.js'; -import { requireHuman, requireRole } from './policy.js'; - -/** Who commits from the IDE: the person's own name and email when their sign-in carries them. */ -export function commitAuthor(actor: Actor) { - const local = actor.userId.replace(/[^A-Za-z0-9._-]+/g, '-').slice(0, 64) || 'user'; - return { name: actor.displayName ?? actor.userId, email: actor.email ?? `${local}@users.wishforge.invalid` }; -} - -/** - * The IDE gateway asks for the repository credential of a workspace on behalf of a person - * with an open editing session; their membership and role are checked again every time. - */ -export class WorkspaceGit { - constructor( - private store: Store, - private auth: Authenticator, - private env = process.env, - private fetcher: typeof fetch = fetch, - ) {} - async credential(tenantId: string, workspaceId: string, userId: string) { - const user = await this.auth.sessionUser(tenantId, userId); - requireHuman(user); - requireRole(user, ['owner', 'admin', 'developer']); - const { workspace, project } = await this.store.read(tenantId, async tx => { - const workspace = await must(tx, 'workspace', workspaceId); - return { workspace, project: await projectAccess(tx, user, workspace.projectId) }; - }); - if (workspace.status !== 'ready') - throw new DomainError('WORKSPACE_NOT_READY', 'Workspace has not been provisioned', 503); - const credential = await new GitStorage(this.env, this.fetcher).workspaceCredential(project); - return { - projectId: project.id, - projectName: project.name, - repositoryUrl: project.repositoryUrl!, - branch: project.targetBranch, - token: credential.token, - expiresAt: credential.expiresAt, - }; - } -} diff --git a/apps/api/src/domain/workspace-launch.ts b/apps/api/src/domain/workspace-launch.ts deleted file mode 100644 index 39cbd80..0000000 --- a/apps/api/src/domain/workspace-launch.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { DomainError, type Actor, type Workspace } from '@wishforge/contracts'; -import type { Store } from '../db/store.js'; -import { must, projectAccess } from './control-plane.js'; -import { requireHuman, requireRole } from './policy.js'; -import { resolveGatewayTarget, validateGatewayLaunch } from './gateway-target.js'; -export class WorkspaceLaunch { - constructor( - private store: Store, - private env = process.env, - private fetcher: typeof fetch = fetch, - ) {} - async launch(actor: Actor, id: string, authorization: string) { - requireHuman(actor); - requireRole(actor, ['owner', 'admin', 'developer']); - await this.store.transaction(actor.tenantId, async tx => { - const workspace = await must(tx, 'workspace', id); - await projectAccess(tx, actor, String(workspace.projectId)); - if (workspace.status !== 'ready' || !workspace.upstreamUrl) - throw new DomainError('WORKSPACE_NOT_READY', 'Workspace is not ready', 503); - }); - const target = await resolveGatewayTarget(this.env, actor.tenantId); - if (!target) throw new DomainError('GATEWAY_UNCONFIGURED', 'No IDE gateway is configured for this tenant', 503); - const response = await this.fetcher(new URL('/launch', target.internalUrl), { - method: 'POST', - headers: { authorization, 'content-type': 'application/json' }, - body: JSON.stringify({ workspaceId: id }), - redirect: 'error', - signal: AbortSignal.timeout(15000), - }).catch(() => { - throw new DomainError('GATEWAY_UNAVAILABLE', 'Tenant IDE gateway is unavailable', 503); - }); - if (!response.ok) - throw new DomainError( - 'IDE_LAUNCH_DENIED', - 'Tenant gateway denied this interactive workspace session', - [401, 403, 404].includes(response.status) ? response.status : 503, - ); - return validateGatewayLaunch(target, await response.json()); - } -} diff --git a/apps/api/src/domain/workspace-lifecycle.ts b/apps/api/src/domain/workspace-lifecycle.ts deleted file mode 100644 index 5e3c988..0000000 --- a/apps/api/src/domain/workspace-lifecycle.ts +++ /dev/null @@ -1,245 +0,0 @@ -import { resolveGatewayTarget } from './gateway-target.js'; -import { resolveProvisionerTarget } from './provisioner-target.js'; -import { randomUUID } from 'node:crypto'; -import { - DomainError, - type Actor, - type Workspace, - type WorkspaceLifecycleOperation as Lifecycle, -} from '@wishforge/contracts'; -import type { OutboxItem, Store, Transaction } from '../db/store.js'; -import { idempotent, must, projectAccess, touch } from './control-plane.js'; -import { requireHuman, requireRole } from './policy.js'; - -export const WORKSPACE_IDLE_MS = 30 * 60_000; -interface GatewayActivity { - workspaceId: string; - known: boolean; - gatewayConnections: number; -} - -/** - * Pause scales a provisioner-managed IDE workspace to zero; files persist on its - * volume, unsaved editor buffers do not. Idle workspaces (no gateway connection - * and no authorized activity for 30 minutes) are paused automatically. - */ -export class WorkspaceLifecycle { - constructor( - private store: Store, - private env = process.env, - private fetcher: typeof fetch = fetch, - ) {} - - private async access(tx: Transaction, actor: Actor, id: string) { - requireHuman(actor); - requireRole(actor, ['owner', 'admin', 'developer']); - const currentRole = await tx.membership(actor.userId); - if (!currentRole || !['owner', 'admin', 'developer'].includes(currentRole)) - throw new DomainError('FORBIDDEN', 'Workspace permission was revoked', 403); - const workspace = await must(tx, 'workspace', id); - await projectAccess(tx, { ...actor, role: currentRole }, String(workspace.projectId)); - return workspace; - } - private safe(w: Workspace) { - return { id: w.id, status: w.status, lifecycle: w.lifecycle, reason: w.reason, lastActivityAt: w.lastActivityAt }; - } - private async provisioner(tenantId: string) { - const provisioner = await resolveProvisionerTarget(this.env, tenantId); - if (!provisioner) - throw new DomainError( - 'WORKSPACE_LIFECYCLE_UNCONFIGURED', - 'A scoped workspace provisioner is required for this tenant', - 503, - ); - return provisioner; - } - - async manual(actor: Actor, id: string, action: 'pause' | 'resume', key: string) { - if (!key || key.length < 8 || key.length > 200) - throw new DomainError('IDEMPOTENCY_REQUIRED', 'Provide an Idempotency-Key of 8–200 characters', 400); - await this.provisioner(actor.tenantId); - const request = { workspaceId: id, action }; - return this.store.transaction(actor.tenantId, async tx => { - const workspace = await this.access(tx, actor, id); - return idempotent(tx, key, request, async () => { - if (workspace.managedBy !== 'wishforge-provisioner') - throw new DomainError( - 'WORKSPACE_LIFECYCLE_UNCONFIGURED', - 'This workspace does not have a managed lifecycle', - 503, - ); - if (workspace.status === (action === 'pause' ? 'paused' : 'ready')) return this.safe(workspace); - if (action === 'pause' && workspace.status !== 'ready') - throw new DomainError( - 'WORKSPACE_OPERATION_PENDING', - 'Resolve the existing lifecycle operation before pausing', - ); - if (!['ready', 'paused', 'pausing', 'resuming', 'unknown'].includes(String(workspace.status))) - throw new DomainError('WORKSPACE_NOT_READY', 'Workspace provisioning must be reconciled first'); - return this.queue(tx, workspace, action === 'pause' ? 'paused' : 'running', false); - }); - }); - } - - private async queue(tx: Transaction, workspace: Workspace, desired: Lifecycle['desired'], automatic: boolean) { - const revision = (workspace.lifecycle?.revision ?? 0) + 1; - const operationId = randomUUID(); - workspace.lifecycle = { - revision, - desired, - automatic, - requestedAt: new Date().toISOString(), - operationId, - state: 'queued', - } satisfies Lifecycle; - workspace.status = desired === 'paused' ? 'pausing' : 'resuming'; - workspace.reason = 'Waiting for the workspace controller to confirm the requested state.'; - await tx.put('workspace', touch(workspace)); - await tx.enqueue( - 'workspace.reconcile', - { workspaceId: workspace.id, projectId: workspace.projectId, revision, desired }, - operationId, - ); - return this.safe(workspace); - } - - /** Idle only when the gateway positively reports no open connection to the workspace. */ - private async idle(workspace: Workspace): Promise { - const gateway = await resolveGatewayTarget(this.env, workspace.tenantId); - if (!gateway) return false; - const response = await this.fetcher(new URL('/internal/lifecycle-state', gateway.internalUrl), { - method: 'POST', - headers: { authorization: `Bearer ${gateway.token}`, 'content-type': 'application/json' }, - body: JSON.stringify({ tenantId: workspace.tenantId, workspaceId: workspace.id }), - redirect: 'error', - signal: AbortSignal.timeout(15000), - }).catch(() => undefined); - if (!response?.ok) return false; - const value = (await response.json().catch(() => undefined)) as GatewayActivity | undefined; - return value?.workspaceId === workspace.id && value.known === true && value.gatewayConnections === 0; - } - - async scheduleIdle(tenantId: string) { - if (this.env.WF_WORKSPACE_AUTO_SLEEP === 'false') return; - if (!(await resolveProvisionerTarget(this.env, tenantId).catch(() => undefined))) return; - const cutoff = Date.now() - WORKSPACE_IDLE_MS; - const candidates = await this.store.transaction(tenantId, async tx => - (await tx.list('workspace')).filter( - w => - w.managedBy === 'wishforge-provisioner' && - w.status === 'ready' && - typeof w.lastActivityAt === 'string' && - Date.parse(w.lastActivityAt) <= cutoff, - ), - ); - for (const before of candidates) { - if (!(await this.idle(before))) continue; - await this.store.transaction(tenantId, async tx => { - const w = await must(tx, 'workspace', before.id); - if (w.status !== 'ready' || w.lastActivityAt !== before.lastActivityAt) return; - await this.queue(tx, w, 'paused', true); - }); - } - } - - async reconcile(tenantId: string, item: OutboxItem) { - const workspace = await this.store.transaction(tenantId, tx => - must(tx, 'workspace', String(item.payload.workspaceId)), - ); - const operation = workspace.lifecycle; - if (!operation || operation.operationId !== item.id || operation.revision !== item.payload.revision) { - await this.store.transaction(tenantId, tx => tx.acknowledge(item.id)); - return; - } - try { - const provisioner = await this.provisioner(tenantId); - // Give a user who reconnects right after an automatic decision a chance to keep the workspace. - if (operation.automatic && Date.now() - Date.parse(operation.requestedAt) < 5000) { - await this.store.transaction(tenantId, tx => tx.defer(item.id, 5)); - return; - } - const target = new URL(`${provisioner.url}/workspaces/${workspace.id}/lifecycle`); - target.searchParams.set('tenantId', tenantId); - target.searchParams.set('projectId', String(workspace.projectId)); - const headers = { authorization: `Bearer ${provisioner.token}`, 'content-type': 'application/json' }; - // Always observe first. A lost response never causes an unconditional mutation replay. - const observed = await this.fetcher(target, { headers, redirect: 'error', signal: AbortSignal.timeout(15000) }); - if (!observed.ok) throw new Error('WORKSPACE_OBSERVE_UNKNOWN'); - let state = (await observed.json()) as { - workspaceId: string; - revision: number; - desired: string; - status: Workspace['status']; - }; - const valid = () => - state.workspaceId === workspace.id && - Number.isSafeInteger(state.revision) && - state.revision >= 0 && - ['running', 'paused'].includes(state.desired) && - ['ready', 'paused', 'pending'].includes(state.status); - if (!valid() || state.revision > operation.revision) throw new Error('WORKSPACE_OBSERVE_UNKNOWN'); - if (state.revision < operation.revision && operation.automatic && !(await this.idle(workspace))) { - await this.store.transaction(tenantId, async tx => { - const current = await must(tx, 'workspace', workspace.id); - if (current.lifecycle?.operationId !== item.id) return; - await this.queue(tx, current, 'running', false); - await tx.acknowledge(item.id); - }); - return; - } - if (state.revision < operation.revision) { - await this.store.transaction(tenantId, async tx => { - const current = await must(tx, 'workspace', workspace.id); - if (current.lifecycle?.operationId !== item.id) throw new Error('WORKSPACE_SUPERSEDED'); - if (operation.automatic && current.lastActivityAt !== workspace.lastActivityAt) - throw new Error('WORKSPACE_ACTIVITY_CHANGED'); - current.lifecycle = { ...operation, state: 'unknown' }; - await tx.put('workspace', touch(current)); - }); - target.search = ''; - const changed = await this.fetcher(target, { - method: 'PUT', - headers, - body: JSON.stringify({ - tenantId, - projectId: workspace.projectId, - workspaceId: workspace.id, - revision: operation.revision, - desired: operation.desired, - }), - redirect: 'error', - signal: AbortSignal.timeout(15000), - }); - if (!changed.ok) throw new Error('WORKSPACE_RECONCILE_UNKNOWN'); - state = (await changed.json()) as typeof state; - } - if (!valid() || state.revision !== operation.revision || state.desired !== operation.desired) - throw new Error('WORKSPACE_OBSERVE_UNKNOWN'); - await this.store.transaction(tenantId, async tx => { - const current = await must(tx, 'workspace', workspace.id); - if (current.lifecycle?.operationId !== item.id) return; - const complete = - (operation.desired === 'paused' && state.status === 'paused') || - (operation.desired === 'running' && state.status === 'ready'); - current.lifecycle = { ...operation, state: complete ? 'complete' : 'observing' }; - current.status = complete ? state.status : operation.desired === 'paused' ? 'pausing' : 'resuming'; - current.reason = complete ? undefined : 'Waiting for observed workspace replicas and readiness.'; - if (complete && state.status === 'ready') current.lastActivityAt = new Date().toISOString(); - await tx.put('workspace', touch(current)); - if (complete) await tx.acknowledge(item.id); - else await tx.defer(item.id, 10); - }); - } catch (error) { - console.error(`Workspace ${workspace.id} lifecycle reconcile: ${error instanceof Error ? error.message : error}`); - await this.store.transaction(tenantId, async tx => { - const current = await must(tx, 'workspace', workspace.id); - if (current.lifecycle?.operationId !== item.id) return; - current.status = 'unknown'; - current.reason = 'Workspace controller outcome is unknown; observation will be retried before any new action.'; - current.lifecycle = { ...operation, state: 'unknown' }; - await tx.put('workspace', touch(current)); - await tx.defer(item.id, 30); - }); - } - } -} diff --git a/apps/api/src/http.ts b/apps/api/src/http.ts index a3e5852..efd4a56 100644 --- a/apps/api/src/http.ts +++ b/apps/api/src/http.ts @@ -7,6 +7,7 @@ import { Inject, Param, Patch, + Put, Post, Query, Req, @@ -26,27 +27,26 @@ import { projectModelsInput, commandList, gitBranchName, + inlineImageTypes, wishRulesInput, type Actor, type Run, isProduction, - type Workspace, } from '@wishforge/contracts'; import { Authenticator, localUser } from './auth.js'; -import { ControlPlane, must, projectAccess, record, touch } from './domain/control-plane.js'; +import { ControlPlane, must, projectAccess, touch } from './domain/control-plane.js'; import { Releases } from './domain/releases.js'; import { AgentBundles } from './domain/agent-bundles.js'; -import { Lessons } from './domain/lessons.js'; import { Skills } from './domain/skills.js'; import { WishReports } from './domain/wish-report.js'; import { Connections } from './domain/connections.js'; +import { ExecutorSettingsService } from './domain/executor-settings.js'; import { RunnerBroker } from './domain/runner-broker.js'; import { GitStorage } from './domain/git-storage.js'; -import { WorkspaceGit, commitAuthor } from './domain/workspace-git.js'; import { GitHubIntegration } from './domain/github.js'; import { Usage } from './domain/usage.js'; import { ProviderProxy } from './domain/provider-proxy.js'; -import { Entitlements, requireCapacity } from './domain/entitlements.js'; +import { Entitlements } from './domain/entitlements.js'; import { requireRole, requireHuman } from './domain/policy.js'; import { configuredVerificationProfiles, selectVerificationProfile } from './domain/verification-policy.js'; import { LocalAccounts, localAccountsEnabled } from './domain/local-accounts.js'; @@ -64,10 +64,10 @@ export class Services { auth: Authenticator; releases: Releases; bundles: AgentBundles; - lessons: Lessons; skills: Skills; reports: WishReports; connections: Connections; + executorSettings: ExecutorSettingsService; runners: RunnerBroker; github: GitHubIntegration; accounts: LocalAccounts; @@ -80,10 +80,10 @@ export class Services { this.auth = new Authenticator(control.store, control.env); this.releases = new Releases(control.store, control.env); this.bundles = new AgentBundles(control.store); - this.lessons = new Lessons(control.store); this.skills = new Skills(control.store, control.env); this.reports = new WishReports(control.store); this.connections = new Connections(control.store, control.env); + this.executorSettings = new ExecutorSettingsService(control.store, control.env); this.runners = new RunnerBroker(control.store, this.releases, control.env); this.github = new GitHubIntegration(control.store, control.env); this.accounts = new LocalAccounts(control.store, control.env); @@ -172,17 +172,6 @@ const meterBody = z computeSeconds: z.number().min(0), }) .strict(); -/** The first check of an IDE session carries the user's token; later checks name the established user. */ -const authorizeBody = z - .object({ - userToken: z.string().min(1).max(16384).optional(), - userId: z.string().min(1).max(200).optional(), - operation: z.enum(['edit', 'terminal', 'debug']), - }) - .strict() - .refine(body => Boolean(body.userToken) !== Boolean(body.userId), 'Provide either userToken or userId'); -const gatewayUserBody = z.object({ userId: z.string().min(1).max(200) }).strict(); - @Catch() export class Errors implements ExceptionFilter { catch(error: unknown, host: ArgumentsHost) { @@ -333,6 +322,7 @@ export class ApiController { models: projectModelsInput.nullable().optional(), // The budget every wish of this project starts with; null returns to the platform default. defaultBudget: budgetSchema.nullable().optional(), + skillAutoActivation: z.boolean().optional(), deliveryConfig: z .object({ imageRepository: z.string().min(1), @@ -374,24 +364,33 @@ export class ApiController { }), ); } - @Get('projects/:id/lessons') async lessons(@Req() r: AuthRequest, @Param('id') id: string) { - return ok(await this.s.lessons.list(r.actor, id)); - } - @Post('projects/:id/lessons') async createLesson(@Req() r: AuthRequest, @Param('id') id: string, @Body() b: unknown) { - return ok(await this.s.lessons.create(r.actor, id, b)); - } - @Patch('lessons/:id') async updateLesson(@Req() r: AuthRequest, @Param('id') id: string, @Body() b: unknown) { - return ok(await this.s.lessons.setStatus(r.actor, id, b)); - } - @Delete('lessons/:id') async deleteLesson(@Req() r: AuthRequest, @Param('id') id: string) { - return ok(await this.s.lessons.remove(r.actor, id)); - } @Get('projects/:id/skills') async skills(@Req() r: AuthRequest, @Param('id') id: string) { return ok(await this.s.skills.list(r.actor, id)); } @Post('projects/:id/skills') async createSkill(@Req() r: AuthRequest, @Param('id') id: string, @Body() b: unknown) { return ok(await this.s.skills.create(r.actor, id, b)); } + /** SKILL.md files, or a zip of them as the export writes it, added to the project. */ + @Post('projects/:id/skills/import') async importSkills( + @Req() r: AuthRequest, + @Param('id') id: string, + @Body() b: unknown, + ) { + return ok(await this.s.skills.importFiles(r.actor, id, b, key(r))); + } + /** The knowledge base: skills of every project the person may see. */ + @Get('skills') async allSkills( + @Req() r: AuthRequest, + @Query('project') projectId?: string, + @Query('status') status?: string, + @Query('category') category?: string, + @Query('q') q?: string, + ) { + return ok(await this.s.skills.search(r.actor, { projectId, status, category, q })); + } + @Post('skills/copy') async copySkills(@Req() r: AuthRequest, @Body() b: unknown) { + return ok(await this.s.skills.copy(r.actor, b, key(r))); + } /** Every active skill (and with ?proposed=1 the proposals) as a zip, one directory per skill. */ @Get('projects/:id/skills/export') async exportSkills( @Req() r: AuthRequest, @@ -601,6 +600,25 @@ export class ApiController { @Patch('runs/:id/budget') async updateBudget(@Req() r: AuthRequest, @Param('id') id: string, @Body() b: unknown) { return ok(await this.s.control.updateBudget(r.actor, id, b, key(r))); } + @Get('runs/:id/attachments/:attachmentId') async attachment( + @Req() r: AuthRequest, + @Res() res: Response, + @Param('id') id: string, + @Param('attachmentId') attachmentId: string, + ) { + const file = await this.s.control.attachment(r.actor, id, attachmentId); + // Images show inline; anything else downloads, so uploaded HTML or SVG never runs here. + const inline = inlineImageTypes.includes(file.mediaType); + res + .type(inline ? file.mediaType : 'application/octet-stream') + .setHeader( + 'Content-Disposition', + `${inline ? 'inline' : 'attachment'}; filename*=UTF-8''${encodeURIComponent(file.name)}`, + ) + .setHeader('X-Content-Type-Options', 'nosniff') + .setHeader('Content-Security-Policy', "default-src 'none'; sandbox") + .send(Buffer.from(file.data, 'base64')); + } @Get('runs/:id/events') async events(@Req() r: AuthRequest, @Param('id') id: string, @Query('after') after?: string) { return ok(await this.s.control.events(r.actor, id, Math.max(0, Number(after) || 0))); } @@ -706,6 +724,19 @@ export class ApiController { @Delete('provider-connections/:id') async revoke(@Req() r: AuthRequest, @Param('id') id: string) { return ok(await this.s.connections.revoke(r.actor, id)); } + @Get('executor-settings') async executorSettingsList(@Req() r: AuthRequest) { + return ok(await this.s.executorSettings.list(r.actor)); + } + @Get('executor-settings/:provider') async executorSettings(@Req() r: AuthRequest, @Param('provider') p: string) { + return ok(await this.s.executorSettings.get(r.actor, p)); + } + @Put('executor-settings/:provider') async putExecutorSettings( + @Req() r: AuthRequest, + @Param('provider') p: string, + @Body() b: unknown, + ) { + return ok(await this.s.executorSettings.put(r.actor, p, b)); + } @Get('environments') async envs(@Req() r: AuthRequest) { return ok(await this.s.releases.environments(r.actor)); } @@ -844,44 +875,6 @@ export class ApiController { res.type('text/csv').setHeader('Content-Disposition', `attachment; filename="${exported.filename}"`); res.send(exported.content); } - @Get('projects/:id/branches') async branches(@Req() r: AuthRequest, @Param('id') id: string) { - const project = await this.s.control.store.read(r.actor.tenantId, tx => projectAccess(tx, r.actor, id)); - return ok(await new GitStorage(this.s.control.env).ideBranches(project)); - } - @Get('projects/:id/workspaces') async workspaces(@Req() r: AuthRequest, @Param('id') id: string) { - return ok( - await this.s.control.store.read(r.actor.tenantId, async tx => { - await projectAccess(tx, r.actor, id); - return (await tx.list('workspace', { projectId: id })).map(publicWorkspace); - }), - ); - } - @Post('projects/:id/workspaces') async workspace(@Req() r: AuthRequest, @Param('id') id: string) { - requireRole(r.actor, ['owner', 'admin', 'developer']); - return ok( - await this.s.control.store.transaction(r.actor.tenantId, async tx => { - await projectAccess(tx, r.actor, id); - const existing = (await tx.list('workspace', { projectId: id }))[0]; - if (existing) return publicWorkspace(existing); - await requireCapacity(tx, 'workspace'); - const workspace = { - ...record(r.actor.tenantId), - projectId: id, - status: 'unconfigured', - reason: - 'An isolated Theia workspace provisioner and authenticated gateway must be connected before this workspace can be opened.', - }; - await tx.put('workspace', workspace); - await tx.enqueue('workspace.provision', { workspaceId: workspace.id, projectId: id }); - return workspace; - }), - ); - } -} - -/** A workspace as people see it: its internal upstream addresses are only for the gateway. */ -function publicWorkspace({ upstreamUrl: _, collaborationUpstreamUrl: _collaboration, ...workspace }: Workspace) { - return workspace; } @Controller('internal') @@ -1031,63 +1024,4 @@ export class InternalController { if (r.actor.kind !== 'deployer') throw new DomainError('FORBIDDEN', 'Deployer required', 403); return ok(await this.s.releases.request(r.actor, b, key(r))); } - @Post('workspaces/:id/authorize') async authorizeWorkspace( - @Req() r: AuthRequest, - @Param('id') id: string, - @Body() body: unknown, - ) { - const b = authorizeBody.parse(body); - if (r.actor.userId !== 'workspace-gateway') - throw new DomainError('FORBIDDEN', 'Workspace gateway identity required', 403); - const user = b.userToken - ? await this.s.auth.authenticate(`Bearer ${b.userToken}`) - : await this.s.auth.sessionUser(r.actor.tenantId, b.userId!); - if (user.tenantId !== r.actor.tenantId) throw new DomainError('NOT_FOUND', 'Workspace not found', 404); - return ok( - await this.s.control.store.transaction(user.tenantId, async tx => { - const workspace = await must(tx, 'workspace', id); - await projectAccess(tx, user, String(workspace.projectId)); - if (['edit', 'terminal', 'debug'].includes(b.operation)) { - requireHuman(user); - requireRole(user, ['owner', 'admin', 'developer']); - } - if (workspace.status !== 'ready' || !workspace.upstreamUrl) - throw new DomainError('WORKSPACE_NOT_READY', 'Workspace has not been provisioned', 503); - if ( - r.actor.userId === 'workspace-gateway' && - (!workspace.lastActivityAt || Date.now() - Date.parse(String(workspace.lastActivityAt)) >= 15000) - ) { - workspace.lastActivityAt = new Date().toISOString(); - await tx.put('workspace', workspace); - } - return { - tenantId: user.tenantId, - projectId: workspace.projectId, - workspaceId: id, - upstreamUrl: workspace.upstreamUrl, - collaborationUpstreamUrl: workspace.collaborationUpstreamUrl, - userId: user.userId, - role: user.role, - // Known only from a sign-in token: the gateway keeps it for the session's commits. - ...(b.userToken ? { author: commitAuthor(user) } : {}), - }; - }), - ); - } - @Post('workspaces/:id/git-credential') async workspaceGitCredential( - @Req() r: AuthRequest, - @Param('id') id: string, - @Body() body: unknown, - ) { - if (r.actor.userId !== 'workspace-gateway') - throw new DomainError('FORBIDDEN', 'Workspace gateway identity required', 403); - const { userId } = gatewayUserBody.parse(body); - return ok( - await new WorkspaceGit(this.s.control.store, this.s.auth, this.s.control.env).credential( - r.actor.tenantId, - id, - userId, - ), - ); - } } diff --git a/apps/api/src/internal-auth.ts b/apps/api/src/internal-auth.ts index e6de931..59c5429 100644 --- a/apps/api/src/internal-auth.ts +++ b/apps/api/src/internal-auth.ts @@ -14,8 +14,7 @@ const STATIC_ROUTES: Partial> = { /** * Resolves the identity behind an `/internal` request and confines it: run-scoped * execution tokens address only their own run, static service identities only their - * routes, the IDE gateway only workspace authorization and Git credentials, and environment runners only - * their deployment tasks. + * routes, and environment runners only their deployment tasks. */ export async function internalActor( auth: Authenticator, @@ -28,10 +27,7 @@ export async function internalActor( (request.path === '/evidence' ? (request.body as { runId?: unknown } | undefined)?.runId : undefined); if (addressed !== actor.runId) throw new DomainError('FORBIDDEN', 'Execution token is scoped to a single run', 403); } - if (actor.userId === 'workspace-gateway') { - if (!/^\/workspaces\/[^/]+\/(authorize|git-credential)$/.test(request.path)) - throw new DomainError('FORBIDDEN', 'Gateway identity is limited to workspace authorization', 403); - } else if (actor.userId.startsWith('runner:')) { + if (actor.userId.startsWith('runner:')) { if (!request.path.startsWith('/runner/')) throw new DomainError('FORBIDDEN', 'Runner identity is limited to assigned deployment tasks', 403); } else if (!actor.runId && !(STATIC_ROUTES[actor.kind] ?? []).some(route => route.test(request.path))) diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 7f0d2e8..29b56b4 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -1,4 +1,3 @@ -import { WorkspaceLaunchController } from './workspace-launch-http.js'; import 'reflect-metadata'; import { Module } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; @@ -17,8 +16,6 @@ import { localUser } from './auth.js'; import { observability } from './telemetry.js'; import { ProviderProxy } from './domain/provider-proxy.js'; import { once } from 'node:events'; -import { WorkspaceLifecycleController } from './workspace-lifecycle-http.js'; -import { WorkspaceLifecycleWorker } from './workspace-lifecycle-worker.js'; import { ResourceReconciliationWorker } from './resource-reconciliation-worker.js'; export async function bootstrap() { @@ -37,27 +34,33 @@ export async function bootstrap() { const service = new Services(new ControlPlane(store)); // Succeeded runs are looked at for skills worth keeping, one at a time, in the background. service.skills.startHarvesting(); + // Finished runs count for the skills they were given; skills that keep failing or go unused retire. + service.skills.startMaintenance(); const telemetry = await observability(); @Module({ - controllers: [ApiController, InternalController, WorkspaceLifecycleController, WorkspaceLaunchController], + controllers: [ApiController, InternalController], providers: [{ provide: Services, useValue: service }], }) class AppModule {} const app = await NestFactory.create(AppModule, { logger: ['error', 'warn', 'log'], bodyParser: false }); - // Bodies are parsed before authentication, so only the checkpoint upload may be large. + // Bodies are parsed before authentication, so only checkpoint uploads and wishes with files may be large. const checkpointBody = express.json({ limit: '16mb' }), proxyBody = express.json({ limit: '2mb' }), // A Copilot screenshot arrives as the picture itself, not as a JSON-wrapped base64 string. attachmentBody = express.raw({ limit: '4mb', type: ['image/png', 'image/jpeg', 'image/webp'] }), + // A wish may carry up to 10 MB of attachments, base64-encoded. + wishBody = express.json({ limit: '15mb' }), defaultBody = express.json({ limit: '1mb' }); app.use((req: express.Request, res: express.Response, next: express.NextFunction) => (/^\/internal\/runs\/[^/]+\/checkpoint$/.test(req.path) ? checkpointBody : /^\/v1\/projects\/[^/]+\/copilot\/sessions\/[^/]+\/attachments$/.test(req.path) ? attachmentBody - : req.path.startsWith('/provider-proxy/') - ? proxyBody - : defaultBody)(req, res, next), + : req.method === 'POST' && /^\/v1\/projects\/[^/]+\/wishes$/.test(req.path) + ? wishBody + : req.path.startsWith('/provider-proxy/') + ? proxyBody + : defaultBody)(req, res, next), ); app.useGlobalFilters(new Errors()); const raw = app.getHttpAdapter().getInstance(); @@ -184,8 +187,6 @@ export async function bootstrap() { }); raw.all('/mcp', (_req: express.Request, res: express.Response) => res.status(405).setHeader('Allow', 'POST').end()); await app.listen(Number(process.env.PORT ?? 4000), process.env.HOST ?? '127.0.0.1'); - const workspaceLifecycle = new WorkspaceLifecycleWorker(service.control); - if (process.env.WF_DISPATCH_ENABLED !== 'false') workspaceLifecycle.start(); const dispatcher = new Dispatcher(service.control); if (process.env.WF_DISPATCH_ENABLED !== 'false') void dispatcher.start(); const resourceReconciliation = new ResourceReconciliationWorker(service.control); @@ -196,7 +197,6 @@ export async function bootstrap() { const shutdown = async () => { notifier.close(); await resourceReconciliation.close(); - await workspaceLifecycle.close(); await dispatcher.close(); await app.close(); await store.close(); diff --git a/apps/api/src/workspace-launch-http.ts b/apps/api/src/workspace-launch-http.ts deleted file mode 100644 index bd5cb2e..0000000 --- a/apps/api/src/workspace-launch-http.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Body, Controller, Inject, Param, Post, Req } from '@nestjs/common'; -import type { Request } from 'express'; -import { z } from 'zod'; -import type { Actor } from '@wishforge/contracts'; -import { Services } from './http.js'; -import { WorkspaceLaunch } from './domain/workspace-launch.js'; -@Controller('v1/workspaces') -export class WorkspaceLaunchController { - constructor(@Inject(Services) private s: Services) {} - @Post(':id/launch') async launch( - @Req() req: Request & { actor: Actor }, - @Param('id') id: string, - @Body() body: unknown, - ) { - z.object({}).strict().parse(body); - return { - data: await new WorkspaceLaunch(this.s.control.store, this.s.control.env).launch( - req.actor, - id, - req.header('Authorization') ?? '', - ), - }; - } -} diff --git a/apps/api/src/workspace-lifecycle-http.ts b/apps/api/src/workspace-lifecycle-http.ts deleted file mode 100644 index e398eea..0000000 --- a/apps/api/src/workspace-lifecycle-http.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Body, Controller, Inject, Param, Post, Req } from '@nestjs/common'; -import { z } from 'zod'; -import type { Request } from 'express'; -import type { Actor } from '@wishforge/contracts'; -import { Services } from './http.js'; -import { WorkspaceLifecycle } from './domain/workspace-lifecycle.js'; -type AuthRequest = Request & { actor: Actor }; -@Controller('v1/workspaces') -export class WorkspaceLifecycleController { - constructor(@Inject(Services) private s: Services) {} - @Post(':id/lifecycle') async control(@Req() req: AuthRequest, @Param('id') id: string, @Body() body: unknown) { - const input = z - .object({ action: z.enum(['pause', 'resume']), confirmation: z.literal('change-workspace-lifecycle') }) - .strict() - .parse(body); - return { - data: await new WorkspaceLifecycle(this.s.control.store, this.s.control.env).manual( - req.actor, - id, - input.action, - req.header('Idempotency-Key') ?? '', - ), - }; - } -} diff --git a/apps/api/src/workspace-lifecycle-worker.ts b/apps/api/src/workspace-lifecycle-worker.ts deleted file mode 100644 index 715ba30..0000000 --- a/apps/api/src/workspace-lifecycle-worker.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { ControlPlane } from './domain/control-plane.js'; -import { WorkspaceLifecycle } from './domain/workspace-lifecycle.js'; -import { dispatchTenants } from './tenants.js'; -/** Independent of Temporal availability; durable outbox reconciliation owns no application deployment. */ -export class WorkspaceLifecycleWorker { - private timer?: ReturnType; - private stopped = false; - private busy?: Promise; - constructor(private control: ControlPlane) {} - start() { - const tick = async () => { - if (this.stopped) return; - this.busy = this.tick(); - await this.busy; - if (!this.stopped) this.timer = setTimeout(() => void tick(), 10000); - }; - void tick(); - } - private async tick() { - const lifecycle = new WorkspaceLifecycle(this.control.store, this.control.env); - for (const tenant of dispatchTenants(this.control.env)) { - try { - const pending = await this.control.store.transaction(tenant, tx => - tx.claimOutbox(['workspace.reconcile'], 120), - ); - for (const item of pending) await lifecycle.reconcile(tenant, item); - await lifecycle.scheduleIdle(tenant); - } catch { - /* Durable items remain pending; never infer ready/suspended from a transport failure. */ - } - } - } - async close() { - this.stopped = true; - if (this.timer) clearTimeout(this.timer); - await this.busy; - } -} diff --git a/apps/git-service/src/service.ts b/apps/git-service/src/service.ts index 320c258..f07b1bc 100644 --- a/apps/git-service/src/service.ts +++ b/apps/git-service/src/service.ts @@ -23,7 +23,7 @@ export interface GitClaims { iat: number; exp: number; runId?: string; - /** Pushes may only update refs under this prefix: an IDE workspace pushes `refs/heads/ide/*`. */ + /** Pushes may only update refs under this prefix, for example `refs/heads/ide/*`. */ refPrefix?: string; } const REF_PREFIX = /^refs\/heads\/[A-Za-z0-9][A-Za-z0-9._-]{0,63}\/$/; @@ -54,7 +54,7 @@ const gitEnv = () => ({ /** * Every push runs this hook. A credential scoped to a ref prefix cannot update anything else, - * so people's pushes from the IDE reach the target branch only through a verified wish. + * so such pushes reach the target branch only through a verified wish. */ export const PRE_RECEIVE_HOOK = [ '#!/bin/sh', diff --git a/apps/ide/.dockerignore b/apps/ide/.dockerignore deleted file mode 100644 index 8c8e0b8..0000000 --- a/apps/ide/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -**/node_modules -lib -src-gen -plugins -workspace -**/test diff --git a/apps/ide/.gitignore b/apps/ide/.gitignore deleted file mode 100644 index d23a762..0000000 --- a/apps/ide/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -node_modules/ -plugins/ -lib/ -src-gen/ -workspace/ -webpack.config.js -gen-webpack.config.js -tsconfig.json -*.tsbuildinfo -esbuild.mjs -gen-esbuild.*.mjs diff --git a/apps/ide/Dockerfile b/apps/ide/Dockerfile deleted file mode 100644 index a7b001d..0000000 --- a/apps/ide/Dockerfile +++ /dev/null @@ -1,29 +0,0 @@ -# syntax=docker/dockerfile:1 -# Operators supply reviewed immutable Debian-based Node images (build and slim runtime). -ARG NODE_IMAGE -ARG NODE_SLIM_IMAGE -# The Theia workspace (`--target theia`); Git clones the project and serves the Git extension. -FROM ${NODE_IMAGE} AS theia -RUN apt-get update && apt-get install -y --no-install-recommends git python3 make g++ libsecret-1-dev libx11-dev libxkbfile-dev libudev-dev && rm -rf /var/lib/apt/lists/* -WORKDIR /opt/wishforge-ide -ENV PUPPETEER_SKIP_DOWNLOAD=true -COPY package.json package-lock.json ./ -COPY policy ./policy -COPY collaboration ./collaboration -RUN npm ci --no-audit --no-fund -COPY scripts ./scripts -RUN npm run plugins:download && npm run build:production && mkdir /workspace && chown -R node:node /workspace && chmod -R go-w /opt/wishforge-ide -USER node -ENV NODE_ENV=production WISHFORGE_IDE_HOST=0.0.0.0 WISHFORGE_IDE_PORT=4300 WISHFORGE_WORKSPACE_PATH=/workspace -EXPOSE 4300 -CMD ["node", "scripts/start.mjs"] - -# The workspace gateway needs only its own files and the WebSocket library. -FROM ${NODE_SLIM_IMAGE} AS gateway -WORKDIR /opt/wishforge-gateway -COPY --from=theia /opt/wishforge-ide/node_modules/ws ./node_modules/ws -COPY gateway ./gateway -USER node -ENV NODE_ENV=production WF_IDE_GATEWAY_HOST=0.0.0.0 WF_IDE_GATEWAY_PORT=4400 -EXPOSE 4400 -CMD ["node", "gateway/main.mjs"] diff --git a/apps/ide/README.md b/apps/ide/README.md deleted file mode 100644 index aa53504..0000000 --- a/apps/ide/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# 云 IDE(Theia) - -基于 Eclipse Theia **1.76.0** 的浏览器 IDE,包含 `@theia/collaboration`。它是独立的 npm 包(自己的 `package-lock.json`),不属于根目录的 npm workspaces,因为 Theia 依赖树很大且含原生模块。 - -| 目录 | 内容 | -|---|---| -| `src-gen/`、`lib/` | Theia 构建产物(`npm run ide:build` 生成) | -| `policy/` | 策略扩展:扩展白名单、按工作区隔离的协作,见 [policy/README.md](policy/README.md) | -| `gateway/` | IDE 网关:浏览器访问 Theia 的唯一入口,见 [gateway/README.md](gateway/README.md) | -| `collaboration/` | 每个工作区独立的 OCT 协作服务,见 [collaboration/README.md](collaboration/README.md) | -| `scripts/` | 启动脚本、扩展下载与校验 | -| `plugins/` | 镜像内固定的扩展(`plugins:download` 生成) | - -## 本地运行 - -```bash -npm run ide:install -``` - -```bash -npm run ide:build -``` - -```bash -npm run dev:ide -``` - -`dev:ide` 启动 Theia(`http://127.0.0.1:4300`,只能经网关访问)与网关(`http://127.0.0.1:4400`),所有工作区共用 `.wishforge/ide-workspace` 目录,每个项目克隆到其中以项目命名的文件夹(工作分支 `ide/work`),仓库令牌放在 `.wishforge/ide-credentials`。原生模块的编译需要 Python、make/C++ 与系统开发库(Linux 依赖见 `Dockerfile`)。 - -在项目页创建开发环境后点击「打开 IDE」。 - -- **克隆**:平台托管仓库的项目第一次打开时会被克隆到以项目命名的文件夹,通常几秒内出现在资源管理器中,并处在 `ide/work` 分支上。外部仓库(如 GitHub)不克隆,那里的改动应走 PR。 -- **推送**:提交后直接 `git push`(或 Git 面板的「发布分支」),推送到 `ide/work`。也可以建其他 `ide/` 开头的分支;推送目标分支或其他分支会被平台 Git 拒绝。 -- **合入**:在项目页的 IDE 分支列表点「提交愿望合入」,或提交愿望时把「起点」选成这个分支。运行从分支的最新提交开始,Agent 在上面继续实现,验证通过后一并合入目标分支;验证失败时照常进入修复轮。 -- **同步**:Agent 合入了新的改动后,用 `git pull origin <目标分支>` 把它们拉进 `ide/work`。 -- **凭据**:会话期间网关持续送来 15 分钟的仓库令牌,存放在仓库之外(见 [policy/README.md](policy/README.md))。没有人打开 IDE 时令牌会过期,`git push` 也随之失败。 -- **提交身份**:取最近打开会话的用户,用 `git config user.name`、`git config user.email` 可以改成自己的。 - -IDE 与 Agent 之间只通过 Git commit 交接,不存在 IDE 快照之类的旁路。 - -## 扩展 - -只能使用镜像中预置并校验过的扩展,运行时的安装、卸载、启用与停用请求都会被后端拒绝(`EXTENSIONS_MANAGED_BY_ADMIN`)。 - -- 内置扩展来自官方 `vscode-builtin-extensions` **1.108.2** 归档(SHA-256 `05a20cf3e671c8d328b04d9ce72b25688b0e762e4a3f5592f31a21ee38280367`),提供 Git、语言支持与 JavaScript 调试,每个扩展的 ID、版本与内容摘要记录在 `policy/managed-plugins.lock.json`;`node scripts/catalog-builtin-plugins.mjs <归档>` 在校验归档后重新生成该清单。 -- Python 支持:`ms-python.python` 2026.4.0、`ms-python.debugpy` 2026.6.0(调试器)、`ms-pyright.pyright` 1.1.402(补全、悬停与诊断),在 `scripts/python-debugger.lock.json` 中为 Linux x64/ARM64 与 macOS x64/ARM64 固定了官方 VSIX 的校验和;其他平台明确失败。Python 解释器本身需要在工作区镜像或项目虚拟环境中提供。 - -```bash -npm run plugins:download --prefix apps/ide -``` - -```bash -npm run plugins:verify --prefix apps/ide -``` - -离线构建时可以把已下载的 VSIX 传给 `npm run plugins:download:python -- --archive --python-archive --pyright-archive `。下载脚本校验 SHA-256、包身份、大小与解压路径,并原子地解包(Theia 的 `local-dir` 加载器不会加载未解包的 VSIX)。缺少、多出或被修改的扩展都会让启动失败。 - -## 镜像 - -`apps/ide/Dockerfile` 以 `apps/ide` 为构建上下文,运维提供 `NODE_IMAGE` 与 `NODE_SLIM_IMAGE`: - -- `theia` 目标:Theia 工作区(含 Git)。应用、扩展与清单归 root 所有,只有 `/workspace` 交给运行用户;生产还需要 provisioner 设置只读根文件系统。 -- `gateway` 目标:IDE 网关。它是最后一个阶段,所以不指定 `--target` 时构建的是网关。 - -## 生产边界 - -- 不要直接暴露 4300 端口:终端、文件、插件与调试接口都必须在网关之后。启动脚本在 `NODE_ENV=production` 时要求 `WISHFORGE_GATEWAY_ENFORCED=true`——这只是运维的声明,真正的保护来自网关与网络策略。 -- 只有项目的 owner/admin/developer 能进入编辑会话或协作房间;viewer 不会拿到 IDE 会话。Theia 内置协作的只读控制并不完整,隐藏按钮不是授权边界。 -- OCT 0.3.1 的房间状态只在内存中:服务重启后需要新建房间,未保存的编辑可能丢失。 -- Theia 后端与用户终端以同一个系统用户运行,同一工作区内的协作者之间没有隔离;工作区只应授予可信成员编辑权限。 - -## 测试 - -```bash -npm run test:ide -``` - -运行网关、协作客户端与策略扩展的 Node 测试(需要先 `npm run ide:install`)。Theia 的界面行为(编辑器、终端、调试、Python 语言服务)没有自动化测试,修改依赖或扩展后需要在浏览器中手动验证。 - -参考:[Theia 架构](https://theia-ide.org/docs/architecture/)、[Theia 1.76 协作源码](https://github.com/eclipse-theia/theia/blob/v1.76.0/packages/collaboration/src/browser/collaboration-frontend-contribution.ts)、[OCT 0.3.1](https://github.com/eclipse-oct/open-collaboration-tools/tree/ef757242e1bc5bd4a74f1baf068aa047decaad13)、[内置扩展发布](https://github.com/eclipse-theia/vscode-builtin-extensions/releases/tag/1.108.2)。 diff --git a/apps/ide/collaboration/Dockerfile b/apps/ide/collaboration/Dockerfile deleted file mode 100644 index b4b7d32..0000000 --- a/apps/ide/collaboration/Dockerfile +++ /dev/null @@ -1,6 +0,0 @@ -# Build the pinned upstream runtime first with infra/oct/Dockerfile. -FROM wishforge/oct:0.3.1-wf1 -COPY --chown=node:node start-isolated.mjs /opt/oct/start-isolated.mjs -ENV WF_OCT_HOST=0.0.0.0 -EXPOSE 8100 -CMD ["node", "/opt/oct/start-isolated.mjs"] diff --git a/apps/ide/collaboration/README.md b/apps/ide/collaboration/README.md deleted file mode 100644 index 8d7c1ed..0000000 --- a/apps/ide/collaboration/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# 按工作区隔离的 OCT 协作 - -本目录提供协作服务的启动器(`start-isolated.mjs`)与策略扩展使用的地址前缀适配器(`client-factory.cjs`)。每个工作区运行一个独立的 Open Collaboration Tools(OCT)0.3.1 进程,房间注册表与签名密钥不在工作区之间共享。身份以 WishForge 网关会话为准;OCT 的 `user` 显示名只是未经校验的展示文本,不代表租户身份或权限。 - -## 与上游实现相关的约束 - -以下行为来自固定版本的 Theia 1.76.0 与 OCT 0.3.1 源码,适配器据此设计: - -- OCT 服务的 HTTP 路由都在根路径(`/api/meta`、`/api/login/*`、`/api/session/*`),没有 basepath 选项;Socket.IO 使用默认的 `/socket.io/` 路径,独立的 `/websocket` 服务在上游被注释掉,所以只支持 Socket.IO 传输。 -- 上游的 Socket.IO 传输调用 `io(url)` 时不传 `path`,会把 URL 路径当作命名空间;Theia 的登录表单也会把绝对端点解析到源站根路径、丢掉工作区前缀。适配器因此显式设置 Socket.IO 路径为 `/workspaces//collaboration/socket.io`,并把登录端点改写为相对的 `api/login/simple`,不允许任意 OAuth 地址。 -- 上游默认使用固定的开发签名密钥且 JWT 不过期。`start-isolated.mjs` 为每个进程生成随机密钥、JWT 8 小时过期,只开启显示名登录(`OCT_ACTIVATE_SIMPLE_LOGIN=true`)。服务重启后旧的房间凭据失效,需要重新创建或加入房间。它还绕开了 OCT 0.3.1 命令行 `parseInt` 端口参数的问题。 -- Theia 使用的协议 0.3.0 与服务端 0.3.1 兼容(0.x 系列按主次版本号校验)。 - -源码位置:[OCT 服务](https://github.com/eclipse-oct/open-collaboration-tools/blob/ef757242e1bc5bd4a74f1baf068aa047decaad13/packages/open-collaboration-server/src/collaboration-server.ts)、[显示名登录](https://github.com/eclipse-oct/open-collaboration-tools/blob/ef757242e1bc5bd4a74f1baf068aa047decaad13/packages/open-collaboration-server/src/auth-endpoints/simple-login-endpoint.ts)、[凭据管理](https://github.com/eclipse-oct/open-collaboration-tools/blob/ef757242e1bc5bd4a74f1baf068aa047decaad13/packages/open-collaboration-server/src/credentials-manager.ts)、[协议连接](https://github.com/eclipse-oct/open-collaboration-tools/blob/ef757242e1bc5bd4a74f1baf068aa047decaad13/packages/open-collaboration-protocol/src/connection-provider.ts)、[Theia 协作贡献](https://github.com/eclipse-theia/theia/blob/v1.76.0/packages/collaboration/src/browser/collaboration-frontend-contribution.ts)。 - -## 网关与客户端约定 - -API 的工作区授权结果给出可信的上游地址: - -```json -{ - "tenantId": "tenant-id", - "projectId": "project-id", - "workspaceId": "workspace-id", - "role": "developer", - "upstreamUrl": "http://workspace-service:3000", - "collaborationUpstreamUrl": "http://workspace-service:8100" -} -``` - -只有 provisioner 能设置这些上游,公开调用方不能指定 OCT 地址。网关对 `/workspaces//collaboration/` 下的每个 HTTP 请求与 WebSocket 升级都要求 `edit` 权限,去掉前缀后转发到该工作区的 `collaborationUpstreamUrl`;保留 `x-oct-*` 协议头,去掉平台的 bearer 令牌与 Cookie,并定期复核已升级的连接。viewer 不能进入协作。 - -Theia 后端收到 `WF_COLLABORATION_GATEWAY_URL=https://ide.example/workspaces//collaboration/`。客户端适配器要求该地址与浏览器同源且属于当前工作区;初次握手使用轮询(便于携带 OCT 请求头),之后升级为 WebSocket。 - -## 运行 - -每个工作区一个协作进程,配置 `WF_WORKSPACE_ID`、`WF_TENANT_ID`、`WF_OCT_PORT=8100`、`WF_OCT_HOST=0.0.0.0` 与 `WISHFORGE_GATEWAY_ENFORCED=true`。在 Kubernetes 中放在工作区的 Kata Pod 内,8100 端口只允许网关访问,不对外暴露 Ingress;不需要工作区卷,根文件系统可以只读,去掉 Linux capability 并禁止提权。本机只在回环地址监听时可以使用默认的 `WF_OCT_HOST=127.0.0.1`。 - -```bash -docker build -t wishforge/oct-workspace:0.3.1-wf1 apps/ide/collaboration -``` - -`infra/compose.yaml` 中共享的开发 OCT 容器只用于协议检查,不承载工作区的房间。 - -## 测试 - -```bash -node --test apps/ide/collaboration/test/client-factory.test.cjs -``` - -```bash -WF_OCT_INTEGRATION=1 node --test --test-force-exit apps/ide/collaboration/test/isolated-oct.test.mjs -``` - -第二个测试需要 Docker:启动两个只监听回环地址的 OCT 容器,经真实的网关、不透明会话、固定版本的协议客户端、Socket.IO 加密与 Yjs 文档,验证主客双向编辑收敛、viewer 被拒绝、其他工作区的 Cookie 与复制的邀请被拒绝、跨实例 JWT 被拒绝,以及撤销权限后连接被关闭。其中控制面的授权接口是测试替身,因此它验证的是协议与路由,不是生产 OIDC 或 Kata 环境。Node 测试中 Engine.IO 在 `withCredentials=true` 时会替换手工注入的 Cookie,所以测试把它设为 false;浏览器客户端保持 true,依赖网关真实的 HttpOnly Cookie。 - -OCT 0.3.1 的房间只保存在内存中,不支持持久化的房间恢复。 diff --git a/apps/ide/collaboration/client-factory.cjs b/apps/ide/collaboration/client-factory.cjs deleted file mode 100644 index a4a7c2e..0000000 --- a/apps/ide/collaboration/client-factory.cjs +++ /dev/null @@ -1,59 +0,0 @@ -/** Prefix-aware OCT adapter for Theia 1.76 / open-collaboration-protocol 0.3.x. - * Platform authentication remains the workspace gateway's HttpOnly session. - * OCT display names and room tokens never grant access to a workspace. - */ -function collaborationBase(raw, browserLocation) { - const location = new URL(browserLocation); - const base = new URL(raw, location.origin); - const match = /^\/workspaces\/([a-zA-Z0-9][a-zA-Z0-9_-]*)\//.exec(location.pathname); - if ( - !match || - base.origin !== location.origin || - base.username || - base.password || - base.search || - base.hash || - base.pathname !== `/workspaces/${match[1]}/collaboration/` - ) - throw new Error('Collaboration must use this workspace authenticated gateway path'); - return base; -} -function normalizeAuthMetadata(meta) { - const providers = (meta.providers ?? []) - .filter( - provider => - provider.type === 'form' && provider.name === 'unverified' && provider.endpoint === '/api/login/simple', - ) - .map(provider => ({ ...provider, endpoint: 'api/login/simple' })); - if (providers.length !== 1) throw new Error('Workspace collaboration requires its isolated display-name provider'); - return { ...meta, providers, loginPageUrl: undefined }; -} -function createPrefixTransport({ io, SocketIoTransport }, baseUrl) { - const base = new URL(baseUrl); - return { - id: 'socket.io', - createTransport(_url, headers) { - // io(baseUrl) treats the pathname as a namespace and silently uses /socket.io. - // Explicit path and origin keep both Engine.IO polling and WS upgrade scoped. - const socket = io(base.origin, { - path: `${base.pathname}socket.io`, - extraHeaders: headers, - withCredentials: true, - transports: ['polling', 'websocket'], - }); - return new SocketIoTransport(socket); - }, - }; -} -function createPrefixConnectionProvider(deps, options) { - const base = collaborationBase(options.url, options.browserLocation); - return new deps.ConnectionProvider({ - url: base.href, - client: options.client, - fetch: (url, init) => options.fetch(url, { ...init, credentials: 'same-origin' }), - authenticationHandler: (token, metadata) => options.authenticationHandler(token, normalizeAuthMetadata(metadata)), - transports: [createPrefixTransport(deps, base.href)], - userToken: options.userToken, - }); -} -module.exports = { collaborationBase, normalizeAuthMetadata, createPrefixTransport, createPrefixConnectionProvider }; diff --git a/apps/ide/collaboration/start-isolated.mjs b/apps/ide/collaboration/start-isolated.mjs deleted file mode 100644 index f5efb68..0000000 --- a/apps/ide/collaboration/start-isolated.mjs +++ /dev/null @@ -1,34 +0,0 @@ -import 'reflect-metadata'; -import { randomBytes, webcrypto } from 'node:crypto'; -import { Container } from 'inversify'; -import { initializeProtocol } from 'open-collaboration-protocol'; -import { CollaborationServer, CredentialsManager, AuthEndpoint, SimpleLoginEndpoint } from 'open-collaboration-server'; - -const id = value => typeof value === 'string' && /^[a-zA-Z0-9][a-zA-Z0-9_-]{0,199}$/.test(value); -if (!id(process.env.WF_WORKSPACE_ID) || !id(process.env.WF_TENANT_ID)) - throw new Error('Each OCT instance requires its own WF_WORKSPACE_ID and WF_TENANT_ID'); -const hostname = process.env.WF_OCT_HOST ?? '127.0.0.1'; -if (!['127.0.0.1', '0.0.0.0'].includes(hostname)) throw new Error('Invalid isolated OCT listen address'); -if (hostname !== '127.0.0.1' && process.env.WISHFORGE_GATEWAY_ENFORCED !== 'true') - throw new Error('Network binding requires an enforced workspace gateway and default-deny network policy'); -const port = Number(process.env.WF_OCT_PORT ?? 8100); -if (!Number.isInteger(port) || port < 1 || port > 65535) throw new Error('Invalid isolated OCT port'); -// Never use OCT's shared development signing key. A restart invalidates all room -// capabilities because upstream room state is in memory and cannot be recovered. -process.env.OCT_JWT_PRIVATE_KEY = randomBytes(48).toString('base64url'); -process.env.OCT_ACTIVATE_SIMPLE_LOGIN = 'true'; -process.env.OCT_SERVER_OWNER = `WishForge workspace ${process.env.WF_WORKSPACE_ID}`; -initializeProtocol({ cryptoModule: webcrypto }); -const { default: serverModule } = await import( - new URL('./inversify-module.js', import.meta.resolve('open-collaboration-server')).href -); -const container = new Container(); -container.load(serverModule); -// This deployment deliberately has one display-name form behind the gateway; -// no external OAuth providers or account registration flows are activated. -container.rebind(AuthEndpoint).toService(SimpleLoginEndpoint); -const credentials = container.get(CredentialsManager); -credentials.getJwtExpiration = async () => '8h'; -const server = container.get(CollaborationServer); -// Call the typed API instead of the 0.3.1 Commander parseInt/radix port bug. -server.startServer({ hostname, port }); diff --git a/apps/ide/collaboration/test/client-factory.test.cjs b/apps/ide/collaboration/test/client-factory.test.cjs deleted file mode 100644 index d26c994..0000000 --- a/apps/ide/collaboration/test/client-factory.test.cjs +++ /dev/null @@ -1,55 +0,0 @@ -const { test } = require('node:test'); -const assert = require('node:assert/strict'); -const { collaborationBase, normalizeAuthMetadata, createPrefixTransport } = require('../client-factory.cjs'); -test('collaboration URLs remain within the authenticated workspace and same origin', () => { - const location = 'https://ide.example/workspaces/alpha/index.html'; - assert.equal( - collaborationBase('https://ide.example/workspaces/alpha/collaboration/', location).pathname, - '/workspaces/alpha/collaboration/', - ); - for (const url of [ - 'https://external.example/workspaces/alpha/collaboration/', - 'https://ide.example/workspaces/beta/collaboration/', - 'https://ide.example/socket.io/', - 'https://ide.example/workspaces/alpha/collaboration/?token=secret', - ]) - assert.throws(() => collaborationBase(url, location)); -}); -test('simple display-name form URL cannot escape the workspace basepath', () => { - const meta = normalizeAuthMetadata({ - providers: [ - { type: 'form', name: 'unverified', endpoint: '/api/login/simple' }, - { type: 'web', name: 'github', endpoint: 'https://external.example' }, - ], - }); - assert.equal(meta.providers.length, 1); - assert.equal( - new URL(meta.providers[0].endpoint, 'https://ide.example/workspaces/alpha/collaboration/').pathname, - '/workspaces/alpha/collaboration/api/login/simple', - ); - assert.throws(() => normalizeAuthMetadata({ providers: [], loginPageUrl: 'https://external.example/login' })); -}); -test('Socket.IO uses origin namespace plus a workspace-specific Engine.IO path', () => { - let observed; - const socket = {}; - const adapter = createPrefixTransport( - { - io: (...args) => { - observed = args; - return socket; - }, - SocketIoTransport: class { - constructor(value) { - this.socket = value; - } - }, - }, - 'https://ide.example/workspaces/alpha/collaboration/', - ); - const transport = adapter.createTransport('ignored', { 'x-oct-jwt': 'room-token' }); - assert.equal(transport.socket, socket); - assert.equal(observed[0], 'https://ide.example'); - assert.equal(observed[1].path, '/workspaces/alpha/collaboration/socket.io'); - assert.deepEqual(observed[1].transports, ['polling', 'websocket']); - assert.equal(observed[1].extraHeaders['x-oct-jwt'], 'room-token'); -}); diff --git a/apps/ide/collaboration/test/isolated-oct.test.mjs b/apps/ide/collaboration/test/isolated-oct.test.mjs deleted file mode 100644 index 53424fe..0000000 --- a/apps/ide/collaboration/test/isolated-oct.test.mjs +++ /dev/null @@ -1,281 +0,0 @@ -import { test } from 'node:test'; -import assert from 'node:assert/strict'; -import http from 'node:http'; -import { randomUUID, webcrypto } from 'node:crypto'; -import { execFile } from 'node:child_process'; -import { promisify } from 'node:util'; -import { createRequire } from 'node:module'; -import { pathToFileURL } from 'node:url'; -import { createGateway } from '../../gateway/server.mjs'; -import factory from '../client-factory.cjs'; -const require = createRequire(new URL('../../package.json', import.meta.url)); -const protocol = await import(pathToFileURL(require.resolve('open-collaboration-protocol')).href); -const { io } = await import(pathToFileURL(require.resolve('socket.io-client')).href); -const { OpenCollaborationYjsProvider } = await import(pathToFileURL(require.resolve('open-collaboration-yjs')).href); -const Y = await import('../../node_modules/yjs/dist/yjs.mjs'); -const { Awareness } = await import('../../node_modules/y-protocols/awareness.js'); -protocol.initializeProtocol({ cryptoModule: webcrypto }); -const execute = promisify(execFile); -const docker = (...args) => - execute('docker', ['--context', process.env.WF_TEST_DOCKER_CONTEXT ?? 'colima', ...args], { timeout: 30_000 }); -const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); -async function until(check, message) { - const end = Date.now() + 10_000; - do { - if (await check()) return; - await sleep(25); - } while (Date.now() < end); - throw new Error(message); -} -async function listen(server) { - await new Promise(resolve => server.listen(0, '127.0.0.1', resolve)); - return `http://127.0.0.1:${server.address().port}`; -} - -test( - 'two isolated OCT instances support scoped Socket.IO/Yjs collaboration and reject invite/token reuse across workspaces', - { skip: process.env.WF_OCT_INTEGRATION !== '1', timeout: 60_000 }, - async () => { - const names = [], - connections = [], - docs = [], - awareness = [], - sockets = []; - let api, gateway; - const revoked = new Set(); - const members = { - alice: { workspace: 'workspace-a', role: 'developer' }, - bob: { workspace: 'workspace-a', role: 'developer' }, - charlie: { workspace: 'workspace-b', role: 'developer' }, - viewer: { workspace: 'workspace-a', role: 'viewer' }, - }; - try { - const origins = {}; - for (const workspace of ['workspace-a', 'workspace-b']) { - const name = `wishforge-oct-test-${randomUUID().slice(0, 8)}`; - names.push(name); - await docker( - 'run', - '-d', - '--rm', - '--name', - name, - '--read-only', - '--cap-drop', - 'ALL', - '--security-opt', - 'no-new-privileges', - '--tmpfs', - '/tmp:rw,noexec,nosuid,size=16m', - '-p', - '127.0.0.1::8100', - '-e', - `WF_WORKSPACE_ID=${workspace}`, - '-e', - 'WF_TENANT_ID=fixture-tenant', - '-e', - 'WISHFORGE_GATEWAY_ENFORCED=true', - 'wishforge/oct-workspace:0.3.1-wf1', - ); - const port = (await docker('port', name, '8100/tcp')).stdout.trim().split(':').at(-1); - origins[workspace] = `http://127.0.0.1:${port}`; - await until(async () => { - try { - return (await fetch(`${origins[workspace]}/api/meta`)).ok; - } catch { - return false; - } - }, 'OCT did not start'); - } - api = http.createServer(async (req, res) => { - let text = ''; - for await (const bytes of req) text += bytes; - const request = JSON.parse(text), - who = members[request.userToken], - workspace = req.url.split('/')[3]; - if (!who || revoked.has(request.userToken) || who.workspace !== workspace) { - res.writeHead(403); - res.end(); - return; - } - assert.equal(request.operation, 'edit'); - res.setHeader('content-type', 'application/json'); - res.end( - JSON.stringify({ - data: { - tenantId: 'fixture-tenant', - projectId: `project-${workspace}`, - workspaceId: workspace, - role: who.role, - upstreamUrl: origins[workspace], - collaborationUpstreamUrl: origins[workspace], - }, - }), - ); - }); - const apiOrigin = await listen(api); - // Reserve a local port before gateway construction, which requires its public origin. - const reserve = http.createServer(); - const publicUrl = await listen(reserve); - await new Promise(resolve => reserve.close(resolve)); - gateway = createGateway({ - publicUrl, - tenantId: 'fixture-tenant', - serviceToken: 'gateway-fixture-token', - apiOrigin, - allowedUpstreamOrigins: Object.values(origins), - allowedCollaborationOrigins: Object.values(origins), - reauthorizeMs: 50, - }); - await new Promise(resolve => gateway.server.listen(Number(new URL(publicUrl).port), '127.0.0.1', resolve)); - async function session(user) { - const workspace = members[user].workspace; - const launch = await fetch(`${publicUrl}/launch`, { - method: 'POST', - headers: { authorization: `Bearer ${user}`, 'content-type': 'application/json' }, - body: JSON.stringify({ workspaceId: workspace }), - }); - if (!launch.ok) return { status: launch.status }; - const { launchUrl } = await launch.json(); - const response = await fetch(launchUrl, { redirect: 'manual' }); - return { status: response.status, cookie: response.headers.get('set-cookie').split(';')[0], workspace }; - } - const alice = await session('alice'), - bob = await session('bob'), - charlie = await session('charlie'); - assert.equal((await session('viewer')).status, 403); - function client(user, displayName) { - const url = `${publicUrl}/workspaces/${user.workspace}/collaboration/`; - const localFetch = (target, init = {}) => - fetch(target, { ...init, headers: { ...init.headers, cookie: user.cookie, origin: publicUrl } }); - return factory.createPrefixConnectionProvider( - { - ...protocol, - io: (origin, options) => { - const socket = io(origin, { - ...options, - withCredentials: false, - extraHeaders: { ...options.extraHeaders, Cookie: user.cookie, Origin: publicUrl }, - }); - sockets.push(socket); - socket.on('connect_error', error => - console.error( - 'OCT socket connection error:', - error.message, - error.description, - error.context?.status, - error.context?.responseText?.slice(0, 300), - ), - ); - return socket; - }, - }, - { - url, - browserLocation: `${publicUrl}/workspaces/${user.workspace}/`, - client: 'WishForge integration', - fetch: localFetch, - authenticationHandler: async (token, metadata) => { - assert.equal(metadata.providers[0].endpoint, 'api/login/simple'); - return ( - await localFetch(new URL(metadata.providers[0].endpoint, url), { - method: 'POST', - headers: { 'content-type': 'application/json' }, - body: JSON.stringify({ token, user: displayName }), - }) - ).ok; - }, - }, - ); - } - const hostProvider = client(alice, 'Host display name'), - guestProvider = client(bob, 'Guest display name'); - const claim = await hostProvider.createRoom({ abortSignal: AbortSignal.timeout(10_000) }); - const host = await hostProvider.connect(claim.roomToken); - connections.push(host); - let hostIdentity; - host.peer.onInfo((_origin, peer) => { - hostIdentity = peer; - }); - host.peer.onJoinRequest(async () => ({ workspace: { name: 'fixture', folders: ['source'] } })); - host.room.onJoin((_origin, peer) => - host.peer.init(peer.id, { - protocol: protocol.VERSION, - host: hostIdentity, - guests: [peer], - permissions: { readonly: false }, - capabilities: {}, - workspace: { name: 'fixture', folders: ['source'] }, - }), - ); - await until(() => !!hostIdentity, 'Host peer did not connect'); - const guestClaim = await guestProvider.joinRoom({ - roomId: claim.roomId, - abortSignal: AbortSignal.timeout(10_000), - }); - const guest = await guestProvider.connect(guestClaim.roomToken, guestClaim.host); - connections.push(guest); - guest.peer.onInfo(() => {}); - let initialized = false; - guest.peer.onInit(() => { - initialized = true; - }); - await until(() => initialized, 'Guest did not receive encrypted initialization'); - for (const connection of [host, guest]) { - const doc = new Y.Doc(); - const state = new Awareness(doc); - docs.push(doc); - awareness.push(state); - const provider = new OpenCollaborationYjsProvider(connection, doc, state); - provider.connect(); - } - docs[0].getText('source/example.ts').insert(0, 'const greeting = "hello";'); - await until( - () => docs[1].getText('source/example.ts').toString().includes('hello'), - 'Host edit did not reach guest', - ); - docs[1].getText('source/example.ts').insert(docs[1].getText('source/example.ts').length, '\n// guest edit'); - await until( - () => docs[0].getText('source/example.ts').toString().includes('guest edit'), - 'Guest edit did not reach host', - ); - assert.equal(docs[0].getText('source/example.ts').toString(), docs[1].getText('source/example.ts').toString()); - assert.equal( - ( - await fetch(`${publicUrl}/workspaces/workspace-a/collaboration/api/meta`, { - headers: { cookie: charlie.cookie }, - }) - ).status, - 401, - ); - const outsider = client(charlie, 'Allowed in other workspace'); - await assert.rejects( - () => outsider.joinRoom({ roomId: claim.roomId, abortSignal: AbortSignal.timeout(5_000) }), - /Room not found/, - ); - const tokenCheck = await fetch(`${origins['workspace-b']}/api/login/validate`, { - method: 'POST', - headers: { 'x-oct-jwt': hostProvider.authToken }, - }); - assert.equal((await tokenCheck.json()).valid, false, 'Per-instance keys must reject another workspace OCT JWT'); - revoked.add('bob'); - await until(() => sockets[1].disconnected, 'Revoked member websocket was not closed'); - assert.equal( - (await fetch(`${publicUrl}/workspaces/workspace-a/collaboration/api/meta`, { headers: { cookie: bob.cookie } })) - .status, - 403, - ); - } catch (error) { - for (const name of names) console.error((await docker('logs', '--tail', '15', name)).stdout); - throw error; - } finally { - for (const state of awareness) state.destroy(); - for (const doc of docs) doc.destroy(); - for (const connection of connections) connection.dispose(); - for (const socket of sockets) socket.disconnect(); - if (gateway) await gateway.close(); - if (api) await new Promise(resolve => api.close(resolve)); - await Promise.all(names.map(name => docker('stop', '-t', '1', name).catch(() => undefined))); - } - }, -); diff --git a/apps/ide/gateway/README.md b/apps/ide/gateway/README.md deleted file mode 100644 index 266cfa0..0000000 --- a/apps/ide/gateway/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# IDE 网关 - -浏览器访问 Theia 的唯一入口,负责 HTTP 与 WebSocket 的身份校验。每个租户运行一个网关。本地用 `npm run dev:ide` 与 Theia 一起启动。 - -| 变量 | 说明 | -|---|---| -| `WF_DEPLOYMENT_MODE` | 只有 `development` 允许 HTTP 公网地址与默认的本机 Theia | -| `WF_API_URL` | 控制面 API 地址 | -| `WF_TENANT_ID` | 网关所属租户 | -| `WF_WORKSPACE_GATEWAY_TOKEN` | 调用 API `/internal/workspaces/*` 的网关令牌 | -| `WF_IDE_PUBLIC_URL` | 浏览器访问网关的地址,生产必须是 HTTPS(Cookie 才会带 Secure) | -| `WF_IDE_ALLOWED_UPSTREAM_ORIGINS` | 允许的 Theia 上游地址(本地为 `http://127.0.0.1:4300`) | -| `WF_IDE_ALLOWED_SERVICE_NAMESPACE` | Kubernetes 中工作区 Service 所在命名空间:上游必须是 `wf-ide-<24 位十六进制>.<命名空间>.svc:3000`,协作端口为 8100 | -| `WF_COLLABORATION_ALLOWED_UPSTREAM_ORIGINS` | 本地允许的协作服务上游 | -| `WF_IDE_GATEWAY_HOST`、`WF_IDE_GATEWAY_PORT` | 监听地址,默认 `127.0.0.1:4400` | - -## 会话 - -1. Web 服务端用用户的 access token 调用 `POST /launch`(body `{workspaceId}`),网关向 API 校验后返回 `launchUrl`,其中只有 30 秒有效的一次性随机码,不含用户令牌。 -2. 浏览器访问 `GET /session?code=…`,网关再次校验、消费启动码,设置不透明的 HttpOnly、SameSite=Strict Cookie 并跳转到 `/workspaces/:id/`。访问日志必须隐去启动码查询串。 -3. 会话空闲 15 分钟失效;每次成功的请求与打开的 WebSocket 的周期复核都会续期,最长 12 小时。会话建立后,网关按已授权的用户 ID 复核,用户的 access token 过期不会中断正在使用的 IDE。 - -## 校验 - -- 每个 HTTP 请求与 WebSocket 握手都以网关令牌和固定的 `X-WishForge-Tenant` 调用 API `POST /internal/workspaces/:id/authorize`。打开的 WebSocket 每秒复核一次(复核超时 3 秒);被拒绝、会话过期、上游变化或控制面不可用时立即断开,因此撤销成员资格后现有连接会被关闭。 -- 上游地址只来自 API 的授权结果,并且必须在允许列表内;调用方不能选择上游,也不能把操作降级为只读。viewer 不能进入编辑会话。 -- 转发前去掉用户凭据、浏览器 Cookie 与调用方伪造的 `x-wishforge-*` 头。Theia 自己的 `theia-connection-token` 保存在网关进程中,不会下发给浏览器,也不会转发给协作服务。 -- `/workspaces/:id/collaboration/*` 把 HTTP 与 Socket.IO 转发到授权结果中该工作区专用的 OCT 实例,每个请求都要求编辑权限。 -- `POST /internal/lifecycle-state`(网关令牌)告诉控制面某个工作区当前的连接数,用于空闲自动暂停。 - -## 仓库凭据 - -- **申请**:会话建立时,以及打开的 WebSocket 复核时令牌快到期(剩 5 分钟),网关以会话用户的身份调用 API `POST /internal/workspaces/:id/git-credential`,取得 15 分钟的仓库令牌。这个令牌只能推送 `ide/` 开头的分支,由平台 Git 执行这条限制。 -- **投递**:网关把令牌交给工作区的 `POST /wishforge-internal/git-credential`,并附带 Theia 的连接令牌(没有就先请求一次 Theia 首页取得;Theia 重启后会自动重新取得)。投递内容还包括项目、仓库地址、目标分支和提交身份。 -- **提交身份**:取最近建立的会话用户,来自 API 首次授权时按 OIDC name/email 给出的 `author`。 -- **失败与例外**:失败时 30 秒后重试。外部仓库的项目 API 返回 409;工作区没有配置仓库时 Theia 返回 404。这两种情况在 30 分钟内不再申请,重新打开 IDE 会立即再试。 -- **路径保护**:浏览器请求 `/workspaces/:id/wishforge-internal/*` 一律返回 404,只有网关自己能投递凭据。 - -## 限制 - -- 会话与启动码保存在进程内存中:网关重启后需要重新打开 IDE;多副本需要共享会话存储或会话亲和。 -- 生产中必须让 Theia 与 OCT 只能经由网关访问,这需要在真实集群上验证网络隔离。 - -## 测试 - -需要先 `npm run ide:install`,然后运行 `npm run test:ide`。 - -- `gateway.test.mjs` 使用真实的本地 HTTP/WebSocket 服务,覆盖凭据不转发、启动码不可重放、viewer 拒绝、上游允许列表、Origin 检查、撤销后断开、使用中的会话续期与生命周期接口。 -- `gateway-handler.test.mjs` 不打开端口,直接驱动网关的请求处理器并使用伪造的 `fetch`,覆盖启动时提交用户令牌、仓库凭据的申请与投递、Theia 重启后重新取得连接令牌、凭据路径对浏览器不可见以及外部仓库不投递。 diff --git a/apps/ide/gateway/git-credentials.mjs b/apps/ide/gateway/git-credentials.mjs deleted file mode 100644 index b9f5189..0000000 --- a/apps/ide/gateway/git-credentials.mjs +++ /dev/null @@ -1,129 +0,0 @@ -// While someone has a workspace open, the gateway keeps its Git credential fresh: the control -// plane mints a short-lived repository token for the session's user, and the gateway hands it -// to the workspace backend, which clones the project on the first delivery. Nothing in the -// workspace can mint a credential itself, so access ends with the last session. -const CONNECTION_COOKIE = 'theia-connection-token'; -export const CREDENTIAL_PATH = '/wishforge-internal/git-credential'; -const REFRESH_BEFORE_MS = 5 * 60_000; -const RETRY_MS = 30_000; -// A project without a platform repository, or a workspace without the endpoint, keeps -// answering the same way; ask again rarely. -const UNSUPPORTED_RETRY_MS = 30 * 60_000; - -export function createGitCredentials(config) { - const fetchImpl = config.fetchImpl ?? fetch; - const now = config.now ?? Date.now; - const state = new Map(); - const authors = new Map(); - - function connectionToken(response) { - for (const cookie of response.headers.getSetCookie?.() ?? []) { - const token = new RegExp(`^${CONNECTION_COOKIE}=([^;\\s]{1,512})(?:;|$)`).exec(cookie)?.[1]; - if (token) return token; - } - return undefined; - } - /** Theia accepts the delivery only with its connection token, which the gateway alone holds. */ - async function bootstrapToken(upstream) { - const response = await fetchImpl(upstream.href, { redirect: 'manual', signal: AbortSignal.timeout(5000) }); - await response.body?.cancel(); - const token = connectionToken(response); - if (token) config.setConnectionToken(upstream.href, token); - return token; - } - async function credentialFor(workspaceId, userId) { - const response = await fetchImpl( - `${config.apiOrigin}/internal/workspaces/${encodeURIComponent(workspaceId)}/git-credential`, - { - method: 'POST', - headers: { - authorization: `Bearer ${config.serviceToken}`, - 'content-type': 'application/json', - 'X-WishForge-Tenant': config.tenantId, - }, - body: JSON.stringify({ userId }), - signal: AbortSignal.timeout(5000), - redirect: 'error', - }, - ); - if (response.status === 409) return { unsupported: true }; - if (!response.ok) throw new Error('GIT_CREDENTIAL_UNAVAILABLE'); - const payload = await response.json(); - return payload.data ?? payload; - } - async function deliver(upstream, body) { - const target = new URL(upstream); - target.pathname = `${target.pathname.replace(/\/$/, '')}${CREDENTIAL_PATH}`; - for (let attempt = 0; attempt < 2; attempt++) { - const token = (attempt === 0 && config.connectionToken(upstream.href)) || (await bootstrapToken(upstream)); - if (!token) throw new Error('WORKSPACE_CONNECTION_TOKEN_UNAVAILABLE'); - const response = await fetchImpl(target, { - method: 'POST', - headers: { 'content-type': 'application/json', cookie: `${CONNECTION_COOKIE}=${token}` }, - body: JSON.stringify(body), - signal: AbortSignal.timeout(10000), - redirect: 'error', - }); - await response.body?.cancel(); - // A restarted Theia has a new connection token; fetch it once and try again. - if (response.status === 403 && attempt === 0) continue; - // A workspace provisioned without the project's repository has no endpoint to deliver to. - if (response.status === 404) return { unsupported: true }; - if (!response.ok) throw new Error('WORKSPACE_GIT_DELIVERY_FAILED'); - return {}; - } - } - async function refresh(workspaceId, upstream, userId) { - const current = state.get(workspaceId); - try { - const credential = await credentialFor(workspaceId, userId); - if (credential.unsupported) { - current.nextAt = now() + UNSUPPORTED_RETRY_MS; - return; - } - const author = authors.get(workspaceId); - const delivered = await deliver(upstream, { - projectId: credential.projectId, - projectName: credential.projectName, - repositoryUrl: credential.repositoryUrl, - branch: credential.branch, - token: credential.token, - expiresAt: credential.expiresAt, - ...(author ? { author } : {}), - }); - current.nextAt = delivered.unsupported - ? now() + UNSUPPORTED_RETRY_MS - : Math.max(now() + 60_000, Date.parse(credential.expiresAt) - REFRESH_BEFORE_MS); - } catch { - current.nextAt = now() + RETRY_MS; - } - } - return { - /** A new session also makes its user the author of the workspace's next commits. */ - opened(session, upstream) { - if (session.author) authors.set(session.workspaceId, session.author); - const current = state.get(session.workspaceId); - if (current) { - current.nextAt = 0; - // A delivery already under way may carry the previous author; send another after it. - if (current.inFlight) current.again = true; - } - return this.due(session, upstream); - }, - /** Called whenever a session is used; refreshes at most one delivery per workspace at a time. */ - due(session, upstream) { - if (!session.userId) return undefined; - const current = state.get(session.workspaceId) ?? { nextAt: 0 }; - state.set(session.workspaceId, current); - if (current.inFlight || now() < current.nextAt) return current.inFlight; - current.inFlight = refresh(session.workspaceId, upstream, session.userId).finally(() => { - current.inFlight = undefined; - if (current.again) { - current.again = false; - current.nextAt = 0; - } - }); - return current.inFlight; - }, - }; -} diff --git a/apps/ide/gateway/main.mjs b/apps/ide/gateway/main.mjs deleted file mode 100644 index 9350dfb..0000000 --- a/apps/ide/gateway/main.mjs +++ /dev/null @@ -1,27 +0,0 @@ -import { createGateway } from './server.mjs'; - -// Fail closed: only an explicit development deployment may use plain HTTP and the local Theia default. -const production = process.env.WF_DEPLOYMENT_MODE !== 'development'; -const publicUrl = process.env.WF_IDE_PUBLIC_URL ?? 'http://127.0.0.1:4400'; -if (production && !publicUrl.startsWith('https://')) throw new Error('Production gateway requires HTTPS public URL'); -const gateway = createGateway({ - publicUrl, - apiOrigin: process.env.WF_API_URL ?? 'http://127.0.0.1:4000', - tenantId: process.env.WF_TENANT_ID ?? 'demo', - serviceToken: process.env.WF_WORKSPACE_GATEWAY_TOKEN, - allowedUpstreamOrigins: (process.env.WF_IDE_ALLOWED_UPSTREAM_ORIGINS ?? (production ? '' : 'http://127.0.0.1:4300')) - .split(',') - .filter(Boolean), - allowedServiceNamespace: process.env.WF_IDE_ALLOWED_SERVICE_NAMESPACE, - allowedCollaborationOrigins: (process.env.WF_COLLABORATION_ALLOWED_UPSTREAM_ORIGINS ?? '').split(',').filter(Boolean), -}); -gateway.server.listen( - Number(process.env.WF_IDE_GATEWAY_PORT ?? 4400), - process.env.WF_IDE_GATEWAY_HOST ?? '127.0.0.1', - () => console.log(`Workspace gateway listening at ${publicUrl}`), -); -for (const signal of ['SIGTERM', 'SIGINT']) - process.on(signal, async () => { - await gateway.close(); - process.exit(0); - }); diff --git a/apps/ide/gateway/package-lock.json b/apps/ide/gateway/package-lock.json deleted file mode 100644 index 1d2610e..0000000 --- a/apps/ide/gateway/package-lock.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "@wishforge/ide-gateway", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@wishforge/ide-gateway", - "version": "0.1.0", - "dependencies": { - "ws": "8.21.0" - } - }, - "node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", - "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 - } - } - } - } -} diff --git a/apps/ide/gateway/package.json b/apps/ide/gateway/package.json deleted file mode 100644 index 8ab3f04..0000000 --- a/apps/ide/gateway/package.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "@wishforge/ide-gateway", - "version": "0.1.0", - "private": true, - "type": "module", - "scripts": { - "start": "node main.mjs", - "test": "node --test test/*.test.mjs" - }, - "dependencies": { - "ws": "8.21.0" - } -} diff --git a/apps/ide/gateway/server.mjs b/apps/ide/gateway/server.mjs deleted file mode 100644 index e44a787..0000000 --- a/apps/ide/gateway/server.mjs +++ /dev/null @@ -1,483 +0,0 @@ -import http from 'node:http'; -import https from 'node:https'; -import { randomBytes, timingSafeEqual } from 'node:crypto'; -import { WebSocket, WebSocketServer } from 'ws'; -import { createGitCredentials, CREDENTIAL_PATH } from './git-credentials.mjs'; - -const COOKIE = 'WF_IDE_SESSION'; -const ID = /^[a-zA-Z0-9_-]{1,128}$/; -// The roles defined by @wishforge/contracts that may edit, use terminals and debug. -const EDIT_ROLES = new Set(['owner', 'admin', 'developer']); -class HttpError extends Error { - constructor(status, message) { - super(message); - this.status = status; - } -} -const random = () => randomBytes(32).toString('base64url'); -/** The commit identity the control plane derived from the person's sign-in, if it is usable. */ -function validAuthor(author) { - const text = value => - typeof value === 'string' && value.length > 0 && value.length <= 200 && !/[\u0000-\u001f\u007f<>]/.test(value); - return author && text(author.name) && text(author.email) && /^[^\s@]+@[^\s@]+$/.test(author.email) - ? { name: author.name, email: author.email } - : undefined; -} - -export function createGateway(config) { - const publicUrl = new URL(config.publicUrl); - if ( - !['http:', 'https:'].includes(publicUrl.protocol) || - publicUrl.pathname !== '/' || - publicUrl.search || - publicUrl.username || - publicUrl.password - ) - throw new Error('publicUrl must be an HTTP(S) origin'); - if (!ID.test(config.tenantId) || !config.serviceToken) - throw new Error('A fixed tenantId and gateway serviceToken are required'); - const upstreamOrigins = new Set(config.allowedUpstreamOrigins); - const collaborationOrigins = new Set(config.allowedCollaborationOrigins ?? []); - const serviceNamespace = config.allowedServiceNamespace; - if (serviceNamespace && (!/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/.test(serviceNamespace) || serviceNamespace.length > 63)) - throw new Error('Invalid service namespace'); - if (!upstreamOrigins.size && !serviceNamespace) throw new Error('Explicit upstream allowlist required'); - const fetchImpl = config.fetchImpl ?? fetch; - const sessions = new Map(); - const launches = new Map(); - // Theia's own process token is distinct from the caller's authentication. - // Keep it server-side, scoped to an allowed upstream, never in browser cookies. - const upstreamTokens = new Map(); - const sockets = new Set(); - const workspaceSockets = new Map(); - const rawSockets = new Set(); - // A session ends after 15 idle minutes; while it is used it is renewed, for at most 12 hours. - const sessionTtl = Math.min(config.sessionTtlMs ?? 900000, 900000); - const sessionMaxMs = Math.min(config.sessionMaxMs ?? 12 * 3600_000, 12 * 3600_000); - const pollMs = Math.min(config.reauthorizeMs ?? 1000, 1000); - // An upstream that stays silent this long is given up. OCT holds each login poll open for 30 s - // before answering, so collaboration requests get longer than that. - const upstreamTimeoutMs = config.upstreamTimeoutMs ?? 30_000; - const collaborationTimeoutMs = Math.max(upstreamTimeoutMs, 65_000); - const now = () => Date.now(); - const purge = () => { - for (const map of [sessions, launches]) - for (const [key, value] of map) if (value.expiresAt <= now()) map.delete(key); - }; - const timer = setInterval(purge, 5000); - timer.unref(); - // One person cannot use up the capacity everyone shares: beyond these, their own oldest - // launch code or session ends. An ended session's open connections close at their next check. - const LAUNCHES_PER_USER = 20, - SESSIONS_PER_USER = 20; - const keepNewest = (map, userId, limit, age) => { - const own = [...map].filter(([, value]) => value.userId === userId).sort(([, a], [, b]) => age(a) - age(b)); - for (const [key, value] of own.slice(0, Math.max(0, own.length - limit))) { - value.expiresAt = 0; - map.delete(key); - } - }; - const wss = new WebSocketServer({ noServer: true, maxPayload: 16 * 1024 * 1024, perMessageDeflate: false }); - const gitCredentials = createGitCredentials({ - apiOrigin: config.apiOrigin, - tenantId: config.tenantId, - serviceToken: config.serviceToken, - fetchImpl, - now, - connectionToken: href => upstreamTokens.get(href), - setConnectionToken: (href, token) => upstreamTokens.set(href, token), - }); - - /** - * `credential` is the user's access token for a new session, or the user id an established - * session was granted to: the API still checks the current membership and role each time. - */ - async function authorize(workspaceId, credential, operation, collaboration = false) { - const { userToken, userId } = credential; - if (!ID.test(workspaceId) || (!userToken && !userId) || (userToken?.length ?? 0) > 16384) - throw new HttpError(401, 'Authentication required'); - let response; - try { - response = await fetchImpl( - `${config.apiOrigin}/internal/workspaces/${encodeURIComponent(workspaceId)}/authorize`, - { - method: 'POST', - headers: { - authorization: `Bearer ${config.serviceToken}`, - 'content-type': 'application/json', - 'X-WishForge-Tenant': config.tenantId, - }, - body: JSON.stringify(userId ? { userId, operation } : { userToken, operation }), - signal: AbortSignal.timeout(3000), - redirect: 'error', - }, - ); - } catch { - throw new HttpError(503, 'Workspace authorization unavailable'); - } - if (!response.ok) - throw new HttpError([401, 403, 404].includes(response.status) ? response.status : 503, 'Workspace access denied'); - const payload = await response.json(); - const grant = payload.data ?? payload; - if ( - grant.tenantId !== config.tenantId || - grant.workspaceId !== workspaceId || - !grant.projectId || - !EDIT_ROLES.has(grant.role) - ) - throw new HttpError(403, 'Workspace grant mismatch'); - let upstream; - try { - upstream = new URL(collaboration ? grant.collaborationUpstreamUrl : grant.upstreamUrl); - } catch { - throw new HttpError(502, 'Invalid workspace upstream'); - } - const origins = collaboration ? collaborationOrigins : upstreamOrigins; - const serviceAllowed = - serviceNamespace && - upstream.protocol === 'http:' && - upstream.port === (collaboration ? '8100' : '3000') && - new RegExp(`^wf-ide-[a-f0-9]{24}\\.${serviceNamespace}\\.svc(?:\\.cluster\\.local)?$`).test(upstream.hostname); - if ( - (!origins.has(upstream.origin) && !serviceAllowed) || - !['http:', 'https:'].includes(upstream.protocol) || - upstream.username || - upstream.password || - upstream.search || - upstream.hash - ) - throw new HttpError(502, 'Workspace upstream is not permitted'); - return { ...grant, upstream }; - } - /** Checks access for a request or socket, and renews a cookie session that is in use. */ - async function authorizeSession(session, workspaceId, operation, collaboration) { - const grant = await authorize( - workspaceId, - session.userId ? { userId: session.userId } : { userToken: session.userToken }, - operation, - collaboration, - ); - if (session.createdAt !== undefined) { - if (session.userId === undefined) session.userId = grant.userId; - else if (session.userId !== grant.userId) throw new HttpError(403, 'Workspace grant mismatch'); - session.expiresAt = Math.min(now() + sessionTtl, session.createdAt + sessionMaxMs); - } - return grant; - } - function tokenFor(req, workspaceId) { - const authorization = req.headers.authorization; - if (authorization?.startsWith('Bearer ')) - return { userToken: authorization.slice(7), expiresAt: Number.MAX_SAFE_INTEGER }; - const opaque = req.headers.cookie - ?.split(';') - .map(v => v.trim()) - .find(v => v.startsWith(`${COOKIE}=`)) - ?.slice(COOKIE.length + 1); - const session = opaque && sessions.get(opaque); - if (!session || session.expiresAt <= now() || session.workspaceId !== workspaceId) - throw new HttpError(401, 'Launch an authenticated IDE session'); - return session; - } - function originCheck(req, required = false) { - if ((required && !req.headers.origin) || (req.headers.origin && req.headers.origin !== publicUrl.origin)) - throw new HttpError(403, 'Origin not allowed'); - } - function route(req) { - const parsed = new URL(req.url, publicUrl); - const match = parsed.pathname.match(/^\/workspaces\/([a-zA-Z0-9_-]{1,128})(\/.*)?$/); - if (!match) throw new HttpError(404, 'Workspace route not found'); - let suffix = match[2] ?? '/'; - // Only the gateway itself delivers Git credentials to the workspace backend. Theia's - // Express routes ignore case, so this check does too. - const internal = suffix.toLowerCase(); - if ( - internal === CREDENTIAL_PATH || - internal === '/wishforge-internal' || - internal.startsWith('/wishforge-internal/') - ) - throw new HttpError(404, 'Workspace route not found'); - const collaboration = suffix === '/collaboration' || suffix.startsWith('/collaboration/'); - if (collaboration) suffix = suffix.slice('/collaboration'.length) || '/'; - // Multiplexed Theia services need edit permission. Callers cannot downgrade - // this to preview by supplying a query parameter or header. - const operation = collaboration - ? 'edit' - : /\/terminals?(?:\/|$)/.test(suffix) - ? 'terminal' - : /\/debug(?:\/|$)/.test(suffix) - ? 'debug' - : 'edit'; - return { workspaceId: match[1], suffix, query: parsed.search, operation, collaboration }; - } - function targetFor(grant, routing) { - const target = new URL(grant.upstream); - target.pathname = `${target.pathname.replace(/\/$/, '')}${routing.suffix}`; - target.search = routing.query; - return target; - } - function proxyHeaders(req, target, grant) { - const headers = { ...req.headers }; - for (const key of Object.keys(headers)) - if ( - [ - 'authorization', - 'cookie', - 'connection', - 'upgrade', - 'proxy-authorization', - 'proxy-authenticate', - 'te', - 'trailer', - 'transfer-encoding', - ].includes(key) || - key.startsWith('x-forwarded-') || - key.startsWith('x-wishforge-') || - key.startsWith('sec-websocket-') - ) - delete headers[key]; - headers.host = target.host; - headers.origin = target.origin; - headers['x-forwarded-host'] = publicUrl.host; - headers['x-forwarded-proto'] = publicUrl.protocol.slice(0, -1); - headers['x-wishforge-tenant'] = grant.tenantId; - headers['x-wishforge-workspace'] = grant.workspaceId; - const token = upstreamTokens.get(grant.upstream.href); - if (token) headers.cookie = `theia-connection-token=${token}`; - return headers; - } - function fail(res, error) { - if (res.headersSent) { - res.destroy(); - return; - } - res.writeHead(error.status ?? 500, { - 'content-type': 'application/json', - 'cache-control': 'no-store', - 'referrer-policy': 'no-referrer', - }); - res.end(JSON.stringify({ error: error.status ? error.message : 'Gateway error' })); - } - async function readJson(req) { - let body = ''; - for await (const chunk of req) { - body += chunk; - if (body.length > 2048) throw new HttpError(413, 'Request too large'); - } - try { - return JSON.parse(body); - } catch { - throw new HttpError(400, 'Invalid JSON'); - } - } - const server = http.createServer(async (req, res) => { - try { - const url = new URL(req.url, publicUrl); - if (url.pathname === '/healthz' && req.method === 'GET') { - res.writeHead(200); - res.end('ok'); - return; - } - // The control plane asks whether a workspace is idle before pausing it automatically. - // Only this gateway knows how many browser connections are open. - if (url.pathname === '/internal/lifecycle-state' && req.method === 'POST') { - const supplied = req.headers.authorization?.startsWith('Bearer ') ? req.headers.authorization.slice(7) : ''; - const expected = Buffer.from(config.serviceToken), - actual = Buffer.from(supplied); - if (actual.length !== expected.length || !timingSafeEqual(actual, expected)) - throw new HttpError(401, 'Service authentication required'); - const body = await readJson(req); - if (body.tenantId !== config.tenantId || !ID.test(body.workspaceId ?? '')) - throw new HttpError(400, 'Invalid workspace scope'); - res.writeHead(200, { 'content-type': 'application/json', 'cache-control': 'no-store' }); - res.end( - JSON.stringify({ - workspaceId: body.workspaceId, - known: true, - gatewayConnections: workspaceSockets.get(body.workspaceId)?.size ?? 0, - }), - ); - return; - } - if (url.pathname === '/launch' && req.method === 'POST') { - originCheck(req); - const userToken = req.headers.authorization?.startsWith('Bearer ') - ? req.headers.authorization.slice(7) - : undefined; - const body = await readJson(req); - if (!body || Object.keys(body).some(key => key !== 'workspaceId') || !ID.test(body.workspaceId ?? '')) - throw new HttpError(400, 'workspaceId is required'); - const { userId } = await authorize(body.workspaceId, { userToken }, 'edit'); - purge(); - keepNewest(launches, userId, LAUNCHES_PER_USER - 1, launch => launch.expiresAt); - if (launches.size >= 1000 || sessions.size >= 1000) throw new HttpError(429, 'Session capacity reached'); - const code = random(); - launches.set(code, { workspaceId: body.workspaceId, userToken, userId, expiresAt: now() + 30000 }); - res.writeHead(200, { - 'content-type': 'application/json', - 'cache-control': 'no-store', - 'referrer-policy': 'no-referrer', - }); - res.end( - JSON.stringify({ launchUrl: `${publicUrl.origin}/session?code=${encodeURIComponent(code)}`, expiresIn: 30 }), - ); - return; - } - if (url.pathname === '/session' && req.method === 'GET') { - const code = url.searchParams.get('code'); - const launch = launches.get(code); - launches.delete(code); - if (!launch || launch.expiresAt <= now()) throw new HttpError(401, 'Launch code is invalid or expired'); - const grant = await authorize(launch.workspaceId, { userToken: launch.userToken }, 'edit'); - if (typeof grant.userId !== 'string' || !grant.userId) throw new HttpError(403, 'Workspace grant mismatch'); - const opaque = random(); - // The token was just checked; the session keeps only the person it was granted to. - const session = { - workspaceId: launch.workspaceId, - userId: grant.userId, - author: validAuthor(grant.author), - createdAt: now(), - expiresAt: now() + sessionTtl, - }; - sessions.set(opaque, session); - keepNewest(sessions, session.userId, SESSIONS_PER_USER, value => value.createdAt); - void gitCredentials.opened(session, grant.upstream); - res.writeHead(303, { - location: `/workspaces/${launch.workspaceId}/`, - 'set-cookie': `${COOKIE}=${opaque}; HttpOnly; SameSite=Strict; Path=/workspaces/${launch.workspaceId}/; Max-Age=${Math.floor(sessionMaxMs / 1000)}${publicUrl.protocol === 'https:' ? '; Secure' : ''}`, - 'cache-control': 'no-store', - 'referrer-policy': 'no-referrer', - }); - res.end(); - return; - } - originCheck(req); - const routing = route(req); - const session = tokenFor(req, routing.workspaceId); - const grant = await authorizeSession(session, routing.workspaceId, routing.operation, routing.collaboration); - const target = targetFor(grant, routing); - const proxy = (target.protocol === 'https:' ? https : http).request( - target, - { method: req.method, headers: proxyHeaders(req, target, grant) }, - upstream => { - const headers = { ...upstream.headers, 'referrer-policy': 'no-referrer', 'cache-control': 'no-store' }; - for (const cookie of upstream.headers['set-cookie'] ?? []) { - const token = /^theia-connection-token=([^;\s]{1,512})(?:;|$)/.exec(cookie)?.[1]; - if (token) upstreamTokens.set(grant.upstream.href, token); - } - delete headers['set-cookie']; - if (headers.location) { - const location = new URL(headers.location, target); - if (location.origin === target.origin) - headers.location = `/workspaces/${routing.workspaceId}${routing.collaboration ? '/collaboration' : ''}${location.pathname}${location.search}${location.hash}`; - } - res.writeHead(upstream.statusCode ?? 502, headers); - upstream.pipe(res); - }, - ); - proxy.on('error', () => fail(res, new HttpError(502, 'Workspace upstream unavailable'))); - proxy.setTimeout(routing.collaboration ? collaborationTimeoutMs : upstreamTimeoutMs, () => proxy.destroy()); - req.on('aborted', () => proxy.destroy()); - res.on('close', () => proxy.destroy()); - req.pipe(proxy); - } catch (error) { - fail(res, error); - } - }); - server.on('connection', socket => { - rawSockets.add(socket); - socket.once('close', () => rawSockets.delete(socket)); - }); - server.on('upgrade', async (req, socket, head) => { - socket.on('error', () => {}); - try { - originCheck(req, !req.headers.authorization); - const routing = route(req); - const session = tokenFor(req, routing.workspaceId); - const grant = await authorizeSession(session, routing.workspaceId, routing.operation, routing.collaboration); - const target = targetFor(grant, routing); - target.protocol = target.protocol === 'https:' ? 'wss:' : 'ws:'; - const protocols = req.headers['sec-websocket-protocol'] - ?.split(',') - .map(p => p.trim()) - .filter(Boolean); - const upstream = new WebSocket(target, protocols, { - headers: proxyHeaders(req, grant.upstream, grant), - maxPayload: 16 * 1024 * 1024, - handshakeTimeout: 5000, - perMessageDeflate: false, - }); - let accepted = false; - upstream.once('error', () => { - if (!accepted) socket.destroy(); - }); - socket.once('close', () => { - if (!accepted) upstream.terminate(); - }); - upstream.once('open', () => - wss.handleUpgrade(req, socket, head, client => { - accepted = true; - sockets.add(client); - const workspaceSet = workspaceSockets.get(routing.workspaceId) ?? new Set(); - workspaceSockets.set(routing.workspaceId, workspaceSet); - workspaceSet.add(client); - const close = () => { - clearInterval(poll); - sockets.delete(client); - workspaceSet.delete(client); - if (!workspaceSet.size) workspaceSockets.delete(routing.workspaceId); - client.terminate(); - upstream.terminate(); - }; - client.on('message', (data, binary) => { - if (upstream.readyState === WebSocket.OPEN) upstream.send(data, { binary }); - }); - upstream.on('message', (data, binary) => { - if (client.readyState === WebSocket.OPEN) client.send(data, { binary }); - }); - if (!routing.collaboration) void gitCredentials.due(session, grant.upstream); - client.on('close', close); - upstream.on('close', close); - client.on('error', close); - upstream.on('error', close); - let checking = false; - const poll = setInterval(async () => { - if (checking) return; - checking = true; - try { - if (session.expiresAt <= now()) throw new Error('Session expired'); - const fresh = await authorizeSession( - session, - routing.workspaceId, - routing.operation, - routing.collaboration, - ); - if (fresh.upstream.href !== grant.upstream.href) throw new Error('Workspace moved'); - if (!routing.collaboration) void gitCredentials.due(session, fresh.upstream); - } catch { - close(); - } finally { - checking = false; - } - }, pollMs); - poll.unref(); - }), - ); - } catch (error) { - socket.end(`HTTP/1.1 ${error.status ?? 500} Access Denied\r\nConnection: close\r\n\r\n`); - } - }); - server.on('close', () => { - clearInterval(timer); - for (const client of sockets) client.terminate(); - wss.close(); - }); - return { - server, - close: async () => { - for (const client of sockets) client.terminate(); - for (const socket of rawSockets) socket.destroy(); - await new Promise(resolve => server.close(resolve)); - }, - sessionCount: () => sessions.size, - }; -} diff --git a/apps/ide/gateway/test/gateway-handler.test.mjs b/apps/ide/gateway/test/gateway-handler.test.mjs deleted file mode 100644 index 8bd01b3..0000000 --- a/apps/ide/gateway/test/gateway-handler.test.mjs +++ /dev/null @@ -1,215 +0,0 @@ -import test from 'node:test'; -import assert from 'node:assert/strict'; -import { Readable } from 'node:stream'; -import { createGateway } from '../server.mjs'; - -// These drive the gateway's request handler directly with a fake fetch, so they also run where -// opening sockets is not permitted. gateway.test.mjs covers proxying over real connections. -const publicUrl = 'http://gateway.test:4400'; -const apiOrigin = 'http://api.test:4000'; -const upstreamUrl = 'http://theia.test:3000/'; - -function fakeFetch(options = {}) { - const state = { calls: [], deliveries: [], connectionToken: 'connection-token-1', rejectDelivery: 0 }; - const json = (value, status = 200) => - new Response(JSON.stringify(value), { status, headers: { 'content-type': 'application/json' } }); - state.fetch = async (input, init = {}) => { - const url = String(input); - const body = init.body ? JSON.parse(init.body) : undefined; - state.calls.push({ url, method: init.method ?? 'GET', headers: init.headers ?? {}, body }); - if (url === `${apiOrigin}/internal/workspaces/w1/authorize`) - return json({ - data: { - tenantId: 'tenant-a', - projectId: 'p1', - workspaceId: 'w1', - // The launch presents a person's token; later checks name the person it was granted to. - userId: body.userToken ? (options.userFor?.(body.userToken) ?? 'authenticated-user') : body.userId, - role: 'developer', - upstreamUrl, - ...(body.userToken ? { author: { name: 'Ada Lovelace', email: 'ada@example.com' } } : {}), - }, - }); - if (url === `${apiOrigin}/internal/workspaces/w1/git-credential`) { - if (options.unsupported) return json({ error: 'WORKSPACE_REPOSITORY_UNSUPPORTED' }, 409); - return json({ - data: { - projectId: 'p1', - projectName: 'Todo App', - repositoryUrl: 'https://git.test/git/tenant-a/p1.git', - branch: 'main', - token: 'payload.signature', - expiresAt: new Date(Date.now() + 900_000).toISOString(), - }, - }); - } - if (url === upstreamUrl) - return new Response('', { - headers: { 'set-cookie': `theia-connection-token=${state.connectionToken}; HttpOnly; SameSite=Strict; Path=/` }, - }); - if (url === `${upstreamUrl}wishforge-internal/git-credential`) { - if (state.rejectDelivery > 0 || init.headers.cookie !== `theia-connection-token=${state.connectionToken}`) { - state.rejectDelivery -= 1; - return new Response('', { status: 403 }); - } - state.deliveries.push({ cookie: init.headers.cookie, body }); - return json({ status: 'cloning' }); - } - throw new Error(`Unexpected fetch ${url}`); - }; - return state; -} - -function send(gateway, { method = 'GET', url, headers = {}, body }) { - const req = Readable.from(body === undefined ? [] : [Buffer.from(JSON.stringify(body))]); - Object.assign(req, { method, url, headers: { host: 'gateway.test:4400', ...headers } }); - return new Promise(resolve => { - const res = { - headersSent: false, - writeHead(status, responseHeaders = {}) { - this.status = status; - this.headers = responseHeaders; - this.headersSent = true; - return this; - }, - end(chunk) { - resolve({ status: this.status, headers: this.headers, body: chunk ? String(chunk) : '' }); - }, - destroy() { - resolve({ status: 0, headers: {}, body: '' }); - }, - on() { - return this; - }, - }; - gateway.server.emit('request', req, res); - }); -} - -async function eventually(check) { - for (let i = 0; i < 100; i++) { - if (check()) return; - await new Promise(resolve => setTimeout(resolve, 5)); - } - assert.fail('condition was not reached'); -} - -function setup(t, options) { - const state = fakeFetch(options); - const gateway = createGateway({ - publicUrl, - apiOrigin, - tenantId: 'tenant-a', - serviceToken: 'gateway-secret', - allowedUpstreamOrigins: [new URL(upstreamUrl).origin], - fetchImpl: state.fetch, - }); - t.after(() => gateway.close()); - return { gateway, state }; -} - -async function launch(gateway, token = 'user-token') { - const response = await send(gateway, { - method: 'POST', - url: '/launch', - headers: { origin: publicUrl, authorization: `Bearer ${token}`, 'content-type': 'application/json' }, - body: { workspaceId: 'w1' }, - }); - assert.equal(response.status, 200, response.body); - return new URL(JSON.parse(response.body).launchUrl).searchParams.get('code'); -} -const redeem = (gateway, code) => send(gateway, { url: `/session?code=${encodeURIComponent(code)}` }); - -async function openSession(gateway, token) { - const session = await redeem(gateway, await launch(gateway, token)); - assert.equal(session.status, 303, session.body); - return session.headers['set-cookie'].split(';')[0]; -} - -test('launching presents the person’s token, and the session keeps only who it was granted to', async t => { - const { gateway, state } = setup(t); - await openSession(gateway); - const checks = state.calls.filter(call => call.url.endsWith('/authorize')); - assert.deepEqual( - checks.map(call => call.body), - [ - { userToken: 'user-token', operation: 'edit' }, - { userToken: 'user-token', operation: 'edit' }, - ], - ); - assert.equal(checks[0].headers.authorization, 'Bearer gateway-secret'); -}); - -test('a new session delivers a fresh repository credential and its author to the workspace', async t => { - const { gateway, state } = setup(t); - await openSession(gateway); - await eventually(() => state.deliveries.length === 1); - const minted = state.calls.find(call => call.url.endsWith('/git-credential')); - assert.deepEqual(minted.body, { userId: 'authenticated-user' }); - assert.equal(minted.headers['X-WishForge-Tenant'], 'tenant-a'); - const [delivery] = state.deliveries; - assert.equal(delivery.cookie, 'theia-connection-token=connection-token-1'); - assert.deepEqual(delivery.body, { - projectId: 'p1', - projectName: 'Todo App', - repositoryUrl: 'https://git.test/git/tenant-a/p1.git', - branch: 'main', - token: 'payload.signature', - expiresAt: delivery.body.expiresAt, - author: { name: 'Ada Lovelace', email: 'ada@example.com' }, - }); -}); - -test('a restarted workspace gets the delivery after the gateway fetches its new connection token', async t => { - const { gateway, state } = setup(t); - state.rejectDelivery = 1; - await openSession(gateway); - await eventually(() => state.deliveries.length === 1); - assert.equal(state.calls.filter(call => call.url === upstreamUrl).length, 2); -}); - -test('people cannot reach the credential endpoint of the workspace through the gateway', async t => { - const { gateway, state } = setup(t); - const cookie = await openSession(gateway); - await eventually(() => state.deliveries.length === 1); - const before = state.calls.length; - for (const path of [ - '/workspaces/w1/wishforge-internal/git-credential', - '/workspaces/w1/wishforge-internal/other', - '/workspaces/w1/wishforge-internal', - // Theia's Express routes match regardless of case. - '/workspaces/w1/Wishforge-Internal/git-credential', - '/workspaces/w1/WISHFORGE-INTERNAL/GIT-CREDENTIAL', - ]) { - const response = await send(gateway, { method: 'POST', url: path, headers: { origin: publicUrl, cookie } }); - assert.equal(response.status, 404); - } - assert.equal(state.calls.length, before); -}); - -test('a project without a platform repository is not delivered anything', async t => { - const { gateway, state } = setup(t, { unsupported: true }); - await openSession(gateway); - await eventually(() => state.calls.some(call => call.url.endsWith('/git-credential'))); - await new Promise(resolve => setTimeout(resolve, 20)); - assert.equal(state.deliveries.length, 0); - assert.equal( - state.calls.some(call => call.url.startsWith(upstreamUrl)), - false, - ); -}); - -test('one person cannot use up the capacity everyone shares; their own oldest codes and sessions end', async t => { - const { gateway } = setup(t, { userFor: token => (token === 'other-token' ? 'other-user' : 'authenticated-user') }); - const codes = []; - for (let i = 0; i < 21; i++) codes.push(await launch(gateway)); - assert.equal((await redeem(gateway, codes[0])).status, 401); - const cookies = []; - for (let i = 0; i < 21; i++) cookies.push(await openSession(gateway)); - assert.equal(gateway.sessionCount(), 20); - const page = cookie => send(gateway, { url: '/workspaces/w1/', headers: { origin: publicUrl, cookie } }); - assert.equal((await page(cookies[0])).status, 401); - // Someone else still gets in. - await openSession(gateway, 'other-token'); - assert.equal(gateway.sessionCount(), 21); -}); diff --git a/apps/ide/gateway/test/gateway.test.mjs b/apps/ide/gateway/test/gateway.test.mjs deleted file mode 100644 index 1b52e4d..0000000 --- a/apps/ide/gateway/test/gateway.test.mjs +++ /dev/null @@ -1,307 +0,0 @@ -import test from 'node:test'; -import assert from 'node:assert/strict'; -import http from 'node:http'; -import { once } from 'node:events'; -import { WebSocket, WebSocketServer } from 'ws'; -import { createGateway } from '../server.mjs'; - -async function listen(server) { - server.listen(0, '127.0.0.1'); - await once(server, 'listening'); - return `http://127.0.0.1:${server.address().port}`; -} -async function fixture(t, options = {}) { - const state = { revoked: false, role: 'developer', calls: [], credentialRequests: [], receivedHeaders: undefined }; - const upstream = http.createServer(async (req, res) => { - state.receivedHeaders = req.headers; - // Like OCT's login poll, which answers only after holding the request open. - if (state.delayMs && (req.url === '/slow' || req.url.startsWith('/api/login/poll/'))) - await new Promise(resolve => setTimeout(resolve, state.delayMs)); - if (state.connectionToken) { - res.setHeader('set-cookie', `theia-connection-token=${state.connectionToken}; HttpOnly; SameSite=Strict; Path=/`); - if (req.url === '/protected' && req.headers.cookie !== `theia-connection-token=${state.connectionToken}`) { - res.writeHead(403); - res.end(); - return; - } - } - res.writeHead(200, { 'content-type': 'application/json' }); - res.end(JSON.stringify({ path: req.url })); - }); - const websocket = new WebSocketServer({ server: upstream }); - websocket.on('connection', socket => socket.on('message', (data, binary) => socket.send(data, { binary }))); - const upstreamUrl = await listen(upstream); - state.upstreamUrl = upstreamUrl; - state.collaborationUpstreamUrl = upstreamUrl; - const auth = http.createServer(async (req, res) => { - let raw = ''; - for await (const part of req) raw += part; - const body = JSON.parse(raw); - // Repository credentials are covered by gateway-handler.test.mjs; this project has none, - // so the gateway never contacts Theia on its own here. - if (req.url.endsWith('/git-credential')) { - state.credentialRequests.push(body); - res.writeHead(409); - res.end(); - return; - } - state.calls.push({ path: req.url, headers: req.headers, body }); - // A new session presents the user's token; an established one names the granted user. - if (state.revoked || (body.userToken !== 'user-token' && body.userId !== 'authenticated-user')) { - res.writeHead(403); - res.end(); - return; - } - res.writeHead(200, { 'content-type': 'application/json' }); - res.end( - JSON.stringify({ - data: { - tenantId: 'tenant-a', - projectId: 'p1', - workspaceId: 'w1', - userId: 'authenticated-user', - role: state.role, - upstreamUrl: state.upstreamUrl, - collaborationUpstreamUrl: state.collaborationUpstreamUrl, - }, - }), - ); - }); - const apiOrigin = await listen(auth); - // Reserve a local port, then bind the gateway with its actual public origin. - const reservation = http.createServer(); - const publicUrl = await listen(reservation); - await new Promise(r => reservation.close(r)); - const gateway = createGateway({ - publicUrl, - apiOrigin, - tenantId: 'tenant-a', - serviceToken: 'gateway-secret', - allowedUpstreamOrigins: [upstreamUrl], - allowedCollaborationOrigins: [upstreamUrl], - reauthorizeMs: 50, - ...options, - }); - gateway.server.listen(Number(new URL(publicUrl).port), '127.0.0.1'); - await once(gateway.server, 'listening'); - t.after(async () => { - await gateway.close(); - for (const socket of websocket.clients) socket.terminate(); - websocket.close(); - await Promise.all([new Promise(r => upstream.close(r)), new Promise(r => auth.close(r))]); - }); - const requestLaunch = () => - fetch(`${publicUrl}/launch`, { - method: 'POST', - headers: { authorization: 'Bearer user-token', 'content-type': 'application/json' }, - body: JSON.stringify({ workspaceId: 'w1' }), - }); - async function session() { - const response = await requestLaunch(); - assert.equal(response.status, 200); - const { launchUrl } = await response.json(); - assert.ok(!launchUrl.includes('user-token')); - const exchanged = await fetch(launchUrl, { redirect: 'manual' }); - assert.equal(exchanged.status, 303); - return { launchUrl, exchanged, cookie: exchanged.headers.get('set-cookie').split(';')[0] }; - } - return { state, publicUrl, requestLaunch, session }; -} - -test('gives up on a silent Theia upstream but waits out an OCT login poll', async t => { - const f = await fixture(t, { upstreamTimeoutMs: 100 }); - const s = await f.session(); - f.state.delayMs = 400; - const headers = { cookie: s.cookie, origin: f.publicUrl }; - assert.equal((await fetch(`${f.publicUrl}/workspaces/w1/slow`, { headers })).status, 502); - const poll = await fetch(`${f.publicUrl}/workspaces/w1/collaboration/api/login/poll/token-1`, { - method: 'POST', - headers, - }); - assert.equal(poll.status, 200); - assert.deepEqual(await poll.json(), { path: '/api/login/poll/token-1' }); -}); - -test('requires authentication, exchanges a one-time code, and never forwards bearer/cookie', async t => { - const f = await fixture(t); - assert.equal((await fetch(`${f.publicUrl}/workspaces/w1/`)).status, 401); - const s = await f.session(); - assert.match(s.exchanged.headers.get('set-cookie'), /HttpOnly/); - assert.match(s.exchanged.headers.get('set-cookie'), /SameSite=Strict/); - assert.equal(s.exchanged.headers.get('referrer-policy'), 'no-referrer'); - assert.equal((await fetch(s.launchUrl, { redirect: 'manual' })).status, 401); - const response = await fetch(`${f.publicUrl}/workspaces/w1/file?name=test`, { headers: { cookie: s.cookie } }); - assert.equal(response.status, 200); - assert.deepEqual(await response.json(), { path: '/file?name=test' }); - assert.equal(f.state.receivedHeaders.authorization, undefined); - assert.equal(f.state.receivedHeaders.cookie, undefined); - assert.equal(f.state.receivedHeaders['x-wishforge-tenant'], 'tenant-a'); - assert.ok( - f.state.calls.every( - c => c.headers.authorization === 'Bearer gateway-secret' && c.headers['x-wishforge-tenant'] === 'tenant-a', - ), - ); - assert.equal((await fetch(`${f.publicUrl}/workspaces/w2/`, { headers: { cookie: s.cookie } })).status, 401); -}); - -test('viewer cannot obtain edit access and caller cannot choose an upstream or downgrade operation', async t => { - const f = await fixture(t); - f.state.role = 'viewer'; - assert.equal((await f.requestLaunch()).status, 403); - f.state.role = 'developer'; - f.state.upstreamUrl = 'http://169.254.169.254/'; - assert.equal((await f.requestLaunch()).status, 502); - const malformed = await fetch(`${f.publicUrl}/launch`, { - method: 'POST', - headers: { authorization: 'Bearer user-token', 'content-type': 'application/json' }, - body: JSON.stringify({ workspaceId: 'w1', upstreamUrl: 'http://evil.invalid' }), - }); - assert.equal(malformed.status, 400); - await fetch(`${f.publicUrl}/workspaces/w1/?operation=preview`, { headers: { authorization: 'Bearer user-token' } }); - assert.equal(f.state.calls.at(-1).body.operation, 'edit'); -}); - -test('HTTP rechecks revocation and rejects cross-origin cookie requests', async t => { - const f = await fixture(t); - const s = await f.session(); - assert.equal( - ( - await fetch(`${f.publicUrl}/workspaces/w1/`, { - headers: { cookie: s.cookie, origin: 'https://attacker.invalid' }, - }) - ).status, - 403, - ); - f.state.revoked = true; - assert.equal((await fetch(`${f.publicUrl}/workspaces/w1/`, { headers: { cookie: s.cookie } })).status, 403); -}); - -test('preserves the upstream Theia process token server-side without forwarding client cookies', async t => { - const f = await fixture(t); - f.state.connectionToken = 'server-only-process-token'; - const s = await f.session(); - const first = await fetch(`${f.publicUrl}/workspaces/w1/`, { headers: { cookie: `${s.cookie}; unrelated=secret` } }); - assert.equal(first.status, 200); - assert.equal(first.headers.get('set-cookie'), null); - const protectedResponse = await fetch(`${f.publicUrl}/workspaces/w1/protected`, { - headers: { cookie: `${s.cookie}; theia-connection-token=attacker-value` }, - }); - assert.equal(protectedResponse.status, 200); - assert.equal(f.state.receivedHeaders.cookie, 'theia-connection-token=server-only-process-token'); -}); - -test('strips caller-supplied workspace identity headers before reaching Theia', async t => { - const f = await fixture(t); - const s = await f.session(); - const response = await fetch(`${f.publicUrl}/workspaces/w1/`, { - headers: { cookie: s.cookie, 'x-wishforge-tenant': 'tenant-b', 'x-wishforge-user': 'attacker' }, - }); - assert.equal(response.status, 200); - assert.equal(f.state.receivedHeaders['x-wishforge-tenant'], 'tenant-a'); - assert.equal(f.state.receivedHeaders['x-wishforge-workspace'], 'w1'); - assert.equal(f.state.receivedHeaders['x-wishforge-user'], undefined); -}); - -test('WebSocket traffic is authenticated and a revoked member is disconnected', { timeout: 5000 }, async t => { - const f = await fixture(t); - const s = await f.session(); - const ws = new WebSocket(`${f.publicUrl.replace('http:', 'ws:')}/workspaces/w1/services`, { - origin: f.publicUrl, - headers: { cookie: s.cookie }, - }); - await once(ws, 'open'); - ws.send('editor-frame'); - const [frame] = await once(ws, 'message'); - assert.equal(frame.toString(), 'editor-frame'); - const closed = once(ws, 'close'); - f.state.revoked = true; - await closed; - assert.ok(f.state.calls.length >= 4); -}); - -test( - 'an IDE in use outlives the idle timeout, rechecking the granted user rather than their token', - { timeout: 5000 }, - async t => { - const f = await fixture(t, { sessionTtlMs: 300 }); - const s = await f.session(); - const ws = new WebSocket(`${f.publicUrl.replace('http:', 'ws:')}/workspaces/w1/services`, { - origin: f.publicUrl, - headers: { cookie: s.cookie }, - }); - await once(ws, 'open'); - // Longer than the idle timeout: the open socket's periodic checks keep renewing the session. - await new Promise(resolve => setTimeout(resolve, 800)); - ws.send('still-working'); - const [frame] = await once(ws, 'message'); - assert.equal(frame.toString(), 'still-working'); - assert.equal((await fetch(`${f.publicUrl}/workspaces/w1/`, { headers: { cookie: s.cookie } })).status, 200); - const last = f.state.calls.at(-1).body; - assert.equal(last.userId, 'authenticated-user'); - assert.equal(last.userToken, undefined); - // Revocation still ends the session. - const closed = once(ws, 'close'); - f.state.revoked = true; - await closed; - }, -); - -test( - 'collaboration HTTP/WS stays behind workspace edit authorization and cannot select another upstream', - { timeout: 5000 }, - async t => { - const f = await fixture(t); - const s = await f.session(); - const reply = await fetch(`${f.publicUrl}/workspaces/w1/collaboration/api/meta`, { - headers: { cookie: s.cookie, 'x-oct-client': 'test' }, - }); - assert.equal(reply.status, 200); - assert.deepEqual(await reply.json(), { path: '/api/meta' }); - assert.equal(f.state.calls.at(-1).body.operation, 'edit'); - assert.equal(f.state.receivedHeaders['x-oct-client'], 'test'); - const ws = new WebSocket(`${f.publicUrl.replace('http:', 'ws:')}/workspaces/w1/collaboration/socket.io/`, { - origin: f.publicUrl, - headers: { cookie: s.cookie }, - }); - await once(ws, 'open'); - ws.send('room-frame'); - const [frame] = await once(ws, 'message'); - assert.equal(frame.toString(), 'room-frame'); - const closed = once(ws, 'close'); - f.state.revoked = true; - await closed; - f.state.revoked = false; - f.state.collaborationUpstreamUrl = 'http://169.254.169.254/'; - assert.equal( - (await fetch(`${f.publicUrl}/workspaces/w1/collaboration/api/meta`, { headers: { cookie: s.cookie } })).status, - 502, - ); - }, -); - -test('lifecycle inspection is service authenticated, scoped, and counts every live workspace socket', async t => { - const f = await fixture(t); - const inspect = (token = 'gateway-secret', tenantId = 'tenant-a') => - fetch(`${f.publicUrl}/internal/lifecycle-state`, { - method: 'POST', - headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' }, - body: JSON.stringify({ tenantId, workspaceId: 'w1' }), - }); - assert.equal((await inspect('user-token')).status, 401); - assert.equal((await inspect('gateway-secret', 'tenant-b')).status, 400); - let response = await inspect(); - assert.equal(response.status, 200); - assert.deepEqual(await response.json(), { workspaceId: 'w1', known: true, gatewayConnections: 0 }); - const session = await f.session(); - const ws = new WebSocket(`${f.publicUrl.replace('http:', 'ws:')}/workspaces/w1/services`, { - origin: f.publicUrl, - headers: { cookie: session.cookie }, - }); - await once(ws, 'open'); - response = await inspect(); - assert.equal((await response.json()).gatewayConnections, 1); - ws.close(); - await once(ws, 'close'); - response = await inspect(); - assert.equal((await response.json()).gatewayConnections, 0); -}); diff --git a/apps/ide/package-lock.json b/apps/ide/package-lock.json deleted file mode 100644 index ee423b4..0000000 --- a/apps/ide/package-lock.json +++ /dev/null @@ -1,12978 +0,0 @@ -{ - "name": "@wishforge/ide", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "@wishforge/ide", - "version": "0.1.0", - "dependencies": { - "@theia/callhierarchy": "1.76.0", - "@theia/collaboration": "1.76.0", - "@theia/core": "1.76.0", - "@theia/debug": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/editor-preview": "1.76.0", - "@theia/file-search": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/messages": "1.76.0", - "@theia/mini-browser": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/navigator": "1.76.0", - "@theia/outline-view": "1.76.0", - "@theia/plugin-ext": "1.76.0", - "@theia/plugin-ext-vscode": "1.76.0", - "@theia/preferences": "1.76.0", - "@theia/process": "1.76.0", - "@theia/scm": "1.76.0", - "@theia/search-in-workspace": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/typehierarchy": "1.76.0", - "@theia/vsx-registry": "1.76.0", - "@theia/workspace": "1.76.0", - "@wishforge/ide-policy": "file:./policy" - }, - "devDependencies": { - "@theia/cli": "1.76.0" - }, - "engines": { - "node": ">=22.14.0 <27" - } - }, - "node_modules/@babel/runtime": { - "version": "7.29.10", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.10.tgz", - "integrity": "sha512-NpugTzbKgGrNe45Ui32cN8vCFFMxVtP/9rtfwv0nP5FRDAjvYBxJcLVpYA9mr1jxP6cnIT7x9LUzuDTbWYYNRA==", - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@electron/get": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz", - "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.1.1", - "env-paths": "^2.2.0", - "fs-extra": "^8.1.0", - "got": "^11.8.5", - "progress": "^2.0.3", - "semver": "^6.2.0", - "sumchecker": "^3.0.1" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "global-agent": "^3.0.0" - } - }, - "node_modules/@electron/get/node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/@electron/get/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@electron/rebuild": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@electron/rebuild/-/rebuild-4.2.1.tgz", - "integrity": "sha512-IS4pG3BysRrCLJ8xTAfvg+IQDbiUoAzdJy2SfjcYKnLDy5DpCdjnPdhS5Zf5UMfrkB24xu0KC+TqcOxg+eG+6w==", - "dev": true, - "license": "MIT", - "dependencies": { - "@malept/cross-spawn-promise": "^2.0.0", - "debug": "^4.1.1", - "node-abi": "^4.2.0", - "node-api-version": "^0.2.1", - "node-gyp": "^12.2.0", - "read-binary-file-arch": "^1.0.6" - }, - "bin": { - "electron-rebuild": "lib/cli.js" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", - "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", - "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", - "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", - "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", - "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", - "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", - "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", - "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", - "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", - "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", - "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", - "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", - "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", - "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", - "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", - "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "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/@esbuild/netbsd-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", - "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", - "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", - "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", - "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", - "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", - "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", - "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", - "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.28.2", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", - "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@hono/node-server": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-2.1.5.tgz", - "integrity": "sha512-MgP/I06GdvsilDspMk/qmRzpk8LOUStP6jFAbSRi40W09DhoyUn+Mj7eyKICPqeYKybOjVFLVIAQzvu1bfIa7Q==", - "license": "MIT", - "engines": { - "node": ">=20" - }, - "peerDependencies": { - "hono": "^4 || ^5.0.0-0" - } - }, - "node_modules/@inversifyjs/common": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@inversifyjs/common/-/common-1.4.0.tgz", - "integrity": "sha512-qfRJ/3iOlCL/VfJq8+4o5X4oA14cZSBbpAmHsYj8EsIit1xDndoOl0xKOyglKtQD4u4gdNVxMHx4RWARk/I4QA==", - "license": "MIT" - }, - "node_modules/@inversifyjs/core": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@inversifyjs/core/-/core-1.3.5.tgz", - "integrity": "sha512-B4MFXabhNTAmrfgB+yeD6wd/GIvmvWC6IQ8Rh/j2C3Ix69kmqwz9pr8Jt3E+Nho9aEHOQCZaGmrALgtqRd+oEQ==", - "license": "MIT", - "dependencies": { - "@inversifyjs/common": "1.4.0", - "@inversifyjs/reflect-metadata-utils": "0.2.4" - } - }, - "node_modules/@inversifyjs/reflect-metadata-utils": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@inversifyjs/reflect-metadata-utils/-/reflect-metadata-utils-0.2.4.tgz", - "integrity": "sha512-u95rV3lKfG+NT2Uy/5vNzoDujos8vN8O18SSA5UyhxsGYd4GLQn/eUsGXfOsfa7m34eKrDelTKRUX1m/BcNX5w==", - "license": "MIT", - "peerDependencies": { - "reflect-metadata": "0.2.2" - } - }, - "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/ansi-regex": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz", - "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/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/@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/cliui/node_modules/strip-ansi": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", - "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.2.2" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/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/@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==", - "dev": true, - "license": "ISC", - "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@jspm/core": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@jspm/core/-/core-2.1.0.tgz", - "integrity": "sha512-3sRl+pkyFY/kLmHl0cgHiFp2xEqErA8N3ECjMs7serSUBmoJ70lBa0PG5t0IM6WJgdZNyyI0R8YFfi5wM8+mzg==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/@lumino/algorithm": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/algorithm/-/algorithm-2.0.5.tgz", - "integrity": "sha512-yW5k0IRrNlNDL9/hLOPr0XaMYf7YSZ5a/uJ++a92ziBe7v7a3xzBJ1+Awhb6fMyanE0Mz97UOQIsHa3vWB0UQA==", - "license": "BSD-3-Clause" - }, - "node_modules/@lumino/collections": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/collections/-/collections-2.0.5.tgz", - "integrity": "sha512-iRthCb6cMoq1rcd4OC8dNFU7v/YbJOw647kzqrMxLPlQmMeeY5wHxF/W9qCb01VUI3zyxvh0/ND4DHB4mruJfA==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5" - } - }, - "node_modules/@lumino/commands": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/@lumino/commands/-/commands-2.3.4.tgz", - "integrity": "sha512-bmCdM7jxX25s9ydKZcWmF7xL051MsG5fJ9IyCHoOPcKm3keuwX3wY1PpVERuooUvU6zZfI7+LFaolWX0eCs2Hw==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5", - "@lumino/coreutils": "^2.2.3", - "@lumino/disposable": "^2.1.6", - "@lumino/domutils": "^2.0.5", - "@lumino/keyboard": "^2.0.5", - "@lumino/signaling": "^2.1.6", - "@lumino/virtualdom": "^2.0.5" - } - }, - "node_modules/@lumino/coreutils": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/@lumino/coreutils/-/coreutils-2.2.3.tgz", - "integrity": "sha512-YxmayMeq8VJCPqo1okpsA3oOoz0eZeG5qedOLmopm+N/GwQT7S34QPPts49omVUwTJ0Xo8fGzOsxnS/LwnVl1Q==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5" - } - }, - "node_modules/@lumino/disposable": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@lumino/disposable/-/disposable-2.1.6.tgz", - "integrity": "sha512-mTDBsftt+dWkP3MeeLuYjJ7mtOcrMld6Pq4h7EY6HzhPSdPXzvQELZ29vpc1lq6EWz/fzCfpoE+W8AzNUCHTLg==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/signaling": "^2.1.6" - } - }, - "node_modules/@lumino/domutils": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/domutils/-/domutils-2.0.5.tgz", - "integrity": "sha512-4zsSqWqAHvOFJTtvyAZsQu7qL5ZZRu37mTzppZNAI3a91jlIben3NbAMGZiyZeAnv3b9Z7S5sPOVWZKkJyhegg==", - "license": "BSD-3-Clause" - }, - "node_modules/@lumino/dragdrop": { - "version": "2.1.9", - "resolved": "https://registry.npmjs.org/@lumino/dragdrop/-/dragdrop-2.1.9.tgz", - "integrity": "sha512-gwkdJNLrRE8GVh4Z70Yj5fhpasQNDkt8Z/aOneQbL4T1bpsMTwzdn3t/2pIZaWngrEqCGnj0ofUUuQAYZuQMyw==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/coreutils": "^2.2.3", - "@lumino/disposable": "^2.1.6" - } - }, - "node_modules/@lumino/keyboard": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/keyboard/-/keyboard-2.0.5.tgz", - "integrity": "sha512-YB7kmE0+ZeZ6oN/Qps6Ln8MXe4rZQh+27ex4GTJuxTMvvbqFhDW6mc/zN6av22HYxDlOF55YlzNhjk2LpD8k7A==", - "license": "BSD-3-Clause" - }, - "node_modules/@lumino/messaging": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/messaging/-/messaging-2.0.5.tgz", - "integrity": "sha512-LNvV9xW6pkVuW8n4vFYxboJFOtt2WRJZMrg3Ta6C6LcfazVQy+ubiC8GRqBMq2ufZ1zclOWQII5QFC1wxFm6dg==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5", - "@lumino/collections": "^2.0.5" - } - }, - "node_modules/@lumino/properties": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/properties/-/properties-2.0.5.tgz", - "integrity": "sha512-+Yoo9lb/hzNKFXpkRaEC4r7aMe8prbEhscAbA/vyzqmY4NYjZsiqhxHUgyKgtGHosrrpY59Qv4ha+5csU08zsw==", - "license": "BSD-3-Clause" - }, - "node_modules/@lumino/signaling": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@lumino/signaling/-/signaling-2.1.6.tgz", - "integrity": "sha512-PEB2nuNyippF/vj28oiDm7Zy8vAeVq07NE59L79GhaTe9i37TCjtA3+67DJnVGn1+fQPfexs6HdrY/90JFFwiw==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5", - "@lumino/coreutils": "^2.2.3" - } - }, - "node_modules/@lumino/virtualdom": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@lumino/virtualdom/-/virtualdom-2.0.5.tgz", - "integrity": "sha512-Qgvtv9Iruny+p2y/jPWo9tOcUqS+Nlcwg14+m+xJEclFyVTpY8gGJKTDY8Y1wVO5PpQjRPNdbF8lxzrGR/89IA==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.5" - } - }, - "node_modules/@lumino/widgets": { - "version": "2.7.5", - "resolved": "https://registry.npmjs.org/@lumino/widgets/-/widgets-2.7.5.tgz", - "integrity": "sha512-i11PlbTsZYIvC/uhcC4FeeLnu/7vveG8WzXFbxPunjT1yGjleqQIPlpMOAJ5d4PwCKqeM8LYttYke6ZOXvXDLA==", - "license": "BSD-3-Clause", - "dependencies": { - "@lumino/algorithm": "^2.0.4", - "@lumino/commands": "^2.3.3", - "@lumino/coreutils": "^2.2.2", - "@lumino/disposable": "^2.1.5", - "@lumino/domutils": "^2.0.4", - "@lumino/dragdrop": "^2.1.8", - "@lumino/keyboard": "^2.0.4", - "@lumino/messaging": "^2.0.4", - "@lumino/properties": "^2.0.4", - "@lumino/signaling": "^2.1.5", - "@lumino/virtualdom": "^2.0.4" - } - }, - "node_modules/@malept/cross-spawn-promise": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-2.0.0.tgz", - "integrity": "sha512-1DpKU0Z5ThltBwjNySMC14g0CkbyhCaz9FkhxqNsZI6uAPJXFS8cMXlBKo26FJ8ZuW6S9GCMcR9IO5k2X5/9Fg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/malept" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund" - } - ], - "license": "Apache-2.0", - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "engines": { - "node": ">= 12.13.0" - } - }, - "node_modules/@modelcontextprotocol/sdk": { - "version": "1.32.1", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.32.1.tgz", - "integrity": "sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==", - "license": "MIT", - "dependencies": { - "@hono/node-server": "^1.19.9 || ^2.0.5", - "ajv": "^8.17.1", - "ajv-formats": "^3.0.1", - "content-type": "^1.0.5", - "cors": "^2.8.5", - "cross-spawn": "^7.0.5", - "eventsource": "^3.0.2", - "eventsource-parser": "^3.0.0", - "express": "^5.2.1", - "express-rate-limit": "^8.2.1", - "hono": "^4.11.4", - "jose": "^6.1.3", - "json-schema-typed": "^8.0.2", - "pkce-challenge": "^5.0.0", - "raw-body": "^3.0.0", - "zod": "^3.25 || ^4.0", - "zod-to-json-schema": "^3.25.1" - }, - "engines": { - "node": ">=18" - }, - "peerDependencies": { - "@cfworker/json-schema": "^4.1.1", - "zod": "^3.25 || ^4.0" - }, - "peerDependenciesMeta": { - "@cfworker/json-schema": { - "optional": true - }, - "zod": { - "optional": false - } - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", - "license": "MIT", - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", - "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", - "integrity": "sha512-2cGmJupaNgg+QUwVLAucDuWuoMZ6EX9iHDRswZ5lsNYEmwPaRknMPCLZz07yTzVq/83p4o/wzbDZbBrTvGGTIw==", - "license": "MIT", - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^2.0.0", - "debug": "^4.4.3", - "http-errors": "^2.0.1", - "iconv-lite": "^0.7.2", - "on-finished": "^2.4.1", - "qs": "^6.15.2", - "raw-body": "^3.0.2", - "type-is": "^2.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser/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/@modelcontextprotocol/sdk/node_modules/content-disposition": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-2.0.1.tgz", - "integrity": "sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", - "license": "MIT", - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/express/-/express-5.3.0.tgz", - "integrity": "sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==", - "license": "MIT", - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.3.0", - "content-disposition": "^2.0.1", - "content-type": "^2.0.0", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.0", - "depd": "^2.0.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "finalhandler": "^2.1.0", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "merge-descriptors": "^2.0.0", - "mime-types": "^3.0.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "parseurl": "^1.3.3", - "proxy-addr": "^2.0.8", - "qs": "^6.16.0", - "range-parser": "^1.2.1", - "router": "^2.2.0", - "send": "^1.1.0", - "serve-static": "^2.2.0", - "statuses": "^2.0.1", - "type-is": "^2.1.0", - "vary": "^1.1.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/express/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/@modelcontextprotocol/sdk/node_modules/finalhandler": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", - "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/@modelcontextprotocol/sdk/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", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "license": "MIT" - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.1.tgz", - "integrity": "sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@modelcontextprotocol/sdk/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/@modelcontextprotocol/sdk/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/@modelcontextprotocol/sdk/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/@modelcontextprotocol/sdk/node_modules/negotiator/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/@modelcontextprotocol/sdk/node_modules/send": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", - "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.3", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^2.0.0", - "http-errors": "^2.0.1", - "mime-types": "^3.0.2", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/serve-static": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", - "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", - "license": "MIT", - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.2.0" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.1.0.tgz", - "integrity": "sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==", - "license": "MIT", - "dependencies": { - "content-type": "^2.0.0", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/@modelcontextprotocol/sdk/node_modules/type-is/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/@msgpackr-extract/msgpackr-extract-darwin-arm64": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.4.tgz", - "integrity": "sha512-LCkGo6JDfaBhgST7UpPWgNgLINpcpabaHfyz5OBx75nUYxBsaEPxjnyNjWpeb/xBup/682QnBfRBy2/LvPutZQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.4.tgz", - "integrity": "sha512-zExlW9zUJKZH/tOtVMttwjKa4Xm/3KcNjnE3dPN92uCktwavMxpgCA3MoJK/DOnTWsQgo224OaST27/mPNAf+w==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.4.tgz", - "integrity": "sha512-Tg3yX65f5GbtXLkrYEHE5oibZG9epyYWas7FogTTEJeDEF9JlXJzKgXaNhT3UXlTOeA+AfZpYZYZ0uPj7Cfquw==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.4.tgz", - "integrity": "sha512-dgX0P/9wGPJeHFBG+ZmhgE6bmtMt7NP5CRBGyyktpopdk/mW4POnrpQsSLtKI1dwpc+pPLuXHDh6vvskyQE/sw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.4.tgz", - "integrity": "sha512-8TNXMEjJc3QEy7R/x1INhgiU+XakDAFUzBhaz7+Rbrs8NH5UQeHQxxmzsSBJGyV6I1jW79undiQm8tOI+D+8FQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.4.tgz", - "integrity": "sha512-CmCXPQrkbwExx3j946/PtHWHbYJiCRBRDl4BlkRQcJB/YOwQxJRTpoo7aTsortjgoJ1x7opzTSxn7C+ASSLVjQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@parcel/watcher": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.6.0.tgz", - "integrity": "sha512-7FNeNl8NCE7aINx7WXiKQrPYZWC/hvrTsmk6zmxbI7LTXE7hVek/n8AfVgpe2y82zl3w0HvCHN0bVKMBoJcC0w==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.3", - "is-glob": "^4.0.3", - "node-addon-api": "^7.0.0", - "picomatch": "^4.0.4" - }, - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.6.0", - "@parcel/watcher-darwin-arm64": "2.6.0", - "@parcel/watcher-darwin-x64": "2.6.0", - "@parcel/watcher-freebsd-x64": "2.6.0", - "@parcel/watcher-linux-arm-glibc": "2.6.0", - "@parcel/watcher-linux-arm-musl": "2.6.0", - "@parcel/watcher-linux-arm64-glibc": "2.6.0", - "@parcel/watcher-linux-arm64-musl": "2.6.0", - "@parcel/watcher-linux-x64-glibc": "2.6.0", - "@parcel/watcher-linux-x64-musl": "2.6.0", - "@parcel/watcher-win32-arm64": "2.6.0", - "@parcel/watcher-win32-x64": "2.6.0" - } - }, - "node_modules/@parcel/watcher-android-arm64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.6.0.tgz", - "integrity": "sha512-trgpLSCKRC/huFjXX/Smh+0sWe4+YtKfktIToiMl59ghz7z+qkH6kMvNnUbLyRs9N11t8l4svSCs1+5B3rOAhA==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.6.0.tgz", - "integrity": "sha512-Y3QV0gl7Q1zbfueunkWIERICbEojQFCgpyG7YqOGNFLsckXyI1xu9mAIUpKY9QBYzBtSkN8dBPwd3yiAO9ovMw==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.6.0.tgz", - "integrity": "sha512-Ohv6OpzhUfKYD7Beb8kDvG0jbIxORCYY1JRdZnaBtnjjkJxgD7ZVL0nw2sCYd0yTMKTvz3nnTnOF3cDifK+kvw==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.6.0.tgz", - "integrity": "sha512-5HmXvDgs8VK+74jF9y9/2FE3/OnlcKmc56tjmSrEuZjpSZOGL+fvAu+HKJBdPs9uwoP2hE6TlSUpXZ/C5jUFmQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.6.0.tgz", - "integrity": "sha512-Ps/hui3A+vMbjdqlqAowK2ZL8+BO8dBjxeWXj6npTBs3jx4wWmbPpaLuqwrQrSqIVMCnpWo238bJ1U37GhQOYg==", - "cpu": [ - "arm" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-musl": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.6.0.tgz", - "integrity": "sha512-9c6AUHgHoG+IY88MRIHupztQiQnrbqHYQjkM2btA+Bf/wQnQMuiD0Wfk1EVv3TlNT3x41uU71rn6E4xh/+zvkw==", - "cpu": [ - "arm" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.6.0.tgz", - "integrity": "sha512-yHRqS2owEXe6Hic9z6Mh1ECsCd+ODVOGvZDyciqRd21+v+o+DnXMOrw50DSpIG2sb8GPEaPPmfeCAWKPJdq46g==", - "cpu": [ - "arm64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.6.0.tgz", - "integrity": "sha512-WhB2e/V7rqdHHWZusBSPuy5Ei8S6lSz6FE5TKKQz5h3a0O+C+mhY7vxU9b/stqvMb8beLnPY82ZrFTLKs+SrKA==", - "cpu": [ - "arm64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.6.0.tgz", - "integrity": "sha512-ulGE6x6Oz6iAwg75T8YQSoguBWasniIbX+QWpaYPcCnDOpdWX3k+4xbEYPZVLxOuoJI+svJJPD3sEj8G7lrQ3A==", - "cpu": [ - "x64" - ], - "libc": [ - "glibc" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.6.0.tgz", - "integrity": "sha512-tkBYKt7YQrjIJWYDnto2YgO8MRkjlMTSNoRHzsXinBqbLdeOM3L32wPZJvIZxqaLMfSlS/4sUjH/6STVP/XDLw==", - "cpu": [ - "x64" - ], - "libc": [ - "musl" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.6.0.tgz", - "integrity": "sha512-gIZAP23jaHjGWasY/TY6yL7NHFClf0Ga7FN+iINvk+KN94rhm94lYZhFsbYFNcA04/onvGD9kKmiJLJB2HbNwQ==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-x64": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.6.0.tgz", - "integrity": "sha512-cA+/pXV2YkfxlIcXOQ5fSWqAzzPyD78/x5qbK/I0vUkrlYHA8TIz+MXjAbGouguKVSI4bOmkTSJ1/poVSsgt+A==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "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/@puppeteer/browsers": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.0.4.tgz", - "integrity": "sha512-HGM8iAmGTf+Y7t0373szVbTmt3d7vPkYL/1bpOkOFO0YUYLgSeuYBCzESklogNPvOBnZ/MRD5f07OkpqH1trtA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "modern-tar": "^0.7.6", - "yargs": "^17.7.2" - }, - "bin": { - "browsers": "lib/main-cli.js" - }, - "engines": { - "node": ">=22.12.0" - }, - "peerDependencies": { - "proxy-agent": ">=8.0.1" - }, - "peerDependenciesMeta": { - "proxy-agent": { - "optional": true - } - } - }, - "node_modules/@sindresorhus/df": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@sindresorhus/df/-/df-3.1.1.tgz", - "integrity": "sha512-SME/vtXaJcnQ/HpeV6P82Egy+jThn11IKfwW8+/XVoRD0rmPHVTeKMtww1oWdVnMykzVPjmrDN9S8NBndPEHCQ==", - "license": "MIT", - "dependencies": { - "execa": "^2.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@sindresorhus/is": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-4.6.0.tgz", - "integrity": "sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/is?sponsor=1" - } - }, - "node_modules/@socket.io/component-emitter": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz", - "integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==", - "license": "MIT" - }, - "node_modules/@stroncium/procfs": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@stroncium/procfs/-/procfs-1.2.1.tgz", - "integrity": "sha512-X1Iui3FUNZP18EUvysTHxt+Avu2nlVzyf90YM8OYgP6SGzTzzX/0JgObfO1AQQDzuZtNNz29bVh8h5R97JrjxA==", - "license": "CC0-1.0", - "engines": { - "node": ">=8" - } - }, - "node_modules/@szmarczak/http-timer": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz", - "integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==", - "dev": true, - "license": "MIT", - "dependencies": { - "defer-to-connect": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@theia/ai-core": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/ai-core/-/ai-core-1.76.0.tgz", - "integrity": "sha512-eAYdhG3pXW2uKkslIouuzE+shg2+LiMES8ONRAq4n6JiuKdy0ycWg86yg+bNaUXmju78MMeq9mdXGp1a5ENV/w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/output": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "@theia/workspace": "1.76.0", - "@types/js-yaml": "^4.0.9", - "fast-deep-equal": "^3.1.3", - "js-yaml": "^4.3.2", - "tslib": "^2.8.1", - "undici": "^7.29.1" - } - }, - "node_modules/@theia/ai-core-ui": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/ai-core-ui/-/ai-core-ui-1.76.0.tgz", - "integrity": "sha512-BA1dp3PlSHsH6UF6Q/V/4mCtIA/LRsoK3ruAvtDQErLvm0LktLd1uUG7WmLbIxjA77tlSGYDWNavC3ABRoYWUQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/ai-core": "1.76.0", - "@theia/core": "1.76.0", - "@theia/preferences": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/ai-mcp": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/ai-mcp/-/ai-mcp-1.76.0.tgz", - "integrity": "sha512-/aNNIgaMq4ZFOpCmgXALmXCjcw019QGSL/1buV/zLTwPcdnGPg8s0DeJUsqiFeyeUPyvQQl4PXqZWAwiFaQfsw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@modelcontextprotocol/sdk": "^1.30.0", - "@theia/ai-core": "1.76.0", - "@theia/ai-core-ui": "1.76.0", - "@theia/core": "1.76.0", - "@theia/workspace": "1.76.0" - } - }, - "node_modules/@theia/application-manager": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/application-manager/-/application-manager-1.76.0.tgz", - "integrity": "sha512-paYQvGBc6bUCVnfVPYo2BZPtFJumm4/5OO2M7yq342dBEezRIy/9bFIOEHs5wDCiC48Vqq1G2g3e36Jp752isw==", - "dev": true, - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@electron/rebuild": "^4.2.0", - "@theia/application-package": "1.76.0", - "@theia/bundle-plugin": "1.76.0", - "@theia/ffmpeg": "1.76.0", - "@theia/plugin-utils": "1.76.0", - "@types/fs-extra": "^4.0.15", - "@types/semver": "^7.8.0", - "esbuild": "^0.28.2", - "esbuild-plugin-copy": "^2.1.1", - "esbuild-plugins-node-modules-polyfill": "^1.8.3", - "fs-extra": "^4.0.3", - "http-server": "^14.1.1", - "semver": "^7.8.5", - "tslib": "^2.8.1", - "yargs": "^17.7.3" - }, - "peerDependencies": { - "@theia/electron": "*" - }, - "peerDependenciesMeta": { - "@theia/electron": { - "optional": true - } - } - }, - "node_modules/@theia/application-package": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/application-package/-/application-package-1.76.0.tgz", - "integrity": "sha512-XREacI7NkTjxbHE5EIqcwg8mYc1BMiebz61XDMiqGhR2PG+/36+DAZvymO2fk/eQtbGen4iyXRpDH7L7DASriA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/request": "1.76.0", - "@types/fs-extra": "^4.0.15", - "@types/semver": "^7.8.0", - "@types/write-json-file": "^2.2.1", - "deepmerge": "^4.3.1", - "fs-extra": "^4.0.3", - "is-electron": "^2.2.2", - "nano": "^10.1.4", - "resolve-package-path": "^4.0.3", - "semver": "^7.8.5", - "tslib": "^2.8.1", - "write-json-file": "^2.3.0" - } - }, - "node_modules/@theia/bulk-edit": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/bulk-edit/-/bulk-edit-1.76.0.tgz", - "integrity": "sha512-5pgYuaZY8K5A6umJalMUVJcW18b792JbVVWkKedGweaSH9vNhjYKWfD2WieipQs71xmyzUSWUSoHRdJRrrANIA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/workspace": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/bundle-plugin": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/bundle-plugin/-/bundle-plugin-1.76.0.tgz", - "integrity": "sha512-NP7+Dx2UfrxppOb3gnbuBBccGwtoAkhRihNQvwMKZ7dWtyj2f+86Zg79nQf0PSGcmsCSov8NFGzLrnyKjId43A==", - "dev": true, - "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0", - "dependencies": { - "detect-libc": "^2.1.2", - "resolve-package-path": "^4.0.3", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/callhierarchy": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/callhierarchy/-/callhierarchy-1.76.0.tgz", - "integrity": "sha512-b+CCB9dod9HJh5D7QM9r+ey68amsYneI5uvG8FaR561QiX5NUbdAPlOYQVrJOv8HqDee+nJtfghJj1JYw9ny1w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "ts-md5": "^1.3.1", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/cli": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/cli/-/cli-1.76.0.tgz", - "integrity": "sha512-pc7jNa/r+WisySRRb3OJvc84YYzcohBLDsVbkN+trbMtczwzUhxtAHyU/3NzivwsshD98uEOLeai1X8mzsEf0Q==", - "dev": true, - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/application-manager": "1.76.0", - "@theia/application-package": "1.76.0", - "@theia/ffmpeg": "1.76.0", - "@theia/localization-manager": "1.76.0", - "@theia/ovsx-client": "1.76.0", - "@theia/request": "1.76.0", - "@types/chai": "^4.3.0", - "@types/mocha": "^10.0.10", - "@types/node-fetch": "^2.6.13", - "chai": "^4.3.10", - "chalk": "4.0.0", - "decompress": "^4.2.1", - "escape-string-regexp": "4.0.0", - "glob": "^8.1.0", - "http-server": "^14.1.1", - "limiter": "^2.1.0", - "log-update": "^4.0.0", - "mocha": "^11.8.0", - "patch-package": "^8.0.1", - "puppeteer": "25.1.0", - "puppeteer-core": "25.1.0", - "puppeteer-to-istanbul": "1.4.0", - "temp": "^0.9.4", - "tslib": "^2.8.1", - "yargs": "^17.7.3" - }, - "bin": { - "theia": "bin/theia.js", - "theia-patch": "bin/theia-patch.js" - } - }, - "node_modules/@theia/collaboration": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/collaboration/-/collaboration-1.76.0.tgz", - "integrity": "sha512-MSPNKud734inJL7lZS7j/6x13QWqK5r5fVC0Xn8DLXQv0BF2AV0FZvSau63b4O+0owXT37j0ooafOZNhBXPDoQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/workspace": "1.76.0", - "lib0": "^0.2.117", - "open-collaboration-protocol": "0.3.0", - "open-collaboration-yjs": "0.3.0", - "socket.io-client": "^4.8.3", - "y-protocols": "^1.0.7", - "yjs": "^13.6.32" - } - }, - "node_modules/@theia/console": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/console/-/console-1.76.0.tgz", - "integrity": "sha512-K49uLgNIb83hyISstRIdmvyx9o3STQpvMEdrfbvo7p3zXweiIjtTM3kBNMKFnjYIMKjcVkbFkjz0r+nQxyGFzg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "anser": "^2.3.5", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/core": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/core/-/core-1.76.0.tgz", - "integrity": "sha512-E1hJGgzHbu/Whqo8pxU9MkAblOnnGedPybPOVRspZjuKF8ApRof6cNpSrUeFevrGPmF5Jesd2NqchtvIExXGRg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@babel/runtime": "^7.29.7", - "@lumino/algorithm": "^2.0.5", - "@lumino/commands": "^2.3.4", - "@lumino/coreutils": "^2.2.3", - "@lumino/domutils": "^2.0.5", - "@lumino/dragdrop": "^2.1.9", - "@lumino/messaging": "^2.0.5", - "@lumino/properties": "^2.0.5", - "@lumino/signaling": "^2.1.6", - "@lumino/virtualdom": "^2.0.5", - "@lumino/widgets": "2.7.5", - "@parcel/watcher": "^2.6.0", - "@theia/application-package": "1.76.0", - "@theia/request": "1.76.0", - "@types/body-parser": "^1.19.6", - "@types/express": "^4.17.25", - "@types/fs-extra": "^4.0.15", - "@types/lodash.debounce": "4.0.3", - "@types/lodash.throttle": "^4.1.9", - "@types/markdown-it": "^14.2.0", - "@types/markdown-it-emoji": "^3.0.1", - "@types/route-parser": "^0.1.7", - "@types/safer-buffer": "^2.1.3", - "@types/ws": "^8.18.1", - "@types/yargs": "^17.0.35", - "@vscode/codicons": "0.0.45", - "ajv": "^6.15.0", - "async-mutex": "^0.4.1", - "body-parser": "^1.20.8", - "cookie": "^1.1.1", - "dompurify": "^3.4.15", - "drivelist": "^12.0.2", - "express": "^4.22.2", - "fast-json-stable-stringify": "^2.1.0", - "file-icons-js": "~1.0.3", - "font-awesome": "^4.7.0", - "fs-extra": "^4.0.3", - "fuzzy": "^0.1.3", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "iconv-lite": "^0.6.3", - "inversify": "^6.2.2", - "jschardet": "^2.3.0", - "keytar": "7.9.0", - "lodash.debounce": "^4.0.8", - "lodash.throttle": "^4.1.1", - "markdown-it": "^14.3.1", - "markdown-it-anchor": "^9.2.1", - "markdown-it-emoji": "^3.1.0", - "msgpackr": "^1.12.1", - "p-debounce": "^2.1.0", - "perfect-scrollbar": "1.5.5", - "react-tooltip": "^4.5.1", - "react-virtuoso": "^2.19.1", - "reflect-metadata": "^0.2.2", - "route-parser": "^0.0.5", - "safer-buffer": "^2.1.2", - "socket.io": "^4.8.3", - "socket.io-client": "^4.8.3", - "tslib": "^2.8.1", - "uuid": "^11.1.1", - "vscode-languageserver-protocol": "3.17.5", - "vscode-uri": "3.0.8", - "ws": "^8.21.3", - "yargs": "^17.7.3" - }, - "peerDependencies": { - "@theia/electron": "*", - "@types/react": "^19.0.0", - "@types/react-dom": "^19.0.0", - "react": "^19.0.0", - "react-dom": "^19.0.0" - }, - "peerDependenciesMeta": { - "@theia/electron": { - "optional": true - }, - "@types/react": { - "optional": true - }, - "@types/react-dom": { - "optional": true - } - } - }, - "node_modules/@theia/debug": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/debug/-/debug-1.76.0.tgz", - "integrity": "sha512-fdW1IVQyDyid0WHvLvvAwnLnSq5weh4+oHiMSHFy3vuTy9BRrcieKSjU1b9gWtMM6f9wKDtHLuLGgYzdE57rTg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/console": "1.76.0", - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/output": "1.76.0", - "@theia/process": "1.76.0", - "@theia/task": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/test": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "@theia/workspace": "1.76.0", - "@vscode/debugprotocol": "^1.68.0", - "fast-deep-equal": "^3.1.3", - "jsonc-parser": "^3.3.1", - "p-debounce": "^2.1.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/editor": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/editor/-/editor-1.76.0.tgz", - "integrity": "sha512-HeC696z+LkwHdTYq6v3/Z5b9LQdOHgVmqGsqWrb/RwB8n47p2PbX8p3ORGTlLsbo3ItAb7pET1nRxee4j8ssMw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/editor-preview": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/editor-preview/-/editor-preview-1.76.0.tgz", - "integrity": "sha512-pL9Zl5mbVamYTa9/C7tNoEG75cnaaB4IFXmZMZaoRXzjhIG2jiOCge0xg+qI/F4iVMq3kSyndSfmqTRcZhZsxQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/navigator": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/ffmpeg": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/ffmpeg/-/ffmpeg-1.76.0.tgz", - "integrity": "sha512-lLhUcV1SE0/AEdJsHHo3RIPhm2/b2cfr1AO0ZjsMhXHxf0ITjJgqZ4smasH9poTuQeVaV3cxbh9Cflcpi0t1mw==", - "dev": true, - "hasInstallScript": true, - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@electron/get": "^2.0.3", - "tslib": "^2.8.1", - "unzipper": "^0.9.15" - } - }, - "node_modules/@theia/file-search": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/file-search/-/file-search-1.76.0.tgz", - "integrity": "sha512-hwdu99xJw8CGdoH9guCu+CJdq/9MWdSLIhtp7c5tk2Jo4OfZxLbfB5PMfuBAq9Elh1KR9cwL2iKas+cphKKwcQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/process": "1.76.0", - "@theia/workspace": "1.76.0", - "@vscode/ripgrep": "^1.18.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/filesystem": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/filesystem/-/filesystem-1.76.0.tgz", - "integrity": "sha512-k/aS4GktTXZA4o8Zw+e+bFDMjWQlGNCQrWHnTaxZO/tCVaqhs4MwUh1nJ+iWTmzHfE1SeK86uFmdOsm2b6z2og==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@types/body-parser": "^1.19.6", - "@types/multer": "^1.4.13", - "@types/tar-fs": "^1.16.3", - "@types/tar-stream": "^3.1.4", - "async-mutex": "^0.3.2", - "body-parser": "^1.20.8", - "http-status-codes": "^1.4.0", - "ignore": "^6.0.2", - "minimatch": "^10.2.6", - "multer": "^2.3.0", - "opfs-worker": "1.3.1", - "rimraf": "^5.0.10", - "stat-mode": "^1.0.0", - "tar-fs": "^3.1.3", - "tar-stream": "^3.2.1", - "trash": "^7.2.0", - "tslib": "^2.8.1", - "vscode-languageserver-textdocument": "^1.0.14" - } - }, - "node_modules/@theia/filesystem/node_modules/async-mutex": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz", - "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@theia/localization-manager": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/localization-manager/-/localization-manager-1.76.0.tgz", - "integrity": "sha512-0fCsCkDxjoBUzIZvdyXi/xMsAOqUPVph1X9SMgP/BMxogMGuDDAiDb7e5wFZitkWvs3WMh6NW6vtB2CO3w/NyA==", - "dev": true, - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@types/bent": "^7.3.8", - "@types/fs-extra": "^4.0.15", - "bent": "^7.3.12", - "chalk": "4.0.0", - "deepmerge": "^4.3.1", - "fs-extra": "^4.0.3", - "glob": "^7.2.3", - "limiter": "^2.1.0", - "tslib": "^2.8.1", - "typescript": "~5.9.3" - } - }, - "node_modules/@theia/localization-manager/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/@theia/localization-manager/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@theia/localization-manager/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "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", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/@theia/localization-manager/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@theia/localization-manager/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/@theia/markers": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/markers/-/markers-1.76.0.tgz", - "integrity": "sha512-R3rfh0GsxYg0yjxKJ0RiDR/FhUJSBghdFlnuT58E3i3kPfqNYtUhhqszRF3ISvxmsjsGQv5tQwkmnfPX5fv7eg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/workspace": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/messages": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/messages/-/messages-1.76.0.tgz", - "integrity": "sha512-95GnsKvj65wlUIY4yg51wUHnemiJ4QTz0+9PpUSKGxbLPVb/2rH8L6CpmH8nTWgRNj+fxtHhBXh8anW0bcqIYw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "react-perfect-scrollbar": "^1.5.8", - "ts-md5": "^1.3.1", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/mini-browser": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/mini-browser/-/mini-browser-1.76.0.tgz", - "integrity": "sha512-53ZNSKS3PZq5VTHCsS92/lISAjObhCFyW1nK77J1aCvU/rl49pdUbL7eoM/1NXEJqjhqlfAGUcQIq8PWs0HloQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "@types/mime-types": "^2.1.4", - "mime-types": "^2.1.35", - "pdfobject": "^2.3.1", - "tslib": "^2.8.1", - "vhost": "^3.0.2" - } - }, - "node_modules/@theia/monaco": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/monaco/-/monaco-1.76.0.tgz", - "integrity": "sha512-i1y6PUEw65mSlqnpmxqeboUuDvMlxGIcifYvMDIMtanWHX1eRhwP/si85NB8OC0PLScHsyDP7Cd/tVsq+cu5Cw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/outline-view": "1.76.0", - "@theia/workspace": "1.76.0", - "fast-plist": "^0.1.3", - "idb": "^4.0.5", - "jsonc-parser": "^3.3.1", - "tslib": "^2.8.1", - "vscode-oniguruma": "2.0.1", - "vscode-textmate": "^9.3.2" - } - }, - "node_modules/@theia/monaco-editor-core": { - "version": "1.108.201", - "resolved": "https://registry.npmjs.org/@theia/monaco-editor-core/-/monaco-editor-core-1.108.201.tgz", - "integrity": "sha512-svIRZuZTqzNontpe6n9f8RPRBtPaOyuB1btpMJ2tcNodjTuTgs2OB/FIhRp5WF17v7negIbA9WzroXt+uzSGng==", - "license": "MIT", - "dependencies": { - "dompurify": "3.2.7", - "marked": "14.0.0" - } - }, - "node_modules/@theia/monaco-editor-core/node_modules/dompurify": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.7.tgz", - "integrity": "sha512-WhL/YuveyGXJaerVlMYGWhvQswa7myDG17P7Vu65EWC05o8vfeNbvNf4d/BOvH99+ZW+LlQsc1GDKMa1vNK6dw==", - "license": "(MPL-2.0 OR Apache-2.0)", - "optionalDependencies": { - "@types/trusted-types": "^2.0.7" - } - }, - "node_modules/@theia/navigator": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/navigator/-/navigator-1.76.0.tgz", - "integrity": "sha512-Xuc4XUVtFBYPJqjxF+uPFnEsKZIDGlf5Qt55lgp2GrXskjUyO5jirF+Q9O6KUg+MYm+hlQ1r5g0hKowNTf0uyQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/workspace": "1.76.0", - "minimatch": "^10.2.6", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/notebook": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/notebook/-/notebook-1.76.0.tgz", - "integrity": "sha512-nm6wh8F9i/0owEjQo4Hx9dbFIps2/6hyjBSpP2lLKnHAADCI2MePNhMQZcbcTtilxIAqPL3xRS+1jc54/gTXOw==", - "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/outline-view": "1.76.0", - "advanced-mark.js": "^2.7.1", - "react-perfect-scrollbar": "^1.5.8", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/outline-view": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/outline-view/-/outline-view-1.76.0.tgz", - "integrity": "sha512-1k+1mF+EwZqvuxwZmU/IBsX/r4V0qK3DIbTkDNXRZJrldLD/1a+6BUBTVrymUIgFeCA8A83/ZmNUZAFXC9PeyA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/output": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/output/-/output-1.76.0.tgz", - "integrity": "sha512-68N1MRqUaf1t+r6i4ePGfgwuSZlTsBfiGntwH3O7AyAIxksV2+Ok+oBGKQR0HkSyVGeSmx8BFILr3HRWwO/8dA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "p-queue": "^8.1.1", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/ovsx-client": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/ovsx-client/-/ovsx-client-1.76.0.tgz", - "integrity": "sha512-epYFvWHiYKoqTK/UjuUN26SMQ1qs2vZmodqL+2rdcG6rbnsyawBByYL6wDT+pT/lrmiunElLz67/ChDMohQSgg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/request": "1.76.0", - "limiter": "^2.1.0", - "semver": "^7.8.5", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/plugin": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/plugin/-/plugin-1.76.0.tgz", - "integrity": "sha512-OPXjKL+gm3JH3vbGhatHc5IQ/aylvRy1qmhQ9YNghk4eV2AnKTYrd2r4o/jeDXDmsNxWM5sfOCmhhqfC3PljTw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0" - }, - "node_modules/@theia/plugin-ext": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/plugin-ext/-/plugin-ext-1.76.0.tgz", - "integrity": "sha512-lEnGlysG8MQT6P8HIB+uBZmwluYoTgU0i4iQygTOVsQ0BiLH9gmKERSxZSf+3wL3IGRoL9tt+v211IibPxZJdQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/ai-core": "1.76.0", - "@theia/ai-mcp": "1.76.0", - "@theia/bulk-edit": "1.76.0", - "@theia/callhierarchy": "1.76.0", - "@theia/console": "1.76.0", - "@theia/core": "1.76.0", - "@theia/debug": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/editor-preview": "1.76.0", - "@theia/file-search": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/messages": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/navigator": "1.76.0", - "@theia/notebook": "1.76.0", - "@theia/output": "1.76.0", - "@theia/plugin": "1.76.0", - "@theia/plugin-utils": "1.76.0", - "@theia/preferences": "1.76.0", - "@theia/scm": "1.76.0", - "@theia/search-in-workspace": "1.76.0", - "@theia/task": "1.76.0", - "@theia/telemetry": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/test": "1.76.0", - "@theia/timeline": "1.76.0", - "@theia/typehierarchy": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "@theia/workspace": "1.76.0", - "@types/mime": "^2.0.3", - "@vscode/debugprotocol": "^1.68.0", - "@vscode/proxy-agent": "^0.13.2", - "async-mutex": "^0.4.1", - "decompress": "^4.2.1", - "escape-html": "^1.0.3", - "filenamify": "^4.3.0", - "is-electron": "^2.2.2", - "jsonc-parser": "^3.3.1", - "lodash.clonedeep": "^4.5.0", - "macaddress": "^0.5.4", - "mime": "^2.6.0", - "node-pty": "1.2.0-beta.12", - "semver": "^7.8.5", - "tslib": "^2.8.1", - "vhost": "^3.0.2", - "vscode-textmate": "^9.3.2" - } - }, - "node_modules/@theia/plugin-ext-vscode": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/plugin-ext-vscode/-/plugin-ext-vscode-1.76.0.tgz", - "integrity": "sha512-ZT3HkN69Q79VKhmapvgJU4P/ZTTxHctidKE3ienks40Ewu8Qx0wFHFr/AgJ4wg9xxjvc+Smz81pJPgqBUz/Y/w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/callhierarchy": "1.76.0", - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/navigator": "1.76.0", - "@theia/outline-view": "1.76.0", - "@theia/plugin": "1.76.0", - "@theia/plugin-ext": "1.76.0", - "@theia/plugin-utils": "1.76.0", - "@theia/scm": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/typehierarchy": "1.76.0", - "@theia/userstorage": "1.76.0", - "@theia/workspace": "1.76.0", - "decompress": "^4.2.1", - "filenamify": "^4.3.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/plugin-utils": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/plugin-utils/-/plugin-utils-1.76.0.tgz", - "integrity": "sha512-KAVDGoFakhNAXuyKf/MlFR9h57mUvfUDKyW4GodLC3bHtsAR51zn+N7YI5bsYIDPRJGK31jkw6KEfbmN+RARsA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@types/fs-extra": "^4.0.15", - "fs-extra": "^4.0.3", - "jsonc-parser": "^3.3.1", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/preferences": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/preferences/-/preferences-1.76.0.tgz", - "integrity": "sha512-xEoxMl4Ya4W9CPeUI5zOP6krJsa3M+a87UUSpCxBSQRwUVzQN6/sfkpuCLO4lvqQ1aprwY3qPgYp4SP+9nn9ow==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/userstorage": "1.76.0", - "@theia/workspace": "1.76.0", - "async-mutex": "^0.3.2", - "fast-deep-equal": "^3.1.3", - "jsonc-parser": "^3.3.1", - "p-debounce": "^2.1.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/preferences/node_modules/async-mutex": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz", - "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@theia/process": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/process/-/process-1.76.0.tgz", - "integrity": "sha512-Yly21WJS2Nd3LvokrYXE1t5IRM2kIyhkG1u+0CTXtb3zue9kD32fWc+yvpCAF4yIB0a3ijNnJG1x0wdfEcAC5w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "node-pty": "1.2.0-beta.12", - "string-argv": "^0.1.2", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/request": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/request/-/request-1.76.0.tgz", - "integrity": "sha512-jVzLoja+kvIUZmbeY1Dh8Yz5Tq56DP7Zp/w2hgCymrfr2DL59sPdBZFGsQfpHgZaLW3No1c1zamMWmrHrKDXzg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "tslib": "^2.8.1", - "undici": "^7.29.1" - } - }, - "node_modules/@theia/scm": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/scm/-/scm-1.76.0.tgz", - "integrity": "sha512-2porrDle9dLs3ONLDF/IlmHi0gqbAZDpcEY6Gx+3EJ6VGGxL04zSjiOD1F/uQzGweoNKxUa4f7VHWhqkJ9etKw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@types/diff": "^5.2.3", - "diff": "^5.2.2", - "p-debounce": "^2.1.0", - "react-textarea-autosize": "^8.5.9", - "ts-md5": "^1.3.1", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/search-in-workspace": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/search-in-workspace/-/search-in-workspace-1.76.0.tgz", - "integrity": "sha512-s/BI7Ip2rIxKs2aQ4YnXZkKx0iC8jL+jB+SsulbOAmPIKBgs3PThTzjeRQI0IXXRoiDsmxYyKUpvTbXGt2k06w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/navigator": "1.76.0", - "@theia/process": "1.76.0", - "@theia/workspace": "1.76.0", - "@vscode/ripgrep": "^1.18.0", - "minimatch": "^10.2.6", - "react-textarea-autosize": "^8.5.9", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/task": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/task/-/task-1.76.0.tgz", - "integrity": "sha512-7ZBEo8Hy3k8CicLtt00AE3cKBXk542LicfOc64Zd4d8Y+bSRwFqHHcLdnm9fAKChHeulKXv9Z/FG9zAm5ojZ9Q==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/monaco-editor-core": "1.108.201", - "@theia/process": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/userstorage": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "@theia/workspace": "1.76.0", - "async-mutex": "^0.3.2", - "jsonc-parser": "^3.3.1", - "p-debounce": "^2.1.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/task/node_modules/async-mutex": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.3.2.tgz", - "integrity": "sha512-HuTK7E7MT7jZEh1P9GtRW9+aTWiDWWi9InbZ5hjxrnRa39KS4BW04+xLBhYNS2aXhHUIKZSw3gj4Pn1pj+qGAA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@theia/telemetry": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/telemetry/-/telemetry-1.76.0.tgz", - "integrity": "sha512-yuqk0RP3l96fFoAlqE35lFjuGb2Zv+KslUyDNPXEcxDDRt/KTjcS+784V4zUYBNSbCBdhRTqNnqkgM6uUsbdWA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/terminal": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/terminal/-/terminal-1.76.0.tgz", - "integrity": "sha512-M9uYbgpmU4IYGYDvAH6oIcgxOCETxEJvXRs1Tir7I+8AJ6I8r6sdRhSCKc0q3re3avmIkaJzfATIhGVZXPgz9w==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/file-search": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/process": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "@theia/workspace": "1.76.0", - "tslib": "^2.8.1", - "xterm": "^5.3.0", - "xterm-addon-fit": "^0.8.0", - "xterm-addon-search": "^0.13.0", - "xterm-addon-webgl": "^0.16.0" - } - }, - "node_modules/@theia/test": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/test/-/test-1.76.0.tgz", - "integrity": "sha512-TGdbzjEbUJQGYvpGUn0UkhuMy2AldmuRXgLS9Ac735YxddTn30XC/13twODMQLWdyutgQp9qU8pFVr5c+DtC5w==", - "license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/navigator": "1.76.0", - "@theia/terminal": "1.76.0", - "xterm": "^5.3.0", - "xterm-addon-fit": "^0.8.0" - } - }, - "node_modules/@theia/timeline": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/timeline/-/timeline-1.76.0.tgz", - "integrity": "sha512-coqJsh1MrDN62G6w/DS1Q6Ced0fjUxa3t0kCcADze69IGJ1T061G33tzsyk5PvR/s1PtHaGvo0O7U1XN7akBDw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/navigator": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/typehierarchy": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/typehierarchy/-/typehierarchy-1.76.0.tgz", - "integrity": "sha512-FwD5YOaOWPcCgx8fIcJYUGVv70sCLu1oX/tCwN5PXGJddtcscKaXXErsMias1V2ZJILSY88q+3/KDu5hjHpq1A==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/userstorage": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/userstorage/-/userstorage-1.76.0.tgz", - "integrity": "sha512-/sbWKkBhL96Gy8gNKqjhGfiCdTNzREjJgjAfBBoSVqdZoI6aeHVIMDd07BYWHhKI171YzqHxeSW2rtgRssxncw==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/variable-resolver": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/variable-resolver/-/variable-resolver-1.76.0.tgz", - "integrity": "sha512-TtrMHLPNGt/lLs4kAXqIhkvapE9+rjznJ6sC54GyJHhhjVXxGGuCMJlXPtgEAYtj3v/JbyatkblBs3F4k5tOYg==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/vsx-registry": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/vsx-registry/-/vsx-registry-1.76.0.tgz", - "integrity": "sha512-SW8bRaSeT/DcJKBnMDfKQgBdl18a6cIBAZdorzDCpQyRH3lcb0Y+HkZPEhDwgEOf2LoJAtMfeAVBNwKyEKCzYQ==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/navigator": "1.76.0", - "@theia/ovsx-client": "1.76.0", - "@theia/plugin-ext": "1.76.0", - "@theia/plugin-ext-vscode": "1.76.0", - "@theia/preferences": "1.76.0", - "@theia/workspace": "1.76.0", - "limiter": "^2.1.0", - "luxon": "^2.5.2", - "p-debounce": "^2.1.0", - "semver": "^7.8.5", - "tslib": "^2.8.1" - } - }, - "node_modules/@theia/workspace": { - "version": "1.76.0", - "resolved": "https://registry.npmjs.org/@theia/workspace/-/workspace-1.76.0.tgz", - "integrity": "sha512-KxR85wdO1HFB3P30zozHp2X/m2BSjeB8VyRQdS/360qOl6rZksJPIfHlDedlbZiD/j6gbVgWnwHVAagZTWn8BA==", - "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0", - "dependencies": { - "@theia/core": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/variable-resolver": "1.76.0", - "jsonc-parser": "^3.3.1", - "tslib": "^2.8.1", - "valid-filename": "^2.0.1" - } - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/@types/bent": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/@types/bent/-/bent-7.3.8.tgz", - "integrity": "sha512-yZ09JA1KsA5Fl6Oh/ahK00+H5bV0qCy2bYnyfiFY42wnaMK4n7IDC6HaFe3WW45Zhnak7iqJBKlWD0nVxzrGWg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.6", - "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz", - "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/cacheable-request": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.3.tgz", - "integrity": "sha512-IQ3EbTzGxIigb1I3qPZc1rWJnH0BmSKv5QYTalEwweFvyBDLSAe24zP0le/hyi7ecGfZVlIVAg4BZqb8WBwKqw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-cache-semantics": "*", - "@types/keyv": "^3.1.4", - "@types/node": "*", - "@types/responselike": "^1.0.0" - } - }, - "node_modules/@types/chai": { - "version": "4.3.20", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz", - "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/cors": { - "version": "2.8.19", - "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz", - "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/diff": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@types/diff/-/diff-5.2.3.tgz", - "integrity": "sha512-K0Oqlrq3kQMaO2RhfrNQX5trmt+XLyom88zS0u84nnIcLvFnRUMRRHmrGny5GSM+kNO9IZLARsdQHDzkhAgmrQ==", - "license": "MIT" - }, - "node_modules/@types/express": { - "version": "4.17.25", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.25.tgz", - "integrity": "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==", - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.33", - "@types/qs": "*", - "@types/serve-static": "^1" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "4.19.9", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.9.tgz", - "integrity": "sha512-QP2ESEe/ImWY0HDwNAnK9PvEffUyhLTnWkk7KXzHfyeWAnlrDe1fN77bXl6ia8KT3wPlmA7t9/VPRpnf4Ex9sg==", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/fs-extra": { - "version": "4.0.15", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-4.0.15.tgz", - "integrity": "sha512-zU/EU2kZ1tv+p4pswQLntA7dFQq84wXrSCfmLjZvMbLjf4N46cPOWHg+WKfc27YnEOQ0chVFlBui55HRsvzHPA==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/http-cache-semantics": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.2.0.tgz", - "integrity": "sha512-L3LgimLHXtGkWikKnsPg0/VFx9OGZaC+eN1u4r+OB1XRqH3meBIAVC2zr1WdMH+RHmnRkqliQAOHNJ/E0j/e0Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/http-errors": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz", - "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", - "license": "MIT" - }, - "node_modules/@types/js-yaml": { - "version": "4.0.9", - "resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.9.tgz", - "integrity": "sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==", - "license": "MIT" - }, - "node_modules/@types/keyv": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/@types/keyv/-/keyv-3.1.4.tgz", - "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "license": "MIT" - }, - "node_modules/@types/lodash": { - "version": "4.17.26", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.26.tgz", - "integrity": "sha512-48NWfiY6oNcKOh47Z4h+sIvwcQR91h6KPhaYKgeMIrkT2jV82Gy90SErj60vW8jQbeMSOSbhIv3bZ7JoqPPVhA==", - "license": "MIT" - }, - "node_modules/@types/lodash.debounce": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/@types/lodash.debounce/-/lodash.debounce-4.0.3.tgz", - "integrity": "sha512-/2RpcexzkSH16nENwuL/Gd3Y2xvdkNwX32KPESB/D8K2c6HBs7GdSnoj6ngyFWNT1UhXNrIpJd0lgSC3Rmt/3g==", - "license": "MIT", - "dependencies": { - "@types/lodash": "*" - } - }, - "node_modules/@types/lodash.throttle": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/lodash.throttle/-/lodash.throttle-4.1.9.tgz", - "integrity": "sha512-PCPVfpfueguWZQB7pJQK890F2scYKoDUL3iM522AptHWn7d5NQmeS/LTEHIcLr5PaTzl3dK2Z0xSUHHTHwaL5g==", - "license": "MIT", - "dependencies": { - "@types/lodash": "*" - } - }, - "node_modules/@types/markdown-it": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.2.0.tgz", - "integrity": "sha512-NoQ2yGlLWj4wpxMs+TYmRKk3thDrQ97agr7sFqfLsAlvoS8SNQuTrlObhFqG9iugdTtgOE9jpJ6FNM4ZGsa5xQ==", - "license": "MIT", - "dependencies": { - "@types/linkify-it": "^5", - "@types/mdurl": "^2" - } - }, - "node_modules/@types/markdown-it-emoji": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/markdown-it-emoji/-/markdown-it-emoji-3.0.1.tgz", - "integrity": "sha512-cz1j8R35XivBqq9mwnsrP2fsz2yicLhB8+PDtuVkKOExwEdsVBNI+ROL3sbhtR5occRZ66vT0QnwFZCqdjf3pA==", - "license": "MIT", - "dependencies": { - "@types/markdown-it": "^14" - } - }, - "node_modules/@types/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "license": "MIT" - }, - "node_modules/@types/mime": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", - "integrity": "sha512-Jus9s4CDbqwocc5pOAnh8ShfrnMcPHuJYzVcSUU7lrh8Ni5HuIqX3oilL86p3dlTrk0LzHRCgA/GQ7uNCw6l2Q==", - "license": "MIT" - }, - "node_modules/@types/mime-types": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@types/mime-types/-/mime-types-2.1.4.tgz", - "integrity": "sha512-lfU4b34HOri+kAY5UheuFMWPDOI+OPceBSHZKp69gEyTL/mmJ4cnU6Y/rlme3UL3GyOn6Y42hyIEw0/q8sWx5w==", - "license": "MIT" - }, - "node_modules/@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/multer": { - "version": "1.4.13", - "resolved": "https://registry.npmjs.org/@types/multer/-/multer-1.4.13.tgz", - "integrity": "sha512-bhhdtPw7JqCiEfC9Jimx5LqX9BDIPJEh2q/fQ4bqbBPtyEZYr3cvF22NwG0DmPZNYA0CAf2CnqDB4KIGGpJcaw==", - "license": "MIT", - "dependencies": { - "@types/express": "*" - } - }, - "node_modules/@types/node": { - "version": "26.6.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz", - "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==", - "license": "MIT", - "dependencies": { - "undici-types": "~8.9.0" - } - }, - "node_modules/@types/node-fetch": { - "version": "2.6.13", - "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz", - "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "form-data": "^4.0.4" - } - }, - "node_modules/@types/qs": { - "version": "6.15.1", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.15.1.tgz", - "integrity": "sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==", - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", - "license": "MIT" - }, - "node_modules/@types/responselike": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", - "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/route-parser": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/@types/route-parser/-/route-parser-0.1.7.tgz", - "integrity": "sha512-haO+3HVio/4w+yuMJTjqfSo0ivOV8WnXaOReVD6QN729UGBEyizWNGc2Jd0OLsJDucIod4aJSsPLBeLj2uzMCQ==", - "license": "MIT" - }, - "node_modules/@types/safer-buffer": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@types/safer-buffer/-/safer-buffer-2.1.3.tgz", - "integrity": "sha512-5o3RcpBa7mUFnnnoMa9UIGOf9naD4DCKKMYzqkm9OSY7NNTd26k7adNC+fphcVRI9BUJglBs2yJQiRZYqBF/8w==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/semver": { - "version": "7.8.0", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.8.0.tgz", - "integrity": "sha512-1mAINjtQCXXeLkJ9ehXkwOcBpqtLxiVtKhpUf83DdRNdQKV0iXZpaHYqRr7nj+wvxuJzoAmAwXI+sCNMv1CzLQ==", - "license": "MIT" - }, - "node_modules/@types/send": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz", - "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.10", - "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.10.tgz", - "integrity": "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==", - "license": "MIT", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "<1" - } - }, - "node_modules/@types/serve-static/node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", - "license": "MIT" - }, - "node_modules/@types/serve-static/node_modules/@types/send": { - "version": "0.17.6", - "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.6.tgz", - "integrity": "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==", - "license": "MIT", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/tar-fs": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/@types/tar-fs/-/tar-fs-1.16.3.tgz", - "integrity": "sha512-Y+fdeg11tb9J3UNIatNtrTPM1i8U+WLv2mMhZ3W13mtU19stCgrXJ4iXLkTpoF8jqHi3T/qTS8+fQ3IPzXxpuA==", - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/tar-stream": "*" - } - }, - "node_modules/@types/tar-stream": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/@types/tar-stream/-/tar-stream-3.1.5.tgz", - "integrity": "sha512-zCUA6CSDw0t2cpQiZixpyzfubpeuVZmBr5wztvuCG4bhy7reX/9wGXdZxEzz2CjMFLQ32UPR/01jzUUSRJeCeQ==", - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/trusted-types": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", - "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", - "license": "MIT", - "optional": true - }, - "node_modules/@types/write-json-file": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@types/write-json-file/-/write-json-file-2.2.1.tgz", - "integrity": "sha512-JdO/UpPm9RrtQBNVcZdt3M7j3mHO/kXaea9LBGx3UgWJd1f9BkIWP7jObLBG6ZtRyqp7KzLFEsaPhWcidVittA==", - "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/@types/yargs": { - "version": "17.0.35", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", - "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", - "license": "MIT", - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "license": "MIT" - }, - "node_modules/@typescript/typescript-aix-ppc64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", - "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", - "cpu": [ - "ppc64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "aix" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-darwin-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", - "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-darwin-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", - "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "darwin" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-freebsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", - "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-freebsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", - "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "freebsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-arm": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", - "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", - "cpu": [ - "arm" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", - "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-loong64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", - "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", - "cpu": [ - "loong64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-mips64el": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", - "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", - "cpu": [ - "mips64el" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-ppc64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", - "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", - "cpu": [ - "ppc64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-riscv64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", - "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", - "cpu": [ - "riscv64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-s390x": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", - "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", - "cpu": [ - "s390x" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-linux-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", - "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "linux" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-netbsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", - "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "netbsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-netbsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", - "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "netbsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-openbsd-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", - "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "openbsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-openbsd-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", - "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "openbsd" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-sunos-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", - "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "sunos" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-win32-arm64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", - "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", - "cpu": [ - "arm64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@typescript/typescript-win32-x64": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", - "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", - "cpu": [ - "x64" - ], - "license": "Apache-2.0", - "optional": true, - "os": [ - "win32" - ], - "peer": true, - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/@virtuoso.dev/react-urx": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/@virtuoso.dev/react-urx/-/react-urx-0.2.13.tgz", - "integrity": "sha512-MY0ugBDjFb5Xt8v2HY7MKcRGqw/3gTpMlLXId2EwQvYJoC8sP7nnXjAxcBtTB50KTZhO0SbzsFimaZ7pSdApwA==", - "license": "MIT", - "dependencies": { - "@virtuoso.dev/urx": "^0.2.13" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": ">=16" - } - }, - "node_modules/@virtuoso.dev/urx": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/@virtuoso.dev/urx/-/urx-0.2.13.tgz", - "integrity": "sha512-iirJNv92A1ZWxoOHHDYW/1KPoi83939o83iUBQHIim0i3tMeSKEh+bxhJdTHQ86Mr4uXx9xGUTq69cp52ZP8Xw==", - "license": "MIT" - }, - "node_modules/@vscode/codicons": { - "version": "0.0.45", - "resolved": "https://registry.npmjs.org/@vscode/codicons/-/codicons-0.0.45.tgz", - "integrity": "sha512-1KAZ7XCMagp5Gdrlr4bbbcAqgcIL623iO1wW6rfcSVGAVUQvR0WP7bQx1SbJ11gmV3fdQTSEFIJQ/5C+HuVasw==", - "license": "CC-BY-4.0" - }, - "node_modules/@vscode/debugprotocol": { - "version": "1.68.0", - "resolved": "https://registry.npmjs.org/@vscode/debugprotocol/-/debugprotocol-1.68.0.tgz", - "integrity": "sha512-2J27dysaXmvnfuhFGhfeuxfHRXunqNPxtBoR3koiTOA9rdxWNDTa1zIFLCFMSHJ9MPTPKFcBeblsyaCJCIlQxg==", - "license": "MIT" - }, - "node_modules/@vscode/proxy-agent": { - "version": "0.13.2", - "resolved": "https://registry.npmjs.org/@vscode/proxy-agent/-/proxy-agent-0.13.2.tgz", - "integrity": "sha512-BSUd0NTj44WvG4O9A6N+4R1XhxtPqCYltWeHyNkquX9T//a1US+cd8fxzcZCPd3z7dygdYIPkZAKM+CrefWWOA==", - "license": "MIT", - "dependencies": { - "@tootallnate/once": "^1.1.2", - "agent-base": "^6.0.2", - "debug": "^4.3.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "socks-proxy-agent": "^5.0.0" - }, - "optionalDependencies": { - "@vscode/windows-ca-certs": "^0.3.1" - } - }, - "node_modules/@vscode/proxy-agent/node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "license": "MIT", - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/@vscode/ripgrep": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep/-/ripgrep-1.18.0.tgz", - "integrity": "sha512-ns5lWe44tSfbTMbVUsyB+I1819PVSw4AdpgK0RNkzfWfwy6+3IUNSxwSrfTno1/oWaS/hERNz+XLWVyga2aJBQ==", - "license": "MIT", - "optionalDependencies": { - "@vscode/ripgrep-darwin-arm64": "1.18.0", - "@vscode/ripgrep-darwin-x64": "1.18.0", - "@vscode/ripgrep-linux-arm": "1.18.0", - "@vscode/ripgrep-linux-arm64": "1.18.0", - "@vscode/ripgrep-linux-ia32": "1.18.0", - "@vscode/ripgrep-linux-ppc64": "1.18.0", - "@vscode/ripgrep-linux-riscv64": "1.18.0", - "@vscode/ripgrep-linux-s390x": "1.18.0", - "@vscode/ripgrep-linux-x64": "1.18.0", - "@vscode/ripgrep-win32-arm64": "1.18.0", - "@vscode/ripgrep-win32-ia32": "1.18.0", - "@vscode/ripgrep-win32-x64": "1.18.0" - } - }, - "node_modules/@vscode/ripgrep-darwin-arm64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-darwin-arm64/-/ripgrep-darwin-arm64-1.18.0.tgz", - "integrity": "sha512-r3ktHSvbFycQNF6sl7sNDPocpsI7J+mEzh1IaZFkY0spm3k2Z9t8hPAeOK7+p0l6p6/swkQC14XWX01low+94Q==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@vscode/ripgrep-darwin-x64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-darwin-x64/-/ripgrep-darwin-x64-1.18.0.tgz", - "integrity": "sha512-25b4gWbL138dGuQU244ebCKKc0q05ULBMoFSz9oAEUHNeqK/lOJViDS7DRvbDazzAzSEdan391Znks/R5mkaTQ==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ] - }, - "node_modules/@vscode/ripgrep-linux-arm": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-arm/-/ripgrep-linux-arm-1.18.0.tgz", - "integrity": "sha512-GDAvufNDHu8zqLEmXstalQF0Wh6wQvdsBi/Vg3Yi3CK4a8XoFXqqXVEHEZ9xQz3t0NfoSEc9JbvK9DDS6FxyxQ==", - "cpu": [ - "arm" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-arm64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-arm64/-/ripgrep-linux-arm64-1.18.0.tgz", - "integrity": "sha512-lQ/5zTG++U0E3IhVgS4EPTTn/U4okncaRMM5GOFfOYZywS4nuD31GhkHbNYlDk5CuDC68+hYJ0/eQeyCKJDA+g==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-ia32": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-ia32/-/ripgrep-linux-ia32-1.18.0.tgz", - "integrity": "sha512-YWLkSUtFd4Jh5EepIhA9RJSfv3uMAVMo+2rBIGHPBnvgLrZciIs2cDKei1/p6Wc/aCzUoHyMAg2R6tw4ZCBKGg==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-ppc64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-ppc64/-/ripgrep-linux-ppc64-1.18.0.tgz", - "integrity": "sha512-quXVY8fwQ8O/lvU1yrSqSl3jlUzysRSb+AfUfCL/tRtphxsKlFvPAejryZ6vg4Bgvn8XL74xb4qMCDmWgYrT5w==", - "cpu": [ - "ppc64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-riscv64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-riscv64/-/ripgrep-linux-riscv64-1.18.0.tgz", - "integrity": "sha512-f5kBQBrWfQt8Q7OhSORuNDei5dkYagBj3y4jImSUXGMy8B/Ke7SltSRcUtjPv166FAFfHCAmWuZp3+cWnX2/Vw==", - "cpu": [ - "riscv64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-s390x": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-s390x/-/ripgrep-linux-s390x-1.18.0.tgz", - "integrity": "sha512-rTOcJFGGcl2c07RUOWUo4U1ndnemKhY6A9hnMB18uk7jSgJc0d/QLBGWMWpumdtoJtpizn/wIv5mXIisJukusQ==", - "cpu": [ - "s390x" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-linux-x64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-linux-x64/-/ripgrep-linux-x64-1.18.0.tgz", - "integrity": "sha512-mQ3bVrUpnD2vs7QT0vX90Lt0cnUq467uFtEktIdsJJmW296RoSULRGqWgzG1AKxyBpNDD6l4ZO4qKf6SgyC23Q==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@vscode/ripgrep-win32-arm64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-win32-arm64/-/ripgrep-win32-arm64-1.18.0.tgz", - "integrity": "sha512-vfTIjq1OHnzUjxZcHVQAMbnggp8dpGf+0QKFOZHwWPqFwXxQC8eCWM+5NUdoJ6yrElCeMzoUTXoK/LdZaniB+Q==", - "cpu": [ - "arm64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@vscode/ripgrep-win32-ia32": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-win32-ia32/-/ripgrep-win32-ia32-1.18.0.tgz", - "integrity": "sha512-//rfAE+BOw5AC2EMmepmiE36jUuevtQYNQqqlw1s3m9FlRxjxEut97RkRPHAu9BG4mSojatZx+kXZXNdyI9caQ==", - "cpu": [ - "ia32" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@vscode/ripgrep-win32-x64": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@vscode/ripgrep-win32-x64/-/ripgrep-win32-x64-1.18.0.tgz", - "integrity": "sha512-KNPvtElldqILHdnAetujPaowkNbpqJy3ssIGGN6F6Kve9Qi+nNLI2DN01O83JjCEVQbCzl8Ov3QZ9Eov3BR8Dg==", - "cpu": [ - "x64" - ], - "license": "MIT", - "optional": true, - "os": [ - "win32" - ] - }, - "node_modules/@vscode/windows-ca-certs": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/@vscode/windows-ca-certs/-/windows-ca-certs-0.3.4.tgz", - "integrity": "sha512-DcDLjBpu8srh6wUiZqEMyhXHzNDO81ecZOttL3+1u3Iht4CS6Qtxy5WkTPX/aDgbheASO/MK8yg6uLq58RzEWg==", - "hasInstallScript": true, - "license": "BSD", - "optional": true, - "os": [ - "win32" - ], - "dependencies": { - "node-addon-api": "^8.2.0" - } - }, - "node_modules/@vscode/windows-ca-certs/node_modules/node-addon-api": { - "version": "8.9.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.9.2.tgz", - "integrity": "sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==", - "license": "MIT", - "optional": true, - "engines": { - "node": "^18 || ^20 || >= 21" - } - }, - "node_modules/@wishforge/ide-policy": { - "resolved": "policy", - "link": true - }, - "node_modules/@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/abbrev": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-4.0.0.tgz", - "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/accepts": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", - "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "license": "MIT", - "dependencies": { - "mime-types": "~2.1.34", - "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.19.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", - "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/advanced-mark.js": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/advanced-mark.js/-/advanced-mark.js-2.7.1.tgz", - "integrity": "sha512-OVoypiDXWqP+BCfXznAvwiyXZth/SF36R8SCsqptAA+0CdpX8DX9FH1qZ1OhrJxOeaSF4AgkeCFd+6EmsNAqww==", - "license": "MIT" - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "license": "MIT", - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "license": "MIT", - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ajv": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", - "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", - "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, - "node_modules/ajv-formats/node_modules/ajv": { - "version": "8.20.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", - "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ajv-formats/node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "license": "MIT" - }, - "node_modules/anser": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/anser/-/anser-2.3.5.tgz", - "integrity": "sha512-vcZjxvvVoxTeR5XBNJB38oTu/7eDCZlwdz32N1eNgpyPF7j/Z7Idf+CUwQOkKKpJ7RJyjxgLHCM7vdIK0iCNMQ==", - "license": "MIT" - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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/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/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "license": "ISC", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/anymatch/node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/append-field": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/append-field/-/append-field-1.0.0.tgz", - "integrity": "sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==", - "license": "MIT" - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "license": "Python-2.0" - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.2.tgz", - "integrity": "sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "is-array-buffer": "^3.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-flatten": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", - "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", - "license": "MIT" - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.4.tgz", - "integrity": "sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "is-array-buffer": "^3.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/async": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", - "dev": true, - "license": "MIT" - }, - "node_modules/async-function": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/async-function/-/async-function-1.0.0.tgz", - "integrity": "sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/async-mutex": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/async-mutex/-/async-mutex-0.4.1.tgz", - "integrity": "sha512-WfoBo4E/TbCX1G95XTjbWTE3X2XLG0m1Xbv2cwOtuPdyH9CZvnaA5nCt1ucjaKEgW2A5IF71hxrRhr83Je5xjA==", - "license": "MIT", - "dependencies": { - "tslib": "^2.4.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "license": "MIT" - }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "license": "MIT", - "dependencies": { - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axios": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz", - "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.16.0", - "form-data": "^4.0.6", - "https-proxy-agent": "^5.0.1", - "proxy-from-env": "^2.1.0" - } - }, - "node_modules/b4a": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.9.0.tgz", - "integrity": "sha512-dpfcF9fDNR6++cthXR67iyhgqWy9CBouAvIWhIntzBG6cvK/cnIPiZQjBwi/ZqjjBEDGfoNDtmB0kTjroOJ3pQ==", - "license": "Apache-2.0", - "peerDependencies": { - "react-native-b4a": "*" - }, - "peerDependenciesMeta": { - "react-native-b4a": { - "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/bare-events": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.9.2.tgz", - "integrity": "sha512-AIPKioV7/Y/8KfZ3AAhjPJxLLbY49S64Ym5DakZlUg75qQiTgUq9hEJoEwa4eUezPUlXRy/i5NpsKvo9jgKmoA==", - "license": "Apache-2.0", - "peerDependencies": { - "bare-abort-controller": "*" - }, - "peerDependenciesMeta": { - "bare-abort-controller": { - "optional": true - } - } - }, - "node_modules/bare-fs": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.8.4.tgz", - "integrity": "sha512-MPC2eyrpbk3A873sK4y6rk+Iv4o2enxTjHZ8zH3HO0mjrpm5XjnguY2XmfidIsDV6vnjpbMBKUAJpV0ISD2SsQ==", - "license": "Apache-2.0", - "dependencies": { - "bare-events": "^2.5.4", - "bare-path": "^3.0.0", - "bare-stream": "^2.6.4", - "bare-url": "^2.2.2", - "fast-fifo": "^1.3.2" - }, - "engines": { - "bare": ">=1.28.0" - }, - "peerDependencies": { - "bare-buffer": "*" - }, - "peerDependenciesMeta": { - "bare-buffer": { - "optional": true - } - } - }, - "node_modules/bare-path": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.1.2.tgz", - "integrity": "sha512-ZyKbsuuqK6Ag0K8pX6V5Txq6XeJRvY+wXucnFGRjiyVYP9YWDpIQugk/b+enRYrEYBJaqLzghRQpXPMR7341Nw==", - "license": "Apache-2.0" - }, - "node_modules/bare-stream": { - "version": "2.13.4", - "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.4.tgz", - "integrity": "sha512-PcrQ8lVLbiJscNm1Kez+Yp4Gy4AHGcN1lzwjvf5NybWen7VvEgUfyfnXYJ2zNqWnzOfCb1Abq6lH8ti0syQszA==", - "license": "Apache-2.0", - "dependencies": { - "b4a": "^1.8.1", - "streamx": "^2.25.0", - "teex": "^1.0.1" - }, - "peerDependencies": { - "bare-abort-controller": "*", - "bare-buffer": "*", - "bare-events": "*" - }, - "peerDependenciesMeta": { - "bare-abort-controller": { - "optional": true - }, - "bare-buffer": { - "optional": true - }, - "bare-events": { - "optional": true - } - } - }, - "node_modules/bare-url": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.5.5.tgz", - "integrity": "sha512-iM9qJCruvpt2rPaLsrumVDru9pogI7PHziHIa9kTNRFt8C8HuSa+kI9kFezK+NvHEFnnz71rKGZ1EAilq/3V/Q==", - "license": "Apache-2.0", - "dependencies": { - "bare-path": "^3.0.0" - } - }, - "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/basic-auth": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", - "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "5.1.2" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/basic-auth/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/bent": { - "version": "7.3.12", - "resolved": "https://registry.npmjs.org/bent/-/bent-7.3.12.tgz", - "integrity": "sha512-T3yrKnVGB63zRuoco/7Ybl7BwwGZR0lceoVG5XmQyMIH9s19SV5m+a8qam4if0zQuAmOQTyPTPmsQBdAorGK3w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "bytesish": "^0.4.1", - "caseless": "~0.12.0", - "is-stream": "^2.0.0" - } - }, - "node_modules/big-integer": { - "version": "1.6.52", - "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.52.tgz", - "integrity": "sha512-QxD8cf2eVqJOOz63z6JIN9BzvVs/dlySa5HGSBH5xtR8dPteIRQnBxxKqkNTiT6jbDTF6jAfrd4oMcND9RGbQg==", - "dev": true, - "license": "Unlicense", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/binary": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", - "integrity": "sha512-D4H1y5KYwpJgK8wk1Cue5LLPgmwHKYSChkbspQg5JtVuR5ulGckxfR62H3AE9UDkdMC8yyXlqYihuz3Aqg2XZg==", - "dev": true, - "license": "MIT", - "dependencies": { - "buffers": "~0.1.1", - "chainsaw": "~0.1.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/bindings": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "license": "MIT", - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, - "node_modules/bl": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", - "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", - "license": "MIT", - "dependencies": { - "readable-stream": "^2.3.5", - "safe-buffer": "^5.1.1" - } - }, - "node_modules/bluebird": { - "version": "3.4.7", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", - "integrity": "sha512-iD3898SR7sWVRHbiQv+sHUtHnMvC1o3nW5rAcqnq3uOn07DSAppZYUkIGslDz6gXC7HfunPe7YVBgoEJASPcHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/body-parser": { - "version": "1.20.8", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.8.tgz", - "integrity": "sha512-JNcyFQ64OiijEkPzUBTCe+hyPXUD/3LEldGQ6iF5LR1w00mx9o7xtDWHXBY2iItjdCFGoilOLNQbH943ut7pHA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "content-type": "~1.0.5", - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "~1.2.0", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "on-finished": "~2.4.1", - "qs": "~6.16.0", - "raw-body": "~2.5.3", - "type-is": "~1.6.18", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/body-parser/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/body-parser/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/body-parser/node_modules/raw-body": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz", - "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.4.24", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/boolean": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz", - "integrity": "sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dev": true, - "license": "MIT", - "optional": true - }, - "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/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true, - "license": "ISC" - }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "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", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/buffer-alloc": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", - "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", - "license": "MIT", - "dependencies": { - "buffer-alloc-unsafe": "^1.1.0", - "buffer-fill": "^1.0.0" - } - }, - "node_modules/buffer-alloc-unsafe": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", - "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", - "license": "MIT" - }, - "node_modules/buffer-crc32": { - "version": "0.2.13", - "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/buffer-fill": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", - "license": "MIT" - }, - "node_modules/buffer-indexof-polyfill": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz", - "integrity": "sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10" - } - }, - "node_modules/buffers": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", - "integrity": "sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ==", - "dev": true, - "engines": { - "node": ">=0.2.0" - } - }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/bytesish": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/bytesish/-/bytesish-0.4.4.tgz", - "integrity": "sha512-i4uu6M4zuMUiyfZN4RU2+i9+peJh//pXhd9x1oSe1LBkZ3LEbCoygu8W0bXTukU1Jme2txKuotpCZRaC3FLxcQ==", - "dev": true, - "license": "(Apache-2.0 AND MIT)" - }, - "node_modules/cacheable-lookup": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz", - "integrity": "sha512-2/kNscPhpcxrOigMZzbiWF7dz8ilhb/nIHU3EyZiXWXpeq/au8qJ8VhdftMkty3n7Gj6HIGalQG8oiBNB3AJgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10.6.0" - } - }, - "node_modules/cacheable-request": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-7.0.4.tgz", - "integrity": "sha512-v+p6ongsrp0yTGbJXjgxPow2+DL93DASP4kXCDKb8/bwRtt9OEF3whggkkDkGNzgcWy2XaF4a8nZglC7uElscg==", - "dev": true, - "license": "MIT", - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^4.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^6.0.1", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cacheable-request/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/chai": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", - "integrity": "sha512-RITGBfijLkBddZvnn8jdqoTypxvqbOLYQkGGxXzeFjVHvudaPw0HNFD9x928/eUwYWd2dPCugVqspGALTZZQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/chainsaw": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", - "integrity": "sha512-75kWfWt6MEKNC8xYXIdRpDehRYY/tNSgwKaJq+dbbDcxORuVrrQ+SEHoWsniVn9XPYfP4gmdWIeDk/4YNp1rNQ==", - "dev": true, - "license": "MIT/X11", - "dependencies": { - "traverse": ">=0.3.0 <0.4" - }, - "engines": { - "node": "*" - } - }, - "node_modules/chalk": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz", - "integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.2" - }, - "engines": { - "node": "*" - } - }, - "node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "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==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=18" - } - }, - "node_modules/chromium-bidi": { - "version": "16.0.1", - "resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-16.0.1.tgz", - "integrity": "sha512-J63PGu/9PpeCwLIcKYyzWP6yaVL5pxuBc0shlYCYM8BaAkmlwiQboXO1iNbOgSDbVklEyYFfNEcHD8oOAWacUA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mitt": "^3.0.1", - "zod": "^3.24.1" - }, - "engines": { - "node": ">=20.19.0 <22.0.0 || >=22.12.0" - }, - "peerDependencies": { - "devtools-protocol": "*" - } - }, - "node_modules/chromium-bidi/node_modules/zod": { - "version": "3.25.76", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", - "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/cliui/node_modules/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/clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8" - } - }, - "node_modules/clone-response": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.3.tgz", - "integrity": "sha512-ROoL94jJH2dUVML2Y/5PEDNaSHgeOdSDicUyS7izcF63G6sTc/FTjLub4b8Il9S8S0beOfYt0TaA5qvFK+w0wA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mimic-response": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "license": "MIT", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/comlink": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/comlink/-/comlink-4.4.2.tgz", - "integrity": "sha512-OxGdvBmJuNKSCMO4NTl1L47VRp6xn2wG4F/2hYzB6tiCb709otOxtEYCSvK80PtjODfXXZu8ds+Nw5kVCjqd2g==", - "license": "Apache-2.0" - }, - "node_modules/commander": { - "version": "2.20.3", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "license": "MIT" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "license": "MIT" - }, - "node_modules/confbox": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", - "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", - "dev": true, - "license": "MIT" - }, - "node_modules/content-disposition": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", - "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz", - "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz", - "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==", - "license": "MIT" - }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "license": "MIT" - }, - "node_modules/cors": { - "version": "2.8.6", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", - "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", - "license": "MIT", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/corser": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", - "integrity": "sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "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/data-view-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz", - "integrity": "sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/data-view-byte-length": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.2.tgz", - "integrity": "sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/inspect-js" - } - }, - "node_modules/data-view-byte-offset": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.1.tgz", - "integrity": "sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/decompress/-/decompress-4.2.1.tgz", - "integrity": "sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ==", - "license": "MIT", - "dependencies": { - "decompress-tar": "^4.0.0", - "decompress-tarbz2": "^4.0.0", - "decompress-targz": "^4.0.0", - "decompress-unzip": "^4.0.1", - "graceful-fs": "^4.1.10", - "make-dir": "^1.0.0", - "pify": "^2.3.0", - "strip-dirs": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-response": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", - "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", - "license": "MIT", - "dependencies": { - "mimic-response": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-response/node_modules/mimic-response": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", - "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/decompress-tar": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/decompress-tar/-/decompress-tar-4.1.1.tgz", - "integrity": "sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ==", - "license": "MIT", - "dependencies": { - "file-type": "^5.2.0", - "is-stream": "^1.1.0", - "tar-stream": "^1.5.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-tar/node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decompress-tar/node_modules/tar-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", - "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", - "license": "MIT", - "dependencies": { - "bl": "^1.0.0", - "buffer-alloc": "^1.2.0", - "end-of-stream": "^1.0.0", - "fs-constants": "^1.0.0", - "readable-stream": "^2.3.0", - "to-buffer": "^1.1.1", - "xtend": "^4.0.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/decompress-tarbz2": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz", - "integrity": "sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A==", - "license": "MIT", - "dependencies": { - "decompress-tar": "^4.1.0", - "file-type": "^6.1.0", - "is-stream": "^1.1.0", - "seek-bzip": "^1.0.5", - "unbzip2-stream": "^1.0.9" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-tarbz2/node_modules/file-type": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", - "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-tarbz2/node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decompress-targz": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/decompress-targz/-/decompress-targz-4.1.1.tgz", - "integrity": "sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w==", - "license": "MIT", - "dependencies": { - "decompress-tar": "^4.1.1", - "file-type": "^5.2.0", - "is-stream": "^1.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-targz/node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decompress-unzip": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/decompress-unzip/-/decompress-unzip-4.0.1.tgz", - "integrity": "sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw==", - "license": "MIT", - "dependencies": { - "file-type": "^3.8.0", - "get-stream": "^2.2.0", - "pify": "^2.3.0", - "yauzl": "^2.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/decompress-unzip/node_modules/file-type": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", - "integrity": "sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/deep-eql": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.4.tgz", - "integrity": "sha512-SUwdGfqdKOwxCPeVYjwSyRpJ7Z+fhpwIAtmCUdZIWZ/YP5R9WAsyuSgpLVDi9bjWoN2LXHNss/dk3urXtdQxGg==", - "dev": true, - "license": "MIT", - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "license": "MIT", - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/defer-to-connect": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-2.0.1.tgz", - "integrity": "sha512-4tvttepXG1VaYGrRibk5EwJd1t4udunSOVMdLSAL6mId1ix438oPwPZMALY41FCijukO1L0twNcGsdzS7dHgDg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/destroy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", - "license": "MIT", - "engines": { - "node": ">= 0.8", - "npm": "1.2.8000 || >= 1.4.16" - } - }, - "node_modules/detect-indent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", - "integrity": "sha512-rlpvsxUtM0PQvy9iZe640/IWwWYyBsTApREbA1pHOpmOUIl9MkP/U4z7vTtg4Oaojvqhxt7sdufnT0EzGaR31g==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "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", - "engines": { - "node": ">=8" - } - }, - "node_modules/detect-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.1.0.tgz", - "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/devtools-protocol": { - "version": "0.0.1624250", - "resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1624250.tgz", - "integrity": "sha512-YFAat/lOiIk0ARmBweG+ygrEcbZrq5B9urRyUoeQKp53MlidHXE2TmTbxKcaXoQj7u/aX+jebDO4BW55rs0WwA==", - "dev": true, - "license": "BSD-3-Clause" - }, - "node_modules/diff": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.2.tgz", - "integrity": "sha512-vtcDfH3TOjP8UekytvnHH1o1P4FcUdt4eQ1Y+Abap1tk/OB2MWQvcwS2ClCd1zuIhc3JKOx6p3kod8Vfys3E+A==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/dompurify": { - "version": "3.4.17", - "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.17.tgz", - "integrity": "sha512-B/pSlYVHQ58kqISD/yDjuJ1yfzI34m1gF4lAod2bwSRhiN4K5Cl3H8Af7hqB2PmTL911tdEudnnXn5FnhRoz0w==", - "license": "(MPL-2.0 OR Apache-2.0)", - "optionalDependencies": { - "@types/trusted-types": "^2.0.7" - } - }, - "node_modules/drivelist": { - "version": "12.0.2", - "resolved": "https://registry.npmjs.org/drivelist/-/drivelist-12.0.2.tgz", - "integrity": "sha512-Nps4pc1ukIqDj7v00wGgBkS7P3VVEZZKcaTPVcE1Yl+dLojXuEv76BuSg6HgmhjeOFIIMz8q7Y+2tux6gYqCvg==", - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "bindings": "^1.5.0", - "debug": "^4.3.4", - "node-addon-api": "^8.0.0", - "prebuild-install": "^7.1.1" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/drivelist/node_modules/node-addon-api": { - "version": "8.9.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-8.9.2.tgz", - "integrity": "sha512-VijLXbi3UACN69I0JVXJsX4tjACjNoQDgv2gTF6sx2wWEi8tkSg2eX8p5gSIFi8z2+DL3oHmY6OyKce38SDolg==", - "license": "MIT", - "engines": { - "node": "^18 || ^20 || >= 21" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/duplexer2": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", - "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "readable-stream": "^2.0.2" - } - }, - "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/ee-first": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", - "license": "MIT" - }, - "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/encodeurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/end-of-stream": { - "version": "1.4.5", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", - "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", - "license": "MIT", - "dependencies": { - "once": "^1.4.0" - } - }, - "node_modules/engine.io": { - "version": "6.6.11", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.6.11.tgz", - "integrity": "sha512-z34mGpLoY/82ZbkX1LqGMIaf3wjVMPL6gVC681QDqnmzJ26synI8qAE32P+a7UazmpJZ8UGrFIeAavgRfXzYrg==", - "license": "MIT", - "dependencies": { - "@types/cors": "^2.8.12", - "@types/node": ">=10.0.0", - "@types/ws": "^8.5.12", - "accepts": "~1.3.4", - "cookie": "~0.7.2", - "cors": "~2.8.5", - "debug": "~4.4.1", - "engine.io-parser": "~5.2.1", - "ws": "~8.21.0" - }, - "engines": { - "node": ">=10.2.0" - } - }, - "node_modules/engine.io-client": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.6.7.tgz", - "integrity": "sha512-GyAvmPA7gnRCpDQbYACAy79Lg4ewevrmaPzySZz0OVvgyZc3gEfLLqPTYk8wVBScjOEpM9ZO4KryyFpVItjGEA==", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.4.1", - "engine.io-parser": "~5.2.1", - "ws": "~8.21.0", - "xmlhttprequest-ssl": "~2.1.1" - } - }, - "node_modules/engine.io-client/node_modules/ws": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", - "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", - "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/engine.io-parser": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.2.3.tgz", - "integrity": "sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/engine.io/node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/engine.io/node_modules/ws": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", - "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", - "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/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/es-abstract": { - "version": "1.24.2", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.2.tgz", - "integrity": "sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-buffer-byte-length": "^1.0.2", - "arraybuffer.prototype.slice": "^1.0.4", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "data-view-buffer": "^1.0.2", - "data-view-byte-length": "^1.0.2", - "data-view-byte-offset": "^1.0.1", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "es-set-tostringtag": "^2.1.0", - "es-to-primitive": "^1.3.0", - "function.prototype.name": "^1.1.8", - "get-intrinsic": "^1.3.0", - "get-proto": "^1.0.1", - "get-symbol-description": "^1.1.0", - "globalthis": "^1.0.4", - "gopd": "^1.2.0", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "internal-slot": "^1.1.0", - "is-array-buffer": "^3.0.5", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.2", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.2.1", - "is-set": "^2.0.3", - "is-shared-array-buffer": "^1.0.4", - "is-string": "^1.1.1", - "is-typed-array": "^1.1.15", - "is-weakref": "^1.1.1", - "math-intrinsics": "^1.1.0", - "object-inspect": "^1.13.4", - "object-keys": "^1.1.1", - "object.assign": "^4.1.7", - "own-keys": "^1.0.1", - "regexp.prototype.flags": "^1.5.4", - "safe-array-concat": "^1.1.3", - "safe-push-apply": "^1.0.0", - "safe-regex-test": "^1.1.0", - "set-proto": "^1.0.0", - "stop-iteration-iterator": "^1.1.0", - "string.prototype.trim": "^1.2.10", - "string.prototype.trimend": "^1.0.9", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-length": "^1.0.3", - "typed-array-byte-offset": "^1.0.4", - "typed-array-length": "^1.0.7", - "unbox-primitive": "^1.1.0", - "which-typed-array": "^1.1.19" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-abstract-get": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", - "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.2", - "is-callable": "^1.2.7", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "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==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", - "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-to-primitive": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", - "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-abstract-get": "^1.0.0", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "is-callable": "^1.2.7", - "is-date-object": "^1.1.0", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true, - "license": "MIT", - "optional": true - }, - "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/esbuild-plugin-copy": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/esbuild-plugin-copy/-/esbuild-plugin-copy-2.1.1.tgz", - "integrity": "sha512-Bk66jpevTcV8KMFzZI1P7MZKZ+uDcrZm2G2egZ2jNIvVnivDpodZI+/KnpL3Jnap0PBdIHU7HwFGB8r+vV5CVw==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.2", - "chokidar": "^3.5.3", - "fs-extra": "^10.0.1", - "globby": "^11.0.3" - }, - "peerDependencies": { - "esbuild": ">= 0.14.0" - } - }, - "node_modules/esbuild-plugin-copy/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/esbuild-plugin-copy/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/esbuild-plugin-copy/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/esbuild-plugin-copy/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/esbuild-plugins-node-modules-polyfill": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/esbuild-plugins-node-modules-polyfill/-/esbuild-plugins-node-modules-polyfill-1.8.3.tgz", - "integrity": "sha512-DSWWgkQUkavjuyvuaTSd7FpOOZgMpsgmzANoNCCDtOt6NeK5k5bxrn/kSGxnEyiRfSvfIlwgYfOL7s6RRLaxKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jspm/core": "^2.1.0", - "local-pkg": "^1.2.1", - "resolve.exports": "^2.0.3" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "esbuild": ">=0.14.0 <=0.28.x" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", - "license": "MIT" - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/eventemitter3": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", - "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", - "dev": true, - "license": "MIT" - }, - "node_modules/events-universal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/events-universal/-/events-universal-1.0.1.tgz", - "integrity": "sha512-LUd5euvbMLpwOF8m6ivPCbhQeSiYVNb8Vs0fQ8QjXo0JTkEHpz8pxdQf0gStltaPpw0Cca8b39KxvK9cfKRiAw==", - "license": "Apache-2.0", - "dependencies": { - "bare-events": "^2.7.0" - } - }, - "node_modules/eventsource": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", - "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", - "license": "MIT", - "dependencies": { - "eventsource-parser": "^3.0.1" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/eventsource-parser": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.1.1.tgz", - "integrity": "sha512-EKN1vKAMcZ8MlYMpaNuxN6R9yakzH6uajHcHVTqWJzvu5pWw9DyhbP35HH8MVBQ+dZjAfDxk+A8NiR9KWaXiyQ==", - "license": "MIT", - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/execa": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-2.1.0.tgz", - "integrity": "sha512-Y/URAVapfbYy2Xp/gb6A0E7iR8xeqOCXsuuaoMn7A5PzrXUK84E1gyiEfq0wQd/GHA6GsoHWwhNq8anb0mleIw==", - "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^3.0.0", - "onetime": "^5.1.0", - "p-finally": "^2.0.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": "^8.12.0 || >=9.7.0" - } - }, - "node_modules/execa/node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/expand-template": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", - "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", - "license": "(MIT OR WTFPL)", - "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==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/express": { - "version": "4.22.3", - "resolved": "https://registry.npmjs.org/express/-/express-4.22.3.tgz", - "integrity": "sha512-Bdcs4+3qlpVlx2NRn6fgX2Ue2/gGRaPeawebgclM0ERSCqDpA+owF1fdPwjJUTAJWMTuAaxjDf+hzb0/4eKvvw==", - "license": "MIT", - "dependencies": { - "accepts": "~1.3.8", - "array-flatten": "1.1.1", - "body-parser": "~1.20.5", - "content-disposition": "~0.5.4", - "content-type": "~1.0.4", - "cookie": "~0.7.1", - "cookie-signature": "~1.0.6", - "debug": "2.6.9", - "depd": "2.0.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "finalhandler": "~1.3.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.0", - "merge-descriptors": "1.0.3", - "methods": "~1.1.2", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "path-to-regexp": "~0.1.13", - "proxy-addr": "~2.0.7", - "qs": "~6.16.0", - "range-parser": "~1.2.1", - "safe-buffer": "5.2.1", - "send": "~0.19.0", - "serve-static": "~1.16.2", - "setprototypeof": "1.2.0", - "statuses": "~2.0.1", - "type-is": "~1.6.18", - "utils-merge": "1.0.1", - "vary": "~1.1.2" - }, - "engines": { - "node": ">= 0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express-rate-limit": { - "version": "8.7.1", - "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.7.1.tgz", - "integrity": "sha512-2FXbqkygil3mZiXzEtM0IjE/UBmBNot0J1GEVrJT4JbrvwOSoEtqtO+wHbiMQELWe1eNvHoYRg2dkjOid+6JkA==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.3", - "ip-address": "^10.2.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/express-rate-limit" - }, - "peerDependencies": { - "express": ">= 4.11" - } - }, - "node_modules/express/node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/express/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/exsolve": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.3.tgz", - "integrity": "sha512-kuzL9zherLQoqDeQaS55AiiIg1kb4KYXaSusTtgZTPlvKP2gGCI82LNmBNh5RjDVUXIcmgx+/Mx7vPwRzBbhJA==", - "dev": true, - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT" - }, - "node_modules/fast-fifo": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", - "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", - "license": "MIT" - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" - }, - "node_modules/fast-plist": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/fast-plist/-/fast-plist-0.1.3.tgz", - "integrity": "sha512-d9cEfo/WcOezgPLAC/8t8wGb6YOD6JTCPMw2QcG2nAdFmyY+9rTUizCTaGjIZAloWENTEUMAPpkUAIJJJ0i96A==", - "license": "MIT" - }, - "node_modules/fast-uri": { - "version": "3.1.8", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz", - "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause" - }, - "node_modules/fastq": { - "version": "1.20.3", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", - "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", - "dev": true, - "license": "ISC", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fd-slicer": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", - "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", - "license": "MIT", - "dependencies": { - "pend": "~1.2.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==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/fflate": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", - "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", - "license": "MIT" - }, - "node_modules/file-icons-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/file-icons-js/-/file-icons-js-1.0.3.tgz", - "integrity": "sha512-n4zoKEpMaAxBTUB7wtgrFBa4dM3b7mBLLA1VI/Q5Cdk/k2UA8S8oaxvnECp3QOzg0Dn+KKRzfIHF7qSdRkA65Q==", - "license": "MIT" - }, - "node_modules/file-type": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/file-type/-/file-type-5.2.0.tgz", - "integrity": "sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "license": "MIT" - }, - "node_modules/filename-reserved-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz", - "integrity": "sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/filenamify": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/filenamify/-/filenamify-4.3.0.tgz", - "integrity": "sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg==", - "license": "MIT", - "dependencies": { - "filename-reserved-regex": "^2.0.0", - "strip-outer": "^1.0.1", - "trim-repeated": "^1.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "license": "MIT", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/finalhandler": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz", - "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "on-finished": "~2.4.1", - "parseurl": "~1.3.3", - "statuses": "~2.0.2", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/finalhandler/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "micromatch": "^4.0.2" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "license": "BSD-3-Clause", - "bin": { - "flat": "cli.js" - } - }, - "node_modules/follow-redirects": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.1.tgz", - "integrity": "sha512-FNvFGzoMLWmE6Yj9spb/zjd7yiNCHiAW9/Tg9CXrQ8wuu32HtlJOwWO11OJafl5FfY3DxTdQ0vj42zU1kvv5jg==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "license": "MIT", - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/font-awesome": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/font-awesome/-/font-awesome-4.7.0.tgz", - "integrity": "sha512-U6kGnykA/6bFmg1M/oT9EkFeIYv7JlX3bozwQJWiiLz6L0w3F5vBVPxHlwyX/vtNq1ckcpRKOB9f2Qal/VtFpg==", - "license": "(OFL-1.1 AND MIT)", - "engines": { - "node": ">=0.10.3" - } - }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/foreground-child/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/form-data": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", - "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.4", - "mime-types": "^2.1.35" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fs-constants": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", - "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", - "license": "MIT" - }, - "node_modules/fs-extra": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-4.0.3.tgz", - "integrity": "sha512-q6rbdDd1o2mAnQreO7YADIxf/Whx4AHBiRf6d+/cVT8h44ss+lHgxf1FemcqDnQt9X3ct4McHr+JMGlYSsK7Cg==", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.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==", - "license": "ISC" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/fstream": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", - "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", - "deprecated": "This package is no longer supported.", - "dev": true, - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.2", - "inherits": "~2.0.0", - "mkdirp": ">=0.5 0", - "rimraf": "2" - }, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/fstream/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/fstream/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/fstream/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "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", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/fstream/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/fstream/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/fstream/node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "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==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", - "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2", - "hasown": "^2.0.4", - "is-callable": "^1.2.7", - "is-document.all": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/fuzzy": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/fuzzy/-/fuzzy-0.1.3.tgz", - "integrity": "sha512-/gZffu4ykarLrCiP3Ygsa86UAo1E5vEVlvTrpkKywXSbP9Xhln3oSp9QSV57gEq3JFFpGJ4GZ+5zdEp3FcUh4w==", - "engines": { - "node": ">= 0.6.0" - } - }, - "node_modules/generator-function": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", - "integrity": "sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "license": "ISC", - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-stream": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz", - "integrity": "sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA==", - "license": "MIT", - "dependencies": { - "object-assign": "^4.0.1", - "pinkie-promise": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/get-symbol-description": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.1.0.tgz", - "integrity": "sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/github-from-package": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", - "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", - "license": "MIT" - }, - "node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "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", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/glob/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/glob/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/glob/node_modules/minimatch": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz", - "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/global-agent": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz", - "integrity": "sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "boolean": "^3.0.1", - "es6-error": "^4.1.1", - "matcher": "^3.0.0", - "roarr": "^2.15.3", - "semver": "^7.3.2", - "serialize-error": "^7.0.1" - }, - "engines": { - "node": ">=10.0" - } - }, - "node_modules/globalthis": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.4.tgz", - "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-properties": "^1.2.1", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby/node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/got": { - "version": "11.8.6", - "resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz", - "integrity": "sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@sindresorhus/is": "^4.0.0", - "@szmarczak/http-timer": "^4.0.5", - "@types/cacheable-request": "^6.0.1", - "@types/responselike": "^1.0.0", - "cacheable-lookup": "^5.0.3", - "cacheable-request": "^7.0.2", - "decompress-response": "^6.0.0", - "http2-wrapper": "^1.0.0-beta.5.2", - "lowercase-keys": "^2.0.0", - "p-cancelable": "^2.0.0", - "responselike": "^2.0.0" - }, - "engines": { - "node": ">=10.19.0" - }, - "funding": { - "url": "https://github.com/sindresorhus/got?sponsor=1" - } - }, - "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/has-bigints": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz", - "integrity": "sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.2.0.tgz", - "integrity": "sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "license": "MIT", - "bin": { - "he": "bin/he" - } - }, - "node_modules/hono": { - "version": "4.13.13", - "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.13.tgz", - "integrity": "sha512-CQ46U0ZkAGmbT/4UxdzzGJpacP2IeKgY4a5/tOI9AABbpOMfK739wfDXmv1usCk+3RkKj1hQy4/fjhiwa2xlrA==", - "license": "MIT", - "engines": { - "node": ">=16.9.0" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "license": "MIT", - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "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==", - "dev": true, - "license": "BSD-2-Clause" - }, - "node_modules/http-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", - "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", - "license": "MIT", - "dependencies": { - "depd": "~2.0.0", - "inherits": "~2.0.4", - "setprototypeof": "~1.2.0", - "statuses": "~2.0.2", - "toidentifier": "~1.0.1" - }, - "engines": { - "node": ">= 0.8" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/http-proxy": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", - "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "eventemitter3": "^4.0.0", - "follow-redirects": "^1.0.0", - "requires-port": "^1.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "license": "MIT", - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/http-proxy-agent/node_modules/@tootallnate/once": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.1.tgz", - "integrity": "sha512-HqmEUIGRJ5fSXchkVgR5F7qn48bDBzv0kWj/Kfu5e6uci4UlEeng4331LnBkWffb++Ei3FOVLxo8JJWMFBDMeQ==", - "license": "MIT", - "engines": { - "node": ">= 10" - } - }, - "node_modules/http-server": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz", - "integrity": "sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "basic-auth": "^2.0.1", - "chalk": "^4.1.2", - "corser": "^2.0.1", - "he": "^1.2.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy": "^1.18.1", - "mime": "^1.6.0", - "minimist": "^1.2.6", - "opener": "^1.5.1", - "portfinder": "^1.0.28", - "secure-compare": "3.0.1", - "union": "~0.5.0", - "url-join": "^4.0.1" - }, - "bin": { - "http-server": "bin/http-server" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/http-server/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/http-server/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true, - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/http-status-codes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/http-status-codes/-/http-status-codes-1.4.0.tgz", - "integrity": "sha512-JrT3ua+WgH8zBD3HEJYbeEgnuQaAnUeRRko/YojPAJjGmIfGD3KPU/asLdsLwKjfxOmQe5nXMQ0pt/7MyapVbQ==", - "license": "MIT" - }, - "node_modules/http2-wrapper": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/http2-wrapper/-/http2-wrapper-1.0.3.tgz", - "integrity": "sha512-V+23sDMr12Wnz7iTcDeJr3O6AIxlnvT/bmaAAAP/Xda35C90p9599p0F1eHR/N1KILWSoWVAiOMFjBBXaXSMxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "quick-lru": "^5.1.1", - "resolve-alpn": "^1.0.0" - }, - "engines": { - "node": ">=10.19.0" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "license": "MIT", - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/idb": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/idb/-/idb-4.0.5.tgz", - "integrity": "sha512-P+Fk9HT2h1DhXoE1YNK183SY+CRh2GHNh28de94sGwhe0bUA75JJeVJWt3SenE5p0BXK7maflIq29dl6UZHrFw==", - "license": "ISC" - }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "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": "BSD-3-Clause" - }, - "node_modules/ignore": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-6.0.2.tgz", - "integrity": "sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==", - "license": "MIT", - "engines": { - "node": ">= 4" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "license": "MIT", - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "license": "ISC", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "license": "ISC" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "license": "ISC" - }, - "node_modules/internal-slot": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.1.0.tgz", - "integrity": "sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.2", - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/inversify": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/inversify/-/inversify-6.2.2.tgz", - "integrity": "sha512-KB836KHbZ9WrUnB8ax5MtadOwnqQYa+ZJO3KWbPFgcr4RIEnHM621VaqFZzOZd9+U7ln6upt9n0wJei7x2BNqw==", - "license": "MIT", - "dependencies": { - "@inversifyjs/common": "1.4.0", - "@inversifyjs/core": "1.3.5" - }, - "peerDependencies": { - "reflect-metadata": "~0.2.2" - } - }, - "node_modules/ip-address": { - "version": "10.7.4", - "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz", - "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.5.tgz", - "integrity": "sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-async-function": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-async-function/-/is-async-function-2.1.1.tgz", - "integrity": "sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "async-function": "^1.0.0", - "call-bound": "^1.0.3", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.1.0.tgz", - "integrity": "sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-bigints": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "license": "MIT", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.2.2.tgz", - "integrity": "sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-data-view": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.2.tgz", - "integrity": "sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "get-intrinsic": "^1.2.6", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.1.0.tgz", - "integrity": "sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "license": "MIT", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-document.all": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", - "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-electron": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-electron/-/is-electron-2.2.2.tgz", - "integrity": "sha512-FO/Rhvz5tuw4MCWkpMzHFKWD2LsfHzIb7i6MdPYZ/KW7AlxawyLkqdy+jPZP1WubqEADE3O4FUENlJHDfQASRg==", - "license": "MIT" - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-finalizationregistry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-finalizationregistry/-/is-finalizationregistry-1.1.1.tgz", - "integrity": "sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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-generator-function": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.1.2.tgz", - "integrity": "sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "generator-function": "^2.0.0", - "get-proto": "^1.0.1", - "has-tostringtag": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "license": "MIT", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-map": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.3.tgz", - "integrity": "sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-natural-number": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-natural-number/-/is-natural-number-4.0.1.tgz", - "integrity": "sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ==", - "license": "MIT" - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.1.1.tgz", - "integrity": "sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "license": "MIT" - }, - "node_modules/is-regex": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz", - "integrity": "sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-set": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-set/-/is-set-2.0.3.tgz", - "integrity": "sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.4.tgz", - "integrity": "sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.1.1.tgz", - "integrity": "sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.1.1.tgz", - "integrity": "sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "has-symbols": "^1.1.0", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-weakmap": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-weakmap/-/is-weakmap-2.0.2.tgz", - "integrity": "sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.1.1.tgz", - "integrity": "sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakset": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-weakset/-/is-weakset-2.0.4.tgz", - "integrity": "sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "get-intrinsic": "^1.2.6" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "license": "MIT" - }, - "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/isomorphic.js": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/isomorphic.js/-/isomorphic.js-0.2.5.tgz", - "integrity": "sha512-PIeMbHqMt4DnUP3MA/Flc0HElYjMXArsw1qwJZcm9sqR8mq3l8NYizFMty0pWwE/tzIGH3EKK5+jes5mAr85yw==", - "license": "MIT", - "funding": { - "type": "GitHub Sponsors ❤", - "url": "https://github.com/sponsors/dmonad" - } - }, - "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/jose": { - "version": "6.2.12", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.12.tgz", - "integrity": "sha512-9NiFmJEex0sy2Dk58j2UGBSHgUs2ypF9eZSu4L6vjOX3Dp96Sw1F3uL+H+D1sx02jZZdzUT0HgvCy59CuvXcWw==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "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==", - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", - "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jschardet": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/jschardet/-/jschardet-2.3.0.tgz", - "integrity": "sha512-6I6xT7XN/7sBB7q8ObzKbmv5vN+blzLcboDE1BNEsEfmRXJValMxO6OIRT69ylPBRemS3rw6US+CMCar0OBc9g==", - "license": "LGPL-2.1+", - "engines": { - "node": ">=0.1.90" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" - }, - "node_modules/json-schema-typed": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", - "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", - "license": "BSD-2-Clause" - }, - "node_modules/json-stable-stringify": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.3.0.tgz", - "integrity": "sha512-qtYiSSFlwot9XHtF9bD9c7rwKjr+RecWT//ZnPvSmEjpV5mmPOCN4j8UjY5hbjNkOwZ/jQv3J6R1/pL7RwgMsg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "isarray": "^2.0.5", - "jsonify": "^0.0.1", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "dev": true, - "license": "ISC", - "optional": true - }, - "node_modules/jsonc-parser": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", - "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", - "license": "MIT" - }, - "node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "license": "MIT", - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", - "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", - "dev": true, - "license": "Public Domain", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/just-performance": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/just-performance/-/just-performance-4.3.0.tgz", - "integrity": "sha512-L7RjvtJsL0QO8xFs5wEoDDzzJwoiowRw6Rn/GnvldlchS2JQr9wFYPiwZcDfrbbujEKqKN0tvENdbjXdYhDp5Q==", - "license": "MIT" - }, - "node_modules/keytar": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/keytar/-/keytar-7.9.0.tgz", - "integrity": "sha512-VPD8mtVtm5JNtA2AErl6Chp06JBfy7diFQ7TQQhdpWOl6MrCRB+eRbvAZUsbGQS9kiMq0coJsy0W0vHpDCkWsQ==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-addon-api": "^4.3.0", - "prebuild-install": "^7.0.1" - } - }, - "node_modules/keytar/node_modules/node-addon-api": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", - "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==", - "license": "MIT" - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, - "node_modules/lib0": { - "version": "0.2.119", - "resolved": "https://registry.npmjs.org/lib0/-/lib0-0.2.119.tgz", - "integrity": "sha512-vh+TiejVy8Xm+hCdnRfn9BthGNvNUZdEXltNjVZL3TzRIKP3s1lnQh8pWd/Q0wCgY0FPAGVVjFF4ZiHUV3LFgA==", - "license": "MIT", - "dependencies": { - "isomorphic.js": "^0.2.4" - }, - "bin": { - "0ecdsa-generate-keypair": "bin/0ecdsa-generate-keypair.js", - "0gentesthtml": "bin/gentesthtml.js", - "0serve": "bin/0serve.js" - }, - "engines": { - "node": ">=16" - }, - "funding": { - "type": "GitHub Sponsors ❤", - "url": "https://github.com/sponsors/dmonad" - } - }, - "node_modules/lilconfig": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", - "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/limiter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/limiter/-/limiter-2.1.0.tgz", - "integrity": "sha512-361TYz6iay6n+9KvUUImqdLuFigK+K79qrUtBsXhJTLdH4rIt/r1y8r1iozwh8KbZNpujbFTSh74mJ7bwbAMOw==", - "license": "MIT", - "dependencies": { - "just-performance": "4.3.0" - } - }, - "node_modules/linkify-it": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", - "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/markdown-it" - } - ], - "license": "MIT", - "dependencies": { - "uc.micro": "^2.0.0" - } - }, - "node_modules/listenercount": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", - "integrity": "sha512-3mk/Zag0+IJxeDrxSgaDPy4zZ3w05PRZeJNnlWhzFz5OkX49J4krc+A8X2d2M69vGMBEX0uyl8M+W+8gH+kBqQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/local-pkg": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.2.1.tgz", - "integrity": "sha512-++gUqRDEvcnN6Zhqrr+y/CkVEHhlrR96vZn3nZZPYzMcBUyBtTKzB9NadClFIsIVSsu+3i9tfk/erqy9kAmt7Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "mlly": "^1.7.4", - "pkg-types": "^2.3.0", - "quansync": "^0.2.11" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "license": "MIT" - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "license": "MIT" - }, - "node_modules/lodash.throttle": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==", - "license": "MIT" - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "license": "MIT", - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-update": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", - "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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==", - "license": "MIT", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dev": true, - "license": "MIT", - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "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/luxon": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/luxon/-/luxon-2.5.2.tgz", - "integrity": "sha512-Yg7/RDp4nedqmLgyH0LwgGRvMEKVzKbUdkBYyCosbHgJ+kaOUx0qzSiSatVc3DFygnirTPYnMM2P5dg2uH1WvA==", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/macaddress": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.5.4.tgz", - "integrity": "sha512-i8xVWoUjj2woYU8kbpQby86Kq7uF7xl2brtKREXUBWpfgqx1fKXEeYzDiVMVxA/IufC1d3xxwJRHtFCX+9IspA==", - "license": "MIT" - }, - "node_modules/make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "license": "MIT", - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/make-dir/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/markdown-it": { - "version": "14.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.2.tgz", - "integrity": "sha512-sHHjZ5fJKlgrG4qns2YwVcdNep35h5fERrfkD2YNsb9UFk0UIHarbiTaHKVMlPuWAoiilyK8Fv/jAm11slsY7Q==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/markdown-it" - } - ], - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1", - "entities": "^4.5.0", - "linkify-it": "^5.0.2", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" - }, - "bin": { - "markdown-it": "bin/markdown-it.mjs" - } - }, - "node_modules/markdown-it-anchor": { - "version": "9.2.1", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-9.2.1.tgz", - "integrity": "sha512-p6APiLJDFAW2GEvaavDvhIBn7jrX2jLv77NkBGgNacFTurbORYc4pyYySg/mI6mpR6cHQuAtzKtmqgQr4K8dsQ==", - "license": "Unlicense", - "peerDependencies": { - "@types/markdown-it": "*", - "markdown-it": "*" - } - }, - "node_modules/markdown-it-emoji": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/markdown-it-emoji/-/markdown-it-emoji-3.1.0.tgz", - "integrity": "sha512-NhmMEH2ywduD4Nty1E8uB5NqfLhAT1VR0dyvoJyStKOqCzbZmVdn/+8wj7zpDsb/fLBikpCPsWwxqKlvMmbz4g==", - "license": "MIT" - }, - "node_modules/marked": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-14.0.0.tgz", - "integrity": "sha512-uIj4+faQ+MgHgwUW1l2PsPglZLOLOT1uErt06dAPtx2kjteLAkbsd/0FiYg/MGS+i7ZKLb7w2WClxHkzOOuryQ==", - "license": "MIT", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/matcher": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", - "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "escape-string-regexp": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mdurl": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", - "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", - "license": "MIT" - }, - "node_modules/media-typer": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/merge-descriptors": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", - "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "license": "MIT" - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "license": "MIT", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/micromatch/node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "license": "MIT", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/minimatch": { - "version": "10.2.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", - "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", - "license": "BlueOak-1.0.0", - "dependencies": { - "brace-expansion": "^5.0.8" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/minizlib": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.1.0.tgz", - "integrity": "sha512-KZxYo1BUkWD2TVFLr0MQoM8vUUigWD3LlD83a/75BqC+4qE0Hb1Vo5v1FgcfaNXvfXzr+5EhQ6ing/CaBijTlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "minipass": "^7.1.2" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/mitt": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", - "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", - "dev": true, - "license": "MIT" - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mkdirp-classic": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", - "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", - "license": "MIT" - }, - "node_modules/mlly": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz", - "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.16.0", - "pathe": "^2.0.3", - "pkg-types": "^1.3.1", - "ufo": "^1.6.3" - } - }, - "node_modules/mlly/node_modules/confbox": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", - "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", - "dev": true, - "license": "MIT" - }, - "node_modules/mlly/node_modules/pkg-types": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", - "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "confbox": "^0.1.8", - "mlly": "^1.7.4", - "pathe": "^2.0.1" - } - }, - "node_modules/mocha": { - "version": "11.8.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.8.0.tgz", - "integrity": "sha512-VyCeUdGN3A9lmCTTgG4yuvY9ixxaDk+xt2R/7/+1AP6EqNG+G9OKkzBwhVtVYoNX8YsxNSgAl8mOv3IAeOpFbw==", - "dev": true, - "license": "MIT", - "dependencies": { - "browser-stdout": "^1.3.1", - "chokidar": "^4.0.1", - "debug": "^4.3.5", - "diff": "^7.0.0", - "escape-string-regexp": "^4.0.0", - "find-up": "^5.0.0", - "glob": "^10.4.5", - "he": "^1.2.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "log-symbols": "^4.1.0", - "minimatch": "^9.0.5", - "ms": "^2.1.3", - "picocolors": "^1.1.1", - "serialize-javascript": "^6.0.2", - "strip-json-comments": "^3.1.1", - "supports-color": "^8.1.1", - "workerpool": "^9.2.0", - "yargs": "^17.7.2", - "yargs-parser": "^21.1.1", - "yargs-unparser": "^2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - } - }, - "node_modules/mocha/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/mocha/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/mocha/node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "license": "MIT", - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/mocha/node_modules/diff": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", - "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/mocha/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", - "dev": true, - "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/mocha/node_modules/minimatch": { - "version": "9.0.9", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz", - "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.2" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/modern-tar": { - "version": "0.7.7", - "resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.7.7.tgz", - "integrity": "sha512-t9VmxaqrmANnEOBhpSDI6HD192Ge48k8vmWqQQL7hSFEqHEYwZbbsu49+aKLWZeRvFs3j1pMhXOqqF4kPlvjkQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/mount-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mount-point/-/mount-point-3.0.0.tgz", - "integrity": "sha512-jAhfD7ZCG+dbESZjcY1SdFVFqSJkh/yGbdsifHcPkvuLRO5ugK0Ssmd9jdATu29BTd4JiN+vkpMzVvsUgP3SZA==", - "license": "MIT", - "dependencies": { - "@sindresorhus/df": "^1.0.1", - "pify": "^2.3.0", - "pinkie-promise": "^2.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mount-point/node_modules/@sindresorhus/df": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@sindresorhus/df/-/df-1.0.1.tgz", - "integrity": "sha512-1Hyp7NQnD/u4DSxR2DGW78TF9k7R0wZ8ev0BpMAIzA6yTQSHqNb5wTuvtcPYf4FWbVse2rW7RgDsyL8ua2vXHw==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/move-file": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/move-file/-/move-file-2.1.0.tgz", - "integrity": "sha512-i9qLW6gqboJ5Ht8bauZi7KlTnQ3QFpBCvMvFfEcHADKgHGeJ9BZMO7SFCTwHPV9Qa0du9DYY1Yx3oqlGt30nXA==", - "license": "MIT", - "dependencies": { - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10.17" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "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": "1.12.1", - "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.12.1.tgz", - "integrity": "sha512-4EUH9tQHnMmEgzW/MdAP0KIfa1T9AF+htl0ffe2n5vb2EKn9y2co8ccpgWko6S52Jy1PQZKwRnx5/KkYjtd9MQ==", - "license": "MIT", - "optionalDependencies": { - "msgpackr-extract": "^3.0.2" - } - }, - "node_modules/msgpackr-extract": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/msgpackr-extract/-/msgpackr-extract-3.0.4.tgz", - "integrity": "sha512-4kmO/MdyUIkLIvTPr8VHLil4AtoKIoniWPIEk5+CDy0xnWC84azhSFmuJ7PxZdsYtiP5kEeQsORAVIeMgxT+Hw==", - "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.4", - "@msgpackr-extract/msgpackr-extract-darwin-x64": "3.0.4", - "@msgpackr-extract/msgpackr-extract-linux-arm": "3.0.4", - "@msgpackr-extract/msgpackr-extract-linux-arm64": "3.0.4", - "@msgpackr-extract/msgpackr-extract-linux-x64": "3.0.4", - "@msgpackr-extract/msgpackr-extract-win32-x64": "3.0.4" - } - }, - "node_modules/multer": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/multer/-/multer-2.4.0.tgz", - "integrity": "sha512-7dqa0ZcFfzbefdTuIkzOSMvZWC0J7FLqBOjJUZvDCXShIURWKxAyTT1wHhnE5q19c7jOJf43IYYKjBmZVZmvhg==", - "license": "MIT", - "dependencies": { - "append-field": "^1.0.0", - "busboy": "^1.6.0", - "type-is": "^1.6.18" - }, - "engines": { - "node": ">= 10.16.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/nano": { - "version": "10.1.4", - "resolved": "https://registry.npmjs.org/nano/-/nano-10.1.4.tgz", - "integrity": "sha512-bJOFIPLExIbF6mljnfExXX9Cub4W0puhDjVMp+qV40xl/DBvgKao7St4+6/GB6EoHZap7eFnrnx4mnp5KYgwJA==", - "deprecated": "nano@10 is now deprecated. Please visit https://www.npmjs.com/package/nano for the latest version", - "license": "Apache-2.0", - "dependencies": { - "axios": "^1.7.4", - "node-abort-controller": "^3.1.1", - "qs": "^6.13.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/napi-build-utils": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", - "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", - "license": "MIT" - }, - "node_modules/negotiator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/node-abi": { - "version": "4.37.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-4.37.0.tgz", - "integrity": "sha512-O9XXMXLeRHQtvh43NCah3y9N1K69tecOmu8Y5p2ay4iXvtpbQr0VaroJF9EmRVp3vkdoj3qn4IFfX+ZYtC94fw==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.6.3" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/node-abort-controller": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz", - "integrity": "sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==", - "license": "MIT" - }, - "node_modules/node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "license": "MIT" - }, - "node_modules/node-api-version": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.1.tgz", - "integrity": "sha512-2xP/IGGMmmSQpI1+O/k72jF/ykvZ89JeuKX3TLJAYPDVLUalrshrLHkeVcCCZqG/eEa635cr8IBYzgnDvM2O8Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - } - }, - "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==", - "dev": true, - "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/isexe": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-4.0.0.tgz", - "integrity": "sha512-FFUtZMpoZ8RqHS3XeXEmHWLA4thH+ZxCv2lOiPIn1Xc7CxrqhWzNSDzD+/chS/zbYezmiwWLdQC09JdQKmthOw==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=20" - } - }, - "node_modules/node-gyp/node_modules/undici": { - "version": "6.29.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.29.0.tgz", - "integrity": "sha512-R+RODBqp6i2pPflGdq+xIOUkl+RNfGgHwoinecKu/JCuf2uO06cOKoDbI2P7Dn6KcswdKwrczbU6IYJ6K8X+wg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=18.17" - } - }, - "node_modules/node-gyp/node_modules/which": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz", - "integrity": "sha512-oGLe46MIrCRqX7ytPUf66EAYvdeMIZYn3WaocqqKZAxrBpkqHfL/qvTyJ/bTk5+AqHCjXmrv3CEWgy368zhRUg==", - "dev": true, - "license": "ISC", - "dependencies": { - "isexe": "^4.0.0" - }, - "bin": { - "node-which": "bin/which.js" - }, - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/node-pty": { - "version": "1.2.0-beta.12", - "resolved": "https://registry.npmjs.org/node-pty/-/node-pty-1.2.0-beta.12.tgz", - "integrity": "sha512-uExTCG/4VmSJa4+TjxFwPXv8BfacmfFEBL6JpxCMDghcwqzvD0yTcGmZ1fKOK6HY33tp0CelLblqTECJizc+Yw==", - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-addon-api": "^7.1.0" - } - }, - "node_modules/nopt": { - "version": "9.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-9.0.0.tgz", - "integrity": "sha512-Zhq3a+yFKrYwSBluL4H9XP3m3y5uvQkB/09CwDruCiRmR/UJYnn9W4R48ry0uGC70aeTPKLynBtscP9efFFcPw==", - "dev": true, - "license": "ISC", - "dependencies": { - "abbrev": "^4.0.0" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-url": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", - "integrity": "sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/npm-run-path": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz", - "integrity": "sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==", - "license": "MIT", - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz", - "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0", - "has-symbols": "^1.1.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "license": "MIT", - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/open-collaboration-protocol": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/open-collaboration-protocol/-/open-collaboration-protocol-0.3.0.tgz", - "integrity": "sha512-zvas595nQCGgrV4EDooFG0eGCd4sFyc+wuGqovTdyHD6DsZCYdol3SeHQgy3PZxxvPf18i1QXkPSzRc8RUmgiw==", - "license": "MIT", - "dependencies": { - "base64-js": "~1.5.1", - "fflate": "~0.8.2", - "msgpackr": "~1.11.2", - "semver": "~7.7.1", - "socket.io-client": "~4.8.1" - }, - "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" - } - }, - "node_modules/open-collaboration-protocol/node_modules/msgpackr": { - "version": "1.11.14", - "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.11.14.tgz", - "integrity": "sha512-suPZQcjFtPGp0cksn70ICfLuxsO9F2/sRrbJzeNepojZ+OPwGzA0lNdLyU4SJUKAd5ZgvUWWPojzzdlVuOYcrQ==", - "license": "MIT", - "optionalDependencies": { - "msgpackr-extract": "^3.0.2" - } - }, - "node_modules/open-collaboration-protocol/node_modules/semver": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", - "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/open-collaboration-yjs": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/open-collaboration-yjs/-/open-collaboration-yjs-0.3.0.tgz", - "integrity": "sha512-XQk8ywZO5JiQo1QlRWcqR3C9RvEUuWi5FSDooIVqe/jZy9RMwQZs5ywz0a5cP8XQ7sTDhh6WjPwtG67laUP6uw==", - "license": "MIT", - "dependencies": { - "lib0": "^0.2.103", - "open-collaboration-protocol": "~0.3.0", - "vscode-languageserver-textdocument": "~1.0.12", - "y-protocols": "~1.0.6" - }, - "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" - }, - "peerDependencies": { - "yjs": "^13.0.0" - } - }, - "node_modules/opener": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", - "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", - "dev": true, - "license": "(WTFPL OR MIT)", - "bin": { - "opener": "bin/opener-bin.js" - } - }, - "node_modules/opfs-worker": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/opfs-worker/-/opfs-worker-1.3.1.tgz", - "integrity": "sha512-bQwEhkXm8ODfhoVflyKgd3exbUXfnA9kZ5wxb/o9M83y725SXawjrTaAwzJ3DKcYkEosiOkTeOphBwd/8br34w==", - "license": "MIT", - "dependencies": { - "comlink": "^4.4.2", - "minimatch": "^10.0.3" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - } - }, - "node_modules/os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/own-keys": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.2.tgz", - "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "object-keys": "^1.1.1", - "safe-push-apply": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/p-cancelable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-2.1.1.tgz", - "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-debounce": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-debounce/-/p-debounce-2.1.0.tgz", - "integrity": "sha512-M9bMt62TTnozdZhqFgs+V7XD2MnuKCaz+7fZdlu2/T7xruI3uIE5CicQ0vx1hV7HIUYF0jF+4/R1AgfOkl74Qw==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-finally": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz", - "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "license": "MIT", - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-queue": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/p-queue/-/p-queue-8.1.1.tgz", - "integrity": "sha512-aNZ+VfjobsWryoiPnEApGGmf5WmNsCo9xu8dfaYamG5qaLP7ClhLN6NgsFe6SwJ2UbLEBK5dv9x8Mn5+RVhMWQ==", - "license": "MIT", - "dependencies": { - "eventemitter3": "^5.0.1", - "p-timeout": "^6.1.2" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-queue/node_modules/eventemitter3": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.4.tgz", - "integrity": "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==", - "license": "MIT" - }, - "node_modules/p-timeout": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-6.1.4.tgz", - "integrity": "sha512-MyIV3ZA/PmyBN/ud8vV9XzwTrNtR4jFrObymZYnZqMmW0zA8Z17vnT0rBgFE/TlohB+YCHqXMgZzb3Csp49vqg==", - "license": "MIT", - "engines": { - "node": ">=14.16" - }, - "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/parseurl": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/patch-package": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-8.0.1.tgz", - "integrity": "sha512-VsKRIA8f5uqHQ7NGhwIna6Bx6D9s/1iXlA1hthBVBEbkq+t4kXD0HHt+rJhf/Z+Ci0F/HCB2hvn0qLdLG+Qxlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "ci-info": "^3.7.0", - "cross-spawn": "^7.0.3", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^10.0.0", - "json-stable-stringify": "^1.0.2", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "semver": "^7.5.3", - "slash": "^2.0.0", - "tmp": "^0.2.4", - "yaml": "^2.2.2" - }, - "bin": { - "patch-package": "index.js" - }, - "engines": { - "node": ">=14", - "npm": ">5" - } - }, - "node_modules/patch-package/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/patch-package/node_modules/jsonfile": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", - "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/patch-package/node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/patch-package/node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "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-root": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", - "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", - "license": "MIT", - "dependencies": { - "path-root-regex": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-root-regex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", - "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "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/path-to-regexp": { - "version": "0.1.13", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz", - "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==", - "license": "MIT" - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/pathe": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", - "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, - "license": "MIT" - }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "*" - } - }, - "node_modules/pdfobject": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/pdfobject/-/pdfobject-2.3.1.tgz", - "integrity": "sha512-vluuGiSDmMGpOvWFGiUY4trNB8aGKLDVxIXuuGHjX0kK3bMxCANUVtLivctE7uejLBScWCnbVarKatFVvdwXaQ==", - "license": "MIT" - }, - "node_modules/pend": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", - "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", - "license": "MIT" - }, - "node_modules/perfect-scrollbar": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/perfect-scrollbar/-/perfect-scrollbar-1.5.5.tgz", - "integrity": "sha512-dzalfutyP3e/FOpdlhVryN4AJ5XDVauVWxybSkLZmakFE2sS3y3pc4JnSprw8tGmHvkaG5Edr5T7LBTZ+WWU2g==", - "license": "MIT" - }, - "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/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", - "license": "MIT", - "dependencies": { - "pinkie": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pkce-challenge": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", - "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", - "license": "MIT", - "engines": { - "node": ">=16.20.0" - } - }, - "node_modules/pkg-types": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.3.tgz", - "integrity": "sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==", - "dev": true, - "license": "MIT", - "dependencies": { - "confbox": "^0.3.1", - "exsolve": "^1.1.1", - "pathe": "^2.0.3" - } - }, - "node_modules/portfinder": { - "version": "1.0.38", - "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.38.tgz", - "integrity": "sha512-rEwq/ZHlJIKw++XtLAO8PPuOQA/zaPJOZJ37BVuN97nLpMJeuDVLVGRwbFoBgLudgdTMP2hdRJP++H+8QOA3vg==", - "dev": true, - "license": "MIT", - "dependencies": { - "async": "^3.2.6", - "debug": "^4.3.6" - }, - "engines": { - "node": ">= 10.12" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/prebuild-install": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", - "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", - "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.", - "license": "MIT", - "dependencies": { - "detect-libc": "^2.0.0", - "expand-template": "^2.0.3", - "github-from-package": "0.0.0", - "minimist": "^1.2.3", - "mkdirp-classic": "^0.5.3", - "napi-build-utils": "^2.0.0", - "node-abi": "^3.3.0", - "pump": "^3.0.0", - "rc": "^1.2.7", - "simple-get": "^4.0.0", - "tar-fs": "^2.0.0", - "tunnel-agent": "^0.6.0" - }, - "bin": { - "prebuild-install": "bin.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/prebuild-install/node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "license": "MIT", - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "node_modules/prebuild-install/node_modules/chownr": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", - "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", - "license": "ISC" - }, - "node_modules/prebuild-install/node_modules/node-abi": { - "version": "3.98.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.98.0.tgz", - "integrity": "sha512-Llh8noNw7s15m+rmIrZnZQbe4gLyasL9loT74rC92PkmwWKeEedKvc7o6pjp8B3MhrYT/Cl846NOYZbz1wmddw==", - "license": "MIT", - "dependencies": { - "semver": "^7.3.5" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/prebuild-install/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/prebuild-install/node_modules/tar-fs": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.5.tgz", - "integrity": "sha512-OboTd8mmMhZDNPV+UjQcK9yKAatXu2aJ+r1w4im1Otd4M4fl2hwvdoXUxIYHFTHWK/3y3FarBP70v3vwmGlOxw==", - "license": "MIT", - "dependencies": { - "chownr": "^1.1.1", - "mkdirp-classic": "^0.5.2", - "pump": "^3.0.0", - "tar-stream": "^2.1.4" - } - }, - "node_modules/prebuild-install/node_modules/tar-stream": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", - "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", - "license": "MIT", - "dependencies": { - "bl": "^4.0.3", - "end-of-stream": "^1.4.1", - "fs-constants": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^3.1.1" - }, - "engines": { - "node": ">=6" - } - }, - "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==", - "dev": true, - "license": "ISC", - "engines": { - "node": "^20.17.0 || >=22.9.0" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "license": "MIT" - }, - "node_modules/progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/prop-types": { - "version": "15.8.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", - "integrity": "sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==", - "license": "MIT", - "dependencies": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.13.1" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.8.tgz", - "integrity": "sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==", - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/proxy-from-env": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", - "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/pump": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", - "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", - "license": "MIT", - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/punycode.js": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", - "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/puppeteer": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-25.1.0.tgz", - "integrity": "sha512-7L6/0JM7XStK99lIL4xQySyNEXNfII6pk0BxkI5kKBTOhR7AsoQiv067YTsE/rIXxQiq9ajlO4WcqBjS/FWK1A==", - "dev": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "3.0.4", - "chromium-bidi": "16.0.1", - "devtools-protocol": "0.0.1624250", - "lilconfig": "^3.1.3", - "puppeteer-core": "25.1.0", - "typed-query-selector": "^2.12.2" - }, - "bin": { - "puppeteer": "lib/puppeteer/node/cli.js" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/puppeteer-core": { - "version": "25.1.0", - "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.1.0.tgz", - "integrity": "sha512-jKzy5y4WG6uNuFbTWgW1D7mqoT9o0nllc/6a1DGF775T1mPmgw3scdFEtEq67yVFikavQmbYq6NLfbTfxHSlqQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@puppeteer/browsers": "3.0.4", - "chromium-bidi": "16.0.1", - "devtools-protocol": "0.0.1624250", - "typed-query-selector": "^2.12.2", - "webdriver-bidi-protocol": "0.4.2", - "ws": "^8.21.0" - }, - "engines": { - "node": ">=22.12.0" - } - }, - "node_modules/puppeteer-to-istanbul": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/puppeteer-to-istanbul/-/puppeteer-to-istanbul-1.4.0.tgz", - "integrity": "sha512-dzW8u/PMqMZppvoXCFod8IkCTI2JL0yP2YUBbaALnX+iJJ6gqjk77fIoK9MqnMqRZAcoa81GLFfZExakWg/Q4Q==", - "dev": true, - "license": "ISC", - "dependencies": { - "clone": "^2.1.2", - "mkdirp": "^1.0.4", - "v8-to-istanbul": "^1.2.1", - "yargs": "^15.3.1" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/puppeteer-to-istanbul/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/puppeteer-to-istanbul/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/puppeteer-to-istanbul/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "license": "MIT", - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/puppeteer-to-istanbul/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.16.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.16.1.tgz", - "integrity": "sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==", - "license": "BSD-3-Clause", - "dependencies": { - "es-define-property": "^1.0.1", - "side-channel": "^1.1.1" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/quansync": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", - "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/antfu" - }, - { - "type": "individual", - "url": "https://github.com/sponsors/sxzz" - } - ], - "license": "MIT" - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "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/quick-lru": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-5.1.1.tgz", - "integrity": "sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", - "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", - "license": "MIT", - "dependencies": { - "bytes": "~3.1.2", - "http-errors": "~2.0.1", - "iconv-lite": "~0.7.0", - "unpipe": "~1.0.0" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/raw-body/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", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "bin": { - "rc": "cli.js" - } - }, - "node_modules/rc/node_modules/strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react": { - "version": "19.3.1", - "resolved": "https://registry.npmjs.org/react/-/react-19.3.1.tgz", - "integrity": "sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==", - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/react-dom": { - "version": "19.3.1", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.3.1.tgz", - "integrity": "sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==", - "license": "MIT", - "peer": true, - "dependencies": { - "scheduler": "^0.28.0" - }, - "peerDependencies": { - "react": "^19.3.1" - } - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "license": "MIT" - }, - "node_modules/react-perfect-scrollbar": { - "version": "1.5.8", - "resolved": "https://registry.npmjs.org/react-perfect-scrollbar/-/react-perfect-scrollbar-1.5.8.tgz", - "integrity": "sha512-bQ46m70gp/HJtiBOF3gRzBISSZn8FFGNxznTdmTG8AAwpxG1bJCyn7shrgjEvGSQ5FJEafVEiosY+ccER11OSA==", - "license": "MIT", - "dependencies": { - "perfect-scrollbar": "^1.5.0", - "prop-types": "^15.6.1" - }, - "peerDependencies": { - "react": ">=16.3.3", - "react-dom": ">=16.3.3" - } - }, - "node_modules/react-textarea-autosize": { - "version": "8.5.9", - "resolved": "https://registry.npmjs.org/react-textarea-autosize/-/react-textarea-autosize-8.5.9.tgz", - "integrity": "sha512-U1DGlIQN5AwgjTyOEnI1oCcMuEr1pv1qOtklB2l4nyMGbHzWrI0eFsYK0zos2YWqAolJyG0IWJaqWmWj5ETh0A==", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.20.13", - "use-composed-ref": "^1.3.0", - "use-latest": "^1.2.1" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - } - }, - "node_modules/react-tooltip": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/react-tooltip/-/react-tooltip-4.5.1.tgz", - "integrity": "sha512-Zo+CSFUGXar1uV+bgXFFDe7VeS2iByeIp5rTgTcc2HqtuOS5D76QapejNNfx320MCY91TlhTQat36KGFTqgcvw==", - "license": "MIT", - "dependencies": { - "prop-types": "^15.8.1", - "uuid": "^7.0.3" - }, - "engines": { - "npm": ">=6.13" - }, - "peerDependencies": { - "react": ">=16.0.0", - "react-dom": ">=16.0.0" - } - }, - "node_modules/react-tooltip/node_modules/uuid": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-7.0.3.tgz", - "integrity": "sha512-DPSke0pXhTZgoF/d+WSt2QaKMCFSfx7QegxEWT+JOuHF5aWrKEn0G+ztjuJg/gG8/ItK+rbPCD/yNv8yyih6Cg==", - "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/react-virtuoso": { - "version": "2.19.1", - "resolved": "https://registry.npmjs.org/react-virtuoso/-/react-virtuoso-2.19.1.tgz", - "integrity": "sha512-zF6MAwujNGy2nJWCx/Df92ay/RnV2Kj4glUZfdyadI4suAn0kAZHB1BeI7yPFVp2iSccLzFlszhakWyr+fJ4Dw==", - "license": "MIT", - "dependencies": { - "@virtuoso.dev/react-urx": "^0.2.12", - "@virtuoso.dev/urx": "^0.2.12" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "react": ">=16 || >=17 || >= 18", - "react-dom": ">=16 || >=17 || >= 18" - } - }, - "node_modules/read-binary-file-arch": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/read-binary-file-arch/-/read-binary-file-arch-1.0.6.tgz", - "integrity": "sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "debug": "^4.3.4" - }, - "bin": { - "read-binary-file-arch": "cli.js" - } - }, - "node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "license": "MIT", - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/readable-stream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "license": "MIT" - }, - "node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/readdirp/node_modules/picomatch": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", - "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/reflect-metadata": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", - "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", - "license": "Apache-2.0" - }, - "node_modules/reflect.getprototypeof": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/reflect.getprototypeof/-/reflect.getprototypeof-1.0.10.tgz", - "integrity": "sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.9", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "get-intrinsic": "^1.2.7", - "get-proto": "^1.0.1", - "which-builtin-type": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.4.tgz", - "integrity": "sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "set-function-name": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "license": "MIT", - "engines": { - "node": ">=0.10.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==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true, - "license": "ISC" - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/resolve-alpn": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.1.tgz", - "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/resolve-package-path": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/resolve-package-path/-/resolve-package-path-4.0.3.tgz", - "integrity": "sha512-SRpNAPW4kewOaNUt8VPqhJ0UMxawMwzJD8V7m1cJfdSTK9ieZwS6K7Dabsm4bmLFM96Z5Y/UznrpG5kt1im8yA==", - "license": "MIT", - "dependencies": { - "path-root": "^0.1.1" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.4.tgz", - "integrity": "sha512-zepuGL0ulf+nt+XaFrlKeaiTJeyPFPLLY62+ncq1/VTHBdt3HsfXOH60priZ6tnXQozdGcDeIF5JVTanvIcYWQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/responselike": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-2.0.1.tgz", - "integrity": "sha512-4gl03wn3hj1HP3yzgdI7d3lCkF95F21Pz4BPGvKHinyQzALR5CapwC8yIi0Rh58DEMQ/SguC03wFj2k0M/mHhw==", - "dev": true, - "license": "MIT", - "dependencies": { - "lowercase-keys": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "dev": true, - "license": "MIT", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "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/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/roarr": { - "version": "2.15.4", - "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.15.4.tgz", - "integrity": "sha512-CHhPh+UNHD2GTXNYhPWLnU8ONHdI+5DI+4EYIAOaiD63rHeYlZvyh8P+in5999TTSFgUYuKUAjzRI4mdh/p+2A==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true, - "dependencies": { - "boolean": "^3.0.1", - "detect-node": "^2.0.4", - "globalthis": "^1.0.1", - "json-stringify-safe": "^5.0.1", - "semver-compare": "^1.0.0", - "sprintf-js": "^1.1.2" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/route-parser": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/route-parser/-/route-parser-0.0.5.tgz", - "integrity": "sha512-nsii+MXoNb7NyF05LP9kaktx6AoBVT/7zUgDnzIb5IoYAvYkbZOAuoLJjVdsyEVxWv0swCxWkKDK4cMva+WDBA==", - "license": "MIT", - "engines": { - "node": ">= 0.9" - } - }, - "node_modules/router": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", - "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "depd": "^2.0.0", - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/router/node_modules/path-to-regexp": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", - "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "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", - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.4.tgz", - "integrity": "sha512-wtZlHyOje6OZTGqAoaDKxFkgRtkF9CnHAVnCHKfuj200wAgL+bSJhdsCD2l0Qx/2ekEXjPWcyKkfGb5CPboslg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "get-intrinsic": "^1.3.0", - "has-symbols": "^1.1.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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/safe-push-apply": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-push-apply/-/safe-push-apply-1.0.0.tgz", - "integrity": "sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.1.0.tgz", - "integrity": "sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "is-regex": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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" - }, - "node_modules/scheduler": { - "version": "0.28.0", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.28.0.tgz", - "integrity": "sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==", - "license": "MIT", - "peer": true - }, - "node_modules/secure-compare": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz", - "integrity": "sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==", - "dev": true, - "license": "MIT" - }, - "node_modules/seek-bzip": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/seek-bzip/-/seek-bzip-1.0.6.tgz", - "integrity": "sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ==", - "license": "MIT", - "dependencies": { - "commander": "^2.8.1" - }, - "bin": { - "seek-bunzip": "bin/seek-bunzip", - "seek-table": "bin/seek-bzip-table" - } - }, - "node_modules/semver": { - "version": "7.8.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", - "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver-compare": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", - "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==", - "dev": true, - "license": "MIT", - "optional": true - }, - "node_modules/send": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", - "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", - "license": "MIT", - "dependencies": { - "debug": "2.6.9", - "depd": "2.0.0", - "destroy": "1.2.0", - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "etag": "~1.8.1", - "fresh": "~0.5.2", - "http-errors": "~2.0.1", - "mime": "1.6.0", - "ms": "2.1.3", - "on-finished": "~2.4.1", - "range-parser": "~1.2.1", - "statuses": "~2.0.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "license": "MIT", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/send/node_modules/debug/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "license": "MIT" - }, - "node_modules/send/node_modules/mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/serialize-error": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "type-fest": "^0.13.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/serialize-error/node_modules/type-fest": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", - "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "optional": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", - "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", - "dev": true, - "license": "BSD-3-Clause", - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/serve-static": { - "version": "1.16.3", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz", - "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==", - "license": "MIT", - "dependencies": { - "encodeurl": "~2.0.0", - "escape-html": "~1.0.3", - "parseurl": "~1.3.3", - "send": "~0.19.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", - "dev": true, - "license": "ISC" - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-proto": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/set-proto/-/set-proto-1.0.0.tgz", - "integrity": "sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "license": "MIT" - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "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/side-channel": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", - "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4", - "side-channel-list": "^1.0.1", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", - "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "license": "ISC" - }, - "node_modules/simple-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", - "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", - "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/simple-get": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", - "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", - "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", - "dependencies": { - "decompress-response": "^6.0.0", - "once": "^1.3.1", - "simple-concat": "^1.0.0" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "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/socket.io": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.8.4.tgz", - "integrity": "sha512-9ZV9zg8vN8hO3Y25DhR7nUkJ1VDnBhq5O/JrXhFT9s6+F0gqytSASTHVfCFc2mJXaTfARroErplXlzFWwETZqQ==", - "license": "MIT", - "dependencies": { - "accepts": "~1.3.4", - "cors": "~2.8.5", - "debug": "~4.4.1", - "engine.io": "~6.6.0", - "socket.io-adapter": "~2.5.2", - "socket.io-parser": "~4.2.4" - }, - "engines": { - "node": ">=10.2.0" - } - }, - "node_modules/socket.io-adapter": { - "version": "2.5.8", - "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.5.8.tgz", - "integrity": "sha512-6Oy52pbg+kvdCVvjcN+FnY7BvxZ7cIHNScbvztT/It5d0vbwoJoVZmF2gjJmnV0/4WlXRfG15zc45ySk9Ah8bw==", - "license": "MIT", - "dependencies": { - "debug": "~4.4.1", - "ws": "~8.21.0" - } - }, - "node_modules/socket.io-adapter/node_modules/ws": { - "version": "8.21.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", - "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", - "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/socket.io-client": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.8.4.tgz", - "integrity": "sha512-7wjKAvVXYOJsbmUgkWbnhPD4bFpkqrUR0++XOjpGFmqDqsqV1CI93VTraeExLxpjxEqrWgFoSRZu1ihjLWfkAA==", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.4.1", - "engine.io-client": "~6.6.1", - "socket.io-parser": "~4.2.4" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/socket.io-parser": { - "version": "4.2.7", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.7.tgz", - "integrity": "sha512-IH/iSeO9T6gz1KkFleGDWkG9N3dl4jXVYUtMhIqH10Md0ttMer8nUNWiP1DKuNrybD2xBrixLJdCC9J6ECoYkg==", - "license": "MIT", - "dependencies": { - "@socket.io/component-emitter": "~3.1.0", - "debug": "~4.4.1" - }, - "engines": { - "node": ">=10.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": "5.0.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-5.0.1.tgz", - "integrity": "sha512-vZdmnjb9a2Tz6WEQVIurybSwElwPxMZaIc7PzqbJTrezcKNznv6giT7J7tZDZ1BojVaa1jvO/UiUdhDVB0ACoQ==", - "license": "MIT", - "dependencies": { - "agent-base": "^6.0.2", - "debug": "4", - "socks": "^2.3.3" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/sort-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", - "integrity": "sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg==", - "license": "MIT", - "dependencies": { - "is-plain-obj": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sprintf-js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", - "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", - "dev": true, - "license": "BSD-3-Clause", - "optional": true - }, - "node_modules/stat-mode": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz", - "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==", - "license": "MIT", - "engines": { - "node": ">= 6" - } - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stop-iteration-iterator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz", - "integrity": "sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "internal-slot": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/streamx": { - "version": "2.28.1", - "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.28.1.tgz", - "integrity": "sha512-zEzXb0s5Cds7tqMH6rhZ05lcJydCWiQPEwiNngVqzsxCc962vLY4Uw+mW7od8kDH258k2Uz/JrOkdIAAhSh9VA==", - "license": "MIT", - "dependencies": { - "events-universal": "^1.0.0", - "fast-fifo": "^1.3.2", - "text-decoder": "^1.1.0" - } - }, - "node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/string-argv": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/string-argv/-/string-argv-0.1.2.tgz", - "integrity": "sha512-mBqPGEOMNJKXRo7z0keX0wlAhbBAjilUdPW13nN0PecVryZxdHIeM7TqbsSUA7VYuS00HGC6mojP7DlQzfa9ZA==", - "license": "MIT", - "engines": { - "node": ">=0.6.19" - } - }, - "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/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.prototype.trim": { - "version": "1.2.11", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz", - "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-data-property": "^1.1.4", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-object-atoms": "^1.1.2", - "has-property-descriptors": "^1.0.2", - "safe-regex-test": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz", - "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "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-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-dirs": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-2.1.0.tgz", - "integrity": "sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g==", - "license": "MIT", - "dependencies": { - "is-natural-number": "^4.0.1" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/strip-outer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-outer/-/strip-outer-1.0.1.tgz", - "integrity": "sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg==", - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strip-outer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/sumchecker": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", - "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "debug": "^4.1.0" - }, - "engines": { - "node": ">= 8.0" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tar": { - "version": "7.5.22", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", - "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", - "dev": true, - "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/tar-fs": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.1.3.tgz", - "integrity": "sha512-/hU4AXnIdZu+Gvl1pk0oI5f5HxWsCJRtY2aFaJdk9VvyL48DWU6iU5WAIPG+wIi1YvWA6eTJvIviP/tMAZZNwQ==", - "license": "MIT", - "dependencies": { - "pump": "^3.0.0", - "tar-stream": "^3.1.5" - }, - "optionalDependencies": { - "bare-fs": "^4.0.1", - "bare-path": "^3.0.0" - } - }, - "node_modules/tar-stream": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.2.tgz", - "integrity": "sha512-+8NeqHRjQWH9nYlwo2gamAMImZCVzI4UoEgDpWorBt9OEfppiZn+uSkskzQKPWIZyji/C8fpWO7u69G0DX0tbg==", - "license": "MIT", - "dependencies": { - "b4a": "^1.9.0", - "bare-fs": "^4.8.2", - "fast-fifo": "^1.3.2", - "streamx": "^2.28.1" - } - }, - "node_modules/teex": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/teex/-/teex-1.0.1.tgz", - "integrity": "sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==", - "license": "MIT", - "dependencies": { - "streamx": "^2.12.5" - } - }, - "node_modules/temp": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz", - "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==", - "dev": true, - "license": "MIT", - "dependencies": { - "mkdirp": "^0.5.1", - "rimraf": "~2.6.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/temp/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/temp/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/temp/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "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", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/temp/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/temp/node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/temp/node_modules/rimraf": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", - "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/text-decoder": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.7.tgz", - "integrity": "sha512-vlLytXkeP4xvEq2otHeJfSQIRyWxo/oZGEbXrtEEF9Hnmrdly59sUbzZ/QgyWuLYHctCHxFF4tRQZNQ9k60ExQ==", - "license": "Apache-2.0", - "dependencies": { - "b4a": "^1.6.4" - } - }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", - "license": "MIT" - }, - "node_modules/tinyglobby": { - "version": "0.2.17", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", - "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", - "dev": true, - "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/tmp": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", - "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.14" - } - }, - "node_modules/to-buffer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", - "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", - "license": "MIT", - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/trash": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/trash/-/trash-7.2.0.tgz", - "integrity": "sha512-3bR8Z5aWO8b9qybS6skBoaavH/hX9Onb1RrdIIhJxv9VpH3aBtpbKuAX4rIh/0xpDZ7K4ga36wONk/okbhjTlA==", - "license": "MIT", - "dependencies": { - "@stroncium/procfs": "^1.2.1", - "globby": "^7.1.1", - "is-path-inside": "^3.0.2", - "make-dir": "^3.1.0", - "move-file": "^2.0.0", - "p-map": "^4.0.0", - "uuid": "^8.3.2", - "xdg-trashdir": "^3.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/trash/node_modules/array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", - "license": "MIT", - "dependencies": { - "array-uniq": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/trash/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/trash/node_modules/brace-expansion": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", - "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/trash/node_modules/dir-glob": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.2.2.tgz", - "integrity": "sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw==", - "license": "MIT", - "dependencies": { - "path-type": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/trash/node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "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": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/trash/node_modules/globby": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", - "integrity": "sha512-yANWAN2DUcBtuus5Cpd+SKROzXHs2iVXFZt/Ykrfz6SAXqacLX25NZpltE+39ceMexYF4TtEadjuSTw8+3wX4g==", - "license": "MIT", - "dependencies": { - "array-union": "^1.0.1", - "dir-glob": "^2.0.0", - "glob": "^7.1.2", - "ignore": "^3.3.5", - "pify": "^3.0.0", - "slash": "^1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/trash/node_modules/ignore": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", - "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", - "license": "MIT" - }, - "node_modules/trash/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "license": "MIT", - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/trash/node_modules/minimatch": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", - "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/trash/node_modules/path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "license": "MIT", - "dependencies": { - "pify": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/trash/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/trash/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/trash/node_modules/slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/trash/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).", - "license": "MIT", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/traverse": { - "version": "0.3.10", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.10.tgz", - "integrity": "sha512-pd6fq5qmiFuPA3TpdqBCqJXlOrSdCSt0l9IZDg83Vbf4x3m/X18prEwMMVM5LXp9vGL9NxjeiDGBrTasqyngXQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-to-primitive": "^1.3.4", - "gopd": "^1.2.0", - "typedarray.prototype.slice": "^1.0.6", - "which-typed-array": "^1.1.24" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/trim-repeated": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-repeated/-/trim-repeated-1.0.0.tgz", - "integrity": "sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg==", - "license": "MIT", - "dependencies": { - "escape-string-regexp": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/trim-repeated/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/ts-md5": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/ts-md5/-/ts-md5-1.3.1.tgz", - "integrity": "sha512-DiwiXfwvcTeZ5wCE0z+2A9EseZsztaiZtGrtSaY5JOD7ekPnR/GoIVD5gXZAlK9Na9Kvpo9Waz5rW64WKAWApg==", - "license": "MIT", - "engines": { - "node": ">=12" - } - }, - "node_modules/tslib": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", - "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "license": "0BSD" - }, - "node_modules/tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", - "license": "Apache-2.0", - "dependencies": { - "safe-buffer": "^5.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/type-detect": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.1.0.tgz", - "integrity": "sha512-Acylog8/luQ8L7il+geoSxhEkazvkslg7PSNKOX59mbB9cOveP5aq9h74Y7YU8yDpJwetzQQrfIwtf4Wp4LKcw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/type-is": { - "version": "1.6.18", - "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", - "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "license": "MIT", - "dependencies": { - "media-typer": "0.3.0", - "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.3.tgz", - "integrity": "sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.8", - "for-each": "^0.3.3", - "gopd": "^1.2.0", - "has-proto": "^1.2.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.5.tgz", - "integrity": "sha512-0FHJvLPqZ7KJzp17O13jfsAjsqazgrxBu2zEK95PmUz8lv2+GjRuxUInCr2Rk9Dms3ihN21zJ929ZO43yJ95QQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.8.tgz", - "integrity": "sha512-phPGCwqr2+Qo0fwniCE8e4pKnGu/yFb5nD5Y8bf0EEeiI5GklnACYA9GFy/DrAeRrKHXvHn+1SUsOWgJp6RO+g==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "for-each": "^0.3.5", - "gopd": "^1.2.0", - "is-typed-array": "^1.1.15", - "possible-typed-array-names": "^1.1.0", - "reflect.getprototypeof": "^1.0.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-query-selector": { - "version": "2.12.3", - "resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.3.tgz", - "integrity": "sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==", - "dev": true, - "license": "MIT" - }, - "node_modules/typedarray.prototype.slice": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typedarray.prototype.slice/-/typedarray.prototype.slice-1.0.6.tgz", - "integrity": "sha512-r+7YvGfM5TkTiDQ5EqWi/Z4L4KP3jUI+YCmTtWg1tmTHUw6xladLJqzR2heMaHBIM0TTFLZmn/EkIaEHYs/bIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.9", - "define-properties": "^1.2.1", - "es-abstract": "^1.24.2", - "es-errors": "^1.3.0", - "get-proto": "^1.0.1", - "math-intrinsics": "^1.1.0", - "typed-array-buffer": "^1.0.3", - "typed-array-byte-offset": "^1.0.5" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", - "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", - "license": "Apache-2.0", - "peer": true, - "bin": { - "tsc": "bin/tsc" - }, - "engines": { - "node": ">=16.20.0" - }, - "optionalDependencies": { - "@typescript/typescript-aix-ppc64": "7.0.2", - "@typescript/typescript-darwin-arm64": "7.0.2", - "@typescript/typescript-darwin-x64": "7.0.2", - "@typescript/typescript-freebsd-arm64": "7.0.2", - "@typescript/typescript-freebsd-x64": "7.0.2", - "@typescript/typescript-linux-arm": "7.0.2", - "@typescript/typescript-linux-arm64": "7.0.2", - "@typescript/typescript-linux-loong64": "7.0.2", - "@typescript/typescript-linux-mips64el": "7.0.2", - "@typescript/typescript-linux-ppc64": "7.0.2", - "@typescript/typescript-linux-riscv64": "7.0.2", - "@typescript/typescript-linux-s390x": "7.0.2", - "@typescript/typescript-linux-x64": "7.0.2", - "@typescript/typescript-netbsd-arm64": "7.0.2", - "@typescript/typescript-netbsd-x64": "7.0.2", - "@typescript/typescript-openbsd-arm64": "7.0.2", - "@typescript/typescript-openbsd-x64": "7.0.2", - "@typescript/typescript-sunos-x64": "7.0.2", - "@typescript/typescript-win32-arm64": "7.0.2", - "@typescript/typescript-win32-x64": "7.0.2" - } - }, - "node_modules/uc.micro": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", - "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "license": "MIT" - }, - "node_modules/ufo": { - "version": "1.6.4", - "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.4.tgz", - "integrity": "sha512-JFNbkD1Svwe0KvGi8GOeLcP4kAWQ609twvCdcHxq1oSL8svv39ZuSvajcD8B+5D0eL4+s1Is2D/O6KN3qcTeRA==", - "dev": true, - "license": "MIT" - }, - "node_modules/unbox-primitive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.1.0.tgz", - "integrity": "sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "has-bigints": "^1.0.2", - "has-symbols": "^1.1.0", - "which-boxed-primitive": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unbzip2-stream": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz", - "integrity": "sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg==", - "license": "MIT", - "dependencies": { - "buffer": "^5.2.1", - "through": "^2.3.8" - } - }, - "node_modules/undici": { - "version": "7.30.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz", - "integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==", - "license": "MIT", - "engines": { - "node": ">=20.18.1" - } - }, - "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/union": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz", - "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==", - "dev": true, - "dependencies": { - "qs": "^6.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "license": "MIT", - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/unzipper": { - "version": "0.9.15", - "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.9.15.tgz", - "integrity": "sha512-2aaUvO4RAeHDvOCuEtth7jrHFaCKTSXPqUkXwADaLBzGbgZGzUDccoEdJ5lW+3RmfpOZYNx0Rw6F6PUzM6caIA==", - "dev": true, - "license": "MIT", - "dependencies": { - "big-integer": "^1.6.17", - "binary": "~0.3.0", - "bluebird": "~3.4.1", - "buffer-indexof-polyfill": "~1.0.0", - "duplexer2": "~0.1.4", - "fstream": "^1.0.12", - "listenercount": "~1.0.1", - "readable-stream": "~2.3.6", - "setimmediate": "~1.0.4" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/url-join": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", - "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", - "dev": true, - "license": "MIT" - }, - "node_modules/use-composed-ref": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.4.0.tgz", - "integrity": "sha512-djviaxuOOh7wkj0paeO1Q/4wMZ8Zrnag5H6yBvzN7AKKe8beOaED9SF5/ByLqsku8NP4zQqsvM2u3ew/tJK8/w==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/use-isomorphic-layout-effect": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.2.1.tgz", - "integrity": "sha512-tpZZ+EX0gaghDAiFR37hj5MgY6ZN55kLiPkJsKxBMZ6GZdOSPJXiOzPM984oPYZ5AnehYx5WQp1+ME8I/P/pRA==", - "license": "MIT", - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/use-latest": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/use-latest/-/use-latest-1.3.0.tgz", - "integrity": "sha512-mhg3xdm9NaM8q+gLT8KryJPnRFOz1/5XPBhmDEVZK1webPzDjrPk7f/mbpeLqTgB9msytYWANxgALOCJKnLvcQ==", - "license": "MIT", - "dependencies": { - "use-isomorphic-layout-effect": "^1.1.1" - }, - "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" - }, - "peerDependenciesMeta": { - "@types/react": { - "optional": true - } - } - }, - "node_modules/user-home": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz", - "integrity": "sha512-KMWqdlOcjCYdtIJpicDSFBQ8nFwS2i9sslAd6f4+CBGcU4gist2REnr2fxj2YocvJFxSF3ZOHLYLVZnUxv4BZQ==", - "license": "MIT", - "dependencies": { - "os-homedir": "^1.0.0" - }, - "engines": { - "node": ">=0.10.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/utils-merge": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", - "license": "MIT", - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/uuid": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz", - "integrity": "sha512-vIYxrBCC/N/K+Js3qSN88go7kIfNPssr/hHCesKCQNAjmgvYS2oqr69kIufEG+O4+PfezOH4EbIeHCfFov8ZgQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, - "node_modules/v8-to-istanbul": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-1.2.1.tgz", - "integrity": "sha512-NglPycIwSQeSJj7VJ6L8vTsPKC9MG5Lcx4n3SvYqNHzklbMI4dGcLJnkLPEPJ3uB8UyTdWviMhM0Ptq+xD5UFQ==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/valid-filename": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/valid-filename/-/valid-filename-2.0.1.tgz", - "integrity": "sha512-7eF/iUZ5SPd3FighoKgatSjXDJ25Vopo/6yvEKGyX4FIeZVHcLjHmyvbQ1WdFD9RQZ9PoBA7nrSxxAz/oC64SQ==", - "license": "MIT", - "dependencies": { - "filename-reserved-regex": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/vhost": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/vhost/-/vhost-3.0.2.tgz", - "integrity": "sha512-S3pJdWrpFWrKMboRU4dLYgMrTgoPALsmYwOvyebK2M6X95b9kQrjZy5rwl3uzzpfpENe/XrNYu/2U+e7/bmT5g==", - "license": "MIT", - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/vscode-jsonrpc": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", - "integrity": "sha512-C+r0eKJUIfiDIfwJhria30+TYWPtuHJXHtI7J0YlOmKAo7ogxP20T0zxB7HZQIFhIyvoBPwWskjxrvAtfjyZfA==", - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/vscode-languageserver-protocol": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-protocol/-/vscode-languageserver-protocol-3.17.5.tgz", - "integrity": "sha512-mb1bvRJN8SVznADSGWM9u/b07H7Ecg0I3OgXDuLdn307rl/J3A9YD6/eYOssqhecL27hK1IPZAsaqh00i/Jljg==", - "license": "MIT", - "dependencies": { - "vscode-jsonrpc": "8.2.0", - "vscode-languageserver-types": "3.17.5" - } - }, - "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.15", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.15.tgz", - "integrity": "sha512-Gsfr9S8LU3S6885cS+NaleasJ0n3V5y/SOTqHCifQiXWFw3G9w9/YItDfwHrlCz+dSZWWZ8ilYVMcJe7Sz7Sxw==", - "license": "MIT" - }, - "node_modules/vscode-languageserver-types": { - "version": "3.17.5", - "resolved": "https://registry.npmjs.org/vscode-languageserver-types/-/vscode-languageserver-types-3.17.5.tgz", - "integrity": "sha512-Ld1VelNuX9pdF39h2Hgaeb5hEZM2Z3jUrrMgWQAu82jMtZp7p3vJT3BzToKtZI7NgQssZje5o0zryOrhQvzQAg==", - "license": "MIT" - }, - "node_modules/vscode-oniguruma": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-2.0.1.tgz", - "integrity": "sha512-poJU8iHIWnC3vgphJnrLZyI3YdqRlR27xzqDmpPXYzA93R4Gk8z7T6oqDzDoHjoikA2aS82crdXFkjELCdJsjQ==", - "license": "MIT" - }, - "node_modules/vscode-textmate": { - "version": "9.3.2", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-9.3.2.tgz", - "integrity": "sha512-n2uGbUcrjhUEBH16uGA0TvUfhWwliFZ1e3+pTjrkim1Mt7ydB41lV08aUvsi70OlzDWp6X7Bx3w/x3fAXIsN0Q==", - "license": "MIT" - }, - "node_modules/vscode-uri": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", - "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", - "license": "MIT" - }, - "node_modules/webdriver-bidi-protocol": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-0.4.2.tgz", - "integrity": "sha512-VSV+fzfChirL3e7jay2yUC7B4HQCGtEWEg/MSSQbK+qWbqeGlRLlXTzPpYr3XGUvbpDHumWZBJxgesg4N7dbtA==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation", - "dev": true, - "license": "MIT", - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - } - }, - "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/which-boxed-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.1.1.tgz", - "integrity": "sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-bigint": "^1.1.0", - "is-boolean-object": "^1.2.1", - "is-number-object": "^1.1.1", - "is-string": "^1.1.1", - "is-symbol": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-builtin-type": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.2.1.tgz", - "integrity": "sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "function.prototype.name": "^1.1.6", - "has-tostringtag": "^1.0.2", - "is-async-function": "^2.0.0", - "is-date-object": "^1.1.0", - "is-finalizationregistry": "^1.1.0", - "is-generator-function": "^1.0.10", - "is-regex": "^1.2.1", - "is-weakref": "^1.0.2", - "isarray": "^2.0.5", - "which-boxed-primitive": "^1.1.0", - "which-collection": "^1.0.2", - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-collection": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.2.tgz", - "integrity": "sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-map": "^2.0.3", - "is-set": "^2.0.3", - "is-weakmap": "^2.0.2", - "is-weakset": "^2.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-module": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz", - "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", - "dev": true, - "license": "ISC" - }, - "node_modules/which-typed-array": { - "version": "1.1.24", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.24.tgz", - "integrity": "sha512-wk4Mf4pR5mRP7eYuuTBCIQ9d0ud2Fv2jRLQpfgnRjbOxAFHmjKFValgTpitVKzJJS8ajnYQV2Du1SZ8j6b/EUQ==", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/workerpool": { - "version": "9.3.4", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-9.3.4.tgz", - "integrity": "sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "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/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "license": "ISC" - }, - "node_modules/write-file-atomic": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", - "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", - "license": "ISC", - "dependencies": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" - } - }, - "node_modules/write-json-file": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-json-file/-/write-json-file-2.3.0.tgz", - "integrity": "sha512-84+F0igFp2dPD6UpAQjOUX3CdKUOqUzn6oE9sDBNzUXINR5VceJ1rauZltqQB/bcYsx3EpKys4C7/PivKUAiWQ==", - "license": "MIT", - "dependencies": { - "detect-indent": "^5.0.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "pify": "^3.0.0", - "sort-keys": "^2.0.0", - "write-file-atomic": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/write-json-file/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ws": { - "version": "8.22.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz", - "integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==", - "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/xdg-basedir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", - "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/xdg-trashdir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/xdg-trashdir/-/xdg-trashdir-3.1.0.tgz", - "integrity": "sha512-N1XQngeqMBoj9wM4ZFadVV2MymImeiFfYD+fJrNlcVcOHsJFFQe7n3b+aBoTPwARuq2HQxukfzVpQmAk1gN4sQ==", - "license": "MIT", - "dependencies": { - "@sindresorhus/df": "^3.1.1", - "mount-point": "^3.0.0", - "user-home": "^2.0.0", - "xdg-basedir": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/xmlhttprequest-ssl": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.1.2.tgz", - "integrity": "sha512-TEU+nJVUUnA4CYJFLvK5X9AOeH4KvDvhIfm0vV1GaQRtchnG0hgK5p8hw/xjv8cunWYCsiPCSDzObPyhEwq3KQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "license": "MIT", - "engines": { - "node": ">=0.4" - } - }, - "node_modules/xterm": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/xterm/-/xterm-5.3.0.tgz", - "integrity": "sha512-8QqjlekLUFTrU6x7xck1MsPzPA571K5zNqWm0M0oroYEWVOptZ0+ubQSkQ3uxIEhcIHRujJy6emDWX4A7qyFzg==", - "deprecated": "This package is now deprecated. Move to @xterm/xterm instead.", - "license": "MIT" - }, - "node_modules/xterm-addon-fit": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/xterm-addon-fit/-/xterm-addon-fit-0.8.0.tgz", - "integrity": "sha512-yj3Np7XlvxxhYF/EJ7p3KHaMt6OdwQ+HDu573Vx1lRXsVxOcnVJs51RgjZOouIZOczTsskaS+CpXspK81/DLqw==", - "deprecated": "This package is now deprecated. Move to @xterm/addon-fit instead.", - "license": "MIT", - "peerDependencies": { - "xterm": "^5.0.0" - } - }, - "node_modules/xterm-addon-search": { - "version": "0.13.0", - "resolved": "https://registry.npmjs.org/xterm-addon-search/-/xterm-addon-search-0.13.0.tgz", - "integrity": "sha512-sDUwG4CnqxUjSEFh676DlS3gsh3XYCzAvBPSvJ5OPgF3MRL3iHLPfsb06doRicLC2xXNpeG2cWk8x1qpESWJMA==", - "deprecated": "This package is now deprecated. Move to @xterm/addon-search instead.", - "license": "MIT", - "peerDependencies": { - "xterm": "^5.0.0" - } - }, - "node_modules/xterm-addon-webgl": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/xterm-addon-webgl/-/xterm-addon-webgl-0.16.0.tgz", - "integrity": "sha512-E8cq1AiqNOv0M/FghPT+zPAEnvIQRDbAbkb04rRYSxUym69elPWVJ4sv22FCLBqM/3LcrmBLl/pELnBebVFKgA==", - "deprecated": "This package is now deprecated. Move to @xterm/addon-webgl instead.", - "license": "MIT", - "peerDependencies": { - "xterm": "^5.0.0" - } - }, - "node_modules/y-protocols": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.7.tgz", - "integrity": "sha512-YSVsLoXxO67J6eE/nV4AtFtT3QEotZf5sK5BHxFBXso7VDUT3Tx07IfA6hsu5Q5OmBdMkQVmFZ9QOA7fikWvnw==", - "license": "MIT", - "dependencies": { - "lib0": "^0.2.85" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" - }, - "funding": { - "type": "GitHub Sponsors ❤", - "url": "https://github.com/sponsors/dmonad" - }, - "peerDependencies": { - "yjs": "^13.0.0" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "license": "ISC", - "engines": { - "node": ">=10" - } - }, - "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==", - "dev": true, - "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==", - "dev": true, - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - }, - "node_modules/yargs": { - "version": "17.7.3", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", - "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", - "license": "MIT", - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "license": "ISC", - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "license": "MIT", - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/yauzl": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", - "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", - "license": "MIT", - "dependencies": { - "buffer-crc32": "~0.2.3", - "fd-slicer": "~1.1.0" - } - }, - "node_modules/yjs": { - "version": "13.6.33", - "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.33.tgz", - "integrity": "sha512-q/UYvr1gOk4XII+Cu1CW2dINjYqJJFifTzogEaIARznrvX7uOlHsdTEXcnOBMuIsrCGEEKdNxi74kyMLZlKVfw==", - "license": "MIT", - "dependencies": { - "lib0": "^0.2.99" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=8.0.0" - }, - "funding": { - "type": "GitHub Sponsors ❤", - "url": "https://github.com/sponsors/dmonad" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/zod": { - "version": "4.6.7", - "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz", - "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/colinhacks" - } - }, - "node_modules/zod-to-json-schema": { - "version": "3.25.2", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", - "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", - "license": "ISC", - "peerDependencies": { - "zod": "^3.25.28 || ^4" - } - }, - "policy": { - "name": "@wishforge/ide-policy", - "version": "0.1.0", - "peerDependencies": { - "@theia/collaboration": "1.76.0", - "@theia/core": "1.76.0" - } - } - } -} diff --git a/apps/ide/package.json b/apps/ide/package.json deleted file mode 100644 index 664ae7c..0000000 --- a/apps/ide/package.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "name": "@wishforge/ide", - "version": "0.1.0", - "private": true, - "engines": { - "node": ">=22.14.0 <27" - }, - "scripts": { - "build": "theia build --mode development", - "build:production": "theia build --mode production", - "start": "node scripts/start.mjs", - "test": "node --test gateway/test/*.test.mjs policy/test/*.test.cjs collaboration/test/client-factory.test.cjs", - "plugins:download": "theia download:plugins && node scripts/download-python-debugger.mjs && node scripts/verify-managed-plugins.mjs", - "plugins:download:python": "node scripts/download-python-debugger.mjs", - "plugins:verify": "node scripts/verify-managed-plugins.mjs" - }, - "dependencies": { - "@theia/core": "1.76.0", - "@theia/editor": "1.76.0", - "@theia/filesystem": "1.76.0", - "@theia/workspace": "1.76.0", - "@theia/navigator": "1.76.0", - "@theia/preferences": "1.76.0", - "@theia/messages": "1.76.0", - "@theia/terminal": "1.76.0", - "@theia/process": "1.76.0", - "@theia/monaco": "1.76.0", - "@theia/scm": "1.76.0", - "@theia/debug": "1.76.0", - "@theia/markers": "1.76.0", - "@theia/search-in-workspace": "1.76.0", - "@theia/outline-view": "1.76.0", - "@theia/callhierarchy": "1.76.0", - "@theia/typehierarchy": "1.76.0", - "@theia/file-search": "1.76.0", - "@theia/mini-browser": "1.76.0", - "@theia/plugin-ext": "1.76.0", - "@theia/plugin-ext-vscode": "1.76.0", - "@theia/vsx-registry": "1.76.0", - "@theia/collaboration": "1.76.0", - "@theia/editor-preview": "1.76.0", - "@wishforge/ide-policy": "file:./policy" - }, - "devDependencies": { - "@theia/cli": "1.76.0" - }, - "theia": { - "target": "browser", - "frontend": { - "config": { - "applicationName": "WishForge IDE", - "defaultTheme": "dark", - "defaultIconTheme": "theia-file-icons", - "applicationVersion": "0.1.0", - "preferences": { - "telemetry.telemetryLevel": "off" - } - } - }, - "backend": { - "config": { - "frontendConnectionTimeout": 0 - } - } - }, - "theiaPlugins": { - "vscode-builtin-extensions": "https://github.com/eclipse-theia/vscode-builtin-extensions/releases/download/1.108.2/vscode-builtin-extensions-1.108.2.tar.gz" - } -} diff --git a/apps/ide/policy/README.md b/apps/ide/policy/README.md deleted file mode 100644 index 2e31a57..0000000 --- a/apps/ide/policy/README.md +++ /dev/null @@ -1,27 +0,0 @@ -# IDE 策略扩展(`@wishforge/ide-policy`) - -随 IDE 一起构建的 Theia 1.76 前后端扩展,做三件事: - -1. **扩展白名单**(FR-H5):后端替换 Theia 的插件服务与部署器。安装、卸载、启用、停用一律返回 `EXTENSIONS_MANAGED_BY_ADMIN`;启动时只加载 `WF_IDE_MANAGED_PLUGINS_DIR` 中、列在 `managed-plugins.lock.json`(以及 `scripts/python-debugger.lock.json`)里的扩展,并逐个核对扩展 ID、版本与目录内容摘要。符号链接与特殊文件被拒绝,目录未配置时后端拒绝启动插件部署。前端在用户尝试安装扩展时说明扩展由管理员通过镜像构建统一管理。 -2. **按工作区隔离的协作**(FR-H3):替换 `@theia/collaboration` 的前端贡献,只有当 `WF_COLLABORATION_GATEWAY_URL` 指向当前已认证工作区的网关协作路由时才注册房间命令与状态栏入口,否则协作保持关闭,不会退回公共 OCT 服务。OCT 令牌按实例保存,不复用其他工作区的令牌。协作连接的地址计算在 `../collaboration/client-factory.cjs` 中。 -3. **项目仓库**(FR-H2):后端提供 `POST /wishforge-internal/git-credential`,接收网关投递的仓库令牌(见 [gateway/README.md](../gateway/README.md))。 - - **访问控制**:要求 Theia 的连接令牌,这个令牌只有网关持有。 - - **校验**:请求必须严格符合格式,仓库地址必须与工作区配置一致。provisioner 设置 `WISHFORGE_GIT_REMOTE` 时只接受这一个仓库;本地共享的 Theia 设置 `WISHFORGE_GIT_ORIGIN`,接受这个 Git 服务上属于所投递项目的仓库。 - - **令牌存放**:写入 `WISHFORGE_GIT_CREDENTIAL_DIR` 下的 `<项目>.gitconfig`(权限 0600,内容是 `http.<仓库>.extraHeader` 与提交身份),克隆通过 `include.path` 引用它。令牌不进入命令行、仓库文件或 `.git/config`;Kubernetes 中这个目录是内存卷。 - - **克隆**:工作区中还没有该仓库的克隆时,把项目克隆到以项目命名的文件夹。同名文件夹已被占用时在名称后加上项目 ID 的前 8 位,两者都被占用时不克隆,从不覆盖已有文件。之后的投递只刷新令牌,项目改名后仍沿用原来的克隆。 - - **工作分支**:克隆后切换到 `ide/work`(远端已有这个分支时跟踪它,否则从目标分支创建),并设置 `push.default=current` 与 `push.autoSetupRemote=true`,这样不带参数的 `git push` 就会发布这个分支。令牌只能推送 `ide/` 开头的分支。 - - **身份覆盖**:用户自己设置的 `git config user.name` / `user.email` 优先于平台给的身份。 - -IDE 与 Agent 之间只通过 Git commit 交接,扩展不提供保存屏障、草稿恢复或调试控制租约。 - -## 测试 - -```bash -node --test apps/ide/policy/test/*.test.cjs -``` - -测试覆盖插件安装接口被拒绝、白名单内容摘要校验与符号链接拒绝,以及用真实 Git 验证仓库的克隆、令牌刷新、提交身份、工作分支的发布与继续、不覆盖已有文件夹和拒绝其他仓库。需要先安装 IDE 依赖(`npm run ide:install`);`npm run test:ide` 会一并运行。 - -## 边界 - -Theia 后端与用户终端以同一个系统用户运行,扩展的限制可以被同一工作区中的恶意终端绕过;它约束的是正常使用路径,不是同一工作区内协作者之间的隔离。工作区之间的隔离依赖每个工作区独立的 Kata Pod 与网关。 diff --git a/apps/ide/policy/backend.cjs b/apps/ide/policy/backend.cjs deleted file mode 100644 index ca9e4e4..0000000 --- a/apps/ide/policy/backend.cjs +++ /dev/null @@ -1,12 +0,0 @@ -const { ContainerModule } = require('@theia/core/shared/inversify'); -const { BackendApplicationContribution } = require('@theia/core/lib/node/backend-application'); -const { GitCredentialEndpoint } = require('./git-credential-endpoint.cjs'); -Object.defineProperty(exports, '__esModule', { value: true }); - -exports.default = new ContainerModule((bind, _unbind, _isBound, rebind) => { - // Only operator-pinned, digest-verified extensions may be installed (see managed-plugins.cjs). - require('./plugin-install-policy.cjs').bindManagedPlugins(rebind); - // The project's repository is cloned and kept authorized while the IDE is open (see git-workspace.cjs). - bind(GitCredentialEndpoint).toSelf().inSingletonScope(); - bind(BackendApplicationContribution).toService(GitCredentialEndpoint); -}); diff --git a/apps/ide/policy/frontend.cjs b/apps/ide/policy/frontend.cjs deleted file mode 100644 index 13266d0..0000000 --- a/apps/ide/policy/frontend.cjs +++ /dev/null @@ -1,59 +0,0 @@ -const { ContainerModule, injectable } = require('@theia/core/shared/inversify'); -const { - CollaborationFrontendContribution, -} = require('@theia/collaboration/lib/browser/collaboration-frontend-contribution'); -const { CollaborationWorkspaceService } = require('@theia/collaboration/lib/browser/collaboration-workspace-service'); -const { FrontendApplicationConfigProvider } = require('@theia/core/lib/browser/frontend-application-config-provider'); -const { ConnectionProvider, SocketIoTransport } = require('open-collaboration-protocol'); -const { io } = require('socket.io-client'); -const { collaborationBase, createPrefixConnectionProvider } = require('../collaboration/client-factory.cjs'); -Object.defineProperty(exports, '__esModule', { value: true }); - -// Register room commands only for this workspace's authenticated gateway route. -// An absent/mismatched URL keeps collaboration disabled with no public fallback. -class ScopedCollaborationContribution extends CollaborationFrontendContribution { - async scopedUrl() { - const url = await this.getCollaborationServerUrl(); - return collaborationBase(url, window.location.href).href; - } - init() { - this.scopedUrl() - .then(() => this.setStatusBarEntryDefault()) - .catch(() => {}); - } - registerCommands(commands) { - this.scopedUrl() - .then(() => super.registerCommands(commands)) - .catch(() => {}); - } - async createConnectionProvider() { - const url = await this.scopedUrl(); - return createPrefixConnectionProvider( - { ConnectionProvider, SocketIoTransport, io }, - { - url, - browserLocation: window.location.href, - client: FrontendApplicationConfigProvider.get().applicationName, - fetch: window.fetch.bind(window), - authenticationHandler: (token, metadata) => this.handleAuth(url, token, metadata), - // OCT tokens are instance-local; never reuse a different workspace token - // from the upstream global localStorage key. - userToken: undefined, - }, - ); - } -} -injectable()(ScopedCollaborationContribution); -// Every backend already belongs to one provisioned project. A guest's virtual -// collaboration URI must not overwrite the backend-wide default for other tabs. -class DedicatedWorkspaceService extends CollaborationWorkspaceService { - isRemoteSession() { - return true; - } -} -injectable()(DedicatedWorkspaceService); -module.exports.default = new ContainerModule((_bind, _unbind, _isBound, rebind) => { - require('./plugin-install-frontend.cjs').bindManagedExtensionNotice(_bind); - rebind(CollaborationWorkspaceService).to(DedicatedWorkspaceService).inSingletonScope(); - rebind(CollaborationFrontendContribution).to(ScopedCollaborationContribution).inSingletonScope(); -}); diff --git a/apps/ide/policy/git-credential-endpoint.cjs b/apps/ide/policy/git-credential-endpoint.cjs deleted file mode 100644 index a9f6b50..0000000 --- a/apps/ide/policy/git-credential-endpoint.cjs +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; -const { decorate, inject, injectable } = require('@theia/core/shared/inversify'); -const express = require('@theia/core/shared/express'); -const { HttpConnectionValidator } = require('@theia/core/lib/node'); -const { - CREDENTIAL_PATH, - GitWorkspaceError, - createGitWorkspace, - readGitWorkspaceConfig, -} = require('./git-workspace.cjs'); - -/** - * Receives the repository credential from the workspace gateway. Theia's connection token, - * which only the gateway holds, is required; the gateway refuses to forward this path for people. - */ -class GitCredentialEndpoint { - configure(app) { - const config = readGitWorkspaceConfig(process.env); - if (!config) return; - const workspace = createGitWorkspace(config); - app.post( - CREDENTIAL_PATH, - (req, res, next) => this.connectionValidator.validateRequest(req, res, next), - express.json({ limit: '16kb' }), - async (req, res) => { - try { - const { status, directory } = await workspace.apply(req.body); - res.status(200).json({ status, directory }); - } catch (error) { - const known = error instanceof GitWorkspaceError; - if (!known || error.code !== 'INVALID_GIT_CREDENTIAL') - console.error(`WishForge Git workspace update failed: ${error.message}`); - res - .status(known && error.code === 'INVALID_GIT_CREDENTIAL' ? 400 : 500) - .json({ error: known ? error.code : 'GIT_WORKSPACE_FAILED' }); - } - }, - ); - } -} -decorate(inject(HttpConnectionValidator), GitCredentialEndpoint.prototype, 'connectionValidator'); -decorate(injectable(), GitCredentialEndpoint); -module.exports = { GitCredentialEndpoint }; diff --git a/apps/ide/policy/git-workspace.cjs b/apps/ide/policy/git-workspace.cjs deleted file mode 100644 index 7349682..0000000 --- a/apps/ide/policy/git-workspace.cjs +++ /dev/null @@ -1,241 +0,0 @@ -'use strict'; -// Brings the project's repository into the IDE workspace. While someone has the workspace open, -// the gateway delivers a short-lived repository token (see gateway/git-credentials.mjs); it is -// written to a Git config file outside the repository that the clone includes, so nothing secret -// lands in the repository or its .git/config. The first delivery clones the project into a folder -// named after it and switches to the ide/work branch: the token may push ide/ branches only, and -// a wish starting from such a branch verifies and merges it into the target branch. -const { spawn } = require('node:child_process'); -const fs = require('node:fs/promises'); -const path = require('node:path'); - -const CREDENTIAL_PATH = '/wishforge-internal/git-credential'; -const WORK_BRANCH = 'ide/work'; -const ID = /^[A-Za-z0-9_-]{1,128}$/; -const TOKEN = /^[A-Za-z0-9_-]{1,4096}\.[A-Za-z0-9_-]{1,512}$/; -const PLATFORM_REPOSITORY = /^\/git\/[A-Za-z0-9][A-Za-z0-9_-]{0,100}\/([A-Za-z0-9][A-Za-z0-9_-]{0,100})\.git$/; - -class GitWorkspaceError extends Error { - constructor(code, message) { - super(message); - this.code = code; - } -} -const invalid = message => new GitWorkspaceError('INVALID_GIT_CREDENTIAL', message); - -function branchName(value) { - if ( - typeof value !== 'string' || - !/^[A-Za-z0-9][A-Za-z0-9._/-]{0,199}$/.test(value) || - /\.\.|\/\/|\/\.|@\{/.test(value) || - /(?:\/|\.|\.lock)$/.test(value) - ) - throw invalid('Invalid branch'); - return value; -} -function personText(value) { - return typeof value === 'string' && value.length > 0 && value.length <= 200 && !/[\u0000-\u001f\u007f<>]/.test(value); -} - -/** The workspace's Git settings; without them the credential endpoint stays off. */ -function readGitWorkspaceConfig(env) { - const root = env.WISHFORGE_WORKSPACE_PATH; - const credentialDir = env.WISHFORGE_GIT_CREDENTIAL_DIR; - if (!root || !credentialDir) return undefined; - // A workspace of its own accepts exactly its project's repository; the one local Theia - // shared by every project accepts any repository of the platform Git service it is given. - if (env.WISHFORGE_GIT_REMOTE) return { root, credentialDir, remote: new URL(env.WISHFORGE_GIT_REMOTE).href }; - if (env.WISHFORGE_GIT_ORIGIN) return { root, credentialDir, origin: new URL(env.WISHFORGE_GIT_ORIGIN).origin }; - return undefined; -} - -function validate(payload, config) { - if (!payload || typeof payload !== 'object' || Array.isArray(payload)) throw invalid('Expected an object'); - const fields = ['projectId', 'projectName', 'repositoryUrl', 'branch', 'token', 'expiresAt', 'author']; - if (Object.keys(payload).some(key => !fields.includes(key))) throw invalid('Unexpected field'); - if (!ID.test(payload.projectId ?? '')) throw invalid('Invalid project'); - if ( - payload.projectName !== undefined && - (typeof payload.projectName !== 'string' || payload.projectName.length > 200) - ) - throw invalid('Invalid project name'); - let repository; - try { - repository = new URL(payload.repositoryUrl); - } catch { - throw invalid('Invalid repository'); - } - if (config.remote) { - if (repository.href !== config.remote) throw invalid('This workspace belongs to another repository'); - } else if ( - repository.origin !== config.origin || - repository.username || - repository.password || - repository.search || - repository.hash || - PLATFORM_REPOSITORY.exec(repository.pathname)?.[1] !== payload.projectId - ) - throw invalid('Repository is not the project’s platform repository'); - if (!TOKEN.test(payload.token ?? '')) throw invalid('Invalid token'); - if (!Number.isFinite(Date.parse(payload.expiresAt))) throw invalid('Invalid expiry'); - const author = payload.author; - if ( - author !== undefined && - (!author || - typeof author !== 'object' || - Object.keys(author).some(key => !['name', 'email'].includes(key)) || - !personText(author.name) || - !personText(author.email) || - !/^[^\s@]+@[^\s@]+$/.test(author.email)) - ) - throw invalid('Invalid author'); - return { - projectId: payload.projectId, - projectName: payload.projectName, - repositoryUrl: repository.href, - branch: branchName(payload.branch), - token: payload.token, - author: author && { name: author.name, email: author.email }, - }; -} - -/** Quotes a value or subsection name for a Git config file. */ -const quote = value => `"${value.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"`; - -function runGit(args, { cwd, include } = {}) { - return new Promise((resolve, reject) => { - const env = { ...process.env, GIT_TERMINAL_PROMPT: '0', GCM_INTERACTIVE: 'never' }; - // Passing the credential file by path keeps the token out of the command line. - if (include) - Object.assign(env, { GIT_CONFIG_COUNT: '1', GIT_CONFIG_KEY_0: 'include.path', GIT_CONFIG_VALUE_0: include }); - const child = spawn('git', args, { cwd, env, stdio: ['ignore', 'pipe', 'pipe'] }); - let stdout = ''; - let stderr = ''; - child.stdout.on('data', chunk => { - stdout = (stdout + chunk).slice(-65536); - }); - child.stderr.on('data', chunk => { - stderr = (stderr + chunk).slice(-2048); - }); - const timer = setTimeout(() => child.kill('SIGKILL'), 10 * 60_000); - child.on('error', () => { - clearTimeout(timer); - reject(new GitWorkspaceError('GIT_UNAVAILABLE', 'Git is not installed in this workspace')); - }); - child.on('close', code => { - clearTimeout(timer); - if (code === 0) resolve(stdout.trim()); - else reject(new GitWorkspaceError('GIT_FAILED', `git ${args[0]} exited ${code}: ${stderr.trim()}`)); - }); - }); -} - -async function exists(file) { - return fs.lstat(file).then( - () => true, - error => { - if (error.code === 'ENOENT') return false; - throw error; - }, - ); -} - -function createGitWorkspace(config, { git = runGit } = {}) { - const clones = new Map(); - const authors = new Map(); - - async function writeCredential(file, input) { - // A delivery without an author (for example after the gateway restarted) keeps the last one. - const author = input.author ?? authors.get(input.projectId); - if (author) authors.set(input.projectId, author); - const lines = [ - '# Written by WishForge while the IDE is open; the token expires on its own.', - `[http ${quote(input.repositoryUrl)}]`, - `\textraHeader = ${quote(`Authorization: Bearer ${input.token}`)}`, - ...(author ? ['[user]', `\tname = ${quote(author.name)}`, `\temail = ${quote(author.email)}`] : []), - ]; - await fs.mkdir(path.dirname(file), { recursive: true, mode: 0o700 }); - const temporary = `${file}.${process.pid}.${Date.now()}.tmp`; - await fs.writeFile(temporary, `${lines.join('\n')}\n`, { mode: 0o600 }); - await fs.rename(temporary, file); - } - async function origin(directory) { - if (!(await exists(path.join(directory, '.git')))) return undefined; - return git(['config', '--get', 'remote.origin.url'], { cwd: directory }).catch(() => undefined); - } - /** An earlier clone keeps working even after the project was renamed or the folder moved. */ - async function findClone(repositoryUrl) { - if ((await origin(config.root)) === repositoryUrl) return config.root; - const entries = await fs.readdir(config.root, { withFileTypes: true }).catch(() => []); - for (const entry of entries.slice(0, 200)) - if (entry.isDirectory() && !entry.name.startsWith('.')) { - const directory = path.join(config.root, entry.name); - if ((await origin(directory)) === repositoryUrl) return directory; - } - return undefined; - } - async function freeDirectory(input) { - const name = - (input.projectName ?? '') - .normalize('NFKC') - .toLowerCase() - .replace(/[^\p{L}\p{N}._-]+/gu, '-') - .replace(/^[-.]+|[-.]+$/g, '') - .slice(0, 60) || 'project'; - for (const candidate of [name, `${name}-${input.projectId.slice(0, 8)}`]) { - const directory = path.join(config.root, candidate); - if (!(await exists(directory))) return directory; - } - return undefined; - } - /** People commit on ide/work; a plain `git push` publishes it, `git pull origin ` updates it. */ - async function startWorkBranch(directory) { - const published = await git(['rev-parse', '--verify', '--quiet', `refs/remotes/origin/${WORK_BRANCH}`], { - cwd: directory, - }).catch(() => ''); - await git( - published - ? ['switch', '--create', WORK_BRANCH, '--track', `origin/${WORK_BRANCH}`] - : ['switch', '--create', WORK_BRANCH], - { cwd: directory }, - ); - await git(['config', '--local', 'push.default', 'current'], { cwd: directory }); - await git(['config', '--local', 'push.autoSetupRemote', 'true'], { cwd: directory }); - } - async function includeCredential(directory, file) { - const included = await git(['config', '--local', '--get-all', 'include.path'], { cwd: directory }).catch(() => ''); - if (!included.split('\n').includes(file)) - await git(['config', '--local', '--add', 'include.path', file], { cwd: directory }); - } - - return { - /** Stores the delivered credential and clones the repository when the workspace lacks it. */ - async apply(payload) { - const input = validate(payload, config); - const file = path.join(config.credentialDir, `${input.projectId}.gitconfig`); - await writeCredential(file, input); - const pending = clones.get(input.repositoryUrl); - if (pending) return { status: 'cloning', directory: pending.directory, cloning: pending.done }; - const existing = await findClone(input.repositoryUrl); - if (existing) { - await includeCredential(existing, file); - return { status: 'ready', directory: existing }; - } - const directory = await freeDirectory(input); - if (!directory) return { status: 'conflict' }; - const done = (async () => { - await git(['clone', '--origin', 'origin', '--branch', input.branch, '--', input.repositoryUrl, directory], { - include: file, - }); - await includeCredential(directory, file); - await startWorkBranch(directory); - })().finally(() => clones.delete(input.repositoryUrl)); - clones.set(input.repositoryUrl, { directory, done }); - // A failed clone is retried with the next delivery. - done.catch(error => console.error(`WishForge could not clone the project: ${error.message}`)); - return { status: 'cloning', directory, cloning: done }; - }, - }; -} - -module.exports = { CREDENTIAL_PATH, WORK_BRANCH, GitWorkspaceError, readGitWorkspaceConfig, createGitWorkspace }; diff --git a/apps/ide/policy/managed-plugins.cjs b/apps/ide/policy/managed-plugins.cjs deleted file mode 100644 index 8deb749..0000000 --- a/apps/ide/policy/managed-plugins.cjs +++ /dev/null @@ -1,108 +0,0 @@ -'use strict'; -const fs = require('node:fs'); -const path = require('node:path'); -const { createHash } = require('node:crypto'); -const { execFileSync } = require('node:child_process'); -const sha256 = value => createHash('sha256').update(value).digest('hex'); -const managedError = () => - new Error('EXTENSIONS_MANAGED_BY_ADMIN: Extensions are installed and updated only through the operator image build.'); -function treeDigest(root) { - const files = []; - function visit(directory, prefix = '') { - for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { - const relative = prefix ? `${prefix}/${entry.name}` : entry.name; - const name = path.join(directory, entry.name); - if (entry.isSymbolicLink()) throw new Error('EXTENSION_SYMLINK_REJECTED'); - if (entry.isDirectory()) visit(name, relative); - else if (entry.isFile()) files.push([relative, sha256(fs.readFileSync(name))]); - else throw new Error('EXTENSION_SPECIAL_FILE_REJECTED'); - } - } - visit(root); - files.sort((left, right) => (left[0] < right[0] ? -1 : left[0] > right[0] ? 1 : 0)); - return sha256(files.map(([name, digest]) => `${name}\0${digest}\n`).join('')); -} -function assertIdentity(directory, expected) { - if (fs.lstatSync(directory).isSymbolicLink()) throw new Error('EXTENSION_SYMLINK_REJECTED'); - const manifest = JSON.parse(fs.readFileSync(path.join(directory, 'extension/package.json'), 'utf8')); - if (`${manifest.publisher}.${manifest.name}` !== expected.id || manifest.version !== expected.version) - throw new Error('EXTENSION_ID_VERSION_REJECTED'); -} -function validateManagedPlugins( - root, - { - catalog = require('./managed-plugins.lock.json'), - pythonLock = require('../scripts/python-debugger.lock.json'), - platform = `${process.platform}-${process.arch}`, - } = {}, -) { - if (fs.lstatSync(root).isSymbolicLink()) throw new Error('EXTENSION_SYMLINK_REJECTED'); - const extensions = [...catalog.plugins]; - if (pythonLock) - extensions.push( - { directory: pythonLock.id, id: pythonLock.id, version: pythonLock.version }, - { - directory: pythonLock.pythonDependency.id, - id: pythonLock.pythonDependency.id, - version: pythonLock.pythonDependency.version, - }, - { - directory: pythonLock.languageServer.id, - id: pythonLock.languageServer.id, - version: pythonLock.languageServer.version, - }, - ); - const allowed = new Set(extensions.map(extension => extension.directory)); - const found = fs.readdirSync(root).filter(name => !name.startsWith('.')); - if (found.length !== allowed.size || found.some(name => !allowed.has(name))) - throw new Error('EXTENSION_ALLOWLIST_MISMATCH'); - for (const extension of extensions) { - const directory = path.join(root, extension.directory); - assertIdentity(directory, extension); - if (extension.sha256 && treeDigest(directory) !== extension.sha256) - throw new Error(`EXTENSION_DIGEST_REJECTED: ${extension.id}`); - } - if (pythonLock) { - const expected = pythonLock.platforms[platform]; - if (!expected) throw new Error('EXTENSION_PLATFORM_NOT_PINNED'); - const dependency = pythonLock.pythonDependency; - const packages = [ - { id: pythonLock.id, file: `${pythonLock.id}-${pythonLock.version}@${platform}.vsix`, sha256: expected }, - { id: dependency.id, file: `${dependency.id}-${dependency.version}.vsix`, sha256: dependency.sha256 }, - { - id: pythonLock.languageServer.id, - file: `${pythonLock.languageServer.id}-${pythonLock.languageServer.version}.vsix`, - sha256: pythonLock.languageServer.sha256, - }, - ]; - // Compare the unpacked bytes against the checksum-pinned official VSIX files, - // never against a manifest self-generated from the current runtime directory. - execFileSync( - 'python3', - [ - '-c', - ` -import hashlib,json,pathlib,stat,sys,zipfile -root=pathlib.Path(sys.argv[1]) -for package in json.loads(sys.argv[2]): - archive=root/'.downloads'/package['file'] - if archive.is_symlink() or archive.stat().st_size>67108864: raise ValueError('EXTENSION_ARCHIVE_REJECTED') - if hashlib.sha256(archive.read_bytes()).hexdigest()!=package['sha256']: raise ValueError('EXTENSION_ARCHIVE_DIGEST_REJECTED') - target=root/package['id'] - with zipfile.ZipFile(archive) as z: - expected={i.filename:hashlib.sha256(z.read(i)).hexdigest() for i in z.infolist() if not i.is_dir()} - actual={} - for p in target.rglob('*'): - if p.is_symlink(): raise ValueError('EXTENSION_SYMLINK_REJECTED') - if p.is_file(): actual[p.relative_to(target).as_posix()]=hashlib.sha256(p.read_bytes()).hexdigest() - if actual!=expected: raise ValueError('EXTENSION_CONTENT_DIGEST_REJECTED: '+package['id']) -`, - root, - JSON.stringify(packages), - ], - { timeout: 30_000, stdio: ['ignore', 'pipe', 'pipe'] }, - ); - } - return extensions; -} -module.exports = { treeDigest, assertIdentity, validateManagedPlugins, managedError }; diff --git a/apps/ide/policy/managed-plugins.lock.json b/apps/ide/policy/managed-plugins.lock.json deleted file mode 100644 index a966285..0000000 --- a/apps/ide/policy/managed-plugins.lock.json +++ /dev/null @@ -1,561 +0,0 @@ -{ - "schemaVersion": 1, - "source": { - "url": "https://github.com/eclipse-theia/vscode-builtin-extensions/releases/download/1.108.2/vscode-builtin-extensions-1.108.2.tar.gz", - "sha256": "05a20cf3e671c8d328b04d9ce72b25688b0e762e4a3f5592f31a21ee38280367" - }, - "plugins": [ - { - "directory": "ms-vscode.js-debug", - "id": "ms-vscode.js-debug", - "version": "1.105.0", - "sha256": "47b974a9cf4f2d030efbbd00d21ad7c4c8b406dade21652aa95686427fd96a76" - }, - { - "directory": "ms-vscode.js-debug-companion", - "id": "ms-vscode.js-debug-companion", - "version": "1.1.3", - "sha256": "3d567809ed536ad5ead4732f83b4433113f6bba0d56ee57ba80cdb7fc90e87b6" - }, - { - "directory": "ms-vscode.vscode-js-profile-table", - "id": "ms-vscode.vscode-js-profile-table", - "version": "1.0.10", - "sha256": "6db1bdc953c0c055480eca4a867059ea36a71b2f28eb22631abe5d807d9d992a" - }, - { - "directory": "vscode.bat", - "id": "vscode.bat", - "version": "1.108.2", - "sha256": "049a52d9bd4934464eabe1318ccc164f734d0e080e39df9c02f54c32d6a1480a" - }, - { - "directory": "vscode.builtin-notebook-renderers", - "id": "vscode.builtin-notebook-renderers", - "version": "1.108.2", - "sha256": "28198f48d05ba683c4a1ce490377543f4c89fd65e44c18da0a1b9f3faa010f2b" - }, - { - "directory": "vscode.clojure", - "id": "vscode.clojure", - "version": "1.108.2", - "sha256": "5ba5793cf1797861aa58410079cc1a542784053bc9b038afd758db5336319dd5" - }, - { - "directory": "vscode.coffeescript", - "id": "vscode.coffeescript", - "version": "1.108.2", - "sha256": "ef1d7e0149349a73550c7359c5d9186c406c941dba3771230ce82f9e8cd709cf" - }, - { - "directory": "vscode.configuration-editing", - "id": "vscode.configuration-editing", - "version": "1.108.2", - "sha256": "d5c82fa70a7ac06e53d55dd0ad943be42b7206da918887582701b63dd318ced9" - }, - { - "directory": "vscode.cpp", - "id": "vscode.cpp", - "version": "1.108.2", - "sha256": "e890a89907e8bed3718962f7f56fea93cd639eb8d3f87078b24c4fc26767d30a" - }, - { - "directory": "vscode.csharp", - "id": "vscode.csharp", - "version": "1.108.2", - "sha256": "f70330001f788a62592b5d5d9639fdabddbffa616ece32fb3deed47edd15d926" - }, - { - "directory": "vscode.css", - "id": "vscode.css", - "version": "1.108.2", - "sha256": "e16cc9e6ba83af3b8b2dac7a58326d8d49dccf11d0ce4ddc450c3a529bc43b12" - }, - { - "directory": "vscode.css-language-features", - "id": "vscode.css-language-features", - "version": "1.108.2", - "sha256": "9c61d13d105e4fa35b6d430e3afde416e47e5691ca72cff84226a54a8a7a2925" - }, - { - "directory": "vscode.dart", - "id": "vscode.dart", - "version": "1.108.2", - "sha256": "65594c659e862f0eaebbcc1b68652ebe70e6c9d1a90340d078eb1697c1166913" - }, - { - "directory": "vscode.debug-auto-launch", - "id": "vscode.debug-auto-launch", - "version": "1.108.2", - "sha256": "408b192f4c5913b6fc3294ad661dabddea56d7c57ea8bbe10919bc06a9239660" - }, - { - "directory": "vscode.debug-server-ready", - "id": "vscode.debug-server-ready", - "version": "1.108.2", - "sha256": "8deb733ffbf4198cef3cbb73d6b5307de9ba6c18d8a4249432d71ba47d06b864" - }, - { - "directory": "vscode.diff", - "id": "vscode.diff", - "version": "1.108.2", - "sha256": "ecbdda82e1072bce5d375a4b6d267da041a936c3cabfda3011dddb21e5a48e98" - }, - { - "directory": "vscode.docker", - "id": "vscode.docker", - "version": "1.108.2", - "sha256": "2a957acd235c9a5d3580e46389f16cb840a34d3a70f9d66df8c0691bcede878d" - }, - { - "directory": "vscode.dotenv", - "id": "vscode.dotenv", - "version": "1.108.2", - "sha256": "eb84848cc43176288f815c554ab03636a5d5472c6314e956041d95b2d7b0bf8f" - }, - { - "directory": "vscode.emmet", - "id": "vscode.emmet", - "version": "1.108.2", - "sha256": "b6b5dc5df353e4ecbca48aca599bfe51cdcba7f63b9fb0ef79b8022ac9a4ddf1" - }, - { - "directory": "vscode.extension-editing", - "id": "vscode.extension-editing", - "version": "1.108.2", - "sha256": "2885dabf8b502f45a402f500a4bd43b338cc9b64764d758ef250c8b1aad0bcf6" - }, - { - "directory": "vscode.fsharp", - "id": "vscode.fsharp", - "version": "1.108.2", - "sha256": "1167d5c4c0bf022aeacf859803d5552071d42cec848684546a68a4ebb99628a1" - }, - { - "directory": "vscode.git", - "id": "vscode.git", - "version": "1.108.2", - "sha256": "882cbb7556376f513629ed3fba1711c77b80890cb284646b6391518276609075" - }, - { - "directory": "vscode.git-base", - "id": "vscode.git-base", - "version": "1.108.2", - "sha256": "26d3c189c0890b8bff9ec56391cea74f378b815c5aedbd5ec583ca297ae23f55" - }, - { - "directory": "vscode.github", - "id": "vscode.github", - "version": "1.108.2", - "sha256": "616a6f2b139be59b00725aa28111512e11f8354d3433f84681a9dee54956f422" - }, - { - "directory": "vscode.github-authentication", - "id": "vscode.github-authentication", - "version": "1.108.2", - "sha256": "7f772b6f9241509efba786f4ff9184374740516084b2e3b1c231163f143da208" - }, - { - "directory": "vscode.go", - "id": "vscode.go", - "version": "1.108.2", - "sha256": "c848c972ae6d559fbfb10702e3dcf95ad94d16cd0edb2dde45dcc72054efa1e3" - }, - { - "directory": "vscode.groovy", - "id": "vscode.groovy", - "version": "1.108.2", - "sha256": "00ca5455163d0ec0dbc5d50fade93f94e2b93f1dc5bce3d22395508e256ec619" - }, - { - "directory": "vscode.grunt", - "id": "vscode.grunt", - "version": "1.108.2", - "sha256": "68bc5e71189089032abc187ff97666cc873b1cf6bfecd37a93721e8710633f86" - }, - { - "directory": "vscode.gulp", - "id": "vscode.gulp", - "version": "1.108.2", - "sha256": "fd073848831e8d3c148e4daf085e7f54fdc48bfc91a3136f6491df99f99f9c01" - }, - { - "directory": "vscode.handlebars", - "id": "vscode.handlebars", - "version": "1.108.2", - "sha256": "c9446c5192f64cb8cd70300577a69961ef83fab430898db36421d07b62660fdf" - }, - { - "directory": "vscode.hlsl", - "id": "vscode.hlsl", - "version": "1.108.2", - "sha256": "482db38e94f8505f12458b051793bb3d937c3e2e560e6adeaa31e41609396441" - }, - { - "directory": "vscode.html", - "id": "vscode.html", - "version": "1.108.2", - "sha256": "3420b09f3f1fd441dacf842041db14045584dea25b2d3f675453a9ba6fd9b599" - }, - { - "directory": "vscode.html-language-features", - "id": "vscode.html-language-features", - "version": "1.108.2", - "sha256": "ccc11f2b9c7ba04f6f9f31c49e16587a165fd4f71a5d8345314d2509393b01bb" - }, - { - "directory": "vscode.ini", - "id": "vscode.ini", - "version": "1.108.2", - "sha256": "00f9170d7311b1a75484e63c2ac0abe374934bb38dff5a0c342153f93fc69164" - }, - { - "directory": "vscode.ipynb", - "id": "vscode.ipynb", - "version": "1.108.2", - "sha256": "d5be113eeaf2d9735044c5db42983a3f7c9f81b5fc0ce6c7864ff69f15ac5e27" - }, - { - "directory": "vscode.jake", - "id": "vscode.jake", - "version": "1.108.2", - "sha256": "9ff40dd4dcbb130f52b4a39cbf630fab468d9d5f1ef91d6b1ac4433ffda55a9c" - }, - { - "directory": "vscode.java", - "id": "vscode.java", - "version": "1.108.2", - "sha256": "af9b242d4bfcd33683013f3af4ceddae96324f6a242e9055718a431a157dca75" - }, - { - "directory": "vscode.javascript", - "id": "vscode.javascript", - "version": "1.108.2", - "sha256": "9936e0f60e9f6130edb3cc5c1a8727582519c29cb882ea53f8ab2728193695e5" - }, - { - "directory": "vscode.json", - "id": "vscode.json", - "version": "1.108.2", - "sha256": "0047b7b7e590fed1fd5a30c7d06d167c9fb23f9d6155a65e9b57a3b9703da68d" - }, - { - "directory": "vscode.json-language-features", - "id": "vscode.json-language-features", - "version": "1.108.2", - "sha256": "51971aef66c5af444e04042b6a3d6cebc7e20422d0c2cee4219b775caf567446" - }, - { - "directory": "vscode.julia", - "id": "vscode.julia", - "version": "1.108.2", - "sha256": "109bf99c4cbe2e02082d952d72da97984bf90bbfe1c5a53683040a1b98e18c82" - }, - { - "directory": "vscode.latex", - "id": "vscode.latex", - "version": "1.108.2", - "sha256": "8e664d4c99645338f2d85d7013270e072a494df4db61be027cfccafab3a1dcb4" - }, - { - "directory": "vscode.less", - "id": "vscode.less", - "version": "1.108.2", - "sha256": "10027163ff231ab5ad5b964f87538793dd4f0430ea71a0575ec66514c63dbe6e" - }, - { - "directory": "vscode.log", - "id": "vscode.log", - "version": "1.108.2", - "sha256": "f48bcc16c41b1789496341d883141dc1105d458529390299ddd924909c5e31c8" - }, - { - "directory": "vscode.lua", - "id": "vscode.lua", - "version": "1.108.2", - "sha256": "2de7c36f55c75a9167f9a58ad17012c6567a87928a5bfdc0a42ea8839c8069c5" - }, - { - "directory": "vscode.make", - "id": "vscode.make", - "version": "1.108.2", - "sha256": "a4f6189f96df05bf08e2c6d8fa0e0d5eabe2e1d61056654fc5f8e5581f279937" - }, - { - "directory": "vscode.markdown", - "id": "vscode.markdown", - "version": "1.108.2", - "sha256": "d4b364c6e2edad2b1ae50ece5cee20b130aa94efc5f8f8eb1b696b0eda563ba9" - }, - { - "directory": "vscode.markdown-language-features", - "id": "vscode.markdown-language-features", - "version": "1.108.2", - "sha256": "ced48a41ed75021d1a4ea5afd7f51c08631f70f04e323d351d7260824083a7a6" - }, - { - "directory": "vscode.markdown-math", - "id": "vscode.markdown-math", - "version": "1.108.2", - "sha256": "b58711f19ecca7df14e13979ec675c1bdaa9f3968a6e756ff5c7105105dbb86e" - }, - { - "directory": "vscode.media-preview", - "id": "vscode.media-preview", - "version": "1.108.2", - "sha256": "179e0778ac606e254f59018fde83ea9caf5f90e0f99ac0ecc347d5ad66af330c" - }, - { - "directory": "vscode.merge-conflict", - "id": "vscode.merge-conflict", - "version": "1.108.2", - "sha256": "a1b347a40c96cccf73a102808b768140bf5d3c1dfeddbfa1dca1da2b7f7f477b" - }, - { - "directory": "vscode.mermaid-chat-features", - "id": "vscode.mermaid-chat-features", - "version": "1.108.2", - "sha256": "b6d18d40c0b1e0b2585b99a0488b984d1b30a2a1140206ca34c9557165b78455" - }, - { - "directory": "vscode.npm", - "id": "vscode.npm", - "version": "1.108.2", - "sha256": "0f11c99fe30648d7c444361298749d0b8d5ff60472b5a0eabc3904d07397876e" - }, - { - "directory": "vscode.objective-c", - "id": "vscode.objective-c", - "version": "1.108.2", - "sha256": "8319b21c30bb8fcb897687991165909e359ec0c075c1d014602f38da9865864a" - }, - { - "directory": "vscode.perl", - "id": "vscode.perl", - "version": "1.108.2", - "sha256": "5727730f86da49921388ea8276a1c11bb1438796c02815f980fd5239ebd2e430" - }, - { - "directory": "vscode.php", - "id": "vscode.php", - "version": "1.108.2", - "sha256": "70c19b21bc32837872145a0a1e76ee216b51d012321087f4ef7380e289d77715" - }, - { - "directory": "vscode.php-language-features", - "id": "vscode.php-language-features", - "version": "1.108.2", - "sha256": "01159d120c597f2663367277c1e9d4f8e9866a88c3c30776d48485d061bbd8ad" - }, - { - "directory": "vscode.powershell", - "id": "vscode.powershell", - "version": "1.108.2", - "sha256": "83d8cbf4801aaddee86ddd3c3f61a9fcfde74a1049497c8db4e890598beeffe6" - }, - { - "directory": "vscode.prompt", - "id": "vscode.prompt", - "version": "1.108.2", - "sha256": "a0d70ebb1f4189419dbb963e1024e0b3a5e7d977697b32b1d9686a9f315c8fa9" - }, - { - "directory": "vscode.pug", - "id": "vscode.pug", - "version": "1.108.2", - "sha256": "288d461d6a7ec29b7ec2f4d11a3065690e9315c719e64cf1baa1dea542d1b57a" - }, - { - "directory": "vscode.python", - "id": "vscode.python", - "version": "1.108.2", - "sha256": "8683bf05b9c8ab797d2a75ddf23eee1f979d4272fbbcb5b0b963f62e16ea8f2f" - }, - { - "directory": "vscode.r", - "id": "vscode.r", - "version": "1.108.2", - "sha256": "a2f642e8905e67bb73737e457fa079bf76aad644fdaa2f1cdf0fd0ecdcfc73f5" - }, - { - "directory": "vscode.razor", - "id": "vscode.razor", - "version": "1.108.2", - "sha256": "6d24d115419c70dd22329d82d5a06b965c8f4c4890543edb11ff0bf4f71fa7bb" - }, - { - "directory": "vscode.references-view", - "id": "vscode.references-view", - "version": "1.108.2", - "sha256": "d2bdc0161a107eaa844c6bb2f4c287bb8a1319f7107370ee9f60a3621859e42c" - }, - { - "directory": "vscode.restructuredtext", - "id": "vscode.restructuredtext", - "version": "1.108.2", - "sha256": "19a9dbcd2fc1f7ac087dd3f056e4d69ea50aaac43195cb7762513245f39dd089" - }, - { - "directory": "vscode.ruby", - "id": "vscode.ruby", - "version": "1.108.2", - "sha256": "958e0bbe7c1cd09da68e7794abd85a99ed8fb0f588d7a3d73bf36b118a842caa" - }, - { - "directory": "vscode.rust", - "id": "vscode.rust", - "version": "1.108.2", - "sha256": "bb29d84d161754274f80f605b627cc11de67458b826fa13e0eebf30e12ab979e" - }, - { - "directory": "vscode.scss", - "id": "vscode.scss", - "version": "1.108.2", - "sha256": "a66ee14fedc6225c672ddc73fd457034baf90f9fac23b2987d6404c8a937b737" - }, - { - "directory": "vscode.search-result", - "id": "vscode.search-result", - "version": "1.108.2", - "sha256": "4f579e97277485d9861554bdedb9cbecf761b37e70be74d5144c66affdc00d7e" - }, - { - "directory": "vscode.shaderlab", - "id": "vscode.shaderlab", - "version": "1.108.2", - "sha256": "ce9c866d5f4fff9d3c2e3fd4f5f5a2e0c789be7daf0db88387d74e884d0b29e8" - }, - { - "directory": "vscode.shellscript", - "id": "vscode.shellscript", - "version": "1.108.2", - "sha256": "ac6048f34e998b969fda2698583983627b5a957db35270d3d056df7946f7b0f6" - }, - { - "directory": "vscode.simple-browser", - "id": "vscode.simple-browser", - "version": "1.108.2", - "sha256": "64a0ad33a16501227125ac2c994b668ba8772b213bb246fa60281b4aaba9a9f9" - }, - { - "directory": "vscode.sql", - "id": "vscode.sql", - "version": "1.108.2", - "sha256": "fb9285cd41cff6e70da9a6f7017307be12cbf49abe06627854ea8eb254db1013" - }, - { - "directory": "vscode.swift", - "id": "vscode.swift", - "version": "1.108.2", - "sha256": "fc74ef0b507b235e07dd905b82e8efc69824f7f7dfdbbd12d6a5cd7b23bbece1" - }, - { - "directory": "vscode.terminal-suggest", - "id": "vscode.terminal-suggest", - "version": "1.108.2", - "sha256": "12b7713afd5028bc3978c652d555ec4737bc4d29d2c236318a60b20c5c7e2d80" - }, - { - "directory": "vscode.theme-abyss", - "id": "vscode.theme-abyss", - "version": "1.108.2", - "sha256": "f4f5256d0a95c11442f8b758cae95c22240cc209e45f284ac9afe70b242cf4fa" - }, - { - "directory": "vscode.theme-defaults", - "id": "vscode.theme-defaults", - "version": "1.108.2", - "sha256": "220a90a481dd4ffb0587d727ca02122f03d7befc26a6649d709f13e3a50c29f0" - }, - { - "directory": "vscode.theme-kimbie-dark", - "id": "vscode.theme-kimbie-dark", - "version": "1.108.2", - "sha256": "eb1cf1a0362f82b6e23f5383cc3b691afb6a0d60d79955aa858263ecfbd797ec" - }, - { - "directory": "vscode.theme-monokai", - "id": "vscode.theme-monokai", - "version": "1.108.2", - "sha256": "ba7abbb9ab04ece745aced2269003d65316ee487638308fc0f1a08476a91de83" - }, - { - "directory": "vscode.theme-monokai-dimmed", - "id": "vscode.theme-monokai-dimmed", - "version": "1.108.2", - "sha256": "00d5d056d6f3773c5314feaae1adae3c061a8188ba3231961f4a5707176f62e0" - }, - { - "directory": "vscode.theme-quietlight", - "id": "vscode.theme-quietlight", - "version": "1.108.2", - "sha256": "f0f018f4de1a3f93de5a9ed40069dc8614d981339273f8bfc244c1f5cad8d2aa" - }, - { - "directory": "vscode.theme-red", - "id": "vscode.theme-red", - "version": "1.108.2", - "sha256": "3065330894fdb026a9b6278108be00e5dbc71bfa218575b7b0db6f29f2d3d7be" - }, - { - "directory": "vscode.theme-solarized-dark", - "id": "vscode.theme-solarized-dark", - "version": "1.108.2", - "sha256": "ff0b771b8ac188e5025c9d2f79aff66dbb9092cee54fdad5c5ef55493e741576" - }, - { - "directory": "vscode.theme-solarized-light", - "id": "vscode.theme-solarized-light", - "version": "1.108.2", - "sha256": "90d275f62c97c6db813f4b8328dfbb6a2416d3ffbe3086f5b6b0c336e0b129d9" - }, - { - "directory": "vscode.theme-tomorrow-night-blue", - "id": "vscode.theme-tomorrow-night-blue", - "version": "1.108.2", - "sha256": "ec253677124f41a815d63dfa970f0a25a98bf805d9172c9e539b4ed037320c7e" - }, - { - "directory": "vscode.tunnel-forwarding", - "id": "vscode.tunnel-forwarding", - "version": "1.108.2", - "sha256": "dc6f8419f6544455b42afd1b729b50d07705be1ce001007ddc208e2594397fb9" - }, - { - "directory": "vscode.typescript", - "id": "vscode.typescript", - "version": "1.108.2", - "sha256": "879b9686a08845f43c2d9f89334f3bf747aaf9de9ea12fb3c3b161bc19e4ea48" - }, - { - "directory": "vscode.typescript-language-features", - "id": "vscode.typescript-language-features", - "version": "1.108.2", - "sha256": "819e93858b013f24a6e102a71e8e1922515b310071d11ccbb98a82be6ab99dd9" - }, - { - "directory": "vscode.vb", - "id": "vscode.vb", - "version": "1.108.2", - "sha256": "49b14b8e8668434f86fa997e1168a86168f92c237662af6d8b6c0d25790caf30" - }, - { - "directory": "vscode.vscode-theme-seti", - "id": "vscode.vscode-theme-seti", - "version": "1.108.2", - "sha256": "e0383c41fedc343b6b2e02ef6ba77e5edac78ce72c06ae45d84fd940f2b8975e" - }, - { - "directory": "vscode.xml", - "id": "vscode.xml", - "version": "1.108.2", - "sha256": "4656d86b85078ba1673a36050439013339aa58e855e7695a6ef201e9333d6e6c" - }, - { - "directory": "vscode.yaml", - "id": "vscode.yaml", - "version": "1.108.2", - "sha256": "b03408b1cc8cb82c2c1961ea480e6b04d9a054ebc034af71f4d91cb29408aca6" - } - ] -} diff --git a/apps/ide/policy/package.json b/apps/ide/policy/package.json deleted file mode 100644 index 76c74bf..0000000 --- a/apps/ide/policy/package.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "@wishforge/ide-policy", - "version": "0.1.0", - "private": true, - "theiaExtensions": [ - { - "frontend": "frontend.cjs", - "backend": "backend.cjs" - } - ], - "peerDependencies": { - "@theia/core": "1.76.0", - "@theia/collaboration": "1.76.0" - } -} diff --git a/apps/ide/policy/plugin-install-frontend.cjs b/apps/ide/policy/plugin-install-frontend.cjs deleted file mode 100644 index 0327d6a..0000000 --- a/apps/ide/policy/plugin-install-frontend.cjs +++ /dev/null @@ -1,41 +0,0 @@ -'use strict'; -const { injectable, inject } = require('@theia/core/shared/inversify'); -const { WidgetManager } = require('@theia/core/lib/browser/widget-manager'); -const { FrontendApplicationContribution } = require('@theia/core/lib/browser/frontend-application-contribution'); -const React = require('@theia/core/shared/react'); -class ManagedExtensionsNotice { - onStart() { - const label = widget => { - if (widget.id !== 'vsx-extensions-view-container') return; - widget.title.label = 'Extensions · 管理员管理'; - widget.title.caption = '扩展由管理员固定版本安装。可查看已安装扩展;安装、更新与移除须通过平台镜像发布。'; - // ViewContainer restores its title from saved layout/part titles. Put the - // durable notice in the extension search widget as well as the caption. - if (!widget.searchBar || widget.searchBar.wishforgeManagedNotice) return; - const search = widget.searchBar; - search.wishforgeManagedNotice = true; - const render = search.render.bind(search); - search.render = () => - React.createElement( - 'div', - { style: { width: '100%' } }, - React.createElement( - 'p', - { style: { margin: '0 0 8px', fontSize: '12px', lineHeight: '1.6' } }, - '扩展由管理员管理。安装与更新须通过平台镜像发布。', - ), - render(), - ); - search.update(); - }; - this.widgets.getWidgets('vsx-extensions-view-container').forEach(label); - this.widgets.onDidCreateWidget(({ widget }) => label(widget)); - } -} -injectable()(ManagedExtensionsNotice); -inject(WidgetManager)(ManagedExtensionsNotice.prototype, 'widgets'); -function bindManagedExtensionNotice(bind) { - bind(ManagedExtensionsNotice).toSelf().inSingletonScope(); - bind(FrontendApplicationContribution).toService(ManagedExtensionsNotice); -} -module.exports = { bindManagedExtensionNotice }; diff --git a/apps/ide/policy/plugin-install-policy.cjs b/apps/ide/policy/plugin-install-policy.cjs deleted file mode 100644 index 7273078..0000000 --- a/apps/ide/policy/plugin-install-policy.cjs +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; -const path = require('node:path'); -const { injectable } = require('@theia/core/shared/inversify'); -const { PluginServer, PluginDeployer, PluginType } = require('@theia/plugin-ext/lib/common/plugin-protocol'); -const { PluginServerImpl } = require('@theia/plugin-ext/lib/main/node/plugin-server-impl'); -const { PluginDeployerImpl } = require('@theia/plugin-ext/lib/main/node/plugin-deployer-impl'); -const { validateManagedPlugins, managedError } = require('./managed-plugins.cjs'); - -class ManagedPluginServer extends PluginServerImpl { - async install() { - throw managedError(); - } - async doInstall() { - throw managedError(); - } - async uninstall() { - throw managedError(); - } - async enablePlugin() { - throw managedError(); - } - async disablePlugin() { - throw managedError(); - } -} -injectable()(ManagedPluginServer); -class ManagedPluginDeployer extends PluginDeployerImpl { - async doStart() { - if (!process.env.WF_IDE_MANAGED_PLUGINS_DIR) throw new Error('MANAGED_EXTENSIONS_UNCONFIGURED'); - const root = path.resolve(process.env.WF_IDE_MANAGED_PLUGINS_DIR); - const allowed = validateManagedPlugins(root); - await this.initResolvers(); - // Do not consult THEIA_PLUGINS, user directories, extension recommendations - // or resolver participants. All system content was verified before resolution. - const entries = await this.resolveAndHandle(`local-dir:${root}`, PluginType.System); - const paths = new Set(allowed.map(extension => path.join(root, extension.directory))); - if ( - entries.length !== paths.size || - entries.some(entry => !paths.has(entry.originalPath()) || entry.type !== PluginType.System) - ) { - throw new Error('EXTENSION_DEPLOYMENT_SCOPE_REJECTED'); - } - return super.deployPlugins(entries); - } - async deploy() { - throw managedError(); - } - async deployMultipleEntries() { - throw managedError(); - } - async deployPlugins() { - throw managedError(); - } - async uninstall() { - throw managedError(); - } - async undeploy() { - throw managedError(); - } - async enablePlugin() { - throw managedError(); - } - async disablePlugin() { - throw managedError(); - } -} -injectable()(ManagedPluginDeployer); -function bindManagedPlugins(rebind) { - rebind(PluginServer).to(ManagedPluginServer).inSingletonScope(); - rebind(PluginDeployer).to(ManagedPluginDeployer).inSingletonScope(); -} -module.exports = { ManagedPluginServer, ManagedPluginDeployer, bindManagedPlugins }; diff --git a/apps/ide/policy/test/git-workspace.test.cjs b/apps/ide/policy/test/git-workspace.test.cjs deleted file mode 100644 index 23c29e6..0000000 --- a/apps/ide/policy/test/git-workspace.test.cjs +++ /dev/null @@ -1,191 +0,0 @@ -'use strict'; -require('reflect-metadata'); -const test = require('node:test'); -const assert = require('node:assert/strict'); -const { execFileSync } = require('node:child_process'); -const fs = require('node:fs'); -const os = require('node:os'); -const path = require('node:path'); -const { createGitWorkspace, readGitWorkspaceConfig } = require('../git-workspace.cjs'); - -const git = (cwd, ...args) => - execFileSync('git', args, { - cwd, - encoding: 'utf8', - env: { ...process.env, GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1' }, - }).trim(); - -function fixture(t) { - const base = fs.mkdtempSync(path.join(os.tmpdir(), 'wishforge-git-workspace-')); - t.after(() => fs.rmSync(base, { recursive: true, force: true })); - const source = path.join(base, 'p1.git'); - git(base, 'init', '--quiet', '--bare', '--initial-branch=main', source); - const seed = path.join(base, 'seed'); - git(base, 'clone', '--quiet', source, seed); - fs.writeFileSync(path.join(seed, 'README.md'), '# Todo\n'); - git(seed, 'add', 'README.md'); - git(seed, '-c', 'user.name=Seed', '-c', 'user.email=seed@example.com', 'commit', '--quiet', '-m', 'Initial'); - git(seed, 'push', '--quiet', 'origin', 'HEAD:main'); - const root = path.join(base, 'workspace'); - fs.mkdirSync(root); - const config = { root, credentialDir: path.join(base, 'credentials'), remote: `file://${source}` }; - const delivery = (overrides = {}) => ({ - projectId: 'p1', - projectName: 'Todo App', - repositoryUrl: config.remote, - branch: 'main', - token: 'payload.signature-1', - expiresAt: new Date(Date.now() + 900_000).toISOString(), - author: { name: 'Ada Lovelace', email: 'ada@example.com' }, - ...overrides, - }); - return { base, source, root, config, delivery }; -} - -test('the first delivery clones the target branch and keeps the token out of the repository', async t => { - const f = fixture(t); - const workspace = createGitWorkspace(f.config); - const result = await workspace.apply(f.delivery()); - assert.equal(result.status, 'cloning'); - await result.cloning; - const clone = path.join(f.root, 'todo-app'); - assert.equal(result.directory, clone); - assert.equal(fs.readFileSync(path.join(clone, 'README.md'), 'utf8'), '# Todo\n'); - const credential = path.join(f.config.credentialDir, 'p1.gitconfig'); - assert.equal(fs.statSync(credential).mode & 0o777, 0o600); - assert.doesNotMatch(fs.readFileSync(path.join(clone, '.git/config'), 'utf8'), /payload\.signature/); - assert.equal( - git(clone, 'config', `http.${f.config.remote}.extraHeader`), - 'Authorization: Bearer payload.signature-1', - ); - assert.equal(git(clone, 'config', 'user.name'), 'Ada Lovelace'); - assert.equal(git(clone, 'config', 'user.email'), 'ada@example.com'); -}); - -test('later deliveries only refresh the token, even after the project was renamed', async t => { - const f = fixture(t); - const workspace = createGitWorkspace(f.config); - await ( - await workspace.apply(f.delivery()) - ).cloning; - const result = await workspace.apply( - f.delivery({ projectName: 'Renamed', token: 'payload.signature-2', author: undefined }), - ); - assert.deepEqual(result, { status: 'ready', directory: path.join(f.root, 'todo-app') }); - assert.equal( - git(result.directory, 'config', `http.${f.config.remote}.extraHeader`), - 'Authorization: Bearer payload.signature-2', - ); - // A delivery without an author keeps the last one. - assert.equal(git(result.directory, 'config', 'user.name'), 'Ada Lovelace'); - assert.equal(git(result.directory, 'config', '--get-all', 'include.path').split('\n').length, 1); -}); - -test('people commit on ide/work, and a plain push publishes it without touching the target branch', async t => { - const f = fixture(t); - const workspace = createGitWorkspace(f.config); - const { directory, cloning } = await workspace.apply(f.delivery()); - await cloning; - assert.equal(git(directory, 'branch', '--show-current'), 'ide/work'); - const target = git(f.source, 'rev-parse', 'main'); - git(directory, 'config', 'user.name', 'Grace Hopper'); - fs.writeFileSync(path.join(directory, 'notes.md'), 'edited in the IDE\n'); - git(directory, 'add', 'notes.md'); - git(directory, 'commit', '--quiet', '-m', 'Edit in the IDE'); - git(directory, 'push', '--quiet'); - assert.equal( - git(f.source, 'log', '-1', '--format=%an <%ae> %s', 'ide/work'), - 'Grace Hopper Edit in the IDE', - ); - assert.equal(git(f.source, 'rev-parse', 'main'), target); - // A later clone, for example of a recreated workspace, continues the published branch. - fs.rmSync(directory, { recursive: true }); - const again = await workspace.apply(f.delivery()); - await again.cloning; - assert.equal(git(again.directory, 'rev-parse', 'HEAD'), git(f.source, 'rev-parse', 'ide/work')); - assert.equal(git(again.directory, 'rev-parse', '--abbrev-ref', '@{upstream}'), 'origin/ide/work'); -}); - -test('an existing folder with the project’s name is never overwritten', async t => { - const f = fixture(t); - fs.mkdirSync(path.join(f.root, 'todo-app')); - fs.writeFileSync(path.join(f.root, 'todo-app', 'mine.txt'), 'keep\n'); - const workspace = createGitWorkspace(f.config); - const result = await workspace.apply(f.delivery()); - await result.cloning; - assert.equal(result.directory, path.join(f.root, 'todo-app-p1')); - assert.equal(fs.readFileSync(path.join(f.root, 'todo-app', 'mine.txt'), 'utf8'), 'keep\n'); - fs.mkdirSync(path.join(f.root, 'other')); - fs.rmSync(result.directory, { recursive: true }); - fs.mkdirSync(result.directory); - assert.deepEqual(await workspace.apply(f.delivery()), { status: 'conflict' }); -}); - -test('deliveries for another repository or with unexpected content are refused', async t => { - const f = fixture(t); - const workspace = createGitWorkspace(f.config); - for (const payload of [ - f.delivery({ repositoryUrl: 'https://git.example/git/tenant/other.git' }), - f.delivery({ branch: '../main' }), - f.delivery({ token: 'not a token' }), - f.delivery({ author: { name: 'Eve ', email: 'eve@example.com' } }), - { ...f.delivery(), command: 'rm -rf /' }, - ]) - await assert.rejects(workspace.apply(payload), { code: 'INVALID_GIT_CREDENTIAL' }); - assert.deepEqual(fs.readdirSync(f.root), []); - - const shared = createGitWorkspace({ ...f.config, remote: undefined, origin: 'http://127.0.0.1:4504' }); - await assert.rejects( - shared.apply(f.delivery({ repositoryUrl: 'http://127.0.0.1:4504/git/demo/p2.git' })), - { code: 'INVALID_GIT_CREDENTIAL' }, - 'the repository must belong to the delivered project', - ); - await assert.rejects(shared.apply(f.delivery({ repositoryUrl: 'http://127.0.0.1:9999/git/demo/p1.git' })), { - code: 'INVALID_GIT_CREDENTIAL', - }); -}); - -test('the endpoint is only configured for a workspace with Git settings', () => { - assert.equal(readGitWorkspaceConfig({ WISHFORGE_WORKSPACE_PATH: '/w' }), undefined); - assert.deepEqual( - readGitWorkspaceConfig({ - WISHFORGE_WORKSPACE_PATH: '/w', - WISHFORGE_GIT_CREDENTIAL_DIR: '/run/wishforge/git', - WISHFORGE_GIT_REMOTE: 'https://git.example/git/t/p1.git', - }), - { root: '/w', credentialDir: '/run/wishforge/git', remote: 'https://git.example/git/t/p1.git' }, - ); - const { GitCredentialEndpoint } = require('../git-credential-endpoint.cjs'); - const routes = []; - const app = { post: (...args) => routes.push(args) }; - const keys = [ - 'WISHFORGE_WORKSPACE_PATH', - 'WISHFORGE_GIT_CREDENTIAL_DIR', - 'WISHFORGE_GIT_REMOTE', - 'WISHFORGE_GIT_ORIGIN', - ]; - const previous = Object.fromEntries(keys.map(key => [key, process.env[key]])); - try { - delete process.env.WISHFORGE_GIT_REMOTE; - delete process.env.WISHFORGE_GIT_ORIGIN; - new GitCredentialEndpoint().configure(app); - assert.equal(routes.length, 0); - Object.assign(process.env, { - WISHFORGE_WORKSPACE_PATH: '/w', - WISHFORGE_GIT_CREDENTIAL_DIR: '/run/wishforge/git', - WISHFORGE_GIT_ORIGIN: 'http://127.0.0.1:4504', - }); - const endpoint = new GitCredentialEndpoint(); - let validated = false; - endpoint.connectionValidator = { validateRequest: () => (validated = true) }; - endpoint.configure(app); - assert.equal(routes.length, 1); - assert.equal(routes[0][0], '/wishforge-internal/git-credential'); - routes[0][1]({}, {}, () => {}); - assert.equal(validated, true, 'Theia’s connection token is checked first'); - } finally { - for (const key of keys) - if (previous[key] === undefined) delete process.env[key]; - else process.env[key] = previous[key]; - } -}); diff --git a/apps/ide/policy/test/plugin-install-policy.test.cjs b/apps/ide/policy/test/plugin-install-policy.test.cjs deleted file mode 100644 index a1b6ca8..0000000 --- a/apps/ide/policy/test/plugin-install-policy.test.cjs +++ /dev/null @@ -1,91 +0,0 @@ -'use strict'; -require('reflect-metadata'); -const test = require('node:test'); -const assert = require('node:assert/strict'); -const fs = require('node:fs'); -const os = require('node:os'); -const path = require('node:path'); -const { treeDigest, validateManagedPlugins } = require('../managed-plugins.cjs'); -const { ManagedPluginServer, ManagedPluginDeployer } = require('../plugin-install-policy.cjs'); - -function fixture(t) { - const root = fs.mkdtempSync(path.join(os.tmpdir(), 'wishforge-managed-plugins-')); - t.after(() => fs.rmSync(root, { recursive: true, force: true })); - const directory = path.join(root, 'test.approved'); - fs.mkdirSync(path.join(directory, 'extension'), { recursive: true }); - fs.writeFileSync( - path.join(directory, 'extension/package.json'), - JSON.stringify({ publisher: 'test', name: 'approved', version: '1.0.0' }), - ); - fs.writeFileSync(path.join(directory, 'extension/main.js'), 'exports.activate = () => {};\n'); - const catalog = { - plugins: [{ directory: 'test.approved', id: 'test.approved', version: '1.0.0', sha256: treeDigest(directory) }], - }; - return { root, directory, options: { catalog, pythonLock: null } }; -} - -test('approved ID/version/content loads while unrelated hidden cache is ignored', t => { - const f = fixture(t); - fs.mkdirSync(path.join(f.root, '.downloads')); - assert.equal(validateManagedPlugins(f.root, f.options).length, 1); -}); -test('same ID and version with changed implementation fails digest validation', t => { - const f = fixture(t); - fs.appendFileSync(path.join(f.directory, 'extension/main.js'), 'malicious();'); - assert.throws(() => validateManagedPlugins(f.root, f.options), /DIGEST_REJECTED/); -}); -test('changed version and additional plugin are refused', t => { - const f = fixture(t); - fs.writeFileSync( - path.join(f.directory, 'extension/package.json'), - JSON.stringify({ publisher: 'test', name: 'approved', version: '2.0.0' }), - ); - assert.throws(() => validateManagedPlugins(f.root, f.options), /ID_VERSION_REJECTED/); - fs.mkdirSync(path.join(f.root, 'unapproved.plugin')); - assert.throws(() => validateManagedPlugins(f.root, f.options), /ALLOWLIST_MISMATCH/); -}); -test('symlinks cannot substitute plugin code or plugin directories', t => { - const f = fixture(t); - fs.symlinkSync('/tmp', path.join(f.directory, 'escape')); - assert.throws(() => validateManagedPlugins(f.root, f.options), /SYMLINK_REJECTED/); -}); -test('actual Theia PluginServer install routes reject registry, VSIX, update and forged system type before calling deployer', async () => { - const server = new ManagedPluginServer(); - server.pluginDeployer = new Proxy( - {}, - { - get() { - throw new Error('Unsafe deployer reached'); - }, - }, - ); - for (const id of [ - 'vscode:untrusted.extension', - 'file:///tmp/plugin.vsix', - 'https://example.invalid/plugin.vsix', - 'vscode:ms-python.debugpy@2026.6.0', - ]) { - await assert.rejects(server.install(id, 0, { ignoreDependencies: true }), /EXTENSIONS_MANAGED_BY_ADMIN/); - } - for (const method of ['doInstall', 'uninstall', 'enablePlugin', 'disablePlugin']) - await assert.rejects(server[method]('test.approved'), /EXTENSIONS_MANAGED_BY_ADMIN/); -}); -test('direct deployer mutation paths and bulk/update paths are closed', async () => { - const deployer = new ManagedPluginDeployer(); - for (const method of [ - 'deploy', - 'deployMultipleEntries', - 'deployPlugins', - 'uninstall', - 'undeploy', - 'enablePlugin', - 'disablePlugin', - ]) { - await assert.rejects(deployer[method]({ id: 'local-dir:/tmp/evil', type: 0 }), /EXTENSIONS_MANAGED_BY_ADMIN/); - } -}); -test('installed plugin reads still reach the normal Theia implementation', async () => { - const server = new ManagedPluginServer(); - server.pluginDeployerHandler = { getDeployedPluginIds: () => ['test.approved@1.0.0'] }; - assert.deepEqual(await server.getInstalledPlugins(), ['test.approved@1.0.0']); -}); diff --git a/apps/ide/scripts/catalog-builtin-plugins.mjs b/apps/ide/scripts/catalog-builtin-plugins.mjs deleted file mode 100644 index e50d233..0000000 --- a/apps/ide/scripts/catalog-builtin-plugins.mjs +++ /dev/null @@ -1,43 +0,0 @@ -// Operator-only lockfile maintenance. Input must be the exact official release -// archive; this never signs or approves an arbitrary installed runtime directory. -import { execFileSync } from 'node:child_process'; -import { createHash } from 'node:crypto'; -import { readFile } from 'node:fs/promises'; -const source = { - url: 'https://github.com/eclipse-theia/vscode-builtin-extensions/releases/download/1.108.2/vscode-builtin-extensions-1.108.2.tar.gz', - sha256: '05a20cf3e671c8d328b04d9ce72b25688b0e762e4a3f5592f31a21ee38280367', -}; -if (process.argv.length !== 3) - throw new Error('Usage: node scripts/catalog-builtin-plugins.mjs /path/to/vscode-builtin-extensions-1.108.2.tar.gz'); -const archive = process.argv[2]; -if ( - createHash('sha256') - .update(await readFile(archive)) - .digest('hex') !== source.sha256 -) - throw new Error('BUILTIN_ARCHIVE_DIGEST_REJECTED'); -const plugins = JSON.parse( - execFileSync( - 'python3', - [ - '-c', - ` -import hashlib,io,json,pathlib,sys,tarfile,zipfile -plugins=[] -with tarfile.open(sys.argv[1],'r:gz') as tar: - for item in tar.getmembers(): - if item.isdir(): continue - if not item.isfile() or not item.name.endswith('.vsix'): raise ValueError('Unexpected release entry') - with zipfile.ZipFile(io.BytesIO(tar.extractfile(item).read())) as z: - manifest=json.loads(z.read('extension/package.json')) - files=sorted((i.filename,hashlib.sha256(z.read(i)).hexdigest()) for i in z.infolist() if not i.is_dir()) - digest=hashlib.sha256(''.join(name+'\\0'+sha+'\\n' for name,sha in files).encode()).hexdigest() - plugins.append({'directory':pathlib.PurePosixPath(item.name).stem,'id':manifest['publisher']+'.'+manifest['name'],'version':manifest['version'],'sha256':digest}) -print(json.dumps(sorted(plugins,key=lambda p:p['directory']))) -`, - archive, - ], - { encoding: 'utf8', maxBuffer: 4 * 1024 * 1024 }, - ), -); -console.log(JSON.stringify({ schemaVersion: 1, source, plugins }, null, 2)); diff --git a/apps/ide/scripts/download-python-debugger.mjs b/apps/ide/scripts/download-python-debugger.mjs deleted file mode 100644 index eb2ecee..0000000 --- a/apps/ide/scripts/download-python-debugger.mjs +++ /dev/null @@ -1,180 +0,0 @@ -import { createHash, randomUUID } from 'node:crypto'; -import { execFile } from 'node:child_process'; -import { readFile, writeFile, mkdir, rename, rm, stat } from 'node:fs/promises'; -import { dirname, join } from 'node:path'; -import { fileURLToPath, pathToFileURL } from 'node:url'; -import { promisify } from 'node:util'; - -const lock = JSON.parse(await readFile(new URL('./python-debugger.lock.json', import.meta.url), 'utf8')); -const maxBytes = 64 * 1024 * 1024; -const sha256 = bytes => createHash('sha256').update(bytes).digest('hex'); -const run = promisify(execFile); - -export async function installPythonDebugger({ - platform = `${process.platform}-${process.arch}`, - archive, - pythonArchive, - pyrightArchive, - directory = fileURLToPath(new URL('../plugins/', import.meta.url)), - fetcher = fetch, -} = {}) { - const expected = lock.platforms[platform]; - if (!expected) throw new Error(`Python debugger package is not pinned for ${platform}`); - const filename = `${lock.id}-${lock.version}@${platform}.vsix`; - const dependency = lock.pythonDependency; - const python = await installArchive({ - expected: dependency.sha256, - filename: `${dependency.id}-${dependency.version}.vsix`, - id: dependency.id, - version: dependency.version, - url: dependency.url, - archive: pythonArchive, - directory, - fetcher, - }); - const debuggerExtension = await installArchive({ - expected, - filename, - archive, - directory, - fetcher, - id: lock.id, - version: lock.version, - url: `https://open-vsx.org/api/ms-python/debugpy/${platform}/${lock.version}/file/${filename}`, - }); - const languageServer = await installArchive({ - expected: lock.languageServer.sha256, - filename: `${lock.languageServer.id}-${lock.languageServer.version}.vsix`, - id: lock.languageServer.id, - version: lock.languageServer.version, - url: lock.languageServer.url, - archive: pyrightArchive, - directory, - fetcher, - }); - return { version: lock.version, platform, python, debugger: debuggerExtension, languageServer }; -} - -async function installArchive({ expected, filename, url, archive, directory, fetcher, id, version }) { - const target = join(directory, '.downloads', filename); - let bytes; - let cached = false; - if (!archive) { - try { - bytes = await readFile(target); - if (sha256(bytes) !== expected) throw new Error(`Cached Python debugger checksum mismatch: ${target}`); - cached = true; - } catch (error) { - if (error.code !== 'ENOENT') throw error; - } - } - if (archive) { - if ((await stat(archive)).size > maxBytes) throw new Error('Python debugger archive exceeds 64 MiB'); - bytes = await readFile(archive); - } else if (!cached) { - const response = await fetcher(url, { signal: AbortSignal.timeout(120_000) }); - if (!response.ok || !response.body) throw new Error(`Python debugger download failed: HTTP ${response.status}`); - if (Number(response.headers.get('content-length')) > maxBytes) - throw new Error('Python debugger archive exceeds 64 MiB'); - const chunks = []; - let size = 0; - for await (const chunk of response.body) { - size += chunk.length; - if (size > maxBytes) throw new Error('Python debugger archive exceeds 64 MiB'); - chunks.push(chunk); - } - bytes = Buffer.concat(chunks); - } - if (sha256(bytes) !== expected) throw new Error('Python debugger checksum mismatch; nothing was installed'); - await mkdir(dirname(target), { recursive: true }); - const temporary = `${target}.${randomUUID()}.partial`; - try { - await writeFile(temporary, bytes, { flag: 'wx', mode: 0o644 }); - await rename(temporary, target); - } finally { - await rm(temporary, { force: true }); - } - // Theia's local-dir resolver requires unpacked system plugins. Keep VSIX files - // in its explicitly ignored dot-directory and verify before every extraction. - const unpacked = join(directory, `.${id}-${randomUUID()}`); - const plugin = join(directory, id); - const previous = `${unpacked}-previous`; - let moved = false; - try { - await run( - 'python3', - [ - '-c', - ` -import json,os,pathlib,stat,sys,zipfile -archive,target,expected_id,expected_version=sys.argv[1:] -with zipfile.ZipFile(archive) as z: - entries=z.infolist() - if len(entries)>100000 or sum(i.file_size for i in entries)>268435456: raise ValueError('Plugin extraction size limit') - for item in entries: - p=pathlib.PurePosixPath(item.filename) - if p.is_absolute() or '..' in p.parts or '\\\\' in item.filename or stat.S_ISLNK(item.external_attr>>16): raise ValueError('Unsafe plugin archive path') - manifest=json.loads(z.read('extension/package.json')) - if manifest.get('publisher')+'.'+manifest.get('name')!=expected_id or manifest.get('version')!=expected_version: raise ValueError('Plugin identity mismatch') - z.extractall(target) - for item in entries: - if not item.is_dir(): os.chmod(pathlib.Path(target)/item.filename, 0o755 if (item.external_attr>>16)&0o111 else 0o644) -`, - target, - unpacked, - id, - version, - ], - { timeout: 30_000 }, - ); - try { - await rename(plugin, previous); - moved = true; - } catch (error) { - if (error.code !== 'ENOENT') throw error; - } - try { - await rename(unpacked, plugin); - } catch (error) { - if (moved) await rename(previous, plugin); - throw error; - } - await rm(previous, { recursive: true, force: true }); - } finally { - await rm(unpacked, { recursive: true, force: true }); - } - return { target: plugin, archive: target, sha256: expected, cached }; -} - -if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) { - const args = process.argv.slice(2); - const flags = new Map(); - for (let index = 0; index < args.length; index += 2) flags.set(args[index], args[index + 1]); - if ( - args.length % 2 || - [...flags].some( - ([key, value]) => !['--archive', '--python-archive', '--pyright-archive'].includes(key) || !value, - ) || - flags.size * 2 !== args.length - ) { - console.error( - 'Usage: node scripts/download-python-debugger.mjs [--archive /path/to/debugpy.vsix] [--python-archive /path/to/python.vsix] [--pyright-archive /path/to/pyright.vsix]', - ); - process.exitCode = 1; - } else { - try { - console.log( - JSON.stringify( - await installPythonDebugger({ - archive: flags.get('--archive'), - pythonArchive: flags.get('--python-archive'), - pyrightArchive: flags.get('--pyright-archive'), - }), - ), - ); - } catch (error) { - console.error(error.message); - process.exitCode = 1; - } - } -} diff --git a/apps/ide/scripts/python-debugger.lock.json b/apps/ide/scripts/python-debugger.lock.json deleted file mode 100644 index 59cdba8..0000000 --- a/apps/ide/scripts/python-debugger.lock.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "id": "ms-python.debugpy", - "version": "2026.6.0", - "vscodeEngine": "^1.92.0", - "source": "https://open-vsx.org/extension/ms-python/debugpy/2026.6.0", - "pythonDependency": { - "id": "ms-python.python", - "version": "2026.4.0", - "vscodeEngine": "^1.95.0", - "url": "https://open-vsx.org/api/ms-python/python/2026.4.0/file/ms-python.python-2026.4.0.vsix", - "sha256": "232aeafb01f069824fdd92d3e628c1c442bbcfa1d3cc945ff97076340bb2b4a6" - }, - "languageServer": { - "id": "ms-pyright.pyright", - "version": "1.1.402", - "vscodeEngine": "^1.99.0", - "url": "https://open-vsx.org/api/ms-pyright/pyright/1.1.402/file/ms-pyright.pyright-1.1.402.vsix", - "sha256": "7ffa5a8649fa800b282c25ad70ce290367e036238d52727da7cdcac3d57439e9" - }, - "platforms": { - "darwin-arm64": "3425b5251b0f0642b569e64397effe72ab141d138abd966b567041baa5609b4b", - "darwin-x64": "7a87aeba6a4dc1f46cfb8e6d457e53256c80b5be75a1781d51d3e0ad5dbb1574", - "linux-x64": "c7744af4bf72978f5792624a71c80e2b622a1118574fada3a903d70ac03d5bca", - "linux-arm64": "4e7aa92b0459c1010ee010a79b35ecc16328b943a84589bd9e8ead3d4eb0010b" - } -} diff --git a/apps/ide/scripts/start.mjs b/apps/ide/scripts/start.mjs deleted file mode 100644 index 5074659..0000000 --- a/apps/ide/scripts/start.mjs +++ /dev/null @@ -1,51 +0,0 @@ -import { spawn } from 'node:child_process'; -import { fileURLToPath } from 'node:url'; -import { existsSync, mkdirSync } from 'node:fs'; - -const appRoot = fileURLToPath(new URL('../', import.meta.url)); -const cli = fileURLToPath(new URL('../node_modules/@theia/cli/bin/theia.js', import.meta.url)); -const production = process.env.NODE_ENV === 'production'; -if (!existsSync(cli) || !existsSync(`${appRoot}lib/frontend/index.html`)) { - // Theia releases may emit frontend assets under lib; use backend generation - // as the authoritative build prerequisite below. - if (!existsSync(`${appRoot}src-gen/backend/main.js`)) { - console.error('Install and build this independent package first: npm install && npm run build'); - process.exit(1); - } -} -if (production && process.env.WISHFORGE_GATEWAY_ENFORCED !== 'true') { - console.error('Production requires an authenticated workspace gateway. See README.md.'); - process.exit(1); -} -const port = process.env.WISHFORGE_IDE_PORT ?? '4300'; -if (!/^\d+$/.test(port) || Number(port) < 1 || Number(port) > 65535) throw new Error('Invalid WISHFORGE_IDE_PORT'); -const hostname = process.env.WISHFORGE_IDE_HOST ?? '127.0.0.1'; -const workspace = process.env.WISHFORGE_WORKSPACE_PATH ?? `${appRoot}workspace`; -if (!process.env.WISHFORGE_WORKSPACE_PATH) mkdirSync(workspace, { recursive: true }); -if (!existsSync(workspace)) throw new Error('Configured workspace path does not exist'); -const child = spawn( - process.execPath, - [cli, 'start', workspace, '--hostname', hostname, '--port', port, '--plugins', `local-dir:${appRoot}plugins`], - { - cwd: appRoot, - detached: process.platform !== 'win32', - stdio: 'inherit', - env: { - ...process.env, - PYTHONDONTWRITEBYTECODE: '1', - WF_IDE_MANAGED_PLUGINS_DIR: `${appRoot}plugins`, - // No public/default OCT fallback while project-bound room admission is absent. - COLLABORATION_SERVER_URL: process.env.WF_COLLABORATION_GATEWAY_URL ?? 'https://collaboration-disabled.invalid/', - }, - }, -); -for (const signal of ['SIGINT', 'SIGTERM']) - process.on(signal, () => { - try { - if (process.platform !== 'win32' && child.pid) process.kill(-child.pid, signal); - else child.kill(signal); - } catch { - child.kill(signal); - } - }); -child.on('exit', code => process.exit(code ?? 1)); diff --git a/apps/ide/scripts/verify-managed-plugins.mjs b/apps/ide/scripts/verify-managed-plugins.mjs deleted file mode 100644 index e4158d0..0000000 --- a/apps/ide/scripts/verify-managed-plugins.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import { createRequire } from 'node:module'; -import { fileURLToPath } from 'node:url'; -const { validateManagedPlugins } = createRequire(import.meta.url)('../policy/managed-plugins.cjs'); -const plugins = validateManagedPlugins(fileURLToPath(new URL('../plugins', import.meta.url))); -console.log(`Verified ${plugins.length} operator-managed extensions against pinned IDs, versions and content digests.`); diff --git a/apps/provisioner/README.md b/apps/provisioner/README.md index dc175b5..93be6bd 100644 --- a/apps/provisioner/README.md +++ b/apps/provisioner/README.md @@ -1,11 +1,11 @@ # Provisioner -为每个运行代次创建执行环境(一个 executor、一个 verifier),并为云 IDE 创建工作区。控制面的派发器通过 HTTP 调用它;它本身不访问数据库,也不持有令牌签名密钥。 +为每个运行代次创建执行环境(一个 executor、一个 verifier)。控制面的派发器通过 HTTP 调用它;它本身不访问数据库,也不持有令牌签名密钥。 | 后端 | `WF_PROVISIONER_BACKEND` | 用途 | |---|---|---| -| `local` | `local` | 本地开发。为每个代次在本机启动两个 worker 进程(`WF_SANDBOX_MODE=host`),**没有隔离**;只在 `WF_DEPLOYMENT_MODE=development` 下启动。所有工作区指向同一个本机 Theia。 | -| `kubernetes` | `kubernetes` | 生产。用 `kubectl --context … --namespace …` 创建 Kata Job、PVC、Secret、ServiceAccount 与 NetworkPolicy,IDE 工作区为独立的 Deployment。 | +| `local` | `local` | 本地开发。为每个代次在本机启动两个 worker 进程(`WF_SANDBOX_MODE=host`),**没有隔离**;只在 `WF_DEPLOYMENT_MODE=development` 下启动。 | +| `kubernetes` | `kubernetes` | 生产。用 `kubectl --context … --namespace …` 创建 Kata Job、PVC、Secret、ServiceAccount 与 NetworkPolicy。 | ## 接口 @@ -16,8 +16,6 @@ | `POST /runs` | `{tenantId, runId, generation, executorToken, verifierToken, resourceGrant}` | 为该代次启动 executor 与 verifier。同一代次重复请求不会重复启动。返回 `{status: "provisioned", …}`。 | | `POST /runs/release` | `{tenantId, runId, generation, resourceGrant}` | 停止该代次的计算资源。返回 `{status: "released", computeReleased, persistentStorageRetained}`,控制面收到后才归还并发名额。 | | `POST /runs/purge` | 同上(使用最近一个代次的授权,允许过期) | 删除该运行所有代次保留的卷(本地后端删除运行目录)。运行仍有活动的 Pod 或进程时返回 `{status: "busy"}`,否则返回 `{status: "purged", persistentStorageRetained: false}`。控制面在保留期过后调用。 | -| `POST /workspaces` | `{tenantId, projectId, workspaceId}` | 创建或返回工作区,`{status: "ready" \| "pending", upstreamUrl}`;`local` 后端另返回 `lifecycle: "unmanaged"`(不支持暂停/恢复)。 | -| `GET/PUT /workspaces/:id/lifecycle` | — | 仅 `kubernetes` 后端:观察与调整工作区的暂停/运行状态。 | | `GET /healthz` | — | `{status: "ok", service: "wishforge-provisioner", backend}` | 资源授权(`resourceGrant`)由 API 用 `WF_RESOURCE_GRANT_SECRET` 做 HMAC 签名,绑定租户、运行、代次、套餐、CPU/内存/存储与运行镜像,有效期 5 分钟。两个后端都校验签名、租户与有效期;`kubernetes` 后端还要求镜像在当前或上一版的允许列表内,并按授权限制资源(两个角色各一半)。 @@ -35,7 +33,6 @@ executor 与 verifier 各自只拿到自己的运行级令牌(由 API 签发 | `WF_TENANT_ID` | 本服务的唯一租户(本地为 `demo`) | | `WF_RESOURCE_GRANT_SECRET` | 与 API 共享的资源授权签名密钥 | | `WF_LOCAL_RUN_ROOT` | 运行目录,默认 `~/.local/share/wishforge/runs`,必须位于 WishForge 源码目录之外;每个代次为 `<租户>/<运行>/<代次>/{executor,verifier}` | -| `WF_LOCAL_IDE_URL` | 本机 Theia 地址(`npm run dev:ide` 启动在 `http://127.0.0.1:4300/`);能访问时工作区才变为 ready | | `WF_CONTROL_PLANE_URL`、`TEMPORAL_ADDRESS`、`TEMPORAL_NAMESPACE` | 传给 worker 进程 | worker 进程只继承 `PATH`、`HOME`、`LANG`、`TMPDIR`、代理变量、`WF_GIT_ALLOW_LOCAL_HTTP`、`WF_CODEBUDDY_BIN`、`WF_CLAUDE_BIN`、`WF_DOCKER_CONFIG` 与 Temporal 的 TLS 设置,拿不到数据库、签名密钥等其他配置。代次结束后进程被停止,目录保留在磁盘上便于排查,保留期过后由控制面清理(同 `POST /runs/purge`)。provisioner 重启时会停止它启动的进程;仍在进行的运行会在 5 分钟后进入 `worker_unavailable` 等待,点击「继续」即可用新的代次重新执行。 @@ -51,7 +48,7 @@ worker 进程只继承 `PATH`、`HOME`、`LANG`、`TMPDIR`、代理变量、`WF_ | `WF_RUN_WORKER_IMAGE` | worker 镜像,必须是 `仓库/镜像@sha256:…` | | `WF_RUN_PREVIOUS_IMAGES` | 可选,仍允许运行的上一版镜像(逗号分隔) | | `WF_RUN_STORAGE_CLASS` | PVC 存储类 | -| `WF_RUN_STORAGE_SIZE` | 单个运行的存储上限(两个角色各一半)与 IDE 工作区卷的大小,默认 `10Gi` | +| `WF_RUN_STORAGE_SIZE` | 单个运行的存储上限(两个角色各一半),默认 `10Gi` | | `WF_CONTROL_PLANE_URL` | API 的 HTTPS 地址 | | `WF_CONTROL_NAMESPACE` | 控制面命名空间(网络策略放行其中的 API、Temporal 与平台 Git) | | `WF_GIT_SERVICE_PORT` | 平台 Git 服务端口,默认 4504 | @@ -63,21 +60,9 @@ worker 进程只继承 `PATH`、`HOME`、`LANG`、`TMPDIR`、代理变量、`WF_ | `WF_VERIFIER_DOCKER_CONFIG_SECRET` | 可选,仅 verifier 挂载的镜像仓库凭据(`DOCKER_CONFIG`) | | `WF_VERIFIER_DOCKER_HOST`、`WF_VERIFIER_DOCKER_TLS_SECRET`、`WF_VERIFIER_BUILDER_NAMESPACE` | 可选,远程构建器(`tcp://主机:端口`,Pod 标签 `wishforge.io/component: image-builder`)及其 TLS 客户端证书(`ca.pem`、`cert.pem`、`key.pem`,生产必填)和所在命名空间(默认控制面命名空间);只有 verifier 能连到它 | | `WF_RUN_INSTALL_PROXY_URL`、`WF_RUN_INSTALL_PROXY_NAMESPACE` | 可选,依赖安装使用的出站代理(`http(s)://主机:端口`,Pod 标签 `wishforge.io/component: egress-proxy`)及其命名空间(默认控制面命名空间) | -| `WF_THEIA_IMAGE` | IDE 工作区镜像(`apps/ide/Dockerfile` 默认目标),必须是 digest 引用 | -| `WF_OCT_WORKSPACE_IMAGE`、`WF_IDE_PUBLIC_URL` | 可选,协作 sidecar 镜像(digest)与网关的公开 HTTPS 源站(与网关的 `WF_IDE_PUBLIC_URL` 相同);`WF_OCT_WORKSPACE_IMAGE` 配置后工作区启用协作。本地开发集群(`WF_ALLOW_INSECURE_HTTP=true`)中网关地址与工作区的平台 Git 地址可以是 HTTP | 每个代次创建:两个 RWO PVC、两个能力 Secret(各含一个角色的令牌)、两个不挂载令牌的 ServiceAccount、两个 Kata Job(`backoffLimit: 0`,非 root,只读根文件系统,丢弃全部 capability)以及一条 NetworkPolicy。新代次开始前只删除同一运行的旧 Job。`POST /runs/release` 删除属于该代次标签的 Job,Pod 全部结束后再删除该代次的 Secret、ServiceAccount 与 NetworkPolicy。PVC 保留用于排查,保留期过后由控制面通过 `POST /runs/purge` 按运行标签删除。 -每个 IDE 工作区创建一个 PVC、一个 Kata Deployment(Theia,可选 OCT sidecar)、一个 Service 与一条 NetworkPolicy(只允许控制面中 `wishforge.io/component: workspace-gateway` 的 Pod 访问 3000/8100 端口,出站只有 DNS)。所需的 RBAC 与命名空间基线见 [infra/k8s](../../infra/k8s/README.md)。 - -请求带 `repositoryUrl`(API 只为平台托管仓库发送,地址必须是 HTTPS 的 `/git/<租户>/<项目>.git`)时: - -- Theia 收到 `WISHFORGE_GIT_REMOTE`,只接受这个仓库的凭据; -- 内存卷挂载为 `WISHFORGE_GIT_CREDENTIAL_DIR`(`/run/wishforge/git`),令牌只存在这里; -- 网络策略额外放行控制面中 `wishforge.io/component: git-storage` 的 Pod(`WF_GIT_SERVICE_PORT`)。 - -克隆与凭据的投递见 [apps/ide/README.md](../ide/README.md)。 - 网络策略只放行 DNS、控制面 API(含模型代理)、Temporal 与平台 Git 服务(`WF_GIT_SERVICE_PORT`,默认 4504,Pod 标签 `wishforge.io/component: git-storage`)。配置了出站代理与构建器时,再分别放行它们:代理给两个角色,构建器只给 verifier(单独的 `<前缀>-builder` 策略,释放时一并删除)。代理与构建器本身由运维提供(见 [operations.md](../../docs/operations.md))。 ## 测试 diff --git a/apps/provisioner/local.mjs b/apps/provisioner/local.mjs index 17539b2..42e5d5e 100644 --- a/apps/provisioner/local.mjs +++ b/apps/provisioner/local.mjs @@ -71,7 +71,6 @@ export function readLocalConfig(env = process.env, cwd = process.cwd()) { runRoot: path.resolve(cwd, env.WF_LOCAL_RUN_ROOT ?? path.join(homedir(), '.local/share/wishforge/runs')), cwd, workerEntry: path.resolve(cwd, env.WF_LOCAL_WORKER_ENTRY ?? 'apps/worker/src/main.ts'), - ideUrl: env.WF_LOCAL_IDE_URL, claudeAuthHome: env.WF_CLAUDE_LOCAL_AUTH_HOME, passthrough: Object.fromEntries(PASSTHROUGH.filter(name => env[name]).map(name => [name, env[name]])), // Grants are verified like in production, but the host has no image and no fixed caps. @@ -95,11 +94,6 @@ export function readLocalConfig(env = process.env, cwd = process.cwd()) { throw new Error('WF_CLAUDE_LOCAL_AUTH_HOME must be an absolute path'); if (config.resourceGrantSecret.length < 32) throw new Error('WF_RESOURCE_GRANT_SECRET must be at least 32 characters'); - if (config.ideUrl) { - const url = new URL(config.ideUrl); - if (!['http:', 'https:'].includes(url.protocol) || url.username || url.password) - throw new Error('WF_LOCAL_IDE_URL must be an HTTP(S) URL without credentials'); - } return config; } @@ -127,10 +121,7 @@ function stopProcess(child, timeoutMs = 10_000) { }); } -export function createLocalBackend( - config, - { spawnProcess = spawn, log = line => console.log(line), fetcher = fetch } = {}, -) { +export function createLocalBackend(config, { spawnProcess = spawn, log = line => console.log(line) } = {}) { /** Live worker processes per tenant, run and generation. */ const generations = new Map(); return { @@ -234,24 +225,6 @@ export function createLocalBackend( persistentStorageRetained: true, }; }, - /** Every workspace opens the one local Theia, once it answers; its lifecycle is not managed. */ - async provisionWorkspace(input) { - if ( - !input || - // The one local Theia is told the Git service origin instead (scripts/dev-ide.mjs). - Object.keys(input).some(key => !['tenantId', 'projectId', 'workspaceId', 'repositoryUrl'].includes(key)) || - input.tenantId !== config.tenantId || - !id.test(input.projectId ?? '') || - !id.test(input.workspaceId ?? '') - ) - throw new Error('INVALID_WORKSPACE_REQUEST'); - if (!config.ideUrl) return { status: 'pending', upstreamUrl: '', lifecycle: 'unmanaged' }; - const reachable = await fetcher(config.ideUrl, { signal: AbortSignal.timeout(2000) }).then( - response => response.status < 500, - () => false, - ); - return { status: reachable ? 'ready' : 'pending', upstreamUrl: config.ideUrl, lifecycle: 'unmanaged' }; - }, async close() { await Promise.all([...generations.values()].flat().map(child => stopProcess(child, 3000))); generations.clear(); diff --git a/apps/provisioner/main.mjs b/apps/provisioner/main.mjs index 8d5ba44..e64fab4 100644 --- a/apps/provisioner/main.mjs +++ b/apps/provisioner/main.mjs @@ -1,13 +1,11 @@ import http from 'node:http'; import { timingSafeEqual } from 'node:crypto'; import { readConfig, provisionRun } from './kubernetes.mjs'; -import { provisionWorkspace } from './workspaces.mjs'; import { purgeRunStorage, releaseRun } from './run-release.mjs'; -import { observeWorkspaceLifecycle, reconcileWorkspaceLifecycle } from './workspace-lifecycle.mjs'; import { createRunOperationQueue } from './run-operations.mjs'; import { createLocalBackend, readLocalConfig } from './local.mjs'; -/** `local` runs workers as host processes for development; `kubernetes` creates Kata Jobs and IDE Deployments. */ +/** `local` runs workers as host processes for development; `kubernetes` creates Kata Jobs. */ function backendFor(name) { if (name === 'local') return createLocalBackend(readLocalConfig()); if (name === 'kubernetes') { @@ -17,9 +15,6 @@ function backendFor(name) { provisionRun: input => provisionRun(config, input), releaseRun: input => releaseRun(config, input), purgeRun: input => purgeRunStorage(config, input), - provisionWorkspace: input => provisionWorkspace(config, input), - observeWorkspace: input => observeWorkspaceLifecycle(config, input), - reconcileWorkspace: input => reconcileWorkspaceLifecycle(config, input), async close() {}, }; } @@ -60,40 +55,19 @@ const server = http.createServer(async (req, res) => { res.end(JSON.stringify({ error: 'UNAUTHORIZED' })); return; } - const target = new URL(req.url, 'http://provisioner.local'); - const lifecycle = /^\/workspaces\/([a-zA-Z0-9_-]{1,128})\/lifecycle$/.exec(target.pathname); - if (lifecycle && backend.observeWorkspace && req.method === 'GET') { - const input = { - tenantId: target.searchParams.get('tenantId'), - projectId: target.searchParams.get('projectId'), - workspaceId: lifecycle[1], - }; - res.end(JSON.stringify(await backend.observeWorkspace(input))); - return; - } - if (lifecycle && backend.reconcileWorkspace && req.method === 'PUT') { - const input = await body(req, 4000); - if (input.workspaceId !== lifecycle[1]) throw new Error('INVALID_WORKSPACE_SCOPE'); - res.writeHead(202); - res.end(JSON.stringify(await backend.reconcileWorkspace(input))); - return; - } - if (!['/runs', '/runs/release', '/runs/purge', '/workspaces'].includes(req.url) || req.method !== 'POST') { + if (!['/runs', '/runs/release', '/runs/purge'].includes(req.url) || req.method !== 'POST') { res.writeHead(404); res.end(JSON.stringify({ error: 'NOT_FOUND' })); return; } const input = await body(req, 40000); - const result = - req.url === '/workspaces' - ? await backend.provisionWorkspace(input) - : await runOperation(input.tenantId, input.runId, () => - req.url === '/runs/release' - ? backend.releaseRun(input) - : req.url === '/runs/purge' - ? backend.purgeRun(input) - : backend.provisionRun(input), - ); + const result = await runOperation(input.tenantId, input.runId, () => + req.url === '/runs/release' + ? backend.releaseRun(input) + : req.url === '/runs/purge' + ? backend.purgeRun(input) + : backend.provisionRun(input), + ); res.writeHead(202); res.end(JSON.stringify(result)); } catch (error) { diff --git a/apps/provisioner/test/local.test.mjs b/apps/provisioner/test/local.test.mjs index 9cd70eb..0ed9c2b 100644 --- a/apps/provisioner/test/local.test.mjs +++ b/apps/provisioner/test/local.test.mjs @@ -244,21 +244,3 @@ test('rejects forged, foreign or malformed requests before starting anything', a await f.cleanup(); } }); - -test('points workspaces at the local Theia once it answers, without a managed lifecycle', async () => { - const f = await fixture({ WF_LOCAL_IDE_URL: 'http://127.0.0.1:4300/' }); - try { - const input = { tenantId: 'demo', projectId: 'project-1', workspaceId: 'workspace-1' }; - const down = createLocalBackend(f.config, { fetcher: async () => Promise.reject(new Error('ECONNREFUSED')) }); - assert.deepEqual(await down.provisionWorkspace(input), { - status: 'pending', - upstreamUrl: 'http://127.0.0.1:4300/', - lifecycle: 'unmanaged', - }); - const up = createLocalBackend(f.config, { fetcher: async () => new Response('ok') }); - assert.equal((await up.provisionWorkspace(input)).status, 'ready'); - await assert.rejects(up.provisionWorkspace({ ...input, tenantId: 'other' }), /INVALID_WORKSPACE_REQUEST/); - } finally { - await f.cleanup(); - } -}); diff --git a/apps/provisioner/test/workspace-lifecycle.test.mjs b/apps/provisioner/test/workspace-lifecycle.test.mjs deleted file mode 100644 index 19b6b70..0000000 --- a/apps/provisioner/test/workspace-lifecycle.test.mjs +++ /dev/null @@ -1,126 +0,0 @@ -import test from 'node:test'; -import assert from 'node:assert/strict'; -import { renderWorkspaceResources } from '../workspaces.mjs'; -import { observeWorkspaceLifecycle, reconcileWorkspaceLifecycle } from '../workspace-lifecycle.mjs'; -const config = { - tenantId: 'alpha', - namespace: 'wf-alpha', - context: 'fixture', - controlNamespace: 'wf-control', - runtimeClass: 'kata', - storageClass: 'fixture', - storageSize: '10Gi', -}; -const input = { tenantId: 'alpha', projectId: 'project', workspaceId: 'workspace' }; -function fixture() { - const rendered = renderWorkspaceResources(config, input, `registry.example/theia@sha256:${'a'.repeat(64)}`); - const d = rendered.resources.find(r => r.kind === 'Deployment'); - d.metadata.uid = 'immutable-uid'; - d.metadata.resourceVersion = '1'; - d.metadata.generation = 1; - d.status = { observedGeneration: 1, availableReplicas: 1, updatedReplicas: 1, replicas: 1 }; - let pods = []; - let lose = false; - const calls = []; - const execute = async (_config, args) => { - calls.push(args); - if (args[0] === 'get' && args[1] === 'pods') return { items: pods }; - if (args[0] === 'get') return structuredClone(d); - assert.equal(args[0], 'patch'); - assert.equal(args[1], 'deployment'); - assert.equal(args[2], rendered.name); - const patch = JSON.parse(args[args.indexOf('-p') + 1]); - assert.equal(patch[0].value, d.metadata.resourceVersion); - assert.equal(patch[1].value, d.metadata.uid); - d.metadata.annotations = patch[2].value; - d.spec.replicas = patch[3].value; - d.metadata.resourceVersion = String(Number(d.metadata.resourceVersion) + 1); - d.metadata.generation++; - if (lose) throw new Error('KUBERNETES_LIFECYCLE_UNKNOWN'); - return structuredClone(d); - }; - return { - d, - calls, - execute, - setPods: value => { - pods = value; - }, - lose: () => { - lose = true; - }, - converge: () => { - d.status = { - observedGeneration: d.metadata.generation, - replicas: d.spec.replicas, - availableReplicas: d.spec.replicas, - updatedReplicas: d.spec.replicas, - }; - }, - }; -} -test('pause only patches the owned IDE deployment, retains all PVCs, and waits for observed termination', async () => { - const f = fixture(); - const request = { ...input, revision: 1, desired: 'paused' }; - assert.equal((await reconcileWorkspaceLifecycle(config, request, { execute: f.execute })).status, 'pending'); - f.converge(); - f.setPods([{ status: { phase: 'Running' }, metadata: { deletionTimestamp: new Date().toISOString() } }]); - assert.equal((await observeWorkspaceLifecycle(config, input, { execute: f.execute })).status, 'pending'); - f.setPods([]); - assert.equal((await observeWorkspaceLifecycle(config, input, { execute: f.execute })).status, 'paused'); - assert.ok(f.calls.every(args => !args.includes('pvc') && !args.includes('delete') && !args.includes('service'))); -}); -test('resume does not claim ready until updated and available replica is observed', async () => { - const f = fixture(); - await reconcileWorkspaceLifecycle(config, { ...input, revision: 1, desired: 'paused' }, { execute: f.execute }); - f.converge(); - assert.equal( - (await reconcileWorkspaceLifecycle(config, { ...input, revision: 2, desired: 'running' }, { execute: f.execute })) - .status, - 'pending', - ); - f.converge(); - assert.equal((await observeWorkspaceLifecycle(config, input, { execute: f.execute })).status, 'ready'); -}); -test('lost mutation response reconciles by observation and does not send a duplicate patch', async () => { - const f = fixture(); - f.lose(); - const request = { ...input, revision: 1, desired: 'paused' }; - await assert.rejects(reconcileWorkspaceLifecycle(config, request, { execute: f.execute }), /UNKNOWN/); - f.converge(); - assert.equal((await reconcileWorkspaceLifecycle(config, request, { execute: f.execute })).status, 'paused'); - assert.equal(f.calls.filter(a => a[0] === 'patch').length, 1); -}); -test('tenant, namespace, managed labels and revision fencing reject without mutations', async () => { - const f = fixture(); - await assert.rejects( - reconcileWorkspaceLifecycle( - config, - { ...input, tenantId: 'other', revision: 1, desired: 'paused' }, - { execute: f.execute }, - ), - /SCOPE/, - ); - f.d.metadata.labels['wishforge.io/component'] = 'production-app'; - await assert.rejects( - reconcileWorkspaceLifecycle(config, { ...input, revision: 1, desired: 'paused' }, { execute: f.execute }), - /OWNERSHIP/, - ); - f.d.metadata.labels['wishforge.io/component'] = 'ide'; - f.d.metadata.namespace = 'production'; - await assert.rejects( - reconcileWorkspaceLifecycle(config, { ...input, revision: 1, desired: 'paused' }, { execute: f.execute }), - /OWNERSHIP/, - ); - f.d.metadata.namespace = config.namespace; - f.d.metadata.annotations = { 'wishforge.io/lifecycle-revision': '3', 'wishforge.io/lifecycle-desired': 'running' }; - await assert.rejects( - reconcileWorkspaceLifecycle(config, { ...input, revision: 2, desired: 'paused' }, { execute: f.execute }), - /STALE/, - ); - await assert.rejects( - reconcileWorkspaceLifecycle(config, { ...input, revision: 3, desired: 'paused' }, { execute: f.execute }), - /CONFLICT/, - ); - assert.equal(f.calls.filter(a => a[0] === 'patch').length, 0); -}); diff --git a/apps/provisioner/test/workspaces.test.mjs b/apps/provisioner/test/workspaces.test.mjs deleted file mode 100644 index b751a83..0000000 --- a/apps/provisioner/test/workspaces.test.mjs +++ /dev/null @@ -1,102 +0,0 @@ -import test from 'node:test'; -import assert from 'node:assert/strict'; -import { renderWorkspaceResources, provisionWorkspace } from '../workspaces.mjs'; -const config = { - tenantId: 'alpha', - namespace: 'wf-alpha', - controlNamespace: 'wf-control', - gitServicePort: 4504, - runtimeClass: 'wishforge-kata', - storageClass: 'test-storage', - storageSize: '10Gi', -}; -const input = { tenantId: 'alpha', projectId: 'project-1', workspaceId: 'workspace-1' }; -const image = `registry.invalid/theia@sha256:${'a'.repeat(64)}`; -test('workspace provisioning uses the actual Theia start contract and a private isolated endpoint', () => { - const rendered = renderWorkspaceResources(config, input, image); - const pod = rendered.resources.find(r => r.kind === 'Deployment').spec.template.spec; - assert.equal(pod.runtimeClassName, 'wishforge-kata'); - assert.equal(pod.automountServiceAccountToken, false); - const env = Object.fromEntries(pod.containers[0].env.map(e => [e.name, e.value])); - assert.equal(env.WISHFORGE_IDE_PORT, '3000'); - assert.equal(env.WISHFORGE_GATEWAY_ENFORCED, 'true'); - assert.equal(env.WISHFORGE_WORKSPACE_PATH, '/home/theia/data/workspace'); - assert.equal(env.WISHFORGE_COLLABORATION_ENABLED, 'false'); - assert.equal(rendered.resources.find(r => r.kind === 'Service').spec.type, 'ClusterIP'); -}); -test('creating manifests does not mark an unready IDE available', async () => { - let applied = false; - const result = await provisionWorkspace(config, input, { - image, - apply: async () => { - applied = true; - }, - observe: async () => false, - }); - assert.ok(applied); - assert.equal(result.status, 'pending'); - assert.throws(() => renderWorkspaceResources(config, { ...input, tenantId: 'beta' }, image)); -}); -test('a workspace of a platform repository may reach the Git service and keeps its token in memory', () => { - const repositoryUrl = 'https://git.example/git/alpha/project-1.git'; - const rendered = renderWorkspaceResources(config, { ...input, repositoryUrl }, image); - const pod = rendered.resources.find(r => r.kind === 'Deployment').spec.template.spec; - const env = Object.fromEntries(pod.containers[0].env.map(e => [e.name, e.value])); - assert.equal(env.WISHFORGE_GIT_REMOTE, repositoryUrl); - assert.equal(env.WISHFORGE_GIT_CREDENTIAL_DIR, '/run/wishforge/git'); - assert.deepEqual(pod.volumes.find(v => v.name === 'git-credentials').emptyDir, { - medium: 'Memory', - sizeLimit: '1Mi', - }); - const egress = rendered.resources.find(r => r.kind === 'NetworkPolicy').spec.egress; - assert.deepEqual(egress.at(-1), { - to: [ - { - namespaceSelector: { matchLabels: { 'kubernetes.io/metadata.name': 'wf-control' } }, - podSelector: { matchLabels: { 'wishforge.io/component': 'git-storage' } }, - }, - ], - ports: [{ protocol: 'TCP', port: 4504 }], - }); - // Without a platform repository nothing beyond DNS is reachable. - const plain = renderWorkspaceResources(config, input, image); - assert.equal(plain.resources.find(r => r.kind === 'NetworkPolicy').spec.egress.length, 1); - for (const other of [ - 'http://git.example/git/alpha/project-1.git', - 'https://token@git.example/git/alpha/project-1.git', - 'https://git.example/git/beta/project-1.git', - 'https://git.example/git/alpha/project-2.git', - ]) - assert.throws(() => renderWorkspaceResources(config, { ...input, repositoryUrl: other }, image), /REPOSITORY/); -}); -test('only a local development cluster serves the repository and the gateway over plain HTTP', () => { - const repositoryUrl = 'http://git-storage.wf-control.svc.cluster.local:4504/git/alpha/project-1.git'; - const collaboration = { image, gatewayBase: 'http://localhost:4400/' }; - const local = { ...config, runtimeClass: undefined, insecureHttp: true }; - const rendered = renderWorkspaceResources(local, { ...input, repositoryUrl }, image, collaboration); - const env = Object.fromEntries( - rendered.resources - .find(r => r.kind === 'Deployment') - .spec.template.spec.containers[0].env.map(e => [e.name, e.value]), - ); - assert.equal(env.WISHFORGE_GIT_REMOTE, repositoryUrl); - assert.equal(env.WF_COLLABORATION_GATEWAY_URL, 'http://localhost:4400/workspaces/workspace-1/collaboration/'); - assert.throws(() => renderWorkspaceResources(config, { ...input, repositoryUrl }, image), /REPOSITORY/); - assert.throws(() => renderWorkspaceResources(config, input, image, collaboration), /GATEWAY/); -}); -test('scoped collaboration runs as a sidecar without any platform credential in the workspace', () => { - const rendered = renderWorkspaceResources(config, input, image, { - image, - gatewayBase: 'https://ide.example/', - }); - const pod = rendered.resources.find(r => r.kind === 'Deployment').spec.template.spec; - { - assert.equal(pod.containers.length, 2); - assert.ok(!JSON.stringify(pod).includes('PRIVATE_KEY')); - assert.ok(!JSON.stringify(pod).includes('TOKEN')); - const octEnv = Object.fromEntries(pod.containers[1].env.map(e => [e.name, e.value])); - assert.equal(octEnv.WF_WORKSPACE_ID, input.workspaceId); - assert.equal(octEnv.WISHFORGE_GATEWAY_ENFORCED, 'true'); - assert.ok(rendered.collaborationUpstreamUrl.endsWith(':8100')); - } -}); diff --git a/apps/provisioner/workspace-lifecycle.mjs b/apps/provisioner/workspace-lifecycle.mjs deleted file mode 100644 index fae5c5d..0000000 --- a/apps/provisioner/workspace-lifecycle.mjs +++ /dev/null @@ -1,132 +0,0 @@ -import { createHash } from 'node:crypto'; -import { spawn } from 'node:child_process'; -const id = /^[a-zA-Z0-9_-]{1,128}$/; -const revisionKey = 'wishforge.io/lifecycle-revision'; -const desiredKey = 'wishforge.io/lifecycle-desired'; -function scope(config, input) { - if ( - !input || - input.tenantId !== config.tenantId || - !id.test(input.projectId ?? '') || - !id.test(input.workspaceId ?? '') - ) - throw new Error('INVALID_WORKSPACE_SCOPE'); - return `wf-ide-${createHash('sha256').update(`${input.tenantId}/${input.workspaceId}`).digest('hex').slice(0, 24)}`; -} -function assertOwned(config, name, value) { - if ( - value?.metadata?.name !== name || - value.metadata.namespace !== config.namespace || - value.metadata.labels?.['app.kubernetes.io/managed-by'] !== 'wishforge-provisioner' || - value.metadata.labels?.['wishforge.io/component'] !== 'ide' || - value.metadata.labels?.['wishforge.io/workspace'] !== name - ) - throw new Error('WORKSPACE_OWNERSHIP_MISMATCH'); -} -export function kubectlJson(config, args) { - return new Promise((resolve, reject) => { - const child = spawn('kubectl', ['--context', config.context, '--namespace', config.namespace, ...args], { - stdio: ['ignore', 'pipe', 'pipe'], - }); - let output = ''; - let settled = false; - const fail = () => { - if (!settled) { - settled = true; - reject(new Error('KUBERNETES_LIFECYCLE_UNKNOWN')); - } - }; - const timeout = setTimeout(() => { - child.kill('SIGTERM'); - fail(); - }, 10000); - child.stdout.on('data', part => { - output += part; - if (output.length > 2 * 1024 * 1024) { - child.kill('SIGTERM'); - fail(); - } - }); - child.stderr.resume(); - child.on('error', fail); - child.on('close', code => { - clearTimeout(timeout); - if (settled) return; - try { - if (code !== 0) throw Error(); - const value = JSON.parse(output); - settled = true; - resolve(value); - } catch { - fail(); - } - }); - }); -} -export async function observeWorkspaceLifecycle(config, input, options = {}) { - const name = scope(config, input); - const execute = options.execute ?? kubectlJson; - const deployment = await execute(config, ['get', 'deployment', name, '-o', 'json']); - assertOwned(config, name, deployment); - const revision = Number(deployment.metadata.annotations?.[revisionKey] ?? 0); - const desired = deployment.metadata.annotations?.[desiredKey] ?? 'running'; - if (!Number.isSafeInteger(revision) || revision < 0 || !['running', 'paused'].includes(desired)) - throw new Error('INVALID_WORKSPACE_LIFECYCLE_STATE'); - let status = 'pending'; - const observed = deployment.status?.observedGeneration >= deployment.metadata.generation; - if ( - desired === 'running' && - deployment.spec?.replicas === 1 && - observed && - deployment.status.availableReplicas === 1 && - deployment.status.updatedReplicas === 1 - ) - status = 'ready'; - if (desired === 'paused' && deployment.spec?.replicas === 0 && observed && (deployment.status.replicas ?? 0) === 0) { - const selector = `wishforge.io/workspace=${name},wishforge.io/component=ide,app.kubernetes.io/managed-by=wishforge-provisioner`; - const pods = await execute(config, ['get', 'pods', '--selector', selector, '-o', 'json']); - if (!Array.isArray(pods.items)) throw new Error('KUBERNETES_LIFECYCLE_UNKNOWN'); - if (pods.items.every(p => ['Succeeded', 'Failed'].includes(p.status?.phase))) status = 'paused'; - } - return { - workspaceId: input.workspaceId, - revision, - desired, - status, - deploymentUid: deployment.metadata.uid, - resourceVersion: deployment.metadata.resourceVersion, - }; -} -export async function reconcileWorkspaceLifecycle(config, input, options = {}) { - if ( - !['running', 'paused'].includes(input?.desired) || - !Number.isSafeInteger(input.revision) || - input.revision < 1 || - Object.keys(input).some(k => !['tenantId', 'projectId', 'workspaceId', 'revision', 'desired'].includes(k)) - ) - throw new Error('INVALID_WORKSPACE_LIFECYCLE_REQUEST'); - const execute = options.execute ?? kubectlJson; - const name = scope(config, input); - const deployment = await execute(config, ['get', 'deployment', name, '-o', 'json']); - assertOwned(config, name, deployment); - const previous = Number(deployment.metadata.annotations?.[revisionKey] ?? 0); - if (!Number.isSafeInteger(previous) || previous > input.revision) throw new Error('STALE_WORKSPACE_REVISION'); - if (previous === input.revision) { - if (deployment.metadata.annotations?.[desiredKey] !== input.desired) throw new Error('WORKSPACE_REVISION_CONFLICT'); - return observeWorkspaceLifecycle(config, input, { execute }); - } - if (!deployment.metadata.resourceVersion || !deployment.metadata.uid) throw new Error('KUBERNETES_LIFECYCLE_UNKNOWN'); - const annotations = { - ...deployment.metadata.annotations, - [revisionKey]: String(input.revision), - [desiredKey]: input.desired, - }; - const patch = [ - { op: 'test', path: '/metadata/resourceVersion', value: deployment.metadata.resourceVersion }, - { op: 'test', path: '/metadata/uid', value: deployment.metadata.uid }, - { op: 'add', path: '/metadata/annotations', value: annotations }, - { op: 'replace', path: '/spec/replicas', value: input.desired === 'paused' ? 0 : 1 }, - ]; - await execute(config, ['patch', 'deployment', name, '--type=json', '-p', JSON.stringify(patch), '-o', 'json']); - return observeWorkspaceLifecycle(config, input, { execute }); -} diff --git a/apps/provisioner/workspaces.mjs b/apps/provisioner/workspaces.mjs deleted file mode 100644 index 34e99bd..0000000 --- a/apps/provisioner/workspaces.mjs +++ /dev/null @@ -1,290 +0,0 @@ -import { createHash } from 'node:crypto'; -import { spawn } from 'node:child_process'; -import { runKubectl } from './kubernetes.mjs'; -const safe = /^[a-zA-Z0-9_-]{1,128}$/; - -/** HTTPS, or plain HTTP on a local development cluster (WF_ALLOW_INSECURE_HTTP) inside the cluster. */ -const secureEnough = (config, url) => - url.protocol === 'https:' || (url.protocol === 'http:' && config.insecureHttp === true); - -/** The project's platform repository; the workspace accepts credentials for it alone. */ -function workspaceRepository(config, input) { - if (input.repositoryUrl === undefined) return undefined; - let url; - try { - url = new URL(input.repositoryUrl); - } catch { - throw new Error('INVALID_WORKSPACE_REPOSITORY'); - } - if ( - !secureEnough(config, url) || - url.username || - url.password || - url.search || - url.hash || - url.pathname !== `/git/${input.tenantId}/${input.projectId}.git` - ) - throw new Error('INVALID_WORKSPACE_REPOSITORY'); - return url.href; -} - -export function renderWorkspaceResources(config, input, image, collaboration) { - if (!image || !/^[^\s]+@sha256:[a-f0-9]{64}$/.test(image)) throw new Error('UNCONFIGURED_THEIA_IMAGE'); - if ( - !input || - input.tenantId !== config.tenantId || - !safe.test(input.projectId ?? '') || - !safe.test(input.workspaceId ?? '') || - Object.keys(input).some(k => !['tenantId', 'projectId', 'workspaceId', 'repositoryUrl'].includes(k)) - ) - throw new Error('INVALID_WORKSPACE_REQUEST'); - const repository = workspaceRepository(config, input); - const name = `wf-ide-${createHash('sha256').update(`${input.tenantId}/${input.workspaceId}`).digest('hex').slice(0, 24)}`; - const labels = { - 'wishforge.io/component': 'ide', - 'wishforge.io/workspace': name, - 'app.kubernetes.io/managed-by': 'wishforge-provisioner', - }; - const metadata = n => ({ name: n, namespace: config.namespace, labels }); - const resources = [ - { - apiVersion: 'v1', - kind: 'PersistentVolumeClaim', - metadata: metadata(name), - spec: { - storageClassName: config.storageClass, - accessModes: ['ReadWriteOnce'], - resources: { requests: { storage: config.storageSize } }, - }, - }, - { - apiVersion: 'networking.k8s.io/v1', - kind: 'NetworkPolicy', - metadata: metadata(`${name}-isolation`), - spec: { - podSelector: { matchLabels: { 'wishforge.io/workspace': name } }, - policyTypes: ['Ingress', 'Egress'], - ingress: [ - { - from: [ - { - namespaceSelector: { matchLabels: { 'kubernetes.io/metadata.name': config.controlNamespace } }, - podSelector: { matchLabels: { 'wishforge.io/component': 'workspace-gateway' } }, - }, - ], - ports: [{ protocol: 'TCP', port: 3000 }], - }, - ], - egress: [ - { - to: [ - { - namespaceSelector: { matchLabels: { 'kubernetes.io/metadata.name': 'kube-system' } }, - podSelector: { matchLabels: { 'k8s-app': 'kube-dns' } }, - }, - ], - ports: [ - { protocol: 'UDP', port: 53 }, - { protocol: 'TCP', port: 53 }, - ], - }, - ], - }, - }, - { - apiVersion: 'apps/v1', - kind: 'Deployment', - metadata: metadata(name), - spec: { - replicas: 1, - strategy: { type: 'Recreate' }, - selector: { matchLabels: { 'wishforge.io/workspace': name } }, - template: { - metadata: { labels }, - spec: { - ...(config.runtimeClass ? { runtimeClassName: config.runtimeClass } : {}), - automountServiceAccountToken: false, - securityContext: { - runAsNonRoot: true, - runAsUser: 1000, - runAsGroup: 1000, - fsGroup: 1000, - seccompProfile: { type: 'RuntimeDefault' }, - }, - initContainers: [ - { - name: 'workspace-directories', - image, - command: [ - 'node', - '-e', - "const fs=require('fs');for(const dir of ['workspace','config'])fs.mkdirSync('/home/theia/data/'+dir,{recursive:true});", - ], - securityContext: { allowPrivilegeEscalation: false, capabilities: { drop: ['ALL'] } }, - volumeMounts: [{ name: 'workspace', mountPath: '/home/theia/data' }], - }, - ], - containers: [ - { - name: 'theia', - image, - ports: [{ containerPort: 3000 }], - env: [ - { name: 'NODE_ENV', value: 'production' }, - { name: 'WISHFORGE_GATEWAY_ENFORCED', value: 'true' }, - { name: 'WISHFORGE_WORKSPACE_PATH', value: '/home/theia/data/workspace' }, - { name: 'THEIA_CONFIG_DIR', value: '/home/theia/data/config' }, - { name: 'WISHFORGE_IDE_HOST', value: '0.0.0.0' }, - { name: 'WISHFORGE_IDE_PORT', value: '3000' }, - { name: 'WISHFORGE_COLLABORATION_ENABLED', value: 'false' }, - { name: 'COLLABORATION_SERVER_URL', value: 'https://disabled.invalid/' }, - ], - resources: { requests: { cpu: '500m', memory: '1Gi' }, limits: { cpu: '2', memory: '4Gi' } }, - securityContext: { allowPrivilegeEscalation: false, capabilities: { drop: ['ALL'] } }, - readinessProbe: { httpGet: { path: '/', port: 3000 }, initialDelaySeconds: 10, periodSeconds: 5 }, - volumeMounts: [{ name: 'workspace', mountPath: '/home/theia/data' }], - }, - ], - volumes: [{ name: 'workspace', persistentVolumeClaim: { claimName: name } }], - }, - }, - }, - }, - { - apiVersion: 'v1', - kind: 'Service', - metadata: metadata(name), - spec: { - selector: { 'wishforge.io/workspace': name }, - type: 'ClusterIP', - ports: [{ port: 3000, targetPort: 3000 }], - }, - }, - ]; - const workspacePod = resources.find(r => r.kind === 'Deployment').spec.template.spec; - workspacePod.containers[0].securityContext.readOnlyRootFilesystem = true; - workspacePod.containers[0].env.push( - { name: 'HOME', value: '/home/theia/data' }, - { name: 'WF_TENANT_ID', value: input.tenantId }, - { name: 'WF_WORKSPACE_ID', value: input.workspaceId }, - ); - workspacePod.volumes.push({ name: 'temporary', emptyDir: { sizeLimit: '2Gi' } }); - workspacePod.containers[0].volumeMounts.push({ name: 'temporary', mountPath: '/tmp' }); - if (repository) { - // The gateway delivers a short-lived token while the IDE is open; it is kept in memory only. - workspacePod.containers[0].env.push( - { name: 'WISHFORGE_GIT_REMOTE', value: repository }, - { name: 'WISHFORGE_GIT_CREDENTIAL_DIR', value: '/run/wishforge/git' }, - ); - workspacePod.volumes.push({ name: 'git-credentials', emptyDir: { medium: 'Memory', sizeLimit: '1Mi' } }); - workspacePod.containers[0].volumeMounts.push({ name: 'git-credentials', mountPath: '/run/wishforge/git' }); - resources - .find(r => r.kind === 'NetworkPolicy') - .spec.egress.push({ - to: [ - { - namespaceSelector: { matchLabels: { 'kubernetes.io/metadata.name': config.controlNamespace } }, - podSelector: { matchLabels: { 'wishforge.io/component': 'git-storage' } }, - }, - ], - ports: [{ protocol: 'TCP', port: config.gitServicePort ?? 4504 }], - }); - } - let collaborationUpstreamUrl; - if (collaboration) { - if (!/^[^\s]+@sha256:[a-f0-9]{64}$/.test(collaboration.image ?? '')) - throw new Error('UNCONFIGURED_OCT_WORKSPACE_IMAGE'); - const gateway = new URL(collaboration.gatewayBase); - if ( - !secureEnough(config, gateway) || - gateway.username || - gateway.password || - gateway.pathname !== '/' || - gateway.search || - gateway.hash - ) - throw new Error('INVALID_PUBLIC_WORKSPACE_GATEWAY'); - const pod = resources.find(r => r.kind === 'Deployment').spec.template.spec; - pod.containers[0].env.push({ - name: 'WF_COLLABORATION_GATEWAY_URL', - value: `${gateway.origin}/workspaces/${input.workspaceId}/collaboration/`, - }); - pod.containers.push({ - name: 'collaboration', - image: collaboration.image, - env: [ - { name: 'WF_TENANT_ID', value: input.tenantId }, - { name: 'WF_WORKSPACE_ID', value: input.workspaceId }, - { name: 'WISHFORGE_GATEWAY_ENFORCED', value: 'true' }, - ], - ports: [{ containerPort: 8100 }], - resources: { requests: { cpu: '100m', memory: '128Mi' }, limits: { cpu: '500m', memory: '512Mi' } }, - securityContext: { - allowPrivilegeEscalation: false, - readOnlyRootFilesystem: true, - capabilities: { drop: ['ALL'] }, - }, - readinessProbe: { httpGet: { path: '/api/meta', port: 8100 }, initialDelaySeconds: 3, periodSeconds: 5 }, - }); - resources.find(r => r.kind === 'Service').spec.ports = [ - { name: 'theia', port: 3000, targetPort: 3000 }, - { name: 'collaboration', port: 8100, targetPort: 8100 }, - ]; - resources.find(r => r.kind === 'NetworkPolicy').spec.ingress[0].ports.push({ protocol: 'TCP', port: 8100 }); - collaborationUpstreamUrl = `http://${name}.${config.namespace}.svc:8100`; - } - return { name, resources, upstreamUrl: `http://${name}.${config.namespace}.svc:3000`, collaborationUpstreamUrl }; -} -async function observe(config, name) { - return new Promise((resolve, reject) => { - const child = spawn( - 'kubectl', - ['--context', config.context, '--namespace', config.namespace, 'get', 'deployment', name, '-o', 'json'], - { stdio: ['ignore', 'pipe', 'pipe'] }, - ); - let stdout = ''; - const timer = setTimeout(() => { - child.kill('SIGTERM'); - reject(new Error('KUBERNETES_OBSERVE_TIMEOUT')); - }, 10000); - child.stderr.resume(); - child.stdout.on('data', b => { - stdout += b; - if (stdout.length > 1000000) child.kill('SIGTERM'); - }); - child.on('error', () => { - clearTimeout(timer); - reject(new Error('KUBERNETES_OBSERVE_FAILED')); - }); - child.on('close', code => { - clearTimeout(timer); - try { - if (code !== 0) throw new Error(); - const d = JSON.parse(stdout); - resolve( - d.status?.observedGeneration >= d.metadata.generation && - d.status?.availableReplicas === 1 && - d.status?.updatedReplicas === 1, - ); - } catch { - reject(new Error('KUBERNETES_OBSERVE_FAILED')); - } - }); - }); -} -export async function provisionWorkspace(config, input, options = {}) { - const collaboration = - options.collaboration ?? - (process.env.WF_OCT_WORKSPACE_IMAGE - ? { image: process.env.WF_OCT_WORKSPACE_IMAGE, gatewayBase: process.env.WF_IDE_PUBLIC_URL } - : undefined); - const rendered = renderWorkspaceResources(config, input, options.image ?? process.env.WF_THEIA_IMAGE, collaboration); - await (options.apply ?? runKubectl)(config, rendered.resources); - const ready = await (options.observe ?? observe)(config, rendered.name); - return { - status: ready ? 'ready' : 'pending', - workspaceId: input.workspaceId, - upstreamUrl: rendered.upstreamUrl, - collaborationUpstreamUrl: rendered.collaborationUpstreamUrl, - }; -} diff --git a/apps/web/src/app/(console)/skills/page.tsx b/apps/web/src/app/(console)/skills/page.tsx new file mode 100644 index 0000000..0b92da3 --- /dev/null +++ b/apps/web/src/app/(console)/skills/page.tsx @@ -0,0 +1,4 @@ +import { SkillsLibrary } from '@/features/skills'; +export default function Page() { + return ; +} diff --git a/apps/web/src/app/api/[...path]/route.ts b/apps/web/src/app/api/[...path]/route.ts index e65d44f..f1fd716 100644 --- a/apps/web/src/app/api/[...path]/route.ts +++ b/apps/web/src/app/api/[...path]/route.ts @@ -70,6 +70,10 @@ async function proxy(request: NextRequest, context: Context) { }); const disposition = upstream.headers.get('content-disposition'); if (disposition) responseHeaders.set('Content-Disposition', disposition); + // Files people uploaded come back as what they say they are, and never run as a page. + responseHeaders.set('X-Content-Type-Options', 'nosniff'); + const policy = upstream.headers.get('content-security-policy'); + if (policy) responseHeaders.set('Content-Security-Policy', policy); if (stream) { responseHeaders.set('X-Accel-Buffering', 'no'); responseHeaders.set('Connection', 'keep-alive'); diff --git a/apps/web/src/app/globals.css b/apps/web/src/app/globals.css index 1fd6e76..51a6e25 100644 --- a/apps/web/src/app/globals.css +++ b/apps/web/src/app/globals.css @@ -999,48 +999,6 @@ button { padding: 14px 22px; border-top: 1px solid #edf1f5; } -.workspace-list { - padding: 0 22px 20px; -} -.branch-list { - list-style: none; - margin: 0; - padding: 0 22px 16px; -} -.branch-list li { - display: flex; - align-items: center; - gap: 10px; - font-size: 12px; - padding: 8px 0; - border-bottom: 1px solid #edf1f5; -} -.branch-list li > span { - color: var(--muted); - flex: 1; -} -.workspace-row { - display: flex; - align-items: center; - justify-content: space-between; - gap: 18px; - margin-bottom: 10px; -} -.workspace-row strong { - font-size: 13px; - display: block; -} -.workspace-row .status { - margin-top: 5px; -} -.workspace-row p { - font-size: 12px; - color: var(--muted); - margin-top: 5px; -} -.workspace-row > span { - font-size: 12px; -} .form-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); @@ -1621,6 +1579,12 @@ button { color: var(--muted); line-height: 1.7; } +.provider-actions { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 10px; +} .inline-explanation { display: flex; align-items: flex-start; @@ -2257,13 +2221,6 @@ button { padding: 0 17px 15px; font-size: 11px; } - .workspace-list { - padding: 0 17px 16px; - } - .workspace-row { - flex-wrap: wrap; - gap: 12px; - } .panel > .notice { margin: 0 17px 13px; } @@ -2439,6 +2396,9 @@ button { flex-basis: 100%; font-size: 11px; } + .provider-actions { + width: 100%; + } .provider-bottom .button { width: 100%; min-height: 35px; @@ -3133,6 +3093,21 @@ fieldset:disabled label { .skill-list li.skill-proposed > svg { color: var(--amber); } +.skill-list li > input[type='checkbox'] { + margin-top: 5px; + flex: none; +} +.skill-category { + display: inline-block; + border: 1px solid var(--border); + border-radius: 999px; + padding: 0 8px; + font-size: 12px; + color: var(--muted); +} +.skill-warning { + color: var(--amber); +} .skill-body { flex: 1; min-width: 0; @@ -4341,3 +4316,85 @@ fieldset:disabled label { border-radius: 12px; } } +.attachment-drop { + display: flex; + align-items: center; + gap: 12px; + flex-wrap: wrap; + padding: 12px 14px; + border: 1px dashed #c8d3df; + border-radius: var(--radius); + background: var(--bg); + transition: + border-color 0.15s, + background 0.15s; +} +.attachment-drop.dragging { + border-color: var(--teal); + background: var(--teal-pale); +} +.attachment-drop .field-hint { + flex: 1 1 260px; +} +.attachment-pick { + position: relative; + cursor: pointer; +} +.attachment-pick input { + position: absolute; + inset: 0; + opacity: 0; + cursor: pointer; + width: 100%; +} +.attachment-list { + list-style: none; + margin: 4px 0 0; + padding: 0; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); + gap: 8px; +} +.attachment-list li { + display: flex; + align-items: center; + gap: 10px; + min-width: 0; + padding: 6px 8px; + border: 1px solid var(--border); + border-radius: var(--radius); + background: var(--surface); +} +.attachment-list img, +.attachment-icon { + flex: none; + width: 44px; + height: 44px; + border-radius: 4px; + object-fit: cover; + background: var(--bg); + display: grid; + place-items: center; + color: var(--muted); +} +.attachment-list a { + display: contents; + color: inherit; +} +.attachment-name { + flex: 1; + min-width: 0; + display: flex; + flex-direction: column; + font-size: 12px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.attachment-name small { + color: var(--muted); + font-size: 11px; +} +.panel-body-list { + padding: 0 22px 4px; +} diff --git a/apps/web/src/app/ide/[id]/launch/route.ts b/apps/web/src/app/ide/[id]/launch/route.ts deleted file mode 100644 index a052622..0000000 --- a/apps/web/src/app/ide/[id]/launch/route.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { NextRequest, NextResponse } from 'next/server'; -import { authorizationFor, identityHeaders, isDevelopment } from '@/lib/auth'; -export const runtime = 'nodejs'; -export const dynamic = 'force-dynamic'; -export async function GET(request: NextRequest, { params }: { params: Promise<{ id: string }> }) { - const { token, localUser } = await authorizationFor(request); - if (!token) - return NextResponse.redirect( - new URL(`/login?returnTo=${encodeURIComponent(request.nextUrl.pathname)}`, request.nextUrl.origin), - ); - const { id } = await params; - const api = (process.env.WF_API_URL ?? 'http://127.0.0.1:4000').replace(/\/$/, ''); - try { - const response = await fetch(`${api}/v1/workspaces/${encodeURIComponent(id)}/launch`, { - method: 'POST', - headers: { ...identityHeaders(token, localUser), 'Content-Type': 'application/json' }, - body: JSON.stringify({}), - cache: 'no-store', - redirect: 'error', - signal: AbortSignal.any([request.signal, AbortSignal.timeout(15000)]), - }); - if (!response.ok) - return NextResponse.json( - { - error: { - code: 'IDE_LAUNCH_DENIED', - message: response.status === 403 ? '你没有权限打开此工作空间。' : '工作空间尚未就绪或控制面拒绝了连接。', - }, - }, - { status: response.status, headers: { 'Cache-Control': 'no-store' } }, - ); - const payload = (await response.json()) as { - data?: { launchUrl?: string; expiresIn?: number }; - }; - if (typeof payload.data?.launchUrl !== 'string' || payload.data.expiresIn !== 30) - throw new Error('Invalid workspace launch response'); - // The authenticated control plane resolves the tenant's gateway and verifies - // its origin. This BFF never owns tenant routing or gateway service tokens. - const url = new URL(payload.data.launchUrl); - const localHttp = - isDevelopment() && url.protocol === 'http:' && ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname); - const query = [...url.searchParams.keys()]; - if ( - (url.protocol !== 'https:' && !localHttp) || - url.username || - url.password || - url.hash || - url.pathname !== '/session' || - query.length !== 1 || - query[0] !== 'code' || - !/^[A-Za-z0-9_-]{20,256}$/.test(url.searchParams.get('code') ?? '') - ) - throw new Error('Invalid workspace session redirect'); - const result = NextResponse.redirect(url, 303); - result.headers.set('Cache-Control', 'no-store'); - result.headers.set('Referrer-Policy', 'no-referrer'); - return result; - } catch { - return NextResponse.json( - { - error: { - code: 'IDE_UNAVAILABLE', - message: '无法取得工作空间启动链接。请检查控制面与运行环境配置。', - }, - }, - { status: 503, headers: { 'Cache-Control': 'no-store' } }, - ); - } -} diff --git a/apps/web/src/components/console-shell.tsx b/apps/web/src/components/console-shell.tsx index cef47fd..66615fd 100644 --- a/apps/web/src/components/console-shell.tsx +++ b/apps/web/src/components/console-shell.tsx @@ -3,6 +3,7 @@ import { Activity, ArrowUpRight, BarChart3, + BookOpen, Bot, Box, ChevronRight, @@ -28,6 +29,7 @@ const navigation = [ ['/', '工作概览', Home], ['/projects', '项目空间', Folder], ['/runs', '运行记录', Activity], + ['/skills', '知识库', BookOpen], ['/releases', '部署与审批', Box], ['/providers', '模型连接', Settings2], ['/agent', 'Agent 配置', Bot], diff --git a/apps/web/src/features/agent.tsx b/apps/web/src/features/agent.tsx index 343884e..b984b81 100644 --- a/apps/web/src/features/agent.tsx +++ b/apps/web/src/features/agent.tsx @@ -1,6 +1,7 @@ 'use client'; import { History, Plus } from 'lucide-react'; import { useState } from 'react'; +import { MODEL_NAME_PATTERN } from '@wishforge/contracts/models'; import { messageOf, mutateApi, shortId, formatTime, useResource } from '@/lib/api'; import type { AgentBundleList } from '@/lib/types'; import { @@ -182,7 +183,13 @@ function CreateBundleDialog({ onClose, onSaved }: { onClose: () => void; onSaved