windows-development-sandbox 1.0.5 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +25 -8
- package/config.example.json +55 -5
- package/dist/api.js +2 -1
- package/dist/cli/args.d.ts +23 -0
- package/dist/cli/args.js +38 -4
- package/dist/cli/colors.d.ts +24 -0
- package/dist/cli/colors.js +42 -0
- package/dist/cli/commands/accounts.js +2 -2
- package/dist/cli/commands/agent-commands.d.ts +6 -0
- package/dist/cli/commands/agent-commands.js +61 -0
- package/dist/cli/commands/context.d.ts +2 -0
- package/dist/cli/commands/context.js +5 -1
- package/dist/cli/commands/data/clean.d.ts +15 -0
- package/dist/cli/commands/data/clean.js +106 -0
- package/dist/cli/commands/data/collect.d.ts +11 -0
- package/dist/cli/commands/data/collect.js +54 -0
- package/dist/cli/commands/data/index.d.ts +4 -0
- package/dist/cli/commands/data/index.js +45 -0
- package/dist/cli/commands/data/remove.d.ts +2 -0
- package/dist/cli/commands/data/remove.js +30 -0
- package/dist/cli/commands/index.d.ts +6 -4
- package/dist/cli/commands/index.js +6 -4
- package/dist/cli/commands/launch.d.ts +26 -2
- package/dist/cli/commands/launch.js +256 -42
- package/dist/cli/commands/maintenance.d.ts +2 -0
- package/dist/cli/commands/maintenance.js +67 -5
- package/dist/cli/commands/project.d.ts +29 -0
- package/dist/cli/commands/project.js +63 -0
- package/dist/cli/commands/projects.d.ts +14 -0
- package/dist/cli/commands/projects.js +146 -0
- package/dist/cli/commands/repair/checks.d.ts +2 -0
- package/dist/cli/commands/{repair.js → repair/checks.js} +19 -181
- package/dist/cli/commands/{repair.d.ts → repair/finders.d.ts} +0 -29
- package/dist/cli/commands/repair/finders.js +108 -0
- package/dist/cli/commands/repair/index.d.ts +12 -0
- package/dist/cli/commands/repair/index.js +61 -0
- package/dist/cli/commands/repair/types.d.ts +26 -0
- package/dist/cli/commands/repair/types.js +3 -0
- package/dist/cli/commands/restart.d.ts +6 -0
- package/dist/cli/commands/restart.js +85 -0
- package/dist/cli/commands/sessions.d.ts +2 -1
- package/dist/cli/commands/sessions.js +189 -45
- package/dist/cli/commands/setup/checks.d.ts +13 -0
- package/dist/cli/commands/setup/checks.js +71 -0
- package/dist/cli/commands/{setup.d.ts → setup/facts.d.ts} +1 -15
- package/dist/cli/commands/setup/facts.js +60 -0
- package/dist/cli/commands/setup/index.d.ts +2 -0
- package/dist/cli/commands/setup/index.js +43 -0
- package/dist/cli/commands/user-config.d.ts +8 -0
- package/dist/cli/commands/user-config.js +41 -0
- package/dist/cli/history.d.ts +11 -0
- package/dist/cli/history.js +21 -0
- package/dist/cli/index.d.ts +7 -1
- package/dist/cli/index.js +42 -15
- package/dist/cli/manifest.d.ts +8 -0
- package/dist/cli/manifest.js +40 -15
- package/dist/cli/menu/apps.d.ts +21 -0
- package/dist/cli/menu/apps.js +122 -0
- package/dist/cli/menu/command-form.d.ts +28 -0
- package/dist/cli/menu/command-form.js +219 -0
- package/dist/cli/menu/index.d.ts +26 -0
- package/dist/cli/menu/index.js +180 -0
- package/dist/cli/menu/settings/categories.d.ts +9 -0
- package/dist/cli/menu/settings/categories.js +28 -0
- package/dist/cli/menu/settings/config-file.d.ts +40 -0
- package/dist/cli/menu/settings/config-file.js +71 -0
- package/dist/cli/menu/settings/editors.d.ts +30 -0
- package/dist/cli/menu/settings/editors.js +305 -0
- package/dist/cli/menu/settings/index.d.ts +32 -0
- package/dist/cli/menu/settings/index.js +136 -0
- package/dist/cli/menu/settings/schema-node.d.ts +62 -0
- package/dist/cli/menu/settings/schema-node.js +104 -0
- package/dist/cli/menu/several.d.ts +20 -0
- package/dist/cli/menu/several.js +102 -0
- package/dist/cli/progress.d.ts +9 -0
- package/dist/cli/progress.js +49 -0
- package/dist/cli/tui/app.d.ts +39 -0
- package/dist/cli/tui/app.js +52 -0
- package/dist/cli/tui/dialogs.d.ts +57 -0
- package/dist/cli/tui/dialogs.js +162 -0
- package/dist/cli/tui/frame.d.ts +18 -0
- package/dist/cli/tui/frame.js +27 -0
- package/dist/cli/tui/index.d.ts +7 -0
- package/dist/cli/tui/index.js +8 -0
- package/dist/cli/tui/list-screen.d.ts +101 -0
- package/dist/cli/tui/list-screen.js +299 -0
- package/dist/cli/tui/terminal.d.ts +37 -0
- package/dist/cli/tui/terminal.js +89 -0
- package/dist/cli/tui/text.d.ts +20 -0
- package/dist/cli/tui/text.js +105 -0
- package/dist/cli/tui/theme.d.ts +45 -0
- package/dist/cli/tui/theme.js +30 -0
- package/dist/cli/validate.d.ts +17 -0
- package/dist/cli/validate.js +89 -0
- package/dist/core/config.js +12 -6
- package/dist/core/disk.d.ts +16 -0
- package/dist/core/disk.js +55 -0
- package/dist/core/local-config.d.ts +23 -0
- package/dist/core/local-config.js +79 -7
- package/dist/core/project-policy.d.ts +15 -0
- package/dist/core/project-policy.js +35 -0
- package/dist/core/prompt.d.ts +4 -0
- package/dist/core/prompt.js +15 -0
- package/dist/core/safe-paths.d.ts +4 -0
- package/dist/core/safe-paths.js +37 -0
- package/dist/core/schema/apps.d.ts +40 -0
- package/dist/core/schema/apps.js +27 -0
- package/dist/core/schema/common.d.ts +17 -0
- package/dist/core/schema/common.js +15 -0
- package/dist/core/schema/config.d.ts +659 -0
- package/dist/core/schema/config.js +75 -0
- package/dist/core/schema/databases.d.ts +33 -0
- package/dist/core/schema/databases.js +35 -0
- package/dist/core/schema/harness.d.ts +12 -0
- package/dist/core/schema/harness.js +17 -0
- package/dist/core/schema/json-schema.d.ts +5 -0
- package/dist/core/schema/json-schema.js +25 -0
- package/dist/core/schema/profile.d.ts +32 -0
- package/dist/core/schema/profile.js +31 -0
- package/dist/core/schema/projects.d.ts +9 -0
- package/dist/core/schema/projects.js +11 -0
- package/dist/core/schema/sandbox.d.ts +78 -0
- package/dist/core/schema/sandbox.js +64 -0
- package/dist/core/schema/toolchains.d.ts +96 -0
- package/dist/core/schema/toolchains.js +88 -0
- package/dist/core/schema.d.ts +6 -604
- package/dist/core/schema.js +8 -264
- package/dist/core/types.d.ts +35 -1
- package/dist/core/util.d.ts +9 -0
- package/dist/core/util.js +14 -3
- package/dist/core/workspace.d.ts +0 -5
- package/dist/core/workspace.js +33 -50
- package/dist/guest/apps/index.d.ts +10 -0
- package/dist/guest/apps/index.js +206 -0
- package/dist/guest/apps/resolvers.d.ts +8 -0
- package/dist/guest/apps/resolvers.js +90 -0
- package/dist/guest/audit-parse.d.ts +7 -0
- package/dist/guest/audit-parse.js +24 -0
- package/dist/guest/audit.d.ts +4 -0
- package/dist/guest/audit.js +47 -0
- package/dist/guest/boot-env.d.ts +4 -0
- package/dist/guest/boot-env.js +25 -0
- package/dist/guest/cmdline.d.ts +12 -0
- package/dist/guest/cmdline.js +23 -0
- package/dist/guest/daemon/exec.d.ts +5 -0
- package/dist/guest/daemon/exec.js +32 -0
- package/dist/guest/daemon/project.d.ts +14 -0
- package/dist/guest/daemon/project.js +132 -0
- package/dist/guest/daemon/relays.d.ts +1 -0
- package/dist/guest/daemon/relays.js +18 -0
- package/dist/guest/daemon/session.d.ts +13 -0
- package/dist/guest/daemon/session.js +139 -0
- package/dist/guest/daemon/shutdown.d.ts +1 -0
- package/dist/guest/daemon/shutdown.js +21 -0
- package/dist/guest/daemon/state.d.ts +17 -0
- package/dist/guest/daemon/state.js +31 -0
- package/dist/guest/daemon.js +12 -141
- package/dist/guest/db.js +18 -3
- package/dist/guest/env.d.ts +3 -0
- package/dist/guest/env.js +7 -3
- package/dist/guest/guide.d.ts +6 -2
- package/dist/guest/guide.js +5 -4
- package/dist/guest/helpers.d.ts +3 -0
- package/dist/guest/helpers.js +26 -0
- package/dist/guest/main.js +31 -8
- package/dist/guest/netproxy.d.ts +1 -0
- package/dist/guest/netproxy.js +100 -0
- package/dist/guest/ports.d.ts +6 -0
- package/dist/guest/ports.js +22 -0
- package/dist/guest/project-context.d.ts +7 -0
- package/dist/guest/project-context.js +10 -0
- package/dist/guest/project-env.d.ts +20 -0
- package/dist/guest/project-env.js +20 -0
- package/dist/guest/project-status.d.ts +5 -0
- package/dist/guest/project-status.js +17 -0
- package/dist/guest/ptyhost.d.ts +0 -18
- package/dist/guest/ptyhost.js +17 -65
- package/dist/guest/setup/agents.d.ts +5 -2
- package/dist/guest/setup/agents.js +22 -8
- package/dist/guest/setup/claude.d.ts +0 -4
- package/dist/guest/setup/claude.js +59 -5
- package/dist/guest/setup/environment.d.ts +13 -3
- package/dist/guest/setup/environment.js +14 -10
- package/dist/guest/setup/hooks.d.ts +9 -1
- package/dist/guest/setup/hooks.js +28 -14
- package/dist/guest/setup/network.d.ts +9 -0
- package/dist/guest/setup/network.js +97 -4
- package/dist/guest/setup/user.js +4 -0
- package/dist/guest/toolchains/catalogue.d.ts +4 -0
- package/dist/guest/toolchains/catalogue.js +2 -2
- package/dist/guest/toolchains/cli.js +25 -17
- package/dist/guest/toolchains/common.d.ts +18 -1
- package/dist/guest/toolchains/common.js +34 -11
- package/dist/guest/toolchains/databases/dynamodb.d.ts +8 -0
- package/dist/guest/toolchains/databases/dynamodb.js +52 -0
- package/dist/guest/toolchains/{databases.d.ts → databases/index.d.ts} +2 -3
- package/dist/guest/toolchains/databases/index.js +62 -0
- package/dist/guest/toolchains/databases/mongodb.d.ts +3 -0
- package/dist/guest/toolchains/databases/mongodb.js +31 -0
- package/dist/guest/toolchains/databases/mysql.d.ts +3 -0
- package/dist/guest/toolchains/databases/mysql.js +38 -0
- package/dist/guest/toolchains/databases/postgres.d.ts +5 -0
- package/dist/guest/toolchains/databases/postgres.js +38 -0
- package/dist/guest/toolchains/databases/redis.d.ts +3 -0
- package/dist/guest/toolchains/databases/redis.js +16 -0
- package/dist/guest/toolchains/databases/server.d.ts +14 -0
- package/dist/guest/toolchains/databases/server.js +52 -0
- package/dist/guest/toolchains/git.js +25 -16
- package/dist/guest/toolchains/go.js +1 -1
- package/dist/guest/toolchains/index.d.ts +13 -9
- package/dist/guest/toolchains/index.js +40 -82
- package/dist/guest/toolchains/java.js +5 -5
- package/dist/guest/toolchains/leftovers.d.ts +2 -0
- package/dist/guest/toolchains/leftovers.js +26 -0
- package/dist/guest/toolchains/managers.js +12 -10
- package/dist/guest/toolchains/{binstall.js → native/binstall.js} +6 -9
- package/dist/guest/toolchains/native/cpp.d.ts +4 -0
- package/dist/guest/toolchains/native/cpp.js +38 -0
- package/dist/guest/toolchains/native/dotnet.d.ts +4 -0
- package/dist/guest/toolchains/native/dotnet.js +103 -0
- package/dist/guest/toolchains/native/mesa.d.ts +7 -0
- package/dist/guest/toolchains/native/mesa.js +56 -0
- package/dist/guest/toolchains/native/msvc/environment.d.ts +16 -0
- package/dist/guest/toolchains/native/msvc/environment.js +57 -0
- package/dist/guest/toolchains/native/msvc/index.d.ts +6 -0
- package/dist/guest/toolchains/native/msvc/index.js +48 -0
- package/dist/guest/toolchains/native/msvc/packages.d.ts +6 -0
- package/dist/guest/toolchains/native/msvc/packages.js +156 -0
- package/dist/guest/toolchains/native/msvc/tree.d.ts +15 -0
- package/dist/guest/toolchains/native/msvc/tree.js +21 -0
- package/dist/guest/toolchains/native/rust.d.ts +3 -0
- package/dist/guest/toolchains/native/rust.js +45 -0
- package/dist/guest/toolchains/node.js +26 -6
- package/dist/guest/toolchains/plan.d.ts +24 -0
- package/dist/guest/toolchains/plan.js +140 -0
- package/dist/guest/toolchains/pwsh.js +1 -1
- package/dist/guest/toolchains/python.js +43 -12
- package/dist/guest/toolchains/runtimes.d.ts +2 -0
- package/dist/guest/toolchains/runtimes.js +6 -8
- package/dist/guest/toolchains/scripting/php.d.ts +3 -0
- package/dist/guest/toolchains/scripting/php.js +71 -0
- package/dist/guest/toolchains/scripting/ruby.d.ts +3 -0
- package/dist/guest/toolchains/scripting/ruby.js +47 -0
- package/dist/guest/toolchains/scripting/vcruntime.d.ts +7 -0
- package/dist/guest/toolchains/scripting/vcruntime.js +45 -0
- package/dist/guest/toolchains/vscode-profile.d.ts +30 -0
- package/dist/guest/toolchains/vscode-profile.js +69 -0
- package/dist/guest/toolchains/vscode.d.ts +17 -0
- package/dist/guest/toolchains/vscode.js +87 -1
- package/dist/guest/view.js +21 -1
- package/dist/host/accounts.js +14 -5
- package/dist/host/agent-commands.d.ts +25 -0
- package/dist/host/agent-commands.js +145 -0
- package/dist/host/attach.d.ts +17 -0
- package/dist/host/attach.js +70 -0
- package/dist/host/audit/collect.d.ts +34 -0
- package/dist/host/audit/collect.js +126 -0
- package/dist/host/audit/log.d.ts +46 -0
- package/dist/host/audit/log.js +143 -0
- package/dist/host/channel.d.ts +23 -22
- package/dist/host/channel.js +66 -84
- package/dist/host/claude-profile.js +7 -3
- package/dist/host/cleanup.js +2 -11
- package/dist/host/database-plan.d.ts +12 -0
- package/dist/host/database-plan.js +52 -0
- package/dist/host/generate.d.ts +10 -12
- package/dist/host/generate.js +58 -135
- package/dist/host/join.d.ts +28 -0
- package/dist/host/join.js +76 -0
- package/dist/host/launch/mappings.d.ts +3 -0
- package/dist/host/launch/mappings.js +54 -0
- package/dist/host/launch/projects.d.ts +15 -0
- package/dist/host/launch/projects.js +56 -0
- package/dist/host/launch/stage.d.ts +11 -0
- package/dist/host/launch/stage.js +66 -0
- package/dist/host/launch/wsb.d.ts +10 -0
- package/dist/host/launch/wsb.js +34 -0
- package/dist/host/motw.d.ts +17 -0
- package/dist/host/motw.js +74 -0
- package/dist/host/pc-scan.d.ts +6 -0
- package/dist/host/pc-scan.js +37 -0
- package/dist/host/platform.d.ts +2 -0
- package/dist/host/platform.js +16 -1
- package/dist/host/port-forward.d.ts +8 -0
- package/dist/host/port-forward.js +37 -0
- package/dist/host/project-scan.d.ts +1 -17
- package/dist/host/project-scan.js +2 -86
- package/dist/host/projects.d.ts +100 -0
- package/dist/host/projects.js +147 -0
- package/dist/host/repo-guard.d.ts +25 -5
- package/dist/host/repo-guard.js +242 -23
- package/dist/host/stops.d.ts +67 -0
- package/dist/host/stops.js +126 -0
- package/dist/host/terminal.d.ts +8 -0
- package/dist/host/terminal.js +48 -1
- package/dist/host/test-guard.d.ts +6 -0
- package/dist/host/test-guard.js +15 -0
- package/dist/host/window.js +7 -3
- package/dist/host/workspace-view/index.d.ts +20 -0
- package/dist/host/workspace-view/index.js +53 -0
- package/dist/host/workspace-view/rules.d.ts +26 -0
- package/dist/host/workspace-view/rules.js +93 -0
- package/dist/host/workspace-view/view.d.ts +50 -0
- package/dist/host/workspace-view/view.js +281 -0
- package/dist/host/wsb.d.ts +37 -0
- package/dist/host/wsb.js +101 -0
- package/dist/runtime/daemon.js +11791 -2821
- package/dist/runtime/db.js +6585 -466
- package/dist/runtime/main.js +10238 -1724
- package/dist/runtime/netproxy.js +25936 -0
- package/dist/runtime/view.js +6183 -59
- package/dist/selftest/accounts.test.d.ts +2 -0
- package/dist/selftest/accounts.test.js +44 -0
- package/dist/selftest/agent-commands.test.d.ts +2 -0
- package/dist/selftest/agent-commands.test.js +47 -0
- package/dist/selftest/audit.test.d.ts +2 -0
- package/dist/selftest/audit.test.js +57 -0
- package/dist/selftest/channel.test.d.ts +2 -0
- package/dist/selftest/channel.test.js +44 -0
- package/dist/selftest/cli.test.d.ts +2 -2
- package/dist/selftest/cli.test.js +145 -27
- package/dist/selftest/cmdline.test.d.ts +2 -0
- package/dist/selftest/cmdline.test.js +45 -0
- package/dist/selftest/config.test.d.ts +2 -3
- package/dist/selftest/config.test.js +36 -72
- package/dist/selftest/data.test.d.ts +2 -2
- package/dist/selftest/data.test.js +77 -70
- package/dist/selftest/detect.test.d.ts +2 -2
- package/dist/selftest/detect.test.js +54 -38
- package/dist/selftest/fixtures.d.ts +89 -4
- package/dist/selftest/fixtures.js +43 -24
- package/dist/selftest/generate.test.d.ts +2 -0
- package/dist/selftest/generate.test.js +68 -0
- package/dist/selftest/git-access.test.d.ts +2 -0
- package/dist/selftest/git-access.test.js +26 -0
- package/dist/selftest/guest-boot.test.d.ts +2 -0
- package/dist/selftest/guest-boot.test.js +76 -0
- package/dist/selftest/harness.d.ts +44 -7
- package/dist/selftest/harness.js +62 -21
- package/dist/selftest/host-sim.test.d.ts +2 -0
- package/dist/selftest/host-sim.test.js +93 -0
- package/dist/selftest/hostile-input.test.d.ts +2 -0
- package/dist/selftest/hostile-input.test.js +54 -0
- package/dist/selftest/index.d.ts +8 -1
- package/dist/selftest/index.js +137 -35
- package/dist/selftest/links.test.d.ts +2 -0
- package/dist/selftest/links.test.js +50 -0
- package/dist/selftest/live-daemon.test.d.ts +2 -0
- package/dist/selftest/live-daemon.test.js +91 -0
- package/dist/selftest/live-git.test.d.ts +2 -0
- package/dist/selftest/live-git.test.js +60 -0
- package/dist/selftest/live-network.test.d.ts +2 -0
- package/dist/selftest/live-network.test.js +63 -0
- package/dist/selftest/live-projects.test.d.ts +2 -0
- package/dist/selftest/live-projects.test.js +127 -0
- package/dist/selftest/live.d.ts +65 -0
- package/dist/selftest/live.js +109 -0
- package/dist/selftest/local-config.test.d.ts +2 -0
- package/dist/selftest/local-config.test.js +120 -0
- package/dist/selftest/mirror.test.d.ts +2 -3
- package/dist/selftest/mirror.test.js +92 -65
- package/dist/selftest/network.test.d.ts +2 -0
- package/dist/selftest/network.test.js +40 -0
- package/dist/selftest/personalization.test.d.ts +2 -0
- package/dist/selftest/personalization.test.js +53 -0
- package/dist/selftest/projects.test.d.ts +2 -0
- package/dist/selftest/projects.test.js +254 -0
- package/dist/selftest/repair.test.d.ts +2 -0
- package/dist/selftest/repair.test.js +42 -0
- package/dist/selftest/repo-guard.test.d.ts +2 -0
- package/dist/selftest/repo-guard.test.js +121 -0
- package/dist/selftest/secrets.test.d.ts +2 -0
- package/dist/selftest/secrets.test.js +71 -0
- package/dist/selftest/setup.test.d.ts +2 -2
- package/dist/selftest/setup.test.js +45 -22
- package/dist/selftest/suite.d.ts +13 -0
- package/dist/selftest/suite.js +1 -0
- package/dist/selftest/sync.test.d.ts +2 -3
- package/dist/selftest/sync.test.js +130 -78
- package/dist/selftest/test-guard.test.d.ts +2 -0
- package/dist/selftest/test-guard.test.js +49 -0
- package/dist/selftest/toolchains.test.d.ts +2 -0
- package/dist/selftest/toolchains.test.js +133 -0
- package/dist/selftest/workspace-view.test.d.ts +2 -0
- package/dist/selftest/workspace-view.test.js +89 -0
- package/dist/selftest/workspace.test.d.ts +2 -0
- package/dist/selftest/workspace.test.js +53 -0
- package/dist/shared/apps.d.ts +49 -0
- package/dist/shared/apps.js +114 -0
- package/dist/shared/download.d.ts +3 -1
- package/dist/shared/download.js +19 -4
- package/dist/shared/netpolicy.d.ts +27 -0
- package/dist/shared/netpolicy.js +51 -0
- package/dist/shared/paths.d.ts +5 -0
- package/dist/shared/paths.js +6 -0
- package/dist/shared/projects.d.ts +53 -0
- package/dist/shared/projects.js +67 -0
- package/dist/shared/pty-client.d.ts +9 -4
- package/dist/shared/pty-client.js +139 -17
- package/dist/shared/rundir.d.ts +12 -1
- package/dist/shared/rundir.js +14 -4
- package/dist/shared/safe-remove.js +11 -0
- package/dist/shared/schema.d.ts +453 -0
- package/dist/shared/schema.js +43 -2
- package/dist/shared/system.d.ts +1 -0
- package/dist/shared/system.js +1 -0
- package/dist/shared/test-guard.d.ts +4 -0
- package/dist/shared/test-guard.js +37 -0
- package/dist/sync/claude-mem.js +6 -3
- package/dist/sync/history.d.ts +29 -12
- package/dist/sync/history.js +72 -25
- package/dist/sync/watcher.d.ts +8 -0
- package/dist/sync/watcher.js +99 -8
- package/package.json +7 -6
- package/sandbox/bootstrap.ps1 +258 -258
- package/sandbox/cargoshim.cs +56 -0
- package/sandbox/cpucap.cs +33 -0
- package/sandbox/cpucap.ps1 +20 -0
- package/sandbox/logon.cmd +24 -16
- package/sandbox/memlog.ps1 +34 -0
- package/sandbox/openssl.cs +42 -0
- package/sandbox/pagefile.cs +31 -0
- package/sandbox/pagefile.ps1 +21 -0
- package/sandbox/ptyhost.cs +120 -11
- package/sandbox/trust.cmd +35 -35
- package/schemas/config.schema.json +403 -3
- package/schemas/sandbox-config.schema.json +143 -13
- package/dist/cli/commands/data.d.ts +0 -46
- package/dist/cli/commands/data.js +0 -249
- package/dist/cli/commands/setup.js +0 -152
- package/dist/cli/menu.d.ts +0 -22
- package/dist/cli/menu.js +0 -187
- package/dist/cli/settings.d.ts +0 -11
- package/dist/cli/settings.js +0 -156
- package/dist/guest/toolchains/databases.js +0 -226
- package/dist/guest/toolchains/msvc.d.ts +0 -10
- package/dist/guest/toolchains/msvc.js +0 -216
- package/dist/guest/toolchains/native.d.ts +0 -12
- package/dist/guest/toolchains/native.js +0 -220
- package/dist/guest/toolchains/scripting.d.ts +0 -10
- package/dist/guest/toolchains/scripting.js +0 -137
- package/dist/selftest/guest.test.d.ts +0 -3
- package/dist/selftest/guest.test.js +0 -61
- package/dist/selftest/helpers.test.d.ts +0 -2
- package/dist/selftest/helpers.test.js +0 -125
- package/dist/selftest/host.test.d.ts +0 -2
- package/dist/selftest/host.test.js +0 -71
- package/dist/selftest/live.test.d.ts +0 -7
- package/dist/selftest/live.test.js +0 -127
- package/dist/selftest/security.test.d.ts +0 -3
- package/dist/selftest/security.test.js +0 -143
- /package/dist/guest/toolchains/{binstall.d.ts → native/binstall.d.ts} +0 -0
package/dist/shared/schema.d.ts
CHANGED
|
@@ -19,7 +19,150 @@ export declare const SandboxStatus: z.ZodObject<{
|
|
|
19
19
|
workspaceHost: z.ZodString;
|
|
20
20
|
guestWorkspace: z.ZodString;
|
|
21
21
|
headless: z.ZodBoolean;
|
|
22
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
23
|
}, z.core.$strip>;
|
|
24
|
+
/**
|
|
25
|
+
* A project the host registered after boot (sandbox claude from another folder): everything the guest needs to
|
|
26
|
+
* provision it and run its sessions with its own environment, resolved on the host exactly like a fresh launch (its
|
|
27
|
+
* approved .sandbox-config.json, version files, toolchain detection, database plan). Host -> guest only.
|
|
28
|
+
*/
|
|
29
|
+
export declare const ProjectSpec: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
workspace: z.ZodString;
|
|
32
|
+
workspaceHost: z.ZodString;
|
|
33
|
+
toolchains: z.ZodObject<{
|
|
34
|
+
node: z.ZodObject<{
|
|
35
|
+
version: z.ZodString;
|
|
36
|
+
extraVersions: z.ZodArray<z.ZodString>;
|
|
37
|
+
corepack: z.ZodBoolean;
|
|
38
|
+
volta: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
39
|
+
globalPackages: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
python: z.ZodObject<{
|
|
42
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
43
|
+
version: z.ZodString;
|
|
44
|
+
python2: z.ZodBoolean;
|
|
45
|
+
pyenv: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
46
|
+
tools: z.ZodArray<z.ZodString>;
|
|
47
|
+
}, z.core.$strict>;
|
|
48
|
+
rust: z.ZodObject<{
|
|
49
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
50
|
+
toolchain: z.ZodString;
|
|
51
|
+
host: z.ZodString;
|
|
52
|
+
components: z.ZodArray<z.ZodString>;
|
|
53
|
+
targets: z.ZodArray<z.ZodString>;
|
|
54
|
+
crates: z.ZodArray<z.ZodString>;
|
|
55
|
+
targetDir: z.ZodString;
|
|
56
|
+
}, z.core.$strict>;
|
|
57
|
+
msvc: z.ZodObject<{
|
|
58
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
59
|
+
acceptLicense: z.ZodBoolean;
|
|
60
|
+
msvcVersion: z.ZodString;
|
|
61
|
+
sdkVersion: z.ZodString;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
cpp: z.ZodObject<{
|
|
64
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
65
|
+
flexBison: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
dotnet: z.ZodObject<{
|
|
68
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
69
|
+
channels: z.ZodArray<z.ZodString>;
|
|
70
|
+
tools: z.ZodArray<z.ZodString>;
|
|
71
|
+
workloads: z.ZodArray<z.ZodString>;
|
|
72
|
+
frameworkTargets: z.ZodArray<z.ZodString>;
|
|
73
|
+
netfx35: z.ZodBoolean;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
go: z.ZodObject<{
|
|
76
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
77
|
+
version: z.ZodString;
|
|
78
|
+
tools: z.ZodArray<z.ZodString>;
|
|
79
|
+
}, z.core.$strict>;
|
|
80
|
+
java: z.ZodObject<{
|
|
81
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
82
|
+
version: z.ZodString;
|
|
83
|
+
maven: z.ZodBoolean;
|
|
84
|
+
gradle: z.ZodBoolean;
|
|
85
|
+
}, z.core.$strict>;
|
|
86
|
+
ruby: z.ZodObject<{
|
|
87
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
88
|
+
version: z.ZodString;
|
|
89
|
+
gems: z.ZodArray<z.ZodString>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
php: z.ZodObject<{
|
|
92
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
93
|
+
version: z.ZodString;
|
|
94
|
+
composer: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
deno: z.ZodObject<{
|
|
97
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
98
|
+
}, z.core.$strict>;
|
|
99
|
+
pwsh: z.ZodObject<{
|
|
100
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
cli: z.ZodObject<{
|
|
103
|
+
gh: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
104
|
+
zstd: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
105
|
+
openssl: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
bun: z.ZodObject<{
|
|
108
|
+
enabled: z.ZodBoolean;
|
|
109
|
+
}, z.core.$strict>;
|
|
110
|
+
uv: z.ZodObject<{
|
|
111
|
+
enabled: z.ZodBoolean;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
vcRuntime: z.ZodObject<{
|
|
114
|
+
enabled: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
mesa: z.ZodObject<{
|
|
117
|
+
enabled: z.ZodBoolean;
|
|
118
|
+
vulkan: z.ZodBoolean;
|
|
119
|
+
}, z.core.$strict>;
|
|
120
|
+
vscode: z.ZodObject<{
|
|
121
|
+
enabled: z.ZodBoolean;
|
|
122
|
+
setup: z.ZodBoolean;
|
|
123
|
+
recommended: z.ZodBoolean;
|
|
124
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
127
|
+
}, z.core.$strict>;
|
|
128
|
+
versions: z.ZodObject<{
|
|
129
|
+
node: z.ZodObject<{
|
|
130
|
+
spec: z.ZodString;
|
|
131
|
+
source: z.ZodString;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
nodeExtra: z.ZodArray<z.ZodString>;
|
|
134
|
+
python: z.ZodObject<{
|
|
135
|
+
spec: z.ZodString;
|
|
136
|
+
source: z.ZodString;
|
|
137
|
+
}, z.core.$strict>;
|
|
138
|
+
}, z.core.$strict>;
|
|
139
|
+
databases: z.ZodArray<z.ZodObject<{
|
|
140
|
+
database: z.ZodEnum<{
|
|
141
|
+
postgres: "postgres";
|
|
142
|
+
mysql: "mysql";
|
|
143
|
+
mongodb: "mongodb";
|
|
144
|
+
redis: "redis";
|
|
145
|
+
dynamodb: "dynamodb";
|
|
146
|
+
sqlserver: "sqlserver";
|
|
147
|
+
}>;
|
|
148
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
149
|
+
version: z.ZodString;
|
|
150
|
+
port: z.ZodNumber;
|
|
151
|
+
adminPort: z.ZodOptional<z.ZodNumber>;
|
|
152
|
+
}, z.core.$strict>>;
|
|
153
|
+
harnesses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
154
|
+
hostExecutable: z.ZodOptional<z.ZodString>;
|
|
155
|
+
hostDir: z.ZodOptional<z.ZodString>;
|
|
156
|
+
npmPackage: z.ZodOptional<z.ZodString>;
|
|
157
|
+
npmBin: z.ZodOptional<z.ZodString>;
|
|
158
|
+
uvPackage: z.ZodOptional<z.ZodString>;
|
|
159
|
+
uvBin: z.ZodOptional<z.ZodString>;
|
|
160
|
+
arguments: z.ZodArray<z.ZodString>;
|
|
161
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
162
|
+
resumeArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
|
+
}, z.core.$strict>>;
|
|
164
|
+
hooks: z.ZodBoolean;
|
|
165
|
+
}, z.core.$strict>;
|
|
23
166
|
/** C:\AgentData\run\requests\<id>.json: the ONLY things the host can ask the sandbox to do. */
|
|
24
167
|
export declare const GuestRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
25
168
|
kind: z.ZodLiteral<"session">;
|
|
@@ -27,6 +170,295 @@ export declare const GuestRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
27
170
|
harness: z.ZodString;
|
|
28
171
|
args: z.ZodArray<z.ZodString>;
|
|
29
172
|
cwd: z.ZodString;
|
|
173
|
+
project: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
workspace: z.ZodString;
|
|
176
|
+
workspaceHost: z.ZodString;
|
|
177
|
+
toolchains: z.ZodObject<{
|
|
178
|
+
node: z.ZodObject<{
|
|
179
|
+
version: z.ZodString;
|
|
180
|
+
extraVersions: z.ZodArray<z.ZodString>;
|
|
181
|
+
corepack: z.ZodBoolean;
|
|
182
|
+
volta: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
183
|
+
globalPackages: z.ZodArray<z.ZodString>;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
python: z.ZodObject<{
|
|
186
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
187
|
+
version: z.ZodString;
|
|
188
|
+
python2: z.ZodBoolean;
|
|
189
|
+
pyenv: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
190
|
+
tools: z.ZodArray<z.ZodString>;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
rust: z.ZodObject<{
|
|
193
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
194
|
+
toolchain: z.ZodString;
|
|
195
|
+
host: z.ZodString;
|
|
196
|
+
components: z.ZodArray<z.ZodString>;
|
|
197
|
+
targets: z.ZodArray<z.ZodString>;
|
|
198
|
+
crates: z.ZodArray<z.ZodString>;
|
|
199
|
+
targetDir: z.ZodString;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
msvc: z.ZodObject<{
|
|
202
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
203
|
+
acceptLicense: z.ZodBoolean;
|
|
204
|
+
msvcVersion: z.ZodString;
|
|
205
|
+
sdkVersion: z.ZodString;
|
|
206
|
+
}, z.core.$strict>;
|
|
207
|
+
cpp: z.ZodObject<{
|
|
208
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
209
|
+
flexBison: z.ZodBoolean;
|
|
210
|
+
}, z.core.$strict>;
|
|
211
|
+
dotnet: z.ZodObject<{
|
|
212
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
213
|
+
channels: z.ZodArray<z.ZodString>;
|
|
214
|
+
tools: z.ZodArray<z.ZodString>;
|
|
215
|
+
workloads: z.ZodArray<z.ZodString>;
|
|
216
|
+
frameworkTargets: z.ZodArray<z.ZodString>;
|
|
217
|
+
netfx35: z.ZodBoolean;
|
|
218
|
+
}, z.core.$strict>;
|
|
219
|
+
go: z.ZodObject<{
|
|
220
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
221
|
+
version: z.ZodString;
|
|
222
|
+
tools: z.ZodArray<z.ZodString>;
|
|
223
|
+
}, z.core.$strict>;
|
|
224
|
+
java: z.ZodObject<{
|
|
225
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
226
|
+
version: z.ZodString;
|
|
227
|
+
maven: z.ZodBoolean;
|
|
228
|
+
gradle: z.ZodBoolean;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
ruby: z.ZodObject<{
|
|
231
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
232
|
+
version: z.ZodString;
|
|
233
|
+
gems: z.ZodArray<z.ZodString>;
|
|
234
|
+
}, z.core.$strict>;
|
|
235
|
+
php: z.ZodObject<{
|
|
236
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
237
|
+
version: z.ZodString;
|
|
238
|
+
composer: z.ZodBoolean;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
deno: z.ZodObject<{
|
|
241
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
242
|
+
}, z.core.$strict>;
|
|
243
|
+
pwsh: z.ZodObject<{
|
|
244
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
245
|
+
}, z.core.$strict>;
|
|
246
|
+
cli: z.ZodObject<{
|
|
247
|
+
gh: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
248
|
+
zstd: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
249
|
+
openssl: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
bun: z.ZodObject<{
|
|
252
|
+
enabled: z.ZodBoolean;
|
|
253
|
+
}, z.core.$strict>;
|
|
254
|
+
uv: z.ZodObject<{
|
|
255
|
+
enabled: z.ZodBoolean;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
vcRuntime: z.ZodObject<{
|
|
258
|
+
enabled: z.ZodBoolean;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
mesa: z.ZodObject<{
|
|
261
|
+
enabled: z.ZodBoolean;
|
|
262
|
+
vulkan: z.ZodBoolean;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
vscode: z.ZodObject<{
|
|
265
|
+
enabled: z.ZodBoolean;
|
|
266
|
+
setup: z.ZodBoolean;
|
|
267
|
+
recommended: z.ZodBoolean;
|
|
268
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
269
|
+
}, z.core.$strict>;
|
|
270
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
versions: z.ZodObject<{
|
|
273
|
+
node: z.ZodObject<{
|
|
274
|
+
spec: z.ZodString;
|
|
275
|
+
source: z.ZodString;
|
|
276
|
+
}, z.core.$strict>;
|
|
277
|
+
nodeExtra: z.ZodArray<z.ZodString>;
|
|
278
|
+
python: z.ZodObject<{
|
|
279
|
+
spec: z.ZodString;
|
|
280
|
+
source: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
databases: z.ZodArray<z.ZodObject<{
|
|
284
|
+
database: z.ZodEnum<{
|
|
285
|
+
postgres: "postgres";
|
|
286
|
+
mysql: "mysql";
|
|
287
|
+
mongodb: "mongodb";
|
|
288
|
+
redis: "redis";
|
|
289
|
+
dynamodb: "dynamodb";
|
|
290
|
+
sqlserver: "sqlserver";
|
|
291
|
+
}>;
|
|
292
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
293
|
+
version: z.ZodString;
|
|
294
|
+
port: z.ZodNumber;
|
|
295
|
+
adminPort: z.ZodOptional<z.ZodNumber>;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
harnesses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
298
|
+
hostExecutable: z.ZodOptional<z.ZodString>;
|
|
299
|
+
hostDir: z.ZodOptional<z.ZodString>;
|
|
300
|
+
npmPackage: z.ZodOptional<z.ZodString>;
|
|
301
|
+
npmBin: z.ZodOptional<z.ZodString>;
|
|
302
|
+
uvPackage: z.ZodOptional<z.ZodString>;
|
|
303
|
+
uvBin: z.ZodOptional<z.ZodString>;
|
|
304
|
+
arguments: z.ZodArray<z.ZodString>;
|
|
305
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
306
|
+
resumeArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
307
|
+
}, z.core.$strict>>;
|
|
308
|
+
hooks: z.ZodBoolean;
|
|
309
|
+
}, z.core.$strict>>;
|
|
310
|
+
harnessSpec: z.ZodOptional<z.ZodObject<{
|
|
311
|
+
hostExecutable: z.ZodOptional<z.ZodString>;
|
|
312
|
+
hostDir: z.ZodOptional<z.ZodString>;
|
|
313
|
+
npmPackage: z.ZodOptional<z.ZodString>;
|
|
314
|
+
npmBin: z.ZodOptional<z.ZodString>;
|
|
315
|
+
uvPackage: z.ZodOptional<z.ZodString>;
|
|
316
|
+
uvBin: z.ZodOptional<z.ZodString>;
|
|
317
|
+
arguments: z.ZodArray<z.ZodString>;
|
|
318
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
319
|
+
resumeArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
createdAt: z.ZodString;
|
|
322
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
323
|
+
kind: z.ZodLiteral<"project">;
|
|
324
|
+
id: z.ZodString;
|
|
325
|
+
project: z.ZodObject<{
|
|
326
|
+
name: z.ZodString;
|
|
327
|
+
workspace: z.ZodString;
|
|
328
|
+
workspaceHost: z.ZodString;
|
|
329
|
+
toolchains: z.ZodObject<{
|
|
330
|
+
node: z.ZodObject<{
|
|
331
|
+
version: z.ZodString;
|
|
332
|
+
extraVersions: z.ZodArray<z.ZodString>;
|
|
333
|
+
corepack: z.ZodBoolean;
|
|
334
|
+
volta: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
335
|
+
globalPackages: z.ZodArray<z.ZodString>;
|
|
336
|
+
}, z.core.$strict>;
|
|
337
|
+
python: z.ZodObject<{
|
|
338
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
339
|
+
version: z.ZodString;
|
|
340
|
+
python2: z.ZodBoolean;
|
|
341
|
+
pyenv: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
342
|
+
tools: z.ZodArray<z.ZodString>;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
rust: z.ZodObject<{
|
|
345
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
346
|
+
toolchain: z.ZodString;
|
|
347
|
+
host: z.ZodString;
|
|
348
|
+
components: z.ZodArray<z.ZodString>;
|
|
349
|
+
targets: z.ZodArray<z.ZodString>;
|
|
350
|
+
crates: z.ZodArray<z.ZodString>;
|
|
351
|
+
targetDir: z.ZodString;
|
|
352
|
+
}, z.core.$strict>;
|
|
353
|
+
msvc: z.ZodObject<{
|
|
354
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
355
|
+
acceptLicense: z.ZodBoolean;
|
|
356
|
+
msvcVersion: z.ZodString;
|
|
357
|
+
sdkVersion: z.ZodString;
|
|
358
|
+
}, z.core.$strict>;
|
|
359
|
+
cpp: z.ZodObject<{
|
|
360
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
361
|
+
flexBison: z.ZodBoolean;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
dotnet: z.ZodObject<{
|
|
364
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
365
|
+
channels: z.ZodArray<z.ZodString>;
|
|
366
|
+
tools: z.ZodArray<z.ZodString>;
|
|
367
|
+
workloads: z.ZodArray<z.ZodString>;
|
|
368
|
+
frameworkTargets: z.ZodArray<z.ZodString>;
|
|
369
|
+
netfx35: z.ZodBoolean;
|
|
370
|
+
}, z.core.$strict>;
|
|
371
|
+
go: z.ZodObject<{
|
|
372
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
373
|
+
version: z.ZodString;
|
|
374
|
+
tools: z.ZodArray<z.ZodString>;
|
|
375
|
+
}, z.core.$strict>;
|
|
376
|
+
java: z.ZodObject<{
|
|
377
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
378
|
+
version: z.ZodString;
|
|
379
|
+
maven: z.ZodBoolean;
|
|
380
|
+
gradle: z.ZodBoolean;
|
|
381
|
+
}, z.core.$strict>;
|
|
382
|
+
ruby: z.ZodObject<{
|
|
383
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
384
|
+
version: z.ZodString;
|
|
385
|
+
gems: z.ZodArray<z.ZodString>;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
php: z.ZodObject<{
|
|
388
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
389
|
+
version: z.ZodString;
|
|
390
|
+
composer: z.ZodBoolean;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
deno: z.ZodObject<{
|
|
393
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
394
|
+
}, z.core.$strict>;
|
|
395
|
+
pwsh: z.ZodObject<{
|
|
396
|
+
enabled: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
cli: z.ZodObject<{
|
|
399
|
+
gh: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
400
|
+
zstd: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
401
|
+
openssl: z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"auto">]>;
|
|
402
|
+
}, z.core.$strict>;
|
|
403
|
+
bun: z.ZodObject<{
|
|
404
|
+
enabled: z.ZodBoolean;
|
|
405
|
+
}, z.core.$strict>;
|
|
406
|
+
uv: z.ZodObject<{
|
|
407
|
+
enabled: z.ZodBoolean;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
vcRuntime: z.ZodObject<{
|
|
410
|
+
enabled: z.ZodBoolean;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
mesa: z.ZodObject<{
|
|
413
|
+
enabled: z.ZodBoolean;
|
|
414
|
+
vulkan: z.ZodBoolean;
|
|
415
|
+
}, z.core.$strict>;
|
|
416
|
+
vscode: z.ZodObject<{
|
|
417
|
+
enabled: z.ZodBoolean;
|
|
418
|
+
setup: z.ZodBoolean;
|
|
419
|
+
recommended: z.ZodBoolean;
|
|
420
|
+
extensions: z.ZodArray<z.ZodString>;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
423
|
+
}, z.core.$strict>;
|
|
424
|
+
versions: z.ZodObject<{
|
|
425
|
+
node: z.ZodObject<{
|
|
426
|
+
spec: z.ZodString;
|
|
427
|
+
source: z.ZodString;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
nodeExtra: z.ZodArray<z.ZodString>;
|
|
430
|
+
python: z.ZodObject<{
|
|
431
|
+
spec: z.ZodString;
|
|
432
|
+
source: z.ZodString;
|
|
433
|
+
}, z.core.$strict>;
|
|
434
|
+
}, z.core.$strict>;
|
|
435
|
+
databases: z.ZodArray<z.ZodObject<{
|
|
436
|
+
database: z.ZodEnum<{
|
|
437
|
+
postgres: "postgres";
|
|
438
|
+
mysql: "mysql";
|
|
439
|
+
mongodb: "mongodb";
|
|
440
|
+
redis: "redis";
|
|
441
|
+
dynamodb: "dynamodb";
|
|
442
|
+
sqlserver: "sqlserver";
|
|
443
|
+
}>;
|
|
444
|
+
reasons: z.ZodArray<z.ZodString>;
|
|
445
|
+
version: z.ZodString;
|
|
446
|
+
port: z.ZodNumber;
|
|
447
|
+
adminPort: z.ZodOptional<z.ZodNumber>;
|
|
448
|
+
}, z.core.$strict>>;
|
|
449
|
+
harnesses: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
450
|
+
hostExecutable: z.ZodOptional<z.ZodString>;
|
|
451
|
+
hostDir: z.ZodOptional<z.ZodString>;
|
|
452
|
+
npmPackage: z.ZodOptional<z.ZodString>;
|
|
453
|
+
npmBin: z.ZodOptional<z.ZodString>;
|
|
454
|
+
uvPackage: z.ZodOptional<z.ZodString>;
|
|
455
|
+
uvBin: z.ZodOptional<z.ZodString>;
|
|
456
|
+
arguments: z.ZodArray<z.ZodString>;
|
|
457
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
458
|
+
resumeArguments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
459
|
+
}, z.core.$strict>>;
|
|
460
|
+
hooks: z.ZodBoolean;
|
|
461
|
+
}, z.core.$strict>;
|
|
30
462
|
createdAt: z.ZodString;
|
|
31
463
|
}, z.core.$strict>, z.ZodObject<{
|
|
32
464
|
kind: z.ZodLiteral<"exec">;
|
|
@@ -39,6 +471,7 @@ export declare const GuestRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
39
471
|
kind: z.ZodLiteral<"restart">;
|
|
40
472
|
id: z.ZodString;
|
|
41
473
|
harness: z.ZodNullable<z.ZodString>;
|
|
474
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
42
475
|
createdAt: z.ZodString;
|
|
43
476
|
}, z.core.$strict>, z.ZodObject<{
|
|
44
477
|
kind: z.ZodLiteral<"ping">;
|
|
@@ -61,6 +494,7 @@ export declare const SessionStatus: z.ZodObject<{
|
|
|
61
494
|
launchId: z.ZodString;
|
|
62
495
|
harness: z.ZodString;
|
|
63
496
|
cwd: z.ZodString;
|
|
497
|
+
project: z.ZodOptional<z.ZodString>;
|
|
64
498
|
phase: z.ZodEnum<{
|
|
65
499
|
failed: "failed";
|
|
66
500
|
starting: "starting";
|
|
@@ -77,6 +511,25 @@ export declare const SessionStatus: z.ZodObject<{
|
|
|
77
511
|
token: z.ZodString;
|
|
78
512
|
}, z.core.$strict>>;
|
|
79
513
|
}, z.core.$strip>;
|
|
514
|
+
/** C:\AgentData\run\projects\<name>.json: how far a project's provisioning is (guest-written, so validated and capped). */
|
|
515
|
+
export declare const ProjectStatus: z.ZodObject<{
|
|
516
|
+
name: z.ZodString;
|
|
517
|
+
workspace: z.ZodString;
|
|
518
|
+
phase: z.ZodEnum<{
|
|
519
|
+
provisioning: "provisioning";
|
|
520
|
+
ready: "ready";
|
|
521
|
+
failed: "failed";
|
|
522
|
+
}>;
|
|
523
|
+
message: z.ZodString;
|
|
524
|
+
updatedAt: z.ZodString;
|
|
525
|
+
databases: z.ZodArray<z.ZodObject<{
|
|
526
|
+
database: z.ZodString;
|
|
527
|
+
port: z.ZodNumber;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
summary: z.ZodArray<z.ZodString>;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
export type ProjectSpecT = z.output<typeof ProjectSpec>;
|
|
532
|
+
export type ProjectStatusT = z.output<typeof ProjectStatus>;
|
|
80
533
|
export type AttachEndpointT = z.output<typeof AttachEndpoint>;
|
|
81
534
|
export type SandboxStatusT = z.output<typeof SandboxStatus>;
|
|
82
535
|
export type GuestRequestT = z.output<typeof GuestRequest>;
|
package/dist/shared/schema.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The host <-> sandbox channel messages, defined once with zod. Both sides parse what they read: the guest only acts on
|
|
2
2
|
// these request kinds, and the host treats everything the guest writes as untrusted (shapes checked, sizes capped).
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { Harness, Toolchains } from '../core/schema.js';
|
|
4
5
|
export const Id = z.string().regex(/^[A-Za-z0-9_-]{1,64}$/, 'invalid id');
|
|
5
6
|
const Text = (max = 4096) => z.string().max(max);
|
|
6
7
|
const Time = Text(64);
|
|
@@ -18,12 +19,40 @@ export const SandboxStatus = z.object({
|
|
|
18
19
|
workspaceHost: Text(),
|
|
19
20
|
guestWorkspace: Text(),
|
|
20
21
|
headless: z.boolean(),
|
|
22
|
+
/** The sandbox's IPv4 addresses (for network.forwardPorts; the host only uses ones on its Hyper-V network). */
|
|
23
|
+
addresses: z.array(z.string().max(45)).max(8).optional(),
|
|
24
|
+
});
|
|
25
|
+
const Version = z.strictObject({ spec: Text(128), source: Text(256) });
|
|
26
|
+
const DatabasePlan = z.strictObject({
|
|
27
|
+
database: z.enum(['postgres', 'mysql', 'sqlserver', 'mongodb', 'redis', 'dynamodb']),
|
|
28
|
+
reasons: z.array(Text(1024)).max(32), version: Text(64), port: z.number().int().min(1024).max(65535), adminPort: z.number().int().min(1024).max(65535).optional(),
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* A project the host registered after boot (sandbox claude from another folder): everything the guest needs to
|
|
32
|
+
* provision it and run its sessions with its own environment, resolved on the host exactly like a fresh launch (its
|
|
33
|
+
* approved .sandbox-config.json, version files, toolchain detection, database plan). Host -> guest only.
|
|
34
|
+
*/
|
|
35
|
+
export const ProjectSpec = z.strictObject({
|
|
36
|
+
name: Id,
|
|
37
|
+
/** Inside the sandbox: C:\Projects\<name>. */
|
|
38
|
+
workspace: Text(1024),
|
|
39
|
+
workspaceHost: Text(1024),
|
|
40
|
+
toolchains: Toolchains,
|
|
41
|
+
versions: z.strictObject({ node: Version, nodeExtra: z.array(Text(128)).max(16), python: Version }),
|
|
42
|
+
databases: z.array(DatabasePlan).max(8),
|
|
43
|
+
/** Agents this project may start that the sandbox did not boot with (its .sandbox-config.json "harness"). */
|
|
44
|
+
harnesses: z.record(Text(64), Harness).refine((h) => Object.keys(h).length <= 8, 'at most 8 agents'),
|
|
45
|
+
/** Its hooks were staged in C:\AgentLaunch\projects\<name>\hooks. */
|
|
46
|
+
hooks: z.boolean(),
|
|
21
47
|
});
|
|
22
48
|
/** C:\AgentData\run\requests\<id>.json: the ONLY things the host can ask the sandbox to do. */
|
|
23
49
|
export const GuestRequest = z.discriminatedUnion('kind', [
|
|
24
|
-
z.strictObject({ kind: z.literal('session'), id: Id, harness: Text(64), args: z.array(Text()).max(256), cwd: Text(), createdAt: Time }),
|
|
50
|
+
z.strictObject({ kind: z.literal('session'), id: Id, harness: Text(64), args: z.array(Text()).max(256), cwd: Text(), project: ProjectSpec.optional(), harnessSpec: Harness.optional(), createdAt: Time }),
|
|
51
|
+
/** Provision a registered project without starting an agent (sandbox start / exec / db from its folder). */
|
|
52
|
+
z.strictObject({ kind: z.literal('project'), id: Id, project: ProjectSpec, createdAt: Time }),
|
|
25
53
|
z.strictObject({ kind: z.literal('exec'), id: Id, command: z.array(Text()).min(1).max(256), cwd: Text(), timeoutSeconds: z.number().positive().max(86400), createdAt: Time }),
|
|
26
|
-
|
|
54
|
+
/** cwd: only the sessions in this folder or below (one project's); omitted = every session. */
|
|
55
|
+
z.strictObject({ kind: z.literal('restart'), id: Id, harness: Text(64).nullable(), cwd: Text().optional(), createdAt: Time }),
|
|
27
56
|
z.strictObject({ kind: z.literal('ping'), id: Id, createdAt: Time }),
|
|
28
57
|
]);
|
|
29
58
|
/** C:\AgentData\run\responses\<id>.json: the guest's reply. */
|
|
@@ -42,6 +71,8 @@ export const SessionStatus = z.object({
|
|
|
42
71
|
launchId: Text(64),
|
|
43
72
|
harness: Text(64),
|
|
44
73
|
cwd: Text(),
|
|
74
|
+
/** The project it runs in: its hub name, or the launch folder's for the first project. */
|
|
75
|
+
project: Text(64).optional(),
|
|
45
76
|
phase: z.enum(['starting', 'running', 'exited', 'failed']),
|
|
46
77
|
message: Text(),
|
|
47
78
|
updatedAt: Time,
|
|
@@ -49,3 +80,13 @@ export const SessionStatus = z.object({
|
|
|
49
80
|
exitCode: z.number().int().optional(),
|
|
50
81
|
attach: AttachEndpoint.optional(),
|
|
51
82
|
});
|
|
83
|
+
/** C:\AgentData\run\projects\<name>.json: how far a project's provisioning is (guest-written, so validated and capped). */
|
|
84
|
+
export const ProjectStatus = z.object({
|
|
85
|
+
name: Id,
|
|
86
|
+
workspace: Text(1024),
|
|
87
|
+
phase: z.enum(['provisioning', 'ready', 'failed']),
|
|
88
|
+
message: Text(),
|
|
89
|
+
updatedAt: Time,
|
|
90
|
+
databases: z.array(z.object({ database: Text(32), port: z.number().int() })).max(16),
|
|
91
|
+
summary: z.array(Text(512)).max(64),
|
|
92
|
+
});
|
package/dist/shared/system.d.ts
CHANGED
package/dist/shared/system.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const selfTestRunning: () => boolean;
|
|
2
|
+
/** Why the self-test may not write, copy or delete at `target` (anywhere but the temp folder), or null. */
|
|
3
|
+
export declare const testWriteRefusal: (target: string) => string | null;
|
|
4
|
+
export declare const assertTestWritable: (target: string) => void;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Defence in depth for the self-test: while AGENT_SANDBOX_SELFTEST=1 is set, nothing may act on the real PC. Every write or
|
|
2
|
+
// delete on the host is limited to the temp folder the tests use (outward actions refuse in host/test-guard.ts). The
|
|
3
|
+
// self-test sets the variable for itself and its child processes. No imports from core/: the sandbox bundles this file too.
|
|
4
|
+
import fs from 'node:fs';
|
|
5
|
+
import os from 'node:os';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
export const selfTestRunning = () => process.env.AGENT_SANDBOX_SELFTEST === '1';
|
|
8
|
+
/** Resolves links in the part of the path that exists, so C:\Users\WDAGUT~1 and C:\Users\WDAGUtilityAccount compare equal. */
|
|
9
|
+
const canonical = (p) => {
|
|
10
|
+
let rest = '';
|
|
11
|
+
let current = path.resolve(p);
|
|
12
|
+
for (;;) {
|
|
13
|
+
try {
|
|
14
|
+
return path.join(fs.realpathSync.native(current), rest).toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
const parent = path.dirname(current);
|
|
18
|
+
if (parent === current)
|
|
19
|
+
return path.resolve(p).toLowerCase();
|
|
20
|
+
rest = path.join(path.basename(current), rest);
|
|
21
|
+
current = parent;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
/** Why the self-test may not write, copy or delete at `target` (anywhere but the temp folder), or null. */
|
|
26
|
+
export const testWriteRefusal = (target) => {
|
|
27
|
+
if (!selfTestRunning())
|
|
28
|
+
return null;
|
|
29
|
+
const temp = canonical(os.tmpdir());
|
|
30
|
+
const t = canonical(target);
|
|
31
|
+
return t === temp || t.startsWith(temp + path.sep) ? null : 'The self-test refused to change ' + target + ': it only works in temp folders, so it can never change this PC.';
|
|
32
|
+
};
|
|
33
|
+
export const assertTestWritable = (target) => {
|
|
34
|
+
const refusal = testWriteRefusal(target);
|
|
35
|
+
if (refusal)
|
|
36
|
+
throw new Error(refusal);
|
|
37
|
+
};
|
package/dist/sync/claude-mem.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// claude-mem data (~/.claude-mem) between this PC and the sandbox's persistent store.
|
|
2
2
|
//
|
|
3
3
|
// IN (this PC -> sandbox): the whole folder is mirrored; nothing flows to your PC in that direction.
|
|
4
|
-
// OUT (sandbox -> this PC): ONLY the SQLite database files come back. Never settings, never the Chroma vector store:
|
|
4
|
+
// OUT (sandbox -> this PC), only with claudeProfile.syncClaudeMemBack: ONLY the SQLite database files come back. Never settings, never the Chroma vector store:
|
|
5
5
|
// Chroma keeps Python pickle files, and a crafted pickle runs code when loaded, so copying it back would let a
|
|
6
6
|
// compromised sandbox execute code on your PC. claude-mem rebuilds its vector index from the database by itself.
|
|
7
7
|
import fs from 'node:fs';
|
|
@@ -9,7 +9,9 @@ import path from 'node:path';
|
|
|
9
9
|
import _ from 'lodash';
|
|
10
10
|
import { dirExists, homeDir, isLink } from '../core/util.js';
|
|
11
11
|
import { safeRemove } from '../shared/safe-remove.js';
|
|
12
|
-
|
|
12
|
+
import { assertTestWritable } from '../host/test-guard.js';
|
|
13
|
+
// Never in: its settings (provider API keys), .env files and backups; nor run-time files that mean nothing elsewhere.
|
|
14
|
+
const SKIP_IN = /(^logs$|^backups?$|^settings\.json$|^\.env|\.pid$|\.port$|\.lock$|^worker.*\.json$|\.incoming$|\.conflict-\d+$)/i;
|
|
13
15
|
/** The only files that may come back from the sandbox. */
|
|
14
16
|
const DATABASE = /^claude-mem\.db(-wal|-shm)?$/i;
|
|
15
17
|
const MAX_DB_BYTES = 2 * 1024 * 1024 * 1024;
|
|
@@ -22,7 +24,7 @@ const stampOf = (dir) => _.max(databaseFiles(dir).map((f) => fs.statSync(path.jo
|
|
|
22
24
|
const mirrorIn = (hostDir, store) => {
|
|
23
25
|
const incoming = store + '.incoming';
|
|
24
26
|
safeRemove(incoming, path.dirname(store));
|
|
25
|
-
fs.cpSync(hostDir, incoming, { recursive: true, filter: (src) => src === hostDir || !SKIP_IN.test(path.basename(src)) });
|
|
27
|
+
fs.cpSync(hostDir, incoming, { recursive: true, filter: (src) => src === hostDir || (!SKIP_IN.test(path.basename(src)) && !isLink(src)) });
|
|
26
28
|
safeRemove(store, path.dirname(store));
|
|
27
29
|
fs.renameSync(incoming, store);
|
|
28
30
|
};
|
|
@@ -50,6 +52,7 @@ const parkHostDatabases = (hostDir) => {
|
|
|
50
52
|
* overwritten is kept as `<dir>.conflict-<time>` first, so nothing is ever lost.
|
|
51
53
|
*/
|
|
52
54
|
export const syncClaudeMem = (hostDir, store, state, direction) => {
|
|
55
|
+
assertTestWritable(direction === 'in' ? store : hostDir);
|
|
53
56
|
if (isLink(store))
|
|
54
57
|
throw new Error('Refusing to sync claude-mem: ' + store + ' is a link.');
|
|
55
58
|
const hostStamp = stampOf(hostDir);
|