windows-development-sandbox 1.9.0 → 1.10.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/config.example.json +2 -1
- package/dist/cli/commands/launch/launch.js +2 -0
- package/dist/cli/commands/vpn.js +1 -0
- package/dist/cli/commands/web.d.ts +5 -0
- package/dist/cli/commands/web.js +38 -0
- package/dist/core/config/defaults.js +1 -1
- package/dist/core/schema/config.d.ts +1 -0
- package/dist/core/schema/vpn.js +1 -1
- package/dist/core/schema/web.d.ts +1 -0
- package/dist/core/schema/web.js +4 -1
- package/dist/guest/boot/boot.js +3 -1
- package/dist/guest/governor/decide.d.ts +11 -1
- package/dist/guest/governor/decide.js +30 -1
- package/dist/guest/governor/governor.d.ts +3 -0
- package/dist/guest/governor/governor.js +18 -2
- package/dist/guest/network/firewall.d.ts +1 -0
- package/dist/guest/network/firewall.js +65 -23
- package/dist/guest/runtime/process.js +53 -5
- package/dist/guest/setup/claude-mem.js +12 -4
- package/dist/guest/toolchains/languages/node.js +29 -3
- package/dist/host/life/host-memory.d.ts +1 -0
- package/dist/host/life/host-memory.js +4 -1
- package/dist/host/life/watchdog.d.ts +2 -0
- package/dist/host/life/watchdog.js +19 -3
- package/dist/runtime/agent.js +14 -10
- package/dist/runtime/daemon.js +861 -711
- package/dist/runtime/db.js +14 -10
- package/dist/runtime/main.js +159 -41
- package/dist/runtime/netproxy.js +4 -3
- package/dist/runtime/view.js +4 -3
- package/dist/selftest/guest-boot.test.js +47 -1
- package/dist/selftest/heavy-load.test.js +27 -1
- package/dist/selftest/network.test.js +20 -1
- package/dist/selftest/support/fixtures.d.ts +1 -0
- package/dist/shared/io/copy-tree.d.ts +7 -0
- package/dist/shared/io/copy-tree.js +45 -0
- package/dist/shared/io/index.d.ts +2 -0
- package/dist/shared/io/index.js +2 -0
- package/dist/shared/io/robocopy-result.d.ts +6 -0
- package/dist/shared/io/robocopy-result.js +23 -0
- package/dist/shared/memory/policy.d.ts +5 -0
- package/dist/shared/memory/policy.js +8 -0
- package/dist/shared/network/firewall-rules.d.ts +8 -0
- package/dist/shared/network/firewall-rules.js +28 -0
- package/native/csharp/HcsHost/AssemblyInfo.cs +3 -3
- package/native/csharp/HostTools/AssemblyInfo.cs +3 -3
- package/native/csharp/HostTools/MemoryStatus.cs +128 -107
- package/native/scripts/memory-status.ps1 +10 -2
- package/package.json +1 -1
- package/sandbox/csharp/MemGov.cs +466 -398
- package/sandbox/scripts/new-shortcuts.ps1 +3 -1
- package/schemas/config.schema.json +6 -2
|
@@ -5,7 +5,9 @@ param([Parameter(Mandatory = $true)][string]$ListFile)
|
|
|
5
5
|
$ErrorActionPreference = 'Stop'
|
|
6
6
|
|
|
7
7
|
$shell = New-Object -ComObject WScript.Shell
|
|
8
|
-
|
|
8
|
+
# Windows PowerShell 5.1 hands a JSON array over as ONE object: pipe it through ForEach-Object to get its elements.
|
|
9
|
+
$entries = @(ConvertFrom-Json -InputObject (Get-Content -LiteralPath $ListFile -Raw -Encoding UTF8) | ForEach-Object { $_ })
|
|
10
|
+
foreach ($entry in $entries) {
|
|
9
11
|
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $entry.link) | Out-Null
|
|
10
12
|
$shortcut = $shell.CreateShortcut($entry.link)
|
|
11
13
|
$shortcut.TargetPath = $entry.target
|
|
@@ -362,7 +362,7 @@
|
|
|
362
362
|
"properties": {
|
|
363
363
|
"enabled": {
|
|
364
364
|
"type": "boolean",
|
|
365
|
-
"description": "Send the sandbox's traffic through a VPN. Only the sandbox: your PC's own connection is untouched. Needs a saved login first (sandbox vpn login). The agent in the sandbox can read that login and can turn the tunnel off (it is the administrator there)."
|
|
365
|
+
"description": "(Alpha: not yet tried on a real PC) Send the sandbox's traffic through a VPN. Only the sandbox: your PC's own connection is untouched. Needs a saved login first (sandbox vpn login). The agent in the sandbox can read that login and can turn the tunnel off (it is the administrator there)."
|
|
366
366
|
},
|
|
367
367
|
"provider": {
|
|
368
368
|
"type": "string",
|
|
@@ -1236,13 +1236,17 @@
|
|
|
1236
1236
|
"properties": {
|
|
1237
1237
|
"enabled": {
|
|
1238
1238
|
"type": "boolean",
|
|
1239
|
-
"description": "(Beta)
|
|
1239
|
+
"description": "(Beta) The web UI: your sandbox sessions in a browser on this PC (http://127.0.0.1:<port>, this PC only). On: every sandbox start also starts it in the background (it keeps running until sandbox web stop or a restart of the PC). Off: only sandbox web start runs it. Open it signed in with sandbox web open."
|
|
1240
1240
|
},
|
|
1241
1241
|
"port": {
|
|
1242
1242
|
"type": "integer",
|
|
1243
1243
|
"minimum": 1024,
|
|
1244
1244
|
"maximum": 65535,
|
|
1245
1245
|
"description": "Port of the web UI on 127.0.0.1 (this PC only). Pick another when it is taken."
|
|
1246
|
+
},
|
|
1247
|
+
"openOnLaunch": {
|
|
1248
|
+
"type": "boolean",
|
|
1249
|
+
"description": "(Beta) With the web UI on: open it in your browser, already signed in, every time a sandbox starts."
|
|
1246
1250
|
}
|
|
1247
1251
|
},
|
|
1248
1252
|
"additionalProperties": false
|