unbrowse 7.0.2 → 7.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unbrowse",
3
- "version": "7.0.2",
3
+ "version": "7.1.0",
4
4
  "description": "Reverse-engineer any website into reusable API skills. Zero-dep single binary with embedded browser engine.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -87,12 +87,16 @@ if (process.env.CI && (process.env.GITHUB_ACTIONS || process.env.UNBROWSE_SKIP_B
87
87
  process.exit(0);
88
88
  }
89
89
 
90
- const platform = process.platform; // darwin, linux
90
+ // `process.platform` returns 'win32' on Windows but our SUPPORTED_TARGETS
91
+ // names use 'win' (e.g. 'win-x64'). Normalize before composing the target
92
+ // key. 'darwin' and 'linux' pass through unchanged.
93
+ const platformRaw = process.platform; // darwin | linux | win32 | ...
94
+ const platform = platformRaw === "win32" ? "win" : platformRaw;
91
95
  const arch = process.arch; // arm64, x64
92
96
  const target = `${platform}-${arch}`;
93
97
 
94
98
  if (!SUPPORTED_TARGETS.includes(target)) {
95
- console.warn(`[unbrowse] No prebuilt binary for ${target}.`);
99
+ console.warn(`[unbrowse] No prebuilt binary for ${target} (platform=${platformRaw}, arch=${arch}).`);
96
100
  console.warn("[unbrowse] Falling back to source mode.");
97
101
  process.exit(0);
98
102
  }
@@ -3,7 +3,14 @@
3
3
  import { readFileSync } from "node:fs";
4
4
  import { join } from "node:path";
5
5
 
6
- export const SUPPORTED_TARGETS = ["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64"];
6
+ // win-x64 added 2026-05-26 Bun handles `--target=bun-windows-x64`
7
+ // natively, postinstall picks 'win32' via the platform map (see
8
+ // postinstall.mjs), and src/kuri/client.ts already picks kuri.exe and
9
+ // the win-x64 vendor path. The kuri-windows-cross-build workflow stages
10
+ // kuri.exe; build-kuri-binaries.mjs picks it up at release time. Runtime
11
+ // verification (Chrome detection, console buffering) still needs a
12
+ // Windows machine — track separately.
13
+ export const SUPPORTED_TARGETS = ["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64", "win-x64"];
7
14
  export const RELEASE_METADATA_ASSETS = ["release-manifest.json", "release-manifest.sig"];
8
15
 
9
16
  export function readPackageVersion(packageRoot) {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "repo_url": "https://github.com/justrach/kuri.git",
3
3
  "branch": "adding-extensions",
4
- "source_sha": "3cdc33c8507bd91f1ce499a69f567189e1284e4e",
5
- "built_at": "2026-05-22T07:18:34.843Z",
4
+ "source_sha": "f2487712bae677fa4aa7ed3ce773355711f2e56e",
5
+ "built_at": "2026-05-27T07:15:46.062Z",
6
6
  "binaries": {
7
7
  "darwin-arm64": {
8
8
  "zig_target": "aarch64-macos",