nano-brain 2026.11.2213 → 2026.11.2214

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.
@@ -93,16 +93,19 @@ test("platformExtension: defaults to current os.platform() when called with no a
93
93
  assert.strictEqual(platformExtension(), expected);
94
94
  });
95
95
 
96
- test("ensureBinary: accepts win32+x64 without 'Unsupported platform' (#637 regression)", async () => {
96
+ test("ensureBinary: accepts win32+x64 without 'Unsupported platform' (#637 regression)", async (t) => {
97
97
  const realPlatform = os.platform;
98
98
  const realArch = os.arch;
99
99
  const realExists = fs.existsSync;
100
100
  os.platform = () => "win32";
101
101
  os.arch = () => "x64";
102
102
  // No existing binary at binaryPath() — force ensureBinary into the download
103
- // path so getPlatformKey() runs end-to-end. ECONNREFUSED is acceptable; the
104
- // assertion is that the failure is NOT the "Unsupported platform" branch.
103
+ // path so getPlatformKey() runs end-to-end. Every request (release asset and
104
+ // the api.github.com fallback) is answered 404 in memory, so the suite makes
105
+ // no real network request (#676); the assertion is that the failure is NOT
106
+ // the "Unsupported platform" branch.
105
107
  fs.existsSync = () => false;
108
+ const requested = stubHttps(t, () => ({ status: 404 }));
106
109
  try {
107
110
  await assert.rejects(() => ensureBinary(), (err) => {
108
111
  assert.ok(err instanceof Error);
@@ -112,6 +115,10 @@ test("ensureBinary: accepts win32+x64 without 'Unsupported platform' (#637 regre
112
115
  );
113
116
  return true;
114
117
  });
118
+ assert.ok(
119
+ requested.some((u) => u.endsWith("/nano-brain-windows-amd64.exe")),
120
+ `download path must be reached for the windows-amd64 asset, requested: ${requested.join(", ")}`,
121
+ );
115
122
  } finally {
116
123
  os.platform = realPlatform;
117
124
  os.arch = realArch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-brain",
3
- "version": "2026.11.2213",
3
+ "version": "2026.11.2214",
4
4
  "description": "Persistent memory and code intelligence for AI coding agents",
5
5
  "bin": {
6
6
  "nano-brain": "npm/run.js"