windows-development-sandbox 1.23.1 → 1.23.2

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.
@@ -21,7 +21,11 @@ export declare function visualStudioWanted(t: Toolchains, on?: (setting: boolean
21
21
  export declare function unrealUsesAutosdk(t: Toolchains, on?: (setting: boolean | 'auto', name: string) => boolean): boolean;
22
22
  /** The Visual Studio installer's exit code in plain words (it is a uint32: -1 and 4294967295 are the same). */
23
23
  export declare function vsExitText(code: number): string;
24
- /** Room the staging copy of the layout needs on the sandbox's own disk, on top of the reserve. */
24
+ /**
25
+ * Room the staging copy of the layout needs on the sandbox's own disk, on top of the reserve. The layout of the Unreal
26
+ * components is about the size of their download (5-8 GB); the sandbox's ~40 GB disk has about 14 GB free at boot
27
+ * (a fixed paging file takes 16 GB), so the estimate must stay under that. A layout that outgrows it fails cleanly.
28
+ */
25
29
  export declare const LAYOUT_STAGING_BYTES: number;
26
30
  /** Spare room on the sandbox's disk while the layout is built there (before Visual Studio is installed). */
27
31
  export declare const STAGING_RESERVE_BYTES: number;
@@ -74,10 +74,14 @@ export function vsExitText(code) {
74
74
  return 'the installer failed with exit ' + c + ' (0x' + c.toString(16).toUpperCase() + ')';
75
75
  }
76
76
  }
77
- /** Room the staging copy of the layout needs on the sandbox's own disk, on top of the reserve. */
78
- export const LAYOUT_STAGING_BYTES = 12 * 1024 ** 3;
77
+ /**
78
+ * Room the staging copy of the layout needs on the sandbox's own disk, on top of the reserve. The layout of the Unreal
79
+ * components is about the size of their download (5-8 GB); the sandbox's ~40 GB disk has about 14 GB free at boot
80
+ * (a fixed paging file takes 16 GB), so the estimate must stay under that. A layout that outgrows it fails cleanly.
81
+ */
82
+ export const LAYOUT_STAGING_BYTES = 8 * 1024 ** 3;
79
83
  /** Spare room on the sandbox's disk while the layout is built there (before Visual Studio is installed). */
80
- export const STAGING_RESERVE_BYTES = 3 * 1024 ** 3;
84
+ export const STAGING_RESERVE_BYTES = 1.5 * 1024 ** 3;
81
85
  /**
82
86
  * What to do after the layout attempt in the data disk: 'done' when it worked, 'stage' (build it on the sandbox's
83
87
  * own disk and copy it over) when it failed and that disk has room, 'skip' (download this boot) otherwise.
@@ -32993,8 +32993,8 @@ function vsExitText(code) {
32993
32993
  return "the installer failed with exit " + c + " (0x" + c.toString(16).toUpperCase() + ")";
32994
32994
  }
32995
32995
  }
32996
- var LAYOUT_STAGING_BYTES = 12 * 1024 ** 3;
32997
- var STAGING_RESERVE_BYTES = 3 * 1024 ** 3;
32996
+ var LAYOUT_STAGING_BYTES = 8 * 1024 ** 3;
32997
+ var STAGING_RESERVE_BYTES = 1.5 * 1024 ** 3;
32998
32998
  function layoutNextStep(exit, localFreeBytes, reserveBytes) {
32999
32999
  if (exit !== null && (exit === 0 || exit === 3010)) return "done";
33000
33000
  return localFreeBytes >= LAYOUT_STAGING_BYTES + reserveBytes ? "stage" : "skip";
@@ -32442,8 +32442,8 @@ function vsExitText(code) {
32442
32442
  return "the installer failed with exit " + c + " (0x" + c.toString(16).toUpperCase() + ")";
32443
32443
  }
32444
32444
  }
32445
- var LAYOUT_STAGING_BYTES = 12 * 1024 ** 3;
32446
- var STAGING_RESERVE_BYTES = 3 * 1024 ** 3;
32445
+ var LAYOUT_STAGING_BYTES = 8 * 1024 ** 3;
32446
+ var STAGING_RESERVE_BYTES = 1.5 * 1024 ** 3;
32447
32447
  function layoutNextStep(exit, localFreeBytes, reserveBytes) {
32448
32448
  if (exit !== null && (exit === 0 || exit === 3010)) return "done";
32449
32449
  return localFreeBytes >= LAYOUT_STAGING_BYTES + reserveBytes ? "stage" : "skip";
@@ -144,9 +144,10 @@ export const persistedInstallsSuite = {
144
144
  t.check(layoutNextStep(0, 0, reserve) === 'done' &&
145
145
  layoutNextStep(3762504530, room(40 * GB), reserve) === 'stage' &&
146
146
  layoutNextStep(3762504530, room(20 * GB), reserve) === 'skip' &&
147
- layoutNextStep(null, room(40 * GB), reserve) === 'stage', 'a failed layout is built on the sandbox disk only with room for it (12 GB plus the reserve)');
148
- t.check(layoutNextStep(null, room(15 * GB), STAGING_RESERVE_BYTES) === 'stage' &&
149
- layoutNextStep(null, room(14 * GB), STAGING_RESERVE_BYTES) === 'skip', 'before Visual Studio is installed, 15 GB free on C: is enough to build the install files there');
147
+ layoutNextStep(null, room(40 * GB), reserve) === 'stage', 'a failed layout is built on the sandbox disk only with room for it (8 GB plus the reserve)');
148
+ t.check(layoutNextStep(null, room(14 * GB), STAGING_RESERVE_BYTES) === 'stage' &&
149
+ layoutNextStep(null, room(9.5 * GB), STAGING_RESERVE_BYTES) === 'stage' &&
150
+ layoutNextStep(null, room(9 * GB), STAGING_RESERVE_BYTES) === 'skip', 'before Visual Studio is installed, the ~14 GB free at boot is enough to build the install files (9.5 GB needed)');
150
151
  t.equal(freeBytesAt(path.join(t.dir('layout-room'), 'not', 'there'), () => ({ bavail: 3, bsize: 2 })), 6, 'free room of a folder that does not exist asks its parent');
151
152
  t.equal(freeBytesAt(t.dir('layout-room'), () => {
152
153
  throw new Error('no');
@@ -8,9 +8,9 @@ using System.Runtime.InteropServices;
8
8
  [assembly: AssemblyCompany("windows-development-sandbox (open source)")]
9
9
  [assembly: AssemblyProduct("Windows Development Sandbox")]
10
10
  [assembly: AssemblyCopyright("MIT License, windows-development-sandbox contributors")]
11
- [assembly: AssemblyVersion("1.23.1.0")]
12
- [assembly: AssemblyFileVersion("1.23.1.0")]
13
- [assembly: AssemblyInformationalVersion("1.23.1")]
11
+ [assembly: AssemblyVersion("1.23.2.0")]
12
+ [assembly: AssemblyFileVersion("1.23.2.0")]
13
+ [assembly: AssemblyInformationalVersion("1.23.2")]
14
14
  [assembly: ComVisible(false)]
15
15
  // computecore.dll and computestorage.dll are not KnownDLLs: load them from System32 only, never from the exe's folder.
16
16
  [assembly: DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
@@ -8,7 +8,7 @@ using System.Runtime.InteropServices;
8
8
  [assembly: AssemblyCompany("windows-development-sandbox (open source)")]
9
9
  [assembly: AssemblyProduct("Windows Development Sandbox")]
10
10
  [assembly: AssemblyCopyright("MIT License, windows-development-sandbox contributors")]
11
- [assembly: AssemblyVersion("1.23.1.0")]
12
- [assembly: AssemblyFileVersion("1.23.1.0")]
13
- [assembly: AssemblyInformationalVersion("1.23.1")]
11
+ [assembly: AssemblyVersion("1.23.2.0")]
12
+ [assembly: AssemblyFileVersion("1.23.2.0")]
13
+ [assembly: AssemblyInformationalVersion("1.23.2")]
14
14
  [assembly: ComVisible(false)]
@@ -9,7 +9,7 @@ using System.Runtime.InteropServices;
9
9
  [assembly: AssemblyCompany("windows-development-sandbox (open source)")]
10
10
  [assembly: AssemblyProduct("Windows Development Sandbox")]
11
11
  [assembly: AssemblyCopyright("MIT License, windows-development-sandbox contributors")]
12
- [assembly: AssemblyVersion("1.23.1.0")]
13
- [assembly: AssemblyFileVersion("1.23.1.0")]
14
- [assembly: AssemblyInformationalVersion("1.23.1")]
12
+ [assembly: AssemblyVersion("1.23.2.0")]
13
+ [assembly: AssemblyFileVersion("1.23.2.0")]
14
+ [assembly: AssemblyInformationalVersion("1.23.2")]
15
15
  [assembly: ComVisible(false)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windows-development-sandbox",
3
- "version": "1.23.1",
3
+ "version": "1.23.2",
4
4
  "description": "A disposable Windows Sandbox for development, with or without an AI agent (Claude Code, Codex, Gemini, opencode, ...): the folder you run it from is the workspace, toolchains and databases for your project install themselves, and nothing else on your PC is reachable.",
5
5
  "type": "module",
6
6
  "license": "MIT",