From da1cfcea1343a94e1726be0bba5a989273196a83 Mon Sep 17 00:00:00 2001 From: eust-w Date: Wed, 4 Nov 2026 12:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20the=20cloud=20IDE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cluster never ran Theia or the IDE gateway, so every workspace stayed "未配置" forever. The feature is gone instead of half-present: - API: workspace, launch and lifecycle endpoints, the gateway identity and its internal routes, the dispatcher's workspace provisioning and the lifecycle worker. Migration 003 deletes stored workspaces and settles their pending outbox items. - Provisioner: workspace provisioning and lifecycle for both backends. - Web: the 云 IDE panel, the launch route, the start-branch picker that listed IDE branches, and the workspace count on usage. - apps/ide, infra/oct, dev:ide and the CI job; IDE parts of local k3s, network policies, RBAC, docs and the architecture diagram. A wish can still start from a pushed branch through the API (sourceBranch). Plan files and stored entitlements may still carry maxWorkspaces; it is accepted and ignored. Co-Authored-By: Claude Opus 5.5 (1M context) --- .dockerignore | 2 - .github/workflows/ci.yml | 15 - .gitignore | 1 - .prettierignore | 5 - README.md | 7 +- apps/api/src/auth.ts | 11 - .../db/migrations/003_retire_cloud_ide.sql | 7 + apps/api/src/db/store.ts | 6 +- apps/api/src/dispatcher.ts | 91 +- apps/api/src/domain/application-access.ts | 13 +- apps/api/src/domain/control-plane.ts | 6 +- apps/api/src/domain/entitlements.ts | 12 +- apps/api/src/domain/gateway-target.ts | 137 - apps/api/src/domain/git-storage.ts | 32 - apps/api/src/domain/releases.ts | 8 +- apps/api/src/domain/workspace-git.ts | 45 - apps/api/src/domain/workspace-launch.ts | 40 - apps/api/src/domain/workspace-lifecycle.ts | 245 - apps/api/src/http.ts | 114 +- apps/api/src/internal-auth.ts | 8 +- apps/api/src/main.ts | 8 +- apps/api/src/workspace-launch-http.ts | 24 - apps/api/src/workspace-lifecycle-http.ts | 25 - apps/api/src/workspace-lifecycle-worker.ts | 38 - apps/git-service/src/service.ts | 4 +- apps/ide/.dockerignore | 6 - apps/ide/.gitignore | 11 - apps/ide/Dockerfile | 29 - apps/ide/README.md | 80 - apps/ide/collaboration/Dockerfile | 6 - apps/ide/collaboration/README.md | 57 - apps/ide/collaboration/client-factory.cjs | 59 - apps/ide/collaboration/start-isolated.mjs | 34 - .../test/client-factory.test.cjs | 55 - .../collaboration/test/isolated-oct.test.mjs | 281 - apps/ide/gateway/README.md | 49 - apps/ide/gateway/git-credentials.mjs | 129 - apps/ide/gateway/main.mjs | 27 - apps/ide/gateway/package-lock.json | 36 - apps/ide/gateway/package.json | 13 - apps/ide/gateway/server.mjs | 483 - .../ide/gateway/test/gateway-handler.test.mjs | 215 - apps/ide/gateway/test/gateway.test.mjs | 307 - apps/ide/package-lock.json | 12978 ---------------- apps/ide/package.json | 69 - apps/ide/policy/README.md | 27 - apps/ide/policy/backend.cjs | 12 - apps/ide/policy/frontend.cjs | 59 - apps/ide/policy/git-credential-endpoint.cjs | 43 - apps/ide/policy/git-workspace.cjs | 241 - apps/ide/policy/managed-plugins.cjs | 108 - apps/ide/policy/managed-plugins.lock.json | 561 - apps/ide/policy/package.json | 15 - apps/ide/policy/plugin-install-frontend.cjs | 41 - apps/ide/policy/plugin-install-policy.cjs | 72 - apps/ide/policy/test/git-workspace.test.cjs | 191 - .../test/plugin-install-policy.test.cjs | 91 - apps/ide/scripts/catalog-builtin-plugins.mjs | 43 - apps/ide/scripts/download-python-debugger.mjs | 180 - apps/ide/scripts/python-debugger.lock.json | 26 - apps/ide/scripts/start.mjs | 51 - apps/ide/scripts/verify-managed-plugins.mjs | 5 - apps/provisioner/README.md | 23 +- apps/provisioner/local.mjs | 29 +- apps/provisioner/main.mjs | 44 +- apps/provisioner/test/local.test.mjs | 18 - .../test/workspace-lifecycle.test.mjs | 126 - apps/provisioner/test/workspaces.test.mjs | 102 - apps/provisioner/workspace-lifecycle.mjs | 132 - apps/provisioner/workspaces.mjs | 290 - apps/web/src/app/globals.css | 49 - apps/web/src/app/ide/[id]/launch/route.ts | 69 - apps/web/src/features/dashboard.tsx | 10 +- apps/web/src/features/projects.tsx | 349 +- apps/web/src/features/runs.tsx | 24 - apps/web/src/features/usage.tsx | 3 - apps/web/src/lib/local-access.test.ts | 4 +- apps/web/src/lib/types.ts | 15 - apps/web/src/lib/waiting.ts | 3 +- connectors/README.md | 2 +- docs/architecture.md | 46 +- docs/cluster-poc-deployment.md | 2 +- docs/development.md | 33 +- docs/images/architecture-overview.svg | 10 +- docs/local-browser-access.md | 4 +- docs/local-k3s.md | 21 +- docs/local-poc-operations.md | 4 +- docs/operations.md | 60 +- docs/reference/repository-contract.md | 4 +- docs/reference/ui.md | 5 +- docs/requirements.md | 39 +- docs/user-manual.md | 32 +- infra/compose.yaml | 10 - infra/images/README.md | 4 +- infra/k8s/README.md | 13 +- infra/k8s/base/network-policy.yaml | 52 +- infra/k8s/base/provisioner-rbac.yaml | 13 +- infra/k8s/local/wishforge.yaml | 54 - infra/oct/Dockerfile | 9 - infra/oct/package-lock.json | 1667 -- infra/oct/package.json | 11 - infra/plans/catalog.example.json | 1 - infra/scripts/smoke.mjs | 9 - package.json | 4 - packages/agent/src/prompt.ts | 2 +- packages/contracts/src/entities.ts | 24 - packages/contracts/src/index.ts | 10 +- scripts/build-local-web.mjs | 1 - scripts/cluster-poc.mjs | 2 +- scripts/cluster-poc.test.mjs | 1 - scripts/dev-ide.mjs | 51 - scripts/generate-architecture-svgs.mjs | 10 +- scripts/k3s-local.mjs | 46 +- scripts/local-services.mjs | 3 - scripts/local-services.test.mjs | 5 +- scripts/setup-local.mjs | 9 - scripts/tenant-admin.ts | 1 - tests/application-access.test.ts | 4 +- tests/dispatcher.test.ts | 51 +- tests/entitlements-usage.test.ts | 16 +- tests/gateway-target.test.ts | 229 - tests/helpers/internal-fetch.ts | 2 - tests/integration-lease.test.ts | 17 +- tests/internal-auth.test.ts | 54 +- tests/local-loop.test.ts | 51 +- tests/source-branch.test.ts | 52 + tests/workspace-git.test.ts | 185 - tests/workspace-lifecycle.test.ts | 260 - 128 files changed, 315 insertions(+), 21764 deletions(-) create mode 100644 apps/api/src/db/migrations/003_retire_cloud_ide.sql delete mode 100644 apps/api/src/domain/gateway-target.ts delete mode 100644 apps/api/src/domain/workspace-git.ts delete mode 100644 apps/api/src/domain/workspace-launch.ts delete mode 100644 apps/api/src/domain/workspace-lifecycle.ts delete mode 100644 apps/api/src/workspace-launch-http.ts delete mode 100644 apps/api/src/workspace-lifecycle-http.ts delete mode 100644 apps/api/src/workspace-lifecycle-worker.ts delete mode 100644 apps/ide/.dockerignore delete mode 100644 apps/ide/.gitignore delete mode 100644 apps/ide/Dockerfile delete mode 100644 apps/ide/README.md delete mode 100644 apps/ide/collaboration/Dockerfile delete mode 100644 apps/ide/collaboration/README.md delete mode 100644 apps/ide/collaboration/client-factory.cjs delete mode 100644 apps/ide/collaboration/start-isolated.mjs delete mode 100644 apps/ide/collaboration/test/client-factory.test.cjs delete mode 100644 apps/ide/collaboration/test/isolated-oct.test.mjs delete mode 100644 apps/ide/gateway/README.md delete mode 100644 apps/ide/gateway/git-credentials.mjs delete mode 100644 apps/ide/gateway/main.mjs delete mode 100644 apps/ide/gateway/package-lock.json delete mode 100644 apps/ide/gateway/package.json delete mode 100644 apps/ide/gateway/server.mjs delete mode 100644 apps/ide/gateway/test/gateway-handler.test.mjs delete mode 100644 apps/ide/gateway/test/gateway.test.mjs delete mode 100644 apps/ide/package-lock.json delete mode 100644 apps/ide/package.json delete mode 100644 apps/ide/policy/README.md delete mode 100644 apps/ide/policy/backend.cjs delete mode 100644 apps/ide/policy/frontend.cjs delete mode 100644 apps/ide/policy/git-credential-endpoint.cjs delete mode 100644 apps/ide/policy/git-workspace.cjs delete mode 100644 apps/ide/policy/managed-plugins.cjs delete mode 100644 apps/ide/policy/managed-plugins.lock.json delete mode 100644 apps/ide/policy/package.json delete mode 100644 apps/ide/policy/plugin-install-frontend.cjs delete mode 100644 apps/ide/policy/plugin-install-policy.cjs delete mode 100644 apps/ide/policy/test/git-workspace.test.cjs delete mode 100644 apps/ide/policy/test/plugin-install-policy.test.cjs delete mode 100644 apps/ide/scripts/catalog-builtin-plugins.mjs delete mode 100644 apps/ide/scripts/download-python-debugger.mjs delete mode 100644 apps/ide/scripts/python-debugger.lock.json delete mode 100644 apps/ide/scripts/start.mjs delete mode 100644 apps/ide/scripts/verify-managed-plugins.mjs delete mode 100644 apps/provisioner/test/workspace-lifecycle.test.mjs delete mode 100644 apps/provisioner/test/workspaces.test.mjs delete mode 100644 apps/provisioner/workspace-lifecycle.mjs delete mode 100644 apps/provisioner/workspaces.mjs delete mode 100644 apps/web/src/app/ide/[id]/launch/route.ts delete mode 100644 infra/oct/Dockerfile delete mode 100644 infra/oct/package-lock.json delete mode 100644 infra/oct/package.json delete mode 100644 scripts/dev-ide.mjs delete mode 100644 tests/gateway-target.test.ts create mode 100644 tests/source-branch.test.ts delete mode 100644 tests/workspace-git.test.ts delete mode 100644 tests/workspace-lifecycle.test.ts 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 5373dfa..d5b703c 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 9050450..37dc503 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/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..fa50ec0 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 { 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/control-plane.ts b/apps/api/src/domain/control-plane.ts index f78077e..77849ed 100644 --- a/apps/api/src/domain/control-plane.ts +++ b/apps/api/src/domain/control-plane.ts @@ -387,11 +387,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 ?? []; diff --git a/apps/api/src/domain/entitlements.ts b/apps/api/src/domain/entitlements.ts index c44fcd2..0df35d3 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 { @@ -307,7 +306,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/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/releases.ts b/apps/api/src/domain/releases.ts index 8b12e70..136bcf9 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, @@ -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, @@ -398,7 +396,7 @@ export class Releases { 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)); + applicationUrlFor(environment, this.env); assertApplicationConfigured(release, this.env); if ( digest(releaseBinding(release)) !== release.bindingDigest || 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 5b52b5a..ee1779e 100644 --- a/apps/api/src/http.ts +++ b/apps/api/src/http.ts @@ -29,10 +29,9 @@ import { 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'; @@ -41,11 +40,10 @@ import { WishReports } from './domain/wish-report.js'; import { Connections } from './domain/connections.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'; @@ -153,17 +151,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) { @@ -684,44 +671,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') @@ -871,63 +820,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 2b4abb0..f25af6e 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() { @@ -39,7 +36,7 @@ export async function bootstrap() { service.skills.startHarvesting(); const telemetry = await observability(); @Module({ - controllers: [ApiController, InternalController, WorkspaceLifecycleController, WorkspaceLaunchController], + controllers: [ApiController, InternalController], providers: [{ provide: Services, useValue: service }], }) class AppModule {} @@ -180,8 +177,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); @@ -192,7 +187,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 4ed6d0e..2802b26 100644 --- a/apps/git-service/src/service.ts +++ b/apps/git-service/src/service.ts @@ -22,7 +22,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}\/$/; @@ -39,7 +39,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 ed9872e..822f63e 100644 --- a/apps/provisioner/local.mjs +++ b/apps/provisioner/local.mjs @@ -66,7 +66,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. @@ -90,11 +89,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; } @@ -122,10 +116,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 { @@ -229,24 +220,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 74f03cd..e59aa39 100644 --- a/apps/provisioner/test/local.test.mjs +++ b/apps/provisioner/test/local.test.mjs @@ -220,21 +220,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/globals.css b/apps/web/src/app/globals.css index dcb49d4..bc826bc 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); @@ -2257,13 +2215,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; } 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/features/dashboard.tsx b/apps/web/src/features/dashboard.tsx index 54c3b5b..5b24163 100644 --- a/apps/web/src/features/dashboard.tsx +++ b/apps/web/src/features/dashboard.tsx @@ -1,6 +1,6 @@ 'use client'; import Link from 'next/link'; -import { ArrowRight, CircleAlert, GitBranch, Laptop, Plus, Settings2 } from 'lucide-react'; +import { ArrowRight, CircleAlert, GitBranch, Plus, Settings2 } from 'lucide-react'; import { formatNumber, useResource } from '@/lib/api'; import { resourceState } from '@/lib/readiness'; import type { Dashboard } from '@/lib/types'; @@ -151,10 +151,10 @@ export function DashboardView() { }, { number: '03', - Icon: Laptop, - title: '打开云 IDE', - text: '在云端开发环境中构建与协作。', - href: '/projects', + Icon: Plus, + title: '提交第一个愿望', + text: '写下目标和验收标准,Agent 实现后经验证合入。', + href: '/runs/new', }, ].map(({ number, Icon, title, text, href }) => ( diff --git a/apps/web/src/features/projects.tsx b/apps/web/src/features/projects.tsx index 6fbbed2..5f8eacf 100644 --- a/apps/web/src/features/projects.tsx +++ b/apps/web/src/features/projects.tsx @@ -1,10 +1,10 @@ 'use client'; -import { useRef, useState } from 'react'; +import { useState } from 'react'; import Link from 'next/link'; import { useRouter } from 'next/navigation'; -import { ArrowRight, ArrowUpRight, FolderGit2, GitBranch, Laptop, Plus, Search, Settings2 } from 'lucide-react'; +import { ArrowRight, ArrowUpRight, FolderGit2, GitBranch, Plus, Search, Settings2 } from 'lucide-react'; import { formatTime, messageOf, mutateApi, safeUrl, useResource } from '@/lib/api'; -import type { IdeBranch, Identity, Project, Run, Workspace } from '@/lib/types'; +import type { Identity, Project, Run } from '@/lib/types'; import { Button, ButtonLink, @@ -24,7 +24,6 @@ import { RunTable } from '@/components/run-table'; import { ProjectSettings } from './project-settings'; import { LessonsPanel } from './lessons'; import { SkillsPanel } from './skills'; -import { browserId } from '@/lib/browser-id'; export function ProjectsView({ create = false }: { create?: boolean }) { const { data, error, isLoading, mutate } = useResource('/projects'); const [search, setSearch] = useState(''); @@ -171,8 +170,6 @@ export function ProjectView({ id }: { id: string }) { const mayWish = identity.data?.permissions?.wish !== 'none'; const projects = useResource('/projects'); const runs = useResource(`/runs?project=${id}`, 10000); - const workspaces = useResource(`/projects/${id}/workspaces`, 10000); - const branches = useResource(`/projects/${id}/branches`, 30000); const projectResource = useResource(`/projects/${id}`); const project = projectResource.data ?? projects.data?.find(item => item.id === id); const [showSettings, setShowSettings] = useState(false); @@ -190,18 +187,6 @@ export function ProjectView({ id }: { id: string }) { setBusy(false); } } - async function createWorkspace() { - setBusy(true); - setActionError(''); - try { - await mutateApi(`/projects/${id}/workspaces`, {}); - await workspaces.mutate(); - } catch (error) { - setActionError(messageOf(error)); - } finally { - setBusy(false); - } - } if (projects.isLoading) return ; if (projects.error) return void projects.mutate()} />; if (!project) @@ -239,139 +224,76 @@ export function ProjectView({ id }: { id: string }) { } /> -
- -
- - {safeUrl(project.repositoryUrl) ? ( - - {project.repositoryUrl} - - - ) : ( - (project.repositoryUrl ?? '尚未关联') - )} - - - - - {project.targetBranch} - - - - - - - {project.codeReview?.paths.length ? ( - <> - 后端代码 {project.codeReview.paths.join('、')} - {project.codeReview.exceptPaths.length ? ( - <> - (放行 {project.codeReview.exceptPaths.join('、')}) - - ) : null} - 算后端代码:只能改前端的人碰不到它,其他人改到它时按各自的权限直接合入或先审核(见 - - 成员与权限 - - ) - - ) : ( - '不区分前后端,验证通过后直接合入' - )} - - {formatTime(project.createdAt)} - - {project.id} - -
- {project.repositoryStatus && project.repositoryStatus !== 'ready' ? ( - <> - - {project.repositoryError ?? '平台 Git 仓库尚未创建,提交的愿望会等待仓库就绪。'} - -
- -
- - ) : null} -
- }> -

- 在 IDE 中提交并推送到 ide/ 开头的分支(默认 ide/work),再从该分支提交愿望: - 验证通过后连同 Agent 的改动一起合入 {project.targetBranch}。 -

- {branches.data?.length ? ( -
    - {branches.data.map(branch => ( -
  • - - {branch.name} - - {branch.commit.slice(0, 7)} · {formatTime(branch.updatedAt)} - - {mayWish ? ( - - 提交愿望合入 - - ) : null} -
  • - ))} -
- ) : null} - {workspaces.data?.length ? ( -
- {workspaces.data.map(workspace => ( - { - await workspaces.mutate( - current => current?.map(item => (item.id === updated.id ? { ...item, ...updated } : item)), - { revalidate: false }, - ); - void workspaces.mutate(); - }} - /> - ))} + +
+ + {safeUrl(project.repositoryUrl) ? ( + + {project.repositoryUrl} + + + ) : ( + (project.repositoryUrl ?? '尚未关联') + )} + + + + + {project.targetBranch} + + + + + + + {project.codeReview?.paths.length ? ( + <> + 后端代码 {project.codeReview.paths.join('、')} + {project.codeReview.exceptPaths.length ? ( + <> + (放行 {project.codeReview.exceptPaths.join('、')}) + + ) : null} + 算后端代码:只能改前端的人碰不到它,其他人改到它时按各自的权限直接合入或先审核(见 + + 成员与权限 + + ) + + ) : ( + '不区分前后端,验证通过后直接合入' + )} + + {formatTime(project.createdAt)} + + {project.id} + +
+ {project.repositoryStatus && project.repositoryStatus !== 'ready' ? ( + <> + + {project.repositoryError ?? '平台 Git 仓库尚未创建,提交的愿望会等待仓库就绪。'} + +
+
- ) : ( - <> - 尚无可用的 IDE 会话。需要先连接支持工作空间的运行环境。 -
- -
- - )} - {workspaces.error ? ( -

- {workspaces.error.status === 404 ? '工作空间服务尚未启用。' : workspaces.error.message} -

- ) : null} - -
-
+ + ) : null} + +
); } - -function WorkspaceRow({ - workspace, - onChanged, -}: { - workspace: Workspace; - onChanged: (workspace: Workspace) => Promise; -}) { - const [confirmPause, setConfirmPause] = useState(false); - const [busy, setBusy] = useState(false); - const [error, setError] = useState(''); - const operationKey = useRef<{ action: 'pause' | 'resume'; key: string } | null>(null); - const managed = workspace.managedBy === 'wishforge-provisioner'; - const reconciling = ['waiting', 'pausing', 'resuming', 'unknown'].includes(workspace.status); - function closePause() { - if (busy) return; - setConfirmPause(false); - setError(''); - } - async function change(action: 'pause' | 'resume') { - if (busy || !managed) return; - if (action === 'pause' && workspace.status !== 'ready') { - setError('工作区状态已变化,请等待对账完成后重试。'); - return; - } - if (operationKey.current?.action !== action) { - operationKey.current = { action, key: browserId() }; - } - setBusy(true); - setError(''); - try { - const updated = await mutateApi( - `/workspaces/${workspace.id}/lifecycle`, - { action, confirmation: 'change-workspace-lifecycle' }, - 'POST', - operationKey.current.key, - ); - if ( - updated.id !== workspace.id || - !['ready', 'paused', 'pausing', 'resuming', 'unknown'].includes(updated.status) - ) { - throw new Error('控制面返回了无法确认的工作区状态,请刷新后核对。'); - } - await onChanged(updated); - operationKey.current = null; - setConfirmPause(false); - } catch (error) { - setError(messageOf(error)); - } finally { - setBusy(false); - } - } - return ( -
-
-
- 开发环境 - - {workspace.reason ?

{workspace.reason}

: null} - {reconciling ?

工作区对账中,确认完成后才能打开 IDE。

: null} - {workspace.status === 'paused' ?

工作区已暂停,已保存的文件保留。

: null} -
-
- {workspace.status === 'ready' ? ( - - 打开 IDE - - - ) : !reconciling && workspace.status !== 'paused' ? ( - 环境尚未就绪 - ) : null} - {managed && workspace.status === 'ready' ? ( - - ) : null} - {managed && workspace.status === 'paused' ? ( - - ) : null} -
-
- {!confirmPause ? : null} - {confirmPause ? ( - -
- - {workspace.id} - - 暂停会结束终端和调试进程,编辑器中未保存的修改会丢失;已保存的文件保留在工作区存储中。 - -
- - -
-
-
- ) : null} -
- ); -} diff --git a/apps/web/src/features/runs.tsx b/apps/web/src/features/runs.tsx index 83301da..b94afad 100644 --- a/apps/web/src/features/runs.tsx +++ b/apps/web/src/features/runs.tsx @@ -27,7 +27,6 @@ import { downloadApi, formatTime, messageOf, mutateApi, safeUrl, shortId, useRes import type { CommandEvidence, Evidence, - IdeBranch, Identity, RunArtifacts, RunDelivery, @@ -432,7 +431,6 @@ export function NewWishView() { const [chosenMaxTokens, setMaxTokens] = useState(); const [maxMinutes, setMaxMinutes] = useState(30); const [maxRepairRounds, setMaxRepairRounds] = useState(3); - const [sourceBranch, setSourceBranch] = useState(''); const [busy, setBusy] = useState(false); const [error, setError] = useState(''); const [idempotencyKey] = useState(browserId); @@ -447,8 +445,6 @@ export function NewWishView() { const query = new URLSearchParams(window.location.search); const selected = query.get('project'); if (selected) setProjectId(selected); - const branch = query.get('branch'); - if (branch) setSourceBranch(branch); }, []); const effectiveProject = projectId || projects.data?.[0]?.id || ''; const project = projects.data?.find(item => item.id === effectiveProject); @@ -469,8 +465,6 @@ export function NewWishView() { const scope = wishScopeFor(identity.data, project); const mayWish = scope !== 'none'; const maxTokens = chosenMaxTokens ?? (localPoc && provider === 'claude-code' ? 100000000 : 300000); - const branches = useResource(effectiveProject ? `/projects/${effectiveProject}/branches` : null); - const targetBranch = projects.data?.find(project => project.id === effectiveProject)?.targetBranch ?? 'main'; const selectedProvider = providers.data?.find(item => item.id === provider); const providerReady = wishProviderReady(selectedProvider, providers.error, projects.error); // Executors this deployment cannot run stay out of the way; the chosen one always shows. @@ -525,7 +519,6 @@ export function NewWishView() { provider, ...(model ? { model } : {}), budget: { maxTokens, maxMinutes, maxRepairRounds }, - ...(sourceBranch ? { sourceBranch } : {}), ...(scopePolicy ? { frontendOnly: frontendOnly || scope === 'frontend' } : {}), }, 'POST', @@ -556,7 +549,6 @@ export function NewWishView() { value={effectiveProject} onChange={event => { setProjectId(event.target.value); - setSourceBranch(''); setProvider(undefined); }} > @@ -596,22 +588,6 @@ export function NewWishView() { onChange={setFrontendOnly} /> ) : null} - - - {formatNumber(entitlement.counts.projects)} / {formatNumber(entitlement.limits.maxProjects)} - - {formatNumber(entitlement.counts.workspaces)} / {formatNumber(entitlement.limits.maxWorkspaces)} - {formatNumber(entitlement.counts.reservedExecutionSlots)} /{' '} {formatNumber(entitlement.limits.maxConcurrentRuns)} diff --git a/apps/web/src/lib/local-access.test.ts b/apps/web/src/lib/local-access.test.ts index 196e49c..75e857f 100644 --- a/apps/web/src/lib/local-access.test.ts +++ b/apps/web/src/lib/local-access.test.ts @@ -170,8 +170,8 @@ describe('local operator browser boundary', () => { vi.stubEnv('WF_LOCAL_ALLOWED_ORIGINS', ''); expect(localRequestAllowed(request())).toBe(false); }); - it('protects pages, API reads, streams, IDE and callback routes while leaving login and bundles accessible', async () => { - for (const path of ['/', '/runs/new', '/ide/id/launch', '/login/callback']) { + it('protects pages, API reads, streams and callback routes while leaving login and bundles accessible', async () => { + for (const path of ['/', '/runs/new', '/login/callback']) { const result = await proxy(request(path)); expect(result.status).toBe(307); expect(new URL(result.headers.get('location')!).pathname).toBe('/login'); diff --git a/apps/web/src/lib/types.ts b/apps/web/src/lib/types.ts index ae6ef6e..7fff4a6 100644 --- a/apps/web/src/lib/types.ts +++ b/apps/web/src/lib/types.ts @@ -37,8 +37,6 @@ export type Project = { export type { ProviderId } from '@wishforge/contracts'; import type { ProviderId } from '@wishforge/contracts'; import type { AccountType, Permissions } from '@wishforge/contracts/permissions'; -/** A branch people pushed from the IDE; a wish starting from it verifies and merges it. */ -export type IdeBranch = { name: string; commit: string; updatedAt: string }; export type Run = { id: string; projectId: string; @@ -209,19 +207,6 @@ export type ProviderConnection = { status: string; createdAt: string; }; -export type Workspace = { - managedBy?: 'wishforge-provisioner' | 'local-provisioner'; - lifecycle?: { - revision: number; - desired: 'paused' | 'running'; - state: 'queued' | 'unknown' | 'observing' | 'complete'; - }; - id: string; - projectId: string; - status: 'unconfigured' | 'requested' | 'ready' | 'pausing' | 'paused' | 'resuming' | 'unknown'; - url?: string; - reason?: string; -}; export type Lesson = { id: string; projectId: string; diff --git a/apps/web/src/lib/waiting.ts b/apps/web/src/lib/waiting.ts index 667d281..e17f8e9 100644 --- a/apps/web/src/lib/waiting.ts +++ b/apps/web/src/lib/waiting.ts @@ -21,8 +21,7 @@ export const waitingGuides: Record = { }, git_storage: { title: '项目仓库未就绪', - action: - '在项目页重试仓库创建或改用可访问的 HTTPS 仓库;起点分支不存在时,先在 IDE 中推送这个分支。然后点击「继续」。', + action: '在项目页重试仓库创建或改用可访问的 HTTPS 仓库;起点分支不存在时,先推送这个分支。然后点击「继续」。', link: project, resumable: true, }, diff --git a/connectors/README.md b/connectors/README.md index 948d3c3..1d65d6d 100644 --- a/connectors/README.md +++ b/connectors/README.md @@ -4,7 +4,7 @@ WorkBuddy、Codex 等客户端通过 MCP(Streamable HTTP)接入,以登录 - 地址:本地为 `http://127.0.0.1:4000/mcp`,生产为 API 的 HTTPS 地址加 `/mcp`(不是 `/api/mcp`)。 - 认证:OAuth(授权码 + PKCE)。未认证请求返回 401,`WWW-Authenticate` 中给出受保护资源元数据地址 `/.well-known/oauth-protected-resource`,其中列出授权服务器。本地授权服务器是 Keycloak:`http://127.0.0.1:4100/realms/wishforge`(发现文档在 `/realms/wishforge/.well-known/openid-configuration`)。令牌的 issuer、有效期与 `wishforge-api` audience 都会校验,租户成员资格与工具权限在服务端检查。 -- 工具:`list_projects`、`submit_wish`、`get_run`、`get_run_events`、`answer_question`、`control_run`、`get_delivery`、`request_release`。工具与 Web 共用同一套领域逻辑;通过工具做出的修改在审计中记为真实用户。`submit_wish` 可以带 `sourceBranch`(例如在 IDE 中推送的 `ide/work`),运行从这个分支开始,验证后合入目标分支。 +- 工具:`list_projects`、`submit_wish`、`get_run`、`get_run_events`、`answer_question`、`control_run`、`get_delivery`、`request_release`。工具与 Web 共用同一套领域逻辑;通过工具做出的修改在审计中记为真实用户。`submit_wish` 可以带 `sourceBranch`(例如自己推送到项目仓库的分支),运行从这个分支开始,验证后合入目标分支。 ## Codex diff --git a/docs/architecture.md b/docs/architecture.md index 044d20e..9674a8b 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -11,7 +11,6 @@ flowchart LR subgraph Clients[入口] Web[Web 工作台
apps/web] MCPC[WorkBuddy / Codex
MCP 客户端] - IDE[云 IDE 浏览器] end subgraph Control[控制面] API[控制面 API
apps/api] @@ -31,14 +30,10 @@ flowchart LR RUN[Runner
apps/runner] APP[应用] end - GW[IDE 网关
apps/ide/gateway] - THEIA[Theia 工作区] LLM[模型服务商] Web -->|BFF /api → /v1| API MCPC -->|/mcp OAuth| API - IDE --> GW --> THEIA - GW -->|授权| API API --- PG API -->|outbox 派发| PROV API -->|signalWithStart| TMP @@ -64,8 +59,8 @@ flowchart LR | 组件 | 目录 | 职责 | |---|---|---| -| Web 工作台 | `apps/web` | Next.js App Router。BFF:OIDC 会话(加密 Cookie)、`/api/*` 代理到 API 的 `/v1/*`、IDE 启动跳转。页面:概览、项目、运行、发布与审批、环境、执行器、用量。 | -| 控制面 API | `apps/api` | NestJS(Express)。`/v1`(人与连接器)、`/internal`(执行身份)、`/mcp`、`/provider-proxy`、`/health` `/readyz` `/metrics`。领域逻辑在 `src/domain`,后台循环:派发器、资源回收、工作区生命周期。 | +| Web 工作台 | `apps/web` | Next.js App Router。BFF:OIDC 会话(加密 Cookie)、`/api/*` 代理到 API 的 `/v1/*`。页面:概览、项目、运行、发布与审批、环境、执行器、用量。 | +| 控制面 API | `apps/api` | NestJS(Express)。`/v1`(人与连接器)、`/internal`(执行身份)、`/mcp`、`/provider-proxy`、`/health` `/readyz` `/metrics`。领域逻辑在 `src/domain`,后台循环:派发器、资源回收。 | | 契约 | `packages/contracts` | 领域类型、zod 输入校验、错误类型、等待原因枚举、规范化 JSON(签名与摘要的唯一实现)。 | | Agent 配置 | `packages/agent` | Agent 配置(Bundle)的 schema 与内容摘要、提示词组装(目标、验收标准、修复反馈、项目经验)。 | | Worker | `apps/worker` | Temporal worker,按角色运行:`coordinator`(工作流与状态同步)、`executor`(调用执行器)、`verifier`(验证、集成、构建)、`deployer`(创建发布)。 | @@ -73,9 +68,8 @@ flowchart LR | 平台 Git | `apps/git-service` | Smart HTTP Git 服务;仓库范围、读写分离的短期令牌。 | | GitHub | `packages/github` | GitHub App 客户端:安装令牌、PR、合并。 | | 产物存储 | `packages/artifacts` | S3 兼容的内容寻址存储,用于检查点 bundle。 | -| Provisioner | `apps/provisioner` | 为运行代次创建 executor/verifier,为 IDE 创建工作区。两个后端:`local`(开发,宿主机进程)与 `kubernetes`(生产,Kata Job + PVC)。 | +| Provisioner | `apps/provisioner` | 为运行代次创建 executor/verifier。两个后端:`local`(开发,宿主机进程)与 `kubernetes`(生产,Kata Job + PVC)。 | | Runner | `apps/runner` | 部署在目标环境侧,主动拉取 Ed25519 签名的部署任务并回报结果。 | -| IDE | `apps/ide` | Theia 1.76 应用、策略扩展(扩展白名单)、鉴权网关(`gateway/`)、按工作区隔离的 OCT 协作(`collaboration/`)。 | ## 3. 运行状态机 @@ -248,18 +242,9 @@ sequenceDiagram - Runner 拉取任务时,跳过已经失效的就绪发布(运行取消、需求或代码变化、配置或审批失效),把它标记为失败并让对应运行回到等待,后面的发布照常部署;运行暂停中的就绪发布保留,继续运行后可能重新有效。 - 审批 24 小时内有效;过期后发布失败,运行可以继续并重新请求发布。 -### 4.5 云 IDE +### 4.5 从已有分支开始的愿望 -1. 用户在项目页请求工作区:API 写入 workspace 记录与 outbox(`workspace.provision`)。 -2. 派发器调用 provisioner `POST /workspaces`,平台托管仓库的项目同时带上仓库地址:`kubernetes` 后端创建 Kata Deployment、PVC、Service 与 NetworkPolicy(入站只允许网关;出站只有 DNS,有仓库时再放行平台 Git);`local` 后端返回本机 Theia 地址。 -3. 用户点击「打开 IDE」:Web 调用 API `/v1/workspaces/:id/launch`,API 向网关申请一次性启动码,浏览器跳转网关 `/session?code=`。 -4. 网关为每个 HTTP 请求与 WebSocket 连接向 API 校验成员资格与角色,并定期复核已打开的连接;撤销后立即断开。 -5. 会话建立后,网关以该用户的身份向 API 申请 15 分钟的仓库写令牌(`/internal/workspaces/:id/git-credential`,每次都复核成员资格与角色),交给工作区后端(Theia 策略扩展的 `/wishforge-internal/git-credential`,需要只有网关持有的 Theia 连接令牌,浏览器无法经网关访问该路径)。后端把令牌写进仓库之外的 Git 配置片段(Kubernetes 中是内存卷),由克隆通过 `include.path` 引用;首次收到时把目标分支克隆到以项目命名的文件夹。会话期间网关在令牌到期前 5 分钟续期,没有人打开 IDE 时令牌自然过期。 -6. IDE 与 Agent 之间只通过 Git commit 交接,人的改动也要经过验证才进入目标分支: - - **推送范围**:IDE 的令牌只能推送 `ide/` 开头的分支。平台 Git 用 pre-receive 钩子执行这条限制,克隆默认在 `ide/work` 分支上工作。 - - **合入**:愿望可以指定起点分支(`sourceBranch`),运行从该分支的最新提交开始,Agent 在这些改动上继续工作。之后的验证、修复与合入照常进行:目标分支是起点的祖先时快进,否则合并后重新验证,冲突按修复轮处理。发布风险按目标分支合入前后的全部差异计算,包括起点分支带来的提交。 - - **提交身份**:取最近打开会话的用户(OIDC 的 name/email),可以用 `git config` 覆盖。 - - **外部仓库**:如 GitHub 的仓库不克隆,那里的改动应走 PR。 +愿望可以指定起点分支(API 与 MCP 的 `sourceBranch`,例如自己推送到项目仓库的分支),运行从该分支的最新提交开始,Agent 在这些改动上继续工作。之后的验证、修复与合入照常进行:目标分支是起点的祖先时快进,否则合并后重新验证,冲突按修复轮处理。发布风险按目标分支合入前后的全部差异计算,包括起点分支带来的提交。人的改动因此也要经过验证才进入目标分支。工作台不提供选择起点的入口。 ### 4.6 经验沉淀与 Agent 配置 @@ -303,7 +288,6 @@ PostgreSQL,所有租户数据表都启用强制行级安全(`app.tenant_id` | `environment` | 类型、架构、是否生产、配置版本、密钥引用、应用地址、当前与活跃发布 | | `release` / `approval` | 发布绑定与状态;审批绑定摘要、过期时间、决定人 | | `runner` / `runner_task` | Runner 注册(令牌哈希)、签名任务与回执 | -| `workspace` | IDE 工作区状态、上游地址、生命周期 | | `provider_connection` | 加密的 BYOK 凭据 | | `provider_proxy_request` | 模型代理请求的预留、结算与结果 | | `github_operation` | PR 与合并操作 | @@ -321,11 +305,11 @@ PostgreSQL,所有租户数据表都启用强制行级安全(`app.tenant_id` |---|---|---| | `/v1/*` | Web BFF、脚本 | OIDC access token(`azp` 等于 Web 客户端时为 human,否则为 connector);开发模式可用开发令牌 | | `/mcp` | WorkBuddy、Codex 等 | OIDC access token,身份固定为 connector | -| `/internal/*` | worker、verifier、deployer、Runner、IDE 网关 | 运行级 JWT、静态服务令牌(限定租户与路由)、Runner 令牌、网关令牌 | +| `/internal/*` | worker、verifier、deployer、Runner | 运行级 JWT、静态服务令牌(限定租户与路由)、Runner 令牌 | | `/provider-proxy/v1/*` | 执行器中的 Codex | 运行级模型代理令牌 | | `/health`、`/readyz`、`/metrics` | 探针、Prometheus | `/metrics` 需要监控令牌 | -`/v1` 主要资源:`projects`(含 `repository`、`workspaces`、`wishes`、`wish-refinements`、`lessons`、`github`、`verification-profile`)、`runs`(含 `events`、`events/stream`、`commands`、`delivery`、`provider-requests`、`code-review`、`revert`)、`lessons`、`releases`(含 `review`、`rollback`)、`approvals`、`environments`(含 `runners`、`application-url`、`deployment-secrets`、`release-policy`、`unlock`)、`local-accounts`(本机部署)、`capabilities`、`workspaces`(`launch`、`lifecycle`)、`provider-connections`、`providers`、`agent-bundles`、`verification-profiles`、`entitlements`、`plans`、`usage`(含 `lines`、`export`)、`admin`。运行列表支持 `project`、`limit`(默认 100,最多 500)与游标 `before`(上一页最后一条的 `createdAt`);其他列表按项目权限过滤后返回。 +`/v1` 主要资源:`projects`(含 `repository`、`wishes`、`wish-refinements`、`lessons`、`github`、`verification-profile`)、`runs`(含 `events`、`events/stream`、`commands`、`delivery`、`provider-requests`、`code-review`、`revert`)、`lessons`、`releases`(含 `review`、`rollback`)、`approvals`、`environments`(含 `runners`、`application-url`、`deployment-secrets`、`release-policy`、`unlock`)、`local-accounts`(本机部署)、`capabilities`、`provider-connections`、`providers`、`agent-bundles`、`verification-profiles`、`entitlements`、`plans`、`usage`(含 `lines`、`export`)、`admin`。运行列表支持 `project`、`limit`(默认 100,最多 500)与游标 `before`(上一页最后一条的 `createdAt`);其他列表按项目权限过滤后返回。 MCP 工具:`list_projects`、`submit_wish`、`get_run`、`get_run_events`、`answer_question`、`control_run`、`get_delivery`、`request_release`。工具与 `/v1` 共用同一套领域逻辑与授权;连接器不能执行人工审批、凭据与环境管理。 @@ -342,7 +326,6 @@ MCP 工具:`list_projects`、`submit_wish`、`get_run`、`get_run_events`、`a | coordinator | 静态服务令牌(限定租户与路由) | 只能查询运行状态、记录等待、请求修复;不能取得执行租约 | | deployer | 静态服务令牌(限定租户与路由) | 只能为已构建的运行取得租约、请求发布并推进到 release | | runner | 每个环境一个令牌(数据库只存哈希,可轮换) | 拉取本环境的签名任务、回报结果 | -| IDE 网关 | 每租户网关令牌 | 签发工作区启动码、查询授权(首次凭用户的 access token,之后按已授权的用户复核)、为有编辑会话的用户申请工作区的仓库写令牌 | 权限:每个人有四项权限(`packages/contracts/src/permissions.ts`):许愿范围 `wish`(`none`、`frontend` 只改前端、`review` 前后端但后端改动要审核、`full` 前后端直接合入)、`reviewCode` 审核代码、`releases` 请求/审批/回滚发布(含 GitHub 合并授权)、`manage` 管理(包含其余全部)。本机部署的个人账号把权限存在 `local_account` 上,创建和修改时按六种账户类型(`admin`、`fullstack`、`reviewed`、`frontend`、`releaser`、`viewer`)或自定义组合给出,角色由权限推出(`manage`→admin,能许愿→developer,能审批发布→deployer,否则 viewer),其余按角色的检查不变;认证时权限随 Actor 带上,修改立即生效。没有个人权限的人(本机管理员、OIDC 用户、早于权限的旧账号)按角色取默认权限:owner/admin 全部,developer 为 `review`(项目的 `codeReview.trustedMembers` 可在该项目把它提到 `full`),deployer 只有 `releases`,viewer 什么都没有。 @@ -370,9 +353,9 @@ Claude Code 以受限模式运行(`--restricted`,权限模式 `dontAsk`) ## 9. 部署拓扑 -**本地开发**(详见 [development.md](development.md)):Compose 提供 PostgreSQL、Temporal、Keycloak、MinIO、镜像仓库;`npm run dev:all` 在宿主机启动 API、Web、平台 Git、coordinator/deployer worker 与 `local` provisioner;IDE 与网关按需启动。 +**本地开发**(详见 [development.md](development.md)):Compose 提供 PostgreSQL、Temporal、Keycloak、MinIO、镜像仓库;`npm run dev:all` 在宿主机启动 API、Web、平台 Git、coordinator/deployer worker 与 `local` provisioner。 -**生产**(详见 [operations.md](operations.md)):控制面(API、Web、Git、coordinator/deployer worker、provisioner、IDE 网关)运行在受信命名空间;运行沙箱与 IDE 工作区运行在独立命名空间的 Kata 节点池;PostgreSQL、Temporal、对象存储与密钥系统使用托管或高可用部署;Runner 部署在各目标环境。 +**生产**(详见 [operations.md](operations.md)):控制面(API、Web、Git、coordinator/deployer worker、provisioner)运行在受信命名空间;运行沙箱运行在独立命名空间的 Kata 节点池;PostgreSQL、Temporal、对象存储与密钥系统使用托管或高可用部署;Runner 部署在各目标环境。 ## 10. 关键决策 @@ -384,14 +367,12 @@ Claude Code 以受限模式运行(`--restricted`,权限模式 `dontAsk`) | ADR-4 | 部署通过出站 Runner 拉取签名任务 | 客户环境不需要开放入站端口,平台不持有客户集群凭据;代价是部署延迟取决于 Runner 轮询间隔。 | | ADR-5 | Agent 客户端通过 MCP 接入 | WorkBuddy、Codex 等原生支持 MCP 与 OAuth,权限沿用用户身份,无需为每个客户端写适配。 | | ADR-6 | RSI 限定在任务、项目与租户范围,晋升由人决定 | 自动的平台级元进化需要基准集、评估器与大量真实运行才有统计意义,在当前阶段不可验证,且有跨租户数据风险。 | -| ADR-7 | IDE 与 Agent 只通过 Git commit 交接 | Git 已经提供精确、可审计的版本身份;IDE 快照、保存屏障等机制复杂且依赖 Theia 内部实现。 | -| ADR-8 | IDE 只推送 `ide/` 分支,由从该分支开始的愿望验证并合入;令牌由网关按会话投递 | 目标分支只经由验证器的合入改变,人工改动与 Agent 改动走同一条验证与发布风险评估路径,也能借助修复轮修好。代价是人工改动要多提交一次愿望才能进入目标分支。工作区自己不能签发凭据,令牌只在有人打开 IDE 时存在,最长 15 分钟。 | +| ADR-7 | ~~IDE 与 Agent 只通过 Git commit 交接~~(已随云 IDE 移除) | 云 IDE(Theia 工作区、IDE 网关、OCT 协作)已从 WishForge 中移除。 | +| ADR-8 | 人工改动经由从其分支开始的愿望验证并合入 | 目标分支只经由验证器的合入改变,人工改动与 Agent 改动走同一条验证与发布风险评估路径,也能借助修复轮修好。代价是人工改动要多提交一次愿望才能进入目标分支。原先 IDE 只能推送 `ide/` 分支、令牌由网关按会话投递的部分随云 IDE 移除。 | ## 11. 已知限制 -- Temporal 连接使用客户端证书(生产必需),每个租户可以使用自己的命名空间(生产中多租户必需)。命名空间之间的授权依赖 Temporal 服务端按证书配置(见 operations.md 第 13 节)。同一租户的沙箱之间没有按任务队列的授权。 -- OCT 协作房间保存在内存中,服务重启后需要重新创建房间;已保存的文件不受影响。 -- Theia 后端与终端共用同一个 UID,同一工作区内的协作者之间没有强隔离;工作区只应授予可信成员编辑权限。 +- Temporal 连接使用客户端证书(生产必需),每个租户可以使用自己的命名空间(生产中多租户必需)。命名空间之间的授权依赖 Temporal 服务端按证书配置(见 operations.md 第 12 节)。同一租户的沙箱之间没有按任务队列的授权。 - `host` 沙箱模式没有任何隔离,只能用于本机开发,并且只能运行你信任的代码与模型。macOS 上运维可以用 `WF_HOST_CHECK_SANDBOX=true` 让受保护检查与依赖安装在 Seatbelt 中运行(主目录内容不可读、只能写工作区与放行的缓存、检查没有网络、平台服务端口始终封锁),证据标记 `checkSandbox: seatbelt`;它不隔离执行器与验证器进程本身,证据仍是 `isolation: host`,生产不接受。上线前在目标机器上运行 `scripts/check-host-check-sandbox.ts` 验收。 - macOS 上,Claude Code 命令沙箱的 Seatbelt 配置固定允许访问系统安全服务(`com.apple.SecurityServer`),所以沙箱中的命令可以查询登录钥匙串:信任 `security` 工具的条目可以被读取,其他条目会弹出授权提示。需要更强的隔离时,用单独的 macOS 用户运行本机服务,或者不打开 `WF_CLAUDE_COMMAND_SANDBOX`。 @@ -416,9 +397,8 @@ Claude Code 以受限模式运行(`--restricted`,权限模式 `dontAsk`) | FR-D5 | `tests/provider-proxy.test.ts` | | FR-J1、FR-J2 | `tests/entitlements-usage.test.ts`、`tests/control-plane.test.ts`(暂停释放预留) | | FR-K2 | `tests/migrations.test.ts`;CI 的 PostgreSQL 任务连续执行两次迁移 | -| FR-H1 | `apps/ide/gateway/test/gateway.test.mjs`、`apps/ide/gateway/test/gateway-handler.test.mjs`、`tests/internal-auth.test.ts` | | FR-C4 | `tests/local-loop.test.ts`(提问 → 等待澄清 → 回答 → 完成)、`packages/agent/test/prompt.test.ts` | -| FR-H2 | `apps/ide/policy/test/git-workspace.test.cjs`(克隆、令牌、`ide/work`)、`apps/ide/gateway/test/gateway-handler.test.mjs`(凭据投递)、`tests/workspace-git.test.ts`、`apps/git-service/test/hooks.test.ts`(`ide/` 推送范围)、`tests/local-loop.test.ts`(IDE 分支经愿望验证合入,发布风险覆盖分支带来的改动) | +| FR-H2(仅起点分支) | `tests/local-loop.test.ts`(从已推送分支开始的愿望验证并合入,发布风险覆盖分支带来的改动) | | FR-K5 | `tests/service-build.test.ts`(构建全部服务并确认每个产物都能加载) | | FR-D7 | `packages/runtime/test/runtime.test.ts`(执行器事件)、`tests/local-loop.test.ts`(事件记录) | | FR-K1 | `apps/provisioner/test/local.test.mjs`(本地执行环境);完整的本地启动按 development.md 手动验证 | diff --git a/docs/cluster-poc-deployment.md b/docs/cluster-poc-deployment.md index a368125..2870ebe 100644 --- a/docs/cluster-poc-deployment.md +++ b/docs/cluster-poc-deployment.md @@ -251,7 +251,7 @@ kubectl --kubeconfig ~/.config/droboticflow/kubeconfigs/poc.config -n wishforge ## 已知限制 -- IDE(Theia、OCT)没有迁移,集群版网页上的 IDE 入口不可用。 +- 云 IDE(Theia、OCT)已从 WishForge 中移除,集群版不再有 IDE 入口。 - 检查 Pod 有网络(见上文)。 - **数据和快照都在同一个节点的同一块本地盘上**。快照能防误删、误改和软件故障,但节点或磁盘损坏时数据和快照会一起丢失;集群里没有可跨节点挂载的存储(没有 StorageClass),目前没有异地副本。 - Temporal 使用开发服务,Web UI 已关闭。 diff --git a/docs/development.md b/docs/development.md index 7b7c7bf..b96a889 100644 --- a/docs/development.md +++ b/docs/development.md @@ -79,33 +79,11 @@ Temporal 控制台在 http://127.0.0.1:8233,可以看到每个运行的工作 每个运行代次的工作目录默认位于 `~/.local/share/wishforge/runs/<租户>/<运行>/<代次>/`,executor 与 verifier 各自使用独立的子目录和令牌。`WF_LOCAL_RUN_ROOT` 可以改到别处,但不能放在本仓库目录下:Node/TypeScript 会沿父目录查找依赖,项目会意外继承平台的类型定义,本地 provisioner 会拒绝这种配置。 -## 5. 云 IDE(可选) - -Theia 是独立安装的应用,首次构建需要几分钟并会下载扩展: - -```bash -npm run ide:install -``` - -```bash -npm run ide:build -``` - -启动 Theia(端口 4300)与 IDE 网关(端口 4400): - -```bash -npm run dev:ide -``` - -在项目页点击「创建开发环境」,本地 provisioner 会把工作区指向本机的 Theia(Theia 未启动时工作区显示为准备中);就绪后点击「打开 IDE」。本地模式下所有工作区共用同一个 Theia 实例和 `.wishforge/ide-workspace` 目录:第一次打开某个项目的工作区时,项目被克隆到其中以项目命名的文件夹,并处在 `ide/work` 分支上。在 IDE 中提交并 `git push` 后,在项目页的 IDE 分支列表点「提交愿望合入」,运行会从这个分支开始,验证通过后合入目标分支。令牌只在 IDE 打开期间有效,只能推送 `ide/` 开头的分支。 - -多人协作需要额外启动 OCT 服务,见 [apps/ide/collaboration/README.md](../apps/ide/collaboration/README.md)。 - -## 6. 通过 MCP 从 Codex / WorkBuddy 许愿 +## 5. 通过 MCP 从 Codex / WorkBuddy 许愿 本地 MCP 地址为 `http://127.0.0.1:4000/mcp`,使用 Keycloak(http://127.0.0.1:4100,realm `wishforge`)做 OAuth。客户端配置见 [connectors/README.md](../connectors/README.md)。 -## 7. 测试与检查 +## 6. 测试与检查 | 命令 | 内容 | |---|---| @@ -113,7 +91,6 @@ npm run dev:ide | `npm run typecheck` | 全部 workspace 与测试代码的类型检查 | | `npm run build:services` | 把 API、worker、Runner 与平台 Git 编译到 `dist/`(镜像运行的就是这些产物;`npm test` 会构建一次并检查每个产物都能加载) | | `npm test` | 单元测试、进程内集成测试与 provisioner 的 Node 测试(不需要外部服务) | -| `npm run test:ide` | IDE 网关、协作服务与策略扩展的 Node 测试(需要先 `npm run ide:install`) | | `npm run test:integration` | 需要本地 Compose 服务的集成测试,见下表 | 集成测试默认跳过,必须显式开启,跳过不算通过: @@ -130,16 +107,16 @@ npm run dev:ide 两个手动脚本: -- `node infra/scripts/smoke.mjs`:检查本地 Compose 服务(PostgreSQL、Temporal、Keycloak、MinIO、镜像仓库、OCT)是否可用。 +- `node infra/scripts/smoke.mjs`:检查本地 Compose 服务(PostgreSQL、Temporal、Keycloak、MinIO、镜像仓库)是否可用。 - `WF_COMPOSE_ACCEPTANCE=true WF_CADDY_BINARY= node --import tsx infra/scripts/compose-acceptance.mjs`:用真实 Docker、本地镜像仓库与 Caddy 验收 Runner 的 Compose 蓝绿部署。它会构建并推送测试镜像,然后部署、切换并回滚,还会验证部署密钥。 两个脚本都使用当前的 Docker 上下文,可以用 `WF_DOCKER_CONTEXT` 指定其他上下文。 -CI(`.github/workflows/ci.yml`)在每次推送与合并请求时运行格式检查、类型检查、`npm test`,在 PostgreSQL 服务上执行两次迁移与集成测试,并运行 IDE 相关的 Node 测试。 +CI(`.github/workflows/ci.yml`)在每次推送与合并请求时运行格式检查、类型检查、`npm test`,在 PostgreSQL 服务上执行两次迁移与集成测试。 在本地 k3s 上以 Kubernetes 方式运行整个平台(每次运行独立的 Pod、网络策略、模型代理),见 [local-k3s.md](local-k3s.md)。 -## 8. 常见问题 +## 7. 常见问题 - **运行停在「执行环境未就绪」**:确认本地 provisioner 已启动(`dev:all` 会启动它),并检查 `.env.local` 中的 `WF_PROVISIONER_URL`。 - **运行停在「验证未配置」**:项目没有验证命令。在项目设置中添加后点击「继续」。 diff --git a/docs/images/architecture-overview.svg b/docs/images/architecture-overview.svg index 21e1369..25d81b5 100644 --- a/docs/images/architecture-overview.svg +++ b/docs/images/architecture-overview.svg @@ -48,24 +48,16 @@ BFF 架构 / OIDC 单点登录 / 仪表盘与运行详情 - + M MCP 客户端集成 Codex / WorkBuddy 直接许愿与进度追踪 - - - - - - 云端 IDE (Theia 1.76) - 沙箱环境直连 / OCT 协作 / 源码调试工作区 - diff --git a/docs/local-browser-access.md b/docs/local-browser-access.md index 602f0e1..bf696ba 100644 --- a/docs/local-browser-access.md +++ b/docs/local-browser-access.md @@ -35,7 +35,7 @@ npm run local:network -- --address 192.168.1.20 --apply 地址必须是当前网卡实际持有的 RFC1918 IPv4。工具只替换相同端口的旧 HTTP 局域网地址,保留回环及其他已有入口;不添加通配符,不修改登录凭据,不创建公网入口。默认只预览;`--apply` 将原配置备份到忽略提交的 `.wishforge/local-poc/network-backups/`,权限 `0600`,然后原子更新根目录 `.env.local`。其他配置保留不变。应用后重启服务,并用新地址登录、刷新项目列表验证。`npm run local:doctor` 可检查网络与服务状态,诊断不会自动授权新地址。 -所有入口包括页面、API、事件流、IDE 启动、交付文件均经过本机会话检查。登录页、框架静态资源和站点图标允许未登录访问。`/api/session` 未登录返回 `401`,因此本机模式的启动探活使用 `/login`。 +所有入口包括页面、API、事件流、交付文件均经过本机会话检查。登录页、框架静态资源和站点图标允许未登录访问。`/api/session` 未登录返回 `401`,因此本机模式的启动探活使用 `/login`。 ## 登录与退出 @@ -60,4 +60,4 @@ npx vitest run apps/web/src/lib/auth.test.ts apps/web/src/lib/local-access.test. npm run typecheck -w @wishforge/web ``` -覆盖凭据权限、密码校验、会话过期与轮换、dev token 隔离、Host/Origin 校验、未登录 API 与 IDE 保护、静态资源访问、全局登录限流及原有 OIDC 行为。 +覆盖凭据权限、密码校验、会话过期与轮换、dev token 隔离、Host/Origin 校验、未登录 API 保护、静态资源访问、全局登录限流及原有 OIDC 行为。 diff --git a/docs/local-k3s.md b/docs/local-k3s.md index 09abe9b..22073b1 100644 --- a/docs/local-k3s.md +++ b/docs/local-k3s.md @@ -11,7 +11,6 @@ | Codex 的命令沙箱 | 起不来(runc Pod 不允许 bubblewrap 创建用户命名空间),Codex 不带它运行,时间线的「Executor started」会注明 | 必须可用,否则运行停在 `infrastructure` 等待 | | 服务之间 | 集群内 HTTP(`WF_ALLOW_INSECURE_HTTP=true`) | HTTPS 与 mTLS | | 登录 | 开发令牌,没有 OIDC;Web 是 Next.js 的开发构建 | OIDC,Web 是生产构建 | -| IDE | 网关在 `localhost` 上经 HTTP 访问;工作区是普通 runc Pod | 网关使用 HTTPS 公网域名;工作区在 Kata 节点池 | | 镜像 | 本地构建,推到虚拟机里的 `localhost:5000` | 私有仓库中经审阅的镜像 | 每次运行的 NetworkPolicy 照常生效(k3s 自带网络策略控制器):沙箱只能访问 DNS、API(含模型代理)、Temporal 与平台 Git。模型调用经集群内 API 的运行级代理转发到你配置的网关。 @@ -19,7 +18,7 @@ ## 前置条件 - macOS 上的 Colima 与 kubectl(`brew install colima kubectl`)。 -- 虚拟机默认 6 CPU、12 GiB 内存、40 GiB 磁盘,可以用 `WF_K3S_CPUS`、`WF_K3S_MEMORY_GIB`、`WF_K3S_DISK_GIB` 调整。全部镜像(含 Theia)构建一次约占 10–15 GB。 +- 虚拟机默认 6 CPU、12 GiB 内存、40 GiB 磁盘,可以用 `WF_K3S_CPUS`、`WF_K3S_MEMORY_GIB`、`WF_K3S_DISK_GIB` 调整。构建会占用虚拟机磁盘,`build` 结束时清理不再使用的镜像,构建缓存保留不超过 10 GB。 - 一个 OpenAI 兼容的模型网关,以及它的 Key 和模型名。Codex 使用流式 `/responses` 与函数工具调用,不是每个模型都支持:先用 `GET <网关>/v1/models` 列出模型,再挑一个试。例如经 LiteLLM 的网关上,`deepseek-v4-pro` 可用。 所有 kubectl 与 docker 命令都显式使用 `colima-wishforge` 上下文。生成的密钥与镜像 digest 保存在 `.wishforge/k3s/`(不进 Git)。几点环境上的注意事项: @@ -37,7 +36,7 @@ node scripts/k3s-local.mjs up ``` -构建 API、worker、平台 Git、provisioner、Web 与 IDE(Theia 工作区、IDE 网关、协作服务)镜像并推送。第一次需要二三十分钟,主要花在 Theia 的依赖安装与构建上: +构建 API、worker、平台 Git、provisioner 与 Web 镜像并推送。第一次要下载基础镜像并安装依赖,耗时较长: ```bash node scripts/k3s-local.mjs build @@ -81,7 +80,7 @@ Web 工作台随 `deploy` 一起部署在集群里,由它在集群内调用 AP node scripts/k3s-local.mjs web ``` -然后打开 ,地址要完全一致:工作台只接受来自部署时登记的地址(`WF_PUBLIC_URL`)的修改请求,换成 `127.0.0.1` 打开,提交愿望等操作会被拒绝。端口与本地开发环境(`npm run dev:all` 的 3000 与 4400)错开,两者可以同时运行。端口被占用时 `web` 会直接报错,用 `WF_K3S_WEB_PORT=<端口>` 重新执行 `deploy`,`web` 就转发到新端口。每次 `deploy` 都会换掉 Web 的 Pod,端口转发随之断开,需要再执行一次 `web`。 +然后打开 ,地址要完全一致:工作台只接受来自部署时登记的地址(`WF_PUBLIC_URL`)的修改请求,换成 `127.0.0.1` 打开,提交愿望等操作会被拒绝。端口与本地开发环境(`npm run dev:all` 的 3000)错开,两者可以同时运行。端口被占用时 `web` 会直接报错,用 `WF_K3S_WEB_PORT=<端口>` 重新执行 `deploy`,`web` 就转发到新端口。每次 `deploy` 都会换掉 Web 的 Pod,端口转发随之断开,需要再执行一次 `web`。 集群里的 Web 是 Next.js 的开发构建(镜像构建参数 `WEB_BUILD=development`)。本地没有 OIDC,每个访问者都以开发令牌的身份登录。这种登录方式只存在于开发构建中,生产镜像是生产构建,不带它。 @@ -91,22 +90,10 @@ Temporal 控制台: kubectl --context colima-wishforge --namespace wishforge-control port-forward service/temporal 8233:8233 ``` -## IDE - -IDE 网关随 `deploy` 一起部署,`web` 同时把它转发到 (端口可用 `WF_K3S_IDE_PORT` 修改,改后重新 `deploy`)。 - -1. 在工作台的项目页创建开发环境。provisioner 在 `wishforge-tenant-demo` 中为这个项目创建 Theia 工作区:一个 Deployment、一个 PVC 和一个协作 sidecar。第一次要拉取镜像,一两分钟后就绪。 -2. 点「打开 IDE」,浏览器经网关进入工作区。 -3. 平台托管的项目第一次打开时被克隆到以项目命名的文件夹,处在 `ide/work` 分支。提交后 `git push`,再在项目页从这个分支提交愿望,验证通过后它会合入目标分支,详见 [apps/ide/README.md](../apps/ide/README.md)。 - -- 工作区只能经网关访问:它的网络策略只放行带 `workspace-gateway` 标签的网关 Pod,出站只允许 DNS 与平台 Git。 -- 30 分钟没有连接时工作区自动暂停(缩容到 0,文件保留在 PVC 中),在项目页可以恢复。 -- 本地集群里平台 Git 与网关走 HTTP,provisioner 只在开发部署且 `WF_ALLOW_INSECURE_HTTP=true` 时接受;生产要求 HTTPS。 - ## 排查 - `kubectl --context colima-wishforge --namespace wishforge-control logs deployment/api` 查看 API;provisioner、`worker-coordinator` 同理。 -- 沙箱 Job 在 `wishforge-tenant-demo` 命名空间,名称形如 `wf-<哈希>-executor` / `-verifier`;IDE 工作区也在这里,名称形如 `wf-ide-<哈希>`。运行进入等待或结束后,Job 会被释放,要看它的日志得趁运行还在进行。 +- 沙箱 Job 在 `wishforge-tenant-demo` 命名空间,名称形如 `wf-<哈希>-executor` / `-verifier`。运行进入等待或结束后,Job 会被释放,要看它的日志得趁运行还在进行。 - 运行时间线(`smoke` 的输出,或 `GET /v1/runs//events`)记录 Agent 执行的每条命令及其退出码,模型请求经代理记账。 - `up` 在下载 k3s 时失败(GitHub 的下载偶尔中断):直接重新执行 `up`,它会先停下装了一半的虚拟机再重新启动。 - 改了设置(例如换模型)只需重新 `deploy`:读取设置与密钥的 Pod 带着它们的摘要,摘要变了就会滚动更新。 diff --git a/docs/local-poc-operations.md b/docs/local-poc-operations.md index 8743f58..c93cc66 100644 --- a/docs/local-poc-operations.md +++ b/docs/local-poc-operations.md @@ -26,7 +26,7 @@ node scripts/local-poc-service.mjs start ## 入口与登录 -本机入口为 `http://localhost:3000`;同一可达局域网的其他设备使用 `http://本机局域网IP:3000`。是否跨网可达由现有路由和防火墙决定。当前部署另有经批准的 Cloudflare 临时 HTTPS 隧道,地址以维护者提供的链接和私有入口白名单为准;它只代理 Web,不公开内部 API 或 IDE。 +本机入口为 `http://localhost:3000`;同一可达局域网的其他设备使用 `http://本机局域网IP:3000`。是否跨网可达由现有路由和防火墙决定。当前部署另有经批准的 Cloudflare 临时 HTTPS 隧道,地址以维护者提供的链接和私有入口白名单为准;它只代理 Web,不公开内部 API。 本机管理员的登录凭据保存在 `.wishforge/local-access.json`,只允许本机当前用户读取(0600)。文件含用户名、密码和会话签名材料,不应上传到 Gitea、放入网页静态目录或复制到日志。文件不存在时可运行 `node scripts/setup-local-access.mjs` 创建;重复运行保留已有凭据。`.env.local` 的 `WF_LOCAL_ACCESS_FILE` 指向该文件的绝对路径。 @@ -102,7 +102,7 @@ LaunchAgent 随当前用户登录运行,退出登录后停止;电脑关机 - 读不到主目录里的文件内容,只能读工作区和下面放行的路径(文件是否存在等元数据仍然可见,路径才能正常解析); - 只能写工作区、下面放行的缓存,以及每条命令独享并在结束后删除的临时目录,任何时候都不能写工作区的 `.git`; - 只有依赖安装能联网;检查没有网络,打开 `WF_HOST_CHECK_LOOPBACK` 后可以使用本机回环端口; -- 平台自己的服务端口(API、Temporal 及其网页、数据库、对象存储、provisioner、Git 服务、IDE、网页控制台)在任何情况下都连不上,启动时按 `.env.local` 中的地址自动列出,也可以用 `WF_HOST_CHECK_BLOCKED_PORTS` 补充; +- 平台自己的服务端口(API、Temporal 及其网页、数据库、对象存储、provisioner、Git 服务、网页控制台)在任何情况下都连不上,启动时按 `.env.local` 中的地址自动列出,也可以用 `WF_HOST_CHECK_BLOCKED_PORTS` 补充; - 检查时钥匙串服务不应答。 1. 确认没有执行中的愿望,运行检查。它不调用模型,也不部署:先逐项确认上面这些限制在这台机器上生效,再在沙箱里对最近一次构建的 droboticflow 源码运行 POC 的安装和全部检查: diff --git a/docs/operations.md b/docs/operations.md index 6c5e1cc..92eb23b 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -2,24 +2,24 @@ 本文面向部署和运维 WishForge 的平台运维人员。本地开发见 [development.md](development.md),组件与信任模型见 [architecture.md](architecture.md)。 -> 现状说明:仓库提供了生产所需的组件、镜像目标与 Kubernetes 基线(`infra/k8s/base`),但它们**尚未在真实集群上完成验收**(Kata 执行、网络隔离、Runner 部署与回滚、OAuth 客户端接入)。上线前请按第 12 节逐项验收。 +> 现状说明:仓库提供了生产所需的组件、镜像目标与 Kubernetes 基线(`infra/k8s/base`),但它们**尚未在真实集群上完成验收**(Kata 执行、网络隔离、Runner 部署与回滚、OAuth 客户端接入)。上线前请按第 11 节逐项验收。 ## 1. 生产前提 | 依赖 | 要求 | |---|---| -| Kubernetes | 控制面命名空间 + 每个租户独立的运行/工作区命名空间;运行沙箱与 IDE 工作区所在节点池安装 Kata(`RuntimeClass`),CNI 必须执行 NetworkPolicy | +| Kubernetes | 控制面命名空间 + 每个租户独立的运行命名空间;运行沙箱所在节点池安装 Kata(`RuntimeClass`),CNI 必须执行 NetworkPolicy | | PostgreSQL | 16 或以上,高可用并开启 PITR。迁移使用管理员连接(超级用户或带 `BYPASSRLS`),运行时使用 `wishforge_app`(非超级用户、`NOBYPASSRLS`) | -| Temporal | 生产持久化存储;必须开启 mTLS。多个租户共用一个集群时,每个租户一个命名空间,并由服务端按客户端证书授权命名空间(见第 13 节) | +| Temporal | 生产持久化存储;必须开启 mTLS。多个租户共用一个集群时,每个租户一个命名空间,并由服务端按客户端证书授权命名空间(见第 12 节) | | 对象存储 | S3 兼容,开启 KMS 加密(`S3_SSE=aws:kms`),禁止公开访问 | | 镜像仓库 | 私有仓库;所有镜像按 digest 引用 | | 身份服务 | OIDC(Keycloak 或企业 IdP),Web 客户端与 MCP 客户端分别注册;Web 客户端需要签发 refresh token 才能自动续期会话 | | 密钥系统 | Vault:KV v2 用于部署密钥,Transit(可选)用于 BYOK 加密 | -| 入口 | Web、API、IDE 网关的 TLS 与域名;Runner 到 API 的 mTLS | +| 入口 | Web、API 的 TLS 与域名;Runner 到 API 的 mTLS | ## 2. 部署模式 -API、平台 Git、worker、provisioner 与 Runner 都要求显式设置 `WF_DEPLOYMENT_MODE`,未设置时拒绝启动;Web 与 IDE 网关只在明确为 `development` 时才启用开发便利(开发令牌、本机 HTTP),其他情况一律按生产处理。 +API、平台 Git、worker、provisioner 与 Runner 都要求显式设置 `WF_DEPLOYMENT_MODE`,未设置时拒绝启动;Web 只在明确为 `development` 时才启用开发便利(开发令牌、本机 HTTP),其他情况一律按生产处理。 - `production`:拒绝开发令牌与 `host` 沙箱证据;要求 HTTPS、模型代理、受保护验收配置与持久化产物存储;发布审批需要请求人以外的第二个人。 - `development`:仅用于本机或可丢弃的测试环境。 @@ -42,8 +42,6 @@ docker build --file infra/images/runtime.Dockerfile --target worker --build-arg | coordinator worker | `worker`,`WF_WORKER_ROLE=coordinator` | 可多副本 | `WF_WORKER_TOKEN`、`WF_CONTROL_PLANE_URL`、`TEMPORAL_ADDRESS`、`TEMPORAL_NAMESPACE` 或 `TEMPORAL_NAMESPACE_PREFIX` 加 `WF_DISPATCH_TENANTS`、`TEMPORAL_TLS_*` | | deployer worker | `worker`,`WF_WORKER_ROLE=deployer` | 可多副本 | `WF_DEPLOYER_TOKEN`、`WF_CONTROL_PLANE_URL`,Temporal 配置同 coordinator | | provisioner | `provisioner`(另需 `KUBECTL_IMAGE`) | 每个租户命名空间 1 个 | 见第 4 节 | -| IDE 网关 | `apps/ide/Dockerfile` 的 `gateway` | 每个租户 1 个 | 见第 6 节 | -| Theia 工作区 | `apps/ide/Dockerfile` 的 `theia` 目标 | 每个工作区 1 个,由 provisioner 创建 | 见 [apps/ide/README.md](../apps/ide/README.md) | API 的其他配置: @@ -80,7 +78,7 @@ provisioner 为每个运行代次创建两个 Kata Job(executor 与 verifier | `WF_TENANT_ID` | 该 provisioner 服务的唯一租户 | | `WF_KUBE_CONTEXT`、`WF_KUBE_NAMESPACE` | 目标集群上下文与该租户的运行命名空间 | | `WF_RUN_WORKER_IMAGE` | worker 镜像(必须是 `@sha256:` digest);`WF_RUN_PREVIOUS_IMAGES` 列出仍允许继续运行的旧镜像 | -| `WF_RUN_STORAGE_CLASS`、`WF_RUN_STORAGE_SIZE` | PVC 存储类;单个运行的存储上限(两个角色各一半)与 IDE 工作区卷的大小 | +| `WF_RUN_STORAGE_CLASS`、`WF_RUN_STORAGE_SIZE` | PVC 存储类;单个运行的存储上限(两个角色各一半) | | `WF_CONTROL_PLANE_URL`、`WF_CONTROL_NAMESPACE` | 沙箱访问 API 的 HTTPS 地址与控制面命名空间 | | `WF_GIT_SERVICE_PORT` | 平台 Git 服务端口(默认 4504) | | `WF_RESOURCE_GRANT_SECRET` | 与 API 共享的资源授权签名密钥 | @@ -124,40 +122,13 @@ node --import tsx scripts/tenant-admin.ts member <租户ID> <成员 subject> < 最后的操作人 subject 可以省略,改用 `WF_OPERATOR_SUBJECT`;它必须列在 `WF_OPERATOR_SUBJECTS` 中。 -套餐目录由 `WF_PLAN_CATALOG_FILE` 指定(格式见 `infra/plans/catalog.example.json`),限定成员数、项目数、工作区数、并发运行数、月度 token 与单次执行资源。分配套餐会把限额快照写入租户,修改目录不会自动影响已有租户;降级时如果现有用量超出新限额会被拒绝。`WF_OPERATOR_SUBJECTS` 列出可在 API 中执行运维操作(邀请成员、对账资源)的平台运维账号。 +套餐目录由 `WF_PLAN_CATALOG_FILE` 指定(格式见 `infra/plans/catalog.example.json`),限定成员数、项目数、并发运行数、月度 token 与单次执行资源(旧目录中的 `maxWorkspaces` 仍被接受,但已不起作用)。分配套餐会把限额快照写入租户,修改目录不会自动影响已有租户;降级时如果现有用量超出新限额会被拒绝。`WF_OPERATOR_SUBJECTS` 列出可在 API 中执行运维操作(邀请成员、对账资源)的平台运维账号。 - 派发运行前,API 原子地占用一个执行名额并签发 5 分钟有效的资源授权(绑定租户、运行、代次、套餐版本、CPU/内存/存储与运行镜像),provisioner 校验授权后才创建资源。 - 月度 token 配额只计入排队或执行中的运行(以及有未结算模型请求的运行)的剩余预算;暂停、等待与结束的运行不占用,继续时重新计入。 - 用量:`GET /v1/usage` 返回本月 token 与执行时长,`GET /v1/usage/lines?period=YYYY-MM` 返回明细,`GET /v1/usage/export?period=YYYY-MM` 导出 CSV。模型费用由服务商直接向租户结算,平台不计价。 -## 6. IDE 工作区与网关 - -每个租户运行一个 IDE 网关(`apps/ide/gateway`),它是浏览器访问 Theia 的唯一入口。用 `WF_WORKSPACE_GATEWAY_TARGETS_FILE` 为每个租户配置网关(单租户也可以用 `WF_WORKSPACE_GATEWAY_BASE`、`WF_WORKSPACE_GATEWAY_TOKEN`、`WF_IDE_PUBLIC_URL`,派发多个租户时用 `WF_WORKSPACE_GATEWAY_TENANT_ID` 指定租户): - -```json -{"schemaVersion":1,"tenants":{"alpha":{"internalUrl":"https://alpha-ide.internal","publicUrl":"https://alpha.ide.example.com","tokenEnv":"WF_ALPHA_GATEWAY_TOKEN"}}} -``` - -- `internalUrl` 是 API 调用网关的地址,`publicUrl` 是浏览器访问的地址。不同租户必须使用不同的公网域名与令牌。 -- 网关进程配置 `WF_DEPLOYMENT_MODE`、`WF_TENANT_ID`、`WF_WORKSPACE_GATEWAY_TOKEN`(与映射中 `tokenEnv` 的值相同)、`WF_API_URL`、`WF_IDE_PUBLIC_URL`(HTTPS)、`WF_IDE_ALLOWED_SERVICE_NAMESPACE`(工作区 Service 所在命名空间)。 -- 启动流程:Web → API `POST /v1/workspaces/:id/launch` → 网关签发 30 秒一次性启动码 → 浏览器兑换为会话 Cookie。会话空闲 15 分钟失效;使用中(包括打开的 WebSocket)自动续期,最长 12 小时。 -- 网关对每个请求与 WebSocket 向 API 复核权限(会话建立后按已授权的用户复核),撤销成员资格后立即断开连接。 - -provisioner 用 `WF_THEIA_IMAGE`(digest)创建工作区;配置 `WF_OCT_WORKSPACE_IMAGE` 与 `WF_IDE_PUBLIC_URL` 后每个工作区带一个协作 sidecar。 - -平台托管仓库的工作区在第一次打开时克隆项目,并切换到 `ide/work` 分支。网关在会话期间不断为它申请 15 分钟的仓库令牌,这个令牌只能推送 `ide/` 开头的分支,由平台 Git 的 pre-receive 钩子执行。人们推送后,从该分支提交愿望,由它验证并合入目标分支。为此需要: - -- 工作区 Pod 能访问平台 Git:provisioner 会为每个工作区放行,控制面一侧见 [infra/k8s](../infra/k8s/README.md) 的 `workspaces-to-git`; -- 项目的 `repositoryUrl`(`WF_GIT_PUBLIC_BASE_URL`)对工作区可达; -- API 配置了 `WF_GIT_SERVICE_URL` 与 `WF_GIT_ADMIN_TOKEN`。 - -外部仓库不克隆。 - -工作区生命周期:用户可以在项目页暂停与恢复工作区;30 分钟没有活动且网关上没有打开的连接时自动暂停(`WF_WORKSPACE_AUTO_SLEEP=false` 可关闭)。暂停把工作区 Deployment 缩容到 0,文件保留在 PVC 中;未保存的编辑器内容会丢失。 - -多人协作需要为每个工作区部署独立的 OCT 实例,见 [apps/ide/collaboration/README.md](../apps/ide/collaboration/README.md)。 - -## 7. 交付:环境、Runner 与部署密钥 +## 6. 交付:环境、Runner 与部署密钥 1. 租户管理员在「环境」页创建环境(Compose / Kubernetes / 平台托管 Kubernetes),然后注册 Runner,得到一次性显示的 Runner 令牌。 2. 在目标环境部署 `apps/runner`(`runner` 镜像目标),配置 `WF_DEPLOYMENT_MODE`、`WF_CONTROL_PLANE_URL`、`WF_TENANT_ID`、`WF_ENVIRONMENT_ID`、`WF_RUNNER_TOKEN`、`WF_RUNNER_PUBLIC_KEYS`(平台签名公钥)以及 mTLS 证书 `WF_RUNNER_CERT`/`WF_RUNNER_KEY`/`WF_RUNNER_CA`。Runner 默认只做演练,设置 `WF_RUNNER_EXECUTE=true` 后才真正部署。 @@ -174,7 +145,7 @@ provisioner 用 `WF_THEIA_IMAGE`(digest)创建工作区;配置 `WF_OCT_WOR 4. 部署密钥通过 Vault KV v2 按固定版本注入,配置与映射文件格式见 [reference/deployment-secrets.md](reference/deployment-secrets.md)。 5. 高风险或生产发布需要审批,审批 24 小时内有效,过期后发布失败,继续运行会重新请求发布。 -## 8. 监控与审计 +## 7. 监控与审计 - `/health`:进程存活;`/readyz`:数据库可用。 - `/metrics`:Prometheus 格式,需要 `Authorization: Bearer $WF_METRICS_TOKEN`;未配置令牌时该路由不存在。指标按路由模板聚合,不包含资源 ID、提示词或凭据。 @@ -182,11 +153,11 @@ provisioner 用 `WF_THEIA_IMAGE`(digest)创建工作区;配置 `WF_OCT_WOR - 审计:`audit_events` 记录每次实体变更与操作者——Web 与 MCP 操作记为真实用户,模型代理的变更记为 `provider-proxy`,后台循环记为 `platform`。应用角色只能读取。 - 建议告警:API 5xx 比例、请求延迟、派发积压(未投递的 outbox 条目数与最老条目年龄)、处于 `ambiguous_execution`/`deployment` 等待超过 1 小时的运行、资源分配为 `unknown` 的运行。 -## 9. 后台维护 +## 8. 后台维护 API 进程内的维护循环(不依赖 Temporal)每 10 秒执行:释放已停止代次的计算资源;把代理进程已丢失、超过 15 分钟仍未结束的模型请求标记为结果未知;完成执行器两分钟内没有确认的暂停;使过期的审批与对应发布失效。每小时清理 7 天前已投递的 outbox 条目、30 天前的幂等记录,以及超过保留期的运行卷(见第 4 节)。设置 `WF_DISPATCH_ENABLED=false` 可在只读副本上关闭派发与维护循环。 -## 10. 备份与恢复 +## 9. 备份与恢复 `scripts/backup-restore.mjs` 基于导出快照做一致性备份,并能在独立的临时数据库中恢复并逐表比对摘要,不会覆盖源数据库: @@ -204,7 +175,7 @@ node scripts/backup-restore.mjs --restore-verify --manifest .wishforge/backups/< 脚本通过 `--container` 与 `--context` 指定运行 PostgreSQL 工具的容器与 Docker context,备份文件权限为 0600,不会自动删除。它只覆盖 PostgreSQL;平台 Git 仓库目录、对象存储、Vault 与 Temporal 需要各自的备份策略。生产应以托管数据库的 PITR 为主,本脚本用于恢复演练。 -## 11. 故障处理 +## 10. 故障处理 | 现象 | 处理 | |---|---| @@ -216,13 +187,13 @@ node scripts/backup-restore.mjs --restore-verify --manifest .wishforge/backups/< | 资源分配 `unknown` 占用并发名额 | 确认 provisioner 已清理该代次资源后,平台运维调用 `POST /v1/admin/executions/:runId/reconcile` 释放名额 | | 派发积压 | 检查 Temporal 与 provisioner 可用性;outbox 条目的认领期限过后会被其他副本重新认领 | -## 12. 上线验收 +## 11. 上线验收 - 在目标集群上证明 Kata 隔离、跨租户网络拒绝、Secret 不可读、资源耗尽保护与镜像 digest 准入(见 [infra/k8s/README.md](../infra/k8s/README.md))。 - 用真实账号完成 WorkBuddy 与 Codex 的 MCP OAuth 流程(见 [connectors/README.md](../connectors/README.md))。 - 演练一次部署失败与回滚、一次环境解锁、一次数据库恢复。 -## 13. 已知风险 +## 12. 已知风险 - **Temporal 授权**:平台这一侧已经做到三点: - 所有连接使用客户端证书; @@ -230,6 +201,3 @@ node scripts/backup-restore.mjs --restore-verify --manifest .wishforge/backups/< - 沙箱只拿到本租户的证书。 还需要运维在 Temporal 服务端配置授权:用 claim mapper 把客户端证书映射为只能访问本租户命名空间的角色,例如按证书主题区分租户。否则持有任意有效证书的客户端仍能访问所有命名空间。即使配置了授权,同一租户的沙箱仍可能轮询本租户其他运行的任务队列,影响的只是该租户自己的运行;结果是否成立仍以控制面的证据为准。 -- **IDE 同 UID**:Theia 后端与用户终端以同一用户运行,同一工作区内的协作者之间没有隔离。 -- **IDE 推送者不留痕**:平台不记录是谁推送了 `ide/` 分支,提交身份可以自行修改。这些改动进入目标分支前一定经过验证,但作者归属只能参考提交信息。 -- **OCT 房间不持久**:协作服务重启后需要重新创建房间。 diff --git a/docs/reference/repository-contract.md b/docs/reference/repository-contract.md index 0da9b5b..93d0e5e 100644 --- a/docs/reference/repository-contract.md +++ b/docs/reference/repository-contract.md @@ -21,8 +21,8 @@ - 推送使用 `--force-with-lease` 并先做祖先检查;推送时目标分支又前进了,就基于新的提交重新准备候选,最多三次。 - 合并结果未通过检查、而不带本次改动的目标分支同样未通过(运行的起点能通过)时,运行进入 `target_broken` 等待,由人修好目标分支后继续,不消耗修复轮数;其余情况按一轮修复处理。 - 合并冲突时提交失败的集成证据(冲突文件与目标 commit),按一轮修复处理:修复轮先把最新目标分支合并进工作区,执行器解决冲突标记,检查点以该目标 commit 为基线。修复轮数用尽时运行进入 `integration_conflict` 等待。 -- IDE 工作区(FR-H2):有编辑会话时得到 15 分钟的仓库令牌,令牌里写明只能更新 `refs/heads/ide/`。平台 Git 对每次推送运行 pre-receive 钩子,越界的引用被拒绝;平台自己的合入不受这个限制。所有推送都只接受快进,也不能删除分支。IDE 分支经由从它开始的愿望进入目标分支,过程与 Agent 的改动相同。 -- 平台 Git 的管理接口 `POST /refs`(`{tenantId, projectId, prefix}`)按最近提交时间列出某个前缀下的分支,工作台据此列出 IDE 分支。 +- 平台 Git 可以签发只能更新某个引用前缀(例如 `refs/heads/ide/`)的仓库令牌:pre-receive 钩子拒绝越界的引用,平台自己的合入不受这个限制。所有推送都只接受快进,也不能删除分支。管理接口 `POST /refs`(`{tenantId, projectId, prefix}`)按最近提交时间列出某个前缀下的分支。这两项原本服务于已移除的云 IDE,目前没有调用方。 +- 愿望可以从一个已推送到项目仓库的分支开始(API/MCP 的 `sourceBranch`),验证后合入目标分支,过程与 Agent 的改动相同。 - GitHub 仓库走评审路径:只推送不可变的 `wishforge/<运行>/` 分支,控制面创建或对账对应的 PR 并等待合并(`github_review`);合并后在 GitHub 实际产生的合并 commit 上重新验证,再提交集成证据。未配置 GitHub App 的 GitHub 仓库不会退回直接推送(`github_unconfigured`)。安装令牌按仓库授权而不是按分支授权,目标分支仍需要分支保护。 ## wishforge.yaml V1 diff --git a/docs/reference/ui.md b/docs/reference/ui.md index ddcb9a6..6d27cd2 100644 --- a/docs/reference/ui.md +++ b/docs/reference/ui.md @@ -17,8 +17,8 @@ |---|---|---| | 工作概览 `/` | 进行中与待处理的运行数、最近运行、项目准备入口 | `GET /v1/dashboard` | | 项目空间 `/projects` | 项目列表、创建项目 | `GET/POST /v1/projects` | -| 项目详情 `/projects/:id` | 仓库状态(平台仓库失败可重试)、IDE 工作区与从 IDE 推送的 `ide/` 分支(每个分支可以直接「提交愿望合入」)、项目运行、项目经验(查看、添加约定、停用、删除)、设置(目标分支、验证命令、安装命令、交付配置、验收配置) | `GET/PATCH /v1/projects/:id`、`POST /repository`、`/workspaces`、`/branches`、`/lessons`、`/v1/lessons/:id` | -| 运行记录 `/runs` | 运行列表与筛选;提交愿望(不可用的执行器不可选并显示原因;「起点」可以选一个 IDE 分支,运行从它开始,验证后合入) | `GET /v1/runs`、`POST /v1/projects/:id/wishes`、`GET /v1/projects/:id/branches` | +| 项目详情 `/projects/:id` | 仓库状态(平台仓库失败可重试)、项目运行、项目经验(查看、添加约定、停用、删除)、设置(目标分支、验证命令、安装命令、交付配置、验收配置) | `GET/PATCH /v1/projects/:id`、`POST /repository`、`/lessons`、`/v1/lessons/:id` | +| 运行记录 `/runs` | 运行列表与筛选;提交愿望(不可用的执行器不可选并显示原因) | `GET /v1/runs`、`POST /v1/projects/:id/wishes` | | 运行详情 `/runs/:id` | 阶段进度、等待原因与对应操作、最近一次失败(修复轮的输入);标签页:概览、代码变更(检查点按文件的 diff)、阶段事件(Agent 消息、命令、文件变更、计划)、验证证据(命令、退出码、耗时、输出尾部,合入与冲突);交付结果(合入的 commit 或应用地址) | `GET /v1/runs/:id`、`/events/stream`、`/artifacts`、`/delivery`、`POST /commands` | | 发布与审批 `/releases` | 发布列表(失败原因);审批对话框展示需求目标与验收标准、项目、环境(是否生产)、验证命令、commit、镜像、审批期限与请求人 | `GET /v1/releases`、`GET /v1/releases/:id/review`、`POST /v1/approvals/:id/decision` | | 环境 `/environments` | 环境列表与创建、应用地址、Runner 注册、部署密钥引用、部署结果未知时「核对后解锁」 | `/v1/environments*`、`POST /v1/environments/:id/unlock` | @@ -35,7 +35,6 @@ - OIDC 使用 discovery、授权码 + PKCE(S256)、state 与 nonce,并校验 ID token 的签名、issuer 与 audience。 - 会话保存在加密的 HttpOnly Cookie 中,浏览器脚本无法读取;access token 过期前 1 分钟内由服务端代理使用 refresh token 续期,会话最长 12 小时。身份服务没有签发 refresh token 时,会话随 access token 结束。 - 写请求校验 `Origin`,代理拒绝上游重定向;界面上的权限控制只用于体验,最终以 API 的角色与成员检查为准。 -- 打开 IDE 时,`/ide/:id/launch` 在服务端调用 API 获取 30 秒一次性启动地址,access token 不出现在 URL 中。 环境变量:`WF_DEPLOYMENT_MODE`、`WF_API_URL`、`WF_PUBLIC_URL`、`WF_DEV_AUTH_TOKEN`(仅开发)、`OIDC_ISSUER`、`OIDC_CLIENT_ID`、`OIDC_CLIENT_SECRET`(可选)、`WF_SESSION_SECRET`(至少 32 字符)。 diff --git a/docs/requirements.md b/docs/requirements.md index 45d3328..df33c34 100644 --- a/docs/requirements.md +++ b/docs/requirements.md @@ -8,13 +8,12 @@ WishForge 是一个**远程、意图驱动**的软件交付平台: -> 用户用自然语言提出「愿望」(目标 + 可验收标准),后端 Agent 在隔离环境中实现;独立验证器按受保护的验收命令判定结果,失败时把失败信息交还 Agent 自修复;通过后合入代码,按需构建并部署。全过程留有证据,高风险发布需要人工审批,任何时候都可以打开云 IDE 查看和修改代码。 +> 用户用自然语言提出「愿望」(目标 + 可验收标准),后端 Agent 在隔离环境中实现;独立验证器按受保护的验收命令判定结果,失败时把失败信息交还 Agent 自修复;通过后合入代码,按需构建并部署。全过程留有证据,高风险发布需要人工审批。 -用户可以从三个入口发起和跟踪愿望: +用户可以从两个入口发起和跟踪愿望: - **Web 工作台**:完整的项目、运行、证据、审批与配置界面。 - **Agent 客户端**:WorkBuddy、Codex 等通过 MCP(OAuth 授权)调用 WishForge,在对话中远程许愿。 -- **云 IDE**:基于 Theia 的浏览器 IDE,直接查看和修改项目代码。 产品价值:把「一句需求」变成「有证据的交付」,并让交付质量随使用次数提升(见第 3 节 RSI)。 @@ -31,7 +30,6 @@ WishForge 是一个**远程、意图驱动**的软件交付平台: | 发布(Release) | 把某个已验证、已构建的版本部署到某个环境的请求,绑定全部输入的摘要。 | | 环境(Environment) | 部署目标:平台托管 Kubernetes、客户自有 Kubernetes 或 Docker Compose。 | | Runner | 部署在目标环境侧、主动向平台拉取签名部署任务的代理进程。 | -| 工作区(Workspace) | 项目的云 IDE 实例。 | | Agent 配置(Bundle) | 执行器使用的提示词模板与模型选择,以不可变版本保存。 | | 项目经验(Lesson) | 从历史运行中沉淀的、对后续任务有用的知识条目。 | @@ -50,9 +48,9 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** | 角色 | 权限要点 | |---|---| | owner / admin(租户管理员) | 管理项目、成员、执行器凭据(BYOK)、环境与 Runner、验证配置、Agent 配置与项目经验;审批发布。 | -| developer(开发者) | 提交和控制愿望、回答澄清、打开 IDE 编辑、请求发布。 | +| developer(开发者) | 提交和控制愿望、回答澄清、请求发布。 | | deployer(发布者) | 审批与回滚发布。 | -| viewer(观察者) | 只读查看项目、运行、证据和发布;不能进入 IDE 编辑会话。 | +| viewer(观察者) | 只读查看项目、运行、证据和发布。 | | 平台运维 | 部署和运维 WishForge 本身,配置执行环境、验收配置、套餐与配额。 | | Agent 客户端 | WorkBuddy、Codex 等,以用户身份经 OAuth 调用 MCP,权限不超过该用户,且不能代替人完成审批。 | @@ -73,10 +71,9 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** 4. 查看可读的代码 diff 与验证证据(每条命令的结果与输出)。 5. 未配置交付的项目,代码合入目标分支后运行即成功;配置了交付的项目继续构建,按风险自动发布或等待审批,部署完成后访问应用。 -**J3 在云 IDE 中协作** -1. 从项目页打开工作区,在浏览器中编辑、使用终端和调试器。 -2. 改动提交并推送到 `ide/` 开头的分支;从该分支提交一个愿望,验证通过后合入目标分支。 -3. 可以邀请有编辑权限的成员实时协作。 +**J3 在云 IDE 中协作**(已移除) + +云 IDE 已从 WishForge 中移除。自己写的改动可以推送到项目仓库的一个分支,再通过 API/MCP 提交一个从该分支开始的愿望(`sourceBranch`),验证通过后合入目标分支。 **J4 失败与修复** 1. 验证失败时,Agent 带着失败信息自动修复,最多尝试预算规定的轮数。 @@ -163,16 +160,18 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** | FR-G5 | P1 | 部署密钥通过密钥 broker 按固定版本注入;证据和日志中不含明文。 | 回执中只出现密钥引用与版本号。 | | FR-G6 | P0 | 部署完成后在工作台与 MCP 展示应用地址。访问控制由目标环境负责,平台不提供应用访问网关。 | `get_delivery` 返回应用地址。 | -### H. 云 IDE +### H. 云 IDE(已移除) + +云 IDE(Theia 工作区、IDE 网关、OCT 协作、按工作区的创建与生命周期)已从 WishForge 中移除,下列需求不再实现,只保留编号与原文供追溯。FR-H2 中「愿望可以指定起点分支」的部分保留:API 与 MCP 的 `sourceBranch` 仍然有效,工作台不再提供入口。 | ID | 优先级 | 需求 | 验收标准 | |---|---|---|---| -| FR-H1 | P0 | 从工作台打开项目的 Theia 工作区;网关对每个 HTTP/WebSocket 请求校验租户、项目与角色;viewer 不能进入编辑会话。 | 撤销成员资格后,现有连接会被关闭。 | -| FR-H2 | P1 | 工作区首次打开时克隆项目仓库(平台托管仓库),有人使用期间持续注入仓库范围的短期凭据;IDE 只能推送 `ide/` 开头的分支,愿望可以指定从这样的分支开始,验证通过后连同 Agent 的改动一起合入目标分支。外部仓库的改动走 PR,不克隆。 | 新工作区打开后即有项目代码;IDE 直接推送目标分支被拒绝;从 IDE 分支开始的愿望验证并合入这些改动。 | -| FR-H3 | P1 | 多人实时协作(OCT),房间按工作区隔离,仅有编辑权限的成员可以加入。 | 其他工作区的邀请无法加入。 | -| FR-H4 | P1 | 工作区手动暂停/恢复与空闲自动暂停。 | 暂停后不占用计算资源,恢复后数据仍在。 | -| FR-H5 | P1 | 扩展白名单:只能使用平台预置并校验过摘要的扩展。 | 安装未经审核扩展的请求被拒绝。 | -| FR-H6 | P1 | 活跃使用中的 IDE 会话自动续期,不会被定时强制断开。 | 连续使用 2 小时不需要重新打开。 | +| ~~FR-H1~~ | 已移除 | 从工作台打开项目的 Theia 工作区;网关对每个 HTTP/WebSocket 请求校验租户、项目与角色;viewer 不能进入编辑会话。 | 撤销成员资格后,现有连接会被关闭。 | +| ~~FR-H2~~ | 已移除(起点分支保留) | 工作区首次打开时克隆项目仓库(平台托管仓库),有人使用期间持续注入仓库范围的短期凭据;IDE 只能推送 `ide/` 开头的分支,愿望可以指定从这样的分支开始,验证通过后连同 Agent 的改动一起合入目标分支。外部仓库的改动走 PR,不克隆。 | 新工作区打开后即有项目代码;IDE 直接推送目标分支被拒绝;从 IDE 分支开始的愿望验证并合入这些改动。 | +| ~~FR-H3~~ | 已移除 | 多人实时协作(OCT),房间按工作区隔离,仅有编辑权限的成员可以加入。 | 其他工作区的邀请无法加入。 | +| ~~FR-H4~~ | 已移除 | 工作区手动暂停/恢复与空闲自动暂停。 | 暂停后不占用计算资源,恢复后数据仍在。 | +| ~~FR-H5~~ | 已移除 | 扩展白名单:只能使用平台预置并校验过摘要的扩展。 | 安装未经审核扩展的请求被拒绝。 | +| ~~FR-H6~~ | 已移除 | 活跃使用中的 IDE 会话自动续期,不会被定时强制断开。 | 连续使用 2 小时不需要重新打开。 | ### I. 经验沉淀与 Agent 配置(RSI) @@ -189,7 +188,7 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** |---|---|---|---| | FR-J1 | P0 | 记录每个运行的 token 用量(优先使用代理计量)与执行时长。 | 用量页显示本月 token 与按运行的明细。 | | FR-J2 | P0 | 租户配额:并发运行数、月度 token 上限;超额时拒绝提交并说明原因;暂停、等待中或已结束的运行不长期占用预留额度。 | 暂停一个运行后,可以提交新的愿望。 | -| FR-J3 | P1 | 套餐限额(成员数、项目数、工作区数、执行资源规格)由运营配置;用量明细可导出 CSV。 | 超出套餐限额时返回明确错误。 | +| FR-J3 | P1 | 套餐限额(成员数、项目数、执行资源规格)由运营配置;用量明细可导出 CSV。 | 超出套餐限额时返回明确错误。 | ### K. 运维与工程 @@ -220,7 +219,7 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** - 发票、计价、结算与作废流程(只保留用量计量、配额与 CSV 导出)。 - 无人监督的平台级自动元进化(统计门禁、自动灰度、签名评估与外部发布回执)。 - 平台提供的私有应用访问网关及签名探测证明链。 -- IDE 保存屏障、草稿恢复、调试控制租约,以及以 IDE 快照作为集成输入的机制。IDE 与 Agent 之间只通过 Git commit 交接。 +- 云 IDE(Theia 工作区、IDE 网关、OCT 协作),以及 IDE 保存屏障、草稿恢复、调试控制租约、以 IDE 快照作为集成输入的机制。 - WorkBuddy Cloud 作为执行器(WorkBuddy 仍可作为 MCP 客户端发起愿望)。 - SSH/SCP 仓库地址、Git LFS、子模块。 - 多区域部署;使用客户数据训练模型或跨租户共享经验。 @@ -230,7 +229,7 @@ RSI(Recursive Self-Improvement,递归自我改进)在 WishForge 中指** | 里程碑 | 范围 | 完成标志 | |---|---|---| | M1 本地主线 | 全部 P0 | 本地一键启动后,一个愿望可以完成「实现 → 验证(含自修复)→ 合入」;经验会被沉淀并在下一次运行中使用;文档与代码一致;CI 通过。 | -| M2 生产就绪 | 全部 P1 | 在测试集群上完成 Kata 执行、构建、Runner 部署与回滚、IDE 工作区克隆与协作,并通过真实账号的 MCP OAuth 验收。 | +| M2 生产就绪 | 全部 P1 | 在测试集群上完成 Kata 执行、构建、Runner 部署与回滚,并通过真实账号的 MCP OAuth 验收。 | | M3 持续改进 | P2 | 离线评测、项目归档等。 | ## 10. 验证方式 diff --git a/docs/user-manual.md b/docs/user-manual.md index 7a54a77..449a266 100644 --- a/docs/user-manual.md +++ b/docs/user-manual.md @@ -30,13 +30,12 @@ - **能撤回**:线上版本可以一键回滚;已经合入的改动可以一键撤销,撤销同样走验证和发布。 - **越用越好**:运行中积累的「项目经验」会自动带进同一项目后续的任务里。 -### 1.1 三个入口 +### 1.1 两个入口 | 入口 | 适合做什么 | |---|---| | **网页工作台** | 全部功能:提愿望、看进度和代码改动、处理等待、审批发布、管理项目与配置 | | **Agent 客户端(MCP)** | 在 Codex、WorkBuddy 的对话里直接许愿和跟进(见[第 10 章](#10-在-codex--workbuddy-里许愿mcp)) | -| **云 IDE** | 在浏览器里看和改项目代码,再通过愿望合入(见[第 11 章](#11-云-ide)) | ### 1.2 本机 POC 是什么 @@ -153,7 +152,7 @@ - 「+ 提交愿望」按钮。 - 三个数字:**进行中的运行**(运行中加排队中)、**待确认**(等待处理的运行加待审批的发布,也就是「需要你判断」的事)、**配置可用的执行器**。 - 「最近运行」列出最近 5 个运行,「全部运行 →」进入运行记录。 -- 右侧是连接状态(POC 上显示「local · local-development」)和三个准备入口:连接代码仓库、配置执行器、打开云 IDE。 +- 右侧是连接状态(POC 上显示「local · local-development」)和三个准备入口:连接代码仓库、配置执行器、提交第一个愿望。 ### 4.3 项目空间与项目详情 @@ -167,10 +166,9 @@ | 代码仓库地址 | 可留空:留空时由平台自建仓库;填写时只支持 HTTPS,不支持 SSH | | 目标分支 | 默认 `main` | -**项目详情**页右上角有「⚙ 项目设置」和「+ 提交愿望」,页面包含四块: +**项目详情**页右上角有「⚙ 项目设置」和「+ 提交愿望」,页面包含三块: - **代码仓库**:仓库地址、目标分支、仓库状态(可用 / 不可用 / 未创建)、代码权限(哪些算后端代码,谁能改它见「成员与权限」)。项目设置按钮只有管理员看得到。平台仓库没建好时有「重试创建仓库」。 -- **云 IDE**:开发环境与从 IDE 推上来的分支,见[第 11 章](#11-云-ide)。 - **项目运行**:这个项目的运行,「查看全部 →」跳到筛选好的运行记录。 - **项目经验**:自动沉淀和手动添加的经验。新运行的提示词会带上最近 5 条启用中的经验。 - 「+ 添加约定」:写一条以后的执行器都要遵守的约定(最多 1000 字),例如「运行测试前先执行 npm run build」。 @@ -205,7 +203,6 @@ | 项目空间 | 选择项目 | | 你的愿望 | 必填,8~20000 字。第一行写目标,可以再写「范围:」「不改:」各一行;细节写进验收标准,不需要预先拆分技术步骤 | | 代码范围 | 项目划出了后端代码时才显示,默认「只改前端」。**只改前端**:只能改项目放行的路径(POC 是 `src/`、`tests/frontend/`、`**/*.md`),Agent 一开始就被告知,做不到时会停下来提问(之后可以在运行详情放开,见 4.5);改到后端代码时不运行检查,平台在下一轮开始前把这些文件恢复原样(新建的删掉),让 Agent 只改前端重做,算一轮修复。**前端和后端**:可以改后端;你的账户能直接合入时验证通过就合入,否则先等代码审核,选项下面会写明。账户类型是「前端开发」时只有「只改前端」,没得选 | -| 起点 | 默认是目标分支的最新代码;平台托管仓库的项目可以选从 IDE 推送的分支,验证通过后一并合入。POC 只能从 `poc` 开始 | | 验收标准 | 必填,每行一条,最多 30 条 | | 执行器 | 只列出这台部署能用的执行器;POC 只有 Claude Code | | Token 上限 | 1000~2,000,000。默认 30 万;POC 用 Claude Code 时默认 100 万(Claude CLI 的计量包含缓存读取) | @@ -305,15 +302,15 @@ ### 4.10 用量 -- **套餐权益与当前占用**:成员、项目、工作区、执行名额的「占用 / 上限」,以及月 Token 配额。 +- **套餐权益与当前占用**:成员、项目、执行名额的「占用 / 上限」,以及月 Token 配额。 - **执行资源上限与当前预算**:单次运行的 CPU、内存、存储上限,已记 Token、已预留 Token、当前活跃运行。 - **按月查看**:选择月份(按 UTC 自然月)后「查看月份」,看模型 Token、执行时长、新增产物和逐条明细;「导出 CSV」下载当月明细。 - 平台只记录用量、不计价,模型费用由模型服务商直接结算。 ### 4.11 界面上值得注意的几点 -- **没有二次确认的操作**:暂停、继续、审批对话框里的「拒绝」、激活和回滚 Agent 配置、停用和删除项目经验、创建开发环境、重试创建仓库、修改成员的账户类型和权限(编辑后点「保存」)、停用或启用成员、退出登录。点之前想清楚。 -- **有确认的操作**:取消运行、回滚发布、撤销这次改动、批准代码审核(须先勾选)、批准发布(须先勾选)、重置成员密码、暂停工作区、撤销凭据、解锁环境、注册 Runner。 +- **没有二次确认的操作**:暂停、继续、审批对话框里的「拒绝」、激活和回滚 Agent 配置、停用和删除项目经验、重试创建仓库、修改成员的账户类型和权限(编辑后点「保存」)、停用或启用成员、退出登录。点之前想清楚。 +- **有确认的操作**:取消运行、回滚发布、撤销这次改动、批准代码审核(须先勾选)、批准发布(须先勾选)、重置成员密码、撤销凭据、解锁环境、注册 Runner。 - **英文内容**:等待说明的具体内容、时间线说明、发布失败原因、表单里的错误信息来自后端,多为英文。 - 等待说明里的「打开项目设置」只会打开项目页,还要再点「⚙ 项目设置」。 @@ -611,16 +608,15 @@ WishForge 提供 MCP 服务,Agent 客户端可以用你的身份远程许愿 --- -## 11. 云 IDE +## 11. 从自己推送的分支许愿 -云 IDE(基于 Theia)适用于**平台托管仓库**的项目(创建项目时仓库地址留空,由平台建仓)。POC 项目使用外部 Gitea 仓库,不走这个流程。 +云 IDE 已经移除。想让自己写的改动经过验证再合入目标分支,可以: -1. 在项目详情的「云 IDE」面板点「+ 创建开发环境」。环境就绪后点「打开 IDE ↗」,会在新标签页打开 IDE(启动链接约 30 秒内有效)。 -2. 第一次打开时,项目被克隆到工作区,处在 `ide/work` 分支上。 -3. 在 IDE 里修改、提交,然后 `git push`。IDE 的凭据**只能推送 `ide/` 开头的分支**,直接推目标分支会被拒绝。 -4. 回到项目详情,「云 IDE」面板列出推上来的分支,点「提交愿望合入」:提交愿望表单的「起点」已经选好这个分支。运行从这个分支开始,Agent 可以在你的改动上继续,验证通过后连同你的改动一起合入目标分支。 +1. 把改动推送到项目仓库的一个分支(不能是目标分支,也不能以 `wishforge/` 开头)。 +2. 通过 API 或 MCP 提交愿望时带上 `sourceBranch`(见[第 10 章](#10-在-codex--workbuddy-里许愿mcp))。网页的提交表单不提供这个选项。 +3. 运行从这个分支的最新提交开始,Agent 可以在你的改动上继续,验证通过后连同你的改动一起合入目标分支;运行详情的「起点分支」显示它。 -多人协作建议:**每人用自己的分支**(如 `ide/zhangsan`)。两个人推同一个分支时,后推的会被拒,需要先拉取合并。本地模式下所有工作区共用一个 Theia 实例和同一个目录,多人同时使用等于在改同一份文件;需要隔离时要用 Kubernetes 后端。由平台 provisioner 管理的工作区还可以「暂停工作区」/「恢复工作区」(暂停会结束终端和调试进程,未保存的修改会丢失)。 +POC 项目固定从 `poc` 开始,不接受 `sourceBranch`。 --- @@ -853,7 +849,7 @@ POC 一次只执行一个运行,前面的运行还在执行时新愿望会排 **怎么把整个本地环境重置?** -见 [development.md 第 8 节](development.md#8-常见问题)。不要整个删除 `.wishforge/` 目录。 +见 [development.md 第 7 节](development.md#7-常见问题)。不要整个删除 `.wishforge/` 目录。 --- @@ -866,7 +862,7 @@ POC 一次只执行一个运行,前面的运行还在执行时新愿望会排 | 权限 | 包含的操作 | |---|---| | 查看(所有人) | 查看自己能进入的项目、运行、代码变更、证据和发布 | -| 许愿 | 提交愿望、AI 优化、继续/暂停/取消运行、补充需求、撤销改动、创建项目、使用云 IDE;能不能改后端见 4.12 | +| 许愿 | 提交愿望、AI 优化、继续/暂停/取消运行、补充需求、撤销改动、创建项目;能不能改后端见 4.12 | | 审核代码 | 批准或驳回代码审核 | | 审批发布 | 批准、拒绝、回滚发布(含 GitHub 合并授权) | | 管理 | 成员与权限、项目设置(含代码权限)、调整预算、项目经验、执行器凭据、环境与 Runner(含「每次发布都需人工确认」)、Agent 配置、用量明细与导出;包含以上全部 | diff --git a/infra/compose.yaml b/infra/compose.yaml index 0bfe33a..531a1f6 100644 --- a/infra/compose.yaml +++ b/infra/compose.yaml @@ -112,16 +112,6 @@ services: retries: 20 restart: unless-stopped - oct: - profiles: ['ide'] - build: { context: ./oct } - image: wishforge/oct:0.3.1-wf1 - environment: - OCT_ACTIVATE_SIMPLE_LOGIN: 'true' - ports: ['127.0.0.1:48100:8100'] - restart: unless-stopped - # OCT 0.3.1 holds rooms in memory: restart requires a new room/rejoin. - volumes: postgres-data: temporal-data: diff --git a/infra/images/README.md b/infra/images/README.md index 53642a2..45abe8a 100644 --- a/infra/images/README.md +++ b/infra/images/README.md @@ -17,7 +17,7 @@ docker build --file infra/images/runtime.Dockerfile --target worker --build-arg NODE_IMAGE="$NODE_IMAGE" --build-arg DOCKER_CLI_IMAGE="$DOCKER_CLI_IMAGE" --tag "$WORKER_IMAGE" . ``` -把镜像推送到私有仓库,并把 worker 镜像的 digest 配置给 provisioner(`WF_RUN_WORKER_IMAGE`)。根目录的 `.dockerignore` 排除了 `.git`、本地环境文件、密钥与证书、依赖与构建目录、本地数据目录与 IDE(`apps/ide` 有自己的 `Dockerfile`,见 [apps/ide/README.md](../../apps/ide/README.md))。 +把镜像推送到私有仓库,并把 worker 镜像的 digest 配置给 provisioner(`WF_RUN_WORKER_IMAGE`)。根目录的 `.dockerignore` 排除了 `.git`、本地环境文件、密钥与证书、依赖与构建目录和本地数据目录。 - worker 镜像中的 Docker 客户端必须连接单独配置的构建器(本地用 `WF_DOCKER_CONTEXT`,Kubernetes 中由 provisioner 传入 `WF_DOCKER_HOST` 与 TLS 证书),不要把宿主机 Docker socket 挂进任何 worker。镜像构建由 verifier 完成,只有它挂载构建器的客户端配置(provisioner 的 `WF_VERIFIER_DOCKER_CONFIG_SECRET`),executor 拿不到。 - 受保护验收脚本以 root 所有的镜像内容安装在 `/usr/local/lib/wishforge-verification/` 下,并在 API 中登记它们的摘要(见 [verification-profiles.md](../../docs/reference/verification-profiles.md))。不要把 API、Vault 或部署凭据挂进 executor 或 verifier。 @@ -25,4 +25,4 @@ docker build --file infra/images/runtime.Dockerfile --target worker --build-arg - 依赖先只按各工作区的 `package.json` 安装,只改源码时这一层直接复用缓存。新增工作区时要在 `runtime.Dockerfile` 中补一行 `COPY`,`tests/images.test.ts` 会检查。 - 构建时由 `scripts/build-services.mjs` 把各服务编译为 `dist/<服务>/main.mjs`:工作区包编入其中,其他依赖从 `node_modules` 加载,Temporal 工作流预先打包为 `dist/worker/workflow-bundle.js`,迁移脚本是 `dist/api/migrate.mjs`。运行时不再转译 TypeScript(FR-K5)。 -这些镜像已在本地 k3s 集群(arm64、`node:22-bookworm`,见 [docs/local-k3s.md](../../docs/local-k3s.md))上构建,并完整跑通了愿望与 IDE 的流程。运维选定的基础镜像、x64、嵌套的 bubblewrap、远程 BuildKit 与 Kata/CNI 仍需在目标集群上验收。 +这些镜像已在本地 k3s 集群(arm64、`node:22-bookworm`,见 [docs/local-k3s.md](../../docs/local-k3s.md))上构建,并完整跑通了愿望的流程。运维选定的基础镜像、x64、嵌套的 bubblewrap、远程 BuildKit 与 Kata/CNI 仍需在目标集群上验收。 diff --git a/infra/k8s/README.md b/infra/k8s/README.md index 7aafa3e..e189815 100644 --- a/infra/k8s/README.md +++ b/infra/k8s/README.md @@ -7,7 +7,7 @@ | `namespaces.yaml` | 控制面命名空间 `wishforge-control` 与示例租户命名空间 `wishforge-tenant-example`,都强制 `restricted` Pod Security | | `runtime-class.yaml` | `wishforge-kata`(`kata-qemu`,调度到 `wishforge.io/kata-ready=true` 的节点),即 provisioner `WF_KATA_RUNTIME_CLASS` 的默认值。只创建 RuntimeClass 不会安装 Kata | | `provisioner-rbac.yaml` | provisioner 的 ServiceAccount 与它在租户命名空间中的 Role,正好覆盖它创建、读取、调整与清理的对象 | -| `network-policy.yaml` | 两个命名空间默认拒绝全部出入流量;控制面 Pod 允许 DNS;沙箱 Pod 可以访问 API、Temporal 与平台 Git;IDE 工作区可以访问平台 Git;IDE 网关可以访问工作区 Pod | +| `network-policy.yaml` | 两个命名空间默认拒绝全部出入流量;控制面 Pod 允许 DNS;沙箱 Pod 可以访问 API、Temporal 与平台 Git | | `quota.yaml` | 示例租户的 ResourceQuota 与 LimitRange | ## provisioner 在租户命名空间中创建的对象 @@ -15,7 +15,6 @@ Kubernetes 后端的说明见 [apps/provisioner/README.md](../../apps/provisioner/README.md)。 - **每个运行代次**:executor 与 verifier 各一个 Kata Job、PVC、保存运行令牌的 Secret 和 ServiceAccount(不挂载令牌、没有任何绑定),外加一条 NetworkPolicy。这条策略只允许 DNS,以及控制面命名空间中 `wishforge.io/component` 为 `api`、`temporal`、`git-storage` 的 Pod。模型调用经 API 的模型代理完成。 -- **每个 IDE 工作区**:一个 PVC、一个 Kata Deployment(Theia,可选 OCT sidecar)、一个 Service 与一条 NetworkPolicy。这条策略只允许 `wishforge.io/component: workspace-gateway` 的 Pod 访问 3000/8100 端口;出站只有 DNS,平台托管仓库的项目再放行平台 Git,用于克隆与推送。 - **释放运行**:删除 Job,Pod 全部结束后删除 Secret、ServiceAccount 与 NetworkPolicy。PVC 保留用于排查,保留期过后由控制面请求 provisioner 按 `wishforge.io/run` 标签删除(默认一周,见 operations.md)。在此之前它们占用配额,配额要留出余量。 每次运行的出站端口取自 `WF_CONTROL_PLANE_URL`(未写端口时为 443)、`TEMPORAL_ADDRESS` 与 `WF_GIT_SERVICE_PORT`。NetworkPolicy 按 Pod 端口匹配,所以这三个 Service 的端口必须与容器端口一致。 @@ -24,14 +23,14 @@ Kubernetes 后端的说明见 [apps/provisioner/README.md](../../apps/provisione - 显式选择集群。准备带 `kata-qemu` 的 Kata 节点池并打上 `wishforge.io/kata-ready=true`,按实测调整 RuntimeClass 的 overhead。CNI 必须执行 NetworkPolicy。 - 每个租户一个命名空间:复制示例的 `wishforge.io/tenant` 标签、配额、默认拒绝策略与 provisioner 绑定,并配置为该租户 provisioner 的 `WF_KUBE_NAMESPACE`。把 Pod Security 版本从 `latest` 固定为集群支持的次版本。 -- 给控制面 Pod 打上 `wishforge.io/component` 标签:`api`、`temporal`、`git-storage`、`workspace-gateway`。 +- 给控制面 Pod 打上 `wishforge.io/component` 标签:`api`、`temporal`、`git-storage`。 - 为其余流量编写环境相关的策略: - - 入口;Web 与网关到 API; + - 入口;Web 到 API; - API 到 PostgreSQL、OIDC、对象存储、Vault、provisioner 与模型供应商; - worker 到 API 与 Temporal; - provisioner 到 Kubernetes API。 - 把 provisioner 的 `WF_KUBE_CONTEXT` 绑定到 `provisioner` ServiceAccount 的短期投射令牌。 -- 准入策略需要限制以下几项,RBAC 无法限制受信任控制器所创建 Job 与 Deployment 的字段: +- 准入策略需要限制以下几项,RBAC 无法限制受信任控制器所创建 Job 的字段: - 只允许经批准的镜像 digest 与 `wishforge-kata`; - 只允许非 root、只读根文件系统的容器,禁止特权容器、宿主机卷与宿主机命名空间; - 只允许挂载本运行的 Secret。 @@ -47,7 +46,7 @@ Kubernetes 后端的说明见 [apps/provisioner/README.md](../../apps/provisione - 私有对象存储; - 签名镜像; - 外部密钥管理。 -- 不要把 Compose 的开发密码或 OCT 的显示名登录带进生产。 +- 不要把 Compose 的开发密码带进生产。 ## 部署目标 @@ -68,6 +67,6 @@ Runner 在客户的目标环境中运行,使用自己的 `WF_KUBE_CONTEXT` 与 - 验证跨租户访问与网络被拒绝、Secret 访问被拒绝。 - 做资源耗尽测试。 - 确认准入策略会拒绝未批准的 digest。 -- 演练运行、IDE 工作区的暂停与恢复、Runner 的部署与回滚。 +- 演练运行、Runner 的部署与回滚。 这些都尚未完成。 diff --git a/infra/k8s/base/network-policy.yaml b/infra/k8s/base/network-policy.yaml index 8de3d91..f106c83 100644 --- a/infra/k8s/base/network-policy.yaml +++ b/infra/k8s/base/network-policy.yaml @@ -1,7 +1,5 @@ # Tenant namespaces deny everything. The provisioner adds one policy per run -# generation (DNS plus the API, Temporal and Git service) and one per IDE -# workspace (DNS and, for a platform repository, the Git service out; in only -# from the workspace gateway). +# generation (DNS plus the API, Temporal and Git service). apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: @@ -62,53 +60,7 @@ spec: matchLabels: app.kubernetes.io/managed-by: wishforge-provisioner wishforge.io/component: runner ---- -# The receiving side of the IDE workspaces' egress to the Git service, where people's -# clones fetch and push the project's repository. -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: workspaces-to-git - namespace: wishforge-control -spec: - podSelector: - matchLabels: - wishforge.io/component: git-storage - policyTypes: [Ingress] - ingress: - - from: - - namespaceSelector: - matchExpressions: - - { key: wishforge.io/tenant, operator: Exists } - podSelector: - matchLabels: - app.kubernetes.io/managed-by: wishforge-provisioner - wishforge.io/component: ide ---- -# The sending side of the per-workspace ingress policy: Theia on 3000, OCT on 8100. -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: gateway-to-workspaces - namespace: wishforge-control -spec: - podSelector: - matchLabels: - wishforge.io/component: workspace-gateway - policyTypes: [Egress] - egress: - - to: - - namespaceSelector: - matchExpressions: - - { key: wishforge.io/tenant, operator: Exists } - podSelector: - matchLabels: - app.kubernetes.io/managed-by: wishforge-provisioner - wishforge.io/component: ide - ports: - - { protocol: TCP, port: 3000 } - - { protocol: TCP, port: 8100 } -# Every other flow (ingress, Web and gateway to the API, the API to PostgreSQL, +# Every other flow (ingress, Web to the API, the API to PostgreSQL, # OIDC, object storage, Vault, the provisioner and model providers, workers to # the API and Temporal, the provisioner to the Kubernetes API) needs an explicit # environment-specific policy. diff --git a/infra/k8s/base/provisioner-rbac.yaml b/infra/k8s/base/provisioner-rbac.yaml index 66fead2..4ca79c9 100644 --- a/infra/k8s/base/provisioner-rbac.yaml +++ b/infra/k8s/base/provisioner-rbac.yaml @@ -8,11 +8,10 @@ metadata: namespace: wishforge-control automountServiceAccountToken: false --- -# Exactly what apps/provisioner applies (server-side) for run generations and IDE -# workspaces, reads back, patches (workspace pause/resume) and deletes on release. +# Exactly what apps/provisioner applies (server-side) for run generations, reads +# back and deletes on release. # Run PVCs are deleted by label once the control plane's retention period passed. -# RBAC cannot constrain the fields of the Jobs and Deployments it creates: -# admission policy must. +# RBAC cannot constrain the fields of the Jobs it creates: admission policy must. apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: @@ -22,18 +21,12 @@ rules: - apiGroups: [batch] resources: [jobs] verbs: [get, list, create, patch, delete] - - apiGroups: [apps] - resources: [deployments] - verbs: [get, create, patch] - apiGroups: [''] resources: [pods] verbs: [get, list] - apiGroups: [''] resources: [persistentvolumeclaims] verbs: [get, list, create, patch, delete] - - apiGroups: [''] - resources: [services] - verbs: [get, create, patch] - apiGroups: [''] resources: [secrets, serviceaccounts] verbs: [get, create, patch, delete] diff --git a/infra/k8s/local/wishforge.yaml b/infra/k8s/local/wishforge.yaml index 5173fb7..178b7ed 100644 --- a/infra/k8s/local/wishforge.yaml +++ b/infra/k8s/local/wishforge.yaml @@ -37,7 +37,6 @@ stringData: WF_GIT_ADMIN_TOKEN: '{{WF_GIT_ADMIN_TOKEN}}' WF_GIT_TOKEN_SECRET: '{{WF_GIT_TOKEN_SECRET}}' WF_PROVIDER_PROXY_SIGNING_KEY: '{{WF_PROVIDER_PROXY_SIGNING_KEY}}' - WF_WORKSPACE_GATEWAY_TOKEN: '{{WF_WORKSPACE_GATEWAY_TOKEN}}' --- apiVersion: v1 kind: ConfigMap @@ -66,12 +65,6 @@ data: WF_PROVIDER_PROXY_ALLOWED_MODELS: '{{MODEL}}' WF_CODEX_DEFAULT_MODEL: '{{MODEL}}' WF_OPENAI_BASE_URL: '{{OPENAI_BASE_URL}}' - # The IDE: the provisioner creates a Theia workspace with a collaboration sidecar per project, - # reached only through the gateway, which the browser opens at WF_IDE_PUBLIC_URL. - WF_WORKSPACE_GATEWAY_BASE: http://ide-gateway.wishforge-control.svc.cluster.local:4400 - WF_IDE_PUBLIC_URL: '{{IDE_PUBLIC_URL}}' - WF_THEIA_IMAGE: '{{IDE_IMAGE}}' - WF_OCT_WORKSPACE_IMAGE: '{{OCT_IMAGE}}' --- apiVersion: v1 kind: PersistentVolumeClaim @@ -314,47 +307,6 @@ spec: selector: { app: web } ports: [{ port: 3000, targetPort: 3000 }] --- -# The IDE gateway, the browser's only way into the workspaces: their network policy admits this -# component alone. It checks every request and WebSocket with the API. -apiVersion: apps/v1 -kind: Deployment -metadata: - name: ide-gateway - namespace: wishforge-control -spec: - replicas: 1 - selector: { matchLabels: { app: ide-gateway } } - template: - metadata: - labels: { app: ide-gateway, wishforge.io/component: workspace-gateway } - annotations: { wishforge.io/settings: '{{SETTINGS_DIGEST}}' } - spec: - containers: - - name: gateway - image: '{{IDE_GATEWAY_IMAGE}}' - env: - - { name: WF_DEPLOYMENT_MODE, value: development } - - { name: WF_API_URL, value: http://api.wishforge-control.svc.cluster.local:4000 } - - { name: WF_TENANT_ID, value: demo } - # The address the browser opens; the gateway refuses other origins. - - { name: WF_IDE_PUBLIC_URL, value: '{{IDE_PUBLIC_URL}}' } - - { name: WF_IDE_ALLOWED_SERVICE_NAMESPACE, value: wishforge-tenant-demo } - - name: WF_WORKSPACE_GATEWAY_TOKEN - valueFrom: { secretKeyRef: { name: wishforge-local, key: WF_WORKSPACE_GATEWAY_TOKEN } } - ports: [{ containerPort: 4400 }] - readinessProbe: - httpGet: { path: /healthz, port: 4400 } - periodSeconds: 5 ---- -apiVersion: v1 -kind: Service -metadata: - name: ide-gateway - namespace: wishforge-control -spec: - selector: { app: ide-gateway } - ports: [{ port: 4400, targetPort: 4400 }] ---- apiVersion: apps/v1 kind: Deployment metadata: @@ -414,18 +366,12 @@ rules: - apiGroups: [batch] resources: [jobs] verbs: [get, list, create, patch, delete] - - apiGroups: [apps] - resources: [deployments] - verbs: [get, create, patch] - apiGroups: [''] resources: [pods] verbs: [get, list] - apiGroups: [''] resources: [persistentvolumeclaims] verbs: [get, list, create, patch, delete] - - apiGroups: [''] - resources: [services] - verbs: [get, create, patch] - apiGroups: [''] resources: [secrets, serviceaccounts] verbs: [get, create, patch, delete] diff --git a/infra/oct/Dockerfile b/infra/oct/Dockerfile deleted file mode 100644 index fc23d56..0000000 --- a/infra/oct/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM node:22.14.0-bookworm-slim -WORKDIR /opt/oct -COPY package.json package-lock.json ./ -RUN npm ci --omit=dev --ignore-scripts && npm cache clean --force -USER node -EXPOSE 8100 -# 0.3.1's Commander parser passes its previous default as parseInt's radix. -# Omit --port and use the upstream default 8100 to avoid NaN. -CMD ["node", "node_modules/open-collaboration-server/lib/app.js", "--hostname", "0.0.0.0"] diff --git a/infra/oct/package-lock.json b/infra/oct/package-lock.json deleted file mode 100644 index 85765d7..0000000 --- a/infra/oct/package-lock.json +++ /dev/null @@ -1,1667 +0,0 @@ -{ - "name": "wishforge-oct-runtime", - "version": "0.1.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "wishforge-oct-runtime", - "version": "0.1.0", - "dependencies": { - "open-collaboration-server": "0.3.1" - } - }, - "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/@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/@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/@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/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/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/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/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/base64url": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", - "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "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/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/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/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/commander": { - "version": "13.1.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz", - "integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==", - "license": "MIT", - "engines": { - "node": ">=18" - } - }, - "node_modules/content-disposition": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", - "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "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": "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/cookie-parser": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz", - "integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==", - "license": "MIT", - "dependencies": { - "cookie": "0.7.2", - "cookie-signature": "1.0.6" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/cookie-signature": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", - "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", - "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/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/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/detect-libc": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", - "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", - "license": "Apache-2.0", - "optional": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/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/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/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/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/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/engine.io/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/engine.io/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/engine.io/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/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/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/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/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/express": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/express/-/express-5.1.0.tgz", - "integrity": "sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==", - "license": "MIT", - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.2.0", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.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.7", - "qs": "^6.14.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.0.1", - "vary": "^1.1.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/express/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/fflate": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", - "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", - "license": "MIT" - }, - "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/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": "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/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/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/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/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/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/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/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/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/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/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-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/jose": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/jose/-/jose-6.0.13.tgz", - "integrity": "sha512-Yms4GpbmdANamS51kKK6w4hRlKx8KTxbWyAAKT/MhUMtqbIqh5mb2HjhTNUbk7TFL8/MBB5zWSDohL7ed4k/UA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/panva" - } - }, - "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/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/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/mime-db": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", - "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", - "license": "MIT", - "dependencies": { - "mime-db": "^1.54.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/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.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/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/nanoid": { - "version": "5.1.16", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.16.tgz", - "integrity": "sha512-kVrnsrJqMR8+oLJnGEmSWw9BivK5mt7H3FZatVRjrc5wGqFYuBxX1yG7+A7Gi5AefkX6t/oCkizcQgpu0cY1dQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.js" - }, - "engines": { - "node": "^18 || >=20" - } - }, - "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/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/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/oauth": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.10.2.tgz", - "integrity": "sha512-JtFnB+8nxDEXgNyniwz573xxbKSOu3R8D40xQKqcjwJ2CDkYqUDI53o6IuzDJBx60Z8VKCm271+t8iFjakrl8Q==", - "license": "MIT" - }, - "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/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/open-collaboration-protocol": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/open-collaboration-protocol/-/open-collaboration-protocol-0.3.3.tgz", - "integrity": "sha512-BajI7Dw85I0dYgQNsMl2rJb1csWrzJe/wWDdgugxDL48rc8eIBOV9+S0DHLssoV6EFPv/b2TjDIL7PQ92Shbmg==", - "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-server": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/open-collaboration-server/-/open-collaboration-server-0.3.1.tgz", - "integrity": "sha512-lIp6kWhKLl2oCliC4rkUw47F6RVXOP4fub6BWUDioN1LY7VichyfkKU6Buyq+Nhb4KzkLNXeptLkek/1toh2Zg==", - "license": "MIT", - "dependencies": { - "commander": "~13.1.0", - "cookie-parser": "^1.4.7", - "express": "~5.1.0", - "inversify": "~6.2.2", - "jose": "~6.0.10", - "nanoid": "~5.1.5", - "open-collaboration-protocol": "~0.3.1", - "passport": "~0.7.0", - "passport-github": "~1.1.0", - "passport-google-oauth20": "~2.0.0", - "passport-oauth2": "~1.8.0", - "reflect-metadata": "~0.2.2", - "semver": "~7.7.1", - "socket.io": "~4.8.1", - "ws": "~8.18.1", - "yaml": "^2.7.1" - }, - "bin": { - "oct-server": "bin/server" - }, - "engines": { - "node": ">=20.10.0", - "npm": ">=10.2.3" - } - }, - "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/passport": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/passport/-/passport-0.7.0.tgz", - "integrity": "sha512-cPLl+qZpSc+ireUvt+IzqbED1cHHkDoVYMo30jbJIdOOjQ1MQYZBPiNvmi8UM6lJuOpTPXJGZQk0DtC4y61MYQ==", - "license": "MIT", - "dependencies": { - "passport-strategy": "1.x.x", - "pause": "0.0.1", - "utils-merge": "^1.0.1" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" - } - }, - "node_modules/passport-github": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/passport-github/-/passport-github-1.1.0.tgz", - "integrity": "sha512-XARXJycE6fFh/dxF+Uut8OjlwbFEXgbPVj/+V+K7cvriRK7VcAOm+NgBmbiLM9Qv3SSxEAV+V6fIk89nYHXa8A==", - "license": "MIT", - "dependencies": { - "passport-oauth2": "1.x.x" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/passport-google-oauth20": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/passport-google-oauth20/-/passport-google-oauth20-2.0.0.tgz", - "integrity": "sha512-KSk6IJ15RoxuGq7D1UKK/8qKhNfzbLeLrG3gkLZ7p4A6DBCcv7xpyQwuXtWdpyR0+E0mwkpjY1VfPOhxQrKzdQ==", - "license": "MIT", - "dependencies": { - "passport-oauth2": "1.x.x" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/passport-oauth2": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.8.0.tgz", - "integrity": "sha512-cjsQbOrXIDE4P8nNb3FQRCCmJJ/utnFKEz2NX209f7KOHPoX18gF7gBzBbLLsj2/je4KrgiwLLGjf0lm9rtTBA==", - "license": "MIT", - "dependencies": { - "base64url": "3.x.x", - "oauth": "0.10.x", - "passport-strategy": "1.x.x", - "uid2": "0.0.x", - "utils-merge": "1.x.x" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" - } - }, - "node_modules/passport-strategy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", - "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", - "engines": { - "node": ">= 0.4.0" - } - }, - "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/pause": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", - "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" - }, - "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/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/range-parser": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", - "integrity": "sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "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/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/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/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/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/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/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/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "license": "ISC" - }, - "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/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/socket.io/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/socket.io/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/socket.io/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/socket.io/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/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/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/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/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/uid2": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.4.tgz", - "integrity": "sha512-IevTus0SbGwQzYh3+fRsAMTVVPOoIVufzacXcHPmdlle1jUpq7BRL+mw3dgeLanvGZdwwbWhRV6XrcFNdBmjWA==", - "license": "MIT" - }, - "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/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/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/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/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/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 - } - } - }, - "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/yaml": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", - "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", - "license": "ISC", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - }, - "funding": { - "url": "https://github.com/sponsors/eemeli" - } - } - } -} diff --git a/infra/oct/package.json b/infra/oct/package.json deleted file mode 100644 index 03c3372..0000000 --- a/infra/oct/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "wishforge-oct-runtime", - "version": "0.1.0", - "private": true, - "dependencies": { - "open-collaboration-server": "0.3.1" - }, - "overrides": { - "ws": "8.21.0" - } -} diff --git a/infra/plans/catalog.example.json b/infra/plans/catalog.example.json index b31f862..f4ee778 100644 --- a/infra/plans/catalog.example.json +++ b/infra/plans/catalog.example.json @@ -8,7 +8,6 @@ "limits": { "maxMembers": 10, "maxProjects": 10, - "maxWorkspaces": 5, "maxConcurrentRuns": 2, "monthlyModelTokens": 2000000, "execution": { "cpuMilli": 2000, "memoryMiB": 4096, "storageMiB": 10240 } diff --git a/infra/scripts/smoke.mjs b/infra/scripts/smoke.mjs index 0621771..a2e7931 100644 --- a/infra/scripts/smoke.mjs +++ b/infra/scripts/smoke.mjs @@ -75,15 +75,6 @@ const checks = [ }, ], ]; -if (process.argv.includes('--ide')) - checks.push([ - 'OCT metadata', - async () => { - const metadata = await (await get('http://127.0.0.1:48100/api/meta')).json(); - assert.equal(metadata.version, '0.3.1'); - assert.ok(metadata.transports.includes('socket.io')); - }, - ]); let failed = 0; for (const [name, check] of checks) { try { diff --git a/package.json b/package.json index 96e1415..5e126a7 100644 --- a/package.json +++ b/package.json @@ -22,15 +22,11 @@ "dev:worker": "node --env-file=.env.local --import tsx apps/worker/src/main.ts", "dev:git": "node --env-file=.env.local --import tsx apps/git-service/src/main.ts", "dev:provisioner": "node --env-file=.env.local apps/provisioner/main.mjs", - "dev:ide": "node scripts/dev-ide.mjs", - "ide:install": "npm ci --prefix apps/ide", - "ide:build": "npm run build --prefix apps/ide", "build": "npm run build --workspaces --if-present", "build:services": "node scripts/build-services.mjs", "typecheck": "npm run typecheck --workspaces --if-present && tsc --noEmit -p tests", "test": "vitest run && node --test apps/provisioner/test/*.test.mjs scripts/*.test.mjs", "test:integration": "WF_INTEGRATION=1 vitest run tests/integration", - "test:ide": "node --test apps/ide/gateway/test/*.test.mjs apps/ide/collaboration/test/*.test.mjs apps/ide/collaboration/test/*.test.cjs apps/ide/policy/test/*.test.cjs", "db:migrate": "tsx apps/api/src/db/migrate.ts", "db:seed": "tsx apps/api/src/db/seed.ts", "setup:local": "node scripts/setup-local.mjs", diff --git a/packages/agent/src/prompt.ts b/packages/agent/src/prompt.ts index 82b8496..095d449 100644 --- a/packages/agent/src/prompt.ts +++ b/packages/agent/src/prompt.ts @@ -146,7 +146,7 @@ export function bundlePrompt(config: AgentBundleConfig, input: PromptInput) { : '', skills.length ? skillsSection(skills) : '', input.sourceBranch - ? `The workspace starts from branch ${input.sourceBranch}, which holds changes people made themselves (for example in the IDE). Keep those changes and build on them; this run verifies and merges them into the target branch together with your work.` + ? `The workspace starts from branch ${input.sourceBranch}, which holds changes people made themselves. Keep those changes and build on them; this run verifies and merges them into the target branch together with your work.` : '', input.frontendOnly ? frontendOnlySection(input.frontendOnly, !input.repairCount && !input.revert) : '', input.repairCount ? repairSection(input.repairCount, input.lastFailure) : '', diff --git a/packages/contracts/src/entities.ts b/packages/contracts/src/entities.ts index a14d85b..f7092fa 100644 --- a/packages/contracts/src/entities.ts +++ b/packages/contracts/src/entities.ts @@ -51,30 +51,6 @@ export interface CheckpointRecord extends Entity { trustedClassification?: TrustedClassification; } -export interface WorkspaceLifecycleOperation { - revision: number; - desired: 'paused' | 'running'; - automatic: boolean; - requestedAt: string; - operationId: string; - state: 'queued' | 'unknown' | 'observing' | 'complete'; -} - -/** A project's cloud IDE workspace. */ -export interface Workspace extends Entity { - projectId: string; - status: 'unconfigured' | 'requested' | 'ready' | 'pausing' | 'paused' | 'resuming' | 'unknown'; - reason?: string; - /** Gateway URL people open. */ - url?: string; - /** Private Theia endpoint behind the gateway. */ - upstreamUrl?: string; - collaborationUpstreamUrl?: string; - managedBy?: 'wishforge-provisioner' | 'local-provisioner'; - lastActivityAt?: string; - lifecycle?: WorkspaceLifecycleOperation; -} - /** A tenant's encrypted model credential (BYOK). */ export interface ProviderConnection extends Entity { provider: ProviderId; diff --git a/packages/contracts/src/index.ts b/packages/contracts/src/index.ts index 5d60781..d554c62 100644 --- a/packages/contracts/src/index.ts +++ b/packages/contracts/src/index.ts @@ -54,7 +54,6 @@ export type EntityKind = | 'approval' | 'checkpoint' | 'evidence' - | 'workspace' | 'provider_connection' | 'bundle' | 'lesson' @@ -542,10 +541,10 @@ export const wishInput = z /** One of the project's models; flash when offered, else the project's first, when absent. */ model: modelName.optional(), budget: budgetSchema.default({}), - /** Start from this branch instead of the target branch, e.g. one pushed from the IDE. */ + /** Start from this branch instead of the target branch, e.g. one people pushed with their own changes. */ sourceBranch: gitBranchName .optional() - .describe('Start from this branch (for example ide/work, pushed from the IDE) instead of the target branch'), + .describe('Start from this branch (one holding changes people pushed themselves) instead of the target branch'), frontendOnly: z .boolean() .optional() @@ -798,7 +797,8 @@ export interface GitHubDeliveryState { export interface PlanLimits { maxMembers: number; maxProjects: number; - maxWorkspaces: number; + /** Retired with the cloud IDE; older plan files and snapshots may still carry it. */ + maxWorkspaces?: number; maxConcurrentRuns: number; monthlyModelTokens: number; execution: { cpuMilli: number; memoryMiB: number; storageMiB: number }; @@ -837,7 +837,7 @@ export interface EntitlementView { planVersion: string; legacy: boolean; limits: PlanLimits; - counts: { members: number; projects: number; workspaces: number; reservedExecutionSlots: number }; + counts: { members: number; projects: number; reservedExecutionSlots: number }; assignedAt?: string; assignedBy?: string; } diff --git a/scripts/build-local-web.mjs b/scripts/build-local-web.mjs index ba7e783..3275207 100644 --- a/scripts/build-local-web.mjs +++ b/scripts/build-local-web.mjs @@ -23,7 +23,6 @@ export async function main() { /^WF_PUBLIC_URL$/, /^WF_API_URL$/, /^WF_WEB_/, - /^WF_IDE_/, /^OIDC_/, ], { NODE_ENV: 'production', NEXT_TELEMETRY_DISABLED: '1' }, diff --git a/scripts/cluster-poc.mjs b/scripts/cluster-poc.mjs index d45cd3c..5ab555e 100644 --- a/scripts/cluster-poc.mjs +++ b/scripts/cluster-poc.mjs @@ -75,7 +75,7 @@ export const SERVICE_IMAGES = { 'docker.io/temporalio/temporal:1.4.1@sha256:9844298258519ebece82b3253f1ee1fc4eb8d87b7abcc264cfb676be342c74a5', }; /** Paths never sent to the build, whatever Git says: local agent settings and private state. */ -const EXCLUDED = [/^\.claude\//, /^\.wishforge\//, /(^|\/)\.env(\..*)?$/, /^apps\/ide\//, /^infra\/oct\//]; +const EXCLUDED = [/^\.claude\//, /^\.wishforge\//, /(^|\/)\.env(\..*)?$/]; function capture(executable, args, options = {}) { return new Promise((resolve, reject) => { diff --git a/scripts/cluster-poc.test.mjs b/scripts/cluster-poc.test.mjs index adaa3c0..8d376be 100644 --- a/scripts/cluster-poc.test.mjs +++ b/scripts/cluster-poc.test.mjs @@ -44,7 +44,6 @@ test('the build sends only what Git tracks, never local agent settings or privat '.wishforge/local-access.json', '.env.local', 'apps/web/.env.production', - 'apps/ide/package.json', 'scripts/dev.mjs', ].join('\0'); assert.deepEqual(buildFiles(`${listing}\0`), ['package.json', 'scripts/dev.mjs']); diff --git a/scripts/dev-ide.mjs b/scripts/dev-ide.mjs deleted file mode 100644 index 9a663c4..0000000 --- a/scripts/dev-ide.mjs +++ /dev/null @@ -1,51 +0,0 @@ -import { existsSync, mkdirSync } from 'node:fs'; -import { resolve } from 'node:path'; -import { environment, loadLocalEnvironment, startServices } from './local-services.mjs'; - -loadLocalEnvironment(); -const root = process.cwd(); -if (!existsSync(resolve(root, 'apps/ide/src-gen/backend/main.js'))) - throw new Error('Theia is not built yet; run npm run ide:install and npm run ide:build first'); -// Local mode: every workspace opens this one directory in the one local Theia, and each -// project is cloned into a folder of its own there when its workspace is first opened. -const workspace = resolve(root, '.wishforge/ide-workspace'); -mkdirSync(workspace, { recursive: true }); -// Repository tokens stay outside the workspace folder. -const credentials = resolve(root, '.wishforge/ide-credentials'); -mkdirSync(credentials, { recursive: true, mode: 0o700 }); -const gitOrigin = new URL(process.env.WF_GIT_PUBLIC_BASE_URL ?? 'http://127.0.0.1:4504').origin; -await startServices( - [ - { - name: 'theia', - cwd: resolve(root, 'apps/ide'), - args: ['scripts/start.mjs'], - env: environment([/^WF_COLLABORATION_/], { - WISHFORGE_IDE_PORT: '4300', - // Theia otherwise only checks that a WebSocket's Origin matches its Host, which a page - // rebinding its own domain to 127.0.0.1 satisfies, terminals included. The gateway talks - // to Theia as 127.0.0.1:4300. - THEIA_HOSTS: '127.0.0.1:4300,localhost:4300', - WISHFORGE_WORKSPACE_PATH: workspace, - WISHFORGE_GIT_ORIGIN: gitOrigin, - WISHFORGE_GIT_CREDENTIAL_DIR: credentials, - }), - url: 'http://127.0.0.1:4300/', - }, - { - name: 'ide-gateway', - cwd: resolve(root, 'apps/ide'), - args: ['gateway/main.mjs'], - env: environment([ - /^WF_API_URL$/, - /^WF_TENANT_ID$/, - /^WF_WORKSPACE_GATEWAY_TOKEN$/, - /^WF_IDE_PUBLIC_URL$/, - /^WF_IDE_ALLOWED_UPSTREAM_ORIGINS$/, - /^WF_COLLABORATION_ALLOWED_UPSTREAM_ORIGINS$/, - ]), - url: 'http://127.0.0.1:4400/healthz', - }, - ], - 'Cloud IDE: request a workspace on a project page, then open it (gateway http://127.0.0.1:4400).', -); diff --git a/scripts/generate-architecture-svgs.mjs b/scripts/generate-architecture-svgs.mjs index 81f9ada..b49ff85 100644 --- a/scripts/generate-architecture-svgs.mjs +++ b/scripts/generate-architecture-svgs.mjs @@ -50,24 +50,16 @@ const archSvg = `BFF 架构 / OIDC 单点登录 / 仪表盘与运行详情 - + M MCP 客户端集成 Codex / WorkBuddy 直接许愿与进度追踪 - - - - - - 云端 IDE (Theia 1.76) - 沙箱环境直连 / OCT 协作 / 源码调试工作区 - diff --git a/scripts/k3s-local.mjs b/scripts/k3s-local.mjs index f6fdc8c..7616cdd 100644 --- a/scripts/k3s-local.mjs +++ b/scripts/k3s-local.mjs @@ -7,8 +7,7 @@ // node scripts/k3s-local.mjs deploy render infra/k8s/local and apply it (needs WF_CODEX_DEFAULT_MODEL) // node scripts/k3s-local.mjs model store WF_TEST_MODEL_API_KEY as the tenant's Codex key // node scripts/k3s-local.mjs smoke create a project and run one wish to the end -// node scripts/k3s-local.mjs web forward the workbench (http://localhost:3100) and the IDE -// gateway (http://localhost:3101) to the host +// node scripts/k3s-local.mjs web forward the workbench (http://localhost:3100) to the host // node scripts/k3s-local.mjs status show the platform and sandbox pods // node scripts/k3s-local.mjs down stop the VM (data stays; `up` resumes it) // @@ -27,7 +26,7 @@ const REGISTRY = 'localhost:5000'; const STATE = '.wishforge/k3s'; const DOCKER_CONFIG = path.resolve(STATE, 'docker'); const SERVICES = 'infra/images/runtime.Dockerfile'; -/** How each image is built; the collaboration image builds on a local base image first. */ +/** How each image is built. */ const IMAGES = { runtime: { file: SERVICES, context: '.', target: 'runtime' }, worker: { file: SERVICES, context: '.', target: 'worker' }, @@ -35,13 +34,6 @@ const IMAGES = { provisioner: { file: SERVICES, context: '.', target: 'provisioner' }, // Development sign-in exists only in a development build of the web. web: { file: SERVICES, context: '.', target: 'web', args: { WEB_BUILD: 'development' } }, - ide: { file: 'apps/ide/Dockerfile', context: 'apps/ide', target: 'theia' }, - 'ide-gateway': { file: 'apps/ide/Dockerfile', context: 'apps/ide', target: 'gateway' }, - 'oct-workspace': { - file: 'apps/ide/collaboration/Dockerfile', - context: 'apps/ide/collaboration', - base: { file: 'infra/oct/Dockerfile', context: 'infra/oct', tag: 'wishforge/oct:0.3.1-wf1' }, - }, }; const TARGETS = Object.keys(IMAGES); const BASE_IMAGES = { @@ -244,8 +236,6 @@ async function build() { for (const target of selected.length ? selected : TARGETS) { const image = IMAGES[target]; const tag = `${REGISTRY}/wishforge/${target}:dev`; - if (image.base) - docker(['build', '--file', image.base.file, ...buildArgs(), '--tag', image.base.tag, image.base.context]); docker([ 'build', '--file', @@ -286,10 +276,9 @@ async function deploy() { throw new Error('Build the images first: node scripts/k3s-local.mjs build'); const model = process.env.WF_CODEX_DEFAULT_MODEL; if (!model) throw new Error('Set WF_CODEX_DEFAULT_MODEL to a model your gateway serves (GET /v1/models)'); - // Clear of the local development stack (npm run dev:all uses 3000 and 4400), so both can run. - const ports = { web: process.env.WF_K3S_WEB_PORT ?? '3100', ide: process.env.WF_K3S_IDE_PORT ?? '3101' }; - if (!Object.values(ports).every(port => /^\d{2,5}$/.test(port))) - throw new Error('WF_K3S_WEB_PORT and WF_K3S_IDE_PORT must be port numbers'); + // Clear of the local development stack (npm run dev:all uses 3000), so both can run. + const webPort = process.env.WF_K3S_WEB_PORT ?? '3100'; + if (!/^\d{2,5}$/.test(webPort)) throw new Error('WF_K3S_WEB_PORT must be a port number'); // Generated once and kept outside Git, so redeploying keeps the database password and tokens. const secrets = await readJson('secrets.json'); const secret = () => randomBytes(32).toString('hex'); @@ -306,7 +295,6 @@ async function deploy() { 'WF_GIT_ADMIN_TOKEN', 'WF_GIT_TOKEN_SECRET', 'WF_PROVIDER_PROXY_SIGNING_KEY', - 'WF_WORKSPACE_GATEWAY_TOKEN', ]) secrets[name] ??= secret(); await writeJson('secrets.json', secrets); @@ -317,12 +305,8 @@ async function deploy() { GIT_STORAGE_IMAGE: images['git-storage'], PROVISIONER_IMAGE: images.provisioner, WEB_IMAGE: images.web, - IDE_IMAGE: images.ide, - IDE_GATEWAY_IMAGE: images['ide-gateway'], - OCT_IMAGE: images['oct-workspace'], - // `web` forwards these ports; the workbench and the gateway accept only these origins. - WEB_PUBLIC_URL: `http://localhost:${ports.web}`, - IDE_PUBLIC_URL: `http://localhost:${ports.ide}`, + // `web` forwards this port; the workbench accepts only this origin. + WEB_PUBLIC_URL: `http://localhost:${webPort}`, MODEL: model, OPENAI_BASE_URL: process.env.WF_OPENAI_BASE_URL ?? '', }; @@ -355,12 +339,9 @@ async function deploy() { 'worker-coordinator', 'worker-deployer', 'web', - 'ide-gateway', ]) kubectl(['--namespace', 'wishforge-control', 'rollout', 'status', `deployment/${name}`, '--timeout=600s']); - console.log( - 'WishForge is running. Next: node scripts/k3s-local.mjs model, then smoke; `web` opens the workbench and IDE.', - ); + console.log('WishForge is running. Next: node scripts/k3s-local.mjs model, then smoke; `web` opens the workbench.'); } /** Runs a small Node program inside the API pod, against the API on its own loopback. */ @@ -474,19 +455,16 @@ const portFree = port => server.listen(Number(port), '127.0.0.1', () => server.close(() => resolve(true))); }); -/** Forwards the workbench and the IDE gateway to the ports they were deployed for. */ +/** Forwards the workbench to the port it was deployed for. */ async function web() { requireCluster(); - const forwards = [ - { service: 'web', port: 3000, url: deployedOrigin('web', 'WF_PUBLIC_URL') }, - { service: 'ide-gateway', port: 4400, url: deployedOrigin('ide-gateway', 'WF_IDE_PUBLIC_URL') }, - ]; + const forwards = [{ service: 'web', port: 3000, url: deployedOrigin('web', 'WF_PUBLIC_URL') }]; for (const { url } of forwards) if (!(await portFree(url.port))) throw new Error( - `Port ${url.port} is taken on this machine (a local dev server?). Deploy with free WF_K3S_WEB_PORT and WF_K3S_IDE_PORT, then run web again.`, + `Port ${url.port} is taken on this machine (a local dev server?). Deploy with a free WF_K3S_WEB_PORT, then run web again.`, ); - console.log(`Workbench ${forwards[0].url.origin}, IDE ${forwards[1].url.origin} (exactly these addresses).`); + console.log(`Workbench ${forwards[0].url.origin} (exactly this address).`); console.log('Ctrl-C stops forwarding; a deploy replaces the pods and ends it, so run `web` again then.'); const children = forwards.map(({ service, port, url }) => spawn( diff --git a/scripts/local-services.mjs b/scripts/local-services.mjs index 645ca8a..34aef9a 100644 --- a/scripts/local-services.mjs +++ b/scripts/local-services.mjs @@ -60,9 +60,6 @@ export function platformPorts(env = process.env) { env.S3_ENDPOINT, env.WF_PROVISIONER_URL, env.WF_GIT_SERVICE_URL, - env.WF_IDE_GATEWAY_URL, - env.WF_IDE_PUBLIC_URL, - ...(env.WF_IDE_ALLOWED_UPSTREAM_ORIGINS ?? '').split(','), env.TEMPORAL_ADDRESS && `grpc://${env.TEMPORAL_ADDRESS}`, ]; for (const address of addresses.filter(Boolean)) { diff --git a/scripts/local-services.test.mjs b/scripts/local-services.test.mjs index 29fbd87..3ef426a 100644 --- a/scripts/local-services.test.mjs +++ b/scripts/local-services.test.mjs @@ -83,11 +83,10 @@ test("the platform's own ports come from its configured addresses", () => { TEMPORAL_ADDRESS: '127.0.0.1:7233', S3_ENDPOINT: 'http://127.0.0.1:49000', WF_PROVISIONER_URL: 'http://127.0.0.1:4450', - WF_IDE_ALLOWED_UPSTREAM_ORIGINS: 'http://127.0.0.1:4300, http://localhost:4301', WF_HOST_CHECK_BLOCKED_PORTS: '6379', - WF_IDE_PUBLIC_URL: 'not an address', + WF_GIT_SERVICE_URL: 'not an address', }), - [3000, 4000, 4300, 4301, 4450, 4504, 6379, 7233, 8233, 49000, 55432], + [3000, 4000, 4450, 4504, 6379, 7233, 8233, 49000, 55432], ); }); diff --git a/scripts/setup-local.mjs b/scripts/setup-local.mjs index 89d2b08..ce9bee8 100644 --- a/scripts/setup-local.mjs +++ b/scripts/setup-local.mjs @@ -58,7 +58,6 @@ for (const key of [ 'WF_INTERNAL_TOKEN_KEY', 'WF_RESOURCE_GRANT_SECRET', 'WF_PROVISIONER_TOKEN', - 'WF_WORKSPACE_GATEWAY_TOKEN', 'WF_GIT_ADMIN_TOKEN', 'WF_GIT_TOKEN_SECRET', 'WF_METRICS_TOKEN', @@ -84,14 +83,6 @@ add('S3_SECRET_ACCESS_KEY', 'wishforge-minio-dev-only'); add('WF_PROVISIONER_BACKEND', 'local'); add('WF_PROVISIONER_URL', 'http://127.0.0.1:4450'); add('WF_LOCAL_RUN_ROOT', resolve(homedir(), '.local/share/wishforge/runs')); -add('WF_LOCAL_IDE_URL', 'http://127.0.0.1:4300/'); - -// Cloud IDE gateway (npm run dev:ide). -add('WF_WORKSPACE_GATEWAY_TENANT_ID', 'demo'); -add('WF_WORKSPACE_GATEWAY_BASE', 'http://127.0.0.1:4400'); -add('WF_IDE_GATEWAY_URL', 'http://127.0.0.1:4400'); -add('WF_IDE_PUBLIC_URL', 'http://127.0.0.1:4400'); -add('WF_IDE_ALLOWED_UPSTREAM_ORIGINS', 'http://127.0.0.1:4300'); // Runner task signing key. await mkdir('.wishforge/keys', { recursive: true, mode: 0o700 }); diff --git a/scripts/tenant-admin.ts b/scripts/tenant-admin.ts index 48ba808..19e08fb 100644 --- a/scripts/tenant-admin.ts +++ b/scripts/tenant-admin.ts @@ -139,7 +139,6 @@ export async function runTenantAdmin(command: string, args: string[], env = proc if ( members.rows[0].count > plan!.limits.maxMembers || active('project').length > plan!.limits.maxProjects || - active('workspace').length > plan!.limits.maxWorkspaces || held.length > plan!.limits.maxConcurrentRuns ) throw new Error('New plan is below existing allocations; reconcile them before downgrading'); diff --git a/tests/application-access.test.ts b/tests/application-access.test.ts index 21d4af4..22b11b1 100644 --- a/tests/application-access.test.ts +++ b/tests/application-access.test.ts @@ -100,8 +100,8 @@ describe('immutable release delivery URL and access evidence', () => { f.releases.updateApplicationUrl(owner, environment.id, { applicationUrl: 'https://service.ns.svc/' }), ).rejects.toMatchObject({ code: 'APPLICATION_URL_INVALID' }); }); - it('rejects application URLs on console, API and IDE authentication origins', () => { - for (const key of ['WF_PUBLIC_URL', 'WF_API_PUBLIC_URL', 'WF_IDE_PUBLIC_URL', 'WF_WORKSPACE_GATEWAY_BASE']) + it('rejects application URLs on console and API authentication origins', () => { + for (const key of ['WF_PUBLIC_URL', 'WF_API_PUBLIC_URL']) expect(() => applicationUrlFor( { applicationUrl: 'https://shared.example.test/app', production: true }, diff --git a/tests/dispatcher.test.ts b/tests/dispatcher.test.ts index 7640cb8..cbfdf7e 100644 --- a/tests/dispatcher.test.ts +++ b/tests/dispatcher.test.ts @@ -1,7 +1,7 @@ import { afterEach, expect, it, vi } from 'vitest'; import { MemoryStore } from './helpers/memory-store.js'; import { ControlPlane, record } from '../apps/api/src/domain/control-plane.js'; -import type { Project, Run, Workspace } from '@wishforge/contracts'; +import type { Run } from '@wishforge/contracts'; const temporal = vi.hoisted(() => ({ connect: vi.fn(), close: vi.fn(), cancel: vi.fn() })); vi.mock('@temporalio/client', () => ({ @@ -87,55 +87,6 @@ it('refuses to dispatch several tenants through one namespace in production', as await expect(dispatcher.start()).rejects.toThrow('per-tenant Temporal namespaces'); expect(temporal.connect).not.toHaveBeenCalled(); }); -it('tells the provisioner the platform repository a new workspace may use', async () => { - const store = new MemoryStore(); - store.seed('alpha'); - const project = { - ...record('alpha'), - name: 'Todo App', - repositoryStorage: 'platform', - repositoryUrl: 'https://git.test/git/alpha/todo.git', - targetBranch: 'main', - } as Project; - const workspace = { ...record('alpha'), projectId: project.id, status: 'unconfigured' } as Workspace; - await store.transaction('alpha', async tx => { - await tx.put('project', project); - await tx.put('workspace', workspace); - await tx.enqueue('workspace.provision', { workspaceId: workspace.id, projectId: project.id }, 'provision-fixture'); - }); - temporal.connect.mockResolvedValue({ close: temporal.close }); - const requests: unknown[] = []; - const dispatcher = new Dispatcher( - new ControlPlane(store, { - WF_DISPATCH_TENANTS: 'alpha', - WF_PROVISIONER_TENANT_ID: 'alpha', - WF_PROVISIONER_URL: 'http://127.0.0.1:4450', - WF_PROVISIONER_TOKEN: 'p'.repeat(32), - WF_WORKSPACE_GATEWAY_BASE: 'http://127.0.0.1:4400', - WF_WORKSPACE_GATEWAY_TOKEN: 'g'.repeat(32), - WF_WORKSPACE_GATEWAY_TENANT_ID: 'alpha', - }), - ); - vi.stubGlobal('fetch', async (_url: string, init: RequestInit) => { - requests.push(JSON.parse(String(init.body))); - void dispatcher.close(); - return Response.json({ status: 'pending', upstreamUrl: '' }); - }); - try { - await dispatcher.start(); - } finally { - vi.unstubAllGlobals(); - } - expect(requests).toEqual([ - { - tenantId: 'alpha', - projectId: project.id, - workspaceId: workspace.id, - repositoryUrl: 'https://git.test/git/alpha/todo.git', - }, - ]); -}); - it('drops a start that a newer one replaced while it was being dispatched, leaving the run as it is', async () => { const store = new MemoryStore(); store.seed('alpha'); diff --git a/tests/entitlements-usage.test.ts b/tests/entitlements-usage.test.ts index ef1633a..58145e3 100644 --- a/tests/entitlements-usage.test.ts +++ b/tests/entitlements-usage.test.ts @@ -1,13 +1,12 @@ import { beforeEach, describe, expect, it } from 'vitest'; import type { Actor, Run, TenantEntitlementSnapshot } from '@wishforge/contracts'; import { MemoryStore } from './helpers/memory-store.js'; -import { ControlPlane, record } from '../apps/api/src/domain/control-plane.js'; +import { ControlPlane } from '../apps/api/src/domain/control-plane.js'; import { Connections } from '../apps/api/src/domain/connections.js'; import { Usage } from '../apps/api/src/domain/usage.js'; import { Entitlements, PILOT_PLAN, - requireCapacity, reserveExecutionGrant, recordAllocation, } from '../apps/api/src/domain/entitlements.js'; @@ -92,22 +91,13 @@ describe('fixed pilot entitlements and resource admission', () => { ).rejects.toMatchObject({ code: 'RESOURCE_CONFIGURATION_INVALID' }); expect((await entitlements.view(owner)).counts.reservedExecutionSlots).toBe(0); }); - it('atomically limits projects and workspaces without blocking idempotent existing data', async () => { + it('atomically limits projects without blocking idempotent existing data', async () => { const results = await Promise.allSettled([ control.createProject(owner, { name: 'First' }), control.createProject(owner, { name: 'Second' }), ]); expect(results.filter(r => r.status === 'fulfilled')).toHaveLength(1); - const workspaces = await Promise.allSettled( - [1, 2].map(() => - db.transaction('alpha', async tx => { - await requireCapacity(tx, 'workspace'); - await tx.put('workspace', { ...record('alpha'), projectId: 'fixture' }); - }), - ), - ); - expect(workspaces.filter(r => r.status === 'fulfilled')).toHaveLength(1); - expect((await entitlements.view(owner)).counts).toMatchObject({ projects: 1, workspaces: 1 }); + expect((await entitlements.view(owner)).counts).toMatchObject({ projects: 1 }); }); it('requires a human operations admin and enforces member capacity in the same transaction', async () => { await expect( diff --git a/tests/gateway-target.test.ts b/tests/gateway-target.test.ts deleted file mode 100644 index 13fcc72..0000000 --- a/tests/gateway-target.test.ts +++ /dev/null @@ -1,229 +0,0 @@ -import { tmpdir } from 'node:os'; -import { join } from 'node:path'; -import { afterEach, describe, it, expect } from 'vitest'; -import { mkdtemp, writeFile, rm } from 'node:fs/promises'; -import type { Actor, Workspace } from '@wishforge/contracts'; -import { resolveGatewayTarget, validateGatewayLaunch } from '../apps/api/src/domain/gateway-target.js'; -import { WorkspaceLifecycle } from '../apps/api/src/domain/workspace-lifecycle.js'; -import { WorkspaceLaunch } from '../apps/api/src/domain/workspace-launch.js'; -import { Authenticator } from '../apps/api/src/auth.js'; -import { ControlPlane, record } from '../apps/api/src/domain/control-plane.js'; -import { MemoryStore } from './helpers/memory-store.js'; -const dirs: string[] = []; -afterEach(async () => { - for (const dir of dirs.splice(0)) await rm(dir, { recursive: true, force: true }); -}); -async function fixture() { - const root = await mkdtemp(join(tmpdir(), 'wishforge-gateway-routing-')); - dirs.push(root); - const file = `${root}/targets.json`; - const map = { - schemaVersion: 1, - tenants: { - alpha: { - internalUrl: 'https://alpha.internal.example', - publicUrl: 'https://alpha.ide.example', - tokenEnv: 'WF_ALPHA_GATEWAY_TOKEN', - }, - beta: { - internalUrl: 'https://beta.internal.example', - publicUrl: 'https://beta.ide.example', - tokenEnv: 'WF_BETA_GATEWAY_TOKEN', - }, - }, - }; - await writeFile(file, JSON.stringify(map)); - const env = { - NODE_ENV: 'production', - WF_DISPATCH_TENANTS: 'alpha,beta', - WF_WORKSPACE_GATEWAY_TARGETS_FILE: file, - WF_ALPHA_GATEWAY_TOKEN: 'a'.repeat(32), - WF_BETA_GATEWAY_TOKEN: 'b'.repeat(32), - WF_WORKSPACE_GATEWAY_BASE: 'https://legacy.example', - WF_WORKSPACE_GATEWAY_TOKEN: 'x'.repeat(32), - }; - const db = new MemoryStore(); - const control = new ControlPlane(db, { NODE_ENV: 'test' }); - const resources: Record = {}; - for (const tenantId of ['alpha', 'beta']) { - db.seed(tenantId); - const actor: Actor = { tenantId, userId: 'owner', role: 'owner', kind: 'human' }; - const project = await control.createProject(actor, { - name: tenantId, - repositoryUrl: 'https://example.test/repo.git', - }); - const workspace = { - ...record(tenantId), - projectId: project.id, - status: 'ready', - upstreamUrl: 'https://theia.internal.example', - managedBy: 'wishforge-provisioner', - }; - const run = { - ...record(tenantId), - projectId: project.id, - revision: 1, - status: 'running', - executionGeneration: 'generation', - lease: { token: 1, expiresAt: new Date(Date.now() + 60000).toISOString(), workerId: 'verifier' }, - leaseOwnerId: 'verifier', - leaseOwnerKind: 'verifier', - }; - await db.transaction(tenantId, async tx => { - await tx.put('workspace', workspace); - await tx.put('run', run); - }); - resources[tenantId] = { actor, projectId: project.id, workspaceId: workspace.id, runId: run.id }; - } - return { db, env, map, file, resources }; -} -describe('tenant-owned gateway routes and human launch capability', () => { - it('resolves two tenants to distinct endpoints/credentials and never falls back for an omitted tenant', async () => { - const f = await fixture(); - expect(await resolveGatewayTarget(f.env, 'alpha')).toMatchObject({ - internalUrl: f.map.tenants.alpha.internalUrl, - publicUrl: f.map.tenants.alpha.publicUrl, - token: 'a'.repeat(32), - }); - expect(await resolveGatewayTarget(f.env, 'beta')).toMatchObject({ token: 'b'.repeat(32) }); - expect(await resolveGatewayTarget(f.env, 'missing')).toBeUndefined(); - await expect( - resolveGatewayTarget( - { - NODE_ENV: 'production', - WF_DISPATCH_TENANTS: 'alpha,beta', - WF_WORKSPACE_GATEWAY_BASE: 'https://legacy.example', - WF_WORKSPACE_GATEWAY_TOKEN: 'x'.repeat(32), - }, - 'alpha', - ), - ).rejects.toMatchObject({ code: 'GATEWAY_TENANT_BINDING_REQUIRED' }); - }); - it('authenticates gateway tokens only in their bound tenant and rejects shared credentials', async () => { - const f = await fixture(); - const auth = new Authenticator(f.db, f.env); - expect(await auth.internal(`Bearer ${f.env.WF_ALPHA_GATEWAY_TOKEN}`, 'alpha')).toMatchObject({ - userId: 'workspace-gateway', - tenantId: 'alpha', - }); - await expect(auth.internal(`Bearer ${f.env.WF_ALPHA_GATEWAY_TOKEN}`, 'beta')).rejects.toMatchObject({ - code: 'UNAUTHENTICATED', - }); - await expect(auth.internal(`Bearer ${f.env.WF_WORKSPACE_GATEWAY_TOKEN}`, 'alpha')).rejects.toMatchObject({ - code: 'UNAUTHENTICATED', - }); - f.env.WF_BETA_GATEWAY_TOKEN = f.env.WF_ALPHA_GATEWAY_TOKEN; - await expect(resolveGatewayTarget(f.env, 'alpha')).rejects.toMatchObject({ code: 'GATEWAY_CONFIGURATION_INVALID' }); - }); - it('routes human launch using actor tenant and passes only the human token, then validates the one-time public URL', async () => { - const f = await fixture(); - const calls: Array<{ origin: string; auth: unknown; workspaceId: string }> = []; - const fetcher: typeof fetch = async (url, options) => { - const target = new URL(String(url)), - body = JSON.parse(String(options?.body)); - const tenant = target.hostname.startsWith('alpha.') ? 'alpha' : 'beta'; - calls.push({ - origin: target.origin, - auth: (options?.headers as Record).authorization, - workspaceId: body.workspaceId, - }); - return Response.json({ - launchUrl: `https://${tenant}.ide.example/session?code=${'a'.repeat(43)}`, - expiresIn: 30, - }); - }; - const launch = new WorkspaceLaunch(f.db, f.env, fetcher); - for (const tenant of ['alpha', 'beta']) { - const row = f.resources[tenant]!; - expect(await launch.launch(row.actor, row.workspaceId, `Bearer human-${tenant}`)).toMatchObject({ - launchUrl: `https://${tenant}.ide.example/session?code=${'a'.repeat(43)}`, - }); - } - expect(calls.map(c => c.origin)).toEqual(['https://alpha.internal.example', 'https://beta.internal.example']); - expect(calls.map(c => c.auth)).toEqual(['Bearer human-alpha', 'Bearer human-beta']); - const row = f.resources.alpha!; - await expect( - launch.launch({ ...row.actor, kind: 'connector' }, row.workspaceId, 'Bearer connector'), - ).rejects.toMatchObject({ code: 'HUMAN_APPROVAL_REQUIRED' }); - await expect( - launch.launch({ ...row.actor, role: 'viewer' }, row.workspaceId, 'Bearer viewer'), - ).rejects.toMatchObject({ code: 'FORBIDDEN' }); - expect(calls).toHaveLength(2); - }); - it('automatic lifecycle inspection and scaling route each tenant to its own gateway and provisioner', async () => { - const f = await fixture(); - const provisionerFile = f.file + '.provisioner'; - await writeFile( - provisionerFile, - JSON.stringify({ - schemaVersion: 1, - tenants: { - alpha: { url: 'https://alpha.provisioner.example', tokenEnv: 'WF_ALPHA_PROVISIONER_TOKEN' }, - beta: { url: 'https://beta.provisioner.example', tokenEnv: 'WF_BETA_PROVISIONER_TOKEN' }, - }, - }), - ); - const env = { - ...f.env, - WF_PROVISIONER_TARGETS_FILE: provisionerFile, - WF_ALPHA_PROVISIONER_TOKEN: 'p'.repeat(32), - WF_BETA_PROVISIONER_TOKEN: 'q'.repeat(32), - }; - const calls: Array<{ origin: string; path: string; token: string }> = []; - const fetcher: typeof fetch = async (url, options) => { - const target = new URL(String(url)), - tenant = target.hostname.startsWith('alpha.') ? 'alpha' : 'beta', - row = f.resources[tenant]!; - calls.push({ - origin: target.origin, - path: target.pathname, - token: (options?.headers as Record).authorization, - }); - if (target.pathname === '/internal/lifecycle-state') - return Response.json({ workspaceId: row.workspaceId, gatewayConnections: 0, known: true }); - return Response.json({ - workspaceId: row.workspaceId, - revision: options?.method === 'PUT' ? 1 : 0, - desired: options?.method === 'PUT' ? 'paused' : 'running', - status: options?.method === 'PUT' ? 'pending' : 'ready', - }); - }; - const lifecycle = new WorkspaceLifecycle(f.db, env, fetcher); - for (const tenant of ['alpha', 'beta']) { - const row = f.resources[tenant]!; - await f.db.transaction(tenant, async tx => { - const w = (await tx.get('workspace', row.workspaceId))!; - w.lastActivityAt = new Date(Date.now() - 31 * 60000).toISOString(); - await tx.put('workspace', w); - }); - await lifecycle.scheduleIdle(tenant); - await f.db.transaction(tenant, async tx => { - const w = (await tx.get('workspace', row.workspaceId))!; - w.lifecycle!.requestedAt = new Date(Date.now() - 6000).toISOString(); - await tx.put('workspace', w); - }); - const item = (await f.db.transaction(tenant, tx => tx.outbox())).find(x => x.type === 'workspace.reconcile')!; - await lifecycle.reconcile(tenant, item); - } - expect(calls.filter(c => c.origin.includes('internal.example')).map(c => c.token)).toEqual([ - `Bearer ${'a'.repeat(32)}`, - `Bearer ${'a'.repeat(32)}`, - `Bearer ${'b'.repeat(32)}`, - `Bearer ${'b'.repeat(32)}`, - ]); - for (const call of calls.filter(c => c.origin.includes('provisioner.example'))) - expect(call.token).toBe(`Bearer ${call.origin.includes('alpha.') ? 'p'.repeat(32) : 'q'.repeat(32)}`); - }); - it('rejects wrong origin, duplicate code, arbitrary redirect path and embedded credentials', async () => { - const f = await fixture(); - const target = (await resolveGatewayTarget(f.env, 'alpha'))!; - for (const url of [ - `https://beta.ide.example/session?code=${'a'.repeat(43)}`, - `https://alpha.ide.example/evil?code=${'a'.repeat(43)}`, - `https://alpha.ide.example/session?code=${'a'.repeat(43)}&code=other`, - `https://user@alpha.ide.example/session?code=${'a'.repeat(43)}`, - `https://alpha.ide.example/session?code=${'a'.repeat(43)}#secret`, - ]) - expect(() => validateGatewayLaunch(target, { launchUrl: url, expiresIn: 30 })).toThrow(); - }); -}); diff --git a/tests/helpers/internal-fetch.ts b/tests/helpers/internal-fetch.ts index 2bbd007..a01cf17 100644 --- a/tests/helpers/internal-fetch.ts +++ b/tests/helpers/internal-fetch.ts @@ -32,8 +32,6 @@ const routes: Route[] = [ ['POST', /^\/runs\/([^/]+)\/github\/state$/, (c, r, id, b) => c.githubState(r, id, b)], ['POST', /^\/evidence$/, (c, r, _id, b) => c.evidence(r, b)], ['POST', /^\/releases$/, (c, r, _id, b) => c.release(r, b)], - ['POST', /^\/workspaces\/([^/]+)\/authorize$/, (c, r, id, b) => c.authorizeWorkspace(r, id, b)], - ['POST', /^\/workspaces\/([^/]+)\/git-credential$/, (c, r, id, b) => c.workspaceGitCredential(r, id, b)], ]; /** diff --git a/tests/integration-lease.test.ts b/tests/integration-lease.test.ts index b65641a..f7a450c 100644 --- a/tests/integration-lease.test.ts +++ b/tests/integration-lease.test.ts @@ -1,7 +1,7 @@ import { describe, expect, it } from 'vitest'; import type { Actor, Run } from '@wishforge/contracts'; import { MemoryStore } from './helpers/memory-store.js'; -import { ControlPlane, record } from '../apps/api/src/domain/control-plane.js'; +import { ControlPlane } from '../apps/api/src/domain/control-plane.js'; import { Connections } from '../apps/api/src/domain/connections.js'; const owner: Actor = { tenantId: 'alpha', userId: 'owner', role: 'owner', kind: 'human' }; @@ -69,19 +69,4 @@ describe('project integration lease', () => { await f.control.integration.acquire(run.actor, run.id, run.token); await expect(f.control.integration.enforce(run.actor, run.id, run.token)).resolves.toBeUndefined(); }); - - it('does not let an open IDE workspace block agent integration', async () => { - const f = await fixture(); - const run = await f.verifierFor('ide'); - await f.db.transaction('alpha', tx => - tx.put('workspace', { - ...record('alpha'), - projectId: f.project.id, - status: 'ready', - upstreamUrl: 'http://127.0.0.1:4300', - }), - ); - await f.control.integration.acquire(run.actor, run.id, run.token); - await expect(f.control.integration.enforce(run.actor, run.id, run.token)).resolves.toBeUndefined(); - }); }); diff --git a/tests/internal-auth.test.ts b/tests/internal-auth.test.ts index 40cf449..077a0a6 100644 --- a/tests/internal-auth.test.ts +++ b/tests/internal-auth.test.ts @@ -1,5 +1,5 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Actor, Project, Run } from '@wishforge/contracts'; +import type { Actor, Run } from '@wishforge/contracts'; import { Authenticator } from '../apps/api/src/auth.js'; import { ControlPlane } from '../apps/api/src/domain/control-plane.js'; import { Services } from '../apps/api/src/http.js'; @@ -102,55 +102,3 @@ describe('internal service identities', () => { expect(await response.json()).toMatchObject({ error: { code: 'INVALID_INPUT' } }); }); }); - -describe('IDE gateway authorization', () => { - it('starts a session from the user token and rechecks the granted user, seeing revocation', async () => { - const devUser = '11111111-1111-4111-8111-111111111111'; - const gatewayEnv = { - ...env, - WF_DISPATCH_TENANTS: 'demo', - WF_DEV_AUTH_TOKEN: 'development-user-token-for-tests-only', - WF_WORKSPACE_GATEWAY_BASE: 'http://127.0.0.1:4400', - WF_WORKSPACE_GATEWAY_TOKEN: 'workspace-gateway-token-for-tests-only', - WF_WORKSPACE_GATEWAY_TENANT_ID: 'demo', - }; - const store = new MemoryStore(); - store.seed('demo'); - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'developer', active: true })); - const gatewayServices = new Services(new ControlPlane(store, gatewayEnv)); - const demoOwner: Actor = { tenantId: 'demo', userId: 'owner', role: 'owner', kind: 'human' }; - const project = await gatewayServices.control.createProject(demoOwner, { name: 'IDE' }); - await store.transaction('demo', async tx => { - const current = (await tx.get('project', project.id))!; - await tx.put('project', { ...current, memberIds: [...current.memberIds, devUser] }); - await tx.put('workspace', { - id: 'workspace-1', - tenantId: 'demo', - version: 1, - createdAt: new Date().toISOString(), - updatedAt: new Date().toISOString(), - projectId: project.id, - status: 'ready', - upstreamUrl: 'http://127.0.0.1:4300/', - }); - }); - const fetcher = internalFetch(gatewayServices); - const authorize = (body: unknown) => - fetcher('http://127.0.0.1:4000/internal/workspaces/workspace-1/authorize', { - method: 'POST', - headers: { - authorization: `Bearer ${gatewayEnv.WF_WORKSPACE_GATEWAY_TOKEN}`, - 'x-wishforge-tenant': 'demo', - 'content-type': 'application/json', - }, - body: JSON.stringify(body), - }); - const first = await authorize({ userToken: gatewayEnv.WF_DEV_AUTH_TOKEN, operation: 'edit' }); - expect(first.status).toBe(200); - expect((await first.json()).data).toMatchObject({ userId: devUser, role: 'developer', workspaceId: 'workspace-1' }); - expect((await authorize({ userId: devUser, operation: 'terminal' })).status).toBe(200); - expect((await authorize({ userId: devUser, userToken: 'x', operation: 'edit' })).status).toBe(400); - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'developer', active: false })); - expect((await authorize({ userId: devUser, operation: 'edit' })).status).toBe(403); - }); -}); diff --git a/tests/local-loop.test.ts b/tests/local-loop.test.ts index 19f243d..61eaad1 100644 --- a/tests/local-loop.test.ts +++ b/tests/local-loop.test.ts @@ -1,13 +1,12 @@ /** * The main loop end to end with real Git: wish → executor → independent verification * → repair with failure feedback → integration → success, plus lessons and merge - * conflicts, and a change pushed from the IDE workspace. The control plane runs in process + * conflicts, and a change people pushed themselves. The control plane runs in process * behind its real internal routes; only the agent is scripted. */ import { afterEach, beforeEach, describe, expect, it } from 'vitest'; import { execFile } from 'node:child_process'; import { existsSync } from 'node:fs'; -import { createRequire } from 'node:module'; import { mkdir, mkdtemp, readFile, readdir, rm, writeFile } from 'node:fs/promises'; import os from 'node:os'; import path from 'node:path'; @@ -35,18 +34,11 @@ import { WishReports } from '../apps/api/src/domain/wish-report.js'; import { Services } from '../apps/api/src/http.js'; import { ServiceTokens } from '../apps/api/src/service-tokens.js'; import { recordAllocation, reserveExecutionGrant } from '../apps/api/src/domain/entitlements.js'; -import { installHooks } from '../apps/git-service/src/service.js'; import { createActivities, type ActivityOutcome, type RunInput } from '../apps/worker/src/activities.js'; import { MemoryStore } from './helpers/memory-store.js'; import { internalFetch } from './helpers/internal-fetch.js'; const run = promisify(execFile); -/** The IDE workspace backend that clones the project and keeps its credential (apps/ide/policy). */ -const { createGitWorkspace } = createRequire(import.meta.url)('../apps/ide/policy/git-workspace.cjs') as { - createGitWorkspace: (config: { root: string; credentialDir: string; remote: string }) => { - apply: (delivery: Record) => Promise<{ directory: string; cloning?: Promise }>; - }; -}; const TENANT = 'demo'; const REMOTE_URL = 'http://127.0.0.1:65530/demo.git'; const owner: Actor = { tenantId: TENANT, userId: 'owner', role: 'owner', kind: 'human' }; @@ -810,37 +802,20 @@ describe('local main loop', () => { expect(await drive(session)).toEqual({ status: 'complete' }); expect(await git(remote, 'show', 'main:greeting.txt')).toBe('hello world'); }); - it('verifies and merges a branch pushed from the IDE through a wish that starts from it', async () => { + it('verifies and merges a branch people pushed through a wish that starts from it', async () => { const project = await createProject(); - // The Git service's push hook: an IDE credential may update ide/ branches only. - await git(remote, 'config', 'core.hooksPath', await installHooks(path.join(root, 'git-service'))); - const remoteUrl = `file://${remote}`; - const ide = createGitWorkspace({ - root: path.join(root, 'ide'), - credentialDir: path.join(root, 'ide-credentials'), - remote: remoteUrl, - }); - const { directory, cloning } = await ide.apply({ - projectId: project.id, - projectName: project.name, - repositoryUrl: remoteUrl, - branch: 'main', - token: 'payload.signature', - expiresAt: new Date(Date.now() + 900_000).toISOString(), - author: { name: 'Ada Lovelace', email: 'ada@example.com' }, - }); - await cloning; - const inIde = (...args: string[]) => - run('git', args, { cwd: directory, env: { ...process.env, WISHFORGE_REF_PREFIX: 'refs/heads/ide/' } }); - await writeFile(path.join(directory, 'notes.md'), 'written in the IDE\n'); - await inIde('add', 'notes.md'); - await inIde('commit', '-m', 'Notes from the IDE'); + const seed = path.join(root, 'person'); + await git(root, 'clone', remote, seed); + await git(seed, 'config', 'user.name', 'Ada Lovelace'); + await git(seed, 'config', 'user.email', 'ada@example.com'); + await git(seed, 'switch', '--create', 'ide/work'); + await writeFile(path.join(seed, 'notes.md'), 'written by a person\n'); + await git(seed, 'add', 'notes.md'); + await git(seed, 'commit', '-m', 'Notes from a person'); const target = await git(remote, 'rev-parse', 'main'); - await expect(inIde('push', 'origin', 'HEAD:main')).rejects.toThrow(/ide\//); - await inIde('push'); + await git(seed, 'push', 'origin', 'ide/work'); const pushed = await git(remote, 'rev-parse', 'ide/work'); expect(await git(remote, 'rev-parse', 'main')).toBe(target); - expect(await git(remote, 'log', '-1', '--format=%an', 'ide/work')).toBe('Ada Lovelace'); await expect(submit(project.id, 'Merge', 'wish-ide-0000', { sourceBranch: 'main' })).rejects.toMatchObject({ code: 'INVALID_SOURCE_BRANCH', @@ -858,7 +833,7 @@ describe('local main loop', () => { expect(prompts.at(-1)).toContain('starts from branch ide/work'); // The run started from the branch and was verified, so it lands on the target branch whole. expect(await git(remote, 'rev-parse', 'main^')).toBe(pushed); - expect(await git(remote, 'show', 'main:notes.md')).toBe('written in the IDE'); + expect(await git(remote, 'show', 'main:notes.md')).toBe('written by a person'); expect(await git(remote, 'show', 'main:greeting.txt')).toBe('hello world'); expect(await services.control.run(owner, runId)).toMatchObject({ status: 'succeeded', sourceBranch: 'ide/work' }); }); @@ -879,7 +854,7 @@ describe('local main loop', () => { }, }); }); - // A person adds a migration in the IDE; the agent then only touches the greeting. + // A person pushes a migration; the agent then only touches the greeting. const seed = path.join(root, 'person'); await git(root, 'clone', remote, seed); await git(seed, 'switch', '--create', 'ide/work'); diff --git a/tests/source-branch.test.ts b/tests/source-branch.test.ts new file mode 100644 index 0000000..92ae011 --- /dev/null +++ b/tests/source-branch.test.ts @@ -0,0 +1,52 @@ +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import type { Actor, Project } from '@wishforge/contracts'; +import { ControlPlane } from '../apps/api/src/domain/control-plane.js'; +import { MemoryStore } from './helpers/memory-store.js'; + +// A wish may start from a branch people pushed with their own changes. +const env = { + NODE_ENV: 'test', + WF_DISPATCH_TENANTS: 'demo', + WF_GIT_SERVICE_URL: 'http://127.0.0.1:4504', + WF_GIT_ADMIN_TOKEN: 'git-admin-token-for-tests-only-0001', +}; +const owner: Actor = { tenantId: 'demo', userId: 'owner', role: 'owner', kind: 'human' }; +let store: MemoryStore; +let project: Project; + +beforeEach(async () => { + vi.stubGlobal('fetch', async (input: string | URL, init: RequestInit) => { + const body = JSON.parse(String(init.body)); + if (new URL(String(input)).pathname === '/repos') + return Response.json({ + repositoryUrl: `https://git.test/git/${body.tenantId}/${body.projectId}.git`, + initialCommit: 'a'.repeat(40), + defaultBranch: 'main', + }); + return Response.json({ token: 'payload.signature', expiresAt: new Date(Date.now() + 900_000).toISOString() }); + }); + store = new MemoryStore(); + store.seed('demo'); + project = await new ControlPlane(store, env).createProject(owner, { name: 'Todo App' }); +}); +afterEach(() => vi.unstubAllGlobals()); + +describe('wishes that start from another branch', () => { + it('records the branch on the run and refuses the target branch or the platform’s own branches', async () => { + const control = new ControlPlane(store, env); + const submit = (sourceBranch: string, key: string) => + control.submit( + owner, + project.id, + { goal: 'Merge the pushed work', acceptanceCriteria: ['Checks pass'], sourceBranch }, + key, + ); + await expect(submit('main', 'source-branch-0001')).rejects.toMatchObject({ code: 'INVALID_SOURCE_BRANCH' }); + await expect(submit('wishforge/run/abc', 'source-branch-0002')).rejects.toMatchObject({ + code: 'INVALID_SOURCE_BRANCH', + }); + await expect(submit('../main', 'source-branch-0003')).rejects.toThrow('A safe Git branch name is required'); + const { run_id } = await submit('feature/work', 'source-branch-0004'); + expect(await control.run(owner, run_id)).toMatchObject({ sourceBranch: 'feature/work' }); + }); +}); diff --git a/tests/workspace-git.test.ts b/tests/workspace-git.test.ts deleted file mode 100644 index 081a302..0000000 --- a/tests/workspace-git.test.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; -import type { Actor, Project } from '@wishforge/contracts'; -import { ControlPlane } from '../apps/api/src/domain/control-plane.js'; -import { Services } from '../apps/api/src/http.js'; -import { GitStorage } from '../apps/api/src/domain/git-storage.js'; -import { MemoryStore } from './helpers/memory-store.js'; -import { internalFetch } from './helpers/internal-fetch.js'; - -// FR-H2: an IDE workspace clones the project and pushes back with a short-lived credential -// the gateway asks for on behalf of the person whose session is open. -const devUser = '11111111-1111-4111-8111-111111111111'; -const env = { - NODE_ENV: 'test', - WF_DISPATCH_TENANTS: 'demo', - WF_INTERNAL_TOKEN_KEY: 'internal-token-signing-key-for-tests-only', - WF_WORKER_TOKEN: 'coordinator-static-token-for-tests-only', - WF_DEV_AUTH_TOKEN: 'development-user-token-for-tests-only', - WF_WORKSPACE_GATEWAY_BASE: 'http://127.0.0.1:4400', - WF_WORKSPACE_GATEWAY_TOKEN: 'workspace-gateway-token-for-tests-only', - WF_WORKSPACE_GATEWAY_TENANT_ID: 'demo', - WF_GIT_SERVICE_URL: 'http://127.0.0.1:4504', - WF_GIT_ADMIN_TOKEN: 'git-admin-token-for-tests-only-0001', -}; -const owner: Actor = { tenantId: 'demo', userId: 'owner', role: 'owner', kind: 'human' }; -let store: MemoryStore; -let project: Project; -let gitCalls: { path: string; body: Record; authorization: string }[]; -let call: (route: string, body: unknown, token?: string) => Promise; - -async function workspaceFor(projectId: string, id: string) { - await store.transaction('demo', tx => - tx.put('workspace', { - id, - tenantId: 'demo', - version: 1, - createdAt: new Date().toISOString(), - updatedAt: new Date().toISOString(), - projectId, - status: 'ready', - upstreamUrl: 'http://127.0.0.1:4300/', - }), - ); -} - -beforeEach(async () => { - gitCalls = []; - vi.stubGlobal('fetch', async (input: string | URL, init: RequestInit) => { - const url = new URL(String(input)); - const body = JSON.parse(String(init.body)); - gitCalls.push({ path: url.pathname, body, authorization: (init.headers as Record).Authorization }); - if (url.pathname === '/repos') - return Response.json({ - repositoryUrl: `https://git.test/git/${body.tenantId}/${body.projectId}.git`, - initialCommit: 'a'.repeat(40), - defaultBranch: 'main', - }); - return Response.json({ token: 'payload.signature', expiresAt: new Date(Date.now() + 900_000).toISOString() }); - }); - store = new MemoryStore(); - store.seed('demo'); - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'developer', active: true })); - const services = new Services(new ControlPlane(store, env)); - project = await services.control.createProject(owner, { name: 'Todo App' }); - await store.transaction('demo', async tx => { - const current = (await tx.get('project', project.id))!; - await tx.put('project', { ...current, memberIds: [...current.memberIds, devUser] }); - }); - await workspaceFor(project.id, 'workspace-1'); - const fetcher = internalFetch(services); - call = (route, body, token = env.WF_WORKSPACE_GATEWAY_TOKEN) => - fetcher(`http://127.0.0.1:4000/internal${route}`, { - method: 'POST', - headers: { authorization: `Bearer ${token}`, 'x-wishforge-tenant': 'demo', 'content-type': 'application/json' }, - body: JSON.stringify(body), - }); -}); -afterEach(() => vi.unstubAllGlobals()); - -describe('IDE workspace repository access', () => { - it('names the session’s author from the sign-in, and only from it', async () => { - const first = await call('/workspaces/workspace-1/authorize', { - userToken: env.WF_DEV_AUTH_TOKEN, - operation: 'edit', - }); - expect((await first.json()).data.author).toEqual({ name: 'Local Developer', email: 'developer@wishforge.invalid' }); - const later = await call('/workspaces/workspace-1/authorize', { userId: devUser, operation: 'edit' }); - expect((await later.json()).data.author).toBeUndefined(); - }); - it('mints a credential that may push ide/ branches of the project’s platform repository', async () => { - gitCalls = []; - const response = await call('/workspaces/workspace-1/git-credential', { userId: devUser }); - expect(response.status).toBe(200); - expect((await response.json()).data).toEqual({ - projectId: project.id, - projectName: 'Todo App', - repositoryUrl: `https://git.test/git/demo/${project.id}.git`, - branch: 'main', - token: 'payload.signature', - expiresAt: expect.any(String), - }); - expect(gitCalls).toEqual([ - { - path: '/tokens', - body: { - tenantId: 'demo', - projectId: project.id, - permission: 'write', - ttlSeconds: 900, - refPrefix: 'refs/heads/ide/', - }, - authorization: `Bearer ${env.WF_GIT_ADMIN_TOKEN}`, - }, - ]); - }); - it('refuses viewers, revoked members, other identities and malformed requests', async () => { - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'viewer', active: true })); - expect((await call('/workspaces/workspace-1/git-credential', { userId: devUser })).status).toBe(403); - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'developer', active: false })); - expect((await call('/workspaces/workspace-1/git-credential', { userId: devUser })).status).toBe(403); - await store.transaction('demo', tx => tx.putMembership({ userId: devUser, role: 'developer', active: true })); - expect( - (await call('/workspaces/workspace-1/git-credential', { userId: devUser }, env.WF_WORKER_TOKEN)).status, - ).toBe(403); - expect((await call('/workspaces/workspace-1/git-credential', { userId: devUser, repositoryUrl: 'x' })).status).toBe( - 400, - ); - expect((await call('/workspaces/missing/git-credential', { userId: devUser })).status).toBe(404); - expect(gitCalls.filter(entry => entry.path === '/tokens')).toEqual([]); - }); - it('does not clone an external repository into the workspace', async () => { - const external = await new Services(new ControlPlane(store, env)).control.createProject(owner, { - name: 'Imported', - repositoryUrl: 'https://github.com/example/imported.git', - }); - await workspaceFor(external.id, 'workspace-2'); - const response = await call('/workspaces/workspace-2/git-credential', { userId: 'owner' }); - expect(response.status).toBe(409); - expect(await response.json()).toMatchObject({ error: { code: 'WORKSPACE_REPOSITORY_UNSUPPORTED' } }); - }); -}); - -describe('wishes that start from an IDE branch', () => { - it('lists the ide/ branches people pushed, for platform repositories only', async () => { - vi.stubGlobal('fetch', async (input: string | URL, init: RequestInit) => { - gitCalls.push({ - path: new URL(String(input)).pathname, - body: JSON.parse(String(init.body)), - authorization: (init.headers as Record).Authorization, - }); - return Response.json({ - branches: [{ name: 'ide/work', commit: 'b'.repeat(40), updatedAt: '2026-10-19T12:00:00+08:00' }], - }); - }); - gitCalls = []; - const git = new GitStorage(env); - expect(await git.ideBranches(project)).toEqual([ - { name: 'ide/work', commit: 'b'.repeat(40), updatedAt: '2026-10-19T12:00:00+08:00' }, - ]); - expect(gitCalls).toEqual([ - { - path: '/refs', - body: { tenantId: 'demo', projectId: project.id, prefix: 'refs/heads/ide/' }, - authorization: `Bearer ${env.WF_GIT_ADMIN_TOKEN}`, - }, - ]); - expect(await git.ideBranches({ ...project, repositoryStorage: 'external' })).toEqual([]); - }); - it('records the branch on the run and refuses the target branch or the platform’s own branches', async () => { - const control = new Services(new ControlPlane(store, env)).control; - const submit = (sourceBranch: string, key: string) => - control.submit( - owner, - project.id, - { goal: 'Merge the IDE work', acceptanceCriteria: ['Checks pass'], sourceBranch }, - key, - ); - await expect(submit('main', 'source-branch-0001')).rejects.toMatchObject({ code: 'INVALID_SOURCE_BRANCH' }); - await expect(submit('wishforge/run/abc', 'source-branch-0002')).rejects.toMatchObject({ - code: 'INVALID_SOURCE_BRANCH', - }); - await expect(submit('../main', 'source-branch-0003')).rejects.toThrow('A safe Git branch name is required'); - const { run_id } = await submit('ide/work', 'source-branch-0004'); - expect(await control.run(owner, run_id)).toMatchObject({ sourceBranch: 'ide/work' }); - }); -}); diff --git a/tests/workspace-lifecycle.test.ts b/tests/workspace-lifecycle.test.ts deleted file mode 100644 index a1d3af0..0000000 --- a/tests/workspace-lifecycle.test.ts +++ /dev/null @@ -1,260 +0,0 @@ -import { describe, expect, it } from 'vitest'; -import type { Actor, Workspace } from '@wishforge/contracts'; -import { MemoryStore } from './helpers/memory-store.js'; -import { ControlPlane, record } from '../apps/api/src/domain/control-plane.js'; -import { WorkspaceLifecycle, WORKSPACE_IDLE_MS } from '../apps/api/src/domain/workspace-lifecycle.js'; -import { ApiController, Services } from '../apps/api/src/http.js'; -const owner: Actor = { tenantId: 'alpha', userId: 'owner', role: 'owner', kind: 'human' }; -async function fixture() { - const db = new MemoryStore(); - db.seed('alpha'); - const control = new ControlPlane(db); - const project = await control.createProject(owner, { - name: 'Lifecycle fixture', - repositoryUrl: 'https://example.test/project.git', - }); - const workspace = { - ...record('alpha'), - projectId: project.id, - status: 'ready', - managedBy: 'wishforge-provisioner', - upstreamUrl: 'http://ide.internal:3000', - lastActivityAt: new Date(Date.now() - WORKSPACE_IDLE_MS - 60000).toISOString(), - }; - const environment = { - ...record('alpha'), - projectId: project.id, - status: 'healthy', - type: 'managed_kubernetes', - currentReleaseId: 'production-stable', - }; - await db.transaction('alpha', async tx => { - await tx.put('workspace', workspace); - await tx.put('environment', environment); - }); - const activity = { workspaceId: workspace.id, gatewayConnections: 0, known: true }; - let state = { workspaceId: workspace.id, revision: 0, desired: 'running', status: 'ready' }; - let lose = false; - let unavailable = false; - const calls: Array<{ url: string; method: string }> = []; - const fetcher: typeof fetch = async (url, options) => { - const target = new URL(String(url)); - const method = options?.method ?? 'GET'; - calls.push({ url: target.pathname, method }); - if (target.pathname === '/internal/lifecycle-state') return Response.json(activity); - if (unavailable) throw new Error('offline'); - if (method === 'PUT') { - const input = JSON.parse(String(options?.body)); - state = { workspaceId: workspace.id, revision: input.revision, desired: input.desired, status: 'pending' }; - if (lose) throw new Error('lost response'); - } - return Response.json(state); - }; - const env = { - NODE_ENV: 'production', - WF_PROVISIONER_URL: 'https://provisioner.example', - WF_PROVISIONER_TOKEN: 'p'.repeat(32), - WF_PROVISIONER_TENANT_ID: 'alpha', - WF_WORKSPACE_GATEWAY_BASE: 'https://gateway.example', - WF_WORKSPACE_GATEWAY_TOKEN: 'g'.repeat(32), - WF_WORKSPACE_GATEWAY_TENANT_ID: 'alpha', - }; - const lifecycle = new WorkspaceLifecycle(db, env, fetcher); - const get = async () => (await db.transaction('alpha', tx => tx.get('workspace', workspace.id)))!; - const items = () => db.transaction('alpha', tx => tx.outbox()); - const age = () => - db.transaction('alpha', async tx => { - const w = (await tx.get('workspace', workspace.id))!; - w.lifecycle!.requestedAt = new Date(Date.now() - 6000).toISOString(); - await tx.put('workspace', w); - }); - return { - db, - env, - workspace, - environment, - lifecycle, - calls, - activity, - get, - items, - age, - setUnavailable: () => { - unavailable = true; - }, - lose: () => { - lose = true; - }, - converge: () => { - state.status = state.desired === 'running' ? 'ready' : 'paused'; - }, - setStatus: async (status: Workspace['status']) => { - await db.transaction('alpha', async tx => { - const w = (await tx.get('workspace', workspace.id))!; - w.status = status; - await tx.put('workspace', w); - }); - }, - }; -} -describe('durable workspace lifecycle without application deployment changes', () => { - it('uses the scoped tenant provisioner resolver and never falls back to another tenant', async () => { - const f = await fixture(); - f.env.WF_PROVISIONER_TENANT_ID = 'beta'; - await expect(f.lifecycle.manual(owner, f.workspace.id, 'pause', 'wrong-tenant-route')).rejects.toMatchObject({ - code: 'WORKSPACE_LIFECYCLE_UNCONFIGURED', - }); - await f.lifecycle.scheduleIdle('alpha'); - expect(f.calls).toEqual([]); - expect(await f.items()).toEqual([]); - }); - it('deduplicates pause and never reports paused before observation', async () => { - const f = await fixture(); - const result = await f.lifecycle.manual(owner, f.workspace.id, 'pause', 'pause-key-one'); - expect(result).toMatchObject({ status: 'pausing' }); - await f.lifecycle.manual(owner, f.workspace.id, 'pause', 'pause-key-one'); - expect(await f.items()).toHaveLength(1); - const [item] = await f.items(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('pausing'); - f.converge(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('paused'); - expect(await f.db.transaction('alpha', tx => tx.get('environment', f.environment.id))).toEqual(f.environment); - expect(await f.items()).toEqual([]); - }); - it('remembers a no-op resume key so a later retry cannot resume a subsequently paused workspace', async () => { - const f = await fixture(); - expect(await f.lifecycle.manual(owner, f.workspace.id, 'resume', 'noop-resume-key')).toMatchObject({ - status: 'ready', - }); - await f.setStatus('paused'); - expect(await f.lifecycle.manual(owner, f.workspace.id, 'resume', 'noop-resume-key')).toMatchObject({ - status: 'ready', - }); - expect((await f.get()).status).toBe('paused'); - expect(await f.items()).toEqual([]); - }); - it('resumes via replicas one and waits for readiness', async () => { - const f = await fixture(); - await f.setStatus('paused'); - await f.lifecycle.manual(owner, f.workspace.id, 'resume', 'resume-key-one'); - const [item] = await f.items(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('resuming'); - f.converge(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('ready'); - expect(Date.parse(String((await f.get()).lastActivityAt))).toBeGreaterThan(Date.now() - 1000); - }); - it('a lost scale response is unknown, then observed without a second mutation', async () => { - const f = await fixture(); - await f.lifecycle.manual(owner, f.workspace.id, 'pause', 'pause-key-lost'); - f.lose(); - const [item] = await f.items(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('unknown'); - f.converge(); - await f.lifecycle.reconcile('alpha', item!); - expect((await f.get()).status).toBe('paused'); - expect(f.calls.filter(c => c.method === 'PUT')).toHaveLength(1); - }); - it('unknown observation cannot result in a blind mutation or ready response', async () => { - const f = await fixture(); - await f.lifecycle.manual(owner, f.workspace.id, 'pause', 'pause-key-offline'); - f.setUnavailable(); - await f.lifecycle.reconcile('alpha', (await f.items())[0]!); - expect((await f.get()).status).toBe('unknown'); - expect(f.calls.filter(c => c.method === 'PUT')).toHaveLength(0); - }); - it('enforces human edit membership before queuing pause', async () => { - const f = await fixture(); - for (const actor of [ - { ...owner, kind: 'connector' as const }, - { ...owner, userId: 'viewer', role: 'viewer' as const }, - { ...owner, userId: 'absent', role: 'owner' as const }, - ]) - await expect(f.lifecycle.manual(actor, f.workspace.id, 'pause', 'pause-key-acl')).rejects.toThrow(); - expect((await f.get()).status).toBe('ready'); - expect(await f.items()).toEqual([]); - }); - it('queues automatic pause only after 30 minutes without gateway connections', async () => { - const f = await fixture(); - await f.lifecycle.scheduleIdle('alpha'); - expect((await f.get()).status).toBe('pausing'); - expect((await f.get()).lifecycle).toMatchObject({ automatic: true }); - await f.age(); - await f.lifecycle.reconcile('alpha', (await f.items())[0]!); - expect(f.calls.filter(c => c.method === 'PUT')).toHaveLength(1); - }); - it.each([{ gatewayConnections: 1 }, { known: false }])( - 'does not automatically stop an active or unknown workspace (%o)', - async change => { - const f = await fixture(); - Object.assign(f.activity, change); - await f.lifecycle.scheduleIdle('alpha'); - expect((await f.get()).status).toBe('ready'); - expect(await f.items()).toEqual([]); - }, - ); - it('recent authorization activity and unmanaged local workspaces are excluded', async () => { - const f = await fixture(); - await f.db.transaction('alpha', async tx => { - const w = (await tx.get('workspace', f.workspace.id))!; - w.lastActivityAt = new Date().toISOString(); - await tx.put('workspace', w); - }); - await f.lifecycle.scheduleIdle('alpha'); - expect(f.calls).toEqual([]); - await f.db.transaction('alpha', async tx => { - const w = (await tx.get('workspace', f.workspace.id))!; - w.lastActivityAt = f.workspace.lastActivityAt; - delete w.managedBy; - await tx.put('workspace', w); - }); - await f.lifecycle.scheduleIdle('alpha'); - expect(f.calls).toEqual([]); - }); - it('rechecks activity before automatic scaling and fences cancellation with a resume operation', async () => { - const f = await fixture(); - await f.lifecycle.scheduleIdle('alpha'); - const [pause] = await f.items(); - await f.age(); - f.activity.gatewayConnections = 1; - await f.lifecycle.reconcile('alpha', pause!); - expect(f.calls.filter(c => c.method === 'PUT')).toHaveLength(0); - expect((await f.get()).status).toBe('resuming'); - expect((await f.get()).lifecycle).toMatchObject({ revision: 2, desired: 'running', automatic: false }); - await f.lifecycle.reconcile('alpha', pause!); - expect(f.calls.filter(c => c.method === 'PUT')).toHaveLength(0); - }); -}); - -describe('workspaces as people see them', () => { - it('never shows the internal upstream addresses, whether listed or requested again', async () => { - const db = new MemoryStore(); - db.seed('alpha'); - const services = new Services(new ControlPlane(db, { NODE_ENV: 'test' })); - const project = await services.control.createProject(owner, { name: 'Workspace fixture' }); - const api = new ApiController(services); - const request = { actor: owner } as never; - const created = (await api.workspace(request, project.id)).data; - // The provisioner records where the workspace runs; only the gateway may reach it there. - await db.transaction('alpha', async tx => { - const workspace = (await tx.get('workspace', created.id))!; - await tx.put('workspace', { - ...workspace, - status: 'ready', - upstreamUrl: 'http://10.0.0.5:3000/', - collaborationUpstreamUrl: 'http://10.0.0.5:8100/', - }); - }); - const seen = [(await api.workspace(request, project.id)).data, ...(await api.workspaces(request, project.id)).data]; - expect(seen).toHaveLength(2); - for (const workspace of seen) { - expect(workspace).toMatchObject({ id: created.id, status: 'ready' }); - expect(workspace).not.toHaveProperty('upstreamUrl'); - expect(workspace).not.toHaveProperty('collaborationUpstreamUrl'); - } - }); -});