An open-source, faster Devin alternative
TypeScript
merge in the service, sdk changes since
Brian Reardon6c1be60c4c9b
diff --git a/.gitignore b/.gitignoreindex 948b897a..b3237e07 100644--- a/.gitignore+++ b/.gitignore@@ -1 +1,2 @@.cursor+.DS_Store\ No newline at end of filediff --git a/sdk/js/docs/index.html b/sdk/js/docs/index.htmlnew file mode 100644index 00000000..20499374--- /dev/null+++ b/sdk/js/docs/index.html@@ -0,0 +1,559 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>OpenSandbox SDK</title>+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap" rel="stylesheet">+ <style>+ :root {+ --bg: #0a0a0b;+ --surface: #141417;+ --surface-2: #1c1c21;+ --border: #2a2a32;+ --text: #e4e4e7;+ --text-muted: #71717a;+ --accent: #22d3ee;+ --accent-dim: #0e7490;+ --green: #4ade80;+ --red: #f87171;+ --yellow: #fbbf24;+ }++ * {+ margin: 0;+ padding: 0;+ box-sizing: border-box;+ }++ body {+ font-family: 'Outfit', system-ui, sans-serif;+ background: var(--bg);+ color: var(--text);+ line-height: 1.6;+ min-height: 100vh;+ }++ .container {+ max-width: 900px;+ margin: 0 auto;+ padding: 4rem 2rem;+ }++ header {+ text-align: center;+ margin-bottom: 4rem;+ position: relative;+ }++ header::before {+ content: '';+ position: absolute;+ top: -100px;+ left: 50%;+ transform: translateX(-50%);+ width: 600px;+ height: 400px;+ background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.08) 0%, transparent 70%);+ pointer-events: none;+ }++ h1 {+ font-size: 3.5rem;+ font-weight: 700;+ letter-spacing: -0.03em;+ margin-bottom: 0.5rem;+ background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ background-clip: text;+ }++ .tagline {+ font-size: 1.25rem;+ color: var(--text-muted);+ font-weight: 400;+ }++ h2 {+ font-size: 1.5rem;+ font-weight: 600;+ margin: 3rem 0 1.5rem;+ color: var(--text);+ display: flex;+ align-items: center;+ gap: 0.75rem;+ }++ h2::before {+ content: '';+ width: 4px;+ height: 1.5rem;+ background: var(--accent);+ border-radius: 2px;+ }++ h3 {+ font-size: 1.1rem;+ font-weight: 600;+ margin: 2rem 0 1rem;+ color: var(--accent);+ font-family: 'JetBrains Mono', monospace;+ }++ p {+ margin-bottom: 1rem;+ color: var(--text-muted);+ }++ .install-box {+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 1.5rem;+ margin: 2rem 0;+ }++ .install-box code {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.95rem;+ color: var(--accent);+ }++ pre {+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 1.5rem;+ overflow-x: auto;+ margin: 1rem 0 1.5rem;+ position: relative;+ }++ pre code {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.875rem;+ line-height: 1.7;+ color: var(--text);+ }++ .keyword { color: #c792ea; }+ .string { color: #c3e88d; }+ .comment { color: #546e7a; }+ .function { color: #82aaff; }+ .property { color: #f78c6c; }+ .type { color: var(--accent); }++ .method-card {+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 1.5rem;+ margin: 1rem 0;+ transition: border-color 0.2s;+ }++ .method-card:hover {+ border-color: var(--accent-dim);+ }++ .method-sig {+ font-family: 'JetBrains Mono', monospace;+ font-size: 0.9rem;+ color: var(--accent);+ margin-bottom: 0.75rem;+ }++ .method-desc {+ color: var(--text-muted);+ font-size: 0.95rem;+ }++ .params {+ margin-top: 1rem;+ padding-top: 1rem;+ border-top: 1px solid var(--border);+ }++ .param {+ display: flex;+ gap: 1rem;+ margin: 0.5rem 0;+ font-size: 0.875rem;+ }++ .param-name {+ font-family: 'JetBrains Mono', monospace;+ color: var(--yellow);+ min-width: 100px;+ }++ .param-type {+ font-family: 'JetBrains Mono', monospace;+ color: var(--text-muted);+ min-width: 120px;+ }++ .param-desc {+ color: var(--text-muted);+ }++ .returns {+ margin-top: 0.75rem;+ font-size: 0.875rem;+ }++ .returns-label {+ color: var(--green);+ font-weight: 500;+ }++ .type-table {+ width: 100%;+ border-collapse: collapse;+ margin: 1rem 0;+ font-size: 0.875rem;+ }++ .type-table th,+ .type-table td {+ text-align: left;+ padding: 0.75rem 1rem;+ border-bottom: 1px solid var(--border);+ }++ .type-table th {+ color: var(--text-muted);+ font-weight: 500;+ background: var(--surface);+ }++ .type-table td:first-child {+ font-family: 'JetBrains Mono', monospace;+ color: var(--accent);+ }++ .badge {+ display: inline-block;+ padding: 0.25rem 0.5rem;+ border-radius: 4px;+ font-size: 0.75rem;+ font-weight: 500;+ font-family: 'JetBrains Mono', monospace;+ }++ .badge-success {+ background: rgba(74, 222, 128, 0.15);+ color: var(--green);+ }++ .badge-error {+ background: rgba(248, 113, 113, 0.15);+ color: var(--red);+ }++ .nav {+ position: fixed;+ top: 2rem;+ right: 2rem;+ background: var(--surface);+ border: 1px solid var(--border);+ border-radius: 12px;+ padding: 1rem;+ font-size: 0.875rem;+ }++ .nav a {+ display: block;+ color: var(--text-muted);+ text-decoration: none;+ padding: 0.35rem 0;+ transition: color 0.2s;+ }++ .nav a:hover {+ color: var(--accent);+ }++ @media (max-width: 1200px) {+ .nav { display: none; }+ }++ .divider {+ height: 1px;+ background: var(--border);+ margin: 3rem 0;+ }++ footer {+ text-align: center;+ margin-top: 4rem;+ padding-top: 2rem;+ border-top: 1px solid var(--border);+ color: var(--text-muted);+ font-size: 0.875rem;+ }+ </style>+</head>+<body>+ <nav class="nav">+ <a href="#install">Install</a>+ <a href="#quickstart">Quickstart</a>+ <a href="#world">Client</a>+ <a href="#sandbox">Sandbox</a>+ <a href="#types">Types</a>+ </nav>++ <div class="container">+ <header>+ <h1>OpenSandbox SDK</h1>+ <p class="tagline">Sandbox VMs with instant time-travel snapshots</p>+ </header>++ <section id="install">+ <h2>Installation</h2>+ <div class="install-box">+ <code>npm install opensandbox</code>+ </div>+ <p>Or link locally during development:</p>+<pre><code><span class="comment"># In the opensandbox repo</span>+npm link++<span class="comment"># In your project</span>+npm link opensandbox</code></pre>+ </section>++ <section id="quickstart">+ <h2>Quickstart</h2>+<pre><code><span class="keyword">import</span> { Client } <span class="keyword">from</span> <span class="string">"opensandbox"</span>++<span class="comment">// Initialize with your API key</span>+<span class="keyword">const</span> client = <span class="keyword">new</span> <span class="function">Client</span>(<span class="string">"ws_your_api_key"</span>)++<span class="comment">// Create a sandbox VM</span>+<span class="keyword">const</span> result = <span class="keyword">await</span> client.<span class="function">create</span>(<span class="string">"my-sandbox"</span>)+<span class="keyword">if</span> (!result.success) <span class="keyword">throw new</span> <span class="function">Error</span>(result.error)++<span class="keyword">const</span> { sandbox } = result++<span class="comment">// Run commands (auto-snapshots after each)</span>+<span class="keyword">const</span> cmd = <span class="keyword">await</span> sandbox.<span class="function">run</span>(<span class="string">"echo 'hello world'"</span>)+<span class="keyword">if</span> (cmd.success) {+ console.<span class="function">log</span>(cmd.stdout) <span class="comment">// "hello world\n"</span>+ console.<span class="function">log</span>(cmd.snapshot) <span class="comment">// "cmd_1702147200000"</span>+}++<span class="comment">// Time travel to any snapshot</span>+<span class="keyword">const</span> snaps = <span class="keyword">await</span> sandbox.<span class="function">snapshots</span>()+<span class="keyword">if</span> (snaps.success) {+ <span class="keyword">await</span> sandbox.<span class="function">restore</span>(snaps.snapshots[<span class="property">0</span>].snapshot_name)+}++<span class="comment">// Cleanup</span>+<span class="keyword">await</span> sandbox.<span class="function">destroy</span>()</code></pre>+ </section>++ <div class="divider"></div>++ <section id="world">+ <h2>Client</h2>+ <p>The main entry point. Manages sandbox VMs.</p>++ <h3>new Client(api_key, base_url?)</h3>+ <div class="method-card">+ <div class="method-sig">constructor(api_key: string, base_url?: string)</div>+ <div class="method-desc">Create a new client.</div>+ <div class="params">+ <div class="param">+ <span class="param-name">api_key</span>+ <span class="param-type">string</span>+ <span class="param-desc">Your API key</span>+ </div>+ <div class="param">+ <span class="param-name">base_url</span>+ <span class="param-type">string</span>+ <span class="param-desc">API URL (default: http://localhost:4000)</span>+ </div>+ </div>+ </div>++ <h3>client.create(name)</h3>+ <div class="method-card">+ <div class="method-sig">async create(name: string): Promise<CreateResult></div>+ <div class="method-desc">Create a new sandbox VM.</div>+ <div class="params">+ <div class="param">+ <span class="param-name">name</span>+ <span class="param-type">string</span>+ <span class="param-desc">Unique name for the sandbox</span>+ </div>+ </div>+ <div class="returns">+ <span class="returns-label">Returns:</span>+ <span class="badge badge-success">{ success: true, sandbox }</span> or+ <span class="badge badge-error">{ success: false, error }</span>+ </div>+ </div>++ <h3>client.list()</h3>+ <div class="method-card">+ <div class="method-sig">async list(): Promise<ListResult></div>+ <div class="method-desc">List all sandbox VMs.</div>+ <div class="returns">+ <span class="returns-label">Returns:</span>+ <span class="badge badge-success">{ success: true, vms }</span> or+ <span class="badge badge-error">{ success: false, error }</span>+ </div>+ </div>++ <h3>client.sandbox(name)</h3>+ <div class="method-card">+ <div class="method-sig">sandbox(name: string): Sandbox</div>+ <div class="method-desc">Get a reference to an existing sandbox by name.</div>+ <div class="params">+ <div class="param">+ <span class="param-name">name</span>+ <span class="param-type">string</span>+ <span class="param-desc">Name of existing sandbox</span>+ </div>+ </div>+ </div>+ </section>++ <div class="divider"></div>++ <section id="sandbox">+ <h2>Sandbox</h2>+ <p>Represents a single VM instance. Run commands, manage snapshots, and time-travel.</p>++ <h3>sandbox.run(command, timeout?)</h3>+ <div class="method-card">+ <div class="method-sig">async run(command: string, timeout?: number): Promise<CommandResult></div>+ <div class="method-desc">Execute a shell command. A snapshot is automatically taken after each successful command.</div>+ <div class="params">+ <div class="param">+ <span class="param-name">command</span>+ <span class="param-type">string</span>+ <span class="param-desc">Shell command to execute</span>+ </div>+ <div class="param">+ <span class="param-name">timeout</span>+ <span class="param-type">number</span>+ <span class="param-desc">Timeout in seconds (default: 30)</span>+ </div>+ </div>+ <div class="returns">+ <span class="returns-label">Returns:</span>+ <span class="badge badge-success">{ success, stdout, stderr, exitCode, snapshot }</span> or+ <span class="badge badge-error">{ success: false, error }</span>+ </div>+ </div>++ <h3>sandbox.snapshots()</h3>+ <div class="method-card">+ <div class="method-sig">async snapshots(): Promise<SnapshotsResult></div>+ <div class="method-desc">List all snapshots for this sandbox, ordered by creation time.</div>+ <div class="returns">+ <span class="returns-label">Returns:</span>+ <span class="badge badge-success">{ success: true, snapshots }</span> or+ <span class="badge badge-error">{ success: false, error }</span>+ </div>+ </div>++ <h3>sandbox.restore(snapshot_name)</h3>+ <div class="method-card">+ <div class="method-sig">async restore(snapshot_name: string): Promise<SimpleResult></div>+ <div class="method-desc">Restore workspace to a previous snapshot. All snapshots after this point are deleted.</div>+ <div class="params">+ <div class="param">+ <span class="param-name">snapshot_name</span>+ <span class="param-type">string</span>+ <span class="param-desc">Name of snapshot to restore</span>+ </div>+ </div>+ </div>++ <h3>sandbox.info()</h3>+ <div class="method-card">+ <div class="method-sig">async info(): Promise<VMInfoResult></div>+ <div class="method-desc">Get detailed information about the VM.</div>+ </div>++ <h3>sandbox.wipe()</h3>+ <div class="method-card">+ <div class="method-sig">async wipe(): Promise<SimpleResult></div>+ <div class="method-desc">Clear all files in the workspace without creating a snapshot.</div>+ </div>++ <h3>sandbox.destroy()</h3>+ <div class="method-card">+ <div class="method-sig">async destroy(): Promise<SimpleResult></div>+ <div class="method-desc">Delete the VM and all its snapshots permanently.</div>+ </div>+ </section>++ <div class="divider"></div>++ <section id="types">+ <h2>Types</h2>+ <p>All methods return discriminated unions for type-safe error handling.</p>++ <h3>CommandResult</h3>+ <table class="type-table">+ <thead>+ <tr><th>Field</th><th>Type</th><th>Description</th></tr>+ </thead>+ <tbody>+ <tr><td>success</td><td>boolean</td><td>Whether command succeeded</td></tr>+ <tr><td>stdout</td><td>string</td><td>Standard output (on success)</td></tr>+ <tr><td>stderr</td><td>string</td><td>Standard error (on success)</td></tr>+ <tr><td>exitCode</td><td>number</td><td>Exit code (on success)</td></tr>+ <tr><td>snapshot</td><td>string</td><td>Snapshot name (on success)</td></tr>+ <tr><td>error</td><td>string</td><td>Error message (on failure)</td></tr>+ </tbody>+ </table>++ <h3>Snapshot</h3>+ <table class="type-table">+ <thead>+ <tr><th>Field</th><th>Type</th><th>Description</th></tr>+ </thead>+ <tbody>+ <tr><td>id</td><td>number</td><td>Snapshot ID</td></tr>+ <tr><td>vm_name</td><td>string</td><td>Parent VM name</td></tr>+ <tr><td>snapshot_name</td><td>string</td><td>Unique snapshot identifier</td></tr>+ <tr><td>command</td><td>string | null</td><td>Command that created this snapshot</td></tr>+ <tr><td>created_at</td><td>string</td><td>ISO timestamp</td></tr>+ </tbody>+ </table>++ <h3>VMInfo</h3>+ <table class="type-table">+ <thead>+ <tr><th>Field</th><th>Type</th><th>Description</th></tr>+ </thead>+ <tbody>+ <tr><td>id</td><td>number</td><td>VM ID</td></tr>+ <tr><td>name</td><td>string</td><td>VM name</td></tr>+ <tr><td>status</td><td>string</td><td>Current status (e.g. "running")</td></tr>+ <tr><td>agent_port</td><td>number</td><td>Agent communication port</td></tr>+ <tr><td>ssh_port</td><td>number</td><td>SSH port</td></tr>+ <tr><td>agentHealthy</td><td>boolean</td><td>Whether agent is responding</td></tr>+ <tr><td>created_at</td><td>string</td><td>ISO timestamp</td></tr>+ </tbody>+ </table>+ </section>++ <footer>+ <p>OpenSandbox SDK — Built for instant sandbox VMs with time-travel</p>+ </footer>+ </div>+</body>+</html>+++++diff --git a/sdk/js/examples/basic.ts b/sdk/js/examples/basic.tsnew file mode 100644index 00000000..8a0d6381--- /dev/null+++ b/sdk/js/examples/basic.ts@@ -0,0 +1,75 @@+/**+ * Basic SDK test - create sandbox, run commands, destroy+ *+ * Usage: npx tsx examples/basic.ts+ */++import { Client } from "../src/index.js"++const API_KEY = process.env.WORLDS_API_KEY ?? "ws_test_key";++async function main() {+ console.log("🌍 Worlds SDK - Basic Test\n");++ const client = new Client(API_KEY);++ // Create a sandbox+ console.log("Creating sandbox...");+ const createResult = await client.create("test-sandbox");+ if (!createResult.success) {+ console.error("❌ Failed to create sandbox:", createResult.error);+ process.exit(1);+ }+ console.log("✅ Sandbox created\n");++ const sandbox = createResult.sandbox;++ // Run a few commands+ console.log("Running commands...");++ const cmd1 = await sandbox.run("echo 'Hello from sandbox!'");+ if (cmd1.success) {+ console.log(` $ echo 'Hello from sandbox!'`);+ console.log(` stdout: ${cmd1.stdout.trim()}`);+ console.log(` snapshot: ${cmd1.snapshot}\n`);+ } else {+ console.error("❌ Command failed:", cmd1.error);+ }++ const cmd2 = await sandbox.run("pwd");+ if (cmd2.success) {+ console.log(` $ pwd`);+ console.log(` stdout: ${cmd2.stdout.trim()}\n`);+ }++ const cmd3 = await sandbox.run("ls -la");+ if (cmd3.success) {+ console.log(` $ ls -la`);+ console.log(` stdout:\n${cmd3.stdout}`);+ }++ // List snapshots+ console.log("Listing snapshots...");+ const snapsResult = await sandbox.snapshots();+ if (snapsResult.success) {+ console.log(` Found ${snapsResult.snapshots.length} snapshots:`);+ for (const snap of snapsResult.snapshots) {+ console.log(` - ${snap.snapshot_name} (${snap.command ?? "initial"})`);+ }+ }+ console.log();++ // Cleanup+ console.log("Destroying sandbox...");+ const destroyResult = await sandbox.destroy();+ if (destroyResult.success) {+ console.log("✅ Sandbox destroyed\n");+ } else {+ console.error("❌ Failed to destroy:", destroyResult.error);+ }++ console.log("🎉 Test complete!");+}++main().catch(console.error);+diff --git a/sdk/js/examples/list-vms.ts b/sdk/js/examples/list-vms.tsnew file mode 100644index 00000000..87c40ca6--- /dev/null+++ b/sdk/js/examples/list-vms.ts@@ -0,0 +1,59 @@+/**+ * List all VMs and snapshots+ *+ * Usage: npx tsx examples/list-vms.ts+ */++import { Client } from "../src/index.js"++const API_KEY = process.env.WORLDS_API_KEY ?? "ws_test_key";++async function main() {+ console.log("📋 Worlds SDK - List VMs & Snapshots\n");++ const client = new Client(API_KEY);++ // List VMs+ console.log("VMs:");+ console.log("─".repeat(50));+ const vmsResult = await client.list();+ if (vmsResult.success) {+ if (vmsResult.vms.length === 0) {+ console.log(" (no VMs found)");+ } else {+ for (const vm of vmsResult.vms) {+ console.log(` ${vm.name}`);+ console.log(` Status: ${vm.status}`);+ console.log(` SSH Port: ${vm.ssh_port}`);+ console.log(` Created: ${vm.created_at}`);+ console.log();+ }+ }+ } else {+ console.error("❌ Failed to list VMs:", vmsResult.error);+ }++ // List all snapshots+ console.log("\nAll Snapshots:");+ console.log("─".repeat(50));+ const snapsResult = await client.snapshots();+ if (snapsResult.success) {+ if (snapsResult.snapshots.length === 0) {+ console.log(" (no snapshots found)");+ } else {+ for (const snap of snapsResult.snapshots) {+ console.log(` ${snap.snapshot_name}`);+ console.log(` VM ID: ${snap.vm_id}`);+ console.log(` Command: ${snap.command ?? "(initial)"}`);+ console.log(` S3: ${snap.s3_key ?? "(local only)"}`);+ console.log(` Created: ${snap.created_at}`);+ console.log();+ }+ }+ } else {+ console.error("❌ Failed to list snapshots:", snapsResult.error);+ }+}++main().catch(console.error);+diff --git a/sdk/js/examples/time-travel.ts b/sdk/js/examples/time-travel.tsnew file mode 100644index 00000000..3b13563d--- /dev/null+++ b/sdk/js/examples/time-travel.ts@@ -0,0 +1,79 @@+/**+ * Time travel test - create files, snapshot, modify, restore+ *+ * Usage: npx tsx examples/time-travel.ts+ */++import { Client } from "../src/index.js"++const API_KEY = process.env.WORLDS_API_KEY ?? "ws_test_key";++async function main() {+ console.log("⏰ Worlds SDK - Time Travel Test\n");++ const client = new Client(API_KEY);++ // Create sandbox+ console.log("Creating sandbox...");+ const createResult = await client.create("time-travel-test");+ if (!createResult.success) {+ console.error("❌ Failed:", createResult.error);+ process.exit(1);+ }+ const sandbox = createResult.sandbox;+ console.log("✅ Sandbox created\n");++ // Step 1: Create a file+ console.log("Step 1: Creating file with 'hello'...");+ await sandbox.run("echo 'hello' > test.txt");+ const read1 = await sandbox.run("cat test.txt");+ if (read1.success) {+ console.log(` Contents: ${read1.stdout.trim()}`);+ console.log(` Snapshot: ${read1.snapshot}\n`);+ }++ // Save this snapshot name+ const snapsAfterStep1 = await sandbox.snapshots();+ const step1Snapshot = snapsAfterStep1.success+ ? snapsAfterStep1.snapshots[snapsAfterStep1.snapshots.length - 1]?.snapshot_name+ : null;++ // Step 2: Modify the file+ console.log("Step 2: Appending 'world' to file...");+ await sandbox.run("echo 'world' >> test.txt");+ const read2 = await sandbox.run("cat test.txt");+ if (read2.success) {+ console.log(` Contents: ${read2.stdout.trim().replace(/\n/g, ', ')}\n`);+ }++ // Step 3: Time travel back!+ if (step1Snapshot) {+ console.log(`Step 3: Restoring to snapshot '${step1Snapshot}'...`);+ const restoreResult = await sandbox.restore(step1Snapshot);+ if (restoreResult.success) {+ console.log("✅ Restored!\n");+ }++ // Verify+ console.log("Step 4: Verifying file is back to 'hello' only...");+ const read3 = await sandbox.run("cat test.txt");+ if (read3.success) {+ console.log(` Contents: ${read3.stdout.trim()}`);+ if (read3.stdout.trim() === "hello") {+ console.log(" ✅ Time travel successful!\n");+ } else {+ console.log(" ❌ Unexpected content\n");+ }+ }+ }++ // Cleanup+ console.log("Cleaning up...");+ await sandbox.destroy();+ console.log("✅ Done!\n");++ console.log("🎉 Time travel test complete!");+}++main().catch(console.error);+diff --git a/sdk/js/package-lock.json b/sdk/js/package-lock.jsonindex 39fe38e0..8b3e8863 100644--- a/sdk/js/package-lock.json+++ b/sdk/js/package-lock.json@@ -1,17 +1,571 @@{- "name": "opensandbox",+ "name": "worlds","version": "1.0.0","lockfileVersion": 3,"requires": true,"packages": {"": {- "name": "opensandbox",+ "name": "worlds","version": "1.0.0","license": "ISC","devDependencies": {+ "@types/node": "^25.0.0",+ "tsx": "^4.19.0","typescript": "^5.9.3"}},+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.1.tgz",+ "integrity": "sha512-HHB50pdsBX6k47S4u5g/CaLjqS3qwaOVE5ILsq64jyzgMhLuCuZ8rGzM9yhsAjfjkbgUPMzZEPa7DAp7yz6vuA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.1.tgz",+ "integrity": "sha512-kFqa6/UcaTbGm/NncN9kzVOODjhZW8e+FRdSeypWe6j33gzclHtwlANs26JrupOntlcWmB0u8+8HZo8s7thHvg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.1.tgz",+ "integrity": "sha512-45fuKmAJpxnQWixOGCrS+ro4Uvb4Re9+UTieUY2f8AEc+t7d4AaZ6eUJ3Hva7dtrxAAWHtlEFsXFMAgNnGU9uQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.1.tgz",+ "integrity": "sha512-LBEpOz0BsgMEeHgenf5aqmn/lLNTFXVfoWMUox8CtWWYK9X4jmQzWjoGoNb8lmAYml/tQ/Ysvm8q7szu7BoxRQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.1.tgz",+ "integrity": "sha512-veg7fL8eMSCVKL7IW4pxb54QERtedFDfY/ASrumK/SbFsXnRazxY4YykN/THYqFnFwJ0aVjiUrVG2PwcdAEqQQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.1.tgz",+ "integrity": "sha512-+3ELd+nTzhfWb07Vol7EZ+5PTbJ/u74nC6iv4/lwIU99Ip5uuY6QoIf0Hn4m2HoV0qcnRivN3KSqc+FyCHjoVQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.1.tgz",+ "integrity": "sha512-/8Rfgns4XD9XOSXlzUDepG8PX+AVWHliYlUkFI3K3GB6tqbdjYqdhcb4BKRd7C0BhZSoaCxhv8kTcBrcZWP+xg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.1.tgz",+ "integrity": "sha512-GITpD8dK9C+r+5yRT/UKVT36h/DQLOHdwGVwwoHidlnA168oD3uxA878XloXebK4Ul3gDBBIvEdL7go9gCUFzQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.1.tgz",+ "integrity": "sha512-ieMID0JRZY/ZeCrsFQ3Y3NlHNCqIhTprJfDgSB3/lv5jJZ8FX3hqPyXWhe+gvS5ARMBJ242PM+VNz/ctNj//eA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.1.tgz",+ "integrity": "sha512-W9//kCrh/6in9rWIBdKaMtuTTzNj6jSeG/haWBADqLLa9P8O5YSRDzgD5y9QBok4AYlzS6ARHifAb75V6G670Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.1.tgz",+ "integrity": "sha512-VIUV4z8GD8rtSVMfAj1aXFahsi/+tcoXXNYmXgzISL+KB381vbSTNdeZHHHIYqFyXcoEhu9n5cT+05tRv13rlw==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.1.tgz",+ "integrity": "sha512-l4rfiiJRN7sTNI//ff65zJ9z8U+k6zcCg0LALU5iEWzY+a1mVZ8iWC1k5EsNKThZ7XCQ6YWtsZ8EWYm7r1UEsg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.1.tgz",+ "integrity": "sha512-U0bEuAOLvO/DWFdygTHWY8C067FXz+UbzKgxYhXC0fDieFa0kDIra1FAhsAARRJbvEyso8aAqvPdNxzWuStBnA==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.1.tgz",+ "integrity": "sha512-NzdQ/Xwu6vPSf/GkdmRNsOfIeSGnh7muundsWItmBsVpMoNPVpM61qNzAVY3pZ1glzzAxLR40UyYM23eaDDbYQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.1.tgz",+ "integrity": "sha512-7zlw8p3IApcsN7mFw0O1Z1PyEk6PlKMu18roImfl3iQHTnr/yAfYv6s4hXPidbDoI2Q0pW+5xeoM4eTCC0UdrQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.1.tgz",+ "integrity": "sha512-cGj5wli+G+nkVQdZo3+7FDKC25Uh4ZVwOAK6A06Hsvgr8WqBBuOy/1s+PUEd/6Je+vjfm6stX0kmib5b/O2Ykw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.1.tgz",+ "integrity": "sha512-z3H/HYI9MM0HTv3hQZ81f+AKb+yEoCRlUby1F80vbQ5XdzEMyY/9iNlAmhqiBKw4MJXwfgsh7ERGEOhrM1niMA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.1.tgz",+ "integrity": "sha512-wzC24DxAvk8Em01YmVXyjl96Mr+ecTPyOuADAvjGg+fyBpGmxmcr2E5ttf7Im8D0sXZihpxzO1isus8MdjMCXQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.1.tgz",+ "integrity": "sha512-1YQ8ybGi2yIXswu6eNzJsrYIGFpnlzEWRl6iR5gMgmsrR0FcNoV1m9k9sc3PuP5rUBLshOZylc9nqSgymI+TYg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.1.tgz",+ "integrity": "sha512-5Z+DzLCrq5wmU7RDaMDe2DVXMRm2tTDvX2KU14JJVBN2CT/qov7XVix85QoJqHltpvAOZUAc3ndU56HSMWrv8g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.1.tgz",+ "integrity": "sha512-Q73ENzIdPF5jap4wqLtsfh8YbYSZ8Q0wnxplOlZUOyZy7B4ZKW8DXGWgTCZmF8VWD7Tciwv5F4NsRf6vYlZtqg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.1.tgz",+ "integrity": "sha512-ajbHrGM/XiK+sXM0JzEbJAen+0E+JMQZ2l4RR4VFwvV9JEERx+oxtgkpoKv1SevhjavK2z2ReHk32pjzktWbGg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.1.tgz",+ "integrity": "sha512-IPUW+y4VIjuDVn+OMzHc5FV4GubIwPnsz6ubkvN8cuhEqH81NovB53IUlrlBkPMEPxvNnf79MGBoz8rZ2iW8HA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.1.tgz",+ "integrity": "sha512-RIVRWiljWA6CdVu8zkWcRmGP7iRRIIwvhDKem8UMBjPql2TXM5PkDVvvrzMtj1V+WFPB4K7zkIGM7VzRtFkjdg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.1.tgz",+ "integrity": "sha512-2BR5M8CPbptC1AK5JbJT1fWrHLvejwZidKx3UMSF0ecHMa+smhi16drIrCEggkgviBwLYd5nwrFLSl5Kho96RQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.1.tgz",+ "integrity": "sha512-d5X6RMYv6taIymSk8JBP+nxv8DQAMY6A51GPgusqLdK9wBz5wWIXy1KjTck6HnjE9hqJzJRdk+1p/t5soSbCtw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@types/node": {+ "version": "25.0.0",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-25.0.0.tgz",+ "integrity": "sha512-rl78HwuZlaDIUSeUKkmogkhebA+8K1Hy7tddZuJ3D0xV8pZSfsYGTsliGUol1JPzu9EKnTxPC4L1fiWouStRew==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~7.16.0"+ }+ },+ "node_modules/esbuild": {+ "version": "0.27.1",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.1.tgz",+ "integrity": "sha512-yY35KZckJJuVVPXpvjgxiCuVEJT67F6zDeVTv4rizyPrfGBUpZQsvmxnN+C371c2esD/hNMjj4tpBhuueLN7aA==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.1",+ "@esbuild/android-arm": "0.27.1",+ "@esbuild/android-arm64": "0.27.1",+ "@esbuild/android-x64": "0.27.1",+ "@esbuild/darwin-arm64": "0.27.1",+ "@esbuild/darwin-x64": "0.27.1",+ "@esbuild/freebsd-arm64": "0.27.1",+ "@esbuild/freebsd-x64": "0.27.1",+ "@esbuild/linux-arm": "0.27.1",+ "@esbuild/linux-arm64": "0.27.1",+ "@esbuild/linux-ia32": "0.27.1",+ "@esbuild/linux-loong64": "0.27.1",+ "@esbuild/linux-mips64el": "0.27.1",+ "@esbuild/linux-ppc64": "0.27.1",+ "@esbuild/linux-riscv64": "0.27.1",+ "@esbuild/linux-s390x": "0.27.1",+ "@esbuild/linux-x64": "0.27.1",+ "@esbuild/netbsd-arm64": "0.27.1",+ "@esbuild/netbsd-x64": "0.27.1",+ "@esbuild/openbsd-arm64": "0.27.1",+ "@esbuild/openbsd-x64": "0.27.1",+ "@esbuild/openharmony-arm64": "0.27.1",+ "@esbuild/sunos-x64": "0.27.1",+ "@esbuild/win32-arm64": "0.27.1",+ "@esbuild/win32-ia32": "0.27.1",+ "@esbuild/win32-x64": "0.27.1"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.13.0",+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz",+ "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "node_modules/tsx": {+ "version": "4.21.0",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",+ "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.27.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },"node_modules/typescript": {"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",@@ -25,6 +579,13 @@"engines": {"node": ">=14.17"}+ },+ "node_modules/undici-types": {+ "version": "7.16.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",+ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",+ "dev": true,+ "license": "MIT"}}}diff --git a/sdk/js/package.json b/sdk/js/package.jsonindex 9b95053f..54fbb86b 100644--- a/sdk/js/package.json+++ b/sdk/js/package.json@@ -1,6 +1,6 @@{- "name": "opensandbox",- "version": "0.1.0",+ "name": "worlds",+ "version": "1.0.0","description": "SDK for World Service sandbox VMs","type": "module","main": "./dist/index.js",@@ -16,12 +16,17 @@],"scripts": {"build": "tsc",- "prepublishOnly": "npm run build"+ "prepublishOnly": "npm run build",+ "example:basic": "tsx examples/basic.ts",+ "example:time-travel": "tsx examples/time-travel.ts",+ "example:list": "tsx examples/list-vms.ts"},"keywords": [],"author": "","license": "ISC","devDependencies": {+ "@types/node": "^25.0.0",+ "tsx": "^4.19.0","typescript": "^5.9.3"}}diff --git a/sdk/js/src/world.ts b/sdk/js/src/client.tssimilarity index 65%rename from sdk/js/src/world.tsrename to sdk/js/src/client.tsindex 11ef510c..be025e65 100644--- a/sdk/js/src/world.ts+++ b/sdk/js/src/client.ts@@ -1,15 +1,15 @@import Sandbox from "./sandbox.js"-import type { CreateVMResponse } from "./types.js"+import type { CreateVMResponse, SnapshotsResult, VMInfo } from "./types.js"type CreateResult =| { success: true; sandbox: Sandbox }| { success: false; error: string };type ListResult =- | { success: true; vms: Array<{ name: string; status: string }> }+ | { success: true; vms: VMInfo[] }| { success: false; error: string };-class World {+class Client {constructor(private readonly api_key: string,private readonly base_url: string = "http://localhost:4000"@@ -22,6 +22,31 @@ class World {};}+ /**+ * List all snapshots across all VMs for the current user.+ */+ async snapshots(): Promise<SnapshotsResult> {+ try {+ const response = await fetch(`${this.base_url}/snapshots`, {+ method: "GET",+ headers: this.headers,+ });++ if (!response.ok) {+ const data = await response.json();+ return { success: false, error: data.error ?? `HTTP ${response.status}` };+ }++ const data = await response.json();+ return { success: true, snapshots: data.snapshots };+ } catch (err) {+ return { success: false, error: err instanceof Error ? err.message : "Unknown error" };+ }+ }++ /**+ * Create a new sandbox VM.+ */async create(name: string): Promise<CreateResult> {try {const response = await fetch(`${this.base_url}/vms`, {@@ -44,6 +69,9 @@ class World {}}+ /**+ * List all VMs for the current user.+ */async list(): Promise<ListResult> {try {const response = await fetch(`${this.base_url}/vms`, {@@ -63,9 +91,12 @@ class World {}}+ /**+ * Get a reference to an existing sandbox by name.+ */sandbox(name: string): Sandbox {return new Sandbox(name, this.api_key, this.base_url);}}-export default World+export default Clientdiff --git a/sdk/js/src/index.ts b/sdk/js/src/index.tsindex 3bf4148b..e40139da 100644--- a/sdk/js/src/index.ts+++ b/sdk/js/src/index.ts@@ -1,4 +1,3 @@-export { default as World } from "./world.js"+export { default as Client } from "./client.js"export { default as Sandbox } from "./sandbox.js"export * from "./types.js"-diff --git a/sdk/js/src/sandbox.ts b/sdk/js/src/sandbox.tsindex 2ce62094..07042dba 100644--- a/sdk/js/src/sandbox.ts+++ b/sdk/js/src/sandbox.ts@@ -1,4 +1,4 @@-import type { CommandResult, SnapshotsResult, VMInfoResult, SimpleResult } from "./types.js"+import type { CommandResult, SnapshotsResult, VMInfoResult, SimpleResult, ExportResult } from "./types.js"class Sandbox {constructor(@@ -14,6 +14,9 @@ class Sandbox {};}+ /**+ * Execute a shell command. A snapshot is automatically taken after each successful command.+ */async run(command: string): Promise<CommandResult> {try {const response = await fetch(`${this.base_url}/vms/${this.name}/run`, {@@ -40,6 +43,9 @@ class Sandbox {}}+ /**+ * Get detailed information about the VM.+ */async info(): Promise<VMInfoResult> {try {const response = await fetch(`${this.base_url}/vms/${this.name}`, {@@ -59,6 +65,9 @@ class Sandbox {}}+ /**+ * Delete the VM and all its snapshots permanently.+ */async destroy(): Promise<SimpleResult> {try {const response = await fetch(`${this.base_url}/vms/${this.name}`, {@@ -78,6 +87,9 @@ class Sandbox {}}+ /**+ * Clear all files in the workspace without creating a snapshot.+ */async wipe(): Promise<SimpleResult> {try {const response = await fetch(`${this.base_url}/vms/${this.name}/wipe`, {@@ -97,6 +109,9 @@ class Sandbox {}}+ /**+ * List all snapshots for this sandbox.+ */async snapshots(): Promise<SnapshotsResult> {try {const response = await fetch(`${this.base_url}/vms/${this.name}/snapshots`, {@@ -116,6 +131,9 @@ class Sandbox {}}+ /**+ * Restore workspace to a previous snapshot. All snapshots after this point are deleted.+ */async restore(snapshot_name: string): Promise<SimpleResult> {try {const response = await fetch(@@ -137,6 +155,102 @@ class Sandbox {return { success: false, error: err instanceof Error ? err.message : "Unknown error" };}}++ /**+ * Export current workspace (or a snapshot) to S3.+ * @param snapshot - Snapshot name to export, defaults to "workspace" (current state)+ * @param key - Optional custom S3 key path+ */+ async export(options: { snapshot?: string; key?: string } = {}): Promise<ExportResult> {+ try {+ const response = await fetch(`${this.base_url}/vms/${this.name}/export`, {+ method: "POST",+ headers: this.headers,+ body: JSON.stringify(options),+ });++ if (!response.ok) {+ const data = await response.json();+ return { success: false, error: data.error ?? `HTTP ${response.status}` };+ }++ const data = await response.json();+ return {+ success: true,+ export: {+ bucket: data.bucket,+ key: data.key,+ size: data.size,+ sha256: data.sha256,+ url: data.url,+ },+ };+ } catch (err) {+ return { success: false, error: err instanceof Error ? err.message : "Unknown error" };+ }+ }++ /**+ * Export a specific snapshot to S3.+ * @param snapshot_name - Name of the snapshot to export+ * @param key - Optional custom S3 key path+ */+ async exportSnapshot(snapshot_name: string, key?: string): Promise<ExportResult> {+ try {+ const response = await fetch(+ `${this.base_url}/vms/${this.name}/snapshots/${snapshot_name}/export`,+ {+ method: "POST",+ headers: this.headers,+ body: JSON.stringify(key ? { key } : {}),+ }+ );++ if (!response.ok) {+ const data = await response.json();+ return { success: false, error: data.error ?? `HTTP ${response.status}` };+ }++ const data = await response.json();+ return {+ success: true,+ export: {+ bucket: data.bucket,+ key: data.key,+ size: data.size,+ sha256: data.sha256,+ url: data.url,+ },+ };+ } catch (err) {+ return { success: false, error: err instanceof Error ? err.message : "Unknown error" };+ }+ }++ /**+ * Import a snapshot from S3.+ * @param name - Name for the new snapshot+ * @param key - S3 key to import from+ */+ async import(name: string, key: string): Promise<SimpleResult> {+ try {+ const response = await fetch(`${this.base_url}/vms/${this.name}/import`, {+ method: "POST",+ headers: this.headers,+ body: JSON.stringify({ name, key }),+ });++ if (!response.ok) {+ const data = await response.json();+ return { success: false, error: data.error ?? `HTTP ${response.status}` };+ }++ const data = await response.json();+ return { success: true, message: data.message };+ } catch (err) {+ return { success: false, error: err instanceof Error ? err.message : "Unknown error" };+ }+ }}export default Sandboxdiff --git a/sdk/js/src/types.ts b/sdk/js/src/types.tsindex 8245753f..1998658d 100644--- a/sdk/js/src/types.ts+++ b/sdk/js/src/types.ts@@ -1,49 +1,68 @@// API Response Types+// Commandsexport type CommandResult =- | { success: true; stdout: string; stderr: string; exitCode: number; snapshot: string }- | { success: false; error: string };+ | { success: true; stdout: string; stderr: string; exitCode: number; snapshot: string }+ | { success: false; error: string };+// Snapshotsexport type Snapshot = {- id: number;- vm_name: string;- snapshot_name: string;- command: string | null;- created_at: string;+ id: number;+ vm_id: number;+ snapshot_name: string;+ command: string | null;+ s3_key: string | null;+ created_at: string;};export type SnapshotsResult =- | { success: true; snapshots: Snapshot[] }- | { success: false; error: string };+ | { success: true; snapshots: Snapshot[] }+ | { success: false; error: string };+// VMsexport type VMInfo = {- id: number;- name: string;- base_vm: string;- status: string;- agent_port: number;- ssh_port: number;- created_at: string;- updated_at: string;- agentHealthy: boolean;+ id: number;+ user_id: number;+ name: string;+ base_vm: string;+ status: string;+ agent_port: number;+ ssh_port: number;+ created_at: string;+ updated_at: string;+ agentHealthy?: boolean;};export type VMInfoResult =- | { success: true; vm: VMInfo }- | { success: false; error: string };--export type SimpleResult =- | { success: true; message: string }- | { success: false; error: string };+ | { success: true; vm: VMInfo }+ | { success: false; error: string };export type CreateVMResponse = {- id: number;- name: string;- api_key: string;- base_vm: string;- status: string;- agent_port: number;- ssh_port: number;- created_at: string;- updated_at: string;+ id: number;+ user_id: number;+ name: string;+ base_vm: string;+ status: string;+ agent_port: number;+ ssh_port: number;+ created_at: string;+ updated_at: string;+};++// S3 Export/Import+export type ExportInfo = {+ bucket: string;+ key: string;+ size: number;+ sha256: string;+ url: string;};++export type ExportResult =+ | { success: true; export: ExportInfo }+ | { success: false; error: string };++// Generic+export type SimpleResult =+ | { success: true; message: string }+ | { success: false; error: string };diff --git a/sdk/js/tsconfig.json b/sdk/js/tsconfig.jsonindex bdbad8c9..ddd77a17 100644--- a/sdk/js/tsconfig.json+++ b/sdk/js/tsconfig.json@@ -1,5 +1,7 @@{// Visit https://aka.ms/tsconfig to read more about this file+ "include": ["src"],+ "exclude": ["examples", "dist", "node_modules"],"compilerOptions": {// File Layout"rootDir": "./src",@@ -9,11 +11,7 @@// See also https://aka.ms/tsconfig/module"module": "nodenext","target": "esnext",- "types": [],- // For nodejs:- // "lib": ["esnext"],- // "types": ["node"],- // and npm install -D @types/node+ "types": ["node"],// Other Outputs"sourceMap": true,diff --git a/service/.gitignore b/service/.gitignorenew file mode 100644index 00000000..c21a07cd--- /dev/null+++ b/service/.gitignore@@ -0,0 +1,3 @@+.env+node_modules+vms.db\ No newline at end of filediff --git a/service/README.md b/service/README.mdnew file mode 100644index 00000000..48e6d0b6--- /dev/null+++ b/service/README.md@@ -0,0 +1,114 @@+# World Service - Sandbox VM Manager++Multi-runtime sandbox orchestrator with instant Btrfs snapshots.++## Quick Start++```bash+npm install+npm run dev+```++## Environment Variables++### Runtime Selection++| Variable | Default | Description |+|----------|---------|-------------|+| `SANDBOX_RUNTIME` | `virtualbox` | Which runtime to use: `docker`, `virtualbox`, or `firecracker` |++### Docker Runtime++| Variable | Default | Description |+|----------|---------|-------------|+| `DOCKER_IMAGE` | `ubuntu:22.04` | Base Docker image |+| `DOCKER_BTRFS_PATH` | `/var/lib/sandbox-btrfs` | Path for Btrfs-backed storage |+| `DOCKER_NETWORK` | `none` | Docker network mode |++### VirtualBox Runtime++| Variable | Default | Description |+|----------|---------|-------------|+| `VBOX_BASE_VM` | `dev-1` | Name of the base VirtualBox VM |+| `VBOX_BASE_SNAPSHOT` | `base` | Name of the clean snapshot to clone from |++### Firecracker Runtime (Linux only)++| Variable | Default | Description |+|----------|---------|-------------|+| `FC_BIN` | `/usr/local/bin/firecracker` | Path to Firecracker binary |+| `FC_KERNEL` | `/var/lib/firecracker/vmlinux` | Path to kernel image |+| `FC_ROOTFS` | `/var/lib/firecracker/rootfs.ext4` | Path to root filesystem |+| `FC_BTRFS_PATH` | `/var/lib/firecracker-btrfs` | Path for Btrfs-backed storage |++### S3 Export/Import++| Variable | Default | Description |+|----------|---------|-------------|+| `S3_BUCKET` | - | S3 bucket for snapshot storage |+| `S3_REGION` | `us-east-1` | AWS region |+| `S3_PREFIX` | `snapshots/` | Key prefix for uploads |++### Server++| Variable | Default | Description |+|----------|---------|-------------|+| `PORT` | `4000` | HTTP server port |++## Example `.env`++```bash+# Use Docker for development+SANDBOX_RUNTIME=docker+DOCKER_IMAGE=ubuntu:22.04++# Or use VirtualBox+# SANDBOX_RUNTIME=virtualbox+# VBOX_BASE_VM=dev-1+# VBOX_BASE_SNAPSHOT=base++# Optional: S3 for snapshot export+# S3_BUCKET=my-sandbox-snapshots+# S3_REGION=us-west-2+```++## Runtime Comparison++| Feature | Docker | VirtualBox | Firecracker |+|---------|--------|------------|-------------|+| Startup time | ~1s | ~30s | ~125ms |+| Isolation | Container | Full VM | microVM |+| Platforms | All | All | Linux + KVM |+| Btrfs snapshots | ✅ | ✅ | ✅ |+| Network isolation | ✅ | ✅ | ✅ |+| Best for | Development | Testing | Production |++## API Usage++```bash+# Create API key+curl -X POST http://localhost:4000/api-keys++# Create sandbox+curl -X POST http://localhost:4000/vms \+ -H "x-api-key: YOUR_KEY" \+ -H "Content-Type: application/json" \+ -d '{"name": "my-sandbox"}'++# Run command+curl -X POST http://localhost:4000/vms/my-sandbox/run \+ -H "x-api-key: YOUR_KEY" \+ -H "Content-Type: application/json" \+ -d '{"command": "echo hello"}'++# List snapshots+curl http://localhost:4000/vms/my-sandbox/snapshots \+ -H "x-api-key: YOUR_KEY"++# Restore to snapshot+curl -X POST http://localhost:4000/vms/my-sandbox/restore \+ -H "x-api-key: YOUR_KEY" \+ -H "Content-Type: application/json" \+ -d '{"snapshot": "initial"}'+```+diff --git a/service/agent/agent.py b/service/agent/agent.pynew file mode 100644index 00000000..db229d33--- /dev/null+++ b/service/agent/agent.py@@ -0,0 +1,341 @@+#!/usr/bin/env python3+"""+Sandbox Agent with Btrfs snapshots - runs inside the VM+"""++import subprocess+import os+import json+import shutil+import tarfile+import hashlib+from http.server import HTTPServer, BaseHTTPRequestHandler+from datetime import datetime++PORT = 3000+WORKSPACE = "/btrfs/workspace" # Btrfs subvolume (real path, not symlink)+SNAPSHOTS_DIR = "/btrfs/snapshots" # Where snapshots are stored+EXPORTS_DIR = "/btrfs/exports" # Where exported archives are stored++# Ensure directories exist+os.makedirs(WORKSPACE, exist_ok=True)+os.makedirs(SNAPSHOTS_DIR, exist_ok=True)+os.makedirs(EXPORTS_DIR, exist_ok=True)+++def run_cmd(cmd, timeout=30, cwd=None):+ """Run a shell command and return result"""+ try:+ result = subprocess.run(+ cmd,+ shell=True,+ capture_output=True,+ text=True,+ timeout=timeout,+ cwd=cwd or WORKSPACE,+ )+ return {+ "stdout": result.stdout,+ "stderr": result.stderr,+ "exitCode": result.returncode,+ }+ except subprocess.TimeoutExpired:+ return {"stdout": "", "stderr": "Command timed out", "exitCode": 124}+ except Exception as e:+ return {"stdout": "", "stderr": str(e), "exitCode": 1}+++def take_snapshot(name):+ """Take a Btrfs snapshot of the workspace"""+ snapshot_path = os.path.join(SNAPSHOTS_DIR, name)++ # Delete if exists (for overwrites)+ if os.path.exists(snapshot_path):+ subprocess.run(f"sudo btrfs subvolume delete {snapshot_path}", shell=True)++ result = subprocess.run(+ f"sudo btrfs subvolume snapshot {WORKSPACE} {snapshot_path}",+ shell=True,+ capture_output=True,+ text=True,+ )++ if result.returncode != 0:+ raise Exception(f"Snapshot failed: {result.stderr}")++ return snapshot_path+++def restore_snapshot(name):+ """Restore workspace from a Btrfs snapshot"""+ snapshot_path = os.path.join(SNAPSHOTS_DIR, name)++ if not os.path.exists(snapshot_path):+ raise Exception(f"Snapshot '{name}' not found")++ # Delete current workspace subvolume+ subprocess.run(f"sudo btrfs subvolume delete {WORKSPACE}", shell=True)++ # Create new snapshot from the saved one+ result = subprocess.run(+ f"sudo btrfs subvolume snapshot {snapshot_path} {WORKSPACE}",+ shell=True,+ capture_output=True,+ text=True,+ )++ if result.returncode != 0:+ raise Exception(f"Restore failed: {result.stderr}")++ # Fix permissions+ subprocess.run(f"sudo chown -R $(whoami):$(whoami) {WORKSPACE}", shell=True)+++def list_snapshots():+ """List all snapshots"""+ snapshots = []+ if os.path.exists(SNAPSHOTS_DIR):+ for name in sorted(os.listdir(SNAPSHOTS_DIR)):+ path = os.path.join(SNAPSHOTS_DIR, name)+ stat = os.stat(path)+ snapshots.append({+ "name": name,+ "created_at": datetime.fromtimestamp(stat.st_ctime).isoformat(),+ })+ return snapshots+++def delete_snapshot(name):+ """Delete a snapshot"""+ snapshot_path = os.path.join(SNAPSHOTS_DIR, name)+ if os.path.exists(snapshot_path):+ subprocess.run(f"sudo btrfs subvolume delete {snapshot_path}", shell=True)+++def export_snapshot_to_file(name):+ """Export a snapshot to a local tar.gz file"""+ snapshot_path = os.path.join(SNAPSHOTS_DIR, name)+ if not os.path.exists(snapshot_path):+ if name == "workspace":+ snapshot_path = WORKSPACE+ else:+ raise Exception(f"Snapshot '{name}' not found")++ export_name = f"{name}_{int(datetime.now().timestamp())}.tar.gz"+ export_path = os.path.join(EXPORTS_DIR, export_name)++ with tarfile.open(export_path, 'w:gz') as tar:+ tar.add(snapshot_path, arcname='workspace')++ size = os.path.getsize(export_path)++ # Calculate hash for integrity+ with open(export_path, 'rb') as f:+ file_hash = hashlib.sha256(f.read()).hexdigest()++ return {"path": export_path, "name": export_name, "size": size, "sha256": file_hash}+++def import_from_file(name, file_path):+ """Import a snapshot from a local tar.gz file"""+ snapshot_path = os.path.join(SNAPSHOTS_DIR, name)++ # Delete if exists+ if os.path.exists(snapshot_path):+ subprocess.run(f"sudo btrfs subvolume delete {snapshot_path}", shell=True)++ # Create new subvolume+ subprocess.run(f"sudo btrfs subvolume create {snapshot_path}", shell=True, check=True)++ # Extract+ with tarfile.open(file_path, 'r:gz') as tar:+ tar.extractall(snapshot_path, filter='data')++ # Move contents from workspace subfolder to root+ workspace_subdir = os.path.join(snapshot_path, 'workspace')+ if os.path.exists(workspace_subdir):+ for item in os.listdir(workspace_subdir):+ shutil.move(os.path.join(workspace_subdir, item), snapshot_path)+ os.rmdir(workspace_subdir)++ # Fix permissions+ subprocess.run(f"sudo chown -R $(whoami):$(whoami) {snapshot_path}", shell=True)++ return snapshot_path+++def list_exports():+ """List all exported archives"""+ exports = []+ if os.path.exists(EXPORTS_DIR):+ for name in sorted(os.listdir(EXPORTS_DIR)):+ path = os.path.join(EXPORTS_DIR, name)+ stat = os.stat(path)+ exports.append({+ "name": name,+ "size": stat.st_size,+ "created_at": datetime.fromtimestamp(stat.st_ctime).isoformat(),+ })+ return exports+++class AgentHandler(BaseHTTPRequestHandler):+ def _send_json(self, data, status=200):+ self.send_response(status)+ self.send_header("Content-Type", "application/json")+ self.end_headers()+ self.wfile.write(json.dumps(data).encode())++ def _read_body(self):+ length = int(self.headers.get("Content-Length", 0))+ if length:+ return json.loads(self.rfile.read(length))+ return {}++ def do_GET(self):+ if self.path == "/health":+ self._send_json({+ "status": "ok",+ "workspace": WORKSPACE,+ "snapshots_dir": SNAPSHOTS_DIR,+ "pid": os.getpid(),+ })+ elif self.path == "/snapshots":+ self._send_json({"snapshots": list_snapshots()})+ elif self.path == "/exports":+ self._send_json({"exports": list_exports()})+ elif self.path == "/workspace":+ # List workspace contents+ try:+ files = os.listdir(WORKSPACE)+ self._send_json({"files": files})+ except Exception as e:+ self._send_json({"error": str(e)}, 500)+ elif self.path.startswith("/download/"):+ # Stream a file from exports directory+ filename = self.path.replace("/download/", "")+ file_path = os.path.join(EXPORTS_DIR, filename)+ if not os.path.exists(file_path):+ self._send_json({"error": "File not found"}, 404)+ return+ try:+ self.send_response(200)+ self.send_header("Content-Type", "application/gzip")+ self.send_header("Content-Length", os.path.getsize(file_path))+ self.send_header("Content-Disposition", f'attachment; filename="{filename}"')+ self.end_headers()+ with open(file_path, 'rb') as f:+ shutil.copyfileobj(f, self.wfile)+ # Clean up after download+ os.remove(file_path)+ except Exception as e:+ self._send_json({"error": str(e)}, 500)+ else:+ self._send_json({"error": "Not found"}, 404)++ def do_PUT(self):+ """Handle file uploads for import"""+ if self.path.startswith("/upload/"):+ snapshot_name = self.path.replace("/upload/", "")+ try:+ # Read the file data+ content_length = int(self.headers.get("Content-Length", 0))+ file_path = os.path.join(EXPORTS_DIR, f"upload_{snapshot_name}.tar.gz")++ # Stream to file+ with open(file_path, 'wb') as f:+ remaining = content_length+ while remaining > 0:+ chunk_size = min(8192, remaining)+ chunk = self.rfile.read(chunk_size)+ if not chunk:+ break+ f.write(chunk)+ remaining -= len(chunk)++ # Import the snapshot+ path = import_from_file(snapshot_name, file_path)++ # Clean up+ os.remove(file_path)++ self._send_json({"message": f"Imported snapshot {snapshot_name}", "path": path})+ except Exception as e:+ self._send_json({"error": str(e)}, 500)+ else:+ self._send_json({"error": "Not found"}, 404)++ def do_POST(self):+ body = self._read_body()++ if self.path == "/exec":+ cmd = body.get("command")+ timeout = body.get("timeout", 30)+ if not cmd:+ self._send_json({"error": "command required"}, 400)+ return+ result = run_cmd(cmd, timeout)+ self._send_json(result)++ elif self.path == "/snapshot":+ name = body.get("name", f"snap_{int(datetime.now().timestamp() * 1000)}")+ try:+ path = take_snapshot(name)+ self._send_json({"name": name, "path": path})+ except Exception as e:+ self._send_json({"error": str(e)}, 500)++ elif self.path == "/restore":+ name = body.get("name")+ if not name:+ self._send_json({"error": "name required"}, 400)+ return+ try:+ restore_snapshot(name)+ self._send_json({"message": f"Restored to {name}"})+ except Exception as e:+ self._send_json({"error": str(e)}, 500)++ elif self.path == "/wipe":+ # Wipe workspace contents (but keep the subvolume)+ for item in os.listdir(WORKSPACE):+ path = os.path.join(WORKSPACE, item)+ if os.path.isdir(path):+ shutil.rmtree(path)+ else:+ os.remove(path)+ self._send_json({"message": "Workspace wiped"})++ elif self.path == "/snapshot/delete":+ name = body.get("name")+ if not name:+ self._send_json({"error": "name required"}, 400)+ return+ try:+ delete_snapshot(name)+ self._send_json({"message": f"Deleted snapshot {name}"})+ except Exception as e:+ self._send_json({"error": str(e)}, 500)++ elif self.path == "/export":+ # Export snapshot to local file, return metadata (use GET /download/:name to fetch)+ name = body.get("name", "workspace")+ try:+ result = export_snapshot_to_file(name)+ self._send_json(result)+ except Exception as e:+ self._send_json({"error": str(e)}, 500)++ else:+ self._send_json({"error": "Not found"}, 404)++ def log_message(self, format, *args):+ print(f"[Agent] {args[0]}")+++if __name__ == "__main__":+ print(f"🚀 Sandbox agent starting on port {PORT}")+ print(f" Workspace: {WORKSPACE}")+ print(f" Snapshots: {SNAPSHOTS_DIR}")+ server = HTTPServer(("0.0.0.0", PORT), AgentHandler)+ server.serve_forever()diff --git a/service/docs/API.md b/service/docs/API.mdnew file mode 100644index 00000000..c8296b9c--- /dev/null+++ b/service/docs/API.md@@ -0,0 +1,326 @@+# World Service API Documentation++## Overview++World Service provides on-demand sandbox VMs with instant filesystem snapshots. Authentication is service-level — one API key for all operations.++**Base URL:** `http://localhost:4000`++---++## Authentication++All endpoints (except `/health` and `/api-keys`) require a service-level API key in the `x-api-key` header.++```+x-api-key: ws_abc123def456...+```++---++## API Keys++### Create API Key++```+POST /api-keys+Content-Type: application/json++{+ "name": "my-app" // optional+}+```++**Response (201):**+```json+{+ "id": 1,+ "key": "ws_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4",+ "name": "my-app",+ "created_at": "2024-12-09T19:30:00",+ "message": "Save your API key - it won't be shown again!"+}+```++### List API Keys++```+GET /api-keys+```++**Response:**+```json+{+ "api_keys": [+ {+ "id": 1,+ "key": "ws_a1b2c3...",+ "name": "my-app",+ "created_at": "2024-12-09T19:30:00"+ }+ ]+}+```++---++## Health Check++```+GET /health+```++**Response:**+```json+{+ "status": "ok",+ "timestamp": "2024-12-09T19:30:00.000Z"+}+```++---++## VM Management++### List All VMs++```+GET /vms+x-api-key: <api_key>+```++**Response:**+```json+{+ "vms": [+ {+ "id": 1,+ "name": "my-sandbox",+ "base_vm": "dev-1",+ "status": "running",+ "agent_port": 3333,+ "ssh_port": 2222,+ "created_at": "2024-12-09T19:30:00",+ "updated_at": "2024-12-09T19:30:15"+ }+ ]+}+```++### Create VM++```+POST /vms+x-api-key: <api_key>+Content-Type: application/json++{+ "name": "my-sandbox"+}+```++**Response (201):**+```json+{+ "id": 1,+ "name": "my-sandbox",+ "base_vm": "dev-1",+ "status": "running",+ "agent_port": 3333,+ "ssh_port": 2222,+ "created_at": "2024-12-09T19:30:00",+ "updated_at": "2024-12-09T19:30:15"+}+```++### Get VM Info++```+GET /vms/:name+x-api-key: <api_key>+```++**Response:**+```json+{+ "id": 1,+ "name": "my-sandbox",+ "base_vm": "dev-1",+ "status": "running",+ "agent_port": 3333,+ "ssh_port": 2222,+ "created_at": "2024-12-09T19:30:00",+ "updated_at": "2024-12-09T19:30:15",+ "agentHealthy": true+}+```++### Delete VM++```+DELETE /vms/:name+x-api-key: <api_key>+```++**Response:**+```json+{+ "message": "VM \"my-sandbox\" destroyed"+}+```++---++## Command Execution++### Run Command++Execute a shell command in the VM's workspace. A Btrfs snapshot is automatically taken after each command.++```+POST /vms/:name/run+x-api-key: <api_key>+Content-Type: application/json++{+ "command": "echo 'Hello World'",+ "timeout": 30+}+```++**Response:**+```json+{+ "stdout": "Hello World\n",+ "stderr": "",+ "exitCode": 0,+ "snapshot": "cmd_1702147200000"+}+```++### Wipe Workspace++```+POST /vms/:name/wipe+x-api-key: <api_key>+```++**Response:**+```json+{+ "message": "Workspace wiped"+}+```++---++## Snapshots++### List Snapshots++```+GET /vms/:name/snapshots+x-api-key: <api_key>+```++**Response:**+```json+{+ "snapshots": [+ {+ "id": 1,+ "vm_name": "my-sandbox",+ "snapshot_name": "initial",+ "command": null,+ "created_at": "2024-12-09T19:30:15"+ },+ {+ "id": 2,+ "vm_name": "my-sandbox",+ "snapshot_name": "cmd_1702147200000",+ "command": "npm install express",+ "created_at": "2024-12-09T19:31:00"+ }+ ]+}+```++### Restore Snapshot++```+POST /vms/:name/snapshots/:snapshot/restore+x-api-key: <api_key>+```++**Response:**+```json+{+ "message": "Restored to snapshot \"cmd_1702147200000\""+}+```++---++## Error Responses++```json+{+ "error": "Description of what went wrong"+}+```++| Code | Meaning |+|------|---------|+| `400` | Bad Request |+| `401` | API key required |+| `403` | Invalid API key |+| `404` | Not found |+| `500` | Server error |++---++## Example: Full Workflow++```bash+# 1. Create an API key+curl -X POST http://localhost:4000/api-keys \+ -H "Content-Type: application/json" \+ -d '{"name": "demo"}'+# Save the key!++# 2. Create a sandbox+curl -X POST http://localhost:4000/vms \+ -H "Content-Type: application/json" \+ -H "x-api-key: ws_your_key" \+ -d '{"name": "test"}'++# 3. Run commands+curl -X POST http://localhost:4000/vms/test/run \+ -H "Content-Type: application/json" \+ -H "x-api-key: ws_your_key" \+ -d '{"command": "echo hello > file.txt"}'++# 4. List snapshots+curl http://localhost:4000/vms/test/snapshots \+ -H "x-api-key: ws_your_key"++# 5. Restore to initial state+curl -X POST http://localhost:4000/vms/test/snapshots/initial/restore \+ -H "x-api-key: ws_your_key"++# 6. Cleanup+curl -X DELETE http://localhost:4000/vms/test \+ -H "x-api-key: ws_your_key"+```++---++## Environment Variables++| Variable | Default | Description |+|----------|---------|-------------|+| `PORT` | 4000 | API server port |+| `BASE_VM` | dev-1 | VirtualBox VM to clone from |+| `VM_USER` | user | SSH username for VMs |+| `VM_PASSWORD` | root | SSH password for VMs |+| `DB_PATH` | ./vms.db | SQLite database path |diff --git a/service/docs/openapi.yaml b/service/docs/openapi.yamlnew file mode 100644index 00000000..dc6fd87a--- /dev/null+++ b/service/docs/openapi.yaml@@ -0,0 +1,347 @@+openapi: 3.0.3+info:+ title: World Service API+ description: On-demand sandbox VMs with instant filesystem snapshots+ version: 1.0.0++servers:+ - url: http://localhost:4000+ description: Local development++components:+ securitySchemes:+ ApiKeyAuth:+ type: apiKey+ in: header+ name: x-api-key++ schemas:+ VM:+ type: object+ properties:+ id:+ type: integer+ name:+ type: string+ api_key:+ type: string+ description: Only returned on creation+ base_vm:+ type: string+ status:+ type: string+ enum: [creating, running, stopped, error]+ agent_port:+ type: integer+ ssh_port:+ type: integer+ created_at:+ type: string+ format: date-time+ updated_at:+ type: string+ format: date-time+ agentHealthy:+ type: boolean++ ExecResult:+ type: object+ properties:+ stdout:+ type: string+ stderr:+ type: string+ exitCode:+ type: integer+ snapshot:+ type: string+ description: Name of snapshot taken after command++ Snapshot:+ type: object+ properties:+ id:+ type: integer+ vm_name:+ type: string+ snapshot_name:+ type: string+ command:+ type: string+ nullable: true+ created_at:+ type: string+ format: date-time++ Error:+ type: object+ properties:+ error:+ type: string++paths:+ /health:+ get:+ summary: Health check+ responses:+ '200':+ description: Service is healthy+ content:+ application/json:+ schema:+ type: object+ properties:+ status:+ type: string+ timestamp:+ type: string++ /vms:+ get:+ summary: List all VMs+ responses:+ '200':+ description: List of VMs+ content:+ application/json:+ schema:+ type: object+ properties:+ vms:+ type: array+ items:+ $ref: '#/components/schemas/VM'++ post:+ summary: Create a new VM+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ required: [name]+ properties:+ name:+ type: string+ description: Unique name for the VM+ responses:+ '201':+ description: VM created successfully+ content:+ application/json:+ schema:+ allOf:+ - $ref: '#/components/schemas/VM'+ - type: object+ properties:+ message:+ type: string+ '400':+ description: Invalid request+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '500':+ description: Creation failed+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'++ /vms/{name}:+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string++ get:+ summary: Get VM info+ security:+ - ApiKeyAuth: []+ responses:+ '200':+ description: VM details+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/VM'+ '401':+ description: API key required+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '403':+ description: Invalid API key+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'+ '404':+ description: VM not found+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Error'++ delete:+ summary: Destroy a VM+ security:+ - ApiKeyAuth: []+ responses:+ '200':+ description: VM destroyed+ content:+ application/json:+ schema:+ type: object+ properties:+ message:+ type: string+ '401':+ description: API key required+ '403':+ description: Invalid API key+ '500':+ description: Deletion failed++ /vms/{name}/run:+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string++ post:+ summary: Run a command in the VM+ description: Executes a shell command and takes a snapshot afterward+ security:+ - ApiKeyAuth: []+ requestBody:+ required: true+ content:+ application/json:+ schema:+ type: object+ required: [command]+ properties:+ command:+ type: string+ description: Shell command to execute+ timeout:+ type: integer+ default: 30+ description: Timeout in seconds+ responses:+ '200':+ description: Command executed+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/ExecResult'+ '400':+ description: Command required+ '401':+ description: API key required+ '403':+ description: Invalid API key+ '500':+ description: Execution failed++ /vms/{name}/wipe:+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string++ post:+ summary: Wipe workspace+ description: Clear all files in the workspace directory+ security:+ - ApiKeyAuth: []+ responses:+ '200':+ description: Workspace wiped+ content:+ application/json:+ schema:+ type: object+ properties:+ message:+ type: string+ '401':+ description: API key required+ '403':+ description: Invalid API key++ /vms/{name}/snapshots:+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string++ get:+ summary: List snapshots+ security:+ - ApiKeyAuth: []+ responses:+ '200':+ description: List of snapshots+ content:+ application/json:+ schema:+ type: object+ properties:+ snapshots:+ type: array+ items:+ $ref: '#/components/schemas/Snapshot'+ '401':+ description: API key required+ '403':+ description: Invalid API key++ /vms/{name}/snapshots/{snapshot}/restore:+ parameters:+ - name: name+ in: path+ required: true+ schema:+ type: string+ - name: snapshot+ in: path+ required: true+ schema:+ type: string++ post:+ summary: Restore to snapshot+ description: Instantly restore workspace to a previous state. Deletes all snapshots after the target.+ security:+ - ApiKeyAuth: []+ responses:+ '200':+ description: Restored successfully+ content:+ application/json:+ schema:+ type: object+ properties:+ message:+ type: string+ '401':+ description: API key required+ '403':+ description: Invalid API key+ '500':+ description: Restore failed+diff --git a/service/package-lock.json b/service/package-lock.jsonnew file mode 100644index 00000000..0bff28cf--- /dev/null+++ b/service/package-lock.json@@ -0,0 +1,3834 @@+{+ "name": "world_service",+ "version": "1.0.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "world_service",+ "version": "1.0.0",+ "license": "ISC",+ "dependencies": {+ "@aws-sdk/client-s3": "^3.948.0",+ "@aws-sdk/lib-storage": "^3.948.0",+ "better-sqlite3": "^12.5.0",+ "cors": "^2.8.5",+ "dotenv": "^17.2.3",+ "express": "^5.2.1"+ },+ "devDependencies": {+ "@types/better-sqlite3": "^7.6.13",+ "@types/cors": "^2.8.19",+ "@types/express": "^5.0.6",+ "@types/node": "^24.10.2",+ "ts-node-dev": "^2.0.0",+ "typescript": "^5.9.3"+ }+ },+ "node_modules/@aws-crypto/crc32": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-5.2.0.tgz",+ "integrity": "sha512-nLbCWqQNgUiwwtFsen1AdzAtvuLRsQS8rYgMuxCrdKf9kOssamGLuPwyTY9wyYblNr9+1XM8v6zoDTPPSIeANg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/crc32c": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/crc32c/-/crc32c-5.2.0.tgz",+ "integrity": "sha512-+iWb8qaHLYKrNvGRbiYRHSdKRWhto5XlZUEBwDjYNf+ly5SVYG6zEoYIdxvf5R3zyeP16w4PLBn3rH1xc74Rag==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha1-browser/-/sha1-browser-5.2.0.tgz",+ "integrity": "sha512-OH6lveCFfcDjX4dbAvCFSYUjJZjDr/3XJ3xHtjn3Oj5b9RjojQo8npoLeA/bNwkOkrSQ0wgrHzXk4tDRxGKJeg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha1-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-5.2.0.tgz",+ "integrity": "sha512-AXfN/lGotSQwu6HNcEsIASo7kWXZ5HYWvfOmSNKDsEqC4OashTp8alTmaz+F7TC2L083SFv5RdB+qU3Vs1kZqw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-js": "^5.2.0",+ "@aws-crypto/supports-web-crypto": "^5.2.0",+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "@aws-sdk/util-locate-window": "^3.0.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-browser/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/sha256-js": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-5.2.0.tgz",+ "integrity": "sha512-FFQQyu7edu4ufvIZ+OadFpHHOt+eSTBaYaki44c+akjg7qZg9oOQeLlk77F6tSYqjDAFClrHJk9tMf0HdVyOvA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/util": "^5.2.0",+ "@aws-sdk/types": "^3.222.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=16.0.0"+ }+ },+ "node_modules/@aws-crypto/supports-web-crypto": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-5.2.0.tgz",+ "integrity": "sha512-iAvUotm021kM33eCdNfwIN//F77/IADDSs58i+MDaOqFrVjZo9bAal0NK7HurRuWLLpF1iLX7gbWrjHjeo+YFg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-5.2.0.tgz",+ "integrity": "sha512-4RkU9EsI6ZpBve5fseQlGNUWKMa1RLPQ1dnjnQoe07ldfIzcsGb5hC5W0Dm7u423KWzawlrpbjXBrXCEv9zazQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "^3.222.0",+ "@smithy/util-utf8": "^2.0.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.2.0.tgz",+ "integrity": "sha512-GGP3O9QFD24uGeAXYUjwSTXARoqpZykHadOmA8G5vfJPK0/DC67qa//0qvqrJzL1xc8WQWX7/yc7fwudjPHPhA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.2.0.tgz",+ "integrity": "sha512-IJdWBbTcMQ6DA0gdNhh/BwrLkDR+ADW5Kr1aZmd4k3DIF6ezMV4R2NIAmT08wQJ3yUK82thHWmC/TnK/wpMMIA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.3.0.tgz",+ "integrity": "sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^2.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@aws-sdk/client-s3": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-s3/-/client-s3-3.948.0.tgz",+ "integrity": "sha512-uvEjds8aYA9SzhBS8RKDtsDUhNV9VhqKiHTcmvhM7gJO92q0WTn8/QeFTdNyLc6RxpiDyz+uBxS7PcdNiZzqfA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha1-browser": "5.2.0",+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/credential-provider-node": "3.948.0",+ "@aws-sdk/middleware-bucket-endpoint": "3.936.0",+ "@aws-sdk/middleware-expect-continue": "3.936.0",+ "@aws-sdk/middleware-flexible-checksums": "3.947.0",+ "@aws-sdk/middleware-host-header": "3.936.0",+ "@aws-sdk/middleware-location-constraint": "3.936.0",+ "@aws-sdk/middleware-logger": "3.936.0",+ "@aws-sdk/middleware-recursion-detection": "3.948.0",+ "@aws-sdk/middleware-sdk-s3": "3.947.0",+ "@aws-sdk/middleware-ssec": "3.936.0",+ "@aws-sdk/middleware-user-agent": "3.947.0",+ "@aws-sdk/region-config-resolver": "3.936.0",+ "@aws-sdk/signature-v4-multi-region": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-endpoints": "3.936.0",+ "@aws-sdk/util-user-agent-browser": "3.936.0",+ "@aws-sdk/util-user-agent-node": "3.947.0",+ "@smithy/config-resolver": "^4.4.3",+ "@smithy/core": "^3.18.7",+ "@smithy/eventstream-serde-browser": "^4.2.5",+ "@smithy/eventstream-serde-config-resolver": "^4.3.5",+ "@smithy/eventstream-serde-node": "^4.2.5",+ "@smithy/fetch-http-handler": "^5.3.6",+ "@smithy/hash-blob-browser": "^4.2.6",+ "@smithy/hash-node": "^4.2.5",+ "@smithy/hash-stream-node": "^4.2.5",+ "@smithy/invalid-dependency": "^4.2.5",+ "@smithy/md5-js": "^4.2.5",+ "@smithy/middleware-content-length": "^4.2.5",+ "@smithy/middleware-endpoint": "^4.3.14",+ "@smithy/middleware-retry": "^4.4.14",+ "@smithy/middleware-serde": "^4.2.6",+ "@smithy/middleware-stack": "^4.2.5",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/node-http-handler": "^4.4.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.13",+ "@smithy/util-defaults-mode-node": "^4.2.16",+ "@smithy/util-endpoints": "^3.2.5",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-retry": "^4.2.5",+ "@smithy/util-stream": "^4.5.6",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/util-waiter": "^4.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/client-sso": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.948.0.tgz",+ "integrity": "sha512-iWjchXy8bIAVBUsKnbfKYXRwhLgRg3EqCQ5FTr3JbR+QR75rZm4ZOYXlvHGztVTmtAZ+PQVA1Y4zO7v7N87C0A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/middleware-host-header": "3.936.0",+ "@aws-sdk/middleware-logger": "3.936.0",+ "@aws-sdk/middleware-recursion-detection": "3.948.0",+ "@aws-sdk/middleware-user-agent": "3.947.0",+ "@aws-sdk/region-config-resolver": "3.936.0",+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-endpoints": "3.936.0",+ "@aws-sdk/util-user-agent-browser": "3.936.0",+ "@aws-sdk/util-user-agent-node": "3.947.0",+ "@smithy/config-resolver": "^4.4.3",+ "@smithy/core": "^3.18.7",+ "@smithy/fetch-http-handler": "^5.3.6",+ "@smithy/hash-node": "^4.2.5",+ "@smithy/invalid-dependency": "^4.2.5",+ "@smithy/middleware-content-length": "^4.2.5",+ "@smithy/middleware-endpoint": "^4.3.14",+ "@smithy/middleware-retry": "^4.4.14",+ "@smithy/middleware-serde": "^4.2.6",+ "@smithy/middleware-stack": "^4.2.5",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/node-http-handler": "^4.4.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.13",+ "@smithy/util-defaults-mode-node": "^4.2.16",+ "@smithy/util-endpoints": "^3.2.5",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-retry": "^4.2.5",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/core": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.947.0.tgz",+ "integrity": "sha512-Khq4zHhuAkvCFuFbgcy3GrZTzfSX7ZIjIcW1zRDxXRLZKRtuhnZdonqTUfaWi5K42/4OmxkYNpsO7X7trQOeHw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/xml-builder": "3.930.0",+ "@smithy/core": "^3.18.7",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/signature-v4": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-env": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.947.0.tgz",+ "integrity": "sha512-VR2V6dRELmzwAsCpK4GqxUi6UW5WNhAXS9F9AzWi5jvijwJo3nH92YNJUP4quMpgFZxJHEWyXLWgPjh9u0zYOA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-http": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.947.0.tgz",+ "integrity": "sha512-inF09lh9SlHj63Vmr5d+LmwPXZc2IbK8lAruhOr3KLsZAIHEgHgGPXWDC2ukTEMzg0pkexQ6FOhXXad6klK4RA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/fetch-http-handler": "^5.3.6",+ "@smithy/node-http-handler": "^4.4.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/util-stream": "^4.5.6",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-ini": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.948.0.tgz",+ "integrity": "sha512-Cl//Qh88e8HBL7yYkJNpF5eq76IO6rq8GsatKcfVBm7RFVxCqYEPSSBtkHdbtNwQdRQqAMXc6E/lEB/CZUDxnA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/credential-provider-env": "3.947.0",+ "@aws-sdk/credential-provider-http": "3.947.0",+ "@aws-sdk/credential-provider-login": "3.948.0",+ "@aws-sdk/credential-provider-process": "3.947.0",+ "@aws-sdk/credential-provider-sso": "3.948.0",+ "@aws-sdk/credential-provider-web-identity": "3.948.0",+ "@aws-sdk/nested-clients": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/credential-provider-imds": "^4.2.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-login": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-login/-/credential-provider-login-3.948.0.tgz",+ "integrity": "sha512-gcKO2b6eeTuZGp3Vvgr/9OxajMrD3W+FZ2FCyJox363ZgMoYJsyNid1vuZrEuAGkx0jvveLXfwiVS0UXyPkgtw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/nested-clients": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-node": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.948.0.tgz",+ "integrity": "sha512-ep5vRLnrRdcsP17Ef31sNN4g8Nqk/4JBydcUJuFRbGuyQtrZZrVT81UeH2xhz6d0BK6ejafDB9+ZpBjXuWT5/Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/credential-provider-env": "3.947.0",+ "@aws-sdk/credential-provider-http": "3.947.0",+ "@aws-sdk/credential-provider-ini": "3.948.0",+ "@aws-sdk/credential-provider-process": "3.947.0",+ "@aws-sdk/credential-provider-sso": "3.948.0",+ "@aws-sdk/credential-provider-web-identity": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/credential-provider-imds": "^4.2.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-process": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.947.0.tgz",+ "integrity": "sha512-WpanFbHe08SP1hAJNeDdBDVz9SGgMu/gc0XJ9u3uNpW99nKZjDpvPRAdW7WLA4K6essMjxWkguIGNOpij6Do2Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-sso": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.948.0.tgz",+ "integrity": "sha512-gqLhX1L+zb/ZDnnYbILQqJ46j735StfWV5PbDjxRzBKS7GzsiYoaf6MyHseEopmWrez5zl5l6aWzig7UpzSeQQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/client-sso": "3.948.0",+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/token-providers": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/credential-provider-web-identity": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.948.0.tgz",+ "integrity": "sha512-MvYQlXVoJyfF3/SmnNzOVEtANRAiJIObEUYYyjTqKZTmcRIVVky0tPuG26XnB8LmTYgtESwJIZJj/Eyyc9WURQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/nested-clients": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/lib-storage": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/lib-storage/-/lib-storage-3.948.0.tgz",+ "integrity": "sha512-dY7wISfWgEqSHGps0DkQiDjHhCqR7bc0mMrBHZ810/j12uzhTakAcb9FlF7mFWkX6zEvz2kjxF4r91lBwNqt5w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/abort-controller": "^4.2.5",+ "@smithy/middleware-endpoint": "^4.3.14",+ "@smithy/smithy-client": "^4.9.10",+ "buffer": "5.6.0",+ "events": "3.3.0",+ "stream-browserify": "3.0.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "peerDependencies": {+ "@aws-sdk/client-s3": "^3.948.0"+ }+ },+ "node_modules/@aws-sdk/lib-storage/node_modules/buffer": {+ "version": "5.6.0",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.6.0.tgz",+ "integrity": "sha512-/gDYp/UtU0eA1ys8bOs9J6a+E/KWIY+DZ+Q2WESNUA0jFRsJOc0SNUO6xJ5SGA1xueg3NL65W6s+NY5l9cunuw==",+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.0.2",+ "ieee754": "^1.1.4"+ }+ },+ "node_modules/@aws-sdk/middleware-bucket-endpoint": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-bucket-endpoint/-/middleware-bucket-endpoint-3.936.0.tgz",+ "integrity": "sha512-XLSVVfAorUxZh6dzF+HTOp4R1B5EQcdpGcPliWr0KUj2jukgjZEcqbBmjyMF/p9bmyQsONX80iURF1HLAlW0qg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-arn-parser": "3.893.0",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-config-provider": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-expect-continue": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-expect-continue/-/middleware-expect-continue-3.936.0.tgz",+ "integrity": "sha512-Eb4ELAC23bEQLJmUMYnPWcjD3FZIsmz2svDiXEcxRkQU9r7NRID7pM7C5NPH94wOfiCk0b2Y8rVyFXW0lGQwbA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-flexible-checksums": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-flexible-checksums/-/middleware-flexible-checksums-3.947.0.tgz",+ "integrity": "sha512-kXXxS2raNESNO+zR0L4YInVjhcGGNI2Mx0AE1ThRhDkAt2se3a+rGf9equ9YvOqA1m8Jl/GSI8cXYvSxXmS9Ag==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@aws-crypto/crc32c": "5.2.0",+ "@aws-crypto/util": "5.2.0",+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/is-array-buffer": "^4.2.0",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-stream": "^4.5.6",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-host-header": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.936.0.tgz",+ "integrity": "sha512-tAaObaAnsP1XnLGndfkGWFuzrJYuk9W0b/nLvol66t8FZExIAf/WdkT2NNAWOYxljVs++oHnyHBCxIlaHrzSiw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-location-constraint": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-location-constraint/-/middleware-location-constraint-3.936.0.tgz",+ "integrity": "sha512-SCMPenDtQMd9o5da9JzkHz838w3327iqXk3cbNnXWqnNRx6unyW8FL0DZ84gIY12kAyVHz5WEqlWuekc15ehfw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-logger": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.936.0.tgz",+ "integrity": "sha512-aPSJ12d3a3Ea5nyEnLbijCaaYJT2QjQ9iW+zGh5QcZYXmOGWbKVyPSxmVOboZQG+c1M8t6d2O7tqrwzIq8L8qw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-recursion-detection": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.948.0.tgz",+ "integrity": "sha512-Qa8Zj+EAqA0VlAVvxpRnpBpIWJI9KUwaioY1vkeNVwXPlNaz9y9zCKVM9iU9OZ5HXpoUg6TnhATAHXHAE8+QsQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@aws/lambda-invoke-store": "^0.2.2",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-sdk-s3": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-s3/-/middleware-sdk-s3-3.947.0.tgz",+ "integrity": "sha512-DS2tm5YBKhPW2PthrRBDr6eufChbwXe0NjtTZcYDfUCXf0OR+W6cIqyKguwHMJ+IyYdey30AfVw9/Lb5KB8U8A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-arn-parser": "3.893.0",+ "@smithy/core": "^3.18.7",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/signature-v4": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/util-config-provider": "^4.2.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-stream": "^4.5.6",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-ssec": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-ssec/-/middleware-ssec-3.936.0.tgz",+ "integrity": "sha512-/GLC9lZdVp05ozRik5KsuODR/N7j+W+2TbfdFL3iS+7un+gnP6hC8RDOZd6WhpZp7drXQ9guKiTAxkZQwzS8DA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/middleware-user-agent": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.947.0.tgz",+ "integrity": "sha512-7rpKV8YNgCP2R4F9RjWZFcD2R+SO/0R4VHIbY9iZJdH2MzzJ8ZG7h8dZ2m8QkQd1fjx4wrFJGGPJUTYXPV3baA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-endpoints": "3.936.0",+ "@smithy/core": "^3.18.7",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/nested-clients": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.948.0.tgz",+ "integrity": "sha512-zcbJfBsB6h254o3NuoEkf0+UY1GpE9ioiQdENWv7odo69s8iaGBEQ4BDpsIMqcuiiUXw1uKIVNxCB1gUGYz8lw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/sha256-browser": "5.2.0",+ "@aws-crypto/sha256-js": "5.2.0",+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/middleware-host-header": "3.936.0",+ "@aws-sdk/middleware-logger": "3.936.0",+ "@aws-sdk/middleware-recursion-detection": "3.948.0",+ "@aws-sdk/middleware-user-agent": "3.947.0",+ "@aws-sdk/region-config-resolver": "3.936.0",+ "@aws-sdk/types": "3.936.0",+ "@aws-sdk/util-endpoints": "3.936.0",+ "@aws-sdk/util-user-agent-browser": "3.936.0",+ "@aws-sdk/util-user-agent-node": "3.947.0",+ "@smithy/config-resolver": "^4.4.3",+ "@smithy/core": "^3.18.7",+ "@smithy/fetch-http-handler": "^5.3.6",+ "@smithy/hash-node": "^4.2.5",+ "@smithy/invalid-dependency": "^4.2.5",+ "@smithy/middleware-content-length": "^4.2.5",+ "@smithy/middleware-endpoint": "^4.3.14",+ "@smithy/middleware-retry": "^4.4.14",+ "@smithy/middleware-serde": "^4.2.6",+ "@smithy/middleware-stack": "^4.2.5",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/node-http-handler": "^4.4.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-body-length-node": "^4.2.1",+ "@smithy/util-defaults-mode-browser": "^4.3.13",+ "@smithy/util-defaults-mode-node": "^4.2.16",+ "@smithy/util-endpoints": "^3.2.5",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-retry": "^4.2.5",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/region-config-resolver": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.936.0.tgz",+ "integrity": "sha512-wOKhzzWsshXGduxO4pqSiNyL9oUtk4BEvjWm9aaq6Hmfdoydq6v6t0rAGHWPjFwy9z2haovGRi3C8IxdMB4muw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/config-resolver": "^4.4.3",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/signature-v4-multi-region": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/signature-v4-multi-region/-/signature-v4-multi-region-3.947.0.tgz",+ "integrity": "sha512-UaYmzoxf9q3mabIA2hc4T6x5YSFUG2BpNjAZ207EA1bnQMiK+d6vZvb83t7dIWL/U1de1sGV19c1C81Jf14rrA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/middleware-sdk-s3": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/signature-v4": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/token-providers": {+ "version": "3.948.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.948.0.tgz",+ "integrity": "sha512-V487/kM4Teq5dcr1t5K6eoUKuqlGr9FRWL3MIMukMERJXHZvio6kox60FZ/YtciRHRI75u14YUqm2Dzddcu3+A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/core": "3.947.0",+ "@aws-sdk/nested-clients": "3.948.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/types": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.936.0.tgz",+ "integrity": "sha512-uz0/VlMd2pP5MepdrHizd+T+OKfyK4r3OA9JI+L/lPKg0YFQosdJNCKisr6o70E3dh8iMpFYxF1UN/4uZsyARg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/util-arn-parser": {+ "version": "3.893.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-arn-parser/-/util-arn-parser-3.893.0.tgz",+ "integrity": "sha512-u8H4f2Zsi19DGnwj5FSZzDMhytYF/bCh37vAtBsn3cNDL3YG578X5oc+wSX54pM3tOxS+NY7tvOAo52SW7koUA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/util-endpoints": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.936.0.tgz",+ "integrity": "sha512-0Zx3Ntdpu+z9Wlm7JKUBOzS9EunwKAb4KdGUQQxDqh5Lc3ta5uBoub+FgmVuzwnmBu9U1Os8UuwVTH0Lgu+P5w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "@smithy/util-endpoints": "^3.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/util-locate-window": {+ "version": "3.893.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.893.0.tgz",+ "integrity": "sha512-T89pFfgat6c8nMmpI8eKjBcDcgJq36+m9oiXbcUzeU55MP9ZuGgBomGjGnHaEyF36jenW9gmg3NfZDm0AO2XPg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-browser": {+ "version": "3.936.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.936.0.tgz",+ "integrity": "sha512-eZ/XF6NxMtu+iCma58GRNRxSq4lHo6zHQLOZRIeL/ghqYJirqHdenMOwrzPettj60KWlv827RVebP9oNVrwZbw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/types": "3.936.0",+ "@smithy/types": "^4.9.0",+ "bowser": "^2.11.0",+ "tslib": "^2.6.2"+ }+ },+ "node_modules/@aws-sdk/util-user-agent-node": {+ "version": "3.947.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.947.0.tgz",+ "integrity": "sha512-+vhHoDrdbb+zerV4noQk1DHaUMNzWFWPpPYjVTwW2186k5BEJIecAMChYkghRrBVJ3KPWP1+JnZwOd72F3d4rQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-sdk/middleware-user-agent": "3.947.0",+ "@aws-sdk/types": "3.936.0",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "peerDependencies": {+ "aws-crt": ">=1.0.0"+ },+ "peerDependenciesMeta": {+ "aws-crt": {+ "optional": true+ }+ }+ },+ "node_modules/@aws-sdk/xml-builder": {+ "version": "3.930.0",+ "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.930.0.tgz",+ "integrity": "sha512-YIfkD17GocxdmlUVc3ia52QhcWuRIUJonbF8A2CYfcWNV3HzvAqpcPeC0bYUhkK+8e8YO1ARnLKZQE0TlwzorA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "fast-xml-parser": "5.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@aws/lambda-invoke-store": {+ "version": "0.2.2",+ "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.2.tgz",+ "integrity": "sha512-C0NBLsIqzDIae8HFw9YIrIBsbc0xTiOtt7fAukGPnqQ/+zZNaq+4jhuccltK0QuWHBnNm/a6kLIRA6GFiM10eg==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@cspotcode/source-map-support": {+ "version": "0.8.1",+ "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",+ "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/trace-mapping": "0.3.9"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.9",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz",+ "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.0.3",+ "@jridgewell/sourcemap-codec": "^1.4.10"+ }+ },+ "node_modules/@smithy/abort-controller": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.2.5.tgz",+ "integrity": "sha512-j7HwVkBw68YW8UmFRcjZOmssE77Rvk0GWAIN1oFBhsaovQmZWYCIcGa9/pwRB0ExI8Sk9MWNALTjftjHZea7VA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/chunked-blob-reader": {+ "version": "5.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader/-/chunked-blob-reader-5.2.0.tgz",+ "integrity": "sha512-WmU0TnhEAJLWvfSeMxBNe5xtbselEO8+4wG0NtZeL8oR21WgH1xiO37El+/Y+H/Ie4SCwBy3MxYWmOYaGgZueA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/chunked-blob-reader-native": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/@smithy/chunked-blob-reader-native/-/chunked-blob-reader-native-4.2.1.tgz",+ "integrity": "sha512-lX9Ay+6LisTfpLid2zZtIhSEjHMZoAR5hHCR4H7tBz/Zkfr5ea8RcQ7Tk4mi0P76p4cN+Btz16Ffno7YHpKXnQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-base64": "^4.3.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/config-resolver": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.3.tgz",+ "integrity": "sha512-ezHLe1tKLUxDJo2LHtDuEDyWXolw8WGOR92qb4bQdWq/zKenO5BvctZGrVJBK08zjezSk7bmbKFOXIVyChvDLw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-config-provider": "^4.2.0",+ "@smithy/util-endpoints": "^3.2.5",+ "@smithy/util-middleware": "^4.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/core": {+ "version": "3.18.7",+ "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.18.7.tgz",+ "integrity": "sha512-axG9MvKhMWOhFbvf5y2DuyTxQueO0dkedY9QC3mAfndLosRI/9LJv8WaL0mw7ubNhsO4IuXX9/9dYGPFvHrqlw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/middleware-serde": "^4.2.6",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-body-length-browser": "^4.2.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-stream": "^4.5.6",+ "@smithy/util-utf8": "^4.2.0",+ "@smithy/uuid": "^1.1.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/credential-provider-imds": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.2.5.tgz",+ "integrity": "sha512-BZwotjoZWn9+36nimwm/OLIcVe+KYRwzMjfhd4QT7QxPm9WY0HiOV8t/Wlh+HVUif0SBVV7ksq8//hPaBC/okQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-codec": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-4.2.5.tgz",+ "integrity": "sha512-Ogt4Zi9hEbIP17oQMd68qYOHUzmH47UkK7q7Gl55iIm9oKt27MUGrC5JfpMroeHjdkOliOA4Qt3NQ1xMq/nrlA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@aws-crypto/crc32": "5.2.0",+ "@smithy/types": "^4.9.0",+ "@smithy/util-hex-encoding": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-browser": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-4.2.5.tgz",+ "integrity": "sha512-HohfmCQZjppVnKX2PnXlf47CW3j92Ki6T/vkAT2DhBR47e89pen3s4fIa7otGTtrVxmj7q+IhH0RnC5kpR8wtw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-serde-universal": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-config-resolver": {+ "version": "4.3.5",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-4.3.5.tgz",+ "integrity": "sha512-ibjQjM7wEXtECiT6my1xfiMH9IcEczMOS6xiCQXoUIYSj5b1CpBbJ3VYbdwDy8Vcg5JHN7eFpOCGk8nyZAltNQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-node": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-node/-/eventstream-serde-node-4.2.5.tgz",+ "integrity": "sha512-+elOuaYx6F2H6x1/5BQP5ugv12nfJl66GhxON8+dWVUEDJ9jah/A0tayVdkLRP0AeSac0inYkDz5qBFKfVp2Gg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-serde-universal": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/eventstream-serde-universal": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-4.2.5.tgz",+ "integrity": "sha512-G9WSqbST45bmIFaeNuP/EnC19Rhp54CcVdX9PDL1zyEB514WsDVXhlyihKlGXnRycmHNmVv88Bvvt4EYxWef/Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/eventstream-codec": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/fetch-http-handler": {+ "version": "5.3.6",+ "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.3.6.tgz",+ "integrity": "sha512-3+RG3EA6BBJ/ofZUeTFJA7mHfSYrZtQIrDP9dI8Lf7X6Jbos2jptuLrAAteDiFVrmbEmLSuRG/bUKzfAXk7dhg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/querystring-builder": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-base64": "^4.3.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-blob-browser": {+ "version": "4.2.6",+ "resolved": "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-4.2.6.tgz",+ "integrity": "sha512-8P//tA8DVPk+3XURk2rwcKgYwFvwGwmJH/wJqQiSKwXZtf/LiZK+hbUZmPj/9KzM+OVSwe4o85KTp5x9DUZTjw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/chunked-blob-reader": "^5.2.0",+ "@smithy/chunked-blob-reader-native": "^4.2.1",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-node": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.2.5.tgz",+ "integrity": "sha512-DpYX914YOfA3UDT9CN1BM787PcHfWRBB43fFGCYrZFUH0Jv+5t8yYl+Pd5PW4+QzoGEDvn5d5QIO4j2HyYZQSA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "@smithy/util-buffer-from": "^4.2.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/hash-stream-node": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-4.2.5.tgz",+ "integrity": "sha512-6+do24VnEyvWcGdHXomlpd0m8bfZePpUKBy7m311n+JuRwug8J4dCanJdTymx//8mi0nlkflZBvJe+dEO/O12Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/invalid-dependency": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.2.5.tgz",+ "integrity": "sha512-2L2erASEro1WC5nV+plwIMxrTXpvpfzl4e+Nre6vBVRR2HKeGGcvpJyyL3/PpiSg+cJG2KpTmZmq934Olb6e5A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/is-array-buffer": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.2.0.tgz",+ "integrity": "sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/md5-js": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-4.2.5.tgz",+ "integrity": "sha512-Bt6jpSTMWfjCtC0s79gZ/WZ1w90grfmopVOWqkI2ovhjpD5Q2XRXuecIPB9689L2+cCySMbaXDhBPU56FKNDNg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-content-length": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.2.5.tgz",+ "integrity": "sha512-Y/RabVa5vbl5FuHYV2vUCwvh/dqzrEY/K2yWPSqvhFUwIY0atLqO4TienjBXakoy4zrKAMCZwg+YEqmH7jaN7A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-endpoint": {+ "version": "4.3.14",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.3.14.tgz",+ "integrity": "sha512-v0q4uTKgBM8dsqGjqsabZQyH85nFaTnFcgpWU1uydKFsdyyMzfvOkNum9G7VK+dOP01vUnoZxIeRiJ6uD0kjIg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.18.7",+ "@smithy/middleware-serde": "^4.2.6",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "@smithy/url-parser": "^4.2.5",+ "@smithy/util-middleware": "^4.2.5",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-retry": {+ "version": "4.4.14",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.4.14.tgz",+ "integrity": "sha512-Z2DG8Ej7FyWG1UA+7HceINtSLzswUgs2np3sZX0YBBxCt+CXG4QUxv88ZDS3+2/1ldW7LqtSY1UO/6VQ1pND8Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/service-error-classification": "^4.2.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-retry": "^4.2.5",+ "@smithy/uuid": "^1.1.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-serde": {+ "version": "4.2.6",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.6.tgz",+ "integrity": "sha512-VkLoE/z7e2g8pirwisLz8XJWedUSY8my/qrp81VmAdyrhi94T+riBfwP+AOEEFR9rFTSonC/5D2eWNmFabHyGQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/middleware-stack": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.2.5.tgz",+ "integrity": "sha512-bYrutc+neOyWxtZdbB2USbQttZN0mXaOyYLIsaTbJhFsfpXyGWUxJpEuO1rJ8IIJm2qH4+xJT0mxUSsEDTYwdQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-config-provider": {+ "version": "4.3.5",+ "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.3.5.tgz",+ "integrity": "sha512-UTurh1C4qkVCtqggI36DGbLB2Kv8UlcFdMXDcWMbqVY2uRg0XmT9Pb4Vj6oSQ34eizO1fvR0RnFV4Axw4IrrAg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/property-provider": "^4.2.5",+ "@smithy/shared-ini-file-loader": "^4.4.0",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/node-http-handler": {+ "version": "4.4.5",+ "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.4.5.tgz",+ "integrity": "sha512-CMnzM9R2WqlqXQGtIlsHMEZfXKJVTIrqCNoSd/QpAyp+Dw0a1Vps13l6ma1fH8g7zSPNsA59B/kWgeylFuA/lw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/abort-controller": "^4.2.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/querystring-builder": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/property-provider": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.2.5.tgz",+ "integrity": "sha512-8iLN1XSE1rl4MuxvQ+5OSk/Zb5El7NJZ1td6Tn+8dQQHIjp59Lwl6bd0+nzw6SKm2wSSriH2v/I9LPzUic7EOg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/protocol-http": {+ "version": "5.3.5",+ "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.3.5.tgz",+ "integrity": "sha512-RlaL+sA0LNMp03bf7XPbFmT5gN+w3besXSWMkA8rcmxLSVfiEXElQi4O2IWwPfxzcHkxqrwBFMbngB8yx/RvaQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/querystring-builder": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.2.5.tgz",+ "integrity": "sha512-y98otMI1saoajeik2kLfGyRp11e5U/iJYH/wLCh3aTV/XutbGT9nziKGkgCaMD1ghK7p6htHMm6b6scl9JRUWg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "@smithy/util-uri-escape": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/querystring-parser": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.2.5.tgz",+ "integrity": "sha512-031WCTdPYgiQRYNPXznHXof2YM0GwL6SeaSyTH/P72M1Vz73TvCNH2Nq8Iu2IEPq9QP2yx0/nrw5YmSeAi/AjQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/service-error-classification": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.5.tgz",+ "integrity": "sha512-8fEvK+WPE3wUAcDvqDQG1Vk3ANLR8Px979te96m84CbKAjBVf25rPYSzb4xU4hlTyho7VhOGnh5i62D/JVF0JQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/shared-ini-file-loader": {+ "version": "4.4.0",+ "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.4.0.tgz",+ "integrity": "sha512-5WmZ5+kJgJDjwXXIzr1vDTG+RhF9wzSODQBfkrQ2VVkYALKGvZX1lgVSxEkgicSAFnFhPj5rudJV0zoinqS0bA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/signature-v4": {+ "version": "5.3.5",+ "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.3.5.tgz",+ "integrity": "sha512-xSUfMu1FT7ccfSXkoLl/QRQBi2rOvi3tiBZU2Tdy3I6cgvZ6SEi9QNey+lqps/sJRnogIS+lq+B1gxxbra2a/w==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^4.2.0",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-hex-encoding": "^4.2.0",+ "@smithy/util-middleware": "^4.2.5",+ "@smithy/util-uri-escape": "^4.2.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/smithy-client": {+ "version": "4.9.10",+ "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.9.10.tgz",+ "integrity": "sha512-Jaoz4Jw1QYHc1EFww/E6gVtNjhoDU+gwRKqXP6C3LKYqqH2UQhP8tMP3+t/ePrhaze7fhLE8vS2q6vVxBANFTQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/core": "^3.18.7",+ "@smithy/middleware-endpoint": "^4.3.14",+ "@smithy/middleware-stack": "^4.2.5",+ "@smithy/protocol-http": "^5.3.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-stream": "^4.5.6",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/types": {+ "version": "4.9.0",+ "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.9.0.tgz",+ "integrity": "sha512-MvUbdnXDTwykR8cB1WZvNNwqoWVaTRA0RLlLmf/cIFNMM2cKWz01X4Ly6SMC4Kks30r8tT3Cty0jmeWfiuyHTA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/url-parser": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.2.5.tgz",+ "integrity": "sha512-VaxMGsilqFnK1CeBX+LXnSuaMx4sTL/6znSZh2829txWieazdVxr54HmiyTsIbpOTLcf5nYpq9lpzmwRdxj6rQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/querystring-parser": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-base64": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.3.0.tgz",+ "integrity": "sha512-GkXZ59JfyxsIwNTWFnjmFEI8kZpRNIBfxKjv09+nkAWPt/4aGaEWMM04m4sxgNVWkbt2MdSvE3KF/PfX4nFedQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^4.2.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-browser": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.2.0.tgz",+ "integrity": "sha512-Fkoh/I76szMKJnBXWPdFkQJl2r9SjPt3cMzLdOB6eJ4Pnpas8hVoWPYemX/peO0yrrvldgCUVJqOAjUrOLjbxg==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-body-length-node": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.2.1.tgz",+ "integrity": "sha512-h53dz/pISVrVrfxV1iqXlx5pRg3V2YWFcSQyPyXZRrZoZj4R4DeWRDo1a7dd3CPTcFi3kE+98tuNyD2axyZReA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-buffer-from": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.2.0.tgz",+ "integrity": "sha512-kAY9hTKulTNevM2nlRtxAG2FQ3B2OR6QIrPY3zE5LqJy1oxzmgBGsHLWTcNhWXKchgA0WHW+mZkQrng/pgcCew==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/is-array-buffer": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-config-provider": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.2.0.tgz",+ "integrity": "sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-browser": {+ "version": "4.3.13",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.13.tgz",+ "integrity": "sha512-hlVLdAGrVfyNei+pKIgqDTxfu/ZI2NSyqj4IDxKd5bIsIqwR/dSlkxlPaYxFiIaDVrBy0he8orsFy+Cz119XvA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/property-provider": "^4.2.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-defaults-mode-node": {+ "version": "4.2.16",+ "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.16.tgz",+ "integrity": "sha512-F1t22IUiJLHrxW9W1CQ6B9PN+skZ9cqSuzB18Eh06HrJPbjsyZ7ZHecAKw80DQtyGTRcVfeukKaCRYebFwclbg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/config-resolver": "^4.4.3",+ "@smithy/credential-provider-imds": "^4.2.5",+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/property-provider": "^4.2.5",+ "@smithy/smithy-client": "^4.9.10",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-endpoints": {+ "version": "3.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.2.5.tgz",+ "integrity": "sha512-3O63AAWu2cSNQZp+ayl9I3NapW1p1rR5mlVHcF6hAB1dPZUQFfRPYtplWX/3xrzWthPGj5FqB12taJJCfH6s8A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/node-config-provider": "^4.3.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-hex-encoding": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.2.0.tgz",+ "integrity": "sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-middleware": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.2.5.tgz",+ "integrity": "sha512-6Y3+rvBF7+PZOc40ybeZMcGln6xJGVeY60E7jy9Mv5iKpMJpHgRE6dKy9ScsVxvfAYuEX4Q9a65DQX90KaQ3bA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-retry": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.2.5.tgz",+ "integrity": "sha512-GBj3+EZBbN4NAqJ/7pAhsXdfzdlznOh8PydUijy6FpNIMnHPSMO2/rP4HKu+UFeikJxShERk528oy7GT79YiJg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/service-error-classification": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-stream": {+ "version": "4.5.6",+ "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.6.tgz",+ "integrity": "sha512-qWw/UM59TiaFrPevefOZ8CNBKbYEP6wBAIlLqxn3VAIo9rgnTNc4ASbVrqDmhuwI87usnjhdQrxodzAGFFzbRQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/fetch-http-handler": "^5.3.6",+ "@smithy/node-http-handler": "^4.4.5",+ "@smithy/types": "^4.9.0",+ "@smithy/util-base64": "^4.3.0",+ "@smithy/util-buffer-from": "^4.2.0",+ "@smithy/util-hex-encoding": "^4.2.0",+ "@smithy/util-utf8": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-uri-escape": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.2.0.tgz",+ "integrity": "sha512-igZpCKV9+E/Mzrpq6YacdTQ0qTiLm85gD6N/IrmyDvQFA4UnU3d5g3m8tMT/6zG/vVkWSU+VxeUyGonL62DuxA==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-utf8": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.2.0.tgz",+ "integrity": "sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/util-buffer-from": "^4.2.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/util-waiter": {+ "version": "4.2.5",+ "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-4.2.5.tgz",+ "integrity": "sha512-Dbun99A3InifQdIrsXZ+QLcC0PGBPAdrl4cj1mTgJvyc9N2zf7QSxg8TBkzsCmGJdE3TLbO9ycwpY0EkWahQ/g==",+ "license": "Apache-2.0",+ "dependencies": {+ "@smithy/abort-controller": "^4.2.5",+ "@smithy/types": "^4.9.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@smithy/uuid": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@smithy/uuid/-/uuid-1.1.0.tgz",+ "integrity": "sha512-4aUIteuyxtBUhVdiQqcDhKFitwfd9hqoSDYY2KRXiWtgoWJ9Bmise+KfEPDiVHWeJepvF8xJO9/9+WDIciMFFw==",+ "license": "Apache-2.0",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@tsconfig/node10": {+ "version": "1.0.12",+ "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.12.tgz",+ "integrity": "sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node12": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz",+ "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node14": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz",+ "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@tsconfig/node16": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz",+ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/better-sqlite3": {+ "version": "7.6.13",+ "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz",+ "integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/body-parser": {+ "version": "1.19.6",+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/connect": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/connect": {+ "version": "3.4.38",+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/cors": {+ "version": "2.8.19",+ "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.19.tgz",+ "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/express": {+ "version": "5.0.6",+ "resolved": "https://registry.npmjs.org/@types/express/-/express-5.0.6.tgz",+ "integrity": "sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/body-parser": "*",+ "@types/express-serve-static-core": "^5.0.0",+ "@types/serve-static": "^2"+ }+ },+ "node_modules/@types/express-serve-static-core": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.0.tgz",+ "integrity": "sha512-jnHMsrd0Mwa9Cf4IdOzbz543y4XJepXrbia2T4b6+spXC2We3t1y6K44D3mR8XMFSXMCf3/l7rCgddfx7UNVBA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "@types/qs": "*",+ "@types/range-parser": "*",+ "@types/send": "*"+ }+ },+ "node_modules/@types/http-errors": {+ "version": "2.0.5",+ "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "24.10.2",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.2.tgz",+ "integrity": "sha512-WOhQTZ4G8xZ1tjJTvKOpyEVSGgOTvJAfDK3FNFgELyaTpzhdgHVHeqW8V+UJvzF5BT+/B54T/1S2K6gd9c7bbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~7.16.0"+ }+ },+ "node_modules/@types/qs": {+ "version": "6.14.0",+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",+ "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/range-parser": {+ "version": "1.2.7",+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/send": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz",+ "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "node_modules/@types/serve-static": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-2.2.0.tgz",+ "integrity": "sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/http-errors": "*",+ "@types/node": "*"+ }+ },+ "node_modules/@types/strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/@types/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/strip-json-comments": {+ "version": "0.0.30",+ "resolved": "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz",+ "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/accepts": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz",+ "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==",+ "license": "MIT",+ "dependencies": {+ "mime-types": "^3.0.0",+ "negotiator": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/acorn": {+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-walk": {+ "version": "8.3.4",+ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz",+ "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.11.0"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/anymatch": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "normalize-path": "^3.0.0",+ "picomatch": "^2.0.4"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/arg": {+ "version": "4.1.3",+ "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz",+ "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/balanced-match": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/base64-js": {+ "version": "1.5.1",+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/better-sqlite3": {+ "version": "12.5.0",+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-12.5.0.tgz",+ "integrity": "sha512-WwCZ/5Diz7rsF29o27o0Gcc1Du+l7Zsv7SYtVPG0X3G/uUI1LqdxrQI7c9Hs2FWpqXXERjW9hp6g3/tH7DlVKg==",+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "bindings": "^1.5.0",+ "prebuild-install": "^7.1.1"+ },+ "engines": {+ "node": "20.x || 22.x || 23.x || 24.x || 25.x"+ }+ },+ "node_modules/binary-extensions": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/bindings": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",+ "license": "MIT",+ "dependencies": {+ "file-uri-to-path": "1.0.0"+ }+ },+ "node_modules/bl": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",+ "license": "MIT",+ "dependencies": {+ "buffer": "^5.5.0",+ "inherits": "^2.0.4",+ "readable-stream": "^3.4.0"+ }+ },+ "node_modules/body-parser": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.1.tgz",+ "integrity": "sha512-nfDwkulwiZYQIGwxdy0RUmowMhKcFVcYXUU7m4QlKYim1rUtg83xm2yjZ40QjDuc291AJjjeSc9b++AWHSgSHw==",+ "license": "MIT",+ "dependencies": {+ "bytes": "^3.1.2",+ "content-type": "^1.0.5",+ "debug": "^4.4.3",+ "http-errors": "^2.0.0",+ "iconv-lite": "^0.7.0",+ "on-finished": "^2.4.1",+ "qs": "^6.14.0",+ "raw-body": "^3.0.1",+ "type-is": "^2.0.1"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/bowser": {+ "version": "2.13.1",+ "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.13.1.tgz",+ "integrity": "sha512-OHawaAbjwx6rqICCKgSG0SAnT05bzd7ppyKLVUITZpANBaaMFBAsaNkto3LoQ31tyFP5kNujE8Cdx85G9VzOkw==",+ "license": "MIT"+ },+ "node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/braces": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fill-range": "^7.1.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/buffer": {+ "version": "5.7.1",+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "base64-js": "^1.3.1",+ "ieee754": "^1.1.13"+ }+ },+ "node_modules/buffer-from": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",+ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/bytes": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/chokidar": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "anymatch": "~3.1.2",+ "braces": "~3.0.2",+ "glob-parent": "~5.1.2",+ "is-binary-path": "~2.1.0",+ "is-glob": "~4.0.1",+ "normalize-path": "~3.0.0",+ "readdirp": "~3.6.0"+ },+ "engines": {+ "node": ">= 8.10.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/chownr": {+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",+ "license": "ISC"+ },+ "node_modules/concat-map": {+ "version": "0.0.1",+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",+ "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/content-disposition": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.0.1.tgz",+ "integrity": "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/content-type": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie": {+ "version": "0.7.2",+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/cookie-signature": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz",+ "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==",+ "license": "MIT",+ "engines": {+ "node": ">=6.6.0"+ }+ },+ "node_modules/cors": {+ "version": "2.8.5",+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",+ "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",+ "license": "MIT",+ "dependencies": {+ "object-assign": "^4",+ "vary": "^1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/create-require": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",+ "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/decompress-response": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",+ "license": "MIT",+ "dependencies": {+ "mimic-response": "^3.1.0"+ },+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/deep-extend": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",+ "license": "MIT",+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/depd": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/detect-libc": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/diff": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz",+ "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.3.1"+ }+ },+ "node_modules/dotenv": {+ "version": "17.2.3",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.2.3.tgz",+ "integrity": "sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/dynamic-dedupe": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz",+ "integrity": "sha512-ssuANeD+z97meYOqd50e04Ze5qp4bPqo8cCkI4TRjZkzAUgIDTrXV1R8QCdINpiI+hw14+rYazvTRdQrz0/rFQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "xtend": "^4.0.0"+ }+ },+ "node_modules/ee-first": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",+ "license": "MIT"+ },+ "node_modules/encodeurl": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/end-of-stream": {+ "version": "1.4.5",+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",+ "license": "MIT",+ "dependencies": {+ "once": "^1.4.0"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/escape-html": {+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",+ "license": "MIT"+ },+ "node_modules/etag": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/events": {+ "version": "3.3.0",+ "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz",+ "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.8.x"+ }+ },+ "node_modules/expand-template": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",+ "license": "(MIT OR WTFPL)",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/express": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz",+ "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==",+ "license": "MIT",+ "dependencies": {+ "accepts": "^2.0.0",+ "body-parser": "^2.2.1",+ "content-disposition": "^1.0.0",+ "content-type": "^1.0.5",+ "cookie": "^0.7.1",+ "cookie-signature": "^1.2.1",+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "finalhandler": "^2.1.0",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "merge-descriptors": "^2.0.0",+ "mime-types": "^3.0.0",+ "on-finished": "^2.4.1",+ "once": "^1.4.0",+ "parseurl": "^1.3.3",+ "proxy-addr": "^2.0.7",+ "qs": "^6.14.0",+ "range-parser": "^1.2.1",+ "router": "^2.2.0",+ "send": "^1.1.0",+ "serve-static": "^2.2.0",+ "statuses": "^2.0.1",+ "type-is": "^2.0.1",+ "vary": "^1.1.2"+ },+ "engines": {+ "node": ">= 18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/fast-xml-parser": {+ "version": "5.2.5",+ "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.2.5.tgz",+ "integrity": "sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "strnum": "^2.1.0"+ },+ "bin": {+ "fxparser": "src/cli/cli.js"+ }+ },+ "node_modules/file-uri-to-path": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",+ "license": "MIT"+ },+ "node_modules/fill-range": {+ "version": "7.1.1",+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "to-regex-range": "^5.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/finalhandler": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz",+ "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "on-finished": "^2.4.1",+ "parseurl": "^1.3.3",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18.0.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/forwarded": {+ "version": "0.2.0",+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/fresh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz",+ "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/fs-constants": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",+ "license": "MIT"+ },+ "node_modules/fs.realpath": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",+ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/github-from-package": {+ "version": "0.0.0",+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",+ "license": "MIT"+ },+ "node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/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-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/http-errors": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",+ "license": "MIT",+ "dependencies": {+ "depd": "~2.0.0",+ "inherits": "~2.0.4",+ "setprototypeof": "~1.2.0",+ "statuses": "~2.0.2",+ "toidentifier": "~1.0.1"+ },+ "engines": {+ "node": ">= 0.8"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/iconv-lite": {+ "version": "0.7.0",+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz",+ "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==",+ "license": "MIT",+ "dependencies": {+ "safer-buffer": ">= 2.1.2 < 3.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/ieee754": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "BSD-3-Clause"+ },+ "node_modules/inflight": {+ "version": "1.0.6",+ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",+ "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",+ "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "once": "^1.3.0",+ "wrappy": "1"+ }+ },+ "node_modules/inherits": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",+ "license": "ISC"+ },+ "node_modules/ini": {+ "version": "1.3.8",+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",+ "license": "ISC"+ },+ "node_modules/ipaddr.js": {+ "version": "1.9.1",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/is-binary-path": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "binary-extensions": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/is-extglob": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-glob": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-extglob": "^2.1.1"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/is-number": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.12.0"+ }+ },+ "node_modules/is-promise": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz",+ "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==",+ "license": "MIT"+ },+ "node_modules/make-error": {+ "version": "1.3.6",+ "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",+ "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/media-typer": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz",+ "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/merge-descriptors": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz",+ "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/mime-db": {+ "version": "1.54.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz",+ "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz",+ "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "^1.54.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/mimic-response": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",+ "license": "MIT",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/minimist": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/mkdirp-classic": {+ "version": "0.5.3",+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",+ "license": "MIT"+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "license": "MIT"+ },+ "node_modules/napi-build-utils": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",+ "license": "MIT"+ },+ "node_modules/negotiator": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz",+ "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/node-abi": {+ "version": "3.85.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.85.0.tgz",+ "integrity": "sha512-zsFhmbkAzwhTft6nd3VxcG0cvJsT70rL+BIGHWVq5fi6MwGrHwzqKaxXE+Hl2GmnGItnDKPPkO5/LQqjVkIdFg==",+ "license": "MIT",+ "dependencies": {+ "semver": "^7.3.5"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/normalize-path": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/on-finished": {+ "version": "2.4.1",+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",+ "license": "MIT",+ "dependencies": {+ "ee-first": "1.1.1"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/once": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",+ "license": "ISC",+ "dependencies": {+ "wrappy": "1"+ }+ },+ "node_modules/parseurl": {+ "version": "1.3.3",+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/path-is-absolute": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",+ "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/path-to-regexp": {+ "version": "8.3.0",+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.3.0.tgz",+ "integrity": "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==",+ "license": "MIT",+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/express"+ }+ },+ "node_modules/picomatch": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/prebuild-install": {+ "version": "7.1.3",+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",+ "license": "MIT",+ "dependencies": {+ "detect-libc": "^2.0.0",+ "expand-template": "^2.0.3",+ "github-from-package": "0.0.0",+ "minimist": "^1.2.3",+ "mkdirp-classic": "^0.5.3",+ "napi-build-utils": "^2.0.0",+ "node-abi": "^3.3.0",+ "pump": "^3.0.0",+ "rc": "^1.2.7",+ "simple-get": "^4.0.0",+ "tar-fs": "^2.0.0",+ "tunnel-agent": "^0.6.0"+ },+ "bin": {+ "prebuild-install": "bin.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/proxy-addr": {+ "version": "2.0.7",+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",+ "license": "MIT",+ "dependencies": {+ "forwarded": "0.2.0",+ "ipaddr.js": "1.9.1"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/pump": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz",+ "integrity": "sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==",+ "license": "MIT",+ "dependencies": {+ "end-of-stream": "^1.1.0",+ "once": "^1.3.1"+ }+ },+ "node_modules/qs": {+ "version": "6.14.0",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",+ "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "side-channel": "^1.1.0"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/range-parser": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/raw-body": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz",+ "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==",+ "license": "MIT",+ "dependencies": {+ "bytes": "~3.1.2",+ "http-errors": "~2.0.1",+ "iconv-lite": "~0.7.0",+ "unpipe": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.10"+ }+ },+ "node_modules/rc": {+ "version": "1.2.8",+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",+ "dependencies": {+ "deep-extend": "^0.6.0",+ "ini": "~1.3.0",+ "minimist": "^1.2.0",+ "strip-json-comments": "~2.0.1"+ },+ "bin": {+ "rc": "cli.js"+ }+ },+ "node_modules/readable-stream": {+ "version": "3.6.2",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",+ "license": "MIT",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/readdirp": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "picomatch": "^2.2.1"+ },+ "engines": {+ "node": ">=8.10.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.11",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/rimraf": {+ "version": "2.7.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",+ "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",+ "deprecated": "Rimraf versions prior to v4 are no longer supported",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "glob": "^7.1.3"+ },+ "bin": {+ "rimraf": "bin.js"+ }+ },+ "node_modules/router": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz",+ "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.4.0",+ "depd": "^2.0.0",+ "is-promise": "^4.0.0",+ "parseurl": "^1.3.3",+ "path-to-regexp": "^8.0.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/safer-buffer": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",+ "license": "MIT"+ },+ "node_modules/semver": {+ "version": "7.7.3",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",+ "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/send": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/send/-/send-1.2.0.tgz",+ "integrity": "sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.5",+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "etag": "^1.8.1",+ "fresh": "^2.0.0",+ "http-errors": "^2.0.0",+ "mime-types": "^3.0.1",+ "ms": "^2.1.3",+ "on-finished": "^2.4.1",+ "range-parser": "^1.2.1",+ "statuses": "^2.0.1"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/serve-static": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.0.tgz",+ "integrity": "sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==",+ "license": "MIT",+ "dependencies": {+ "encodeurl": "^2.0.0",+ "escape-html": "^1.0.3",+ "parseurl": "^1.3.3",+ "send": "^1.2.0"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "node_modules/setprototypeof": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",+ "license": "ISC"+ },+ "node_modules/side-channel": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3",+ "side-channel-list": "^1.0.0",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/simple-get": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "decompress-response": "^6.0.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"+ }+ },+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/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.npmjs.org/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/statuses": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/stream-browserify": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz",+ "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==",+ "license": "MIT",+ "dependencies": {+ "inherits": "~2.0.4",+ "readable-stream": "^3.5.0"+ }+ },+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "license": "MIT",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },+ "node_modules/strip-bom": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",+ "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/strip-json-comments": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/strnum": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.1.1.tgz",+ "integrity": "sha512-7ZvoFTiCnGxBtDqJ//Cu6fWtZtc7Y3x+QOirG15wztbdngGSkht27o2pyGWrVy0b4WAy3jbKmnoK6g5VlVNUUw==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/NaturalIntelligence"+ }+ ],+ "license": "MIT"+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/tar-fs": {+ "version": "2.1.4",+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz",+ "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",+ "license": "MIT",+ "dependencies": {+ "chownr": "^1.1.1",+ "mkdirp-classic": "^0.5.2",+ "pump": "^3.0.0",+ "tar-stream": "^2.1.4"+ }+ },+ "node_modules/tar-stream": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",+ "license": "MIT",+ "dependencies": {+ "bl": "^4.0.3",+ "end-of-stream": "^1.4.1",+ "fs-constants": "^1.0.0",+ "inherits": "^2.0.3",+ "readable-stream": "^3.1.1"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/to-regex-range": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-number": "^7.0.0"+ },+ "engines": {+ "node": ">=8.0"+ }+ },+ "node_modules/toidentifier": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",+ "license": "MIT",+ "engines": {+ "node": ">=0.6"+ }+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "tree-kill": "cli.js"+ }+ },+ "node_modules/ts-node": {+ "version": "10.9.2",+ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz",+ "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@cspotcode/source-map-support": "^0.8.0",+ "@tsconfig/node10": "^1.0.7",+ "@tsconfig/node12": "^1.0.7",+ "@tsconfig/node14": "^1.0.0",+ "@tsconfig/node16": "^1.0.2",+ "acorn": "^8.4.1",+ "acorn-walk": "^8.1.1",+ "arg": "^4.1.0",+ "create-require": "^1.1.0",+ "diff": "^4.0.1",+ "make-error": "^1.1.1",+ "v8-compile-cache-lib": "^3.0.1",+ "yn": "3.1.1"+ },+ "bin": {+ "ts-node": "dist/bin.js",+ "ts-node-cwd": "dist/bin-cwd.js",+ "ts-node-esm": "dist/bin-esm.js",+ "ts-node-script": "dist/bin-script.js",+ "ts-node-transpile-only": "dist/bin-transpile.js",+ "ts-script": "dist/bin-script-deprecated.js"+ },+ "peerDependencies": {+ "@swc/core": ">=1.2.50",+ "@swc/wasm": ">=1.2.50",+ "@types/node": "*",+ "typescript": ">=2.7"+ },+ "peerDependenciesMeta": {+ "@swc/core": {+ "optional": true+ },+ "@swc/wasm": {+ "optional": true+ }+ }+ },+ "node_modules/ts-node-dev": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ts-node-dev/-/ts-node-dev-2.0.0.tgz",+ "integrity": "sha512-ywMrhCfH6M75yftYvrvNarLEY+SUXtUvU8/0Z6llrHQVBx12GiFk5sStF8UdfE/yfzk9IAq7O5EEbTQsxlBI8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "chokidar": "^3.5.1",+ "dynamic-dedupe": "^0.3.0",+ "minimist": "^1.2.6",+ "mkdirp": "^1.0.4",+ "resolve": "^1.0.0",+ "rimraf": "^2.6.1",+ "source-map-support": "^0.5.12",+ "tree-kill": "^1.2.2",+ "ts-node": "^10.4.0",+ "tsconfig": "^7.0.0"+ },+ "bin": {+ "ts-node-dev": "lib/bin.js",+ "tsnd": "lib/bin.js"+ },+ "engines": {+ "node": ">=0.8.0"+ },+ "peerDependencies": {+ "node-notifier": "*",+ "typescript": "*"+ },+ "peerDependenciesMeta": {+ "node-notifier": {+ "optional": true+ }+ }+ },+ "node_modules/tsconfig": {+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz",+ "integrity": "sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/strip-bom": "^3.0.0",+ "@types/strip-json-comments": "0.0.30",+ "strip-bom": "^3.0.0",+ "strip-json-comments": "^2.0.0"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "license": "0BSD"+ },+ "node_modules/tunnel-agent": {+ "version": "0.6.0",+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",+ "license": "Apache-2.0",+ "dependencies": {+ "safe-buffer": "^5.0.1"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/type-is": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz",+ "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==",+ "license": "MIT",+ "dependencies": {+ "content-type": "^1.0.5",+ "media-typer": "^1.1.0",+ "mime-types": "^3.0.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/undici-types": {+ "version": "7.16.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",+ "integrity": "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/unpipe": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/util-deprecate": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",+ "license": "MIT"+ },+ "node_modules/v8-compile-cache-lib": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz",+ "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vary": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",+ "license": "ISC"+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/yn": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz",+ "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ }+ }+}diff --git a/service/package.json b/service/package.jsonnew file mode 100644index 00000000..c4251ea5--- /dev/null+++ b/service/package.json@@ -0,0 +1,32 @@+{+ "name": "world_service",+ "version": "1.0.0",+ "description": "",+ "main": "index.js",+ "scripts": {+ "dev": "ts-node-dev --respawn --transpile-only src/index.ts",+ "build": "tsc",+ "start": "node dist/index.js",+ "setup-vm": "bash scripts/setup-base-vm.sh"+ },+ "keywords": [],+ "author": "",+ "license": "ISC",+ "type": "commonjs",+ "dependencies": {+ "@aws-sdk/client-s3": "^3.948.0",+ "@aws-sdk/lib-storage": "^3.948.0",+ "better-sqlite3": "^12.5.0",+ "cors": "^2.8.5",+ "dotenv": "^17.2.3",+ "express": "^5.2.1"+ },+ "devDependencies": {+ "@types/better-sqlite3": "^7.6.13",+ "@types/cors": "^2.8.19",+ "@types/express": "^5.0.6",+ "@types/node": "^24.10.2",+ "ts-node-dev": "^2.0.0",+ "typescript": "^5.9.3"+ }+}diff --git a/service/scripts/setup-agent-service.sh b/service/scripts/setup-agent-service.shnew file mode 100644index 00000000..17122517--- /dev/null+++ b/service/scripts/setup-agent-service.sh@@ -0,0 +1,34 @@+#!/bin/bash+# Run this inside the VM to set up the agent as a boot service++set -e++echo "🔧 Setting up agent as systemd service..."++# Create the systemd service file+sudo tee /etc/systemd/system/sandbox-agent.service > /dev/null << 'EOF'+[Unit]+Description=Sandbox Agent+After=network.target++[Service]+Type=simple+User=root+WorkingDirectory=/home/user+ExecStart=/usr/bin/python3 /home/user/agent.py+Restart=always+RestartSec=3+Environment=PYTHONUNBUFFERED=1++[Install]+WantedBy=multi-user.target+EOF++# Enable and start the service+sudo systemctl daemon-reload+sudo systemctl enable sandbox-agent.service++echo "✅ Agent service installed!"+echo " It will start automatically on boot."+echo " Manual control: sudo systemctl start/stop/status sandbox-agent"+diff --git a/service/scripts/setup-base-vm.sh b/service/scripts/setup-base-vm.shnew file mode 100755index 00000000..b426ec99--- /dev/null+++ b/service/scripts/setup-base-vm.sh@@ -0,0 +1,88 @@+#!/bin/bash++# VirtualBox Base VM Setup Script+# This script helps you prepare an Ubuntu VM as your "pre-warmed" sandbox template++set -e++VM_NAME="${1:-ubuntu-sandbox-base}"+SNAPSHOT_NAME="ready"++echo "🔧 VirtualBox Base VM Setup"+echo "=========================="+echo ""+echo "This script will help you set up: $VM_NAME"+echo ""++# Check if VBoxManage is available+if ! command -v VBoxManage &> /dev/null; then+ echo "❌ VBoxManage not found. Is VirtualBox installed?"+ echo " Install from: https://www.virtualbox.org/wiki/Downloads"+ exit 1+fi++echo "✅ VirtualBox detected"+echo ""++# List existing VMs+echo "📋 Existing VMs:"+VBoxManage list vms || echo " (none)"+echo ""++# Check if target VM exists+if VBoxManage list vms | grep -q "\"$VM_NAME\""; then+ echo "✅ VM '$VM_NAME' already exists"++ # Check for snapshot+ if VBoxManage snapshot "$VM_NAME" list 2>/dev/null | grep -q "$SNAPSHOT_NAME"; then+ echo "✅ Snapshot '$SNAPSHOT_NAME' exists"+ echo ""+ echo "🎉 Base VM is ready to use!"+ exit 0+ else+ echo "⚠️ No '$SNAPSHOT_NAME' snapshot found"+ echo ""+ echo "To create the snapshot:"+ echo " 1. Start the VM and ensure it's fully booted"+ echo " 2. Install Guest Additions if not already installed"+ echo " 3. Shut down the VM cleanly"+ echo " 4. Run: VBoxManage snapshot \"$VM_NAME\" take \"$SNAPSHOT_NAME\""+ fi+else+ echo "❌ VM '$VM_NAME' not found"+ echo ""+ echo "📝 Setup Instructions:"+ echo ""+ echo "1. Create a new VM in VirtualBox:"+ echo " - Name: $VM_NAME"+ echo " - Type: Linux"+ echo " - Version: Ubuntu (64-bit)"+ echo " - RAM: 2048 MB (minimum)"+ echo " - Disk: 20 GB (dynamic)"+ echo ""+ echo "2. Install Ubuntu Server (minimal recommended)"+ echo " - Download: https://ubuntu.com/download/server"+ echo " - Create user: sandbox / sandbox"+ echo ""+ echo "3. After Ubuntu is installed, install Guest Additions:"+ echo " sudo apt update"+ echo " sudo apt install -y build-essential dkms linux-headers-\$(uname -r)"+ echo " # Insert Guest Additions CD via VirtualBox menu"+ echo " sudo mount /dev/cdrom /mnt"+ echo " sudo /mnt/VBoxLinuxAdditions.run"+ echo " sudo reboot"+ echo ""+ echo "4. Configure for sandbox use:"+ echo " sudo apt install -y curl wget git python3 nodejs npm"+ echo ""+ echo "5. Shut down the VM and take a snapshot:"+ echo " VBoxManage snapshot \"$VM_NAME\" take \"$SNAPSHOT_NAME\""+ echo ""+fi++echo ""+echo "📖 Environment variables for the service:"+echo " BASE_VM_NAME=$VM_NAME"+echo " VM_USERNAME=sandbox"+echo " VM_PASSWORD=sandbox"+diff --git a/service/scripts/setup-btrfs.sh b/service/scripts/setup-btrfs.shnew file mode 100755index 00000000..9aabef2f--- /dev/null+++ b/service/scripts/setup-btrfs.sh@@ -0,0 +1,77 @@+#!/bin/bash+# Run this INSIDE the Ubuntu VM to set up Btrfs for snapshots++set -e++echo "🔧 Setting up Btrfs for instant snapshots..."++# Install btrfs tools+sudo apt update+sudo apt install -y btrfs-progs++# Create a Btrfs filesystem on a file (easy for testing)+# In production, you'd use a dedicated partition/disk+BTRFS_IMAGE="/var/lib/btrfs-sandbox.img"+BTRFS_SIZE="10G" # Adjust as needed++if [ ! -f "$BTRFS_IMAGE" ]; then+ echo "Creating ${BTRFS_SIZE} Btrfs image..."+ sudo truncate -s $BTRFS_SIZE $BTRFS_IMAGE+ sudo mkfs.btrfs $BTRFS_IMAGE+fi++# Create mount point+sudo mkdir -p /btrfs++# Mount the Btrfs filesystem+if ! mountpoint -q /btrfs; then+ echo "Mounting Btrfs..."+ sudo mount -o loop $BTRFS_IMAGE /btrfs+fi++# Create subvolumes for workspace and snapshots+if [ ! -d "/btrfs/workspace" ]; then+ echo "Creating workspace subvolume..."+ sudo btrfs subvolume create /btrfs/workspace+fi++if [ ! -d "/btrfs/snapshots" ]; then+ echo "Creating snapshots directory..."+ sudo mkdir -p /btrfs/snapshots+fi++# Create symlinks+sudo rm -rf /workspace /snapshots 2>/dev/null || true+sudo ln -sf /btrfs/workspace /workspace+sudo ln -sf /btrfs/snapshots /snapshots++# Set permissions+sudo chown -R $(whoami):$(whoami) /btrfs/workspace+sudo chmod 755 /btrfs/workspace /btrfs/snapshots++# Add to fstab for persistence+if ! grep -q "btrfs-sandbox" /etc/fstab; then+ echo "Adding to fstab..."+ echo "$BTRFS_IMAGE /btrfs btrfs loop 0 0" | sudo tee -a /etc/fstab+fi++# Allow user to run btrfs commands without password (for agent)+echo "Setting up sudo permissions..."+echo "$(whoami) ALL=(ALL) NOPASSWD: /usr/bin/btrfs" | sudo tee /etc/sudoers.d/btrfs-sandbox+sudo chmod 440 /etc/sudoers.d/btrfs-sandbox++echo ""+echo "✅ Btrfs setup complete!"+echo ""+echo "Directories:"+echo " /workspace -> Btrfs subvolume for your code"+echo " /snapshots -> Where snapshots are stored"+echo ""+echo "Test it:"+echo " echo 'hello' > /workspace/test.txt"+echo " sudo btrfs subvolume snapshot /workspace /snapshots/test1"+echo " rm /workspace/test.txt"+echo " sudo btrfs subvolume delete /workspace"+echo " sudo btrfs subvolume snapshot /snapshots/test1 /workspace"+echo " cat /workspace/test.txt # Should show 'hello'"+diff --git a/service/src/db.ts b/service/src/db.tsnew file mode 100644index 00000000..2b490f61--- /dev/null+++ b/service/src/db.ts@@ -0,0 +1,224 @@+import Database from "better-sqlite3";+import path from "path";+import crypto from "crypto";++const DB_PATH = process.env.DB_PATH || path.join(__dirname, "..", "vms.db");++const db = new Database(DB_PATH);++// Initialize schema+db.exec(`+ CREATE TABLE IF NOT EXISTS api_keys (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ key TEXT UNIQUE NOT NULL,+ name TEXT,+ created_at TEXT DEFAULT (datetime('now'))+ );++ CREATE TABLE IF NOT EXISTS vms (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ api_key_id INTEGER NOT NULL,+ name TEXT NOT NULL,+ base_vm TEXT NOT NULL,+ status TEXT NOT NULL DEFAULT 'creating',+ agent_port INTEGER,+ ssh_port INTEGER,+ created_at TEXT DEFAULT (datetime('now')),+ updated_at TEXT DEFAULT (datetime('now')),+ FOREIGN KEY (api_key_id) REFERENCES api_keys(id) ON DELETE CASCADE,+ UNIQUE(api_key_id, name)+ );++ CREATE TABLE IF NOT EXISTS snapshots (+ id INTEGER PRIMARY KEY AUTOINCREMENT,+ vm_id INTEGER NOT NULL,+ snapshot_name TEXT NOT NULL,+ command TEXT,+ s3_key TEXT,+ created_at TEXT DEFAULT (datetime('now')),+ FOREIGN KEY (vm_id) REFERENCES vms(id) ON DELETE CASCADE,+ UNIQUE(vm_id, snapshot_name)+ );++ CREATE INDEX IF NOT EXISTS idx_api_keys_key ON api_keys(key);+ CREATE INDEX IF NOT EXISTS idx_vms_api_key ON vms(api_key_id);+ CREATE INDEX IF NOT EXISTS idx_snapshots_vm ON snapshots(vm_id);+`);++// ==================== API Keys ====================++export interface ApiKeyRecord {+ id: number;+ key: string;+ name: string | null;+ created_at: string;+}++export function generateApiKey(): string {+ return `ws_${crypto.randomBytes(24).toString("hex")}`;+}++export function createApiKey(name?: string): ApiKeyRecord {+ const key = generateApiKey();+ const stmt = db.prepare("INSERT INTO api_keys (key, name) VALUES (?, ?)");+ stmt.run(key, name || null);+ return getApiKeyByKey(key)!;+}++export function getApiKeyByKey(key: string): ApiKeyRecord | undefined {+ const stmt = db.prepare("SELECT * FROM api_keys WHERE key = ?");+ return stmt.get(key) as ApiKeyRecord | undefined;+}++export function getApiKeyById(id: number): ApiKeyRecord | undefined {+ const stmt = db.prepare("SELECT * FROM api_keys WHERE id = ?");+ return stmt.get(id) as ApiKeyRecord | undefined;+}++export function listApiKeys(): ApiKeyRecord[] {+ const stmt = db.prepare("SELECT * FROM api_keys ORDER BY created_at DESC");+ return stmt.all() as ApiKeyRecord[];+}++// ==================== VMs ====================++export interface VMRecord {+ id: number;+ api_key_id: number;+ name: string;+ base_vm: string;+ status: "creating" | "running" | "stopped" | "error";+ agent_port: number | null;+ ssh_port: number | null;+ created_at: string;+ updated_at: string;+}++export function createVM(+ apiKeyId: number,+ name: string,+ baseVM: string,+ agentPort: number,+ sshPort: number+): VMRecord {+ const stmt = db.prepare(`+ INSERT INTO vms (api_key_id, name, base_vm, status, agent_port, ssh_port)+ VALUES (?, ?, ?, 'creating', ?, ?)+ `);+ stmt.run(apiKeyId, name, baseVM, agentPort, sshPort);+ return getVMByKeyAndName(apiKeyId, name)!;+}++export function getVMById(id: number): VMRecord | undefined {+ const stmt = db.prepare("SELECT * FROM vms WHERE id = ?");+ return stmt.get(id) as VMRecord | undefined;+}++export function getVMByKeyAndName(apiKeyId: number, name: string): VMRecord | undefined {+ const stmt = db.prepare("SELECT * FROM vms WHERE api_key_id = ? AND name = ?");+ return stmt.get(apiKeyId, name) as VMRecord | undefined;+}++export function getVMsByApiKey(apiKeyId: number): VMRecord[] {+ const stmt = db.prepare("SELECT * FROM vms WHERE api_key_id = ? ORDER BY created_at DESC");+ return stmt.all(apiKeyId) as VMRecord[];+}++export function getAllVMs(): VMRecord[] {+ const stmt = db.prepare("SELECT * FROM vms ORDER BY created_at DESC");+ return stmt.all() as VMRecord[];+}++export function updateVMStatus(id: number, status: VMRecord["status"]): void {+ const stmt = db.prepare(`+ UPDATE vms SET status = ?, updated_at = datetime('now') WHERE id = ?+ `);+ stmt.run(status, id);+}++export function deleteVM(id: number): boolean {+ const stmt = db.prepare("DELETE FROM vms WHERE id = ?");+ const result = stmt.run(id);+ return result.changes > 0;+}++export function getNextPorts(): { agentPort: number; sshPort: number } {+ const stmt = db.prepare(`+ SELECT MAX(agent_port) as maxAgent, MAX(ssh_port) as maxSSH FROM vms+ `);+ const result = stmt.get() as { maxAgent: number | null; maxSSH: number | null };++ return {+ agentPort: (result.maxAgent || 3332) + 1,+ sshPort: (result.maxSSH || 2221) + 1,+ };+}++// ==================== Snapshots ====================++export interface SnapshotRecord {+ id: number;+ vm_id: number;+ snapshot_name: string;+ command: string | null;+ s3_key: string | null;+ created_at: string;+}++export function addSnapshot(+ vmId: number,+ snapshotName: string,+ command: string | null,+ s3Key?: string+): SnapshotRecord {+ const stmt = db.prepare(`+ INSERT INTO snapshots (vm_id, snapshot_name, command, s3_key)+ VALUES (?, ?, ?, ?)+ `);+ stmt.run(vmId, snapshotName, command, s3Key || null);+ return getSnapshot(vmId, snapshotName)!;+}++export function getSnapshot(vmId: number, snapshotName: string): SnapshotRecord | undefined {+ const stmt = db.prepare("SELECT * FROM snapshots WHERE vm_id = ? AND snapshot_name = ?");+ return stmt.get(vmId, snapshotName) as SnapshotRecord | undefined;+}++export function getSnapshotsForVM(vmId: number): SnapshotRecord[] {+ const stmt = db.prepare("SELECT * FROM snapshots WHERE vm_id = ? ORDER BY created_at ASC");+ return stmt.all(vmId) as SnapshotRecord[];+}++export function getSnapshotsByApiKey(apiKeyId: number): SnapshotRecord[] {+ const stmt = db.prepare(`+ SELECT s.* FROM snapshots s+ JOIN vms v ON s.vm_id = v.id+ WHERE v.api_key_id = ?+ ORDER BY s.created_at DESC+ `);+ return stmt.all(apiKeyId) as SnapshotRecord[];+}++export function deleteSnapshotsForVM(vmId: number): void {+ const stmt = db.prepare("DELETE FROM snapshots WHERE vm_id = ?");+ stmt.run(vmId);+}++export function deleteSnapshotsAfter(vmId: number, snapshotName: string): void {+ const stmt = db.prepare(`+ DELETE FROM snapshots+ WHERE vm_id = ? AND created_at > (+ SELECT created_at FROM snapshots WHERE vm_id = ? AND snapshot_name = ?+ )+ `);+ stmt.run(vmId, vmId, snapshotName);+}++export function updateSnapshotS3Key(vmId: number, snapshotName: string, s3Key: string): void {+ const stmt = db.prepare(`+ UPDATE snapshots SET s3_key = ? WHERE vm_id = ? AND snapshot_name = ?+ `);+ stmt.run(s3Key, vmId, snapshotName);+}++export default db;diff --git a/service/src/index.ts b/service/src/index.tsnew file mode 100644index 00000000..83fb6654--- /dev/null+++ b/service/src/index.ts@@ -0,0 +1,256 @@+import express, { Request, Response, NextFunction } from "express";+import cors from "cors";+import dotenv from "dotenv";+import {+ spinUpVM,+ spinDownVM,+ listVMs,+ listAllSnapshots,+ getVMInfo,+ runOnVM,+ wipeVM,+ listSnapshots,+ restoreSnapshot,+ exportToS3,+ importFromS3,+} from "./vm-manager";+import { createApiKey, getApiKeyByKey, ApiKeyRecord } from "./db";++dotenv.config();++const app = express();++app.use(cors());+app.use(express.json());++const PORT = process.env.PORT || 4000;++// Extend Request to include auth context+declare global {+ namespace Express {+ interface Request {+ auth?: ApiKeyRecord;+ }+ }+}++/**+ * Middleware to validate API key+ */+function requireApiKey(req: Request, res: Response, next: NextFunction): void {+ const apiKey = req.headers["x-api-key"] as string;++ if (!apiKey) {+ res.status(401).json({ error: "API key required (x-api-key header)" });+ return;+ }++ const auth = getApiKeyByKey(apiKey);+ if (!auth) {+ res.status(403).json({ error: "Invalid API key" });+ return;+ }++ req.auth = auth;+ next();+}++// ==================== Public Routes ====================++// Health check+app.get("/health", (_req, res) => {+ res.json({ status: "ok", timestamp: new Date().toISOString() });+});++// Create API key+app.post("/api-keys", (req, res) => {+ const { name } = req.body;+ try {+ const apiKey = createApiKey(name);+ res.status(201).json({+ id: apiKey.id,+ key: apiKey.key,+ name: apiKey.name,+ created_at: apiKey.created_at,+ message: "Save your API key - it won't be shown again!",+ });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// ==================== Authenticated Routes ====================++app.use(requireApiKey);++// ==================== Account Info ====================++// Get current account info+app.get("/me", (req, res) => {+ res.json({+ api_key_id: req.auth!.id,+ api_key_name: req.auth!.name,+ created_at: req.auth!.created_at,+ });+});++// List all snapshots (across all VMs)+app.get("/snapshots", (req, res) => {+ try {+ const snapshots = listAllSnapshots(req.auth!.id);+ res.json({ snapshots });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// ==================== VM Management ====================++// List VMs+app.get("/vms", (req, res) => {+ try {+ const vms = listVMs(req.auth!.id);+ res.json({ vms });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Create a new VM+app.post("/vms", async (req, res) => {+ const { name } = req.body;++ if (!name) {+ res.status(400).json({ error: "name is required" });+ return;+ }++ try {+ console.log(`[API] Key ${req.auth!.id} creating VM: ${name}`);+ const vm = await spinUpVM(req.auth!.id, name);+ res.status(201).json(vm);+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Get info about a specific VM+app.get("/vms/:name", async (req, res) => {+ try {+ const vm = await getVMInfo(req.auth!.id, req.params.name);+ res.json(vm);+ } catch (error: any) {+ res.status(404).json({ error: error.message });+ }+});++// Destroy a VM+app.delete("/vms/:name", async (req, res) => {+ try {+ console.log(`[API] Key ${req.auth!.id} destroying VM: ${req.params.name}`);+ await spinDownVM(req.auth!.id, req.params.name);+ res.json({ message: `VM "${req.params.name}" destroyed` });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// ==================== Command Execution ====================++// Run a command on a VM+app.post("/vms/:name/run", async (req, res) => {+ const { command, timeout } = req.body;++ if (!command) {+ res.status(400).json({ error: "command is required" });+ return;+ }++ try {+ const result = await runOnVM(req.auth!.id, req.params.name, command, timeout);+ res.json(result);+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Wipe workspace on a VM+app.post("/vms/:name/wipe", async (req, res) => {+ try {+ await wipeVM(req.auth!.id, req.params.name);+ res.json({ message: "Workspace wiped" });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// ==================== Snapshots ====================++// List all snapshots for a VM+app.get("/vms/:name/snapshots", (req, res) => {+ try {+ const snapshots = listSnapshots(req.auth!.id, req.params.name);+ res.json({ snapshots });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Restore to a specific snapshot+app.post("/vms/:name/snapshots/:snapshot/restore", async (req, res) => {+ try {+ console.log(`[API] Key ${req.auth!.id} restoring ${req.params.name} to ${req.params.snapshot}`);+ await restoreSnapshot(req.auth!.id, req.params.name, req.params.snapshot);+ res.json({ message: `Restored to snapshot "${req.params.snapshot}"` });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// ==================== Export / Import (S3) ====================++// Export current workspace to S3+app.post("/vms/:name/export", async (req, res) => {+ const { snapshot, key } = req.body;+ try {+ console.log(`[API] Key ${req.auth!.id} exporting from ${req.params.name} to S3`);+ const result = await exportToS3(req.auth!.id, req.params.name, snapshot, key);+ res.json(result);+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Export a specific snapshot to S3+app.post("/vms/:name/snapshots/:snapshot/export", async (req, res) => {+ const { key } = req.body;+ try {+ console.log(`[API] Key ${req.auth!.id} exporting ${req.params.snapshot} from ${req.params.name} to S3`);+ const result = await exportToS3(req.auth!.id, req.params.name, req.params.snapshot, key);+ res.json(result);+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++// Import a snapshot from S3+app.post("/vms/:name/import", async (req, res) => {+ const { name, key } = req.body;+ if (!name || !key) {+ res.status(400).json({ error: "name (snapshot name) and key (S3 key) required" });+ return;+ }+ try {+ console.log(`[API] Key ${req.auth!.id} importing ${name} to ${req.params.name} from S3`);+ await importFromS3(req.auth!.id, req.params.name, name, key);+ res.json({ message: `Imported snapshot "${name}" from S3` });+ } catch (error: any) {+ res.status(500).json({ error: error.message });+ }+});++app.listen(PORT, () => {+ console.log(`🚀 Server listening on http://localhost:${PORT}`);+ console.log(` Base VM: ${process.env.BASE_VM || "dev-1"}`);+ console.log(` Get API key: POST /api-keys`);+});diff --git a/service/src/runtime/docker.ts b/service/src/runtime/docker.tsnew file mode 100644index 00000000..9afe496b--- /dev/null+++ b/service/src/runtime/docker.ts@@ -0,0 +1,379 @@+/**+ * Docker-based sandbox runtime with Btrfs snapshots+ * Uses a Btrfs-backed volume for instant copy-on-write snapshots+ */++import { spawn, execSync } from "child_process";+import { mkdir, rm, access } from "fs/promises";+import { join } from "path";+import type {+ SandboxRuntime,+ SandboxConfig,+ SandboxInstance,+ ExecutionResult,+ SnapshotInfo,+} from "./types";++interface DockerConfig {+ image: string;+ btrfsPath: string; // Btrfs-mounted directory for workspaces+ networkMode: string;+}++const DEFAULT_CONFIG: DockerConfig = {+ image: process.env.DOCKER_IMAGE || "ubuntu:22.04",+ btrfsPath: process.env.DOCKER_BTRFS_PATH || "/tmp/sandbox-docker",+ networkMode: process.env.DOCKER_NETWORK || "bridge", // bridge allows networking by default+};++interface ActiveContainer {+ containerId: string;+ containerName: string;+ workspaceSubvol: string; // Btrfs subvolume for workspace+ snapshotsDir: string;+}++const activeContainers = new Map<string, ActiveContainer>();++export class DockerRuntime implements SandboxRuntime {+ readonly name = "docker";+ private config: DockerConfig;+ private btrfsReady = false;++ constructor(config: Partial<DockerConfig> = {}) {+ this.config = { ...DEFAULT_CONFIG, ...config };+ }++ async isAvailable(): Promise<boolean> {+ // Check Docker+ const dockerOk = await new Promise<boolean>((resolve) => {+ const proc = spawn("docker", ["info"], { stdio: "pipe" });+ proc.on("close", (code) => resolve(code === 0));+ proc.on("error", () => resolve(false));+ });++ if (!dockerOk) return false;++ // Try to setup Btrfs (optional optimization)+ await this.ensureBtrfs();+ // Return true even without Btrfs - we'll use cp fallback+ return true;+ }++ private async ensureBtrfs(): Promise<void> {+ try {+ // Check if btrfsPath exists and is Btrfs+ await access(this.config.btrfsPath);+ const fsType = execSync(`stat -f -c %T ${this.config.btrfsPath} 2>/dev/null || stat -f ${this.config.btrfsPath} | grep -o 'btrfs' || echo "unknown"`, {+ encoding: "utf-8",+ }).trim();++ if (fsType.includes("btrfs")) {+ this.btrfsReady = true;+ console.log(`[Docker] Using existing Btrfs at ${this.config.btrfsPath}`);+ return;+ }+ } catch {}++ // Try to create Btrfs loopback+ console.log(`[Docker] Setting up Btrfs at ${this.config.btrfsPath}...`);++ try {+ const imgPath = `${this.config.btrfsPath}.img`;++ // Create 10GB sparse image+ execSync(`sudo truncate -s 10G ${imgPath}`);+ execSync(`sudo mkfs.btrfs ${imgPath}`);+ execSync(`sudo mkdir -p ${this.config.btrfsPath}`);+ execSync(`sudo mount -o loop ${imgPath} ${this.config.btrfsPath}`);+ execSync(`sudo chmod 777 ${this.config.btrfsPath}`);++ this.btrfsReady = true;+ console.log(`[Docker] Btrfs ready at ${this.config.btrfsPath}`);+ } catch (e: any) {+ console.warn(`[Docker] Failed to setup Btrfs: ${e.message}`);+ console.warn(`[Docker] Falling back to regular copies (slower)`);+ this.btrfsReady = false;+ }+ }++ async createSandbox(config: SandboxConfig): Promise<SandboxInstance> {+ const id = `docker_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;+ const containerName = `sandbox-${id}`;+ const sandboxDir = join(this.config.btrfsPath, id);+ const workspaceSubvol = join(sandboxDir, "workspace");+ const snapshotsDir = join(sandboxDir, "snapshots");++ console.log(`[Docker] Creating sandbox ${id}...`);++ await mkdir(sandboxDir, { recursive: true });+ await mkdir(snapshotsDir, { recursive: true });++ // Create Btrfs subvolume for workspace+ if (this.btrfsReady) {+ execSync(`btrfs subvolume create ${workspaceSubvol}`);+ } else {+ await mkdir(workspaceSubvol, { recursive: true });+ }++ // Make workspace writable+ execSync(`chmod 777 ${workspaceSubvol}`);++ // Build docker run command+ const args = [+ "run",+ "-d",+ "--name", containerName,+ "--memory", `${config.memoryMb || 512}m`,+ "--cpus", `${config.cpuCores || 1}`,+ "--network", this.config.networkMode,+ "-v", `${workspaceSubvol}:/workspace`,+ "-w", "/workspace",+ this.config.image,+ "tail", "-f", "/dev/null",+ ];++ return new Promise((resolve, reject) => {+ const proc = spawn("docker", args, { stdio: "pipe" });+ let stdout = "";+ let stderr = "";++ proc.stdout?.on("data", (data) => { stdout += data.toString(); });+ proc.stderr?.on("data", (data) => { stderr += data.toString(); });++ proc.on("close", (code) => {+ if (code !== 0) {+ reject(new Error(`Docker run failed: ${stderr}`));+ return;+ }++ const containerId = stdout.trim().slice(0, 12);++ activeContainers.set(id, {+ containerId,+ containerName,+ workspaceSubvol,+ snapshotsDir,+ });++ console.log(`[Docker] Sandbox ${id} ready (container: ${containerId})`);++ resolve({+ id,+ name: config.name,+ status: "running",+ });+ });++ proc.on("error", reject);+ });+ }++ async destroySandbox(id: string): Promise<void> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ console.log(`[Docker] Destroying sandbox ${id}...`);++ // Stop container first (so volume isn't busy)+ try {+ execSync(`docker stop -t 2 ${container.containerName} 2>/dev/null || true`);+ execSync(`docker rm -f ${container.containerName} 2>/dev/null || true`);+ } catch {}++ // Delete Btrfs subvolumes+ if (this.btrfsReady) {+ try {+ // Delete all snapshot subvolumes+ const snapshots = await this.listSnapshots(id);+ for (const snap of snapshots) {+ const snapPath = join(container.snapshotsDir, snap.name);+ execSync(`btrfs subvolume delete ${snapPath} 2>/dev/null || true`);+ }+ // Delete workspace subvolume+ execSync(`btrfs subvolume delete ${container.workspaceSubvol} 2>/dev/null || true`);+ } catch {}+ }++ // Cleanup directory+ const sandboxDir = join(this.config.btrfsPath, id);+ try {+ await rm(sandboxDir, { recursive: true, force: true });+ } catch {}++ activeContainers.delete(id);+ console.log(`[Docker] Sandbox ${id} destroyed`);+ }++ async execute(id: string, command: string, timeout = 30000): Promise<ExecutionResult> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ return new Promise((resolve) => {+ const args = ["exec", container.containerName, "/bin/sh", "-c", command];+ const proc = spawn("docker", args, { stdio: "pipe" });++ let stdout = "";+ let stderr = "";+ let killed = false;++ const timer = setTimeout(() => {+ killed = true;+ proc.kill("SIGKILL");+ }, timeout);++ proc.stdout?.on("data", (data) => { stdout += data.toString(); });+ proc.stderr?.on("data", (data) => { stderr += data.toString(); });++ proc.on("close", (code) => {+ clearTimeout(timer);+ resolve({+ stdout,+ stderr: killed ? stderr + "\nExecution timed out" : stderr,+ exitCode: killed ? 124 : (code ?? 1),+ });+ });++ proc.on("error", (err) => {+ clearTimeout(timer);+ resolve({ stdout: "", stderr: err.message, exitCode: 1 });+ });+ });+ }++ async snapshot(id: string, name: string): Promise<SnapshotInfo> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const snapshotPath = join(container.snapshotsDir, name);++ if (this.btrfsReady) {+ // Instant Btrfs snapshot+ execSync(`btrfs subvolume snapshot ${container.workspaceSubvol} ${snapshotPath}`);+ } else {+ // Fallback to copy+ await mkdir(snapshotPath, { recursive: true });+ execSync(`cp -r ${container.workspaceSubvol}/. ${snapshotPath}/`);+ }++ return { name, createdAt: new Date() };+ }++ async restore(id: string, snapshotName: string): Promise<void> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const snapshotPath = join(container.snapshotsDir, snapshotName);++ if (this.btrfsReady) {+ // Delete current workspace subvolume and snapshot from backup+ execSync(`btrfs subvolume delete ${container.workspaceSubvol}`);+ execSync(`btrfs subvolume snapshot ${snapshotPath} ${container.workspaceSubvol}`);+ execSync(`chmod 777 ${container.workspaceSubvol}`);+ } else {+ // Fallback to copy+ execSync(`rm -rf ${container.workspaceSubvol}/*`);+ execSync(`cp -r ${snapshotPath}/. ${container.workspaceSubvol}/`);+ }+ }++ async listSnapshots(id: string): Promise<SnapshotInfo[]> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const { readdir, stat } = await import("fs/promises");++ try {+ const dirs = await readdir(container.snapshotsDir);+ const snapshots: SnapshotInfo[] = [];++ for (const name of dirs) {+ const s = await stat(join(container.snapshotsDir, name));+ if (s.isDirectory()) {+ snapshots.push({ name, createdAt: s.mtime });+ }+ }++ return snapshots;+ } catch {+ return [];+ }+ }++ async wipe(id: string): Promise<void> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ if (this.btrfsReady) {+ // Recreate subvolume (fastest way to wipe)+ execSync(`btrfs subvolume delete ${container.workspaceSubvol}`);+ execSync(`btrfs subvolume create ${container.workspaceSubvol}`);+ execSync(`chmod 777 ${container.workspaceSubvol}`);+ } else {+ execSync(`rm -rf ${container.workspaceSubvol}/*`);+ }+ }++ async exportToFile(id: string, snapshotName?: string): Promise<string> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const sandboxDir = join(this.config.btrfsPath, id);+ const exportPath = join(sandboxDir, `export_${Date.now()}.tar.gz`);+ const sourceDir = snapshotName+ ? join(container.snapshotsDir, snapshotName)+ : container.workspaceSubvol;++ execSync(`tar -czf ${exportPath} -C ${sourceDir} .`);++ return exportPath;+ }++ async importFromFile(id: string, snapshotName: string, filePath: string): Promise<void> {+ const container = activeContainers.get(id);+ if (!container) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const snapshotPath = join(container.snapshotsDir, snapshotName);++ if (this.btrfsReady) {+ execSync(`btrfs subvolume create ${snapshotPath}`);+ } else {+ await mkdir(snapshotPath, { recursive: true });+ }++ execSync(`tar -xzf ${filePath} -C ${snapshotPath}`);+ }++ async healthCheck(id: string): Promise<boolean> {+ const container = activeContainers.get(id);+ if (!container) return false;++ try {+ const result = execSync(+ `docker inspect -f '{{.State.Running}}' ${container.containerName} 2>/dev/null`,+ { encoding: "utf-8" }+ );+ return result.trim() === "true";+ } catch {+ return false;+ }+ }+}++export const dockerRuntime = new DockerRuntime();diff --git a/service/src/runtime/firecracker.ts b/service/src/runtime/firecracker.tsnew file mode 100644index 00000000..3cefc54e--- /dev/null+++ b/service/src/runtime/firecracker.ts@@ -0,0 +1,430 @@+/**+ * Firecracker microVM runtime with Btrfs snapshots+ * Requires Linux with KVM support (/dev/kvm)+ */++import { spawn, execSync } from "child_process";+import { mkdir, access, rm, copyFile, writeFile } from "fs/promises";+import { randomUUID } from "crypto";+import { join } from "path";+import type {+ SandboxRuntime,+ SandboxConfig,+ SandboxInstance,+ ExecutionResult,+ SnapshotInfo,+} from "./types";++interface FirecrackerConfig {+ firecrackerBin: string;+ kernelPath: string;+ rootfsPath: string;+ btrfsPath: string; // Btrfs-mounted directory for workspaces+}++const DEFAULT_CONFIG: FirecrackerConfig = {+ firecrackerBin: process.env.FC_BIN || "/usr/local/bin/firecracker",+ kernelPath: process.env.FC_KERNEL || "/var/lib/firecracker/vmlinux",+ rootfsPath: process.env.FC_ROOTFS || "/var/lib/firecracker/rootfs.ext4",+ btrfsPath: process.env.FC_BTRFS_PATH || "/var/lib/firecracker-btrfs",+};++interface ActiveVM {+ vmDir: string;+ workspaceSubvol: string;+ snapshotsDir: string;+ socketPath: string;+ agentPort: number;+ process?: ReturnType<typeof spawn>;+}++const activeVMs = new Map<string, ActiveVM>();+let nextAgentPort = 4000;++export class FirecrackerRuntime implements SandboxRuntime {+ readonly name = "firecracker";+ private config: FirecrackerConfig;+ private btrfsReady = false;++ constructor(config: Partial<FirecrackerConfig> = {}) {+ this.config = { ...DEFAULT_CONFIG, ...config };+ }++ async isAvailable(): Promise<boolean> {+ if (process.platform !== "linux") {+ console.warn("[Firecracker] Only runs on Linux");+ return false;+ }++ try {+ await access("/dev/kvm");+ } catch {+ console.warn("[Firecracker] /dev/kvm not accessible");+ return false;+ }++ try {+ execSync(`${this.config.firecrackerBin} --version`, { stdio: "pipe" });+ await access(this.config.kernelPath);+ await access(this.config.rootfsPath);+ } catch (e) {+ console.warn("[Firecracker] Not fully configured:", e);+ return false;+ }++ // Setup Btrfs+ await this.ensureBtrfs();+ return true;+ }++ private async ensureBtrfs(): Promise<void> {+ try {+ await access(this.config.btrfsPath);+ // Check if it's actually Btrfs+ const fsType = execSync(`stat -f -c %T ${this.config.btrfsPath} 2>/dev/null || echo "unknown"`, {+ encoding: "utf-8",+ }).trim();++ if (fsType === "btrfs") {+ this.btrfsReady = true;+ console.log(`[Firecracker] Using existing Btrfs at ${this.config.btrfsPath}`);+ return;+ }+ } catch {}++ // Create Btrfs loopback+ console.log(`[Firecracker] Setting up Btrfs at ${this.config.btrfsPath}...`);++ try {+ const imgPath = `${this.config.btrfsPath}.img`;++ execSync(`sudo truncate -s 20G ${imgPath}`);+ execSync(`sudo mkfs.btrfs ${imgPath}`);+ execSync(`sudo mkdir -p ${this.config.btrfsPath}`);+ execSync(`sudo mount -o loop ${imgPath} ${this.config.btrfsPath}`);+ execSync(`sudo chmod 777 ${this.config.btrfsPath}`);++ this.btrfsReady = true;+ console.log(`[Firecracker] Btrfs ready at ${this.config.btrfsPath}`);+ } catch (e: any) {+ console.warn(`[Firecracker] Failed to setup Btrfs: ${e.message}`);+ this.btrfsReady = false;+ }+ }++ async createSandbox(config: SandboxConfig): Promise<SandboxInstance> {+ const id = `fc-${randomUUID().slice(0, 8)}`;+ const vmDir = join(this.config.btrfsPath, id);+ const socketPath = join(vmDir, "firecracker.sock");+ const workspaceSubvol = join(vmDir, "workspace");+ const snapshotsDir = join(vmDir, "snapshots");+ const agentPort = nextAgentPort++;++ console.log(`[Firecracker] Creating sandbox ${id}...`);++ await mkdir(vmDir, { recursive: true });+ await mkdir(snapshotsDir, { recursive: true });++ // Create Btrfs subvolume for workspace+ if (this.btrfsReady) {+ execSync(`btrfs subvolume create ${workspaceSubvol}`);+ } else {+ await mkdir(workspaceSubvol, { recursive: true });+ }++ // Copy rootfs to VM directory+ const rootfsCopy = join(vmDir, "rootfs.ext4");+ await copyFile(this.config.rootfsPath, rootfsCopy);++ // Create VM config with networking for agent+ const vmConfig = {+ "boot-source": {+ kernel_image_path: this.config.kernelPath,+ boot_args: `console=ttyS0 reboot=k panic=1 pci=off ip=172.16.0.2::172.16.0.1:255.255.255.0::eth0:off`,+ },+ drives: [+ {+ drive_id: "rootfs",+ path_on_host: rootfsCopy,+ is_root_device: true,+ is_read_only: false,+ },+ ],+ "machine-config": {+ vcpu_count: config.cpuCores || 1,+ mem_size_mib: config.memoryMb || 512,+ },+ "network-interfaces": [+ {+ iface_id: "eth0",+ guest_mac: "AA:FC:00:00:00:01",+ host_dev_name: `fc-${id}-tap`,+ },+ ],+ };++ const configPath = join(vmDir, "vm-config.json");+ await writeFile(configPath, JSON.stringify(vmConfig));++ // Setup TAP device for networking+ try {+ execSync(`sudo ip tuntap add fc-${id}-tap mode tap`);+ execSync(`sudo ip addr add 172.16.0.1/24 dev fc-${id}-tap`);+ execSync(`sudo ip link set fc-${id}-tap up`);+ // Forward agent port+ execSync(`sudo iptables -t nat -A PREROUTING -p tcp --dport ${agentPort} -j DNAT --to-destination 172.16.0.2:3000`);+ execSync(`sudo iptables -A FORWARD -p tcp -d 172.16.0.2 --dport 3000 -j ACCEPT`);+ } catch (e: any) {+ console.warn(`[Firecracker] Network setup warning: ${e.message}`);+ }++ // Start Firecracker+ const fc = spawn(+ this.config.firecrackerBin,+ ["--api-sock", socketPath, "--config-file", configPath],+ {+ stdio: ["ignore", "pipe", "pipe"],+ cwd: vmDir,+ }+ );++ activeVMs.set(id, {+ vmDir,+ workspaceSubvol,+ snapshotsDir,+ socketPath,+ agentPort,+ process: fc,+ });++ // Wait for VM and agent to be ready+ console.log(`[Firecracker] Waiting for agent on port ${agentPort}...`);+ await this.waitForAgent(agentPort, 30000);++ console.log(`[Firecracker] Sandbox ${id} ready`);++ return {+ id,+ name: config.name,+ status: "running",+ agentUrl: `http://localhost:${agentPort}`,+ };+ }++ private async waitForAgent(port: number, timeoutMs: number): Promise<void> {+ const start = Date.now();+ while (Date.now() - start < timeoutMs) {+ try {+ const res = await fetch(`http://localhost:${port}/health`);+ if (res.ok) return;+ } catch {}+ await new Promise((r) => setTimeout(r, 1000));+ }+ throw new Error("Timeout waiting for agent");+ }++ async destroySandbox(id: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ console.log(`[Firecracker] Destroying sandbox ${id}...`);++ // Kill the process+ if (vm.process) {+ vm.process.kill("SIGKILL");+ }++ // Cleanup networking+ try {+ execSync(`sudo iptables -t nat -D PREROUTING -p tcp --dport ${vm.agentPort} -j DNAT --to-destination 172.16.0.2:3000 2>/dev/null || true`);+ execSync(`sudo ip link delete fc-${id}-tap 2>/dev/null || true`);+ } catch {}++ // Delete Btrfs subvolumes+ if (this.btrfsReady) {+ try {+ const snapshots = await this.listSnapshots(id);+ for (const snap of snapshots) {+ execSync(`btrfs subvolume delete ${join(vm.snapshotsDir, snap.name)} 2>/dev/null || true`);+ }+ execSync(`btrfs subvolume delete ${vm.workspaceSubvol} 2>/dev/null || true`);+ } catch {}+ }++ // Cleanup directory+ try {+ await rm(vm.vmDir, { recursive: true, force: true });+ } catch {}++ activeVMs.delete(id);+ console.log(`[Firecracker] Sandbox ${id} destroyed`);+ }++ async execute(id: string, command: string, timeout = 30000): Promise<ExecutionResult> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ // Execute via agent+ const controller = new AbortController();+ const timer = setTimeout(() => controller.abort(), timeout);++ try {+ const res = await fetch(`http://localhost:${vm.agentPort}/exec`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ command, timeout: Math.floor(timeout / 1000) }),+ signal: controller.signal,+ });++ clearTimeout(timer);++ if (!res.ok) {+ throw new Error(`Agent error: ${res.status}`);+ }++ return res.json();+ } catch (e: any) {+ clearTimeout(timer);+ if (e.name === "AbortError") {+ return { stdout: "", stderr: "Execution timed out", exitCode: 124 };+ }+ return { stdout: "", stderr: e.message, exitCode: 1 };+ }+ }++ async snapshot(id: string, name: string): Promise<SnapshotInfo> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ // Use agent for Btrfs snapshot (it has access to /workspace)+ const res = await fetch(`http://localhost:${vm.agentPort}/snapshot`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name }),+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Snapshot failed");+ }++ return { name, createdAt: new Date() };+ }++ async restore(id: string, snapshotName: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/restore`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name: snapshotName }),+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Restore failed");+ }+ }++ async listSnapshots(id: string): Promise<SnapshotInfo[]> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ try {+ const res = await fetch(`http://localhost:${vm.agentPort}/snapshots`);+ if (!res.ok) return [];+ const data = await res.json();+ return data.snapshots.map((s: any) => ({+ name: s.name,+ createdAt: new Date(s.created_at),+ }));+ } catch {+ return [];+ }+ }++ async wipe(id: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/wipe`, {+ method: "POST",+ });++ if (!res.ok) {+ throw new Error(`Agent error: ${res.status}`);+ }+ }++ async exportToFile(id: string, snapshotName?: string): Promise<string> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/export`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name: snapshotName || "workspace" }),+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Export failed");+ }++ const exportInfo = await res.json();+ return `http://localhost:${vm.agentPort}/download/${exportInfo.name}`;+ }++ async importFromFile(id: string, snapshotName: string, filePath: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const { readFile } = await import("fs/promises");+ const data = await readFile(filePath);++ const res = await fetch(`http://localhost:${vm.agentPort}/upload/${snapshotName}`, {+ method: "PUT",+ headers: {+ "Content-Type": "application/gzip",+ "Content-Length": data.length.toString(),+ },+ body: data,+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Import failed");+ }+ }++ async healthCheck(id: string): Promise<boolean> {+ const vm = activeVMs.get(id);+ if (!vm) return false;++ try {+ const res = await fetch(`http://localhost:${vm.agentPort}/health`);+ return res.ok;+ } catch {+ return false;+ }+ }+}++export const firecrackerRuntime = new FirecrackerRuntime();diff --git a/service/src/runtime/index.ts b/service/src/runtime/index.tsnew file mode 100644index 00000000..410421ce--- /dev/null+++ b/service/src/runtime/index.ts@@ -0,0 +1,51 @@+/**+ * Runtime module - pluggable sandbox execution backends+ */++export * from "./types";+export { virtualboxRuntime, VirtualBoxRuntime } from "./virtualbox";+export { firecrackerRuntime, FirecrackerRuntime } from "./firecracker";+export { dockerRuntime, DockerRuntime } from "./docker";++import { runtimeRegistry } from "./types";+import { virtualboxRuntime } from "./virtualbox";+import { firecrackerRuntime } from "./firecracker";+import { dockerRuntime } from "./docker";++// Register available runtimes+runtimeRegistry.register(virtualboxRuntime);+runtimeRegistry.register(firecrackerRuntime);+runtimeRegistry.register(dockerRuntime);++// Set default based on environment or availability+const defaultRuntime = process.env.SANDBOX_RUNTIME || "virtualbox";+try {+ runtimeRegistry.setDefault(defaultRuntime);+} catch {+ console.warn(`Runtime "${defaultRuntime}" not available, will auto-detect`);+}++export { runtimeRegistry };++/**+ * Get the active runtime (auto-detects if needed)+ */+export async function getRuntime() {+ try {+ const runtime = runtimeRegistry.get();+ if (await runtime.isAvailable()) {+ return runtime;+ }+ } catch {}++ // Auto-detect+ const available = await runtimeRegistry.findAvailable();+ if (!available) {+ throw new Error("No sandbox runtime available");+ }++ console.log(`[Runtime] Auto-detected: ${available.name}`);+ runtimeRegistry.setDefault(available.name);+ return available;+}+diff --git a/service/src/runtime/types.ts b/service/src/runtime/types.tsnew file mode 100644index 00000000..e6538654--- /dev/null+++ b/service/src/runtime/types.ts@@ -0,0 +1,119 @@+/**+ * Runtime abstraction for sandbox execution backends+ */++export interface SandboxConfig {+ name: string;+ cpuCores?: number;+ memoryMb?: number;+ timeout?: number; // ms+}++export interface ExecutionResult {+ stdout: string;+ stderr: string;+ exitCode: number;+}++export interface SnapshotInfo {+ name: string;+ createdAt: Date;+}++export interface SandboxInstance {+ id: string;+ name: string;+ status: "creating" | "running" | "stopped" | "error";+ agentUrl?: string; // For agent-based runtimes+}++/**+ * Runtime interface - implement this to add a new backend+ */+export interface SandboxRuntime {+ /** Runtime name (e.g., "virtualbox", "firecracker") */+ readonly name: string;++ /** Check if this runtime is available on the current system */+ isAvailable(): Promise<boolean>;++ /** Create and start a new sandbox */+ createSandbox(config: SandboxConfig): Promise<SandboxInstance>;++ /** Destroy a sandbox */+ destroySandbox(id: string): Promise<void>;++ /** Execute a command in a sandbox */+ execute(id: string, command: string, timeout?: number): Promise<ExecutionResult>;++ /** Take a filesystem snapshot */+ snapshot(id: string, name: string): Promise<SnapshotInfo>;++ /** Restore to a snapshot */+ restore(id: string, snapshotName: string): Promise<void>;++ /** List snapshots for a sandbox */+ listSnapshots(id: string): Promise<SnapshotInfo[]>;++ /** Wipe the workspace */+ wipe(id: string): Promise<void>;++ /** Export workspace/snapshot to a file, return path */+ exportToFile(id: string, snapshotName?: string): Promise<string>;++ /** Import from a file */+ importFromFile(id: string, snapshotName: string, filePath: string): Promise<void>;++ /** Health check for a sandbox */+ healthCheck(id: string): Promise<boolean>;+}++/**+ * Runtime registry - manages available runtimes+ */+export class RuntimeRegistry {+ private runtimes = new Map<string, SandboxRuntime>();+ private defaultRuntime: string | null = null;++ register(runtime: SandboxRuntime): void {+ this.runtimes.set(runtime.name, runtime);+ if (!this.defaultRuntime) {+ this.defaultRuntime = runtime.name;+ }+ }++ setDefault(name: string): void {+ if (!this.runtimes.has(name)) {+ throw new Error(`Runtime "${name}" not registered`);+ }+ this.defaultRuntime = name;+ }++ get(name?: string): SandboxRuntime {+ const runtimeName = name || this.defaultRuntime;+ if (!runtimeName) {+ throw new Error("No runtime available");+ }+ const runtime = this.runtimes.get(runtimeName);+ if (!runtime) {+ throw new Error(`Runtime "${runtimeName}" not found`);+ }+ return runtime;+ }++ list(): string[] {+ return Array.from(this.runtimes.keys());+ }++ async findAvailable(): Promise<SandboxRuntime | null> {+ for (const runtime of this.runtimes.values()) {+ if (await runtime.isAvailable()) {+ return runtime;+ }+ }+ return null;+ }+}++export const runtimeRegistry = new RuntimeRegistry();+diff --git a/service/src/runtime/virtualbox.ts b/service/src/runtime/virtualbox.tsnew file mode 100644index 00000000..a926ea4e--- /dev/null+++ b/service/src/runtime/virtualbox.ts@@ -0,0 +1,306 @@+/**+ * VirtualBox runtime - uses VBoxManage + agent inside VM+ */++import { exec } from "child_process";+import { promisify } from "util";+import { join } from "path";+import type {+ SandboxRuntime,+ SandboxConfig,+ SandboxInstance,+ ExecutionResult,+ SnapshotInfo,+} from "./types";++const execAsync = promisify(exec);++interface VirtualBoxConfig {+ baseVM: string;+ vmUser: string;+ vmPassword: string;+ agentPath: string;+}++const DEFAULT_CONFIG: VirtualBoxConfig = {+ baseVM: process.env.BASE_VM || "dev-1",+ vmUser: process.env.VM_USER || "user",+ vmPassword: process.env.VM_PASSWORD || "root",+ agentPath: join(__dirname, "..", "..", "agent", "agent.py"),+};++// Track active VMs: sandboxId -> { vboxName, agentPort, sshPort }+const activeVMs = new Map<string, { vboxName: string; agentPort: number; sshPort: number }>();++// Port allocation+let nextAgentPort = 3333;+let nextSshPort = 2222;++function allocatePorts(): { agentPort: number; sshPort: number } {+ const ports = { agentPort: nextAgentPort++, sshPort: nextSshPort++ };+ return ports;+}++export class VirtualBoxRuntime implements SandboxRuntime {+ readonly name = "virtualbox";+ private config: VirtualBoxConfig;++ constructor(config: Partial<VirtualBoxConfig> = {}) {+ this.config = { ...DEFAULT_CONFIG, ...config };+ }++ async isAvailable(): Promise<boolean> {+ try {+ await execAsync("VBoxManage --version");+ await execAsync(`VBoxManage showvminfo "${this.config.baseVM}"`);+ return true;+ } catch {+ return false;+ }+ }++ async createSandbox(config: SandboxConfig): Promise<SandboxInstance> {+ const id = `vbox_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`;+ const vboxName = `sandbox_${id}`;+ const { agentPort, sshPort } = allocatePorts();++ console.log(`[VirtualBox] Creating sandbox ${id}...`);++ try {+ // Clone from base VM+ await execAsync(+ `VBoxManage clonevm "${this.config.baseVM}" --name "${vboxName}" --register --options link --snapshot "base"`+ );++ // Set up port forwarding+ await execAsync(`VBoxManage modifyvm "${vboxName}" --natpf1 delete "ssh" 2>/dev/null || true`);+ await execAsync(`VBoxManage modifyvm "${vboxName}" --natpf1 delete "agent" 2>/dev/null || true`);+ await execAsync(`VBoxManage modifyvm "${vboxName}" --natpf1 "ssh,tcp,,${sshPort},,22"`);+ await execAsync(`VBoxManage modifyvm "${vboxName}" --natpf1 "agent,tcp,,${agentPort},,3000"`);++ // Apply resource limits if specified+ if (config.cpuCores) {+ await execAsync(`VBoxManage modifyvm "${vboxName}" --cpus ${config.cpuCores}`);+ }+ if (config.memoryMb) {+ await execAsync(`VBoxManage modifyvm "${vboxName}" --memory ${config.memoryMb}`);+ }++ // Start VM+ await execAsync(`VBoxManage startvm "${vboxName}" --type headless`);++ // Wait for agent+ await this.waitForAgent(agentPort, 60000);++ activeVMs.set(id, { vboxName, agentPort, sshPort });++ console.log(`[VirtualBox] Sandbox ${id} ready on port ${agentPort}`);++ return {+ id,+ name: config.name,+ status: "running",+ agentUrl: `http://localhost:${agentPort}`,+ };+ } catch (error: any) {+ console.error(`[VirtualBox] Failed to create sandbox:`, error.message);+ // Cleanup on failure+ try {+ await execAsync(`VBoxManage controlvm "${vboxName}" poweroff 2>/dev/null`);+ await execAsync(`VBoxManage unregistervm "${vboxName}" --delete 2>/dev/null`);+ } catch {}+ throw error;+ }+ }++ async destroySandbox(id: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ console.log(`[VirtualBox] Destroying sandbox ${id}...`);++ try {+ await execAsync(`VBoxManage controlvm "${vm.vboxName}" poweroff 2>/dev/null`);+ await new Promise((r) => setTimeout(r, 2000));+ } catch {}++ try {+ await execAsync(`VBoxManage unregistervm "${vm.vboxName}" --delete`);+ } catch (error: any) {+ console.error(`[VirtualBox] Error deleting VM:`, error.message);+ }++ activeVMs.delete(id);+ console.log(`[VirtualBox] Sandbox ${id} destroyed`);+ }++ async execute(id: string, command: string, timeout = 30000): Promise<ExecutionResult> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/exec`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ command, timeout: Math.floor(timeout / 1000) }),+ });++ if (!res.ok) {+ throw new Error(`Agent error: ${res.status}`);+ }++ return res.json();+ }++ async snapshot(id: string, name: string): Promise<SnapshotInfo> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/snapshot`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name }),+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Snapshot failed");+ }++ return { name, createdAt: new Date() };+ }++ async restore(id: string, snapshotName: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/restore`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name: snapshotName }),+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Restore failed");+ }+ }++ async listSnapshots(id: string): Promise<SnapshotInfo[]> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/snapshots`);+ if (!res.ok) {+ throw new Error(`Agent error: ${res.status}`);+ }++ const data = await res.json();+ return data.snapshots.map((s: any) => ({+ name: s.name,+ createdAt: new Date(s.created_at),+ }));+ }++ async wipe(id: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ const res = await fetch(`http://localhost:${vm.agentPort}/wipe`, {+ method: "POST",+ });++ if (!res.ok) {+ throw new Error(`Agent error: ${res.status}`);+ }+ }++ async exportToFile(id: string, snapshotName = "workspace"): Promise<string> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ // Tell agent to create export file+ const exportRes = await fetch(`http://localhost:${vm.agentPort}/export`, {+ method: "POST",+ headers: { "Content-Type": "application/json" },+ body: JSON.stringify({ name: snapshotName }),+ });++ if (!exportRes.ok) {+ const error = await exportRes.json();+ throw new Error(error.error || "Export failed");+ }++ const exportInfo = await exportRes.json();++ // Return the download URL (caller can stream from this)+ return `http://localhost:${vm.agentPort}/download/${exportInfo.name}`;+ }++ async importFromFile(id: string, snapshotName: string, filePath: string): Promise<void> {+ const vm = activeVMs.get(id);+ if (!vm) {+ throw new Error(`Sandbox ${id} not found`);+ }++ // Read file and upload to agent+ const { readFile } = await import("fs/promises");+ const data = await readFile(filePath);++ const res = await fetch(`http://localhost:${vm.agentPort}/upload/${snapshotName}`, {+ method: "PUT",+ headers: {+ "Content-Type": "application/gzip",+ "Content-Length": data.length.toString(),+ },+ body: data,+ });++ if (!res.ok) {+ const error = await res.json();+ throw new Error(error.error || "Import failed");+ }+ }++ async healthCheck(id: string): Promise<boolean> {+ const vm = activeVMs.get(id);+ if (!vm) {+ return false;+ }++ try {+ const res = await fetch(`http://localhost:${vm.agentPort}/health`);+ return res.ok;+ } catch {+ return false;+ }+ }++ private async waitForAgent(port: number, timeoutMs: number): Promise<void> {+ const start = Date.now();+ while (Date.now() - start < timeoutMs) {+ try {+ const res = await fetch(`http://localhost:${port}/health`);+ if (res.ok) return;+ } catch {}+ await new Promise((r) => setTimeout(r, 1000));+ }+ throw new Error("Timeout waiting for agent");+ }+}++export const virtualboxRuntime = new VirtualBoxRuntime();+diff --git a/service/src/vm-manager.ts b/service/src/vm-manager.tsnew file mode 100644index 00000000..f3ba46a1--- /dev/null+++ b/service/src/vm-manager.ts@@ -0,0 +1,384 @@+import { Readable } from "stream";+import { S3Client, GetObjectCommand } from "@aws-sdk/client-s3";+import { Upload } from "@aws-sdk/lib-storage";+import {+ createVM,+ getVMById,+ getVMByKeyAndName,+ getVMsByApiKey,+ updateVMStatus,+ deleteVM,+ getNextPorts,+ VMRecord,+ addSnapshot,+ getSnapshotsForVM,+ getSnapshotsByApiKey,+ deleteSnapshotsForVM,+ deleteSnapshotsAfter,+ updateSnapshotS3Key,+ SnapshotRecord,+} from "./db";+import { getRuntime, SandboxRuntime, SandboxInstance } from "./runtime";++// S3 config+const S3_BUCKET = process.env.S3_BUCKET;+const S3_REGION = process.env.S3_REGION || "us-east-1";+const S3_PREFIX = process.env.S3_PREFIX || "snapshots/";++const s3 = S3_BUCKET ? new S3Client({ region: S3_REGION }) : null;++// Map DB VM id -> runtime sandbox id+const vmToSandbox = new Map<number, string>();++// Cached runtime instance+let runtime: SandboxRuntime | null = null;++async function getActiveRuntime(): Promise<SandboxRuntime> {+ if (!runtime) {+ runtime = await getRuntime();+ console.log(`[VM Manager] Using runtime: ${runtime.name}`);+ }+ return runtime;+}++/**+ * Create a new sandbox VM+ */+export async function spinUpVM(apiKeyId: number, name: string): Promise<VMRecord> {+ // Check if VM already exists for this API key+ const existing = getVMByKeyAndName(apiKeyId, name);+ if (existing) {+ throw new Error(`VM "${name}" already exists`);+ }++ const rt = await getActiveRuntime();++ // Get next available ports (for DB tracking)+ const { agentPort, sshPort } = getNextPorts();++ // Create DB record+ const vm = createVM(apiKeyId, name, rt.name, agentPort, sshPort);++ try {+ console.log(`[VM] Creating sandbox "${name}" with ${rt.name}...`);++ // Create sandbox via runtime+ const sandbox = await rt.createSandbox({+ name: `key${apiKeyId}_${name}`,+ cpuCores: 1,+ memoryMb: 512,+ });++ // Track mapping+ vmToSandbox.set(vm.id, sandbox.id);++ // Take initial snapshot+ console.log(`[VM] Taking initial snapshot...`);+ await rt.snapshot(sandbox.id, "initial");+ addSnapshot(vm.id, "initial", null);++ updateVMStatus(vm.id, "running");+ console.log(`[VM] "${name}" is ready (sandbox: ${sandbox.id})`);++ return getVMById(vm.id)!;+ } catch (error: any) {+ console.error(`[VM] Error creating "${name}":`, error.message);+ updateVMStatus(vm.id, "error");+ throw error;+ }+}++/**+ * Shut down and destroy a VM+ */+export async function spinDownVM(apiKeyId: number, name: string): Promise<void> {+ const vm = getVMByKeyAndName(apiKeyId, name);+ if (!vm) {+ throw new Error(`VM "${name}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);++ console.log(`[VM] Shutting down "${name}"...`);++ if (sandboxId) {+ try {+ await rt.destroySandbox(sandboxId);+ } catch (error: any) {+ console.error(`[VM] Error destroying sandbox:`, error.message);+ }+ vmToSandbox.delete(vm.id);+ }++ // Remove from database+ deleteSnapshotsForVM(vm.id);+ deleteVM(vm.id);+ console.log(`[VM] "${name}" destroyed`);+}++/**+ * List VMs for an API key+ */+export function listVMs(apiKeyId: number): VMRecord[] {+ return getVMsByApiKey(apiKeyId);+}++/**+ * List all snapshots for an API key (across all VMs)+ */+export function listAllSnapshots(apiKeyId: number): SnapshotRecord[] {+ return getSnapshotsByApiKey(apiKeyId);+}++/**+ * Get info about a specific VM+ */+export async function getVMInfo(apiKeyId: number, name: string): Promise<VMRecord & { agentHealthy: boolean }> {+ const vm = getVMByKeyAndName(apiKeyId, name);+ if (!vm) {+ throw new Error(`VM "${name}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);++ let agentHealthy = false;+ if (sandboxId) {+ agentHealthy = await rt.healthCheck(sandboxId);+ }++ return { ...vm, agentHealthy };+}++/**+ * Run a command on a VM and take a snapshot afterward+ */+export async function runOnVM(+ apiKeyId: number,+ name: string,+ command: string,+ timeout = 30+): Promise<{ stdout: string; stderr: string; exitCode: number; snapshot: string }> {+ const vm = getVMByKeyAndName(apiKeyId, name);+ if (!vm) {+ throw new Error(`VM "${name}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);+ if (!sandboxId) {+ throw new Error(`VM "${name}" sandbox not found`);+ }++ // Execute command+ const result = await rt.execute(sandboxId, command, timeout * 1000);++ // Take snapshot+ const snapshotName = `cmd_${Date.now()}`;+ await rt.snapshot(sandboxId, snapshotName);+ addSnapshot(vm.id, snapshotName, command);++ return { ...result, snapshot: snapshotName };+}++/**+ * Wipe workspace on a VM+ */+export async function wipeVM(apiKeyId: number, name: string): Promise<void> {+ const vm = getVMByKeyAndName(apiKeyId, name);+ if (!vm) {+ throw new Error(`VM "${name}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);+ if (!sandboxId) {+ throw new Error(`VM "${name}" sandbox not found`);+ }++ await rt.wipe(sandboxId);+}++/**+ * List all snapshots for a VM+ */+export function listSnapshots(apiKeyId: number, name: string): SnapshotRecord[] {+ const vm = getVMByKeyAndName(apiKeyId, name);+ if (!vm) {+ throw new Error(`VM "${name}" not found`);+ }+ return getSnapshotsForVM(vm.id);+}++/**+ * Restore a VM to a specific snapshot+ */+export async function restoreSnapshot(apiKeyId: number, vmName: string, snapshotName: string): Promise<void> {+ const vm = getVMByKeyAndName(apiKeyId, vmName);+ if (!vm) {+ throw new Error(`VM "${vmName}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);+ if (!sandboxId) {+ throw new Error(`VM "${vmName}" sandbox not found`);+ }++ console.log(`[VM] Restoring "${vmName}" to snapshot "${snapshotName}"...`);++ await rt.restore(sandboxId, snapshotName);+ deleteSnapshotsAfter(vm.id, snapshotName);++ console.log(`[VM] "${vmName}" restored to "${snapshotName}"`);+}++interface ExportResult {+ bucket: string;+ key: string;+ size: number;+ url: string;+}++/**+ * Export a snapshot to S3+ */+export async function exportToS3(+ apiKeyId: number,+ vmName: string,+ snapshotName = "workspace",+ s3Key?: string+): Promise<ExportResult> {+ if (!s3 || !S3_BUCKET) {+ throw new Error("S3 not configured (set S3_BUCKET env var)");+ }++ const vm = getVMByKeyAndName(apiKeyId, vmName);+ if (!vm) {+ throw new Error(`VM "${vmName}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);+ if (!sandboxId) {+ throw new Error(`VM "${vmName}" sandbox not found`);+ }++ console.log(`[VM] Exporting "${snapshotName}" from "${vmName}" to S3...`);++ // Get export file/URL from runtime+ const exportUrl = await rt.exportToFile(sandboxId, snapshotName === "workspace" ? undefined : snapshotName);++ // Stream to S3+ const finalKey = s3Key || `${S3_PREFIX}key${apiKeyId}/${vmName}/${snapshotName}_${Date.now()}.tar.gz`;++ // If it's a URL, fetch and stream+ if (exportUrl.startsWith("http")) {+ const res = await fetch(exportUrl);+ if (!res.ok || !res.body) {+ throw new Error("Failed to download export");+ }++ const upload = new Upload({+ client: s3,+ params: {+ Bucket: S3_BUCKET,+ Key: finalKey,+ Body: Readable.fromWeb(res.body as any),+ ContentType: "application/gzip",+ },+ });++ await upload.done();+ } else {+ // It's a local file path+ const { createReadStream, statSync } = await import("fs");+ const stream = createReadStream(exportUrl);++ const upload = new Upload({+ client: s3,+ params: {+ Bucket: S3_BUCKET,+ Key: finalKey,+ Body: stream,+ ContentType: "application/gzip",+ },+ });++ await upload.done();+ }++ // Update snapshot record with S3 key+ if (snapshotName !== "workspace") {+ updateSnapshotS3Key(vm.id, snapshotName, finalKey);+ }++ console.log(`[VM] Exported to s3://${S3_BUCKET}/${finalKey}`);++ return {+ bucket: S3_BUCKET,+ key: finalKey,+ size: 0, // Would need to track this+ url: `s3://${S3_BUCKET}/${finalKey}`,+ };+}++/**+ * Import a snapshot from S3+ */+export async function importFromS3(+ apiKeyId: number,+ vmName: string,+ snapshotName: string,+ s3Key: string+): Promise<void> {+ if (!s3 || !S3_BUCKET) {+ throw new Error("S3 not configured (set S3_BUCKET env var)");+ }++ const vm = getVMByKeyAndName(apiKeyId, vmName);+ if (!vm) {+ throw new Error(`VM "${vmName}" not found`);+ }++ const rt = await getActiveRuntime();+ const sandboxId = vmToSandbox.get(vm.id);+ if (!sandboxId) {+ throw new Error(`VM "${vmName}" sandbox not found`);+ }++ console.log(`[VM] Importing "${snapshotName}" to "${vmName}" from S3...`);++ // Download from S3 to temp file+ const getCommand = new GetObjectCommand({+ Bucket: S3_BUCKET,+ Key: s3Key,+ });++ const s3Response = await s3.send(getCommand);+ if (!s3Response.Body) {+ throw new Error("Failed to get object from S3");+ }++ // Write to temp file+ const { writeFile, unlink } = await import("fs/promises");+ const tempPath = `/tmp/import_${Date.now()}.tar.gz`;++ const chunks: Buffer[] = [];+ for await (const chunk of s3Response.Body as any) {+ chunks.push(chunk);+ }+ await writeFile(tempPath, Buffer.concat(chunks));++ // Import via runtime+ await rt.importFromFile(sandboxId, snapshotName, tempPath);++ // Cleanup temp file+ await unlink(tempPath);++ // Add to DB+ addSnapshot(vm.id, snapshotName, `[imported from s3://${s3Key}]`, s3Key);++ console.log(`[VM] Imported "${snapshotName}" to "${vmName}"`);+}diff --git a/service/tsconfig.json b/service/tsconfig.jsonnew file mode 100644index 00000000..39c5bd95--- /dev/null+++ b/service/tsconfig.json@@ -0,0 +1,12 @@+{+ "compilerOptions": {+ "target": "ES2020",+ "module": "CommonJS",+ "rootDir": "src",+ "outDir": "dist",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true+ },+ "include": ["src"]+}