diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
new file mode 100644
index 000000000..69c7927cd
--- /dev/null
+++ b/.github/workflows/desktop-release.yml
@@ -0,0 +1,212 @@
+name: Desktop release
+
+on:
+ push:
+ tags: ['v*']
+ workflow_dispatch:
+ inputs:
+ tag:
+ description: Existing release tag (for example, v0.1.4)
+ required: true
+ type: string
+
+permissions:
+ contents: read
+
+concurrency:
+ group: desktop-release-${{ inputs.tag || github.ref_name }}
+ cancel-in-progress: false
+
+env:
+ RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
+
+jobs:
+ macos:
+ runs-on: macos-latest
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
+ with:
+ ref: refs/tags/${{ env.RELEASE_TAG }}
+ persist-credentials: false
+ - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
+ with:
+ node-version-file: .nvmrc
+ - name: Check release version and architecture
+ run: |
+ version=$(node -p 'require("./apps/desktop/package.json").version')
+ if [[ "$GITHUB_REPOSITORY" == "ThinkFlowLab/OpenDirector" ]]; then
+ test "$RELEASE_TAG" = "v$version"
+ else
+ [[ "$RELEASE_TAG" = "v$version" || "$RELEASE_TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-desktop-test\.[0-9]+$ && "${RELEASE_TAG%-desktop-test.*}" = "v$version" ]]
+ fi
+ echo "DESKTOP_VERSION=$version" >> "$GITHUB_ENV"
+ test "$(uname -m)" = arm64
+ - name: Prepare build tools
+ run: |
+ brew install uv
+ media="$RUNNER_TEMP/desktop-media"
+ mkdir -p "$media"
+ for tool in ffmpeg ffprobe; do
+ curl --fail --silent --show-error --location --retry 3 \
+ "https://github.com/descriptinc/ffmpeg-ffprobe-static/releases/download/b6.1.2-rc.1/${tool}-darwin-arm64" \
+ --output "$media/$tool"
+ chmod +x "$media/$tool"
+ "$media/$tool" -version
+ done
+ echo "OPENDIRECTOR_FFMPEG_DIR=$media" >> "$GITHUB_ENV"
+ - name: Build desktop application
+ env:
+ CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+ run: |
+ npm ci --prefix apps/desktop
+ npm run prepare:runtime --prefix apps/desktop
+ npm run pack --prefix apps/desktop
+ app="apps/desktop/build/mac-arm64/OpenDirector.app"
+ codesign --force --deep --sign - "$app"
+ codesign --verify --deep --strict "$app"
+ - name: Build and smoke-test DMG
+ run: |
+ staging="$RUNNER_TEMP/desktop-dmg"
+ mount="$RUNNER_TEMP/desktop-mount"
+ mkdir -p "$staging" "$mount" release-assets
+ ditto apps/desktop/build/mac-arm64/OpenDirector.app "$staging/OpenDirector.app"
+ ln -s /Applications "$staging/Applications"
+ dmg="OpenDirector-v${DESKTOP_VERSION}-mac-arm64-adhoc.dmg"
+ hdiutil create -volname OpenDirector -srcfolder "$staging" -format UDZO "release-assets/$dmg"
+ hdiutil attach "release-assets/$dmg" -readonly -nobrowse -mountpoint "$mount"
+ trap 'hdiutil detach "$mount"' EXIT
+ installed=$(mktemp -d "$RUNNER_TEMP/desktop-install.XXXXXX")/OpenDirector.app
+ ditto "$mount/OpenDirector.app" "$installed"
+ codesign --verify --deep --strict "$installed"
+ node apps/desktop/scripts/smoke.mjs "$installed/Contents/MacOS/OpenDirector"
+ codesign --verify --deep --strict "$installed"
+ cd release-assets
+ shasum -a 256 "$dmg" > "${dmg}.sha256"
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
+ with:
+ name: desktop-dmg
+ path: release-assets/
+ compression-level: 0
+ if-no-files-found: error
+
+ windows:
+ runs-on: windows-latest
+ timeout-minutes: 45
+ steps:
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
+ with:
+ ref: refs/tags/${{ env.RELEASE_TAG }}
+ persist-credentials: false
+ - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
+ with:
+ node-version-file: .nvmrc
+ - name: Check release version and architecture
+ run: |
+ $version = node -p 'require("./apps/desktop/package.json").version'
+ $tagPattern = '^v' + [regex]::Escape($version) + '$'
+ if ($env:GITHUB_REPOSITORY -ne 'ThinkFlowLab/OpenDirector') {
+ $tagPattern = '^v' + [regex]::Escape($version) + '(-desktop-test\.[0-9]+)?$'
+ }
+ if ($env:RELEASE_TAG -cnotmatch $tagPattern -or (node -p process.arch) -ne 'x64') {
+ throw 'Expected a matching release tag and Windows x64'
+ }
+ "DESKTOP_VERSION=$version" >> $env:GITHUB_ENV
+ - name: Prepare build tools
+ run: |
+ choco install uv --yes --no-progress
+ if ($LASTEXITCODE -ne 0) { throw 'uv installation failed' }
+ $media = Join-Path $env:RUNNER_TEMP 'desktop-media'
+ New-Item -ItemType Directory -Path $media | Out-Null
+ foreach ($tool in 'ffmpeg', 'ffprobe') {
+ curl.exe --fail --silent --show-error --location --retry 3 `
+ "https://github.com/descriptinc/ffmpeg-ffprobe-static/releases/download/b6.1.2-rc.1/${tool}-win32-x64" `
+ --output (Join-Path $media "$tool.exe")
+ if ($LASTEXITCODE -ne 0) { throw "Failed to download $tool" }
+ }
+ "OPENDIRECTOR_FFMPEG_DIR=$media" >> $env:GITHUB_ENV
+ - name: Build Windows installer
+ env:
+ CSC_IDENTITY_AUTO_DISCOVERY: 'false'
+ run: |
+ npm ci --prefix apps/desktop
+ if ($LASTEXITCODE -ne 0) { throw 'Desktop dependency installation failed' }
+ npm run prepare:runtime --prefix apps/desktop
+ if ($LASTEXITCODE -ne 0) { throw 'Runtime preparation failed' }
+ npm run pack:windows --prefix apps/desktop
+ if ($LASTEXITCODE -ne 0) { throw 'Windows packaging failed' }
+ - name: Smoke-test installed application
+ run: |
+ $name = "OpenDirector-v$env:DESKTOP_VERSION-win-x64-unsigned.exe"
+ $installer = Get-Item "apps/desktop/build/$name"
+ $install = Join-Path $env:RUNNER_TEMP 'OpenDirector'
+ $setup = Start-Process -FilePath $installer.FullName -ArgumentList "/S /D=$install" -Wait -PassThru
+ if ($setup.ExitCode -ne 0) { throw "Installer failed: $($setup.ExitCode)" }
+ node apps/desktop/scripts/smoke.mjs (Join-Path $install 'OpenDirector.exe')
+ if ($LASTEXITCODE -ne 0) { throw 'Installed application smoke test failed' }
+ $uninstaller = Get-Item (Join-Path $install 'Uninstall OpenDirector.exe')
+ $removal = Start-Process -FilePath $uninstaller.FullName -ArgumentList '/S' -Wait -PassThru
+ if ($removal.ExitCode -ne 0 -or (Test-Path (Join-Path $install 'OpenDirector.exe'))) {
+ throw 'Uninstall failed'
+ }
+ New-Item -ItemType Directory -Path release-assets | Out-Null
+ Copy-Item $installer.FullName release-assets
+ $hash = (Get-FileHash -Algorithm SHA256 $installer.FullName).Hash.ToLowerInvariant()
+ [IO.File]::WriteAllText((Join-Path (Get-Location) "release-assets/$name.sha256"), "$hash $name`n")
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
+ with:
+ name: desktop-windows
+ path: release-assets/
+ compression-level: 0
+ if-no-files-found: error
+
+ prepare-release:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - name: Find or create draft release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ run: |
+ set -euo pipefail
+ draft=$(gh api --paginate "repos/$GH_REPO/releases" \
+ --jq ".[] | select(.tag_name == \"$RELEASE_TAG\") | .draft")
+ case "$draft" in
+ true) ;;
+ '') gh release create "$RELEASE_TAG" --verify-tag --draft --generate-notes ;;
+ *) echo "::error::Release $RELEASE_TAG is already published"; exit 1 ;;
+ esac
+
+ release-macos:
+ needs: [prepare-release, macos]
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ with:
+ name: desktop-dmg
+ path: release-assets
+ - name: Attach verified installer to draft release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ run: gh release upload "$RELEASE_TAG" release-assets/* --clobber
+
+ release-windows:
+ needs: [prepare-release, windows]
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
+ with:
+ name: desktop-windows
+ path: release-assets
+ - name: Attach verified installer to draft release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ GH_REPO: ${{ github.repository }}
+ run: gh release upload "$RELEASE_TAG" release-assets/* --clobber
diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml
new file mode 100644
index 000000000..766a48fb3
--- /dev/null
+++ b/.github/workflows/desktop.yml
@@ -0,0 +1,21 @@
+name: Desktop checks
+on:
+ pull_request:
+ paths:
+ - 'apps/desktop/**'
+ - 'apps/api/src/opendirector_api/desktop.py'
+ - 'tests/test_desktop_host.py'
+ - '.github/workflows/desktop.yml'
+ workflow_dispatch:
+permissions:
+ contents: read
+jobs:
+ shell:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
+ - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
+ with:
+ node-version-file: .nvmrc
+ - run: npm ci --ignore-scripts --prefix apps/desktop
+ - run: npm test --prefix apps/desktop
diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml
index 543334d99..a51af74e4 100644
--- a/.github/workflows/release-checks.yml
+++ b/.github/workflows/release-checks.yml
@@ -267,7 +267,7 @@ jobs:
curl --fail --silent -H 'X-OpenDirector-Request: 1' "$CREATION_API_URL/api/voice-test-health"
curl --silent --fail "$CREATION_WEB_URL/" >/dev/null
node tests/browser/voice_library.mjs
- - name: Assistant auxiliary panels
+ - name: Assistant bilingual defaults and auxiliary panels
if: always() && steps.install.outcome == 'success' && matrix.journey == 'assistant'
timeout-minutes: 5
env:
@@ -288,6 +288,7 @@ jobs:
done
curl --fail --silent -H 'X-OpenDirector-Request: 1' "$CREATION_API_URL/api/creation-test-health"
curl --silent --fail "$CREATION_WEB_URL/" >/dev/null
+ node tests/browser/bilingual_defaults.mjs
node tests/browser/assistant_auxiliary_panels.mjs
- name: Print isolated service logs on failure
if: failure()
diff --git a/.gitignore b/.gitignore
index e6904708a..791b20f0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,3 +76,5 @@ __pycache__/
/build/
/packages/core/src/opendirector/_bundled/
+/apps/desktop/runtime/
+/apps/desktop/build/
diff --git a/MANIFEST.in b/MANIFEST.in
index f29dfedc8..5c087363e 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -3,6 +3,7 @@ include package.json package-lock.json index.html tsconfig.json vite.config.ts .
recursive-include src *
recursive-include packages/core/src *.py
recursive-include apps/api/src *.py
+include apps/api/src/opendirector_api/example-canvases.json
recursive-include packages/agent/skills *
prune packages/core/src/opendirector/_bundled
prune node_modules
diff --git a/apps/api/src/opendirector_api/agent.py b/apps/api/src/opendirector_api/agent.py
index f516685b5..ac2b19481 100644
--- a/apps/api/src/opendirector_api/agent.py
+++ b/apps/api/src/opendirector_api/agent.py
@@ -150,7 +150,7 @@ def update(self, project_id: UUID, session: str | None = None, *, draft: Draft |
value['messages'].append(begin)
value['messages'].append({'id': str(uuid5(UUID(begin['id']), 'assistant')),
'role': 'assistant', 'text': '', 'status': 'streaming',
- **{key: begin[key] for key in ('model', 'runtime') if key in begin}})
+ **{key: begin[key] for key in ('model', 'modelIsCliDefault', 'runtime') if key in begin}})
value.update(draft='', draftContent=None, assets=[], skills=[])
changed = True
if finish is not None:
@@ -169,9 +169,9 @@ def list(self, project_id: UUID) -> dict:
current['conversationId'] = current.get('conversationId') or str(uuid5(project_id, 'assistant'))
return {'activeId': current['conversationId'], 'items': [
{'id': item['conversationId'],
- 'title': next((message['text'].strip().split('\n')[0][:48] or '素材对话'
+ 'title': next((message['text'].strip().split('\n')[0][:48] or None
for message in item['messages'] if message['role'] == 'user'),
- (item.get('draft') or '').strip().split('\n')[0][:48] or '新会话'),
+ (item.get('draft') or '').strip().split('\n')[0][:48] or None),
'messageCount': len(item['messages']),
'hasDraft': bool((item.get('draft') or '').strip() or item.get('assets') or item.get('skills'))}
for item in [current, *current.get('archivedConversations', [])]]}
@@ -245,7 +245,7 @@ async def follow(self):
await self.changed.wait()
-def agent_routes(projects, generation, configs, provider=None) -> APIRouter:
+def agent_routes(projects, generation, configs, provider=None, *, active=None) -> APIRouter:
router = APIRouter(prefix='/api/creation/projects/{project_id}/assistant')
conversations = Conversations(projects)
runtimes = AgentRuntimes(projects, generation, configs, provider)
@@ -282,7 +282,8 @@ def turn_jobs(project_id: UUID, turn_id: UUID):
errorDetails=job.errorDetails, asset=job.asset, adopted=job.adopted)
for job in jobs]
- active: dict[UUID, tuple[UUID, asyncio.Task, RunEvents]] = {}
+ if active is None:
+ active = {}
admission: dict[UUID, asyncio.Lock] = {}
@router.get('')
@@ -394,7 +395,8 @@ async def turn(project_id: UUID, value: Turn, x_opendirector_session: UUID = Hea
for asset_id in value.assets:
if str(asset_id) not in assets:
raise ProjectError('引用素材不属于当前工程。', 409)
- model = config['modelId'] if config else (value.runtimeModel or 'CLI 默认模型')
+ model = config['modelId'] if config else value.runtimeModel
+ model_is_cli_default = spec.modelSource == 'cli' and not model
model_selections = dict(value.modelSelections)
model_names = {row['id']: row['modelId'] for row in configs.list()}
preferences = {kind: {'modelConfigId': model_id, 'modelName': model_names.get(model_id)}
@@ -417,7 +419,7 @@ async def produce() -> None:
for asset in (assets[str(key)] for key in value.assets)],
'skills': value.skills, 'runtime': value.runtime, 'runtimeModel': value.runtimeModel,
'modelSelections': dict(value.modelSelections),
- 'model': model, 'status': 'complete'}
+ 'model': model, 'modelIsCliDefault': model_is_cli_default, 'status': 'complete'}
saved = await asyncio.to_thread(conversations.update, project_id, session, begin=user,
conversation_id=value.conversationId, before_begin=validate_connection)
accepted = True
@@ -493,7 +495,7 @@ async def produce() -> None:
activity['status'] = 'interrupted'
saved = await asyncio.to_thread(conversations.update, project_id, finish={
'id': str(uuid5(value.id, 'assistant')), 'role': 'assistant', 'text': text, 'status': status,
- 'model': model,
+ 'model': model, 'modelIsCliDefault': model_is_cli_default,
'runtime': value.runtime, 'thinking': value.thinking, 'tools': activities,
'sources': list(sources.values()),
**({'plan': plan} if plan is not None else {})}, conversation_id=value.conversationId)
diff --git a/apps/api/src/opendirector_api/desktop.py b/apps/api/src/opendirector_api/desktop.py
new file mode 100644
index 000000000..41ca054a1
--- /dev/null
+++ b/apps/api/src/opendirector_api/desktop.py
@@ -0,0 +1,176 @@
+"""Private parent-controlled API host for the desktop application."""
+import asyncio
+from contextlib import redirect_stdout
+import json
+import logging
+import os
+import secrets
+import shutil
+import socket
+import subprocess
+import sys
+import threading
+from typing import Annotated, Literal
+from uuid import UUID
+
+from pydantic import BaseModel, ConfigDict, Field, TypeAdapter
+import uvicorn
+from starlette.responses import JSONResponse
+from starlette.types import ASGIApp, Scope, Receive, Send
+from starlette.requests import Request
+
+from opendirector_api.localization import localized_error
+
+from opendirector.infrastructure.local_projects import LocalProjects
+from opendirector.installation import data_root
+from opendirector_api.main import create_app
+from opendirector_api.server import logging_config
+
+
+class DesktopAuthentication:
+ """Protect every HTTP resource, including media and the application document."""
+
+ def __init__(self, app: ASGIApp, *, token: str) -> None:
+ self.app = app
+ self.token = token
+
+ async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
+ headers = dict(scope.get('headers', []))
+ supplied = headers.get(b'x-opendirector-desktop', b'')
+ if not secrets.compare_digest(supplied, self.token.encode('ascii')):
+ if scope['type'] == 'websocket':
+ await send({'type': 'websocket.close', 'code': 1008})
+ elif scope['type'] == 'http':
+ await JSONResponse({'detail': localized_error(Request(scope), chinese='桌面连接已失效,请重新打开应用。', status=403, code='desktop_auth_required')}, status_code=403)(scope, receive, send)
+ else:
+ await self.app(scope, receive, send)
+ return
+ await self.app(scope, receive, send)
+
+
+class Initialize(BaseModel):
+ model_config = ConfigDict(extra='forbid')
+ type: Literal['initialize']
+ version: Literal[1]
+ token: str = Field(min_length=64, max_length=64, pattern=r'^[a-f0-9]+$')
+
+
+class Control(BaseModel):
+ model_config = ConfigDict(extra='forbid')
+ type: Literal['inspect', 'shutdown']
+ requestId: int = Field(ge=1)
+
+
+class SessionRegistration(BaseModel):
+ model_config = ConfigDict(extra='forbid')
+ type: Literal['session']
+ sessionId: UUID
+
+
+CONTROL = TypeAdapter(Annotated[Control | SessionRegistration, Field(discriminator='type')])
+
+
+def runtime_check() -> dict[str, str]:
+ from opendirector.agent.native import executable
+ from opendirector.installation import web_root
+ if not (web_root() / 'index.html').is_file():
+ raise RuntimeError('Web resources are missing.')
+ commands = {'agent': executable('default'), 'ffmpeg': shutil.which('ffmpeg'), 'ffprobe': shutil.which('ffprobe')}
+ versions = {'python': sys.version.split()[0]}
+ for name, path in commands.items():
+ if not path:
+ raise RuntimeError(f'{name} is missing from the bundled runtime.')
+ result = subprocess.run([path, '--version' if name == 'agent' else '-version'],
+ capture_output=True, text=True, timeout=20, check=True)
+ versions[name] = result.stdout.splitlines()[0]
+ return versions
+
+
+async def serve(token: str) -> None:
+ output = sys.stdout
+
+ def emit(event: dict[str, object]) -> None:
+ output.write(json.dumps(event) + '\n')
+ output.flush()
+
+ emit({'type': 'starting', 'version': 1})
+ with redirect_stdout(sys.stderr):
+ versions = await asyncio.to_thread(runtime_check)
+ store = LocalProjects(data_root())
+ app = create_app(store)
+ app.add_middleware(DesktopAuthentication, token=token)
+ listener = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ listener.bind(('127.0.0.1', 0))
+ listener.listen(128)
+ port = listener.getsockname()[1]
+ os.environ['OPENDIRECTOR_API_URL'] = f'http://127.0.0.1:{port}'
+ sessions: set[str] = set()
+ commands: asyncio.Queue[str] = asyncio.Queue()
+ loop = asyncio.get_running_loop()
+
+ def read_controls() -> None:
+ while line := sys.stdin.readline(65537):
+ if len(line) > 65536:
+ loop.call_soon_threadsafe(commands.put_nowait, 'invalid\n')
+ return
+ loop.call_soon_threadsafe(commands.put_nowait, line)
+ loop.call_soon_threadsafe(commands.put_nowait, '')
+
+ class DesktopServer(uvicorn.Server):
+ async def startup(self, sockets: list[socket.socket] | None = None) -> None:
+ await super().startup(sockets)
+ if not self.should_exit:
+ emit({'type': 'ready', 'version': 1, 'url': f'http://127.0.0.1:{port}', 'runtime': versions})
+
+ server = DesktopServer(uvicorn.Config(app, log_config=logging_config(), access_log=False,
+ timeout_graceful_shutdown=15))
+
+ async def control() -> None:
+ while True:
+ line = await commands.get()
+ if not line:
+ server.should_exit = True
+ return
+ message = CONTROL.validate_json(line)
+ if message.type == 'session':
+ sessions.add(str(message.sessionId))
+ continue
+ if message.type == 'shutdown':
+ server.should_exit = True
+ return
+ emit({'type': 'inspection', 'requestId': message.requestId, **app.state.desktop_activity()})
+
+ threading.Thread(target=read_controls, name='desktop-parent', daemon=True).start()
+ reader = asyncio.create_task(control())
+ try:
+ serving = asyncio.create_task(server.serve(sockets=[listener]))
+ done, _ = await asyncio.wait([reader, serving], return_when=asyncio.FIRST_COMPLETED)
+ if reader in done and not reader.cancelled() and reader.exception():
+ server.should_exit = True
+ await serving
+ raise reader.exception()
+ await serving
+ finally:
+ reader.cancel()
+ await asyncio.gather(reader, return_exceptions=True)
+ listener.close()
+ for session_id in sessions:
+ await asyncio.to_thread(store.release, session_id)
+ emit({'type': 'shutdown-complete'})
+
+
+def main() -> None:
+ try:
+ message = Initialize.model_validate_json(sys.stdin.readline(65537))
+ asyncio.run(serve(message.token))
+ except ValueError:
+ print(json.dumps({'type': 'fatal', 'version': 1, 'message': 'Invalid desktop control message.'}), flush=True)
+ raise SystemExit(1) from None
+ except (OSError, RuntimeError, subprocess.SubprocessError) as error:
+ logging.getLogger(__name__).exception('Desktop Host failed')
+ print(json.dumps({'type': 'fatal', 'version': 1, 'message': str(error)}), flush=True)
+ raise SystemExit(1) from error
+
+
+if __name__ == '__main__':
+ main()
diff --git a/src/canvas/workspace/example/example-canvases.json b/apps/api/src/opendirector_api/example-canvases.json
similarity index 100%
rename from src/canvas/workspace/example/example-canvases.json
rename to apps/api/src/opendirector_api/example-canvases.json
diff --git a/apps/api/src/opendirector_api/examples.py b/apps/api/src/opendirector_api/examples.py
new file mode 100644
index 000000000..2b0744a99
--- /dev/null
+++ b/apps/api/src/opendirector_api/examples.py
@@ -0,0 +1,79 @@
+"""Download bundled example canvases through the local Host."""
+
+import json
+from importlib.resources import files
+
+import httpx
+from fastapi import APIRouter
+from fastapi.responses import Response, StreamingResponse
+from starlette.background import BackgroundTask
+
+router = APIRouter()
+_catalog = json.loads(files(__package__).joinpath("example-canvases.json").read_text(encoding="utf-8"))
+_urls = {item["id"]: item["url"] for item in _catalog["items"]}
+_hosts = {"lz.qaiu.top", "zip3.webgetstore.com"}
+_max_bytes = 256 * 1024 * 1024
+
+
+@router.get("/api/example-canvases/{example_id}/download")
+async def download_example(example_id: str):
+ source = _urls.get(example_id)
+ if source is None:
+ return Response(status_code=404)
+
+ client = httpx.AsyncClient(timeout=20)
+ upstream = None
+
+ async def close():
+ try:
+ if upstream is not None:
+ await upstream.aclose()
+ finally:
+ await client.aclose()
+
+ try:
+ url = httpx.URL(source)
+ for _ in range(5):
+ if (url.scheme != "https" or url.host not in _hosts or url.userinfo
+ or url.port not in (None, 443)):
+ raise ValueError("Invalid example download destination")
+ request = client.build_request("GET", url, headers={"Accept-Encoding": "identity"})
+ upstream = await client.send(request, stream=True)
+ if not upstream.is_redirect:
+ break
+ url = url.join(upstream.headers["location"])
+ await upstream.aclose()
+ else:
+ raise ValueError("Too many example download redirects")
+
+ upstream.raise_for_status()
+ if upstream.headers.get("content-encoding", "identity").lower() != "identity":
+ raise ValueError("Unexpected example archive encoding")
+ length = upstream.headers.get("content-length")
+ if length is not None and not 0 < int(length) <= _max_bytes:
+ raise ValueError("Invalid example archive size")
+ except (httpx.HTTPError, ValueError, KeyError):
+ await close()
+ return Response(status_code=502)
+ except BaseException:
+ await close()
+ raise
+
+ async def body():
+ total = 0
+ try:
+ async for chunk in upstream.aiter_raw():
+ total += len(chunk)
+ if total > _max_bytes:
+ raise ValueError("Example archive exceeds download limit")
+ yield chunk
+ finally:
+ await close()
+
+ headers = {"Cache-Control": "no-store"}
+ if length is not None:
+ headers["Content-Length"] = length
+ # Electron strips Content-Length when it reconstructs the streamed response.
+ headers["X-OpenDirector-Archive-Bytes"] = length
+ return StreamingResponse(body(), media_type="application/octet-stream", headers=headers,
+ background=BackgroundTask(close))
diff --git a/apps/api/src/opendirector_api/localization.py b/apps/api/src/opendirector_api/localization.py
index 153795cb1..5018e4146 100644
--- a/apps/api/src/opendirector_api/localization.py
+++ b/apps/api/src/opendirector_api/localization.py
@@ -14,6 +14,7 @@
from opendirector.domain.capability_messages import english_capability_message, missing_tool_model_message
ENGLISH_BY_CODE = {
+ "desktop_auth_required": "The desktop connection has expired. Reopen the application.",
'image_quality_unsupported': 'This model does not support the selected image quality. Choose Auto or select another model.',
'bigmodel_video_model': 'The BigModel video protocol supports CogVideoX-3 only.',
'bigmodel_video_output': 'Choose a supported CogVideoX-3 pixel size and a 5- or 10-second duration. The size determines the aspect ratio.',
diff --git a/apps/api/src/opendirector_api/main.py b/apps/api/src/opendirector_api/main.py
index c88c888ed..1838767a5 100644
--- a/apps/api/src/opendirector_api/main.py
+++ b/apps/api/src/opendirector_api/main.py
@@ -29,6 +29,7 @@
from opendirector_api.agent import agent_routes
from opendirector_api.library import library_routes
from opendirector_api.voices import voice_routes
+from opendirector_api.examples import router as example_routes
from opendirector_api.localization import localized_error
from opendirector_api.models import (ModelConfigInput, ModelConfigPublic, AgentModelTest,
ModelCapabilityRequest, ModelDiscoveryRequest, ModelBatchInput,
@@ -57,6 +58,8 @@ def create_app(store: LocalProjects | None = None, chat_provider=None, generatio
creation_tools = ToolTasks(store, model_configs, CreationToolAssets(creation_projects), projects=creation_projects, availability=availability)
catalog = ModelCatalog(model_configs, chat_provider or ChatCompletions(), availability)
+ active_agents = {}
+
@asynccontextmanager
async def lifespan(app):
await creation_generation.start()
@@ -64,6 +67,10 @@ async def lifespan(app):
await creation_tools.start()
yield
finally:
+ agents = [entry[1] for entry in list(active_agents.values())]
+ for agent in agents:
+ agent.cancel()
+ await asyncio.gather(*agents, return_exceptions=True)
try:
await creation_tools.close()
finally:
@@ -72,9 +79,14 @@ async def lifespan(app):
app = FastAPI(title="OpenDirector Local API", version="0.1.4", lifespan=lifespan)
app.include_router(creation_routes(creation_projects, creation_generation))
- app.include_router(agent_routes(creation_projects, creation_generation, model_configs, chat_provider))
+ app.include_router(agent_routes(creation_projects, creation_generation, model_configs, chat_provider, active=active_agents))
app.include_router(library_routes(creation_projects))
app.include_router(voice_routes(creation_generation.voices))
+ app.include_router(example_routes)
+ app.state.desktop_activity = lambda: dict(
+ agents=len(active_agents), generations=sum(not job.future.done() for job in creation_generation.jobs.values()),
+ tools=sum(not job.done() for job in creation_tools.jobs.values()))
+
@app.exception_handler(RequestValidationError)
async def invalid_request(request, error):
diff --git a/apps/desktop/package-lock.json b/apps/desktop/package-lock.json
new file mode 100644
index 000000000..d6b64b6aa
--- /dev/null
+++ b/apps/desktop/package-lock.json
@@ -0,0 +1,3599 @@
+{
+ "name": "@opendirector/desktop",
+ "version": "0.1.4",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "@opendirector/desktop",
+ "version": "0.1.4",
+ "dependencies": {
+ "zod": "4.4.3"
+ },
+ "devDependencies": {
+ "electron": "45.3.3",
+ "electron-builder": "26.18.0"
+ }
+ },
+ "node_modules/@electron-internal/extract-zip": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/@electron-internal/extract-zip/-/extract-zip-1.0.8.tgz",
+ "integrity": "sha512-8iajeLFbzNwM0m3AsQZSZgYREWglAImyGvvFSWU34FgMW8sHlzdwj9QKvv9dgN7jMP591EFUF/sLOC3Jl9YIjQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/@electron/asar": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmmirror.com/@electron/asar/-/asar-3.4.1.tgz",
+ "integrity": "sha512-i4/rNPRS84t0vSRa2HorerGRXWyF4vThfHesw0dmcWHp+cspK743UanA0suA5Q5y8kzY2y6YKrvbIUn69BCAiA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^5.0.0",
+ "glob": "^7.1.6",
+ "minimatch": "^3.0.4"
+ },
+ "bin": {
+ "asar": "bin/asar.js"
+ },
+ "engines": {
+ "node": ">=10.12.0"
+ }
+ },
+ "node_modules/@electron/asar/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@electron/asar/node_modules/brace-expansion": {
+ "version": "1.1.22",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.22.tgz",
+ "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/@electron/asar/node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmmirror.com/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/@electron/fuses": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmmirror.com/@electron/fuses/-/fuses-1.8.0.tgz",
+ "integrity": "sha512-zx0EIq78WlY/lBb1uXlziZmDZI4ubcCXIMJ4uGjXzZW0nS19TjSPeXPAjzzTmKQlJUZm0SbmZhPKP7tuQ1SsEw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "chalk": "^4.1.1",
+ "fs-extra": "^9.0.1",
+ "minimist": "^1.2.5"
+ },
+ "bin": {
+ "electron-fuses": "dist/bin.js"
+ }
+ },
+ "node_modules/@electron/fuses/node_modules/fs-extra": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@electron/get": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmmirror.com/@electron/get/-/get-5.1.0.tgz",
+ "integrity": "sha512-3kSBtG8ObcTVfXanm5vVJ6UnBLEVmVsRk1M+vGqCuMBV+XLCbJYuWQful+yIy0GQDsSlK0kHEriEHn7SPk4EnA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "env-paths": "^3.0.0",
+ "graceful-fs": "^4.2.11",
+ "progress": "^2.0.3",
+ "semver": "^7.6.3",
+ "sumchecker": "^3.0.1"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ },
+ "optionalDependencies": {
+ "undici": "^7.24.4"
+ }
+ },
+ "node_modules/@electron/notarize": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmmirror.com/@electron/notarize/-/notarize-2.5.0.tgz",
+ "integrity": "sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "fs-extra": "^9.0.1",
+ "promise-retry": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@electron/notarize/node_modules/fs-extra": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@electron/osx-sign": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmmirror.com/@electron/osx-sign/-/osx-sign-1.3.3.tgz",
+ "integrity": "sha512-KZ8mhXvWv2rIEgMbWZ4y33bDHyUKMXnx4M0sTyPNK/vcB81ImdeY9Ggdqy0SWbMDgmbqyQ+phgejh6V3R2QuSg==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "compare-version": "^0.1.2",
+ "debug": "^4.3.4",
+ "fs-extra": "^10.0.0",
+ "isbinaryfile": "^4.0.8",
+ "minimist": "^1.2.6",
+ "plist": "^3.0.5"
+ },
+ "bin": {
+ "electron-osx-flat": "bin/electron-osx-flat.js",
+ "electron-osx-sign": "bin/electron-osx-sign.js"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/@electron/osx-sign/node_modules/isbinaryfile": {
+ "version": "4.0.10",
+ "resolved": "https://registry.npmmirror.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz",
+ "integrity": "sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/gjtorikian/"
+ }
+ },
+ "node_modules/@electron/rebuild": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmmirror.com/@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/@electron/universal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/@electron/universal/-/universal-2.0.3.tgz",
+ "integrity": "sha512-Wn9sPYIVFRFl5HmwMJkARCCf7rqK/EurkfQ/rJZ14mHP3iYTjZSIOSVonEAnhWeAXwtw7zOekGRlc6yTtZ0t+g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron/asar": "^3.3.1",
+ "@malept/cross-spawn-promise": "^2.0.0",
+ "debug": "^4.3.1",
+ "dir-compare": "^4.2.0",
+ "fs-extra": "^11.1.1",
+ "minimatch": "^9.0.3",
+ "plist": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=16.4"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@electron/universal/node_modules/brace-expansion": {
+ "version": "2.1.8",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.1.8.tgz",
+ "integrity": "sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/fs-extra": {
+ "version": "11.4.1",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.4.1.tgz",
+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/@electron/universal/node_modules/minimatch": {
+ "version": "9.0.9",
+ "resolved": "https://registry.npmmirror.com/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/@electron/windows-sign": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmmirror.com/@electron/windows-sign/-/windows-sign-1.2.2.tgz",
+ "integrity": "sha512-dfZeox66AvdPtb2lD8OsIIQh12Tp0GNCRUDfBHIKGpbmopZto2/A8nSpYYLoedPIHpqkeblZ/k8OV0Gy7PYuyQ==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "optional": true,
+ "peer": true,
+ "dependencies": {
+ "cross-dirname": "^0.1.0",
+ "debug": "^4.3.4",
+ "fs-extra": "^11.1.1",
+ "minimist": "^1.2.8",
+ "postject": "^1.0.0-alpha.6"
+ },
+ "bin": {
+ "electron-windows-sign": "bin/electron-windows-sign.js"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/@electron/windows-sign/node_modules/fs-extra": {
+ "version": "11.4.1",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.4.1.tgz",
+ "integrity": "sha512-KYAb4c9BJQI6QqGKthV68OHe0badztdXJWKo0WtBA9IuCFPTKvE5ZdUBglP833aMjhaSPNO4A5j/EkzZtGlKjA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/@isaacs/fs-minipass": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmmirror.com/@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/@malept/cross-spawn-promise": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/@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/@malept/flatpak-bundler": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/@malept/flatpak-bundler/-/flatpak-bundler-0.4.0.tgz",
+ "integrity": "sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.1.1",
+ "fs-extra": "^9.0.0",
+ "lodash": "^4.17.15",
+ "tmp-promise": "^3.0.2"
+ },
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/@malept/flatpak-bundler/node_modules/fs-extra": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-9.1.0.tgz",
+ "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "at-least-node": "^1.0.0",
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/@noble/hashes": {
+ "version": "1.8.0",
+ "resolved": "https://registry.npmmirror.com/@noble/hashes/-/hashes-1.8.0.tgz",
+ "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^14.21.3 || >=16"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ }
+ },
+ "node_modules/@peculiar/asn1-schema": {
+ "version": "2.11.1",
+ "resolved": "https://registry.npmmirror.com/@peculiar/asn1-schema/-/asn1-schema-2.11.1.tgz",
+ "integrity": "sha512-jaU9OaCcbZUdyXx9hMETZB9xoNmxTGjOGFqd3cOwKFkpKnyKd9WxF3uqj4PvX4cyOMP9bSdHg5YyML2qtx/d/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@peculiar/utils": "^2.0.2",
+ "asn1js": "^3.0.10",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/@peculiar/json-schema": {
+ "version": "1.1.12",
+ "resolved": "https://registry.npmmirror.com/@peculiar/json-schema/-/json-schema-1.1.12.tgz",
+ "integrity": "sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ }
+ },
+ "node_modules/@peculiar/utils": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/@peculiar/utils/-/utils-2.0.3.tgz",
+ "integrity": "sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.1"
+ }
+ },
+ "node_modules/@peculiar/webcrypto": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmmirror.com/@peculiar/webcrypto/-/webcrypto-1.7.2.tgz",
+ "integrity": "sha512-ktTSACRJ5WdpfjHjFT2EWJQQPacGv1cPCDfEbdmpAHOxdFiYqPe4lfnXGA3D8Dg9/0kHPYSvyRlgujIOVlTdvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@peculiar/asn1-schema": "^2.7.0",
+ "@peculiar/json-schema": "^1.1.12",
+ "@peculiar/utils": "^2.0.2",
+ "tslib": "^2.8.1",
+ "webcrypto-core": "^1.9.2"
+ },
+ "engines": {
+ "node": ">=14.18.0"
+ }
+ },
+ "node_modules/@sindresorhus/is": {
+ "version": "4.6.0",
+ "resolved": "https://registry.npmmirror.com/@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/@szmarczak/http-timer": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmmirror.com/@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/@types/cacheable-request": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmmirror.com/@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/debug": {
+ "version": "4.1.13",
+ "resolved": "https://registry.npmmirror.com/@types/debug/-/debug-4.1.13.tgz",
+ "integrity": "sha512-KSVgmQmzMwPlmtljOomayoR89W4FynCAi3E8PPs7vmDVPe84hT+vGPKkJfThkmXs0x0jAaa9U8uW8bbfyS2fWw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/fs-extra": {
+ "version": "9.0.13",
+ "resolved": "https://registry.npmmirror.com/@types/fs-extra/-/fs-extra-9.0.13.tgz",
+ "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/http-cache-semantics": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmmirror.com/@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/keyv": {
+ "version": "3.1.4",
+ "resolved": "https://registry.npmmirror.com/@types/keyv/-/keyv-3.1.4.tgz",
+ "integrity": "sha512-BQ5aZNSCpj7D6K2ksrRCTmKRLEpnPvWDiLPfoGyhZ++8YtiK9d/3DBKPJgry359X/P1PfruyYwvnvwFjuEiEIg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "24.19.2",
+ "resolved": "https://registry.npmmirror.com/@types/node/-/node-24.19.2.tgz",
+ "integrity": "sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": ">=7.24.0 <7.24.7"
+ }
+ },
+ "node_modules/@types/responselike": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/@types/responselike/-/responselike-1.0.3.tgz",
+ "integrity": "sha512-H/+L+UkTV33uf49PH5pCAUBVPNj2nDBXTN+qS1dOwyyg24l3CcicicCA7ca+HMvJBZcFgl5r8e+RR6elsb4Lyw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@xmldom/xmldom": {
+ "version": "0.8.15",
+ "resolved": "https://registry.npmmirror.com/@xmldom/xmldom/-/xmldom-0.8.15.tgz",
+ "integrity": "sha512-/5NV/vDALVFDXgLmfsy9TRCBlKwO2LNBFzpzvb9iIj+jR+eSc6DLYYvVOdivT/jm7MtU6TebYuRmzEOI7w40UA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ }
+ },
+ "node_modules/abbrev": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/abbrev/-/abbrev-4.0.0.tgz",
+ "integrity": "sha512-a1wflyaL0tHtJSmLSOVybYhy22vRih4eduhhrkcjgrWGnRfrZtovJ2FRjxuTtkkj47O/baf0R86QU5OuYpz8fA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "^20.17.0 || >=22.9.0"
+ }
+ },
+ "node_modules/agent-base": {
+ "version": "7.1.4",
+ "resolved": "https://registry.npmmirror.com/agent-base/-/agent-base-7.1.4.tgz",
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/ajv": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmmirror.com/ajv/-/ajv-8.20.0.tgz",
+ "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==",
+ "dev": true,
+ "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/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/app-builder-lib": {
+ "version": "26.18.0",
+ "resolved": "https://registry.npmmirror.com/app-builder-lib/-/app-builder-lib-26.18.0.tgz",
+ "integrity": "sha512-lx+KkuCSZHcbECf4R3IAcC9VOFk0+cMUwljO63s5y8yqS1Lw0sRGmjPaWsPwP3zv3ohZYbMhUvjXeiQXXZhJXA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron/asar": "3.4.1",
+ "@electron/fuses": "^1.8.0",
+ "@electron/get": "^3.0.0",
+ "@electron/notarize": "2.5.0",
+ "@electron/osx-sign": "1.3.3",
+ "@electron/rebuild": "^4.2.1",
+ "@electron/universal": "2.0.3",
+ "@malept/flatpak-bundler": "^0.4.0",
+ "@noble/hashes": "^1.8.0",
+ "@peculiar/webcrypto": "^1.7.1",
+ "@types/fs-extra": "9.0.13",
+ "ajv": "^8.18.0",
+ "asn1js": "^3.0.10",
+ "async-exit-hook": "^2.0.1",
+ "builder-util": "26.16.0",
+ "builder-util-runtime": "9.7.0",
+ "chromium-pickle-js": "^0.2.0",
+ "ci-info": "4.3.1",
+ "debug": "^4.3.4",
+ "dotenv": "^16.4.5",
+ "dotenv-expand": "^11.0.6",
+ "ejs": "^3.1.8",
+ "electron-publish": "26.18.0",
+ "fs-extra": "^10.1.0",
+ "hosted-git-info": "^4.1.0",
+ "isbinaryfile": "^5.0.0",
+ "jiti": "^2.4.2",
+ "js-yaml": "^4.1.0",
+ "json5": "^2.2.3",
+ "lazy-val": "^1.0.5",
+ "minimatch": "^10.2.5",
+ "pkijs": "^3.4.0",
+ "plist": "3.1.0",
+ "proper-lockfile": "^4.1.2",
+ "resedit": "^1.7.0",
+ "semver": "~7.7.3",
+ "tar": "^7.5.7",
+ "temp-file": "^3.4.0",
+ "tiny-async-pool": "1.3.0",
+ "unzipper": "^0.12.3",
+ "which": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "dmg-builder": "26.18.0",
+ "electron-builder-squirrel-windows": "26.18.0"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/@electron/get": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/@electron/get/-/get-3.1.0.tgz",
+ "integrity": "sha512-F+nKc0xW+kVbBRhFzaMgPy3KwmuNTYX1fx6+FxxoSnNgwYX6LD7AKBTWkU0MQ6IBoe7dz069CNkR673sPAgkCQ==",
+ "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": ">=14"
+ },
+ "optionalDependencies": {
+ "global-agent": "^3.0.0"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/@electron/get/node_modules/fs-extra": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmmirror.com/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/app-builder-lib/node_modules/@electron/get/node_modules/semver": {
+ "version": "6.3.2",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-6.3.2.tgz",
+ "integrity": "sha512-GYrCADwpu6yV5OAvchkQ27Z5wwMxWAEMg5NNWjyHh/5DboFFqbdbvYNIvZouQpxXyeMPoTOh0vdPYKlf0ZswdQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/ci-info": {
+ "version": "4.3.1",
+ "resolved": "https://registry.npmmirror.com/ci-info/-/ci-info-4.3.1.tgz",
+ "integrity": "sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/sibiraj-s"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+ "dev": true,
+ "license": "MIT",
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/semver": {
+ "version": "7.7.4",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.4.tgz",
+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/app-builder-lib/node_modules/universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/argparse": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz",
+ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
+ "dev": true,
+ "license": "Python-2.0"
+ },
+ "node_modules/asn1js": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/asn1js/-/asn1js-3.1.0.tgz",
+ "integrity": "sha512-HWYi1THkOqguCiO+vwj09ZkQFD2kKEsejYHAYCtX0D80WVdoDnvRc9IukXX/jeb0T9NRWJnRtqwdbHltnFjwXA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "pvtsutils": "^1.3.6",
+ "pvutils": "^1.2.0",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/async": {
+ "version": "3.2.6",
+ "resolved": "https://registry.npmmirror.com/async/-/async-3.2.6.tgz",
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/async-exit-hook": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/async-exit-hook/-/async-exit-hook-2.0.1.tgz",
+ "integrity": "sha512-NW2cX8m1Q7KPA7a5M2ULQeZ2wR5qI5PAbw5L0UOMxdioVk9PMZ0h1TmyZEkPYrCvYjDlFICusOu1dlEKAAeXBw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/at-least-node": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/at-least-node/-/at-least-node-1.0.0.tgz",
+ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/aws4": {
+ "version": "1.13.2",
+ "resolved": "https://registry.npmmirror.com/aws4/-/aws4-1.13.2.tgz",
+ "integrity": "sha512-lHe62zvbTB5eEABUVi/AwVh0ZKY9rMMDhmm+eeyuuUQbQ3+J+fONVQOZyj+DdrvD4BY33uYniyRJ4UJIaSKAfw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/balanced-match": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-4.0.4.tgz",
+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "18 || 20 || >=22"
+ }
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmmirror.com/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "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/bluebird": {
+ "version": "3.7.2",
+ "resolved": "https://registry.npmmirror.com/bluebird/-/bluebird-3.7.2.tgz",
+ "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/boolean": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/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.13",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-5.0.13.tgz",
+ "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^4.0.2"
+ },
+ "engines": {
+ "node": "20 || >=22"
+ }
+ },
+ "node_modules/buffer-from": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/buffer-from/-/buffer-from-1.1.2.tgz",
+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/builder-util": {
+ "version": "26.16.0",
+ "resolved": "https://registry.npmmirror.com/builder-util/-/builder-util-26.16.0.tgz",
+ "integrity": "sha512-RLyJhB7Si3YkzKR9ubQslWuXW3Vhs3CGe1i+SeixBZ0qTd1mk3XBmssvY22TlB6CS5blyko8Gu1JzpYk8UkYAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/debug": "^4.1.6",
+ "builder-util-runtime": "9.7.0",
+ "chalk": "^4.1.2",
+ "cross-spawn": "^7.0.6",
+ "debug": "^4.3.4",
+ "fs-extra": "^10.1.0",
+ "http-proxy-agent": "^7.0.0",
+ "https-proxy-agent": "^7.0.0",
+ "js-yaml": "^4.1.0",
+ "sanitize-filename": "^1.6.3",
+ "source-map-support": "^0.5.19",
+ "stat-mode": "^1.0.0",
+ "temp-file": "^3.4.0",
+ "tiny-async-pool": "1.3.0"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/builder-util-runtime": {
+ "version": "9.7.0",
+ "resolved": "https://registry.npmmirror.com/builder-util-runtime/-/builder-util-runtime-9.7.0.tgz",
+ "integrity": "sha512-g/kR520giAFYkSXTzcmF3kqQq7wi8F6N6SzeDgZrqTBN+VHdmgWOyTdD1yD7AATDId/yXLvuP34CxW46/BwCdw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "debug": "^4.3.4",
+ "sax": "^1.2.4"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/bytestreamjs": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/bytestreamjs/-/bytestreamjs-2.0.1.tgz",
+ "integrity": "sha512-U1Z/ob71V/bXfVABvNr/Kumf5VyeQRBEm6Txb0PQ6S7V5GpBM3w4Cbqz/xPDicR5tN0uvDifng8C+5qECeGwyQ==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/cacheable-lookup": {
+ "version": "5.0.4",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/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/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/chalk": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmmirror.com/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/chownr": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/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-pickle-js": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmmirror.com/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz",
+ "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/ci-info": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmmirror.com/ci-info/-/ci-info-4.5.0.tgz",
+ "integrity": "sha512-d1uM8k5UZEyPza1n/MG3ko8nKupKN0KJpFsipgPcgaCCvV+IqIfJ+NzTjetlLM+UcXZx3+cLrNr76+eAO7G1Mw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/sibiraj-s"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cliui": {
+ "version": "8.0.1",
+ "resolved": "https://registry.npmmirror.com/cliui/-/cliui-8.0.1.tgz",
+ "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "string-width": "^4.2.0",
+ "strip-ansi": "^6.0.1",
+ "wrap-ansi": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/clone-response": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/commander": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-5.1.0.tgz",
+ "integrity": "sha512-P0CysNDQ7rtVw4QIQtm+MRxV66vKFSvlsQvGYXZWR3qFU0jlMKHZZZgw8e+8DSah4UDKMqnknRDQz+xuQXQ/Zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/compare-version": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/compare-version/-/compare-version-0.1.2.tgz",
+ "integrity": "sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/core-util-is": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/core-util-is/-/core-util-is-1.0.3.tgz",
+ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cross-dirname": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/cross-dirname/-/cross-dirname-0.1.0.tgz",
+ "integrity": "sha512-+R08/oI0nl3vfPcqftZRpytksBXDzOUveBq/NBVx0sUp1axwzPQrKinNx5yd5sxPu8j1wIy8AfnVQ+5eFdha6Q==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "peer": true
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz",
+ "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cross-spawn/node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/cross-spawn/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decompress-response": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmmirror.com/decompress-response/-/decompress-response-6.0.0.tgz",
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+ "dev": true,
+ "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.npmmirror.com/mimic-response/-/mimic-response-3.1.0.tgz",
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/defer-to-connect": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/define-data-property/-/define-data-property-1.1.4.tgz",
+ "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "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.npmmirror.com/define-properties/-/define-properties-1.2.1.tgz",
+ "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "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.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/detect-node": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/detect-node/-/detect-node-2.1.0.tgz",
+ "integrity": "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/dir-compare": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmmirror.com/dir-compare/-/dir-compare-4.2.0.tgz",
+ "integrity": "sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "minimatch": "^3.0.5",
+ "p-limit": "^3.1.0 "
+ }
+ },
+ "node_modules/dir-compare/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/dir-compare/node_modules/brace-expansion": {
+ "version": "1.1.22",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.22.tgz",
+ "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/dir-compare/node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmmirror.com/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/dmg-builder": {
+ "version": "26.18.0",
+ "resolved": "https://registry.npmmirror.com/dmg-builder/-/dmg-builder-26.18.0.tgz",
+ "integrity": "sha512-ozCGC54wi2C1RkS2v69y9lQxvoQ1Coh+iT8CmWiyY8y1ZuOKVvuNson2Hd+HEOs9+EZNNsOBbzKgQZ4SNqWd0w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "app-builder-lib": "26.18.0",
+ "builder-util": "26.16.0",
+ "fs-extra": "^10.1.0",
+ "js-yaml": "^4.1.0"
+ }
+ },
+ "node_modules/dotenv": {
+ "version": "16.6.1",
+ "resolved": "https://registry.npmmirror.com/dotenv/-/dotenv-16.6.1.tgz",
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/dotenv-expand": {
+ "version": "11.0.7",
+ "resolved": "https://registry.npmmirror.com/dotenv-expand/-/dotenv-expand-11.0.7.tgz",
+ "integrity": "sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dotenv": "^16.4.5"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "dev": true,
+ "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.npmmirror.com/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/ejs": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmmirror.com/ejs/-/ejs-3.1.10.tgz",
+ "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "jake": "^10.8.5"
+ },
+ "bin": {
+ "ejs": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/electron": {
+ "version": "45.3.3",
+ "resolved": "https://registry.npmmirror.com/electron/-/electron-45.3.3.tgz",
+ "integrity": "sha512-YS01j/AMWGbPAfbXijkLOUJGFhmrIg6pf9An8+LzY1PIc5sjwqEcSMsEBXgUQiWw1lSfPCP7RpxbvkN1JQRD8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron-internal/extract-zip": "^1.0.1",
+ "@electron/get": "^5.0.0",
+ "@types/node": "^24.9.0"
+ },
+ "bin": {
+ "electron": "cli.js",
+ "install-electron": "install.js"
+ },
+ "engines": {
+ "node": ">= 22.12.0"
+ }
+ },
+ "node_modules/electron-builder": {
+ "version": "26.18.0",
+ "resolved": "https://registry.npmmirror.com/electron-builder/-/electron-builder-26.18.0.tgz",
+ "integrity": "sha512-ASgIuQnOq4RuD8jMhS9hI0LS3EMRT1I/M5R6utqifB/BHN80IcCjBdt+DED+NmNPvmBgEtrlExXZitNdA7kXOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "app-builder-lib": "26.18.0",
+ "builder-util": "26.16.0",
+ "builder-util-runtime": "9.7.0",
+ "chalk": "^4.1.2",
+ "ci-info": "^4.2.0",
+ "dmg-builder": "26.18.0",
+ "fs-extra": "^10.1.0",
+ "lazy-val": "^1.0.5",
+ "simple-update-notifier": "2.0.0",
+ "yargs": "^17.6.2"
+ },
+ "bin": {
+ "electron-builder": "cli.js",
+ "install-app-deps": "install-app-deps.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/electron-builder-squirrel-windows": {
+ "version": "26.18.0",
+ "resolved": "https://registry.npmmirror.com/electron-builder-squirrel-windows/-/electron-builder-squirrel-windows-26.18.0.tgz",
+ "integrity": "sha512-a2elgTipboXNIsxqS1HOmHMGp4Pd3LJgIZOdIFTOskBSawvxKyZWYWQ1d7KKA4CtINSchYCYEKzhxRqiKZev9Q==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "app-builder-lib": "26.18.0",
+ "builder-util": "26.16.0",
+ "electron-winstaller": "5.4.0"
+ }
+ },
+ "node_modules/electron-publish": {
+ "version": "26.18.0",
+ "resolved": "https://registry.npmmirror.com/electron-publish/-/electron-publish-26.18.0.tgz",
+ "integrity": "sha512-MagnqaZSALSWjcdKu5HEVhYUZD/2BDL3q7XzrqWwub6gf/UfD3ItMgmthVDv9w5y9E0gH1C3JWqKaXwf6f4ROg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/fs-extra": "^9.0.11",
+ "aws4": "^1.13.2",
+ "builder-util": "26.16.0",
+ "builder-util-runtime": "9.7.0",
+ "chalk": "^4.1.2",
+ "form-data": "^4.0.5",
+ "fs-extra": "^10.1.0",
+ "lazy-val": "^1.0.5",
+ "mime": "^2.5.2"
+ }
+ },
+ "node_modules/electron-winstaller": {
+ "version": "5.4.0",
+ "resolved": "https://registry.npmmirror.com/electron-winstaller/-/electron-winstaller-5.4.0.tgz",
+ "integrity": "sha512-bO3y10YikuUwUuDUQRM4KfwNkKhnpVO7IPdbsrejwN9/AABJzzTQ4GeHwyzNSrVO+tEH3/Np255a3sVZpZDjvg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "@electron/asar": "^3.2.1",
+ "debug": "^4.1.1",
+ "fs-extra": "^7.0.1",
+ "lodash": "^4.17.21",
+ "temp": "^0.9.0"
+ },
+ "engines": {
+ "node": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@electron/windows-sign": "^1.1.2"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/fs-extra": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-7.0.1.tgz",
+ "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "graceful-fs": "^4.1.2",
+ "jsonfile": "^4.0.0",
+ "universalify": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=6 <7 || >=8"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/jsonfile": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/jsonfile/-/jsonfile-4.0.0.tgz",
+ "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "optionalDependencies": {
+ "graceful-fs": "^4.1.6"
+ }
+ },
+ "node_modules/electron-winstaller/node_modules/universalify": {
+ "version": "0.1.2",
+ "resolved": "https://registry.npmmirror.com/universalify/-/universalify-0.1.2.tgz",
+ "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "engines": {
+ "node": ">= 4.0.0"
+ }
+ },
+ "node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmmirror.com/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/env-paths": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-3.0.0.tgz",
+ "integrity": "sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/err-code": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/err-code/-/err-code-2.0.3.tgz",
+ "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.2.tgz",
+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-set-tostringtag": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
+ "dev": true,
+ "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/es6-error": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmmirror.com/es6-error/-/es6-error-4.1.1.tgz",
+ "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",
+ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/exponential-backoff": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmmirror.com/exponential-backoff/-/exponential-backoff-3.1.3.tgz",
+ "integrity": "sha512-ZgEeZXj30q+I0EN+CbSSpIyPaJ5HVQD18Z1m+u1FXbAeT94mr1zw50q4q6jiiC447Nl/YTcIYSAftiGqetwXCA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/fast-deep-equal": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
+ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/fast-uri": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmmirror.com/fast-uri/-/fast-uri-3.1.9.tgz",
+ "integrity": "sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fastify"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/fastify"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmmirror.com/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/filelist": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/filelist/-/filelist-1.0.6.tgz",
+ "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "minimatch": "^5.0.1"
+ }
+ },
+ "node_modules/filelist/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/filelist/node_modules/brace-expansion": {
+ "version": "2.1.8",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.1.8.tgz",
+ "integrity": "sha512-BnlDzDYQoplTsZSvPi86CNzmbcb07X8ufR8fk1zivaiEJlXJkiq1MQyDCVmlWcsWbj6aWXqHnrwwevbrm/Saig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/filelist/node_modules/minimatch": {
+ "version": "5.1.9",
+ "resolved": "https://registry.npmmirror.com/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/form-data": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.6.tgz",
+ "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==",
+ "dev": true,
+ "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/fs-extra": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmmirror.com/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/fs.realpath": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz",
+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmmirror.com/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": "6.* || 8.* || >= 10.*"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "dev": true,
+ "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.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/get-stream": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmmirror.com/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/glob": {
+ "version": "7.2.3",
+ "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz",
+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
+ "deprecated": "Glob versions prior to v9 are no longer supported",
+ "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/glob/node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/glob/node_modules/brace-expansion": {
+ "version": "1.1.22",
+ "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.22.tgz",
+ "integrity": "sha512-CKLDTuSsN0+r1ThM0WkzzBI7dnPI6xEGfa/JnVYIK9JNBA1N1NyPwXVHor//NKD/y3sDxp764sZdLhFK7pH8XQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "node_modules/glob/node_modules/minimatch": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmmirror.com/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/global-agent": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/globalthis/-/globalthis-1.0.4.tgz",
+ "integrity": "sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "define-properties": "^1.2.1",
+ "gopd": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/got": {
+ "version": "11.8.6",
+ "resolved": "https://registry.npmmirror.com/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.12",
+ "resolved": "https://registry.npmmirror.com/graceful-fs/-/graceful-fs-4.2.12.tgz",
+ "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==",
+ "dev": true,
+ "license": "BlueOak-1.0.0"
+ },
+ "node_modules/has-flag": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz",
+ "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "dependencies": {
+ "es-define-property": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-tostringtag": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
+ "dev": true,
+ "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.npmmirror.com/hasown/-/hasown-2.0.4.tgz",
+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hosted-git-info": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmmirror.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz",
+ "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "lru-cache": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/http-cache-semantics": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmmirror.com/http-cache-semantics/-/http-cache-semantics-4.3.0.tgz",
+ "integrity": "sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==",
+ "dev": true,
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/http-proxy-agent": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmmirror.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/http2-wrapper": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmmirror.com/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": "7.0.6",
+ "resolved": "https://registry.npmmirror.com/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/inflight": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/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.",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "once": "^1.3.0",
+ "wrappy": "1"
+ }
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/isbinaryfile": {
+ "version": "5.0.7",
+ "resolved": "https://registry.npmmirror.com/isbinaryfile/-/isbinaryfile-5.0.7.tgz",
+ "integrity": "sha512-gnWD14Jh3FzS3CPhF0AxNOJ8CxqeblPTADzI38r0wt8ZyQl5edpy75myt08EG2oKvpyiqSqsx+Wkz9vtkbTqYQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 18.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/gjtorikian/"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "3.1.5",
+ "resolved": "https://registry.npmmirror.com/isexe/-/isexe-3.1.5.tgz",
+ "integrity": "sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/jake": {
+ "version": "10.9.4",
+ "resolved": "https://registry.npmmirror.com/jake/-/jake-10.9.4.tgz",
+ "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "async": "^3.2.6",
+ "filelist": "^1.0.4",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "jake": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmmirror.com/jiti/-/jiti-2.7.0.tgz",
+ "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "lib/jiti-cli.mjs"
+ }
+ },
+ "node_modules/js-yaml": {
+ "version": "4.3.2",
+ "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.3.2.tgz",
+ "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==",
+ "dev": true,
+ "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/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-schema-traverse": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmmirror.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==",
+ "dev": true,
+ "license": "ISC",
+ "optional": true
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/jsonfile": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmmirror.com/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/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmmirror.com/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/lazy-val": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/lazy-val/-/lazy-val-1.0.5.tgz",
+ "integrity": "sha512-0/BnGCCfyUMkBpeDgWihanIAF9JmZhHBgUhEqzvf+adhNGLoP6TaiI5oF8oyb3I45P+PcnrqihSf01M0l0G5+Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lodash": {
+ "version": "4.18.1",
+ "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.18.1.tgz",
+ "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/lowercase-keys": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz",
+ "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/matcher": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/mime": {
+ "version": "2.6.0",
+ "resolved": "https://registry.npmmirror.com/mime/-/mime-2.6.0.tgz",
+ "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-response": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/minimatch/-/minimatch-10.2.6.tgz",
+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
+ "dev": true,
+ "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.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.3.tgz",
+ "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/minizlib": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/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/mkdirp": {
+ "version": "0.5.6",
+ "resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-0.5.6.tgz",
+ "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "minimist": "^1.2.6"
+ },
+ "bin": {
+ "mkdirp": "bin/cmd.js"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/node-abi": {
+ "version": "4.40.0",
+ "resolved": "https://registry.npmmirror.com/node-abi/-/node-abi-4.40.0.tgz",
+ "integrity": "sha512-GuvqvtrOk+AC27RidBxBsMzVNkwNl7PjHgc4NXbmdvSVLgIUjpaqcG1FjNRYnt2Yn9Ytq+Ln37XsBaglUcte/w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.6.3"
+ },
+ "engines": {
+ "node": ">=22.12.0"
+ }
+ },
+ "node_modules/node-api-version": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/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/node_modules/env-paths": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmmirror.com/env-paths/-/env-paths-2.2.1.tgz",
+ "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/node-gyp/node_modules/isexe": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/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.1",
+ "resolved": "https://registry.npmmirror.com/undici/-/undici-6.29.1.tgz",
+ "integrity": "sha512-EvRlUt/QqAEvXdQeRMYUfwOQsfzpDztykrG2owGEE/rBOBoYv9uF39ZzsNDh4lTFHhTr2XOZjKkYgueD12ZmGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18.17"
+ }
+ },
+ "node_modules/node-gyp/node_modules/which": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/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-int64": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmmirror.com/node-int64/-/node-int64-0.4.0.tgz",
+ "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nopt": {
+ "version": "9.0.0",
+ "resolved": "https://registry.npmmirror.com/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-url": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmmirror.com/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/object-keys": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/object-keys/-/object-keys-1.1.1.tgz",
+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/p-cancelable": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/p-cancelable/-/p-cancelable-2.1.1.tgz",
+ "integrity": "sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/p-limit": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/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/path-is-absolute": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/pe-library": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmmirror.com/pe-library/-/pe-library-0.4.1.tgz",
+ "integrity": "sha512-eRWB5LBz7PpDu4PUlwT0PhnQfTQJlDDdPa35urV4Osrm0t0AqQFGn+UIkU3klZvwJ8KPO3VbBFsXquA6p6kqZw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/jet2jet"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pkijs": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmmirror.com/pkijs/-/pkijs-3.4.3.tgz",
+ "integrity": "sha512-V9kOzaItwDgqlryhXysQsAXUEKi5O7kqWUaP3dXI7MLvkPqWWMb4wVb1QAtmEDCKI+XIAINsZoNKMFF7sZb1eg==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "workspaces": [
+ "website"
+ ],
+ "dependencies": {
+ "@noble/hashes": "1.8.0",
+ "asn1js": "^3.0.6",
+ "bytestreamjs": "^2.0.1",
+ "pvtsutils": "^1.3.6",
+ "pvutils": "^1.1.3",
+ "tslib": "^2.8.1"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/plist": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmmirror.com/plist/-/plist-3.1.0.tgz",
+ "integrity": "sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@xmldom/xmldom": "^0.8.8",
+ "base64-js": "^1.5.1",
+ "xmlbuilder": "^15.1.1"
+ },
+ "engines": {
+ "node": ">=10.4.0"
+ }
+ },
+ "node_modules/postject": {
+ "version": "1.0.0-alpha.6",
+ "resolved": "https://registry.npmmirror.com/postject/-/postject-1.0.0-alpha.6.tgz",
+ "integrity": "sha512-b9Eb8h2eVqNE8edvKdwqkrY6O7kAwmI8kcnBv1NScolYJbo59XUF0noFq+lxbC1yN20bmC0WBEbDC5H/7ASb0A==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "dependencies": {
+ "commander": "^9.4.0"
+ },
+ "bin": {
+ "postject": "dist/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/postject/node_modules/commander": {
+ "version": "9.5.0",
+ "resolved": "https://registry.npmmirror.com/commander/-/commander-9.5.0.tgz",
+ "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "peer": true,
+ "engines": {
+ "node": "^12.20.0 || >=14"
+ }
+ },
+ "node_modules/proc-log": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/progress": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmmirror.com/progress/-/progress-2.0.3.tgz",
+ "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
+ "node_modules/promise-retry": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/promise-retry/-/promise-retry-2.0.1.tgz",
+ "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "err-code": "^2.0.2",
+ "retry": "^0.12.0"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/proper-lockfile": {
+ "version": "4.1.2",
+ "resolved": "https://registry.npmmirror.com/proper-lockfile/-/proper-lockfile-4.1.2.tgz",
+ "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.4",
+ "retry": "^0.12.0",
+ "signal-exit": "^3.0.2"
+ }
+ },
+ "node_modules/pump": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmmirror.com/pump/-/pump-3.0.4.tgz",
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/pvtsutils": {
+ "version": "1.3.6",
+ "resolved": "https://registry.npmmirror.com/pvtsutils/-/pvtsutils-1.3.6.tgz",
+ "integrity": "sha512-PLgQXQ6H2FWCaeRak8vvk1GW462lMxB5s3Jm673N82zI4vqtVUPuZdffdZbPDFRoU8kAhItWFtPCWiPpp4/EDg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tslib": "^2.8.1"
+ }
+ },
+ "node_modules/pvutils": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmmirror.com/pvutils/-/pvutils-1.2.0.tgz",
+ "integrity": "sha512-BbubeCEyTuQjVMakvJQ/Sxbc93F2pwmbsxONT/ZRrwU7Ua38d8unYTwXpTVLAKJ4BDuH9IGztCjQcd/N/39Dvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=16.0.0"
+ }
+ },
+ "node_modules/quick-lru": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmmirror.com/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/read-binary-file-arch": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz",
+ "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
+ "dev": true,
+ "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/require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmmirror.com/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/require-from-string": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmmirror.com/require-from-string/-/require-from-string-2.0.2.tgz",
+ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/resedit": {
+ "version": "1.7.2",
+ "resolved": "https://registry.npmmirror.com/resedit/-/resedit-1.7.2.tgz",
+ "integrity": "sha512-vHjcY2MlAITJhC0eRD/Vv8Vlgmu9Sd3LX9zZvtGzU5ZImdTN3+d6e/4mnTyV8vEbyf1sgNIrWxhWlrys52OkEA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pe-library": "^0.4.1"
+ },
+ "engines": {
+ "node": ">=12",
+ "npm": ">=6"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/jet2jet"
+ }
+ },
+ "node_modules/resolve-alpn": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmmirror.com/resolve-alpn/-/resolve-alpn-1.2.1.tgz",
+ "integrity": "sha512-0a1F4l73/ZFZOakJnQ3FvkJ2+gSTQWz/r2KE5OdDY0TxPm5h4GkqkWWfM47T7HsbnOtcJVEF4epCVy6u7Q3K+g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/responselike": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/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/retry": {
+ "version": "0.12.0",
+ "resolved": "https://registry.npmmirror.com/retry/-/retry-0.12.0.tgz",
+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 4"
+ }
+ },
+ "node_modules/rimraf": {
+ "version": "2.6.3",
+ "resolved": "https://registry.npmmirror.com/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",
+ "peer": true,
+ "dependencies": {
+ "glob": "^7.1.3"
+ },
+ "bin": {
+ "rimraf": "bin.js"
+ }
+ },
+ "node_modules/roarr": {
+ "version": "2.15.4",
+ "resolved": "https://registry.npmmirror.com/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/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmmirror.com/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/sanitize-filename": {
+ "version": "1.6.5",
+ "resolved": "https://registry.npmmirror.com/sanitize-filename/-/sanitize-filename-1.6.5.tgz",
+ "integrity": "sha512-+dVApt46/oAFWRP0KBSnYNLRw1peY7o/b12tmpllPNFpjfwkPuZut1+DiKaD9zYx5r2SHwc+XMLSBaDiyUJw3g==",
+ "dev": true,
+ "license": "WTFPL OR ISC",
+ "dependencies": {
+ "truncate-utf8-bytes": "^1.0.0"
+ }
+ },
+ "node_modules/sax": {
+ "version": "1.6.1",
+ "resolved": "https://registry.npmmirror.com/sax/-/sax-1.6.1.tgz",
+ "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",
+ "dev": true,
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=11.0.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.8.6",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-7.8.6.tgz",
+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/semver-compare": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmmirror.com/semver-compare/-/semver-compare-1.0.0.tgz",
+ "integrity": "sha512-YM3/ITh2MJ5MtzaM429anh+x2jiLVjqILF4m4oyQB18W7Ggea7BfqdH/wGMK7dDiMghv/6WG7znWMwUDzJiXow==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/serialize-error": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmmirror.com/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/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-3.0.7.tgz",
+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/simple-update-notifier": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmmirror.com/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz",
+ "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.5.3"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/source-map-support": {
+ "version": "0.5.21",
+ "resolved": "https://registry.npmmirror.com/source-map-support/-/source-map-support-0.5.21.tgz",
+ "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "buffer-from": "^1.0.0",
+ "source-map": "^0.6.0"
+ }
+ },
+ "node_modules/sprintf-js": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/stat-mode/-/stat-mode-1.0.0.tgz",
+ "integrity": "sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmmirror.com/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "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/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/sumchecker": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/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.23",
+ "resolved": "https://registry.npmmirror.com/tar/-/tar-7.5.23.tgz",
+ "integrity": "sha512-lkukzdoGngZHJZXxW4S/E4Fp9ghTDlyZXrQGRNoJ/LXvDKcXUTq2sg5yQe74po7Voea6n/IN09+wE/QvJMiifA==",
+ "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/node_modules/yallist": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/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/temp": {
+ "version": "0.9.4",
+ "resolved": "https://registry.npmmirror.com/temp/-/temp-0.9.4.tgz",
+ "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
+ "dev": true,
+ "license": "MIT",
+ "peer": true,
+ "dependencies": {
+ "mkdirp": "^0.5.1",
+ "rimraf": "~2.6.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/temp-file": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmmirror.com/temp-file/-/temp-file-3.4.0.tgz",
+ "integrity": "sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "async-exit-hook": "^2.0.1",
+ "fs-extra": "^10.0.0"
+ }
+ },
+ "node_modules/tiny-async-pool": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmmirror.com/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz",
+ "integrity": "sha512-01EAw5EDrcVrdgyCLgoSPvqznC0sVxDSVeiOz09FUpjh71G79VCqneOr+xvt7T1r76CF6ZZfPjHorN2+d+3mqA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^5.5.0"
+ }
+ },
+ "node_modules/tiny-async-pool/node_modules/semver": {
+ "version": "5.7.3",
+ "resolved": "https://registry.npmmirror.com/semver/-/semver-5.7.3.tgz",
+ "integrity": "sha512-kM18BPOqTi0+TB68703/GJRpAML5Me+IDQsR1J26YB3EFKKNEyHIVZuWDX7+WKQB3tHwDwgk24BfhdpWUbytvQ==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmmirror.com/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.npmmirror.com/tmp/-/tmp-0.2.7.tgz",
+ "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/tmp-promise": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmmirror.com/tmp-promise/-/tmp-promise-3.0.3.tgz",
+ "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tmp": "^0.2.0"
+ }
+ },
+ "node_modules/truncate-utf8-bytes": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz",
+ "integrity": "sha512-95Pu1QXQvruGEhv62XCMO3Mm90GscOCClvrIUwCM0PYOXK3kaF3l3sIHxx71ThJfcbM2O5Au6SO3AWCSEfW4mQ==",
+ "dev": true,
+ "license": "WTFPL",
+ "dependencies": {
+ "utf8-byte-length": "^1.0.1"
+ }
+ },
+ "node_modules/tslib": {
+ "version": "2.9.1",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.9.1.tgz",
+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",
+ "dev": true,
+ "license": "0BSD"
+ },
+ "node_modules/type-fest": {
+ "version": "0.13.1",
+ "resolved": "https://registry.npmmirror.com/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/undici": {
+ "version": "7.30.2",
+ "resolved": "https://registry.npmmirror.com/undici/-/undici-7.30.2.tgz",
+ "integrity": "sha512-mLyPQnHwUxaM/rideoK/+KL8DaAJLRl4aBCfmX444aCSLnIaomqPLtNRe2jdCYcsk5wZzXrDIQC8ZeYNRAYyIA==",
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/undici-types": {
+ "version": "7.24.6",
+ "resolved": "https://registry.npmmirror.com/undici-types/-/undici-types-7.24.6.tgz",
+ "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/universalify": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmmirror.com/universalify/-/universalify-2.0.1.tgz",
+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 10.0.0"
+ }
+ },
+ "node_modules/unzipper": {
+ "version": "0.12.5",
+ "resolved": "https://registry.npmmirror.com/unzipper/-/unzipper-0.12.5.tgz",
+ "integrity": "sha512-tXYOi9R57Uj/2Z25SOs5RRSzq886MBQj2gY8dPL+xl/kv6s6SvByoKfAtvfVeEuhntWDgjd2o9p2lb4TVPAz0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "bluebird": "~3.7.2",
+ "duplexer2": "~0.1.4",
+ "fs-extra": "11.3.1",
+ "graceful-fs": "^4.2.2",
+ "node-int64": "^0.4.0"
+ }
+ },
+ "node_modules/unzipper/node_modules/fs-extra": {
+ "version": "11.3.1",
+ "resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.3.1.tgz",
+ "integrity": "sha512-eXvGGwZ5CL17ZSwHWd3bbgk7UUpF6IFHtP57NYYakPvHOs8GDgDe5KJI36jIJzDkJ6eJjuzRA8eBQb6SkKue0g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "graceful-fs": "^4.2.0",
+ "jsonfile": "^6.0.1",
+ "universalify": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=14.14"
+ }
+ },
+ "node_modules/utf8-byte-length": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmmirror.com/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz",
+ "integrity": "sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==",
+ "dev": true,
+ "license": "(WTFPL OR MIT)"
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/webcrypto-core": {
+ "version": "1.9.2",
+ "resolved": "https://registry.npmmirror.com/webcrypto-core/-/webcrypto-core-1.9.2.tgz",
+ "integrity": "sha512-gsXecm82UQNlTBURJGuqOWy1Ww08S3kZUcr3aOJS02Pk0xLtkfeUAVC0u0xhgdonFme80edSJUIJyuvL/7250Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@peculiar/asn1-schema": "^2.7.0",
+ "@peculiar/json-schema": "^1.1.12",
+ "@peculiar/utils": "^2.0.2",
+ "asn1js": "^3.0.10",
+ "tslib": "^2.8.1"
+ }
+ },
+ "node_modules/which": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmmirror.com/which/-/which-5.0.0.tgz",
+ "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "isexe": "^3.1.1"
+ },
+ "bin": {
+ "node-which": "bin/which.js"
+ },
+ "engines": {
+ "node": "^18.17.0 || >=20.5.0"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "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.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/xmlbuilder": {
+ "version": "15.1.1",
+ "resolved": "https://registry.npmmirror.com/xmlbuilder/-/xmlbuilder-15.1.1.tgz",
+ "integrity": "sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/y18n": {
+ "version": "5.0.8",
+ "resolved": "https://registry.npmmirror.com/y18n/-/y18n-5.0.8.tgz",
+ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/yargs": {
+ "version": "17.7.3",
+ "resolved": "https://registry.npmmirror.com/yargs/-/yargs-17.7.3.tgz",
+ "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==",
+ "dev": true,
+ "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.npmmirror.com/yargs-parser/-/yargs-parser-21.1.1.tgz",
+ "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",
+ "dev": true,
+ "license": "ISC",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/yocto-queue": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmmirror.com/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.4.3",
+ "resolved": "https://registry.npmmirror.com/zod/-/zod-4.4.3.tgz",
+ "integrity": "sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/colinhacks"
+ }
+ }
+ }
+}
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
new file mode 100644
index 000000000..1781669c7
--- /dev/null
+++ b/apps/desktop/package.json
@@ -0,0 +1,67 @@
+{
+ "name": "@opendirector/desktop",
+ "version": "0.1.4",
+ "private": true,
+ "type": "module",
+ "main": "src/main.mjs",
+ "scripts": {
+ "start": "electron .",
+ "test": "node --test tests/*.test.mjs",
+ "prepare:runtime": "node scripts/prepare-runtime.mjs",
+ "pack": "electron-builder --dir",
+ "pack:windows": "electron-builder --win nsis --x64",
+ "smoke": "node scripts/smoke.mjs"
+ },
+ "dependencies": {
+ "zod": "4.4.3"
+ },
+ "devDependencies": {
+ "electron": "45.3.3",
+ "electron-builder": "26.18.0"
+ },
+ "build": {
+ "appId": "org.opendirector.desktop",
+ "productName": "OpenDirector",
+ "asar": true,
+ "directories": {
+ "output": "build"
+ },
+ "files": [
+ "src/**",
+ "scripts/smoke-window.mjs",
+ "package.json"
+ ],
+ "extraResources": [
+ {
+ "from": "runtime",
+ "to": "runtime"
+ }
+ ],
+ "mac": {
+ "category": "public.app-category.video",
+ "target": "dir"
+ },
+ "win": {
+ "target": "dir"
+ },
+ "nsis": {
+ "artifactName": "OpenDirector-v${version}-win-${arch}-unsigned.${ext}",
+ "deleteAppDataOnUninstall": false,
+ "oneClick": false,
+ "perMachine": false,
+ "allowElevation": false,
+ "allowToChangeInstallationDirectory": true
+ },
+ "linux": {
+ "target": "dir",
+ "category": "AudioVideo"
+ },
+ "icon": "../../src/assets/open_director_logo.png"
+ },
+ "allowScripts": {
+ "electron@45.3.3": true,
+ "electron-winstaller@5.4.0": true
+ },
+ "description": "OpenDirector desktop shell and private Python Host",
+ "author": "OpenDirector contributors"
+}
diff --git a/apps/desktop/scripts/prepare-runtime.mjs b/apps/desktop/scripts/prepare-runtime.mjs
new file mode 100644
index 000000000..9a5cba68f
--- /dev/null
+++ b/apps/desktop/scripts/prepare-runtime.mjs
@@ -0,0 +1,61 @@
+/** Build-host prerequisites: uv, Node/npm and a standalone FFmpeg/ffprobe directory. */
+import { spawnSync } from 'node:child_process';
+import { chmodSync, copyFileSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
+import { dirname, join, resolve, relative } from 'node:path';
+import { fileURLToPath } from 'node:url';
+
+const desktop = resolve(dirname(fileURLToPath(import.meta.url)), '..');
+const root = resolve(desktop, '../..');
+const runtime = join(desktop, 'runtime');
+const media = process.env.OPENDIRECTOR_FFMPEG_DIR;
+if (!media) throw new Error('Set OPENDIRECTOR_FFMPEG_DIR to standalone ffmpeg and ffprobe binaries for this target.');
+function run(command, args, cwd = root) {
+ const result = spawnSync(command, args, { cwd, stdio: 'inherit' });
+ if (result.error) throw result.error;
+ if (result.status !== 0) throw new Error(`${command} exited ${result.status}`);
+}
+// runtime/ is a generated artifact: start from a clean distribution so a Python build from an earlier
+// run cannot be packaged beside the one this run installs.
+const pythonDirectory = join(runtime, 'python');
+rmSync(pythonDirectory, { recursive: true, force: true });
+mkdirSync(join(runtime, 'bin'), { recursive: true });
+run('uv', ['python', 'install', '3.12', '--install-dir', pythonDirectory, '--no-bin']);
+const architecture = process.arch === 'arm64' ? 'aarch64' : 'x86_64';
+const installations = readdirSync(pythonDirectory, { withFileTypes: true });
+// uv leaves a version-less alias beside the concrete distribution (a symlink on POSIX, a junction on
+// Windows). A Windows-target package dereferences that link while archiving, so keeping it would copy
+// the whole runtime twice and roughly double the installer size and install time.
+for (const entry of installations) if (entry.isSymbolicLink()) rmSync(join(pythonDirectory, entry.name));
+const distributions = installations.filter(entry => entry.isDirectory() && !entry.isSymbolicLink() &&
+ entry.name.startsWith('cpython-3.12') && entry.name.includes(architecture));
+if (distributions.length !== 1) throw new Error(`Expected exactly one standalone Python distribution, found ${distributions.length}`);
+const distribution = distributions[0].name;
+const python = join(pythonDirectory, distribution, process.platform === 'win32' ? 'python.exe' : 'bin/python3');
+const wheels = join(root, 'build/desktop-wheel');
+mkdirSync(wheels, { recursive: true });
+run('uv', ['build', '--wheel', '--out-dir', wheels]);
+const wheel = readdirSync(wheels).find(name => name.startsWith('opendirector-') && name.endsWith('.whl'));
+if (!wheel) throw new Error('OpenDirector wheel was not produced');
+run('uv', ['pip', 'install', '--break-system-packages', '--reinstall-package', 'opendirector', '--python', python, join(wheels, wheel)]);
+for (const name of ['ffmpeg', 'ffprobe']) {
+ const executable = name + (process.platform === 'win32' ? '.exe' : '');
+ copyFileSync(join(media, executable), join(runtime, 'bin', executable));
+ chmodSync(join(runtime, 'bin', executable), 0o755);
+ if (process.platform === 'darwin') {
+ const target = spawnSync('file', [join(runtime, 'bin', executable)], { encoding: 'utf8' });
+ if (target.status !== 0 || !target.stdout.includes(process.arch === 'arm64' ? 'arm64' : 'x86_64')) throw new Error(`${name} does not match the target architecture`);
+ }
+ const license = spawnSync(join(runtime, 'bin', executable), ['-L'], { encoding: 'utf8' });
+ if (license.status !== 0) throw new Error(`${name} license inspection failed`);
+ writeFileSync(join(runtime, 'bin', `LICENSE.${name}.txt`), license.stdout + license.stderr);
+ run(join(runtime, 'bin', executable), ['-version']);
+}
+const pythonRelative = relative(runtime, python);
+const desktopExecutable = process.platform === 'darwin' ? '../../MacOS/OpenDirector' : process.platform === 'win32' ? '../../OpenDirector.exe' : '../../opendirector-desktop';
+const workspace = process.platform === 'darwin' ? '$HOME/Library/Application Support/OpenDirector/workspace' : '${XDG_CONFIG_HOME:-$HOME/.config}/OpenDirector/workspace';
+const unix = `#!/bin/sh\nset -eu\nSCRIPT="$0"\nwhile [ -L "$SCRIPT" ]; do\n BASE=$(CDPATH= cd -- "$(dirname -- "$SCRIPT")" && pwd)\n LINK=$(readlink "$SCRIPT")\n case "$LINK" in /*) SCRIPT="$LINK" ;; *) SCRIPT="$BASE/$LINK" ;; esac\ndone\nRUNTIME=$(CDPATH= cd -- "$(dirname -- "$SCRIPT")/.." && pwd)\nexport PATH="$RUNTIME/bin:$PATH"\nexport OPENDIRECTOR_ROOT="\${OPENDIRECTOR_ROOT:-${workspace}}"\nexport OPENDIRECTOR_DESKTOP_EXECUTABLE="$RUNTIME/${desktopExecutable}"\nexec "$RUNTIME/${pythonRelative}" -I -B -m opendirector.cli "$@"\n`;
+if (process.platform === 'win32') writeFileSync(join(runtime, 'bin/opendirector.cmd'), `@echo off\r\nset "PATH=%~dp0;%PATH%"\r\nif not defined OPENDIRECTOR_ROOT set "OPENDIRECTOR_ROOT=%APPDATA%\\OpenDirector\\workspace"\r\nset "OPENDIRECTOR_DESKTOP_EXECUTABLE=%~dp0..\\${desktopExecutable}"\r\n"%~dp0..\\${pythonRelative}" -I -B -X utf8 -m opendirector.cli %*\r\n`);
+else { writeFileSync(join(runtime, 'bin/opendirector'), unix); chmodSync(join(runtime, 'bin/opendirector'), 0o755); }
+run(python, ['-I', '-X', 'utf8', '-m', 'opendirector.cli', '--help']);
+writeFileSync(join(runtime, 'manifest.json'), JSON.stringify({ version: 1, platform: process.platform, arch: process.arch,
+ python: pythonRelative, application: JSON.parse(readFileSync(join(root, 'package.json'))).version }, null, 2));
diff --git a/apps/desktop/scripts/smoke-window.mjs b/apps/desktop/scripts/smoke-window.mjs
new file mode 100644
index 000000000..2b5f9fb77
--- /dev/null
+++ b/apps/desktop/scripts/smoke-window.mjs
@@ -0,0 +1,357 @@
+import { app, BrowserWindow } from 'electron';
+import { appendFileSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import { createHash } from 'node:crypto';
+import { join } from 'node:path';
+import { setTimeout as delay } from 'node:timers/promises';
+
+export async function smokeWindow({ window, host, getLocale }) {
+ const result = await window.webContents.executeJavaScript(`(async () => {
+ const r = await fetch('/api/health', {headers: {'X-OpenDirector-Request': '1'}});
+ const health = await r.json();
+ const projects = await fetch('/api/creation/projects', {headers: {'X-OpenDirector-Request': '1'}});
+ return {health, projects: projects.status, isolated: typeof require === 'undefined', bridge: !!window.opendirectorDesktop};
+ })()`);
+ if (result.health.status !== 'ok' || result.projects !== 200 || !result.isolated || !result.bridge) throw new Error('Desktop smoke failed');
+ await waitFor(() => window.webContents.executeJavaScript('document.querySelectorAll("button").length > 2'), 'Workbench did not become interactive');
+ await window.webContents.executeJavaScript('document.querySelector(".cw-welcome-secondary")?.click()');
+ await waitFor(() => window.webContents.executeJavaScript('!!document.querySelector(".react-flow") && !!document.querySelector(".cw-save-status i.saved")'), 'Canvas did not open');
+ result.projectIds = await waitFor(() => window.webContents.executeJavaScript(`fetch('/api/creation/projects', {headers: {'X-OpenDirector-Request': '1'}})
+ .then(r => r.json()).then(value => value.projects.length ? value.projects.map(project => project.id).sort() : null)`), 'Canvas project was not persisted');
+ await delay(500);
+ await window.webContents.executeJavaScript('document.querySelector(".cw-welcome-secondary")?.click()');
+ await delay(300);
+ if (await window.webContents.executeJavaScript('!!document.querySelector("dialog[open]")')) throw new Error('A dialog obscures the canvas');
+ if (process.platform === 'win32') await checkWindowsCaption(window);
+ if (process.env.OPENDIRECTOR_DESKTOP_DATA) {
+ const projectId = result.projectIds.length === 1
+ ? result.projectIds[0]
+ : process.env.OPENDIRECTOR_DESKTOP_SMOKE_MEDIA_PROJECT;
+ if (result.projectIds.length === 1) await dropMedia(window);
+ const fingerprints = Object.fromEntries(
+ Object.entries({ image: 'png', video: 'mp4', audio: 'wav' }).map(([kind, extension]) => {
+ const bytes = readFileSync(join(process.env.OPENDIRECTOR_DESKTOP_DATA, `desktop-drop.${extension}`));
+ return [kind, 'sha256:' + createHash('sha256').update(bytes).digest('hex')];
+ }),
+ );
+ let state;
+ try {
+ await waitFor(async () => {
+ state = await droppedMediaState(window, projectId, fingerprints);
+ return state.saved;
+ }, 'Dropped video, image and audio were not saved');
+ } catch (error) {
+ throw new Error(`${error.message}: ${JSON.stringify(state)}`, { cause: error });
+ }
+ result.mediaDrop = projectId;
+ }
+ if (result.projectIds.length === 1) await smokeTraceWindows(window, result.projectIds[0]);
+ result.sidebarInitiallyOpen = await window.webContents.executeJavaScript("document.querySelector('.cw-workspace').dataset.desktopSidebar === 'open'");
+ if (!result.sidebarInitiallyOpen) {
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await waitFor(() => window.webContents.executeJavaScript("document.querySelector('.cw-workspace').dataset.desktopSidebar === 'open'"), 'Sidebar did not expand');
+ }
+ if (process.platform === 'win32') {
+ const bounds = window.getBounds();
+ try {
+ window.setSize(800, bounds.height);
+ await waitFor(() => window.webContents.executeJavaScript('innerWidth <= 800'), 'Windows test window did not resize');
+ await checkWindowsCaption(window);
+ } finally {
+ window.setBounds(bounds);
+ }
+ }
+ if (result.projectIds.length === 1) {
+ await window.webContents.executeJavaScript("window.dispatchEvent(new KeyboardEvent('keydown', { key: 'n', metaKey: navigator.platform.startsWith('Mac'), ctrlKey: !navigator.platform.startsWith('Mac'), bubbles: true }))");
+ result.projectIds = await waitFor(() => window.webContents.executeJavaScript(`fetch('/api/creation/projects', {headers: {'X-OpenDirector-Request': '1'}})
+ .then(r => r.json()).then(value => value.projects.length === 2 ? value.projects.map(project => project.id).sort() : null)`), 'New project shortcut did not persist a project');
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.cw-project-name-editor input')"), 'New project name did not become editable');
+ await window.webContents.executeJavaScript("document.querySelector('.cw-project-name-editor input').dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true }))");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.cw-save-status i.saved')"), 'New project did not finish saving');
+ }
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.od-project-sidebar nav button')"), 'Sidebar projects did not load');
+ // Opening a trace window can leave the native focus on its closing child.
+ // Finish the project rename and focus the main window before testing keyboard focus.
+ await waitFor(() => window.webContents.executeJavaScript("!document.querySelector('.cw-project-name-editor input')"), 'Project rename did not finish');
+ if (process.platform === 'darwin') app.focus({ steal: true });
+ window.focus();
+ window.webContents.focus();
+ await waitFor(() => window.isFocused(), 'Desktop window could not take focus before search');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search-toggle').click()");
+ await waitFor(() => window.webContents.executeJavaScript("document.activeElement === document.querySelector('.od-sidebar-search')"), 'Project search did not take focus');
+ const firstProject = await window.webContents.executeJavaScript("document.querySelector('.od-project-sidebar nav button span').textContent");
+ for (const query of ['__no_matching_project__', ` ${firstProject.toLocaleUpperCase()} `, '']) {
+ await window.webContents.executeJavaScript(`(() => {
+ const input = document.querySelector('.od-sidebar-search');
+ Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set.call(input, ${JSON.stringify(query)});
+ input.dispatchEvent(new Event('input', { bubbles: true }));
+ })()`);
+ await waitFor(() => window.webContents.executeJavaScript(query === '__no_matching_project__' ? "!!document.querySelector('.od-sidebar-empty') && !document.querySelector('.od-project-sidebar nav button')" : "!!document.querySelector('.od-project-sidebar nav button') && !document.querySelector('.od-sidebar-empty')"), 'Sidebar project search failed');
+ }
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search-close').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!document.querySelector('.od-sidebar-search') && document.activeElement === document.querySelector('.od-sidebar-search-toggle')"), 'Closing search did not restore focus');
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await delay(200);
+ await window.webContents.executeJavaScript("window.dispatchEvent(new KeyboardEvent('keydown', { key: 'k', metaKey: navigator.platform.startsWith('Mac'), ctrlKey: !navigator.platform.startsWith('Mac'), bubbles: true }))");
+ await waitFor(() => window.webContents.executeJavaScript("document.activeElement === document.querySelector('.od-sidebar-search')"), 'Project search shortcut failed');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search').dispatchEvent(new KeyboardEvent('keydown', { key: 'Escape', bubbles: true }))");
+ await waitFor(() => window.webContents.executeJavaScript("!document.querySelector('.od-sidebar-search')"), 'Escape did not close project search');
+ const captionInteractive = await window.webContents.executeJavaScript("[...document.querySelectorAll('.od-caption-actions button, .od-caption-actions svg')].every(element => getComputedStyle(element).getPropertyValue('-webkit-app-region') === 'no-drag')");
+ if (!captionInteractive) throw new Error('Caption buttons overlap native drag regions');
+ const evidence = process.env.OPENDIRECTOR_DESKTOP_EVIDENCE;
+ for (const language of ['en-US', 'zh-CN']) {
+ await window.webContents.executeJavaScript(`window.dispatchEvent(new StorageEvent('storage', { key: 'opendirector.locale.v1', newValue: '${language}' }))`);
+ await delay(500);
+ const current = await window.webContents.executeJavaScript('document.documentElement.lang');
+ if (current !== language || getLocale() !== language) throw new Error('Desktop locale synchronization failed');
+ if (!(await window.webContents.executeJavaScript('!!document.querySelector(".react-flow") && !!document.querySelector(".cw-save-status i.saved")'))) throw new Error('Canvas was lost during language switching');
+ const settingsStyle = await window.webContents.executeJavaScript(`(() => {
+ const button = document.querySelector('.od-sidebar-settings .cw-icon-button');
+ return button && getComputedStyle(button).visibility === 'visible' && button.querySelector('svg') && !button.textContent.trim();
+ })()`);
+ if (!settingsStyle) throw new Error('Sidebar settings did not reuse the canvas icon button');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-settings .cw-icon-button').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.cw-settings-dialog[open]')"), 'Sidebar settings did not open');
+ await window.webContents.executeJavaScript("document.querySelector('.cw-settings-close').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!document.querySelector('.cw-settings-dialog[open]')"), 'Settings did not close');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-project-more').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.od-sidebar-project-menu [role=menuitem]')"), 'Project menu did not open');
+ const deleteLabel = await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-project-menu').textContent");
+ if (!deleteLabel.includes(language === 'en-US' ? 'Delete' : '删除')) throw new Error('Project delete action was not localized');
+ if (evidence) {
+ mkdirSync(evidence, { recursive: true });
+ writeFileSync(join(evidence, `project-menu-${language}.png`), (await window.webContents.capturePage()).toPNG());
+ }
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-project-menu button').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('dialog[open] .cw-project-dialog-actions')"), 'Delete confirmation did not open');
+ await window.webContents.executeJavaScript("document.querySelector('dialog[open] .cw-project-dialog-actions button').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!document.querySelector('dialog[open]')"), 'Delete cancellation did not close confirmation');
+ if (evidence) {
+ mkdirSync(evidence, { recursive: true });
+ const button = await window.webContents.executeJavaScript("(() => { const r = document.querySelector('.od-sidebar-create').getBoundingClientRect(); return { x: Math.round(r.x + r.width / 2), y: Math.round(r.y + r.height / 2) }; })()");
+ window.webContents.sendInputEvent({ type: 'mouseMove', ...button });
+ await waitFor(() => window.webContents.executeJavaScript("getComputedStyle(document.querySelector('.od-sidebar-create-shortcut')).opacity === '1'"), 'New project hover shortcut was not visible');
+ writeFileSync(join(evidence, `new-project-hover-${language}.png`), (await window.webContents.capturePage()).toPNG());
+ window.webContents.sendInputEvent({ type: 'mouseMove', x: 300, y: 100 });
+ await waitFor(() => window.webContents.executeJavaScript("getComputedStyle(document.querySelector('.od-sidebar-create-shortcut')).opacity === '0'"), 'New project shortcut stayed visible after hover');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search-toggle').click()");
+ await delay(200);
+ writeFileSync(join(evidence, `search-open-${language}.png`), (await window.webContents.capturePage()).toPNG());
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-search-close').click()");
+ await delay(200);
+ for (const state of ['expanded', 'collapsed']) {
+ if (state === 'collapsed') {
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await delay(500);
+ }
+ const placements = await window.webContents.executeJavaScript(`(() => {
+ const open = document.querySelector('.cw-workspace').dataset.desktopSidebar === 'open';
+ return { open, create: document.querySelectorAll(open ? '.od-sidebar-create' : '.od-caption-actions button').length };
+ })()`);
+ if (placements.open !== (state === 'expanded') || placements.create !== (state === 'expanded' ? 1 : 2)) throw new Error('New project button placement failed');
+ window.webContents.invalidate();
+ await delay(200);
+ writeFileSync(join(evidence, `sidebar-${state}-${language}.png`), (await window.webContents.capturePage()).toPNG());
+ }
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await delay(500);
+ }
+ }
+ if (process.platform === 'darwin') {
+ const chrome = await window.webContents.executeJavaScript(`(() => {
+ const header = document.querySelector('.cw-topbar');
+ return { top: header.getBoundingClientRect().top,
+ canvasTop: document.querySelector('.react-flow').getBoundingClientRect().top,
+ padding: getComputedStyle(header).paddingLeft,
+ drag: getComputedStyle(header).getPropertyValue('-webkit-app-region') };
+ })()`);
+ if (chrome.top !== 0 || chrome.canvasTop !== 48 || chrome.padding !== '20px' || chrome.drag !== 'drag') throw new Error('Desktop chrome layout failed: ' + JSON.stringify(chrome));
+ window.show();
+ app.focus({ steal: true });
+ window.focus();
+ await waitFor(() => window.isVisible() && window.isFocused(), 'Desktop window could not take focus before fullscreen');
+ for (const fullscreen of [true, false]) {
+ window.setFullScreen(fullscreen);
+ await waitFor(() => window.isFullScreen() === fullscreen,
+ `Native fullscreen transition failed: target=${fullscreen}`);
+ await waitFor(() => window.webContents.executeJavaScript(`document.documentElement.hasAttribute('data-desktop-fullscreen') === ${fullscreen}`),
+ `Fullscreen chrome synchronization failed: target=${fullscreen}`);
+ }
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await delay(500);
+ const bounds = window.getBounds();
+ window.setSize(800, 600);
+ await delay(200);
+ const fits = await window.webContents.executeJavaScript(`(() => {
+ const language = document.querySelector('.cw-topbar .cw-language-toggle').getBoundingClientRect();
+ const title = document.querySelector('.cw-topbar .cw-project-selector').getBoundingClientRect();
+ const actions = document.querySelector('.cw-top-actions').getBoundingClientRect();
+ return title.right <= language.left && language.right <= actions.left && actions.right <= innerWidth;
+ })()`);
+ if (!fits) throw new Error('Desktop controls overlap in a narrow window');
+ window.setBounds(bounds);
+ await delay(200);
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ await delay(500);
+ result.chrome = chrome;
+ }
+ if (process.env.OPENDIRECTOR_DESKTOP_SMOKE_DELETE === '1') {
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-create').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.cw-project-name-editor input')"), 'Deletion test project was not created');
+ await window.webContents.executeJavaScript("document.querySelector('.cw-project-name-editor input').dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true }))");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.cw-save-status i.saved') && !document.querySelector('.cw-project-name-editor input')"), 'Deletion test project was not saved');
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.od-sidebar-project-select[aria-current=page]')"), 'New project row did not load');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-project-select[aria-current=page]').parentElement.querySelector('.od-sidebar-project-more').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('.od-sidebar-project-menu button')"), 'Delete test menu did not open');
+ await window.webContents.executeJavaScript("document.querySelector('.od-sidebar-project-menu button').click()");
+ await waitFor(() => window.webContents.executeJavaScript("!!document.querySelector('dialog[open] button[type=submit]')"), 'Delete test confirmation did not open');
+ await window.webContents.executeJavaScript("document.querySelector('dialog[open] button[type=submit]').click()");
+ await waitFor(() => window.webContents.executeJavaScript(`(async () => {
+ const response = await fetch('/api/creation/projects', {headers: {'X-OpenDirector-Request': '1'}});
+ const value = await response.json();
+ return !document.querySelector('dialog[open]') && !!document.querySelector('.cw-save-status i.saved') &&
+ !!document.querySelector('.cw-workspace[aria-busy=false]') &&
+ !!document.querySelector('.od-sidebar-project-select[aria-current=page]') &&
+ JSON.stringify(value.projects.map(p => p.id).sort()) === '${JSON.stringify(result.projectIds)}';
+ })()`), 'Deleting the open test project did not restore the remaining projects');
+ result.projectDeletion = true;
+ }
+ await waitFor(() => window.webContents.executeJavaScript(
+ "!!document.querySelector('.od-sidebar-project-select:not([aria-current]):not(:disabled)')"),
+ 'No other editable project was available for rapid switching');
+ for (let attempt = 0; attempt < 8; attempt++) {
+ const switched = await window.webContents.executeJavaScript(`(async () => {
+ const target = document.querySelector('.od-sidebar-project-select:not([aria-current]):not(:disabled)');
+ const canvas = document.querySelector('.react-flow');
+ for (let click = 0; click < 5; click++) target.click();
+ const deadline = performance.now() + 5000;
+ do {
+ await new Promise(requestAnimationFrame);
+ if (document.querySelector('.canvas-loading-screen') ||
+ document.querySelector('.react-flow') !== canvas) {
+ throw new Error('Project switch obscured or replaced the canvas surface');
+ }
+ if (target.matches('[aria-current="page"]') &&
+ document.querySelector('.cw-workspace[aria-busy="false"]')) return true;
+ } while (performance.now() < deadline);
+ return false;
+ })()`);
+ if (!switched) throw new Error('Rapid project switching did not settle');
+ }
+ result.sidebarFinallyOpen = process.env.OPENDIRECTOR_DESKTOP_SMOKE_SIDEBAR === 'open';
+ if (await window.webContents.executeJavaScript("document.querySelector('.cw-workspace').dataset.desktopSidebar === 'open'") !== result.sidebarFinallyOpen) {
+ await window.webContents.executeJavaScript("document.querySelector('.od-caption-actions button').click()");
+ }
+ await waitFor(() => window.webContents.executeJavaScript(`localStorage.getItem('opendirector.desktop.sidebar.v1') === '${result.sidebarFinallyOpen ? 'open' : 'closed'}'`), 'Sidebar preference was not saved');
+ await window.webContents.executeJavaScript('window.opendirectorDesktop.setExporting(true)');
+ await delay(50);
+ window.close();
+ if (window.isVisible() || !(await host.inspect())) throw new Error('Closing a window stopped the Host');
+ return result;
+}
+
+async function dropMedia(window) {
+ const { webContents } = window;
+ const { x, y } = await webContents.executeJavaScript(`(() => {
+ const bounds = document.querySelector('.react-flow').getBoundingClientRect();
+ return { x: Math.round(bounds.left + bounds.width / 2), y: Math.round(bounds.top + bounds.height / 2) };
+ })()`);
+ const files = ['mp4', 'wav', 'png'].map(extension =>
+ join(process.env.OPENDIRECTOR_DESKTOP_DATA, `desktop-drop.${extension}`));
+ const data = { items: [], files, dragOperationsMask: 1 };
+ const debuggerSession = webContents.debugger;
+ debuggerSession.attach();
+ try {
+ for (const type of ['dragEnter', 'dragOver', 'drop']) {
+ await debuggerSession.sendCommand('Input.dispatchDragEvent', { type, x, y, data });
+ }
+ } finally {
+ debuggerSession.detach();
+ }
+}
+
+async function droppedMediaState(window, projectId, fingerprints) {
+ return window.webContents.executeJavaScript(`(async () => {
+ const response = await fetch('/api/creation/projects/' + ${JSON.stringify(projectId)}, {
+ headers: { 'X-OpenDirector-Request': '1' },
+ });
+ if (!response.ok) return { status: response.status };
+ const { canvasItems, assets } = await response.json();
+ const saved = Object.entries(${JSON.stringify(fingerprints)}).every(([kind, fingerprint]) =>
+ canvasItems.some(item => item.kind === kind && item.binding.role === 'material' &&
+ assets.some(asset => asset.id === item.binding.objectRef.assetId && asset.kind === kind &&
+ asset.provenance.source === 'upload' && asset.fingerprint === fingerprint)));
+ return { saved, nodes: canvasItems.map(item => item.kind), assets: assets.map(asset => asset.name),
+ notice: document.querySelector('.cw-toast [role="status"]')?.textContent };
+ })()`);
+}
+
+async function checkWindowsCaption(window) {
+ if (window.isMenuBarVisible()) throw new Error('Windows application menu is visible');
+ let bounds;
+ try {
+ await waitFor(async () => {
+ bounds = await window.webContents.executeJavaScript(`(() => {
+ const overlay = navigator.windowControlsOverlay;
+ const actions = document.querySelector('.cw-top-actions');
+ return {
+ visible: overlay?.visible,
+ titlebarRight: overlay?.getTitlebarAreaRect().right,
+ toolbarRight: actions?.getBoundingClientRect().right,
+ };
+ })()`);
+ return bounds.visible && bounds.toolbarRight <= bounds.titlebarRight;
+ }, 'Window controls overlap the workspace toolbar');
+ } catch (error) {
+ throw new Error(`${error.message}: ${JSON.stringify(bounds)}`, { cause: error });
+ }
+}
+
+async function smokeTraceWindows(window, projectId) {
+ const evaluate = code => window.webContents.executeJavaScript(code);
+ const projectPath = await evaluate(`fetch('/api/creation/projects', {headers: {'X-OpenDirector-Request': '1'}})
+ .then(response => response.json()).then(({projects}) => projects.find(project => project.id === '${projectId}').path)`);
+ const folder = join(projectPath, 'agent-runs');
+ mkdirSync(folder, { recursive: true });
+ await evaluate("document.querySelector('.cw-chat-button').click()");
+ const editor = ".cw-assistant-composer [contenteditable=true]";
+ await waitFor(() => evaluate(`!!document.querySelector(${JSON.stringify(editor)})`), 'Assistant composer did not open');
+ await evaluate(`document.querySelector(${JSON.stringify(editor)}).focus()`);
+ await window.webContents.insertText('Draft before opening trace');
+ const draft = () => evaluate(`document.querySelector(${JSON.stringify(editor)})?.textContent`);
+ await waitFor(async () => (await draft())?.includes('Draft before opening trace'), 'Assistant draft input was not accepted');
+
+ for (const live of [false, true]) {
+ const turn = live ? '00000000-0000-4000-8000-000000000002' : '00000000-0000-4000-8000-000000000001';
+ const file = join(folder, `${turn}.opencode.jsonl`);
+ const event = text => JSON.stringify({ type: 'model.reasoning', text }) + '\n';
+ const first = live ? 'Live trace begins' : 'Historical trace';
+ writeFileSync(file, event(first));
+ const query = new URLSearchParams({ traceProject: projectId, turn, runtime: 'opencode', ...(live ? { live: '1' } : {}) });
+ await evaluate(`window.open('/?${query}', '_blank', 'noopener,noreferrer'); undefined`);
+ const child = await waitFor(() => BrowserWindow.getAllWindows().find(item =>
+ item.getParentWindow() === window && item.webContents.getURL().includes(turn)), 'Desktop trace did not open in its own window');
+ const contains = text => child.webContents.executeJavaScript(
+ `document.querySelector('.cw-trace-page')?.innerText.includes(${JSON.stringify(text)})`);
+ await waitFor(() => contains(first), 'Trace window did not read the stored trace');
+ appendFileSync(file, event('Trace file updated'));
+ if (live) await waitFor(() => contains('Trace file updated'), 'Live trace did not refresh');
+ else if (await contains('Trace file updated')) throw new Error('Historical trace unexpectedly refreshed');
+ child.close();
+ await waitFor(() => child.isDestroyed(), 'Trace window did not close');
+ if (!(await draft())?.includes('Draft before opening trace')) throw new Error('Closing the trace lost the assistant draft');
+ }
+ window.focus();
+ await evaluate(`document.querySelector(${JSON.stringify(editor)}).focus()`);
+ await window.webContents.insertText(' and continued afterward');
+ await waitFor(async () => (await draft())?.includes('continued afterward'), 'Assistant composer stopped accepting input');
+ await evaluate("document.querySelector('.cw-chat-button').click()");
+}
+
+async function waitFor(check, message, attempts = 150) {
+ for (let attempt = 0; attempt < attempts; attempt++) {
+ const value = await check();
+ if (value) return value;
+ await delay(100);
+ }
+ throw new Error(message);
+}
diff --git a/apps/desktop/scripts/smoke.mjs b/apps/desktop/scripts/smoke.mjs
new file mode 100644
index 000000000..721591b83
--- /dev/null
+++ b/apps/desktop/scripts/smoke.mjs
@@ -0,0 +1,53 @@
+import { copyFile, mkdtemp, readFile, realpath, rm } from 'node:fs/promises';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { spawn } from 'node:child_process';
+
+const binary = process.argv[2];
+if (!binary) throw new Error('Usage: node scripts/smoke.mjs /path/to/packaged/OpenDirector');
+const directory = await realpath(await mkdtemp(join(tmpdir(), 'opendirector-desktop-')));
+let logOffset = 0;
+let previous;
+let mediaProject;
+let sidebarOpen = false;
+try {
+ const fixtures = [
+ ['desktop-drop.mp4', '../../../tests/fixtures/timeline-text/visual-a.mp4'],
+ ['desktop-drop.wav', '../../../tests/fixtures/timeline-text/audio-a.wav'],
+ ['desktop-drop.png', '../../../src/assets/open_director_logo.png'],
+ ];
+ for (const [name, source] of fixtures) {
+ await copyFile(fileURLToPath(new URL(source, import.meta.url)), join(directory, name));
+ }
+ for (let attempt = 0; attempt < 3; attempt++) {
+ const child = spawn(binary, ['--smoke'], {
+ env: {
+ ...process.env,
+ OPENDIRECTOR_DESKTOP_DATA: directory,
+ OPENDIRECTOR_DESKTOP_SMOKE_MEDIA_PROJECT: mediaProject ?? '',
+ OPENDIRECTOR_DESKTOP_SMOKE_DELETE: attempt === 2 ? '1' : '',
+ OPENDIRECTOR_DESKTOP_SMOKE_SIDEBAR: attempt === 0 ? 'open' : 'closed',
+ },
+ stdio: 'inherit',
+ });
+ const timeout = setTimeout(() => child.kill('SIGKILL'), 90_000);
+ const result = await new Promise((resolve, reject) => {
+ child.once('error', reject);
+ child.once('close', resolve);
+ }).finally(() => clearTimeout(timeout));
+ const log = await readFile(join(directory, 'logs/desktop.log'), 'utf8');
+ const latest = log.slice(logOffset).split('\n').findLast(line => line.startsWith('smoke {'));
+ logOffset = log.length;
+ if (result !== 0 || !latest) throw new Error(`Packaged desktop smoke failed on launch ${attempt + 1} (${result}):\n${log}`);
+ const receipt = JSON.parse(latest.slice(6));
+ if (!receipt.mediaDrop || (mediaProject && receipt.mediaDrop !== mediaProject)) throw new Error('Desktop media drop was not verified');
+ mediaProject = receipt.mediaDrop;
+ if (receipt.sidebarInitiallyOpen !== sidebarOpen) throw new Error('Sidebar default or restored state is incorrect');
+ sidebarOpen = receipt.sidebarFinallyOpen;
+ const current = receipt.projectIds;
+ if (previous && JSON.stringify(previous) !== JSON.stringify(current)) throw new Error('Reopening changed the project identities');
+ previous = current;
+ }
+ process.stdout.write('Packaged canvas, media drag-and-drop, authenticated API, isolation, both locales, hidden-window Host, reopen and sidebar preferences: passed\n');
+} finally { await rm(directory, { recursive: true, force: true, maxRetries: 10, retryDelay: 100 }); }
diff --git a/apps/desktop/src/command.mjs b/apps/desktop/src/command.mjs
new file mode 100644
index 000000000..b086c756b
--- /dev/null
+++ b/apps/desktop/src/command.mjs
@@ -0,0 +1,23 @@
+import { readFile, readlink, mkdir, symlink, writeFile } from 'node:fs/promises';
+import { dirname, join } from 'node:path';
+
+export async function registerCommand({ destination, launcher }) {
+ await mkdir(dirname(destination), { recursive: true });
+ const windows = process.platform === 'win32';
+ const script = `@"${launcher}" %*\r\n`;
+ try {
+ if (windows) await writeFile(destination, script, { flag: 'wx' });
+ else await symlink(launcher, destination);
+ return 'installed';
+ } catch (error) {
+ if (error.code !== 'EEXIST') throw error;
+ }
+
+ const matches = windows
+ ? await readFile(destination, 'utf8').then(value => value === script, () => false)
+ : await readlink(destination).then(value => value === launcher, () => false);
+ if (matches) return 'already_installed';
+ throw new Error('command_collision');
+}
+
+export const commandPath = home => join(home, '.local', 'bin', process.platform === 'win32' ? 'opendirector.cmd' : 'opendirector');
diff --git a/apps/desktop/src/host.mjs b/apps/desktop/src/host.mjs
new file mode 100644
index 000000000..555a96e06
--- /dev/null
+++ b/apps/desktop/src/host.mjs
@@ -0,0 +1,130 @@
+import { spawn } from 'node:child_process';
+import { randomBytes } from 'node:crypto';
+import { createInterface } from 'node:readline';
+import { z } from 'zod';
+
+export const eventSchema = z.discriminatedUnion('type', [
+ z.object({ type: z.literal('starting'), version: z.literal(1) }),
+ z.object({ type: z.literal('ready'), version: z.literal(1), url: z.url().refine(value => {
+ const url = new URL(value);
+ return url.protocol === 'http:' && url.hostname === '127.0.0.1' && url.port !== '' &&
+ url.pathname === '/' && !url.username && !url.password && !url.search && !url.hash;
+ }), runtime: z.record(z.string(), z.string()) }),
+ z.object({ type: z.literal('fatal'), version: z.literal(1), message: z.string() }),
+ z.object({ type: z.literal('inspection'), requestId: z.number().int().positive(),
+ agents: z.number().int().nonnegative(), generations: z.number().int().nonnegative(), tools: z.number().int().nonnegative() }),
+ z.object({ type: z.literal('shutdown-complete') }),
+]);
+
+export class Host {
+ token = randomBytes(32).toString('hex');
+ url;
+ pending = new Map();
+ nextId = 0;
+ stopping = false;
+ shutdownComplete = false;
+
+ constructor({ python, env, directory, log, onExit }) {
+ this.child = spawn(python, ['-I', '-B', '-m', 'opendirector_api.desktop'], {
+ cwd: directory, env, stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true,
+ });
+ this.child.stderr.pipe(log, { end: false });
+ this.closed = new Promise(resolve => this.child.once('close', resolve));
+ this.ready = new Promise((resolve, reject) => {
+ const deadline = setTimeout(() => reject(new Error('Host startup timed out')), 60_000);
+ const input = createInterface({ input: this.child.stdout });
+ input.on('line', line => {
+ try {
+ if (line.length > 65536) throw new Error('Host message exceeds the control limit');
+ const event = eventSchema.parse(JSON.parse(line));
+ if (event.type === 'ready') {
+ this.url = event.url;
+ clearTimeout(deadline);
+ resolve(event);
+ } else if (event.type === 'fatal') {
+ clearTimeout(deadline);
+ reject(new Error(event.message));
+ } else if (event.type === 'shutdown-complete') {
+ this.shutdownComplete = true;
+ } else if (event.type === 'inspection') {
+ this.pending.get(event.requestId)?.(event);
+ this.pending.delete(event.requestId);
+ }
+ } catch (error) {
+ clearTimeout(deadline);
+ reject(error);
+ this.child.kill();
+ }
+ });
+ this.child.once('error', error => { clearTimeout(deadline); reject(error); });
+ this.child.once('close', code => {
+ clearTimeout(deadline);
+ reject(new Error(`Host exited (${code})`));
+ for (const resolve of this.pending.values()) resolve(null);
+ this.pending.clear();
+ if (this.url && !this.stopping) onExit(code);
+ });
+ });
+ this.child.stdin.on('error', () => {}); // Exit is reported by the child close event.
+ this.child.stdin.write(JSON.stringify({ type: 'initialize', version: 1, token: this.token }) + '\n');
+ }
+
+ registerSession(sessionId) {
+ this.child.stdin.write(JSON.stringify({ type: 'session', sessionId }) + '\n');
+ }
+
+ async inspect() {
+ if (!this.url || this.child.exitCode !== null) return null;
+ const requestId = ++this.nextId;
+ return new Promise(resolve => {
+ const timeout = setTimeout(() => { this.pending.delete(requestId); resolve(null); }, 2000);
+ this.pending.set(requestId, event => { clearTimeout(timeout); resolve(event); });
+ this.child.stdin.write(JSON.stringify({ type: 'inspect', requestId }) + '\n');
+ });
+ }
+
+ async stop() {
+ this.stopping = true;
+ if (this.child.exitCode !== null) return;
+ this.child.stdin.end(JSON.stringify({ type: 'shutdown', requestId: ++this.nextId }) + '\n');
+ const timeout = setTimeout(() => this.child.kill('SIGKILL'), 20_000);
+ try {
+ const code = await this.closed;
+ return code === 0 && this.shutdownComplete;
+ } finally { clearTimeout(timeout); }
+ }
+}
+
+export function ownedURL(value) {
+ const url = new URL(value);
+ return url.protocol === 'opendirector:' && url.hostname === 'app' && !url.port && !url.username && !url.password;
+}
+
+export async function proxyRequest(request, host, fetcher) {
+ if (!ownedURL(request.url) || !host.url) return new Response(null, { status: 403 });
+ const incoming = new URL(request.url);
+ const target = new URL(incoming.pathname + incoming.search, host.url);
+ if (target.origin !== new URL(host.url).origin) return new Response(null, { status: 403 });
+ const headers = new Headers(request.headers);
+ for (const name of ['host', 'origin', 'cookie', 'authorization', 'connection', 'content-length', 'x-opendirector-desktop']) headers.delete(name);
+ headers.set('X-OpenDirector-Desktop', host.token);
+ const upload = request.method === 'PUT' && /^\/api\/creation\/projects\/[^/]+\/uploads\/[^/]+$/.test(incoming.pathname);
+ const options = {
+ method: request.method, headers, redirect: 'manual', credentials: 'omit', signal: request.signal,
+ };
+ if (request.body) {
+ if (upload) {
+ options.body = request.body;
+ options.duplex = 'half';
+ } else {
+ options.body = await request.arrayBuffer();
+ }
+ }
+ const response = await fetcher(target.href, options);
+ if (response.status >= 300 && response.status < 400 && response.status !== 304) return new Response(null, { status: 502 });
+ const outgoing = new Headers(response.headers);
+ for (const name of ['connection', 'transfer-encoding', 'keep-alive', 'set-cookie', 'content-encoding', 'content-length']) outgoing.delete(name);
+ outgoing.set('Cache-Control', 'no-store');
+ outgoing.set('Content-Security-Policy', "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; media-src 'self' blob: data:; font-src 'self' data:; connect-src 'self'; worker-src 'self' blob:; object-src 'none'; base-uri 'none'; frame-src 'none'");
+ return new Response(response.body, { status: response.status, statusText: response.statusText, headers: outgoing });
+}
diff --git a/apps/desktop/src/locale.mjs b/apps/desktop/src/locale.mjs
new file mode 100644
index 000000000..c68b12b00
--- /dev/null
+++ b/apps/desktop/src/locale.mjs
@@ -0,0 +1,27 @@
+export const messages = {
+ 'en-US': {
+ app: 'OpenDirector', startup: 'OpenDirector could not start', retry: 'Retry', quit: 'Quit', cancel: 'Cancel',
+ interrupted: 'The local service stopped. Restart OpenDirector to reconnect. Existing remote jobs are not automatically cancelled.',
+ running: 'Agent, generation or export work is active, or its status could not be checked. Quitting interrupts local work. Remote jobs may continue and incur charges. Quit now?',
+ edit: 'Edit', view: 'View', undo: 'Undo', redo: 'Redo', cut: 'Cut', copy: 'Copy', paste: 'Paste', selectAll: 'Select all', fullscreen: 'Toggle fullscreen', devtools: 'Developer tools',
+ menu: 'File', logs: 'Open diagnostics folder', data: 'Open data folder', command: 'Manage terminal command',
+ install: 'Install', remove: 'Removal instructions', commandDone: 'Terminal command installed. Open a new terminal to use it.',
+ commandAlreadyInstalled: 'The terminal command is already installed.',
+ commandRemoveHelp: 'To uninstall the command, inspect the entry at this path and remove it manually if it belongs to OpenDirector.',
+ collision: 'This path is already in use. To repair a previous OpenDirector installation, inspect and manually remove its old entry before installing again.',
+ failed: 'Operation failed', close: 'Close', save: 'Save file',
+ },
+ 'zh-CN': {
+ app: 'OpenDirector', startup: 'OpenDirector 无法启动', retry: '重试', quit: '退出', cancel: '取消',
+ interrupted: '本地服务已停止,请重启 OpenDirector 重新连接。已有远端任务不会自动取消。',
+ running: 'Agent、生成或导出任务仍在运行,或无法确认任务状态。退出会中断本地工作;远端任务可能继续运行并产生费用。是否退出?',
+ edit: '编辑', view: '视图', undo: '撤销', redo: '重做', cut: '剪切', copy: '复制', paste: '粘贴', selectAll: '全选', fullscreen: '切换全屏', devtools: '开发者工具',
+ menu: '文件', logs: '打开诊断目录', data: '打开数据目录', command: '管理终端命令',
+ install: '安装', remove: '移除说明', commandDone: '终端命令已安装,请打开新终端使用。',
+ commandAlreadyInstalled: '终端命令已安装。',
+ commandRemoveHelp: '如需卸载终端命令,请检查此路径下的入口,确认它属于 OpenDirector 后手动移除。',
+ collision: '此路径已被占用。如需修复旧版 OpenDirector 的终端命令,请检查并手动移除旧入口,再重新安装。',
+ failed: '操作失败', close: '关闭', save: '保存文件',
+ },
+};
+export const localeFor = value => value?.startsWith('zh') ? 'zh-CN' : 'en-US';
diff --git a/apps/desktop/src/main.mjs b/apps/desktop/src/main.mjs
new file mode 100644
index 000000000..ea1517171
--- /dev/null
+++ b/apps/desktop/src/main.mjs
@@ -0,0 +1,256 @@
+import { z } from 'zod';
+import { app, BrowserWindow, dialog, ipcMain, Menu, net, protocol, session, shell, nativeTheme } from 'electron';
+import { createWriteStream, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import { join, dirname } from 'node:path';
+import { fileURLToPath } from 'node:url';
+import { homedir } from 'node:os';
+import { Host, ownedURL, proxyRequest } from './host.mjs';
+import { messages, localeFor } from './locale.mjs';
+import { registerCommand, commandPath } from './command.mjs';
+
+app.setName('OpenDirector');
+const desktopChrome = ['darwin', 'win32'].includes(process.platform);
+const captionHeight = 48;
+const here = dirname(fileURLToPath(import.meta.url));
+const runtime = app.isPackaged ? join(process.resourcesPath, 'runtime') : join(here, '..', 'runtime');
+const isolated = process.env.OPENDIRECTOR_DESKTOP_DATA;
+if (isolated) app.setPath('userData', isolated);
+protocol.registerSchemesAsPrivileged([{ scheme: 'opendirector', privileges: {
+ standard: true, secure: true, supportFetchAPI: true, stream: true, corsEnabled: true,
+} }]);
+let host;
+let window;
+let exporting = false;
+let quitting = false;
+let quitPending = false;
+let locale = localeFor(app.getLocale());
+const text = () => messages[locale];
+const userData = app.getPath('userData');
+const logs = join(userData, 'logs');
+const workspace = join(userData, 'workspace');
+mkdirSync(logs, { recursive: true });
+mkdirSync(workspace, { recursive: true });
+const logFile = join(logs, 'desktop.log');
+const log = createWriteStream(logFile, { flags: 'a', mode: 0o600 });
+try { locale = localeFor(readFileSync(join(userData, 'locale'), 'utf8')); }
+catch (error) { if (error.code !== 'ENOENT') log.write(`Locale read failed: ${error.message}\n`); }
+
+if (!app.requestSingleInstanceLock()) app.quit();
+else {
+ app.on('second-instance', () => { window?.show(); window?.focus(); });
+ app.whenReady().then(start).catch(fatal);
+}
+
+function trusted(event) {
+ return event.sender === window?.webContents && event.senderFrame === window.webContents.mainFrame && ownedURL(event.senderFrame.url);
+}
+ipcMain.on('desktop:locale', (event, value) => {
+ if (!trusted(event) || !['en-US', 'zh-CN'].includes(value)) return;
+ locale = value;
+ writeFileSync(join(userData, 'locale'), value, { mode: 0o600 });
+ menu();
+});
+ipcMain.on('desktop:theme', (event, value) => {
+ if (trusted(event) && ['light', 'dark'].includes(value)) { nativeTheme.themeSource = value;
+ if (process.platform === 'win32') window.setTitleBarOverlay(windowsCaption());
+ applyBackdrop(); }
+});
+ipcMain.on('desktop:session', (event, value) => {
+ const parsed = z.uuid().safeParse(value);
+ if (trusted(event) && parsed.success) host.registerSession(parsed.data);
+});
+ipcMain.on('desktop:exporting', (event, value) => {
+ if (trusted(event) && typeof value === 'boolean') exporting = value;
+});
+
+function desktopActions() {
+ return [
+ { label: text().command, click: manageCommand },
+ { label: text().data, click: () => shell.openPath(workspace) },
+ { label: text().logs, click: () => shell.openPath(logs) },
+ ];
+}
+
+ipcMain.on('desktop:more', event => {
+ if (trusted(event) && desktopChrome) Menu.buildFromTemplate(desktopActions()).popup({ window });
+});
+
+function windowsCaption() {
+ const dark = nativeTheme.shouldUseDarkColors;
+ return { height: captionHeight, color: dark ? '#141414' : '#f7f8fa', symbolColor: dark ? '#eceef2' : '#30343c' };
+}
+
+function menu() {
+ const editing = ['undo', 'redo', 'cut', 'copy', 'paste', 'selectAll'].map(role => ({ role, label: text()[role] }));
+ const view = [
+ { role: 'togglefullscreen', label: text().fullscreen },
+ { role: 'toggleDevTools', label: text().devtools },
+ ];
+ const quit = { label: text().quit, accelerator: 'CmdOrCtrl+Q', click: () => app.quit() };
+ const shortcuts = [...editing, ...view, quit].map(item => ({ ...item, visible: false, acceleratorWorksWhenHidden: true }));
+ if (process.platform === 'win32') {
+ Menu.setApplicationMenu(Menu.buildFromTemplate(shortcuts));
+ return;
+ }
+ const about = { role: 'about', label: text().app };
+ Menu.setApplicationMenu(Menu.buildFromTemplate(process.platform === 'darwin' ? [
+ { label: text().app, submenu: [about, quit, ...shortcuts.slice(0, -1)] },
+ ] : [
+ { label: text().app, submenu: [about, ...desktopActions(), quit] },
+ { label: text().edit, submenu: editing },
+ { label: text().view, submenu: view },
+ ]));
+}
+
+async function manageCommand() {
+ const destination = commandPath(homedir());
+ const { response } = await dialog.showMessageBox(window, { message: text().command, detail: destination,
+ buttons: [text().install, text().remove, text().cancel], cancelId: 2 });
+ if (response === 2) return;
+ if (response === 1) {
+ await dialog.showMessageBox(window, { message: text().commandRemoveHelp, detail: destination });
+ return;
+ }
+ try {
+ const launcher = join(runtime, 'bin', process.platform === 'win32' ? 'opendirector.cmd' : 'opendirector');
+ const result = await registerCommand({ destination, launcher });
+ await dialog.showMessageBox(window, { message: text()[result === 'installed' ? 'commandDone' : 'commandAlreadyInstalled'], detail: destination });
+ } catch (error) {
+ await dialog.showMessageBox(window, { type: 'error', message: text().failed,
+ detail: error.message === 'command_collision' ? [text().collision, destination].join('\n') : error.message });
+ }
+}
+
+async function start() {
+ menu();
+ const manifest = JSON.parse(readFileSync(join(runtime, 'manifest.json'), 'utf8'));
+ if (typeof manifest.python !== 'string' || manifest.python.startsWith('/') || manifest.python.split(/[\\/]/).includes('..')) throw new Error('Invalid runtime Python path');
+ if (manifest.version !== 1 || manifest.platform !== process.platform || manifest.arch !== process.arch) throw new Error('Runtime platform does not match this application');
+ host = new Host({ python: join(runtime, manifest.python), directory: workspace, log,
+ env: { ...process.env, OPENDIRECTOR_ROOT: workspace,
+ PATH: join(runtime, 'bin') + (process.platform === 'win32' ? ';' : ':') + process.env.PATH },
+ onExit: () => { if (!quitting) void fatal(new Error(text().interrupted)); },
+ });
+ await host.ready;
+ const ownedSession = session.fromPartition('persist:opendirector');
+ ownedSession.setPermissionRequestHandler((_contents, _permission, callback) => callback(false));
+ let projectSubscription;
+ ownedSession.protocol.handle('opendirector', request => proxyRequest(request, host, async (url, options) => {
+ const pathname = new URL(url).pathname;
+ if (options.method === 'GET' && /^\/api\/creation\/projects\/[^/]+\/subscribe$/.test(pathname)) {
+ // Chromium can leave the upstream stream open after the renderer switches projects.
+ projectSubscription?.abort();
+ projectSubscription = new AbortController();
+ options.signal = AbortSignal.any([options.signal, projectSubscription.signal]);
+ }
+ // Electron net.fetch buffers request streams internally. The private Host
+ // upload uses Node fetch to send the body incrementally over loopback.
+ const response = await (options.duplex ? fetch(url, options) : net.fetch(url, options));
+ if (response.status >= 400) log.write(`Host request ${options.method} ${new URL(url).pathname}: ${response.status}\n`);
+ return response;
+ }));
+ ownedSession.on('will-download', (_event, item) => item.setSaveDialogOptions({ title: text().save }));
+ window = new BrowserWindow({ width: 1440, height: 960, minWidth: 800, minHeight: 600, show: false, title: 'OpenDirector',
+ ...(process.platform === 'darwin' ? { titleBarStyle: 'hiddenInset', trafficLightPosition: { x: 18, y: 18 },
+ vibrancy: 'sidebar', visualEffectState: 'active', backgroundColor: '#00000000' } : {}),
+ ...(process.platform === 'win32' ? { titleBarStyle: 'hidden', titleBarOverlay: windowsCaption() } : {}),
+ webPreferences: { session: ownedSession, preload: join(here, 'preload.cjs'), nodeIntegration: false,
+ contextIsolation: true, sandbox: true, webSecurity: true },
+ });
+ if (process.platform === 'win32') window.setMenuBarVisibility(false);
+ if (desktopChrome) {
+ const fullscreen = value => window.webContents.send('desktop:fullscreen', value);
+ window.on('enter-full-screen', () => fullscreen(true));
+ window.on('leave-full-screen', () => fullscreen(false));
+ window.webContents.on('did-finish-load', () => fullscreen(window.isFullScreen()));
+ if (process.platform === 'darwin') {
+ for (const event of ['minimize', 'hide', 'restore', 'show']) window.on(event, applyBackdrop);
+ }
+ }
+ const traceURL = url => {
+ const target = new URL(url);
+ return ownedURL(url) && target.pathname === '/' && target.searchParams.has('traceProject');
+ };
+ window.webContents.setWindowOpenHandler(({ url }) => {
+ if (traceURL(url)) {
+ const trace = new BrowserWindow({
+ parent: window, width: 1100, height: 760,
+ webPreferences: { session: ownedSession, nodeIntegration: false,
+ contextIsolation: true, sandbox: true, webSecurity: true },
+ });
+ if (process.platform !== 'darwin') trace.removeMenu();
+ trace.webContents.setWindowOpenHandler(() => ({ action: 'deny' }));
+ trace.webContents.on('will-navigate', (event, target) => {
+ if (!traceURL(target)) event.preventDefault();
+ });
+ void trace.loadURL(url).catch(error => {
+ log.write(`Trace window failed: ${error.message}\n`);
+ if (!trace.isDestroyed()) trace.destroy();
+ });
+ } else if (new URL(url).protocol === 'https:') {
+ void shell.openExternal(url);
+ }
+ return { action: 'deny' };
+ });
+ window.webContents.on('will-navigate', (event, url) => { if (!ownedURL(url)) event.preventDefault(); });
+ window.webContents.on('render-process-gone', () => { exporting = false; });
+ window.on('close', event => { if (!quitting) { event.preventDefault(); window.hide(); } });
+ app.on('activate', () => { window?.show(); window?.focus(); });
+ await window.loadURL('opendirector://app/');
+ window.show();
+ if (process.argv.includes('--smoke')) {
+ try {
+ const { smokeWindow } = await import('../scripts/smoke-window.mjs');
+ const result = await smokeWindow({ window, host, getLocale: () => locale });
+ quitting = true;
+ window.destroy();
+ if (!(await host.stop())) throw new Error('Host exited without confirming session cleanup');
+ log.write(`smoke ${JSON.stringify(result)}\n`);
+ app.exit(0);
+ } catch (error) { log.write(`smoke failed ${error.stack ?? error.message}\n`); quitting = true; window?.destroy(); await host.stop(); app.exit(1); }
+ }
+}
+
+function applyBackdrop() {
+ if (process.platform !== 'darwin' || !window || window.isDestroyed()) return;
+ if (window.isMinimized() || !window.isVisible()) {
+ window.setVibrancy(null);
+ window.setBackgroundColor(nativeTheme.shouldUseDarkColors ? '#202022' : '#eeeef1');
+ } else {
+ window.setVibrancy('sidebar');
+ window.setBackgroundColor('#00000000');
+ }
+}
+
+async function fatal(error) {
+ log.write(`Host failure: ${error.message}\n`);
+ await host?.stop();
+ if (process.argv.includes('--smoke')) { app.exit(1); return; }
+ await dialog.showMessageBox({ type: 'error', message: text().startup, detail: `${error.message}\n${logFile}`, buttons: [text().close] });
+ quitting = true;
+ app.quit();
+}
+
+// Keep Electron alive until the explicit quit path finishes stopping the Host.
+app.on('window-all-closed', () => {});
+
+app.on('before-quit', event => {
+ if (quitting) return;
+ event.preventDefault();
+ if (quitPending) return;
+ quitPending = true;
+ void (async () => {
+ try {
+ const state = await host?.inspect();
+ if (exporting || state === null || state && (state.agents || state.generations || state.tools)) {
+ const { response } = await dialog.showMessageBox({ type: 'warning', message: text().running,
+ buttons: [text().cancel, text().quit], defaultId: 0, cancelId: 0 });
+ if (response !== 1) return;
+ }
+ quitting = true;
+ window?.destroy();
+ await host?.stop();
+ app.quit();
+ } finally { quitPending = false; }
+ })();
+});
diff --git a/apps/desktop/src/preload.cjs b/apps/desktop/src/preload.cjs
new file mode 100644
index 000000000..5bc5597e7
--- /dev/null
+++ b/apps/desktop/src/preload.cjs
@@ -0,0 +1,21 @@
+const { contextBridge, ipcRenderer } = require('electron');
+contextBridge.exposeInMainWorld('opendirectorDesktop', {
+ registerSession: id => ipcRenderer.send('desktop:session', id),
+ setLocale: locale => ipcRenderer.send('desktop:locale', locale),
+ ...(['darwin', 'win32'].includes(process.platform) ? { showMore: () => ipcRenderer.send('desktop:more') } : {}),
+ setExporting: active => ipcRenderer.send('desktop:exporting', active),
+});
+
+function markDesktop() {
+ document.documentElement.dataset.desktopPlatform = process.platform;
+ if (['darwin', 'win32'].includes(process.platform)) document.documentElement.dataset.desktopChrome = '';
+ const theme = () => ipcRenderer.send('desktop:theme', document.documentElement.dataset.theme === 'light' ? 'light' : 'dark');
+ theme();
+ new MutationObserver(theme).observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
+}
+if (document.documentElement) markDesktop();
+else window.addEventListener('DOMContentLoaded', markDesktop, { once: true });
+ipcRenderer.on('desktop:fullscreen', (_event, fullscreen) => {
+ if (fullscreen) document.documentElement.dataset.desktopFullscreen = 'true';
+ else delete document.documentElement.dataset.desktopFullscreen;
+});
diff --git a/apps/desktop/tests/host.test.mjs b/apps/desktop/tests/host.test.mjs
new file mode 100644
index 000000000..9e9590700
--- /dev/null
+++ b/apps/desktop/tests/host.test.mjs
@@ -0,0 +1,118 @@
+import { test } from 'node:test';
+import assert from 'node:assert/strict';
+import { eventSchema, proxyRequest } from '../src/host.mjs';
+import { messages } from '../src/locale.mjs';
+import { registerCommand } from '../src/command.mjs';
+import { mkdtemp, readlink, rm, writeFile, readFile } from 'node:fs/promises';
+import { tmpdir } from 'node:os';
+import { join } from 'node:path';
+
+test('Host readiness rejects foreign origins and malformed control messages', () => {
+ const ready = { type: 'ready', version: 1, runtime: {} };
+ for (const url of ['https://evil.test', 'http://localhost:80', 'http://127.0.0.1:42/?token=x', 'http://u:p@127.0.0.1:42']) {
+ assert.equal(eventSchema.safeParse({ ...ready, url }).success, false);
+ }
+ assert.equal(eventSchema.safeParse({ ...ready, url: 'http://127.0.0.1:23456' }).success, true);
+});
+
+test('Proxy authenticates only the owned Host and streams media range responses', async () => {
+ const host = { url: 'http://127.0.0.1:23456', token: 'private-token' };
+ let calls = 0;
+ const fetcher = async (url, options) => {
+ calls += 1;
+ assert.equal(url, host.url + '/api/media');
+ assert.equal(options.headers.get('x-opendirector-desktop'), host.token);
+ assert.equal(options.headers.get('range'), 'bytes=2-4');
+ assert.equal(options.headers.has('cookie'), false);
+ assert.equal(options.redirect, 'manual');
+ return new Response('abc', { status: 206, headers: { 'content-range': 'bytes 2-4/10', 'set-cookie': 'secret=x', 'connection': 'close' } });
+ };
+ const response = await proxyRequest(new Request('opendirector://app/api/media', { headers: { range: 'bytes=2-4', cookie: 'x=y' } }), host, fetcher);
+ assert.equal(response.status, 206);
+ assert.equal(response.headers.get('content-range'), 'bytes 2-4/10');
+ assert.equal(response.headers.has('set-cookie'), false);
+ assert.equal(await response.text(), 'abc');
+ assert.equal((await proxyRequest(new Request('opendirector://other/api/media'), host, fetcher)).status, 403);
+ assert.equal((await proxyRequest(new Request('opendirector://app//other.test/media'), host, fetcher)).status, 403);
+ assert.equal(calls, 1);
+});
+
+test('Native dialogs have matching bilingual keys', () => {
+ assert.deepEqual(Object.keys(messages['en-US']).sort(), Object.keys(messages['zh-CN']).sort());
+});
+
+test('Command registration preserves existing files and supports repeated installation', async () => {
+ const directory = await mkdtemp(join(tmpdir(), 'od-command-'));
+ const destination = join(directory, 'opendirector');
+ const launcher = join(directory, 'launcher');
+ try {
+ await writeFile(destination, 'another installation');
+ await assert.rejects(registerCommand({ destination, launcher }), /command_collision/);
+ assert.equal(await readFile(destination, 'utf8'), 'another installation');
+ await rm(destination);
+ assert.equal(await registerCommand({ destination, launcher }), 'installed');
+ if (process.platform !== 'win32') assert.equal(await readlink(destination), launcher);
+ assert.equal(await registerCommand({ destination, launcher }), 'already_installed');
+ } finally { await rm(directory, { recursive: true, force: true }); }
+});
+
+test('Proxy never follows redirects carrying the desktop credential', async () => {
+ const response = await proxyRequest(new Request('opendirector://app/api/test'),
+ { url: 'http://127.0.0.1:23456', token: 'private' },
+ async () => new Response(null, { status: 302, headers: { location: 'https://other.test' } }));
+ assert.equal(response.status, 502);
+});
+
+test('Concurrent command installs preserve the winning launcher', async () => {
+ const directory = await mkdtemp(join(tmpdir(), 'od-command-race-'));
+ const destination = join(directory, 'opendirector');
+ const launchers = ['first', 'second'].map(name => join(directory, name));
+ try {
+ const results = await Promise.allSettled(launchers.map(launcher =>
+ registerCommand({ destination, launcher })));
+ const winner = results.findIndex(result => result.status === 'fulfilled');
+ assert.notEqual(winner, -1);
+ assert.deepEqual(results[winner], { status: 'fulfilled', value: 'installed' });
+ assert.match(results[1 - winner].reason?.message ?? '', /^command_collision$/);
+ if (process.platform === 'win32') {
+ assert.equal(await readFile(destination, 'utf8'), `@"${launchers[winner]}" %*\r\n`);
+ } else {
+ assert.equal(await readlink(destination), launchers[winner]);
+ }
+ } finally { await rm(directory, { recursive: true, force: true }); }
+});
+
+test('Proxy can forward the first upload chunk before the producer finishes', async () => {
+ let producer;
+ const body = new ReadableStream({ start(controller) { producer = controller; } });
+ const cancellation = new AbortController();
+ const request = new Request('opendirector://app/api/creation/projects/project/uploads/handle', {
+ method: 'PUT', body, duplex: 'half', signal: cancellation.signal,
+ headers: { 'x-asset-name': 'video.mp4' },
+ });
+ producer.enqueue(Uint8Array.of(1, 2, 3));
+
+ let firstChunk;
+ const forwarded = proxyRequest(request, { url: 'http://127.0.0.1:12345', token: 'private' },
+ async (_url, options) => {
+ assert.equal(options.method, 'PUT');
+ assert.equal(options.duplex, 'half');
+ assert.equal(options.headers.get('x-asset-name'), 'video.mp4');
+ const reader = options.body.getReader();
+ firstChunk = await reader.read();
+ assert.equal(options.signal.aborted, false);
+ await new Promise(resolve => options.signal.addEventListener('abort', resolve, { once: true }));
+ await reader.cancel();
+ return new Response(null, { status: 204 });
+ });
+
+ try {
+ // Allow both the proxy and stream reader to advance without closing the source.
+ await new Promise(resolve => setImmediate(resolve));
+ assert.deepEqual(firstChunk, { value: Uint8Array.of(1, 2, 3), done: false });
+ } finally {
+ producer.close();
+ cancellation.abort();
+ await forwarded;
+ }
+});
diff --git a/apps/desktop/tests/packaged-host.test.mjs b/apps/desktop/tests/packaged-host.test.mjs
new file mode 100644
index 000000000..df4a85f14
--- /dev/null
+++ b/apps/desktop/tests/packaged-host.test.mjs
@@ -0,0 +1,59 @@
+import { test } from 'node:test';
+import assert from 'node:assert/strict';
+import { mkdtemp, readFile, rm, open } from 'node:fs/promises';
+import { tmpdir } from 'node:os';
+import { join, resolve } from 'node:path';
+import { randomUUID } from 'node:crypto';
+import { spawnSync } from 'node:child_process';
+import { Host } from '../src/host.mjs';
+
+const runtime = process.env.OPENDIRECTOR_DESKTOP_RUNTIME;
+test('Packaged Python starts privately, inspects work, rejects unauthenticated media and stops on EOF', { skip: !runtime }, async () => {
+ const root = resolve(runtime);
+ const manifest = JSON.parse(await readFile(join(root, 'manifest.json'), 'utf8'));
+ const directory = await mkdtemp(join(tmpdir(), 'od-host-'));
+ const file = await open(join(directory, 'host.log'), 'w');
+ const log = file.createWriteStream({ autoClose: false });
+ let host;
+ try {
+ host = new Host({ python: join(root, manifest.python), directory,
+ env: { ...process.env, OPENDIRECTOR_ROOT: directory, PATH: join(root, 'bin') }, log,
+ onExit: () => {} });
+ const ready = await host.ready;
+ assert.equal(ready.runtime.agent, '1.19.5');
+ for (const path of ['/', '/api/health']) assert.equal((await fetch(host.url + path)).status, 403);
+ const response = await fetch(host.url + '/api/health', { headers: {
+ 'X-OpenDirector-Desktop': host.token, 'X-OpenDirector-Request': '1' } });
+ assert.deepEqual(await response.json(), { status: 'ok' });
+ const ownSession = randomUUID();
+ const otherSession = randomUUID();
+ host.registerSession(ownSession);
+ for (const [session, name] of [[ownSession, 'Owned'], [otherSession, 'Other']]) {
+ const projectId = randomUUID();
+ const headers = { 'X-OpenDirector-Desktop': host.token, 'X-OpenDirector-Request': '1',
+ 'X-OpenDirector-Session': session, 'Content-Type': 'application/json' };
+ const response = await fetch(host.url + `/api/creation/projects/${projectId}/commands`, {
+ method: 'POST', headers, body: JSON.stringify({ commandId: randomUUID(), projectId,
+ type: 'project.create', expectedVersions: [], payload: { name } }),
+ });
+ assert.equal(response.status, 200, await response.text());
+ assert.equal((await fetch(host.url + `/api/creation/projects/${projectId}/open`, { method: 'POST', headers })).status, 200);
+ }
+ const work = await host.inspect();
+ assert.equal(work.agents + work.generations + work.tools, 0);
+ host.stopping = true;
+ host.child.stdin.end();
+ const deadline = setTimeout(() => host.child.kill('SIGKILL'), 20_000);
+ try { assert.equal(await host.closed, 0); } finally { clearTimeout(deadline); }
+ const inspection = spawnSync(join(root, manifest.python), ['-I', '-c', "import sqlite3,sys,json; db=sqlite3.connect(sys.argv[1]); print(json.dumps([r[0] for r in db.execute('SELECT id FROM sessions')]))", join(directory, '.opendirector/catalog.sqlite3')], { encoding: 'utf8' });
+ assert.equal(inspection.status, 0, inspection.stderr);
+ const sessions = JSON.parse(inspection.stdout);
+ assert.equal(sessions.includes(ownSession), false);
+ assert.equal(sessions.includes(otherSession), true);
+ } finally {
+ await host?.stop();
+ log.end();
+ await file.close();
+ await rm(directory, { force: true, recursive: true });
+ }
+});
diff --git a/build_backend.py b/build_backend.py
index 3120b042a..cec3032e6 100644
--- a/build_backend.py
+++ b/build_backend.py
@@ -1,5 +1,6 @@
"""PEP 517/660 backend: build web and native resources for both pip install modes."""
import os
+import platform
import json
from pathlib import Path
import shutil
@@ -25,7 +26,11 @@ def prepare_resources():
shutil.copytree(ROOT / 'packages/agent/skills', bundled / 'skills')
npm_package = ROOT / 'node_modules/opencode-ai'
metadata = json.loads((npm_package / 'package.json').read_text())
- executable = npm_package / metadata['bin']['opencode']
+ if os.name == 'nt':
+ arch = {'AMD64': 'x64', 'ARM64': 'arm64'}[platform.machine().upper()]
+ executable = npm_package.parent / f'opencode-windows-{arch}' / 'bin/opencode.exe'
+ else:
+ executable = npm_package / metadata['bin']['opencode']
subprocess.run([str(executable), '--version'], check=True, cwd=ROOT)
(bundled / 'bin').mkdir()
shutil.copy2(executable.resolve(), bundled / 'bin' / ('opencode.exe' if os.name == 'nt' else 'opencode'))
diff --git a/docs/README.md b/docs/README.md
index 316cad377..310bb3cd3 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -9,6 +9,7 @@ This directory is the entry point for the repository's shared documentation. The
| [Development guidance](../AGENTS.md) | Product direction and enduring principles | Architecture principles or product boundaries change |
| [Contributing](../CONTRIBUTING.md) | Label taxonomy, how to pick labels, and what a PR must satisfy | Process, labels, or submission requirements change |
| [Unified project architecture](architecture/unified-project.md) | Business objects, shared entry points, and interaction rules | Object responsibilities, commands, persistence, or interaction rules change |
+| [Desktop architecture](architecture/desktop.md) ([中文](architecture/desktop.zh-CN.md)) | Electron, the Python Host, project storage, and shutdown behavior | Process, request, storage, or lifecycle boundaries change |
| [Test contracts](architecture/test-contracts.md) | Test/production boundaries, how to avoid stale assertions and environment-dependent red runs | Test infrastructure, capability gates, or contract ownership change |
| [Capability mapping contract](architecture/capability-contract.md) | Evidenced upstream vocabulary, the `(operation, profile) → capability` table, the untranslatable declarations, and how it feeds discovery | Upstream vocabulary, capability ids, or discovery matching change |
| [Roadmap](development/roadmap.md) | Capability dependencies and delivery criteria | Scope, dependencies, or acceptance criteria change |
@@ -31,6 +32,7 @@ This directory is the entry point for the repository's shared documentation. The
| [BigModel video](guides/bigmodel-video.md) ([中文](guides/bigmodel-video.zh-CN.md)) | CogVideoX-3 text, single-image and first/last-frame generation, task recovery and adoption | BigModel protocol, inputs, output sizes or recovery behavior change |
| [BigModel GLM-Image](guides/bigmodel-image.md) ([中文](guides/bigmodel-image.zh-CN.md)) | Account setup, text-to-image generation, adoption and recovery | BigModel integration fields or behavior change |
| [GLM-Image validation](development/glm-image-validation.md) | Real provider workflow screenshots and automated checks | GLM-Image acceptance is repeated |
+| [Desktop application](development/desktop.md) ([中文](development/desktop.zh-CN.md)) | Desktop build, CLI registration, and release checks | Build, CLI registration, or release checks change |
| [Agent runtime](architecture/agent-runtime.md) | Agent runtime architecture and Job origin tracing | Runtime architecture or Job origin semantics change |
The root [README](../README.md) introduces the product and examples and links to quick-start and documentation. See [installation and updates](guides/installation.md) ([中文](guides/installation.zh-CN.md)) for installation, and the [user guide](guides/user-guide.md) ([中文](guides/user-guide.zh-CN.md)) for configuration, creation, and troubleshooting. The README does not contain the full manual, implementation architecture, development tests, research sources, or iteration history. Source code and generated contracts describe the implementation; architecture and roadmap documents describe goals and do not establish that a capability is already available.
diff --git a/docs/architecture/desktop.md b/docs/architecture/desktop.md
new file mode 100644
index 000000000..158c81d66
--- /dev/null
+++ b/docs/architecture/desktop.md
@@ -0,0 +1,33 @@
+# Desktop architecture
+
+[中文](desktop.zh-CN.md)
+
+The desktop application runs the shared Web UI and Python API on the same machine. Electron manages native windows and starts the Python Host. The Host runs the [unified project services](unified-project.md) and the [Agent runtime](agent-runtime.md).
+
+```mermaid
+flowchart LR
+ Renderer["Web renderer"] -->|"opendirector://app"| Main["Electron main process"]
+ Main -->|"Authenticated HTTP on loopback"| Host["Python Host"]
+ Main -.->|"Control over private stdio pipes"| Host
+ Host --> Store["Project storage"]
+```
+
+## Electron owns the connection to the Host
+
+The main process starts the bundled Python runtime and gives the Host a fresh credential over the control pipe. The Host binds to an OS-assigned port on `127.0.0.1` and reports its address when ready. The main process opens the Web UI after the Host is ready.
+
+The renderer requests application pages, media, and API resources through `opendirector://app`. The main process forwards those requests to the Host with the launch credential. The Host checks the credential before it serves the request. The renderer runs with Node integration off and context isolation on. A preload bridge exposes specific desktop operations, including edit-session registration and language and export status updates.
+
+## The Host owns project state
+
+The Host uses the same project storage, command validation, and edit-session rules as the standalone API. The desktop shell handles window behavior and opens native dialogs for file input and downloads.
+
+The installed application supplies the Web UI, Python runtime, and bundled tools as application resources. The Host writes project and configuration data to `workspace/` under Electron's user data directory. The same user data directory also holds desktop logs and the cached language preference. Existing source and pip workspaces stay in their original locations.
+
+## Closing a window keeps the Host running
+
+Closing the main window hides it so work in progress can continue. Quitting the application checks local Agent runs, generation jobs, tool tasks, and renderer export activity before it stops the Host. The main process asks the user before interrupting active work. The Host releases edit sessions registered by this desktop instance during shutdown. Loss of the parent control pipe also starts Host cleanup.
+
+A provider can continue running a submitted job and charge for it after the local application quits. Browser export requires the renderer process.
+
+See [Desktop application development](../development/desktop.md) for build commands, CLI registration, and release checks.
diff --git a/docs/architecture/desktop.zh-CN.md b/docs/architecture/desktop.zh-CN.md
new file mode 100644
index 000000000..8caf00124
--- /dev/null
+++ b/docs/architecture/desktop.zh-CN.md
@@ -0,0 +1,33 @@
+# 桌面架构
+
+[English](desktop.md)
+
+桌面应用在同一台机器上运行共用的 Web UI 和 Python API。Electron 管理原生窗口并启动 Python Host。Host 运行[统一项目服务](unified-project.md)和 [Agent Runtime](agent-runtime.md)。
+
+```mermaid
+flowchart LR
+ Renderer["Web 渲染进程"] -->|"opendirector://app"| Main["Electron 主进程"]
+ Main -->|"带凭证的回环 HTTP 请求"| Host["Python Host"]
+ Main -.->|"私有标准输入输出控制管道"| Host
+ Host --> Store["工程存储"]
+```
+
+## Electron 管理到 Host 的连接
+
+主进程启动随包提供的 Python,通过控制管道把本次启动的凭证交给 Host。Host 在 `127.0.0.1` 上绑定系统分配的端口,就绪后报告地址。主进程收到就绪消息后打开 Web UI。
+
+渲染进程通过 `opendirector://app` 请求应用页面、媒体和 API 资源。主进程转发请求时附带启动凭证,Host 验证凭证后处理请求。渲染进程关闭 Node 集成并开启上下文隔离。预加载脚本提供有限的桌面接口,包括登记编辑会话、同步语言和导出状态。
+
+## Host 管理工程状态
+
+Host 与独立 API 共用工程存储、命令校验和编辑会话规则。桌面壳管理窗口,并通过原生对话框选择文件和保存下载。
+
+安装包提供 Web UI、Python 运行时和内置工具。Host 将工程和配置写入 Electron 用户数据目录下的 `workspace/`。该用户数据目录也保存桌面日志和语言缓存。源码版和 pip 安装版已有的工作区保留在原位置。
+
+## 关窗后 Host 继续运行
+
+关闭主窗口会隐藏界面,正在进行的工作可以继续。退出应用时,主进程先检查本地 Agent 运行、生成任务、工具任务和渲染进程的导出状态,再停止 Host。中断正在进行的工作前,主进程会请用户确认。Host 在停止时释放由该桌面实例登记的编辑会话。父进程的控制管道断开后,Host 也会开始清理。
+
+退出本机应用后,供应商可能继续执行已提交的任务并产生费用。浏览器导出需要渲染进程保持运行。
+
+构建命令、CLI 注册和发布检查见[桌面应用开发指南](../development/desktop.zh-CN.md)。
diff --git a/docs/development/desktop.md b/docs/development/desktop.md
new file mode 100644
index 000000000..263597304
--- /dev/null
+++ b/docs/development/desktop.md
@@ -0,0 +1,35 @@
+# Desktop application
+
+[中文](desktop.zh-CN.md)
+
+See [Desktop architecture](../architecture/desktop.md) for the processes, project storage, and shutdown behavior.
+
+## Build and check
+
+Build on the target OS and architecture. Build prerequisites are Node.js from `.nvmrc`, npm, uv, and standalone FFmpeg/ffprobe binaries. End users do not need those development tools.
+
+```bash
+npm ci --prefix apps/desktop
+npm test --prefix apps/desktop
+OPENDIRECTOR_FFMPEG_DIR=/absolute/path/to/standalone-media npm run prepare:runtime --prefix apps/desktop
+npm run pack --prefix apps/desktop
+node apps/desktop/scripts/smoke.mjs /absolute/path/to/packaged/OpenDirector
+```
+
+The runtime preparation builds the Python wheel using the existing build backend, including Web assets, skills and the actual OpenCode executable. It installs the wheel and dependencies into a private standalone Python distribution, validates CLI help and both media binaries, and records the target in `runtime/manifest.json`. It never modifies system Python. Supply media binaries with their redistribution licenses for the target; system package-manager binaries with external shared-library dependencies are not portable.
+
+The smoke check launches the actual packaged executable with isolated temporary data, opens the canvas, drops local MP4, PNG, and WAV files and verifies their assets and nodes persist across launches, checks authenticated health and project queries, verifies renderer isolation and both locales, hides the window without stopping the Host, and reopens the same project after quitting. It makes no provider calls. It does not establish Agent-assisted creation, export quality, signing, or support on an untested platform.
+
+## Terminal command
+
+Use **Manage terminal command** in the application menu to install the launcher in `~/.local/bin`. Add that directory to PATH if needed. The app preserves existing entries. To uninstall or repair an old installation, check the path shown in the app and manually remove the OpenDirector entry. To repair it, run Install again. `opendirector desktop` opens this installation; `opendirector serve` runs the ordinary standalone API. Business CLI commands retain their existing `--url`, project, session and revision rules. Automatic attachment of an external CLI to the private desktop Host is not available.
+
+## Delivery boundary
+
+This is the shared application for #363. Platform installers, signing and distribution are #364–#366; automatic updates are #367. Browser rendering still requires the application process. Closing the application cannot finish a browser export in the background. Microphone access is not enabled in this initial shell.
+
+Before release, run the complete clean-machine acceptance in #363 on each declared platform: Agent-assisted creation and tool use, editing, export, reopen, failure recovery, duplicate launch and locks. A successful smoke check alone is insufficient. OS/architecture support and signing status must be recorded with each platform's acceptance evidence.
+
+## Release packages
+
+The desktop release workflow builds an Apple Silicon DMG with an ad-hoc signed App and an unsigned Windows x64 NSIS installer. Each platform uploads its installer and SHA-256 file to the shared draft release after its native checks pass. The macOS job verifies the installed App signature before and after the smoke test.
diff --git a/docs/development/desktop.zh-CN.md b/docs/development/desktop.zh-CN.md
new file mode 100644
index 000000000..e4efab4ac
--- /dev/null
+++ b/docs/development/desktop.zh-CN.md
@@ -0,0 +1,35 @@
+# 桌面应用
+
+[English](desktop.md)
+
+进程职责、工程存储和退出行为见[桌面架构](../architecture/desktop.zh-CN.md)。
+
+## 构建与检查
+
+在目标系统和架构上构建,需要 `.nvmrc` 指定的 Node.js、npm、uv 和独立 FFmpeg/ffprobe 二进制。最终用户无需准备这些开发工具。
+
+```bash
+npm ci --prefix apps/desktop
+npm test --prefix apps/desktop
+OPENDIRECTOR_FFMPEG_DIR=/absolute/path/to/standalone-media npm run prepare:runtime --prefix apps/desktop
+npm run pack --prefix apps/desktop
+node apps/desktop/scripts/smoke.mjs /absolute/path/to/packaged/OpenDirector
+```
+
+运行时准备复用现有构建后端生成 Python wheel,包含前端、技能和实际 OpenCode 可执行文件;将 wheel 和依赖安装到私有独立 Python,验证 CLI 帮助及两个媒体程序,并将平台写入 `runtime/manifest.json`。不会修改系统 Python。提供对应平台可分发的媒体程序及许可证;依赖包管理器外部动态库的系统二进制不能直接作为便携运行时。
+
+冒烟检查使用临时数据目录启动实际打包程序,进入画布,拖入本地 MP4、PNG 和 WAV 文件并确认重启后素材和节点仍在,检查鉴权健康接口和工程查询,验证渲染隔离及中英文切换,隐藏窗口并确认 Host 保留,退出后重开同一工程,不调用模型服务。该检查不代表已完成 Agent 辅助创作、导出质量、签名或未测试平台的验收。
+
+## 终端命令
+
+通过应用菜单的“管理终端命令”在 `~/.local/bin` 安装启动器,必要时将该目录加入 PATH。应用会保留已有入口。如需卸载或修复旧安装,请检查应用显示的路径,确认入口属于 OpenDirector 后手动移除。修复时再点一次安装。`opendirector desktop` 打开此安装的桌面应用;`opendirector serve` 运行独立 API。业务命令沿用 `--url`、工程、会话和版本规则,目前不支持外部 CLI 自动连接桌面私有 Host。
+
+## 交付边界
+
+本模块对应 #363 的共用应用。平台安装、签名和分发由 #364–#366 负责,自动更新由 #367 负责。浏览器导出仍需应用进程参与,退出应用后不能在后台完成;首版壳未开放麦克风权限。
+
+发布前须按 #363 在各声明平台完成干净环境验收:Agent 辅助创作与工具调用、编辑、导出、重开、故障恢复、重复启动和工程锁。冒烟通过不能替代完整验收;操作系统、架构和签名状态随平台验收证据记录。
+
+## 发布安装包
+
+桌面发布工作流构建 Apple Silicon DMG 和未签名的 Windows x64 NSIS 安装包。DMG 内的 App 使用 ad-hoc 签名。每个平台通过原生验证后,将安装包和 SHA-256 校验文件上传到同一个草稿 Release。macOS 任务在冒烟测试前后校验已安装 App 的签名。
diff --git a/packages/core/src/opendirector/application/creation_commands.py b/packages/core/src/opendirector/application/creation_commands.py
index c0adf6758..e3d9bb72d 100644
--- a/packages/core/src/opendirector/application/creation_commands.py
+++ b/packages/core/src/opendirector/application/creation_commands.py
@@ -36,7 +36,7 @@ def execute(self, projects, command, *, session=None, source='ui', imported_from
def rename(snapshot):
name = project_name(command.payload.name)
- if snapshot.project.name == name:
+ if snapshot.project.name == name and snapshot.project.defaultNameIndex is None:
return snapshot
data = snapshot.model_dump()
data['project'] = dict(id=snapshot.project.id, name=name, revision=snapshot.project.revision + 1)
diff --git a/packages/core/src/opendirector/cli.py b/packages/core/src/opendirector/cli.py
index c486c9ce9..f0eb18860 100644
--- a/packages/core/src/opendirector/cli.py
+++ b/packages/core/src/opendirector/cli.py
@@ -9,6 +9,7 @@
import re
import socket
import shlex
+import subprocess
import sys
from typing import Annotated, Literal
from urllib.parse import quote
@@ -299,6 +300,14 @@ class LogLevel(str, Enum):
WebPortOption = Annotated[int, typer.Option(min=1, max=65535, help="Vite development port.")]
+@app.command("desktop", help="Open the desktop application installed with this terminal command. / 打开此终端命令所属的桌面应用。")
+def desktop():
+ executable = os.environ.get('OPENDIRECTOR_DESKTOP_EXECUTABLE')
+ if not executable or not Path(executable).is_file():
+ raise typer.BadParameter('Install the command from the desktop application menu. / 请从桌面应用菜单安装终端命令。')
+ subprocess.Popen([executable], stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
+
+
@app.command("serve", help="Start the API and serve the built application.")
def serve(port: PortOption = 8000, web_port: WebPortOption = 5173, log_level: LogLevel = LogLevel.info):
from opendirector.launcher import start
diff --git a/packages/core/src/opendirector/domain/creation/commands.py b/packages/core/src/opendirector/domain/creation/commands.py
index a6677362a..556b6d6c4 100644
--- a/packages/core/src/opendirector/domain/creation/commands.py
+++ b/packages/core/src/opendirector/domain/creation/commands.py
@@ -16,8 +16,12 @@ class ProjectCreate(Contract):
name: str = Field(min_length=1, max_length=100, pattern=r'\S', description='User-visible name.')
-class ProjectRename(ProjectCreate):
- pass
+ defaultNameIndex: Positive | None = Field(default=None, exclude_if=lambda value: value is None,
+ description="Index for an automatically named initial project.")
+
+
+class ProjectRename(Contract):
+ name: str = Field(min_length=1, max_length=100, pattern=r'\S', description='User-visible name.')
class AssetImport(Contract):
diff --git a/packages/core/src/opendirector/domain/creation/project.py b/packages/core/src/opendirector/domain/creation/project.py
index 8f089c182..95294f240 100644
--- a/packages/core/src/opendirector/domain/creation/project.py
+++ b/packages/core/src/opendirector/domain/creation/project.py
@@ -16,6 +16,8 @@ class Project(Contract):
id: UUID = Field(description='Stable object ID.')
revision: Revision = Field(default=1, description='Current object revision for optimistic concurrency.')
name: str = Field(min_length=1, max_length=100, pattern=r'\S', description='User-visible name.')
+ defaultNameIndex: int | None = Field(default=None, ge=1, exclude_if=lambda value: value is None,
+ description='Index of the automatically named initial project.')
def asset_references(value):
diff --git a/packages/core/src/opendirector/infrastructure/creation_catalog.py b/packages/core/src/opendirector/infrastructure/creation_catalog.py
index fc2c64c33..7140cf34a 100644
--- a/packages/core/src/opendirector/infrastructure/creation_catalog.py
+++ b/packages/core/src/opendirector/infrastructure/creation_catalog.py
@@ -111,7 +111,10 @@ def _catalog(self, db):
record = self._record(path, manifest.head)
if record.snapshot.project.name != manifest.name:
raise ProjectError('工程提交历史与清单不一致,原文件已保留。', 409, code='storage_unavailable')
- projects.append(dict(id=project_id, name=manifest.name, path=str(path)))
+ item = dict(id=project_id, name=manifest.name, path=str(path))
+ if record.snapshot.project.defaultNameIndex is not None:
+ item['defaultNameIndex'] = record.snapshot.project.defaultNameIndex
+ projects.append(item)
except (ProjectError, OSError):
reason = f'工程 {project_id} 需要恢复,原文件已保留。'
warnings.append(reason)
diff --git a/packages/core/src/opendirector/infrastructure/creation_projects.py b/packages/core/src/opendirector/infrastructure/creation_projects.py
index 3b79e71cc..170baba9f 100644
--- a/packages/core/src/opendirector/infrastructure/creation_projects.py
+++ b/packages/core/src/opendirector/infrastructure/creation_projects.py
@@ -156,7 +156,7 @@ def _create(self, command, source):
self.root.mkdir(exist_ok=True)
sync_directory(self.root.parent)
self.local._conflict(self.root, name)
- snapshot = ProjectSnapshot(project=Project(id=command.projectId, name=name), eventCursor=1)
+ snapshot = ProjectSnapshot(project=Project(id=command.projectId, name=name, defaultNameIndex=command.payload.defaultNameIndex), eventCursor=1)
changed = object_changes(None, snapshot, command)
record = self._make_record(command, None, snapshot, changed, source)
return self._publish(CommitIntent(fromName=None, toName=name, beforeFingerprint=None, record=record))
diff --git a/pyproject.toml b/pyproject.toml
index ebe2f2f9c..c25fa211d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,7 +10,7 @@ description = "Local video creation workspace and agent CLI"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
- "PyYAML>=6,<7", "filelock>=3.16,<4", "httpx>=0.27,<1", "anyio>=4,<5",
+ "PyYAML>=6,<7", "filelock>=3.16,<4", "httpx[socks]>=0.27,<1", "anyio>=4,<5",
"pydantic>=2.12,<3", "typer>=0.27.3,<0.28", "Pillow>=12,<14", "pillow-heif>=1.8.1,<2",
"fonttools==4.68.0", "fastapi>=0.115,<1", "uvicorn>=0.30,<1",
"starlette>=1.8,<2", "python-multipart>=0.0.33,<1",
diff --git a/requirements.txt b/requirements.txt
index 90cd62a6f..ee26fc8c7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -88,6 +88,8 @@ rich==15.0.0
# typer
shellingham==1.5.4
# via typer
+socksio==1.0.0
+ # via httpx
starlette==1.8.0
# via
# opendirector (pyproject.toml)
diff --git a/scripts/check-browser-locale.mjs b/scripts/check-browser-locale.mjs
index 3614fd86e..e99088d33 100644
--- a/scripts/check-browser-locale.mjs
+++ b/scripts/check-browser-locale.mjs
@@ -22,7 +22,7 @@ const extraScripts = [join(root, "scripts", "verify_creation_browser.mjs")];
const locales = ["en-US", "zh-CN"];
// locale.mjs switches languages on one page: it starts in English, stores a
// Chinese preference, and asserts both.
-const switching = new Set(["locale.mjs"]);
+const switching = new Set(["locale.mjs", "bilingual_defaults.mjs"]);
const cjk = /[\u3400-\u9fff]/;
const selector = /\bgetBy[A-Za-z]*\(|hasText\s*:|\btext=/;
diff --git a/scripts/check-browser-manifest.mjs b/scripts/check-browser-manifest.mjs
index 837818c14..951bebed9 100644
--- a/scripts/check-browser-manifest.mjs
+++ b/scripts/check-browser-manifest.mjs
@@ -52,7 +52,8 @@ for (const entry of entries) {
const FIXTURE_LANES = ["extendedFixture", "extendedHttpFixture"];
const KNOWN_LANES = new Set(["gate", "extended", ...FIXTURE_LANES, "production", "perf", "manual"]);
// Static harness pages do not open the workspace, so they do not see the welcome dialog.
-const welcomeExempt = new Set(["assistant_activity.mjs"]);
+// The bilingual defaults test exercises the welcome dialog itself.
+const welcomeExempt = new Set(["assistant_activity.mjs", "bilingual_defaults.mjs"]);
for (const entry of entries) {
const text = entry.file === undefined ? "" : fs.readFileSync(path.join(browserDir, entry.file), "utf8");
const importsSrc = text.includes('"/src/');
diff --git a/setup.py b/setup.py
index ec0e4eb53..f1c2c8a12 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ def get_tag(self):
packages=find_packages('packages/core/src') + find_packages('apps/api/src'),
package_dir={'opendirector': 'packages/core/src/opendirector',
'opendirector_api': 'apps/api/src/opendirector_api'},
- package_data={'opendirector': ['_bundled/**/*']},
+ package_data={'opendirector': ['_bundled/**/*'], 'opendirector_api': ['example-canvases.json']},
include_package_data=True,
distclass=BundledDistribution,
cmdclass={'bdist_wheel': PlatformWheel},
diff --git a/src/backend/api.ts b/src/backend/api.ts
index 4d63e7dd5..3995a908f 100644
--- a/src/backend/api.ts
+++ b/src/backend/api.ts
@@ -4,6 +4,7 @@ import type { Locale } from "../i18n/types.ts";
import { tNow } from "../i18n/messages.ts";
export const sessionId = crypto.randomUUID();
+globalThis.window?.opendirectorDesktop?.registerSession(sessionId);
const SESSION_KEY = "opendirector.session.v1";
const lockName = (id: string) => `opendirector.session.${id}`;
diff --git a/src/backend/chat.ts b/src/backend/chat.ts
index b23807468..51da14a15 100644
--- a/src/backend/chat.ts
+++ b/src/backend/chat.ts
@@ -1,3 +1,4 @@
+import { assistant as chineseAssistant } from "../i18n/messages/zh-CN/assistant.ts";
import type { ReferenceContent } from "../canvas/chatReferenceContent.ts";
import { defaultTranslate } from "../canvas/assistantTranslate.ts";
import type { Translate } from "../i18n/I18nProvider.tsx";
@@ -48,7 +49,7 @@ export interface ChatTool {
}
export interface ConversationSummary {
id: string;
- title: string;
+ title: string | null;
messageCount: number;
hasDraft: boolean;
}
@@ -72,7 +73,9 @@ export interface ChatMessage {
content?: ReferenceContent | null;
status: "complete" | "streaming" | "stopped" | "interrupted";
assets?: ChatAsset[];
- model?: string;
+ model?: string | null;
+ modelIsCliDefault?: boolean;
+ runtimeModel?: string | null;
thinking?: Thinking;
source?: "preview" | "model";
}
@@ -152,6 +155,21 @@ export interface ChatRequest {
skills?: string[];
}
+function normalizeConversation(value: Conversation): Conversation {
+ const messages = value.messages.map((message, index) => {
+ const previous = value.messages[index - 1];
+ // Older replies stored the fallback label before the API exposed its source.
+ if (message.role === "assistant" && message.modelIsCliDefault === undefined &&
+ message.model === chineseAssistant["assistant.agent.cliDefault"] &&
+ message.runtime !== undefined && message.runtime !== "default" &&
+ previous?.role === "user" && !previous.runtimeModel) {
+ return { ...message, modelIsCliDefault: true };
+ }
+ return message;
+ });
+ return { ...value, messages };
+}
+
const path = (id: string) => `/creation/projects/${id}/assistant`;
export const conversations = (id: string, signal?: AbortSignal) =>
request<{ activeId: string; items: ConversationSummary[] }>(
@@ -167,7 +185,7 @@ export const activateConversation = (
path(projectId) +
(create ? "/conversations" : `/conversations/${id}/activate`),
create ? json("POST", { id }) : json("POST", {}),
- );
+ ).then(normalizeConversation);
const runtimeStatuses = new Map