windows-development-sandbox 1.11.6 → 1.12.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/README.md +12 -6
- package/config.example.json +4 -3
- package/dist/app/features/apps/apps-rows.d.ts +4 -1
- package/dist/app/features/apps/apps-rows.js +7 -2
- package/dist/app/features/apps/apps.def.d.ts +19 -0
- package/dist/app/features/apps/apps.def.js +49 -12
- package/dist/app/features/apps/apps.run.d.ts +2 -0
- package/dist/app/features/apps/apps.run.js +1 -1
- package/dist/app/features/audit/audit.def.d.ts +341 -0
- package/dist/app/features/audit/audit.def.js +454 -0
- package/dist/app/features/audit/audit.run.d.ts +107 -0
- package/dist/app/features/audit/audit.run.js +133 -0
- package/dist/app/features/audit/index.d.ts +2 -0
- package/dist/app/features/audit/index.js +3 -0
- package/dist/app/features/defs.d.ts +194 -1
- package/dist/app/features/defs.js +4 -0
- package/dist/app/features/projects/projects.def.js +1 -1
- package/dist/app/features/settings/settings.run.d.ts +3 -0
- package/dist/app/features/settings/settings.run.js +16 -2
- package/dist/app/features/updates/update-lines.d.ts +1 -1
- package/dist/app/features/updates/update-lines.js +3 -7
- package/dist/app/features/updates/updates.def.js +1 -1
- package/dist/app/kernel/define.d.ts +12 -1
- package/dist/app/registry.js +2 -0
- package/dist/cli/args.d.ts +0 -3
- package/dist/cli/args.js +3 -4
- package/dist/cli/commands/index.d.ts +1 -1
- package/dist/cli/commands/index.js +1 -1
- package/dist/cli/commands/launch/prepare.js +1 -1
- package/dist/cli/commands/maintenance/index.d.ts +0 -1
- package/dist/cli/commands/maintenance/index.js +0 -1
- package/dist/cli/commands/registry.js +1 -2
- package/dist/cli/manifest.d.ts +0 -41
- package/dist/cli/manifest.js +0 -14
- package/dist/cli/menu/pages/apps-page.js +2 -15
- package/dist/cli/menu/pages/maintenance-page.d.ts +4 -0
- package/dist/cli/menu/pages/maintenance-page.js +51 -8
- package/dist/cli/menu/views.js +2 -0
- package/dist/core/config/defaults.js +1 -1
- package/dist/core/schema/apps.d.ts +9 -0
- package/dist/core/schema/apps.js +9 -0
- package/dist/core/schema/config.d.ts +1 -0
- package/dist/core/schema/config.js +3 -3
- package/dist/core/schema/sandbox.d.ts +1 -0
- package/dist/core/schema/sandbox.js +11 -3
- package/dist/guest/apps/app-installer.js +50 -4
- package/dist/guest/apps/index.d.ts +1 -1
- package/dist/guest/apps/index.js +1 -1
- package/dist/guest/apps/sources.js +1 -1
- package/dist/guest/audit/parse.d.ts +32 -2
- package/dist/guest/audit/parse.js +43 -5
- package/dist/guest/audit/process-audit.d.ts +3 -1
- package/dist/guest/audit/process-audit.js +9 -6
- package/dist/guest/boot/boot.js +12 -3
- package/dist/guest/boot/guide.d.ts +1 -1
- package/dist/guest/boot/guide.js +27 -3
- package/dist/guest/daemon/sessions.d.ts +7 -0
- package/dist/guest/daemon/sessions.js +27 -2
- package/dist/guest/entries/daemon.js +2 -1
- package/dist/guest/setup/addon-mcp.d.ts +2 -0
- package/dist/guest/setup/addon-mcp.js +49 -0
- package/dist/guest/setup/agent-addons.d.ts +9 -0
- package/dist/guest/setup/agent-addons.js +22 -0
- package/dist/guest/setup/headroom.d.ts +7 -0
- package/dist/guest/setup/headroom.js +60 -0
- package/dist/guest/setup/managed-policy.d.ts +2 -1
- package/dist/guest/setup/managed-policy.js +15 -6
- package/dist/guest/toolchains/plan.js +8 -3
- package/dist/host/audit/attribute.d.ts +46 -0
- package/dist/host/audit/attribute.js +76 -0
- package/dist/host/audit/collect.d.ts +29 -3
- package/dist/host/audit/collect.js +256 -61
- package/dist/host/audit/git-commits.d.ts +29 -0
- package/dist/host/audit/git-commits.js +157 -0
- package/dist/host/audit/index.d.ts +5 -0
- package/dist/host/audit/index.js +6 -0
- package/dist/host/audit/log.d.ts +44 -7
- package/dist/host/audit/log.js +148 -45
- package/dist/host/audit/redact.d.ts +2 -0
- package/dist/host/audit/redact.js +67 -0
- package/dist/host/update/decision.d.ts +3 -2
- package/dist/host/update/decision.js +2 -3
- package/dist/host/update/updater.d.ts +4 -1
- package/dist/host/update/updater.js +11 -6
- package/dist/runtime/agent.js +110 -15
- package/dist/runtime/daemon.js +569 -316
- package/dist/runtime/db.js +110 -15
- package/dist/runtime/main.js +1011 -672
- package/dist/runtime/netproxy.js +110 -15
- package/dist/runtime/view.js +110 -15
- package/dist/selftest/app.test.js +25 -1
- package/dist/selftest/audit.test.js +354 -47
- package/dist/selftest/hcs.test.js +35 -0
- package/dist/selftest/menu-screens.js +1 -1
- package/dist/selftest/menu.test.js +3 -3
- package/dist/selftest/support/engine-golden.js +9 -0
- package/dist/selftest/support/fixtures.d.ts +1 -0
- package/dist/selftest/support/web-preview.js +94 -0
- package/dist/selftest/toolchains.test.js +147 -2
- package/dist/selftest/update-service.test.js +0 -7
- package/dist/selftest/update.test.js +4 -4
- package/dist/shared/apps/agent-addons.d.ts +64 -0
- package/dist/shared/apps/agent-addons.js +95 -0
- package/dist/shared/apps/catalogue.d.ts +33 -2
- package/dist/shared/apps/catalogue.js +102 -11
- package/dist/shared/apps/index.d.ts +3 -2
- package/dist/shared/apps/index.js +3 -2
- package/dist/shared/apps/selection.d.ts +2 -0
- package/dist/shared/apps/selection.js +7 -0
- package/dist/sync/watcher.js +9 -1
- package/dist/web/index.html +2 -2
- package/dist/web/{main-RQFN4WBY.css → main-UAQPI5XD.css} +1 -1
- package/dist/web/{main-QL7KHCEE.js → main-UD4QCXZR.js} +66 -66
- package/native/csharp/HcsHost/AssemblyInfo.cs +5 -3
- package/native/csharp/HcsHost/Hcs.cs +9 -0
- package/native/csharp/HcsHost/Program.cs +26 -1
- package/native/csharp/HcsHost/Share.cs +173 -0
- package/native/csharp/HostTools/AssemblyInfo.cs +3 -3
- package/package.json +1 -1
- package/sandbox/addons/ccusage/package-lock.json +111 -0
- package/sandbox/addons/ccusage/package.json +7 -0
- package/sandbox/addons/context7/package-lock.json +1313 -0
- package/sandbox/addons/context7/package.json +7 -0
- package/sandbox/addons/headroom/requirements.in +1 -0
- package/sandbox/addons/headroom/requirements.txt +2922 -0
- package/sandbox/addons/playwright-mcp/package-lock.json +56 -0
- package/sandbox/addons/playwright-mcp/package.json +7 -0
- package/schemas/config.schema.json +13 -4
- package/schemas/sandbox-config.schema.json +2 -2
- package/dist/cli/commands/maintenance/audit.d.ts +0 -3
- package/dist/cli/commands/maintenance/audit.js +0 -58
package/dist/runtime/db.js
CHANGED
|
@@ -25517,14 +25517,19 @@ var NetworkSchema = external_exports.strictObject({
|
|
|
25517
25517
|
});
|
|
25518
25518
|
var AuditSchema = external_exports.strictObject({
|
|
25519
25519
|
enabled: external_exports.boolean().describe(
|
|
25520
|
-
"Keep an audit log on this PC of what
|
|
25520
|
+
"Keep an audit log on this PC of what your agents did: programs started (with their command lines, secrets hidden), files changed in the projects, git commits, sessions, and what the repo guard caught, each linked to the agent session that did it where that can be known. The sandbox cannot change it. Read it with sandbox audit or on the Activity page."
|
|
25521
|
+
),
|
|
25522
|
+
days: external_exports.number().int().min(1).max(365).describe(
|
|
25523
|
+
"Days the audit log is kept (1 to 30; a larger number keeps 30); older days are deleted when a sandbox starts and once a day."
|
|
25521
25524
|
),
|
|
25522
|
-
days: external_exports.number().int().min(1).max(365).describe("Days the audit log is kept."),
|
|
25523
25525
|
maxMb: external_exports.number().int().min(5).max(5e3).describe("Most space the audit log may take, in MB (older days go first). Days before today are compressed."),
|
|
25524
25526
|
processes: external_exports.boolean().describe(
|
|
25525
25527
|
"Record every program started in the sandbox with its command line (Windows process auditing; repeated runs are counted, not listed)."
|
|
25526
25528
|
),
|
|
25527
|
-
files: external_exports.boolean().describe("Record the files changed in the
|
|
25529
|
+
files: external_exports.boolean().describe("Record the files changed in the projects while the sandbox runs."),
|
|
25530
|
+
commits: external_exports.boolean().describe(
|
|
25531
|
+
"Record the git commits made in the projects while the sandbox runs (read from each project's .git folder on this PC)."
|
|
25532
|
+
)
|
|
25528
25533
|
});
|
|
25529
25534
|
var WorkspaceFilterSchema = external_exports.strictObject({
|
|
25530
25535
|
enabled: external_exports.boolean().describe(
|
|
@@ -25727,7 +25732,100 @@ var ToolchainsSchema = external_exports.strictObject({
|
|
|
25727
25732
|
|
|
25728
25733
|
// src/shared/apps/catalogue.ts
|
|
25729
25734
|
var gh = (github, asset) => ({ github, asset });
|
|
25735
|
+
var RTK_VERSION = "1.0.1";
|
|
25736
|
+
var RTK_URL = "https://github.com/rtk-ai/rtk/releases/download/v" + RTK_VERSION + "/rtk-oss-x86_64-pc-windows-msvc.zip";
|
|
25737
|
+
var RTK_SHA256 = "0e53e2eca471e15fbd3636e64e6bc0b182cbc278ed0339c80450a2dd03f4cd6b";
|
|
25738
|
+
var HEADROOM_VERSION = "0.41.0";
|
|
25739
|
+
var CCUSAGE_VERSION = "20.0.36";
|
|
25740
|
+
var PLAYWRIGHT_MCP_VERSION = "0.0.83";
|
|
25741
|
+
var CONTEXT7_MCP_VERSION = "4.4.2";
|
|
25730
25742
|
var APPS = [
|
|
25743
|
+
// ---- agent add-ons
|
|
25744
|
+
{
|
|
25745
|
+
id: "rtk",
|
|
25746
|
+
name: "rtk (Rust Token Killer)",
|
|
25747
|
+
category: "agents",
|
|
25748
|
+
about: "Compacts the output of shell commands (git, tests, builds, ls ...) before the agent reads it, so it uses fewer tokens. Claude Code's Bash commands go through it on their own.",
|
|
25749
|
+
size: "6 MB",
|
|
25750
|
+
source: { url: RTK_URL, sha256: RTK_SHA256 },
|
|
25751
|
+
exe: "rtk.exe",
|
|
25752
|
+
cli: true,
|
|
25753
|
+
plugsInto: "Claude Code through a hook in the sandbox's managed settings; other agents are told to use it",
|
|
25754
|
+
userOnly: true
|
|
25755
|
+
},
|
|
25756
|
+
{
|
|
25757
|
+
id: "headroom",
|
|
25758
|
+
name: "Headroom",
|
|
25759
|
+
category: "agents",
|
|
25760
|
+
about: "Compresses what Claude Code sends to the model (tool output, logs, files) so it uses fewer tokens: a local proxy on 127.0.0.1:8787 that sits in Claude Code's API path, offline apart from forwarding to api.anthropic.com.",
|
|
25761
|
+
size: "150 MB",
|
|
25762
|
+
source: { locked: "uv", package: "headroom-ai", version: HEADROOM_VERSION },
|
|
25763
|
+
exe: "headroom.exe",
|
|
25764
|
+
service: true,
|
|
25765
|
+
plugsInto: "Claude Code: the sandbox starts the proxy and points Claude Code at it (managed settings)",
|
|
25766
|
+
userOnly: true
|
|
25767
|
+
},
|
|
25768
|
+
{
|
|
25769
|
+
id: "ccusage",
|
|
25770
|
+
name: "ccusage",
|
|
25771
|
+
category: "agents",
|
|
25772
|
+
about: "Reports the agents' token use and cost by day, month or session from their logs in the sandbox (`ccusage daily`; add --offline to skip fetching prices).",
|
|
25773
|
+
size: "5 MB",
|
|
25774
|
+
source: { locked: "npm", package: "ccusage", version: CCUSAGE_VERSION },
|
|
25775
|
+
exe: "ccusage.cmd",
|
|
25776
|
+
cli: true,
|
|
25777
|
+
plugsInto: "Reads Claude Code's session logs in the sandbox; changes nothing",
|
|
25778
|
+
userOnly: true
|
|
25779
|
+
},
|
|
25780
|
+
{
|
|
25781
|
+
id: "playwright-mcp",
|
|
25782
|
+
name: "Playwright MCP",
|
|
25783
|
+
category: "agents",
|
|
25784
|
+
about: "Lets Claude Code drive a browser (Microsoft Edge, already in the sandbox) to open pages, click, fill forms and take screenshots: the MCP server of microsoft/playwright-mcp.",
|
|
25785
|
+
size: "20 MB",
|
|
25786
|
+
source: { locked: "npm", package: "@playwright/mcp", version: PLAYWRIGHT_MCP_VERSION },
|
|
25787
|
+
exe: "playwright-mcp.cmd",
|
|
25788
|
+
service: true,
|
|
25789
|
+
mcp: { name: "sbx-playwright", script: "node_modules/@playwright/mcp/cli.js", args: ["--browser", "msedge"] },
|
|
25790
|
+
plugsInto: "Claude Code as the MCP server sbx-playwright (the sandbox's Claude settings)",
|
|
25791
|
+
userOnly: true
|
|
25792
|
+
},
|
|
25793
|
+
{
|
|
25794
|
+
id: "context7",
|
|
25795
|
+
name: "Context7 MCP",
|
|
25796
|
+
category: "agents",
|
|
25797
|
+
about: "Up-to-date documentation and code examples for libraries, looked up by Claude Code while it works (upstash/context7). The library names and questions go to Upstash's context7.com.",
|
|
25798
|
+
size: "55 MB",
|
|
25799
|
+
source: { locked: "npm", package: "@upstash/context7-mcp", version: CONTEXT7_MCP_VERSION },
|
|
25800
|
+
exe: "context7-mcp.cmd",
|
|
25801
|
+
service: true,
|
|
25802
|
+
mcp: { name: "sbx-context7", script: "node_modules/@upstash/context7-mcp/dist/index.js" },
|
|
25803
|
+
plugsInto: "Claude Code as the MCP server sbx-context7 (the sandbox's Claude settings)",
|
|
25804
|
+
userOnly: true
|
|
25805
|
+
},
|
|
25806
|
+
{
|
|
25807
|
+
id: "claude-mem",
|
|
25808
|
+
name: "claude-mem",
|
|
25809
|
+
category: "agents",
|
|
25810
|
+
about: "Persistent memory for Claude Code (a plugin you install on this PC): its database is brought into the sandbox.",
|
|
25811
|
+
size: "",
|
|
25812
|
+
source: { resolve: "setting" },
|
|
25813
|
+
exe: "",
|
|
25814
|
+
setting: "claudeProfile.syncClaudeMem",
|
|
25815
|
+
plugsInto: "Claude Code, with your Claude settings copied from this PC",
|
|
25816
|
+
userOnly: true
|
|
25817
|
+
},
|
|
25818
|
+
{
|
|
25819
|
+
id: "rea",
|
|
25820
|
+
name: "REA (Reverse Engineer Anything)",
|
|
25821
|
+
category: "agents",
|
|
25822
|
+
about: "Agent-driven reverse engineering (MCP server and CLI, by morluto). Run `rea setup` once to add it to Claude Code and Codex. Native binaries need Ghidra; needs Node 22.19+.",
|
|
25823
|
+
size: "8 MB",
|
|
25824
|
+
source: { npm: "rea-agents" },
|
|
25825
|
+
exe: "rea.cmd",
|
|
25826
|
+
cli: true,
|
|
25827
|
+
plugsInto: "Claude Code and Codex as an MCP server, after `rea setup`"
|
|
25828
|
+
},
|
|
25731
25829
|
// ---- editors
|
|
25732
25830
|
{
|
|
25733
25831
|
id: "vscode",
|
|
@@ -26189,16 +26287,6 @@ var APPS = [
|
|
|
26189
26287
|
cli: true
|
|
26190
26288
|
},
|
|
26191
26289
|
// ---- reverse engineering
|
|
26192
|
-
{
|
|
26193
|
-
id: "rea",
|
|
26194
|
-
name: "REA (Reverse Engineer Anything)",
|
|
26195
|
-
category: "reversing",
|
|
26196
|
-
about: "Agent-driven reverse engineering (MCP server and CLI, by morluto). Run `rea setup` once to add it to Claude Code and Codex. Native binaries need Ghidra; needs Node 22.19+.",
|
|
26197
|
-
size: "8 MB",
|
|
26198
|
-
source: { npm: "rea-agents" },
|
|
26199
|
-
exe: "rea.cmd",
|
|
26200
|
-
cli: true
|
|
26201
|
-
},
|
|
26202
26290
|
{
|
|
26203
26291
|
id: "ghidra",
|
|
26204
26292
|
name: "Ghidra",
|
|
@@ -26478,6 +26566,8 @@ var APPS = [
|
|
|
26478
26566
|
// src/core/schema/apps.ts
|
|
26479
26567
|
var CATALOGUE_IDS = APPS.filter((a) => !a.setting).map((a) => a.id);
|
|
26480
26568
|
var AppIdSchema = external_exports.enum(CATALOGUE_IDS);
|
|
26569
|
+
var PROJECT_IDS = APPS.filter((a) => !a.setting && !a.userOnly).map((a) => a.id);
|
|
26570
|
+
var ProjectAppIdSchema = external_exports.enum(PROJECT_IDS);
|
|
26481
26571
|
var CustomAppIdSchema = external_exports.string().regex(/^[a-z0-9][a-z0-9-]{0,40}$/, "lower-case letters, digits and - only");
|
|
26482
26572
|
var compiles = (pattern) => {
|
|
26483
26573
|
try {
|
|
@@ -26501,6 +26591,11 @@ var CustomAppSchema = external_exports.strictObject({
|
|
|
26501
26591
|
}).refine((a) => a.github && a.asset ? !a.url : Boolean(a.url) && !a.github && !a.asset, {
|
|
26502
26592
|
message: "give github + asset, or url (not both)"
|
|
26503
26593
|
});
|
|
26594
|
+
var ProjectAppsSchema = external_exports.strictObject({
|
|
26595
|
+
install: external_exports.array(ProjectAppIdSchema).describe(
|
|
26596
|
+
"Apps from the catalogue this project adds to yours (agent add-ons such as rtk, Headroom and the MCP servers are set in your own settings only)."
|
|
26597
|
+
)
|
|
26598
|
+
});
|
|
26504
26599
|
var AppsSchema = external_exports.strictObject({
|
|
26505
26600
|
install: external_exports.array(AppIdSchema).describe(
|
|
26506
26601
|
"Apps from the catalogue to install in every sandbox (the Apps screen in the menu lists them by category). Each is downloaded once and kept."
|
|
@@ -26665,8 +26760,8 @@ var LocalOverridesSchema = external_exports.strictObject({
|
|
|
26665
26760
|
attach: AttachSchema.partial(),
|
|
26666
26761
|
personalization: toggle("Copy your desktop look into the sandbox.").partial(),
|
|
26667
26762
|
// Catalogue apps only (a vetted list): your own programs (apps.custom) download anything, so a repo cannot add
|
|
26668
|
-
// them.
|
|
26669
|
-
apps:
|
|
26763
|
+
// them, nor agent add-ons that are yours only (rtk hooks every agent command, Headroom sits in its API path).
|
|
26764
|
+
apps: ProjectAppsSchema.partial(),
|
|
26670
26765
|
claudeProfile: ClaudeProfileSchema.pick({
|
|
26671
26766
|
enabled: true,
|
|
26672
26767
|
overwrite: true,
|