peachsim 0.1.708 → 0.1.710
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/cli/commands/control.ts +55 -1
- package/cli/current-sim.ts +15 -1
- package/cli/drivers/playwright-sim-host.ts +14 -1
- package/cli/drivers/playwright.ts +36 -3
- package/cli/main.ts +8 -0
- package/cli/outbound-endpoints.ts +95 -27
- package/cli/parent-pid.ts +91 -15
- package/cli/ws-bridge.ts +5 -0
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +78 -5
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +172 -30
- package/dist-lib/host/fetch-proxy-handler.cjs +45 -21
- package/dist-lib/host/fetch-proxy-overrides.cjs +2 -2
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +78 -5
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +333 -53
- package/dist-lib/swift-compile.cjs +8 -2
- package/dist-lib/swift-compile.mjs +8 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +9 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +2 -1
- package/src/host/bridge-host.ts +65 -0
- package/src/host/fetch-proxy-handler.ts +52 -23
- package/src/host/fetch-proxy-overrides.ts +5 -1
- package/src/host/fetch-proxy-transport.ts +82 -0
- package/src/swift-compile.ts +8 -2
- package/src/swift-submit.ts +2 -1
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -2244,6 +2244,7 @@ var import_fs = require("fs");
|
|
|
2244
2244
|
var import_module = require("module");
|
|
2245
2245
|
var cached = null;
|
|
2246
2246
|
var cachedComm = null;
|
|
2247
|
+
var cachedPgid = null;
|
|
2247
2248
|
function getParentPid(pid) {
|
|
2248
2249
|
if (!cached) cached = build();
|
|
2249
2250
|
try {
|
|
@@ -2260,6 +2261,14 @@ function getProcessComm(pid) {
|
|
|
2260
2261
|
return null;
|
|
2261
2262
|
}
|
|
2262
2263
|
}
|
|
2264
|
+
function getProcessPgid(pid) {
|
|
2265
|
+
if (!cachedPgid) cachedPgid = buildPgid();
|
|
2266
|
+
try {
|
|
2267
|
+
return cachedPgid(pid);
|
|
2268
|
+
} catch {
|
|
2269
|
+
return null;
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2263
2272
|
function buildComm() {
|
|
2264
2273
|
if (process.platform === "linux") {
|
|
2265
2274
|
return (pid) => {
|
|
@@ -2293,6 +2302,31 @@ function build() {
|
|
|
2293
2302
|
}
|
|
2294
2303
|
return () => null;
|
|
2295
2304
|
}
|
|
2305
|
+
function buildPgid() {
|
|
2306
|
+
if (process.platform === "linux") {
|
|
2307
|
+
return (pid) => {
|
|
2308
|
+
try {
|
|
2309
|
+
const raw = (0, import_fs.readFileSync)(`/proc/${pid}/stat`, "utf8");
|
|
2310
|
+
const end = raw.lastIndexOf(")");
|
|
2311
|
+
if (end < 0) return null;
|
|
2312
|
+
const rest = raw.slice(end + 1).trim().split(/\s+/);
|
|
2313
|
+
const pgid = Number(rest[2]);
|
|
2314
|
+
return Number.isFinite(pgid) && pgid > 0 ? pgid : null;
|
|
2315
|
+
} catch {
|
|
2316
|
+
return null;
|
|
2317
|
+
}
|
|
2318
|
+
};
|
|
2319
|
+
}
|
|
2320
|
+
if (process.platform === "darwin") {
|
|
2321
|
+
const ffi = tryBuildDarwinPgidFfi();
|
|
2322
|
+
if (ffi) return ffi;
|
|
2323
|
+
return (pid) => {
|
|
2324
|
+
const pgid = readProcessTable().get(pid)?.pgid;
|
|
2325
|
+
return pgid !== void 0 && pgid > 0 ? pgid : null;
|
|
2326
|
+
};
|
|
2327
|
+
}
|
|
2328
|
+
return () => null;
|
|
2329
|
+
}
|
|
2296
2330
|
var PROCESS_TABLE_TTL_MS = 2e3;
|
|
2297
2331
|
var processTable = { readAt: 0, rows: /* @__PURE__ */ new Map() };
|
|
2298
2332
|
function readProcessTable() {
|
|
@@ -2302,18 +2336,19 @@ function readProcessTable() {
|
|
|
2302
2336
|
}
|
|
2303
2337
|
const rows = /* @__PURE__ */ new Map();
|
|
2304
2338
|
try {
|
|
2305
|
-
const out = (0, import_child_process.execFileSync)("ps", ["-eo", "pid=,ppid=,comm="], {
|
|
2339
|
+
const out = (0, import_child_process.execFileSync)("ps", ["-eo", "pid=,ppid=,pgid=,comm="], {
|
|
2306
2340
|
encoding: "utf8",
|
|
2307
2341
|
timeout: 5e3,
|
|
2308
2342
|
maxBuffer: 8 * 1024 * 1024,
|
|
2309
2343
|
stdio: ["ignore", "pipe", "ignore"]
|
|
2310
2344
|
});
|
|
2311
2345
|
for (const line of out.split("\n")) {
|
|
2312
|
-
const parsed = line.trim().match(/^(\d+)\s+(\d+)\s+(.*)$/);
|
|
2346
|
+
const parsed = line.trim().match(/^(\d+)\s+(\d+)\s+(\d+)\s+(.*)$/);
|
|
2313
2347
|
if (!parsed) continue;
|
|
2314
2348
|
rows.set(Number(parsed[1]), {
|
|
2315
2349
|
ppid: Number(parsed[2]),
|
|
2316
|
-
|
|
2350
|
+
pgid: Number(parsed[3]),
|
|
2351
|
+
comm: (parsed[4].split("/").at(-1) ?? "").slice(0, PBI_COMM_LEN)
|
|
2317
2352
|
});
|
|
2318
2353
|
}
|
|
2319
2354
|
} catch {
|
|
@@ -2390,6 +2425,31 @@ function tryBuildDarwinCommFfi() {
|
|
|
2390
2425
|
return null;
|
|
2391
2426
|
}
|
|
2392
2427
|
}
|
|
2428
|
+
var PBI_PGID_OFFSET = 100;
|
|
2429
|
+
function tryBuildDarwinPgidFfi() {
|
|
2430
|
+
if (!process.versions?.bun) return null;
|
|
2431
|
+
try {
|
|
2432
|
+
const r = (0, import_module.createRequire)(__sootsim_import_meta_url);
|
|
2433
|
+
const { dlopen, FFIType } = r("bun:ffi");
|
|
2434
|
+
const lib = dlopen("/usr/lib/libproc.dylib", {
|
|
2435
|
+
proc_pidinfo: {
|
|
2436
|
+
args: [FFIType.i32, FFIType.i32, FFIType.u64, FFIType.ptr, FFIType.i32],
|
|
2437
|
+
returns: FFIType.i32
|
|
2438
|
+
}
|
|
2439
|
+
});
|
|
2440
|
+
const buf = Buffer.alloc(PROC_BSDINFO_SIZE);
|
|
2441
|
+
return (pid) => {
|
|
2442
|
+
const ret = Number(
|
|
2443
|
+
lib.symbols.proc_pidinfo(pid, PROC_PIDTBSDINFO, 0n, buf, PROC_BSDINFO_SIZE)
|
|
2444
|
+
);
|
|
2445
|
+
if (ret <= 0) return null;
|
|
2446
|
+
const pgid = buf.readUInt32LE(PBI_PGID_OFFSET);
|
|
2447
|
+
return pgid > 0 ? pgid : null;
|
|
2448
|
+
};
|
|
2449
|
+
} catch {
|
|
2450
|
+
return null;
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2393
2453
|
|
|
2394
2454
|
// cli/secure-file.ts
|
|
2395
2455
|
var import_node_crypto = require("node:crypto");
|
|
@@ -2484,6 +2544,15 @@ function getCliIdentity() {
|
|
|
2484
2544
|
function getCliIdentityKey() {
|
|
2485
2545
|
return getCliIdentity().key;
|
|
2486
2546
|
}
|
|
2547
|
+
function getStableOwnerPid() {
|
|
2548
|
+
return findTopAncestor(process.ppid);
|
|
2549
|
+
}
|
|
2550
|
+
function getOwnerProcessGroupId() {
|
|
2551
|
+
const owner = getStableOwnerPid();
|
|
2552
|
+
if (!owner || owner <= 1) return null;
|
|
2553
|
+
const pgid = getProcessPgid(owner);
|
|
2554
|
+
return pgid !== null && pgid > 1 ? pgid : null;
|
|
2555
|
+
}
|
|
2487
2556
|
function getCurrentSimPath() {
|
|
2488
2557
|
if (process.env[CURRENT_SIM_PATH_ENV]) {
|
|
2489
2558
|
return (0, import_path.resolve)(process.env[CURRENT_SIM_PATH_ENV]);
|
|
@@ -2604,7 +2673,11 @@ function createBridge(wsPort, opts = {}) {
|
|
|
2604
2673
|
id: 0,
|
|
2605
2674
|
cliIdentityKey: identity.key,
|
|
2606
2675
|
cliIdentitySource: identity.source,
|
|
2607
|
-
cliLabel: opts.cliLabel
|
|
2676
|
+
cliLabel: opts.cliLabel,
|
|
2677
|
+
// lets the bridge free this cli's leases once its owning
|
|
2678
|
+
// session is entirely gone, instead of blocking others
|
|
2679
|
+
// until the TTL burns out. null when ancestry is unreadable.
|
|
2680
|
+
cliOwnerPgid: getOwnerProcessGroupId()
|
|
2608
2681
|
})
|
|
2609
2682
|
);
|
|
2610
2683
|
} catch {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.710 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|