Files
hyperframes/packages/engine/package-subpaths.json
Jerrai 1116077dab fix(cli): capture treats only 192.0.0.0/24 and 192.0.2.0/24 as reserved, via one shared list (#6853)
* fix(cli): capture's public-address check uses the engine's list; 192.0/16 is not all reserved

Only 192.0.0.0/24 and 192.0.2.0/24 are special-use. The capture proxy blocked all of
192.0.0.0/16, so sites on WordPress VIP (192.0.64.0/18, e.g. nasa.gov at 192.0.66.108)
failed every capture with net::ERR_TUNNEL_CONNECTION_FAILED. isPublicIPv4 now reads the
engine's isBlockedNetworkHost, so capture and asset downloads share one list.

— Jerrai (cutroom-debug)

* refactor(engine): one special-use network list, in a light subpath capture imports

Importing all of @hyperframes/engine into capture's publicNetwork slowed the lookup child's
start-up past publicNetwork.process.test's 6 s mid-lookup exit. The list and
isBlockedNetworkHost move to engine/src/utils/networkPolicy.ts, exported as
@hyperframes/engine/network-policy; urlDownloader and the engine index read it there.

— Jerrai (cutroom-debug)

* test(engine): pin 192.0.0.0/24 and 192.0.2.0/24 blocked, the rest of 192.0/16 public

— Jerrai (cutroom-debug)

* fix(cli): alias the engine's network-policy subpath in the CLI bundle

esbuild's root alias rewrote @hyperframes/engine/network-policy to src/index.ts/network-policy;
the exact-subpath list now carries it. The publicNetwork docstring is cut to keep the file's
comment share under its base.

— Jerrai (cutroom-debug)
2026-10-30 16:21:34 +00:00

60 lines
1.9 KiB
JSON

{
"package": "@hyperframes/engine",
"subpaths": {
".": {
"source": "./src/index.ts",
"runtime": "./dist/index.js",
"types": "./dist/index.d.ts",
"environments": ["bun", "node"]
},
"./alpha-blit": {
"source": "./src/utils/alphaBlit.ts",
"runtime": "./dist/utils/alphaBlit.js",
"types": "./dist/utils/alphaBlit.d.ts",
"environments": ["bun", "node"]
},
"./chrome-host-ceiling": {
"source": "./src/services/chromeHostCeiling.ts",
"runtime": "./dist/services/chromeHostCeiling.js",
"types": "./dist/services/chromeHostCeiling.d.ts",
"environments": ["bun", "node"]
},
"./chrome-startup": {
"source": "./src/services/chromeStartup.ts",
"runtime": "./dist/services/chromeStartup.js",
"types": "./dist/services/chromeStartup.d.ts",
"environments": ["bun", "node"]
},
"./system-memory": {
"source": "./src/services/systemMemory.ts",
"runtime": "./dist/services/systemMemory.js",
"types": "./dist/services/systemMemory.d.ts",
"environments": ["bun", "node"]
},
"./wsl-host": {
"source": "./src/services/wslHost.ts",
"runtime": "./dist/services/wslHost.js",
"types": "./dist/services/wslHost.d.ts",
"environments": ["bun", "node"]
},
"./shader-transitions": {
"source": "./src/utils/shaderTransitions.ts",
"runtime": "./dist/utils/shaderTransitions.js",
"types": "./dist/utils/shaderTransitions.d.ts",
"environments": ["browser", "bun", "node"]
},
"./package.json": {
"source": "./package.json",
"runtime": "./package.json",
"types": null,
"environments": ["browser", "bun", "node"]
},
"./network-policy": {
"source": "./src/utils/networkPolicy.ts",
"runtime": "./dist/utils/networkPolicy.js",
"types": "./dist/utils/networkPolicy.d.ts",
"environments": ["bun", "node"]
}
}
}