@cortexkit/aft-bridge 0.27.1 → 0.28.1

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.
@@ -10,13 +10,10 @@
10
10
  * Used by the resolver to turn the current runtime environment into the
11
11
  * canonical key (e.g. `"darwin-arm64"`) that the rest of the system uses.
12
12
  *
13
- * Note on Windows ARM64: we map `win32-arm64` to `win32-x64` because Windows
14
- * 11 on ARM ships with a built-in x64-on-ARM64 emulator (Prism). Most Node
15
- * installs on Windows ARM64 are x64-emulated to begin with (so process.arch
16
- * actually reads as "x64" already), but on the rare native-arm64 Node the
17
- * x64 binary still runs correctly under emulation. We don't ship a native
18
- * `aft-win32-arm64` binary because the cross-compile toolchain story is
19
- * worse than the small perf cost of running under emulation.
13
+ * v0.28: Windows ARM64 ships a native binary instead of relying on Windows
14
+ * 11's Prism x64-on-ARM64 emulator. Native ARM64 avoids the emulation tax
15
+ * on ARM-native Node installs and ONNX Runtime ARM64 (auto-downloaded by
16
+ * `onnx-runtime.ts`) couples more cleanly with a same-architecture binary.
20
17
  */
21
18
  export declare const PLATFORM_ARCH_MAP: Record<string, Record<string, string>>;
22
19
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAIpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMrD,CAAC"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAIpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOrD,CAAC"}
package/dist/platform.js CHANGED
@@ -10,18 +10,15 @@
10
10
  * Used by the resolver to turn the current runtime environment into the
11
11
  * canonical key (e.g. `"darwin-arm64"`) that the rest of the system uses.
12
12
  *
13
- * Note on Windows ARM64: we map `win32-arm64` to `win32-x64` because Windows
14
- * 11 on ARM ships with a built-in x64-on-ARM64 emulator (Prism). Most Node
15
- * installs on Windows ARM64 are x64-emulated to begin with (so process.arch
16
- * actually reads as "x64" already), but on the rare native-arm64 Node the
17
- * x64 binary still runs correctly under emulation. We don't ship a native
18
- * `aft-win32-arm64` binary because the cross-compile toolchain story is
19
- * worse than the small perf cost of running under emulation.
13
+ * v0.28: Windows ARM64 ships a native binary instead of relying on Windows
14
+ * 11's Prism x64-on-ARM64 emulator. Native ARM64 avoids the emulation tax
15
+ * on ARM-native Node installs and ONNX Runtime ARM64 (auto-downloaded by
16
+ * `onnx-runtime.ts`) couples more cleanly with a same-architecture binary.
20
17
  */
21
18
  export const PLATFORM_ARCH_MAP = {
22
19
  darwin: { arm64: "darwin-arm64", x64: "darwin-x64" },
23
20
  linux: { arm64: "linux-arm64", x64: "linux-x64" },
24
- win32: { arm64: "win32-x64", x64: "win32-x64" },
21
+ win32: { arm64: "win32-arm64", x64: "win32-x64" },
25
22
  };
26
23
  /**
27
24
  * Flat map: platform-key string → GitHub release asset filename.
@@ -34,6 +31,7 @@ export const PLATFORM_ASSET_MAP = {
34
31
  "darwin-x64": "aft-darwin-x64",
35
32
  "linux-arm64": "aft-linux-arm64",
36
33
  "linux-x64": "aft-linux-x64",
34
+ "win32-arm64": "aft-win32-arm64.exe",
37
35
  "win32-x64": "aft-win32-x64.exe",
38
36
  };
39
37
  //# sourceMappingURL=platform.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2C;IACvE,MAAM,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE;IACpD,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE;IACjD,KAAK,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE;CAChD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA2B;IACxD,cAAc,EAAE,kBAAkB;IAClC,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,mBAAmB;CACjC,CAAC"}
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2C;IACvE,MAAM,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,EAAE,YAAY,EAAE;IACpD,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE;IACjD,KAAK,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE;CAClD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA2B;IACxD,cAAc,EAAE,kBAAkB;IAClC,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,iBAAiB;IAChC,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,qBAAqB;IACpC,WAAW,EAAE,mBAAmB;CACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/aft-bridge",
3
- "version": "0.27.1",
3
+ "version": "0.28.1",
4
4
  "type": "module",
5
5
  "description": "Shared NDJSON bridge transport, binary resolution, and ONNX runtime helpers for AFT agent-host plugins (OpenCode, Pi)",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "prepublishOnly": "bun run build"
30
30
  },
31
31
  "dependencies": {
32
- "undici": "^8.2.0"
32
+ "undici": "^7.25.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/node": "^22.0.0",