windows-development-sandbox 0.0.0-stage → 1.0.5

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.
Files changed (231) hide show
  1. package/.sandbox-config.example.json +14 -0
  2. package/README.md +78 -2
  3. package/config.example.json +332 -0
  4. package/dist/api.d.ts +31 -0
  5. package/dist/api.js +30 -0
  6. package/dist/bin/agent-sandbox.d.ts +2 -0
  7. package/dist/bin/agent-sandbox.js +3 -0
  8. package/dist/bin/claude-host.d.ts +2 -0
  9. package/dist/bin/claude-host.js +5 -0
  10. package/dist/bin/claude-sbx.d.ts +2 -0
  11. package/dist/bin/claude-sbx.js +3 -0
  12. package/dist/bin/codex-sbx.d.ts +2 -0
  13. package/dist/bin/codex-sbx.js +3 -0
  14. package/dist/bin/gemini-sbx.d.ts +2 -0
  15. package/dist/bin/gemini-sbx.js +3 -0
  16. package/dist/bin/sandbox.d.ts +2 -0
  17. package/dist/bin/sandbox.js +4 -0
  18. package/dist/bin/sbx-hide.d.ts +2 -0
  19. package/dist/bin/sbx-hide.js +3 -0
  20. package/dist/bin/sbx-show.d.ts +2 -0
  21. package/dist/bin/sbx-show.js +3 -0
  22. package/dist/cli/args.d.ts +32 -0
  23. package/dist/cli/args.js +111 -0
  24. package/dist/cli/commands/accounts.d.ts +2 -0
  25. package/dist/cli/commands/accounts.js +52 -0
  26. package/dist/cli/commands/context.d.ts +21 -0
  27. package/dist/cli/commands/context.js +54 -0
  28. package/dist/cli/commands/data.d.ts +46 -0
  29. package/dist/cli/commands/data.js +249 -0
  30. package/dist/cli/commands/index.d.ts +8 -0
  31. package/dist/cli/commands/index.js +8 -0
  32. package/dist/cli/commands/launch.d.ts +5 -0
  33. package/dist/cli/commands/launch.js +152 -0
  34. package/dist/cli/commands/maintenance.d.ts +8 -0
  35. package/dist/cli/commands/maintenance.js +125 -0
  36. package/dist/cli/commands/repair.d.ts +59 -0
  37. package/dist/cli/commands/repair.js +332 -0
  38. package/dist/cli/commands/sessions.d.ts +11 -0
  39. package/dist/cli/commands/sessions.js +113 -0
  40. package/dist/cli/commands/setup.d.ts +45 -0
  41. package/dist/cli/commands/setup.js +152 -0
  42. package/dist/cli/index.d.ts +14 -0
  43. package/dist/cli/index.js +96 -0
  44. package/dist/cli/manifest.d.ts +95 -0
  45. package/dist/cli/manifest.js +87 -0
  46. package/dist/cli/menu.d.ts +22 -0
  47. package/dist/cli/menu.js +187 -0
  48. package/dist/cli/settings.d.ts +11 -0
  49. package/dist/cli/settings.js +156 -0
  50. package/dist/core/config.d.ts +17 -0
  51. package/dist/core/config.js +103 -0
  52. package/dist/core/detect-databases.d.ts +15 -0
  53. package/dist/core/detect-databases.js +147 -0
  54. package/dist/core/detect-pwsh.d.ts +18 -0
  55. package/dist/core/detect-pwsh.js +111 -0
  56. package/dist/core/detect-toolchains.d.ts +30 -0
  57. package/dist/core/detect-toolchains.js +58 -0
  58. package/dist/core/local-config.d.ts +12 -0
  59. package/dist/core/local-config.js +64 -0
  60. package/dist/core/schema.d.ts +604 -0
  61. package/dist/core/schema.js +264 -0
  62. package/dist/core/types.d.ts +162 -0
  63. package/dist/core/types.js +1 -0
  64. package/dist/core/util.d.ts +53 -0
  65. package/dist/core/util.js +145 -0
  66. package/dist/core/workspace.d.ts +23 -0
  67. package/dist/core/workspace.js +162 -0
  68. package/dist/guest/daemon.d.ts +1 -0
  69. package/dist/guest/daemon.js +186 -0
  70. package/dist/guest/db.d.ts +1 -0
  71. package/dist/guest/db.js +60 -0
  72. package/dist/guest/env.d.ts +49 -0
  73. package/dist/guest/env.js +99 -0
  74. package/dist/guest/gitguard.d.ts +7 -0
  75. package/dist/guest/gitguard.js +60 -0
  76. package/dist/guest/gitrules.d.ts +2 -0
  77. package/dist/guest/gitrules.js +11 -0
  78. package/dist/guest/guide.d.ts +12 -0
  79. package/dist/guest/guide.js +68 -0
  80. package/dist/guest/main.d.ts +1 -0
  81. package/dist/guest/main.js +120 -0
  82. package/dist/guest/ptyhost.d.ts +40 -0
  83. package/dist/guest/ptyhost.js +94 -0
  84. package/dist/guest/setup/agents.d.ts +8 -0
  85. package/dist/guest/setup/agents.js +73 -0
  86. package/dist/guest/setup/claude.d.ts +21 -0
  87. package/dist/guest/setup/claude.js +138 -0
  88. package/dist/guest/setup/environment.d.ts +6 -0
  89. package/dist/guest/setup/environment.js +65 -0
  90. package/dist/guest/setup/hooks.d.ts +1 -0
  91. package/dist/guest/setup/hooks.js +36 -0
  92. package/dist/guest/setup/network.d.ts +10 -0
  93. package/dist/guest/setup/network.js +99 -0
  94. package/dist/guest/setup/policy.d.ts +3 -0
  95. package/dist/guest/setup/policy.js +18 -0
  96. package/dist/guest/setup/user.d.ts +7 -0
  97. package/dist/guest/setup/user.js +47 -0
  98. package/dist/guest/toolchains/binstall.d.ts +7 -0
  99. package/dist/guest/toolchains/binstall.js +55 -0
  100. package/dist/guest/toolchains/catalogue.d.ts +51 -0
  101. package/dist/guest/toolchains/catalogue.js +31 -0
  102. package/dist/guest/toolchains/cli.d.ts +10 -0
  103. package/dist/guest/toolchains/cli.js +64 -0
  104. package/dist/guest/toolchains/common.d.ts +37 -0
  105. package/dist/guest/toolchains/common.js +124 -0
  106. package/dist/guest/toolchains/databases.d.ts +7 -0
  107. package/dist/guest/toolchains/databases.js +226 -0
  108. package/dist/guest/toolchains/git.d.ts +3 -0
  109. package/dist/guest/toolchains/git.js +112 -0
  110. package/dist/guest/toolchains/go.d.ts +3 -0
  111. package/dist/guest/toolchains/go.js +33 -0
  112. package/dist/guest/toolchains/index.d.ts +13 -0
  113. package/dist/guest/toolchains/index.js +122 -0
  114. package/dist/guest/toolchains/java.d.ts +8 -0
  115. package/dist/guest/toolchains/java.js +96 -0
  116. package/dist/guest/toolchains/managers.d.ts +16 -0
  117. package/dist/guest/toolchains/managers.js +82 -0
  118. package/dist/guest/toolchains/msvc.d.ts +10 -0
  119. package/dist/guest/toolchains/msvc.js +216 -0
  120. package/dist/guest/toolchains/native.d.ts +12 -0
  121. package/dist/guest/toolchains/native.js +220 -0
  122. package/dist/guest/toolchains/node.d.ts +3 -0
  123. package/dist/guest/toolchains/node.js +132 -0
  124. package/dist/guest/toolchains/pwsh.d.ts +4 -0
  125. package/dist/guest/toolchains/pwsh.js +14 -0
  126. package/dist/guest/toolchains/python.d.ts +3 -0
  127. package/dist/guest/toolchains/python.js +47 -0
  128. package/dist/guest/toolchains/runtimes.d.ts +17 -0
  129. package/dist/guest/toolchains/runtimes.js +40 -0
  130. package/dist/guest/toolchains/scripting.d.ts +10 -0
  131. package/dist/guest/toolchains/scripting.js +137 -0
  132. package/dist/guest/toolchains/versions.d.ts +47 -0
  133. package/dist/guest/toolchains/versions.js +77 -0
  134. package/dist/guest/toolchains/vscode.d.ts +2 -0
  135. package/dist/guest/toolchains/vscode.js +53 -0
  136. package/dist/guest/view.d.ts +1 -0
  137. package/dist/guest/view.js +22 -0
  138. package/dist/host/accounts.d.ts +32 -0
  139. package/dist/host/accounts.js +119 -0
  140. package/dist/host/channel.d.ts +37 -0
  141. package/dist/host/channel.js +180 -0
  142. package/dist/host/claude-profile.d.ts +15 -0
  143. package/dist/host/claude-profile.js +103 -0
  144. package/dist/host/cleanup.d.ts +23 -0
  145. package/dist/host/cleanup.js +66 -0
  146. package/dist/host/generate.d.ts +15 -0
  147. package/dist/host/generate.js +185 -0
  148. package/dist/host/personalize.d.ts +10 -0
  149. package/dist/host/personalize.js +97 -0
  150. package/dist/host/platform.d.ts +17 -0
  151. package/dist/host/platform.js +114 -0
  152. package/dist/host/project-scan.d.ts +23 -0
  153. package/dist/host/project-scan.js +173 -0
  154. package/dist/host/repo-guard.d.ts +23 -0
  155. package/dist/host/repo-guard.js +128 -0
  156. package/dist/host/secrets.d.ts +14 -0
  157. package/dist/host/secrets.js +133 -0
  158. package/dist/host/terminal.d.ts +32 -0
  159. package/dist/host/terminal.js +127 -0
  160. package/dist/host/window.d.ts +4 -0
  161. package/dist/host/window.js +68 -0
  162. package/dist/runtime/daemon.js +20291 -0
  163. package/dist/runtime/db.js +20423 -0
  164. package/dist/runtime/gitguard.js +84 -0
  165. package/dist/runtime/main.js +22398 -0
  166. package/dist/runtime/view.js +19966 -0
  167. package/dist/selftest/cli.test.d.ts +2 -0
  168. package/dist/selftest/cli.test.js +30 -0
  169. package/dist/selftest/config.test.d.ts +3 -0
  170. package/dist/selftest/config.test.js +74 -0
  171. package/dist/selftest/data.test.d.ts +2 -0
  172. package/dist/selftest/data.test.js +73 -0
  173. package/dist/selftest/detect.test.d.ts +2 -0
  174. package/dist/selftest/detect.test.js +42 -0
  175. package/dist/selftest/fixtures.d.ts +232 -0
  176. package/dist/selftest/fixtures.js +63 -0
  177. package/dist/selftest/guest.test.d.ts +3 -0
  178. package/dist/selftest/guest.test.js +61 -0
  179. package/dist/selftest/harness.d.ts +14 -0
  180. package/dist/selftest/harness.js +36 -0
  181. package/dist/selftest/helpers.test.d.ts +2 -0
  182. package/dist/selftest/helpers.test.js +125 -0
  183. package/dist/selftest/host.test.d.ts +2 -0
  184. package/dist/selftest/host.test.js +71 -0
  185. package/dist/selftest/index.d.ts +1 -0
  186. package/dist/selftest/index.js +56 -0
  187. package/dist/selftest/live.test.d.ts +7 -0
  188. package/dist/selftest/live.test.js +127 -0
  189. package/dist/selftest/mirror.test.d.ts +3 -0
  190. package/dist/selftest/mirror.test.js +74 -0
  191. package/dist/selftest/security.test.d.ts +3 -0
  192. package/dist/selftest/security.test.js +143 -0
  193. package/dist/selftest/setup.test.d.ts +2 -0
  194. package/dist/selftest/setup.test.js +23 -0
  195. package/dist/selftest/sync.test.d.ts +3 -0
  196. package/dist/selftest/sync.test.js +82 -0
  197. package/dist/shared/download.d.ts +58 -0
  198. package/dist/shared/download.js +200 -0
  199. package/dist/shared/guest-paths.d.ts +30 -0
  200. package/dist/shared/guest-paths.js +61 -0
  201. package/dist/shared/netrules.d.ts +18 -0
  202. package/dist/shared/netrules.js +98 -0
  203. package/dist/shared/paths.d.ts +9 -0
  204. package/dist/shared/paths.js +22 -0
  205. package/dist/shared/pty-client.d.ts +86 -0
  206. package/dist/shared/pty-client.js +227 -0
  207. package/dist/shared/rundir.d.ts +30 -0
  208. package/dist/shared/rundir.js +86 -0
  209. package/dist/shared/safe-remove.d.ts +10 -0
  210. package/dist/shared/safe-remove.js +55 -0
  211. package/dist/shared/schema.d.ts +84 -0
  212. package/dist/shared/schema.js +51 -0
  213. package/dist/shared/system.d.ts +15 -0
  214. package/dist/shared/system.js +19 -0
  215. package/dist/sync/claude-mem.d.ts +8 -0
  216. package/dist/sync/claude-mem.js +77 -0
  217. package/dist/sync/history.d.ts +30 -0
  218. package/dist/sync/history.js +129 -0
  219. package/dist/sync/watcher.d.ts +13 -0
  220. package/dist/sync/watcher.js +116 -0
  221. package/hooks/post-agent/README.txt +1 -0
  222. package/hooks/pre-provision/README.txt +1 -0
  223. package/package.json +91 -4
  224. package/sandbox/bootstrap.ps1 +258 -0
  225. package/sandbox/gitshim.cs +35 -0
  226. package/sandbox/logon.cmd +16 -0
  227. package/sandbox/ptyhost.cs +603 -0
  228. package/sandbox/trust.cmd +35 -0
  229. package/sandbox/vswhere.cs +83 -0
  230. package/schemas/config.schema.json +1062 -0
  231. package/schemas/sandbox-config.schema.json +952 -0
@@ -0,0 +1,952 @@
1
+ {
2
+ "title": "windows-development-sandbox project config (.sandbox-config.json)",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "type": "object",
5
+ "properties": {
6
+ "$schema": {
7
+ "type": "string",
8
+ "description": "Path or URL of the JSON Schema for editor autocomplete and docs."
9
+ },
10
+ "harness": {
11
+ "type": "string",
12
+ "pattern": "^[A-Za-z0-9_-]+$",
13
+ "description": "Agent for this project."
14
+ },
15
+ "guestWorkspace": {
16
+ "anyOf": [
17
+ {
18
+ "type": "string",
19
+ "const": "auto"
20
+ },
21
+ {
22
+ "type": "string",
23
+ "const": "mirror"
24
+ },
25
+ {
26
+ "type": "string"
27
+ }
28
+ ],
29
+ "description": "Where the workspace appears inside the sandbox. \"auto\" = C:\\Workspace\\<folder name>. \"mirror\" = the same path as on this PC, so absolute paths in configs and build caches match (another drive letter such as F: is a subst drive onto C:\\Mirror\\F); paths the sandbox reserves (C:\\Users\\..., C:\\Program Files\\...) fall back to \"auto\"."
30
+ },
31
+ "readOnly": {
32
+ "type": "boolean",
33
+ "description": "Map this project read-only."
34
+ },
35
+ "mappings": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "properties": {
40
+ "host": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "description": "Folder on this PC (relative paths are relative to the config file)."
44
+ },
45
+ "guest": {
46
+ "type": "string",
47
+ "description": "Where it appears inside the sandbox, e.g. C:\\Assets, or on another drive letter (D: to Z:) such as F:\\SteamLibrary\\steamapps\\common\\Game: mapped to C:\\Mirror\\F\\... and shown as F: (subst) at boot."
48
+ },
49
+ "readOnly": {
50
+ "type": "boolean",
51
+ "description": "true = the agent can only read it."
52
+ },
53
+ "optional": {
54
+ "description": "true = skip it quietly when the host folder does not exist.",
55
+ "type": "boolean"
56
+ }
57
+ },
58
+ "required": [
59
+ "host",
60
+ "guest",
61
+ "readOnly"
62
+ ],
63
+ "additionalProperties": false
64
+ },
65
+ "description": "Extra folders (relative to this file)."
66
+ },
67
+ "scripts": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ },
72
+ "description": "Scripts (.ps1 / .mjs / .cmd, relative to this file) run inside the sandbox before the agent."
73
+ },
74
+ "sandbox": {
75
+ "type": "object",
76
+ "properties": {
77
+ "memoryMb": {
78
+ "anyOf": [
79
+ {
80
+ "type": "string",
81
+ "const": "auto"
82
+ },
83
+ {
84
+ "type": "integer",
85
+ "minimum": 2048,
86
+ "maximum": 9007199254740991
87
+ }
88
+ ],
89
+ "description": "Sandbox RAM in MB (>= 2048), or \"auto\": free RAM minus reserveHostMb, capped at maxMemoryMb."
90
+ },
91
+ "maxMemoryMb": {
92
+ "type": "integer",
93
+ "exclusiveMinimum": 0,
94
+ "maximum": 9007199254740991,
95
+ "description": "Upper limit for memoryMb \"auto\"."
96
+ },
97
+ "reserveHostMb": {
98
+ "type": "integer",
99
+ "minimum": 0,
100
+ "maximum": 9007199254740991,
101
+ "description": "RAM always left for this PC when memoryMb is \"auto\"."
102
+ },
103
+ "vGpu": {
104
+ "type": "boolean",
105
+ "description": "Virtual GPU. Off by default: Microsoft notes it widens the sandbox attack surface."
106
+ },
107
+ "networking": {
108
+ "type": "boolean",
109
+ "description": "Internet access. false is the only hard network isolation Windows Sandbox offers."
110
+ },
111
+ "clipboard": {
112
+ "type": "boolean",
113
+ "description": "Shared clipboard between this PC and the sandbox."
114
+ },
115
+ "audioInput": {
116
+ "type": "boolean",
117
+ "description": "Microphone access."
118
+ },
119
+ "videoInput": {
120
+ "type": "boolean",
121
+ "description": "Camera access."
122
+ },
123
+ "printerRedirection": {
124
+ "type": "boolean",
125
+ "description": "Printers from this PC."
126
+ },
127
+ "protectedClient": {
128
+ "type": "boolean",
129
+ "description": "Run the sandbox window in Protected Client mode (recommended)."
130
+ },
131
+ "headless": {
132
+ "type": "boolean",
133
+ "description": "Hide the sandbox window (sbx-show brings it back). A headless sandbox shuts down when its last session ends."
134
+ }
135
+ },
136
+ "additionalProperties": false
137
+ },
138
+ "network": {
139
+ "type": "object",
140
+ "properties": {
141
+ "blockPrivateRanges": {
142
+ "type": "boolean"
143
+ }
144
+ },
145
+ "additionalProperties": false
146
+ },
147
+ "provisioning": {
148
+ "type": "object",
149
+ "properties": {
150
+ "copyFromHost": {
151
+ "type": "boolean",
152
+ "description": "Copy Node, Git, nvm and the agent from this PC when they are installed here."
153
+ },
154
+ "fallbackToInstall": {
155
+ "type": "boolean",
156
+ "description": "Download anything that cannot be copied from this PC."
157
+ },
158
+ "refresh": {
159
+ "type": "boolean",
160
+ "description": "Re-copy / re-download everything on the next launch."
161
+ },
162
+ "git": {
163
+ "type": "object",
164
+ "properties": {
165
+ "enabled": {
166
+ "type": "boolean",
167
+ "description": "Provide Git for Windows (and Git Bash, which Claude Code needs)."
168
+ },
169
+ "access": {
170
+ "type": "string",
171
+ "enum": [
172
+ "full",
173
+ "readonly",
174
+ "none"
175
+ ],
176
+ "description": "full: normal git. readonly: status/log/diff/show/blame only (no commit, push, checkout, ...). none: no git at all; .git is hidden from the agent."
177
+ }
178
+ },
179
+ "additionalProperties": false
180
+ },
181
+ "terminal": {
182
+ "type": "object",
183
+ "properties": {
184
+ "enabled": {
185
+ "type": "boolean",
186
+ "description": "Windows Terminal as the sandbox window."
187
+ }
188
+ },
189
+ "additionalProperties": false
190
+ }
191
+ },
192
+ "additionalProperties": false
193
+ },
194
+ "toolchains": {
195
+ "type": "object",
196
+ "properties": {
197
+ "node": {
198
+ "type": "object",
199
+ "properties": {
200
+ "version": {
201
+ "type": "string",
202
+ "minLength": 1,
203
+ "description": "Default Node version for nvm. \"host\" = the Node on this PC. A project's .nvmrc / .node-version wins."
204
+ },
205
+ "extraVersions": {
206
+ "type": "array",
207
+ "items": {
208
+ "type": "string"
209
+ },
210
+ "description": "More Node versions to install (switch with nvm use). On top of the up to 3 versions copied from this PC's nvm, not counted towards that limit."
211
+ },
212
+ "corepack": {
213
+ "type": "boolean",
214
+ "description": "pnpm and yarn through corepack (a project's \"packageManager\" in package.json picks the version)."
215
+ },
216
+ "volta": {
217
+ "anyOf": [
218
+ {
219
+ "type": "boolean"
220
+ },
221
+ {
222
+ "type": "string",
223
+ "const": "auto"
224
+ }
225
+ ],
226
+ "description": "Volta: true, false, or \"auto\" = when the project's package.json has \"volta\" pins or this PC uses Volta. With pins, Volta's node/npm/yarn/pnpm come first on PATH."
227
+ },
228
+ "globalPackages": {
229
+ "type": "array",
230
+ "items": {
231
+ "type": "string"
232
+ },
233
+ "description": "npm packages installed globally into the default Node version, installed once and kept (e.g. [\"typescript\", \"npm-check-updates\"])."
234
+ }
235
+ },
236
+ "additionalProperties": false
237
+ },
238
+ "python": {
239
+ "type": "object",
240
+ "properties": {
241
+ "enabled": {
242
+ "anyOf": [
243
+ {
244
+ "type": "boolean"
245
+ },
246
+ {
247
+ "type": "string",
248
+ "const": "auto"
249
+ }
250
+ ],
251
+ "description": "Python 3 (CPython with pip). true, false, or \"auto\" = only when the project has pyproject.toml, requirements.txt, setup.py, Pipfile or .python-version."
252
+ },
253
+ "version": {
254
+ "type": "string",
255
+ "minLength": 1,
256
+ "description": "Python 3 version prefix, e.g. \"3\" or \"3.12\". A project's .python-version wins."
257
+ },
258
+ "python2": {
259
+ "type": "boolean",
260
+ "description": "Also install Python 2.7 as python2 / pip2."
261
+ },
262
+ "pyenv": {
263
+ "anyOf": [
264
+ {
265
+ "type": "boolean"
266
+ },
267
+ {
268
+ "type": "string",
269
+ "const": "auto"
270
+ }
271
+ ],
272
+ "description": "pyenv-win (pyenv install / local / global): true, false, or \"auto\" = when this PC uses pyenv. .python-version is honoured either way, and `uv python install` always works."
273
+ },
274
+ "tools": {
275
+ "type": "array",
276
+ "items": {
277
+ "type": "string"
278
+ },
279
+ "description": "Python command-line tools installed with `uv tool install` (needs uv), installed once and kept (e.g. [\"poetry\", \"ruff\", \"pre-commit\"])."
280
+ }
281
+ },
282
+ "additionalProperties": false
283
+ },
284
+ "rust": {
285
+ "type": "object",
286
+ "properties": {
287
+ "enabled": {
288
+ "anyOf": [
289
+ {
290
+ "type": "boolean"
291
+ },
292
+ {
293
+ "type": "string",
294
+ "const": "auto"
295
+ }
296
+ ],
297
+ "description": "Rust via rustup (cargo, rustc). true, false, or \"auto\" = only when the project has Cargo.toml or rust-toolchain(.toml)."
298
+ },
299
+ "toolchain": {
300
+ "type": "string",
301
+ "minLength": 1,
302
+ "description": "Default toolchain, e.g. \"stable\". rust-toolchain.toml in a project wins."
303
+ },
304
+ "host": {
305
+ "type": "string",
306
+ "minLength": 1,
307
+ "description": "Host triple, or \"auto\": x86_64-pc-windows-msvc when the MSVC toolchain is on (like most PCs), else x86_64-pc-windows-gnu (MinGW is its linker)."
308
+ },
309
+ "components": {
310
+ "type": "array",
311
+ "items": {
312
+ "type": "string"
313
+ },
314
+ "description": "Extra rustup components, installed once and kept (e.g. [\"rust-src\", \"llvm-tools\"])."
315
+ },
316
+ "targets": {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string"
320
+ },
321
+ "description": "Extra rustup targets, installed once and kept (e.g. [\"wasm32-unknown-unknown\"])."
322
+ },
323
+ "crates": {
324
+ "type": "array",
325
+ "items": {
326
+ "type": "string"
327
+ },
328
+ "description": "Binaries for cargo: prebuilt via cargo-binstall when the crate publishes a Windows build, else compiled with `cargo install --locked` (slow the first time), installed once and kept (e.g. [\"sccache\", \"cargo-nextest\", \"cargo-deny\"])."
329
+ },
330
+ "targetDir": {
331
+ "type": "string",
332
+ "minLength": 1,
333
+ "description": "\"shared\": cargo's default target\\ (shared with builds on this PC, so builds on either side invalidate the other), \"separate\": <workspace>\\target\\sandbox (kept, no cross-talk), \"local\": on the sandbox's own disk (fastest, lost every boot), or a guest path."
334
+ }
335
+ },
336
+ "additionalProperties": false
337
+ },
338
+ "msvc": {
339
+ "type": "object",
340
+ "properties": {
341
+ "enabled": {
342
+ "anyOf": [
343
+ {
344
+ "type": "boolean"
345
+ },
346
+ {
347
+ "type": "string",
348
+ "const": "auto"
349
+ }
350
+ ],
351
+ "description": "MSVC (cl, link) and the Windows SDK, portable from Microsoft's Visual Studio manifest (~1-2 GB once), with vcvars64.bat and vswhere. true, false, or \"auto\" = only when the project has a .vcxproj, CMakePresets.json, a script calling vcvars/vswhere, or a Rust project when this PC builds Rust with MSVC."
352
+ },
353
+ "acceptLicense": {
354
+ "type": "boolean",
355
+ "description": "Required to install MSVC: you accept the Visual Studio licence terms (https://visualstudio.microsoft.com/license-terms/), which need a Visual Studio licence."
356
+ },
357
+ "msvcVersion": {
358
+ "type": "string",
359
+ "minLength": 1,
360
+ "description": "\"latest\" or an MSVC tools version prefix, e.g. \"14.44\"."
361
+ },
362
+ "sdkVersion": {
363
+ "type": "string",
364
+ "minLength": 1,
365
+ "description": "\"latest\" or a Windows SDK build, e.g. \"26100\" or \"10.0.22621\"."
366
+ }
367
+ },
368
+ "additionalProperties": false
369
+ },
370
+ "cpp": {
371
+ "type": "object",
372
+ "properties": {
373
+ "enabled": {
374
+ "anyOf": [
375
+ {
376
+ "type": "boolean"
377
+ },
378
+ {
379
+ "type": "string",
380
+ "const": "auto"
381
+ }
382
+ ],
383
+ "description": "MinGW-w64 GCC with CMake, Ninja, premake5 and mingw32-make (also Rust's linker). true, false, or \"auto\" = only when the project has CMakeLists.txt, Makefile, meson.build, premake5.lua or Cargo.toml."
384
+ },
385
+ "flexBison": {
386
+ "type": "boolean",
387
+ "description": "win_flex / win_bison, the parser generators many C/C++ projects (game engines among them) need; CMake finds them."
388
+ }
389
+ },
390
+ "additionalProperties": false
391
+ },
392
+ "dotnet": {
393
+ "type": "object",
394
+ "properties": {
395
+ "enabled": {
396
+ "anyOf": [
397
+ {
398
+ "type": "boolean"
399
+ },
400
+ {
401
+ "type": "string",
402
+ "const": "auto"
403
+ }
404
+ ],
405
+ "description": ".NET SDK (C#, F#). true, false, or \"auto\" = only when the project has a .sln, .slnx, .csproj, .fsproj or global.json."
406
+ },
407
+ "channels": {
408
+ "type": "array",
409
+ "items": {
410
+ "type": "string"
411
+ },
412
+ "description": "SDK channels, e.g. [\"LTS\", \"8.0\"]. A project's global.json is installed too."
413
+ },
414
+ "tools": {
415
+ "type": "array",
416
+ "items": {
417
+ "type": "string"
418
+ },
419
+ "description": "Global .NET tools (`dotnet tool install -g`), installed once and kept (e.g. [\"dotnet-ef\", \"csharpier\"])."
420
+ },
421
+ "workloads": {
422
+ "type": "array",
423
+ "items": {
424
+ "type": "string"
425
+ },
426
+ "description": "SDK workloads (`dotnet workload install`), installed once and kept (e.g. [\"aspire\", \"wasm-tools\"])."
427
+ },
428
+ "frameworkTargets": {
429
+ "type": "array",
430
+ "items": {
431
+ "type": "string"
432
+ },
433
+ "description": ".NET Framework reference assemblies (targeting packs) from NuGet, so net4x and old-style .csproj projects build without Visual Studio, e.g. [\"net48\", \"net472\", \"net462\"]. The 4.8 runtime itself ships with Windows."
434
+ },
435
+ "netfx35": {
436
+ "type": "boolean",
437
+ "description": ".NET Framework 3.5 runtime (a Windows feature, enabled from Windows Update on every boot; a few minutes)."
438
+ }
439
+ },
440
+ "additionalProperties": false
441
+ },
442
+ "go": {
443
+ "type": "object",
444
+ "properties": {
445
+ "enabled": {
446
+ "anyOf": [
447
+ {
448
+ "type": "boolean"
449
+ },
450
+ {
451
+ "type": "string",
452
+ "const": "auto"
453
+ }
454
+ ],
455
+ "description": "Go. true, false, or \"auto\" = only when the project has go.mod or go.work."
456
+ },
457
+ "version": {
458
+ "type": "string",
459
+ "minLength": 1,
460
+ "description": "\"stable\" or a version prefix such as \"1.23\". A go.mod asking for newer fetches it itself (GOTOOLCHAIN=auto)."
461
+ },
462
+ "tools": {
463
+ "type": "array",
464
+ "items": {
465
+ "type": "string"
466
+ },
467
+ "description": "Go tools (`go install <path>@<version>`), installed once and kept (e.g. [\"golang.org/x/tools/gopls@latest\"])."
468
+ }
469
+ },
470
+ "additionalProperties": false
471
+ },
472
+ "java": {
473
+ "type": "object",
474
+ "properties": {
475
+ "enabled": {
476
+ "anyOf": [
477
+ {
478
+ "type": "boolean"
479
+ },
480
+ {
481
+ "type": "string",
482
+ "const": "auto"
483
+ }
484
+ ],
485
+ "description": "Java: Eclipse Temurin JDK. true, false, or \"auto\" = only when the project has pom.xml, build.gradle(.kts), settings.gradle(.kts), mvnw, gradlew or .java-version."
486
+ },
487
+ "version": {
488
+ "type": "string",
489
+ "minLength": 1,
490
+ "description": "\"lts\" (newest LTS) or a major version such as \"21\". A project's .java-version or .sdkmanrc wins."
491
+ },
492
+ "maven": {
493
+ "type": "boolean",
494
+ "description": "Apache Maven (mvn). A project's mvnw works either way."
495
+ },
496
+ "gradle": {
497
+ "type": "boolean",
498
+ "description": "Gradle (gradle). A project's gradlew works either way."
499
+ }
500
+ },
501
+ "additionalProperties": false
502
+ },
503
+ "ruby": {
504
+ "type": "object",
505
+ "properties": {
506
+ "enabled": {
507
+ "anyOf": [
508
+ {
509
+ "type": "boolean"
510
+ },
511
+ {
512
+ "type": "string",
513
+ "const": "auto"
514
+ }
515
+ ],
516
+ "description": "Ruby (RubyInstaller, with gem and bundler). Gems with C extensions need MSYS2, which is not included. true, false, or \"auto\" = only when the project has Gemfile, a .gemspec or .ruby-version."
517
+ },
518
+ "version": {
519
+ "type": "string",
520
+ "minLength": 1,
521
+ "description": "Version prefix, e.g. \"3\" or \"3.3\". A project's .ruby-version wins."
522
+ },
523
+ "gems": {
524
+ "type": "array",
525
+ "items": {
526
+ "type": "string"
527
+ },
528
+ "description": "Gems installed globally, installed once and kept (e.g. [\"rubocop\"])."
529
+ }
530
+ },
531
+ "additionalProperties": false
532
+ },
533
+ "php": {
534
+ "type": "object",
535
+ "properties": {
536
+ "enabled": {
537
+ "anyOf": [
538
+ {
539
+ "type": "boolean"
540
+ },
541
+ {
542
+ "type": "string",
543
+ "const": "auto"
544
+ }
545
+ ],
546
+ "description": "PHP (with the Visual C++ runtime it needs, installed on every boot). true, false, or \"auto\" = only when the project has composer.json, artisan or .php-version."
547
+ },
548
+ "version": {
549
+ "type": "string",
550
+ "minLength": 1,
551
+ "description": "Version prefix, e.g. \"8\" or \"8.3\". A project's .php-version wins."
552
+ },
553
+ "composer": {
554
+ "type": "boolean",
555
+ "description": "Composer."
556
+ }
557
+ },
558
+ "additionalProperties": false
559
+ },
560
+ "deno": {
561
+ "type": "object",
562
+ "properties": {
563
+ "enabled": {
564
+ "anyOf": [
565
+ {
566
+ "type": "boolean"
567
+ },
568
+ {
569
+ "type": "string",
570
+ "const": "auto"
571
+ }
572
+ ],
573
+ "description": "Deno. true, false, or \"auto\" = only when the project has deno.json, deno.jsonc or deno.lock."
574
+ }
575
+ },
576
+ "additionalProperties": false
577
+ },
578
+ "pwsh": {
579
+ "type": "object",
580
+ "properties": {
581
+ "enabled": {
582
+ "anyOf": [
583
+ {
584
+ "type": "boolean"
585
+ },
586
+ {
587
+ "type": "string",
588
+ "const": "auto"
589
+ }
590
+ ],
591
+ "description": "PowerShell 7 (pwsh), portable (~110 MB once); `powershell` stays Windows PowerShell 5.1. true, false, or \"auto\" = when a .ps1 at the root or one folder down has #Requires -Version 7 / -PSEdition Core or a `pwsh ...` usage line, or, in a folder that is no project yet, when this PC has PowerShell 7."
592
+ }
593
+ },
594
+ "additionalProperties": false
595
+ },
596
+ "cli": {
597
+ "type": "object",
598
+ "properties": {
599
+ "gh": {
600
+ "anyOf": [
601
+ {
602
+ "type": "boolean"
603
+ },
604
+ {
605
+ "type": "string",
606
+ "const": "auto"
607
+ }
608
+ ],
609
+ "description": "GitHub CLI (gh). Only with provisioning.git.access \"full\": gh can push and merge through the GitHub API, past a read-only git. Your PC's gh login is never copied; `gh auth login` inside persists (GH_CONFIG_DIR). \"auto\" = when the project has a .github folder."
610
+ },
611
+ "zstd": {
612
+ "anyOf": [
613
+ {
614
+ "type": "boolean"
615
+ },
616
+ {
617
+ "type": "string",
618
+ "const": "auto"
619
+ }
620
+ ],
621
+ "description": "Zstandard (zstd). \"auto\" = off; set true to get it."
622
+ },
623
+ "openssl": {
624
+ "anyOf": [
625
+ {
626
+ "type": "boolean"
627
+ },
628
+ {
629
+ "type": "string",
630
+ "const": "auto"
631
+ }
632
+ ],
633
+ "description": "`openssl` on PATH, from the copy Git for Windows ships (its mingw64\\bin is not put on PATH, so it cannot shadow MinGW's gcc). \"auto\" = on."
634
+ }
635
+ },
636
+ "additionalProperties": false
637
+ },
638
+ "bun": {
639
+ "type": "object",
640
+ "properties": {
641
+ "enabled": {
642
+ "type": "boolean",
643
+ "description": "Bun runtime (claude-mem needs it)."
644
+ }
645
+ },
646
+ "additionalProperties": false
647
+ },
648
+ "uv": {
649
+ "type": "object",
650
+ "properties": {
651
+ "enabled": {
652
+ "type": "boolean",
653
+ "description": "uv, the Python package manager (claude-mem needs it)."
654
+ }
655
+ },
656
+ "additionalProperties": false
657
+ },
658
+ "vcRuntime": {
659
+ "type": "object",
660
+ "properties": {
661
+ "enabled": {
662
+ "type": "boolean",
663
+ "description": "Microsoft Visual C++ runtime for tools that need it (a real installer, so it runs on every boot, ~15 s). PHP installs it regardless."
664
+ }
665
+ },
666
+ "additionalProperties": false
667
+ },
668
+ "mesa": {
669
+ "type": "object",
670
+ "properties": {
671
+ "enabled": {
672
+ "type": "boolean",
673
+ "description": "Mesa 3D (llvmpipe): OpenGL 4.5 in software for games and apps when there is no GPU (sandbox.vGpu off). Copy opengl32.dll and libgallium_wgl.dll from %MESA_DIR% next to the program's .exe."
674
+ },
675
+ "vulkan": {
676
+ "type": "boolean",
677
+ "description": "Also software Vulkan 1.4 (Mesa lavapipe) with the Khronos loader, registered for every program; for wgpu set WGPU_BACKEND=vulkan."
678
+ }
679
+ },
680
+ "additionalProperties": false
681
+ },
682
+ "vscode": {
683
+ "type": "object",
684
+ "properties": {
685
+ "enabled": {
686
+ "type": "boolean",
687
+ "description": "Portable VS Code inside the sandbox (code on PATH, desktop shortcut); its settings and extensions persist."
688
+ }
689
+ },
690
+ "additionalProperties": false
691
+ },
692
+ "environment": {
693
+ "type": "object",
694
+ "propertyNames": {
695
+ "type": "string",
696
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
697
+ },
698
+ "additionalProperties": {
699
+ "type": "string"
700
+ },
701
+ "description": "Extra environment variables for the agent and every terminal, e.g. registry mirrors: {\"NPM_CONFIG_REGISTRY\": \"https://...\", \"PIP_INDEX_URL\": \"https://...\"}."
702
+ }
703
+ },
704
+ "additionalProperties": false
705
+ },
706
+ "databases": {
707
+ "type": "object",
708
+ "properties": {
709
+ "postgres": {
710
+ "type": "object",
711
+ "properties": {
712
+ "enabled": {
713
+ "anyOf": [
714
+ {
715
+ "type": "boolean"
716
+ },
717
+ {
718
+ "type": "string",
719
+ "const": "auto"
720
+ }
721
+ ],
722
+ "description": "PostgreSQL (with psql, pg_dump). User postgres, no password, localhost only: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
723
+ },
724
+ "version": {
725
+ "type": "string",
726
+ "minLength": 1,
727
+ "description": "\"latest\" or a major version such as \"16\". A compose file pinning postgres:<major> wins."
728
+ },
729
+ "port": {
730
+ "type": "integer",
731
+ "minimum": 1024,
732
+ "maximum": 65535,
733
+ "description": "Port inside the sandbox."
734
+ }
735
+ },
736
+ "additionalProperties": false
737
+ },
738
+ "mysql": {
739
+ "type": "object",
740
+ "properties": {
741
+ "enabled": {
742
+ "anyOf": [
743
+ {
744
+ "type": "boolean"
745
+ },
746
+ {
747
+ "type": "string",
748
+ "const": "auto"
749
+ }
750
+ ],
751
+ "description": "MySQL-compatible database (MariaDB). User root, no password, localhost only: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
752
+ },
753
+ "version": {
754
+ "type": "string",
755
+ "minLength": 1,
756
+ "description": "\"lts\" (newest MariaDB LTS) or a MariaDB series such as \"11.4\"."
757
+ },
758
+ "port": {
759
+ "type": "integer",
760
+ "minimum": 1024,
761
+ "maximum": 65535,
762
+ "description": "Port inside the sandbox."
763
+ }
764
+ },
765
+ "additionalProperties": false
766
+ },
767
+ "mongodb": {
768
+ "type": "object",
769
+ "properties": {
770
+ "enabled": {
771
+ "anyOf": [
772
+ {
773
+ "type": "boolean"
774
+ },
775
+ {
776
+ "type": "string",
777
+ "const": "auto"
778
+ }
779
+ ],
780
+ "description": "MongoDB with mongosh, localhost only: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
781
+ },
782
+ "version": {
783
+ "type": "string",
784
+ "minLength": 1,
785
+ "description": "\"latest\" or a version prefix such as \"8.0\"."
786
+ },
787
+ "port": {
788
+ "type": "integer",
789
+ "minimum": 1024,
790
+ "maximum": 65535,
791
+ "description": "Port inside the sandbox."
792
+ }
793
+ },
794
+ "additionalProperties": false
795
+ },
796
+ "redis": {
797
+ "type": "object",
798
+ "properties": {
799
+ "enabled": {
800
+ "anyOf": [
801
+ {
802
+ "type": "boolean"
803
+ },
804
+ {
805
+ "type": "string",
806
+ "const": "auto"
807
+ }
808
+ ],
809
+ "description": "Redis (community Windows build), localhost only: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
810
+ },
811
+ "port": {
812
+ "type": "integer",
813
+ "minimum": 1024,
814
+ "maximum": 65535,
815
+ "description": "Port inside the sandbox."
816
+ }
817
+ },
818
+ "additionalProperties": false
819
+ },
820
+ "dynamodb": {
821
+ "type": "object",
822
+ "properties": {
823
+ "enabled": {
824
+ "anyOf": [
825
+ {
826
+ "type": "boolean"
827
+ },
828
+ {
829
+ "type": "string",
830
+ "const": "auto"
831
+ }
832
+ ],
833
+ "description": "DynamoDB Local (Amazon's official emulator, on the Java toolchain) with dynamodb-admin, a web UI to browse and edit tables: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
834
+ },
835
+ "port": {
836
+ "type": "integer",
837
+ "minimum": 1024,
838
+ "maximum": 65535,
839
+ "description": "DynamoDB endpoint port inside the sandbox (http://localhost:<port>)."
840
+ },
841
+ "adminPort": {
842
+ "type": "integer",
843
+ "minimum": 1024,
844
+ "maximum": 65535,
845
+ "description": "dynamodb-admin web UI port (open http://localhost:<adminPort> in the sandbox's browser)."
846
+ },
847
+ "admin": {
848
+ "type": "boolean",
849
+ "description": "Run dynamodb-admin next to DynamoDB Local."
850
+ }
851
+ },
852
+ "additionalProperties": false
853
+ },
854
+ "sqlserver": {
855
+ "type": "object",
856
+ "properties": {
857
+ "enabled": {
858
+ "anyOf": [
859
+ {
860
+ "type": "boolean"
861
+ },
862
+ {
863
+ "type": "string",
864
+ "const": "auto"
865
+ }
866
+ ],
867
+ "description": "SQL Server. It cannot run inside Windows Sandbox; when a project needs it you get a hint to reach the one on this PC through hostAccess.forwards: true, false, or \"auto\" = only when the project needs it (found from compose files, dependencies of every language, Prisma/ORM config and connection strings)."
868
+ }
869
+ },
870
+ "additionalProperties": false
871
+ }
872
+ },
873
+ "additionalProperties": false
874
+ },
875
+ "attach": {
876
+ "type": "object",
877
+ "properties": {
878
+ "enabled": {
879
+ "type": "boolean",
880
+ "description": "Allow sandbox claude --terminal / sandbox attach from this PC."
881
+ },
882
+ "reuseSession": {
883
+ "type": "boolean",
884
+ "description": "sandbox claude -t in a running sandbox reattaches to this folder's session when no terminal on this PC is attached to it (--new always starts another)."
885
+ },
886
+ "auto": {
887
+ "type": "boolean",
888
+ "description": "Starting an agent attaches this terminal automatically, as if you passed -t (only in an interactive terminal)."
889
+ },
890
+ "autoHide": {
891
+ "type": "boolean",
892
+ "description": "Hide the Windows Sandbox window whenever this terminal attaches; it keeps running (sandbox show brings it back)."
893
+ }
894
+ },
895
+ "additionalProperties": false
896
+ },
897
+ "personalization": {
898
+ "type": "object",
899
+ "properties": {
900
+ "enabled": {
901
+ "type": "boolean",
902
+ "description": "Copy your desktop look into the sandbox."
903
+ }
904
+ },
905
+ "additionalProperties": false
906
+ },
907
+ "claudeProfile": {
908
+ "type": "object",
909
+ "properties": {
910
+ "enabled": {
911
+ "type": "boolean",
912
+ "description": "Copy selected Claude settings from this PC into the sandbox."
913
+ },
914
+ "include": {
915
+ "type": "array",
916
+ "items": {
917
+ "type": "string",
918
+ "pattern": "^[A-Za-z0-9._-]+$"
919
+ },
920
+ "description": "Files and folders copied from it."
921
+ },
922
+ "overwrite": {
923
+ "type": "boolean",
924
+ "description": "Refresh these settings from this PC on every launch."
925
+ },
926
+ "copyCredentials": {
927
+ "type": "boolean",
928
+ "description": "Copy your Claude LOGIN into the sandbox. Prefer sandbox account instead."
929
+ },
930
+ "syncHistory": {
931
+ "type": "boolean",
932
+ "description": "Bring all conversation history in, and sync new history back (path-translated)."
933
+ },
934
+ "syncClaudeMem": {
935
+ "type": "boolean",
936
+ "description": "Bring claude-mem data in, and its database back when the sandbox closes."
937
+ }
938
+ },
939
+ "additionalProperties": false
940
+ },
941
+ "hooks": {
942
+ "type": "object",
943
+ "properties": {
944
+ "failFast": {
945
+ "type": "boolean"
946
+ }
947
+ },
948
+ "additionalProperties": false
949
+ }
950
+ },
951
+ "additionalProperties": false
952
+ }