sootsim 0.1.310 → 0.1.311
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/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-CPD4GIXP.js → agent-KOPVOZ7G.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-JZTNUUZE.js → agent-wrapper-KVAIIK7K.js} +2 -2
- package/dist-cli/chunks/{app-fonts-CFIBFEVF.js → app-fonts-5ZX2IRBS.js} +2 -2
- package/dist-cli/chunks/{assert-C5WAWJ6I.js → assert-NRKM4ZIK.js} +2 -2
- package/dist-cli/chunks/{auth-UY7RPLPH.js → auth-MSLDV5HR.js} +2 -2
- package/dist-cli/chunks/{beta-NM7T7MDN.js → beta-L5QKFHWI.js} +2 -2
- package/dist-cli/chunks/{camera-4YUYYYJI.js → camera-5JUNQPSI.js} +2 -2
- package/dist-cli/chunks/{chunk-RYPPRVBM.js → chunk-3Y6476ZM.js} +2 -2
- package/dist-cli/chunks/{chunk-GQVBLBUJ.js → chunk-5V5MOREL.js} +2 -2
- package/dist-cli/chunks/{chunk-FT2XATWO.js → chunk-6JYTKF5O.js} +1 -1
- package/dist-cli/chunks/{chunk-LKAAQBT6.js → chunk-6QZY6YO2.js} +1 -1
- package/dist-cli/chunks/{chunk-TAQV44LZ.js → chunk-6SICKWPQ.js} +3 -3
- package/dist-cli/chunks/{chunk-Z6H5FR3U.js → chunk-75KNNHMR.js} +2 -2
- package/dist-cli/chunks/{chunk-YRRUK3EK.js → chunk-75YOUNTE.js} +1 -1
- package/dist-cli/chunks/chunk-7PHOEBKV.js +4 -0
- package/dist-cli/chunks/{chunk-S7WXPIOY.js → chunk-7W63IKAP.js} +2 -2
- package/dist-cli/chunks/chunk-CJKSD5BZ.js +5 -0
- package/dist-cli/chunks/{chunk-SY7E43UY.js → chunk-CKMQ2YXQ.js} +3 -3
- package/dist-cli/chunks/{chunk-QPZVGHRV.js → chunk-CUVLXG63.js} +1 -1
- package/dist-cli/chunks/{chunk-7RJEULWN.js → chunk-EHBHUE6S.js} +2 -2
- package/dist-cli/chunks/{chunk-NLTJE335.js → chunk-F2WH6XM7.js} +2 -2
- package/dist-cli/chunks/{chunk-63JWRDM6.js → chunk-GEUU2WIL.js} +2 -2
- package/dist-cli/chunks/{chunk-ZNK3ZAA5.js → chunk-GFKP5JIA.js} +2 -2
- package/dist-cli/chunks/{chunk-6UXXOG6P.js → chunk-GLECQIGB.js} +2 -2
- package/dist-cli/chunks/{chunk-3S7UEXZW.js → chunk-HI5MWY32.js} +1 -1
- package/dist-cli/chunks/{chunk-GH2OE6F6.js → chunk-J6ZKDIRN.js} +2 -2
- package/dist-cli/chunks/{chunk-PJKCYUT3.js → chunk-JGFIT5X5.js} +2 -2
- package/dist-cli/chunks/{chunk-3EO5JEG7.js → chunk-KGIXNUUM.js} +2 -2
- package/dist-cli/chunks/{chunk-BFNAFH27.js → chunk-KKXSWEYS.js} +1 -1
- package/dist-cli/chunks/{chunk-EPMLSKSB.js → chunk-NBNEISXX.js} +2 -2
- package/dist-cli/chunks/{chunk-EWRPLFYI.js → chunk-P7MI3VFY.js} +1 -1
- package/dist-cli/chunks/{chunk-YIJFCR5T.js → chunk-PHFRI2QF.js} +1 -1
- package/dist-cli/chunks/{chunk-RMIKUUCO.js → chunk-PJ27D3WO.js} +1 -1
- package/dist-cli/chunks/{chunk-MUQDPJUP.js → chunk-QCEMDWL4.js} +1 -1
- package/dist-cli/chunks/{chunk-2TRPGEZE.js → chunk-QILKSUH6.js} +2 -2
- package/dist-cli/chunks/{chunk-WWIQEYHT.js → chunk-QMHUIADD.js} +1 -1
- package/dist-cli/chunks/{chunk-66Z2ADUQ.js → chunk-QUAY5AZB.js} +2 -2
- package/dist-cli/chunks/{chunk-C3GMSIRT.js → chunk-RATCQLQA.js} +2 -2
- package/dist-cli/chunks/{chunk-C3O6UUPY.js → chunk-RHGVZJIY.js} +3 -3
- package/dist-cli/chunks/{chunk-BMIIHY6K.js → chunk-RIT4KI4Y.js} +3 -3
- package/dist-cli/chunks/{chunk-4XMPRQGE.js → chunk-S5U22PVL.js} +1 -1
- package/dist-cli/chunks/{chunk-XBBNRESY.js → chunk-SKGITCWL.js} +1 -1
- package/dist-cli/chunks/{chunk-RX4CFOVV.js → chunk-ULJT3HDO.js} +1 -1
- package/dist-cli/chunks/{chunk-XMOULANJ.js → chunk-VAFDFOE6.js} +2 -2
- package/dist-cli/chunks/{chunk-M2LP2VYQ.js → chunk-VJMY2MX6.js} +2 -2
- package/dist-cli/chunks/{chunk-IS5OOCN5.js → chunk-VNS6KYRJ.js} +1 -1
- package/dist-cli/chunks/{chunk-R7AS52NA.js → chunk-W4S7GGPG.js} +3 -3
- package/dist-cli/chunks/{chunk-YMD6WWI7.js → chunk-WIYIQQQS.js} +2 -2
- package/dist-cli/chunks/{chunk-VAGUPECL.js → chunk-WTNKX7QD.js} +2 -2
- package/dist-cli/chunks/{chunk-STWCCIBA.js → chunk-Y5O5GK2Q.js} +11 -11
- package/dist-cli/chunks/{chunk-YZPSUNTO.js → chunk-Y7RQGSZD.js} +2 -2
- package/dist-cli/chunks/{chunk-XKAXZ4DS.js → chunk-YOIHAHR5.js} +1 -1
- package/dist-cli/chunks/{chunk-ZS7OXPHR.js → chunk-YS7YDOGW.js} +1 -1
- package/dist-cli/chunks/{chunk-CORSX7M5.js → chunk-YTP5VCDL.js} +1 -1
- package/dist-cli/chunks/{chunk-2KSLGBIU.js → chunk-ZB3UAYJ4.js} +2 -2
- package/dist-cli/chunks/{chunk-EPZUFQMX.js → chunk-ZDQO6TJQ.js} +2 -2
- package/dist-cli/chunks/{chunk-C4O4VRN5.js → chunk-ZHPLBK34.js} +2 -2
- package/dist-cli/chunks/{cleanup-2ZM4QSDV.js → cleanup-436GW67Y.js} +2 -2
- package/dist-cli/chunks/{cli-version-WXOEWZDA.js → cli-version-BY3A3SBN.js} +2 -2
- package/dist-cli/chunks/{compat-MGY3FZSI.js → compat-DDJSQ3WI.js} +2 -2
- package/dist-cli/chunks/{config-3W5VNME6.js → config-XFLK4XZN.js} +2 -2
- package/dist-cli/chunks/{control-7LNRM2BK.js → control-W6KUVHYU.js} +2 -2
- package/dist-cli/chunks/daemon-E5MGIR55.js +4 -0
- package/dist-cli/chunks/{debug-4CMFC2CO.js → debug-PHSYXSNH.js} +3 -3
- package/dist-cli/chunks/{desktop-Q6CZSS4R.js → desktop-6V5ALYCZ.js} +3 -3
- package/dist-cli/chunks/{detox-2AF4MXXN.js → detox-SA27XGTO.js} +2 -2
- package/dist-cli/chunks/{device-E2WCI2N2.js → device-XURVFXBT.js} +2 -2
- package/dist-cli/chunks/{diagnose-CZGCKNVY.js → diagnose-HMUQWQOK.js} +2 -2
- package/dist-cli/chunks/disk-cleanup-KYAFCV6S.js +4 -0
- package/dist-cli/chunks/drivers-INII4IWR.js +4 -0
- package/dist-cli/chunks/{film-UDSAJZXL.js → film-3UM6EUYF.js} +3 -3
- package/dist-cli/chunks/flow-RP4UVYUA.js +4 -0
- package/dist-cli/chunks/help-STHBZD6I.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-CHAB56GM.js → hidden-runtime-alias-DVVAGM4I.js} +2 -2
- package/dist-cli/chunks/{home-paths-WFCI5ORX.js → home-paths-LVGGR4AJ.js} +2 -2
- package/dist-cli/chunks/inspect-5W52ZHKD.js +4 -0
- package/dist-cli/chunks/install-desktop-H4HLLT7K.js +4 -0
- package/dist-cli/chunks/{login-57UP2EKB.js → login-2QTBTTGJ.js} +4 -4
- package/dist-cli/chunks/{logout-UYNCJTOC.js → logout-PUBLDHVY.js} +2 -2
- package/dist-cli/chunks/{maestro-QMAPXPZ7.js → maestro-2UJ27MKD.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-N2BJXJDH.js → maestro-generate-P4MDFYMV.js} +3 -3
- package/dist-cli/chunks/{mode-SY5G7WQD.js → mode-RRHPX23W.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-DH3L6FFX.js → optional-demo-registry-5IRF7M7Z.js} +2 -2
- package/dist-cli/chunks/{perf-NZ6VEDLA.js → perf-BOLWOAKV.js} +2 -2
- package/dist-cli/chunks/{permissions-EMH2K5LX.js → permissions-ZIOTIBPV.js} +2 -2
- package/dist-cli/chunks/{record-44PMWGYY.js → record-DU2IKPFK.js} +3 -3
- package/dist-cli/chunks/{report-issue-PLGMRWXG.js → report-issue-4CQDUWT2.js} +2 -2
- package/dist-cli/chunks/runtime-QWPQ3M7H.js +4 -0
- package/dist-cli/chunks/{screenshot-command-GJT5XS7P.js → screenshot-command-XEN26NJV.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-4JSTS5VY.js → screenshot-layers-CRCQ4CEF.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-AQQISSQD.js → screenshots-capture-XGQFYINL.js} +2 -2
- package/dist-cli/chunks/{serve-TJMO4KGX.js → serve-UBSRDYA3.js} +2 -2
- package/dist-cli/chunks/{setup-7ZSYCUX6.js → setup-AKYIOBVO.js} +2 -2
- package/dist-cli/chunks/{skills-GRQPAAD5.js → skills-V5WV4LWH.js} +2 -2
- package/dist-cli/chunks/{storage-GWRZNBAU.js → storage-3PJPIHNM.js} +2 -2
- package/dist-cli/chunks/store-A27JYIGF.js +4 -0
- package/dist-cli/chunks/telemetry-LLD24AVX.js +4 -0
- package/dist-cli/chunks/{timeline-2FXM7HEU.js → timeline-OHQNHG52.js} +2 -2
- package/dist-cli/chunks/{upgrade-AV7UOK2X.js → upgrade-Q2TYYVIX.js} +2 -2
- package/dist-cli/chunks/upload-57FIDO2B.js +4 -0
- package/dist-cli/chunks/{version-C72O2LMS.js → version-SW6VCJVI.js} +2 -2
- package/dist-cli/chunks/{web-4V3YGWNC.js → web-BXVM3HJ3.js} +2 -2
- package/dist-cli/chunks/{what-happened-RGD2DOQI.js → what-happened-H62ASSI5.js} +2 -2
- 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/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +20 -16
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +164 -102
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +43 -23
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +277 -206
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/scripts/dev-server-scanner.ts +34 -8
- package/dist-cli/chunks/chunk-63EKEKDF.js +0 -4
- package/dist-cli/chunks/chunk-OQO3HU4Y.js +0 -5
- package/dist-cli/chunks/daemon-ZNCVHOWJ.js +0 -4
- package/dist-cli/chunks/disk-cleanup-4T6MDZBA.js +0 -4
- package/dist-cli/chunks/drivers-NEB27ZKQ.js +0 -4
- package/dist-cli/chunks/flow-GXXVEHEW.js +0 -4
- package/dist-cli/chunks/help-3RVUJUAN.js +0 -4
- package/dist-cli/chunks/inspect-4H4VNQJ4.js +0 -4
- package/dist-cli/chunks/install-desktop-RGCBPM4J.js +0 -4
- package/dist-cli/chunks/runtime-CUSKTS2J.js +0 -4
- package/dist-cli/chunks/store-MLODFZBM.js +0 -4
- package/dist-cli/chunks/telemetry-XL3UDJSE.js +0 -4
- package/dist-cli/chunks/upload-6DXF4DAQ.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
4
|
var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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/menu.mjs
CHANGED
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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;
|
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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;
|
|
@@ -50,6 +50,7 @@ var import_child_process = require("child_process");
|
|
|
50
50
|
var import_promises2 = require("fs/promises");
|
|
51
51
|
var import_http = __toESM(require("http"), 1);
|
|
52
52
|
var import_net = __toESM(require("net"), 1);
|
|
53
|
+
var import_node_path3 = require("node:path");
|
|
53
54
|
var import_util = require("util");
|
|
54
55
|
|
|
55
56
|
// src/config.ts
|
|
@@ -494,14 +495,14 @@ var TIMEOUT_MS = 250;
|
|
|
494
495
|
var MANIFEST_TIMEOUT_MS = 1500;
|
|
495
496
|
var TCP_GATE_MS = 120;
|
|
496
497
|
function tcpPing(port, timeout = TCP_GATE_MS) {
|
|
497
|
-
return new Promise((
|
|
498
|
+
return new Promise((resolve2) => {
|
|
498
499
|
const sock = new import_net.default.Socket();
|
|
499
500
|
let settled = false;
|
|
500
501
|
const done = (ok) => {
|
|
501
502
|
if (settled) return;
|
|
502
503
|
settled = true;
|
|
503
504
|
sock.destroy();
|
|
504
|
-
|
|
505
|
+
resolve2(ok);
|
|
505
506
|
};
|
|
506
507
|
sock.setTimeout(timeout);
|
|
507
508
|
sock.once("connect", () => done(true));
|
|
@@ -511,7 +512,7 @@ function tcpPing(port, timeout = TCP_GATE_MS) {
|
|
|
511
512
|
});
|
|
512
513
|
}
|
|
513
514
|
function httpGet(port, path, method = "GET", timeout = TIMEOUT_MS, headers = {}) {
|
|
514
|
-
return new Promise((
|
|
515
|
+
return new Promise((resolve2) => {
|
|
515
516
|
const req = import_http.default.request(
|
|
516
517
|
{ hostname: "localhost", port, path, method, timeout, headers },
|
|
517
518
|
(res) => {
|
|
@@ -525,14 +526,14 @@ function httpGet(port, path, method = "GET", timeout = TIMEOUT_MS, headers = {})
|
|
|
525
526
|
})();
|
|
526
527
|
res.on(
|
|
527
528
|
"end",
|
|
528
|
-
() =>
|
|
529
|
+
() => resolve2({ statusCode: res.statusCode || 0, body, contentType })
|
|
529
530
|
);
|
|
530
531
|
}
|
|
531
532
|
);
|
|
532
|
-
req.on("error", () =>
|
|
533
|
+
req.on("error", () => resolve2(null));
|
|
533
534
|
req.setTimeout(timeout, () => {
|
|
534
535
|
req.destroy();
|
|
535
|
-
|
|
536
|
+
resolve2(null);
|
|
536
537
|
});
|
|
537
538
|
req.end();
|
|
538
539
|
});
|
|
@@ -681,20 +682,24 @@ async function resolveProcessCwd(pid) {
|
|
|
681
682
|
}
|
|
682
683
|
return null;
|
|
683
684
|
}
|
|
684
|
-
function makeResult(port, framework) {
|
|
685
|
+
function makeResult(port, framework, owner) {
|
|
685
686
|
return {
|
|
686
687
|
port,
|
|
687
688
|
framework,
|
|
688
689
|
bundleUrl: withRuntimeConfig(
|
|
689
690
|
port,
|
|
690
|
-
`http://localhost:${port}/index.bundle?platform=ios&dev=true&hot=true&minify=false
|
|
691
|
+
`http://localhost:${port}/index.bundle?platform=ios&dev=true&hot=true&minify=false`,
|
|
692
|
+
owner.cwd
|
|
691
693
|
),
|
|
692
694
|
hmrUrl: `ws://localhost:${port}/hot`,
|
|
693
|
-
lastSeen: Date.now()
|
|
695
|
+
lastSeen: Date.now(),
|
|
696
|
+
...owner
|
|
694
697
|
};
|
|
695
698
|
}
|
|
696
|
-
function withRuntimeConfig(port, bundleUrl) {
|
|
697
|
-
const knownApp = optionalDemoAppsSync().find(
|
|
699
|
+
function withRuntimeConfig(port, bundleUrl, projectCwd) {
|
|
700
|
+
const knownApp = projectCwd ? optionalDemoAppsSync().find(
|
|
701
|
+
(app) => app.preferredPort === port && (0, import_node_path3.resolve)(app.dir) === (0, import_node_path3.resolve)(projectCwd)
|
|
702
|
+
) : void 0;
|
|
698
703
|
const configured = knownApp?.runtimeConfig ? applySootSimConfigToUrl(bundleUrl, knownApp.runtimeConfig) : bundleUrl;
|
|
699
704
|
return normalizeNativeDevBundleUrl(configured);
|
|
700
705
|
}
|
|
@@ -719,7 +724,7 @@ function applyManifest(result, manifestRes, buildIconProxyUrl) {
|
|
|
719
724
|
if (result.framework === "metro" && client.sdkVersion) result.framework = "expo";
|
|
720
725
|
const launchUrl = manifest?.launchAsset?.url;
|
|
721
726
|
if (launchUrl && !result.patched && !isDirectOneBundleUrl(result.bundleUrl)) {
|
|
722
|
-
result.bundleUrl = withRuntimeConfig(result.port, launchUrl);
|
|
727
|
+
result.bundleUrl = withRuntimeConfig(result.port, launchUrl, result.cwd);
|
|
723
728
|
}
|
|
724
729
|
const rawIconUrl = client.iconUrl || client.ios?.iconUrl || client.icon || client.ios?.icon;
|
|
725
730
|
if (rawIconUrl) {
|
|
@@ -790,9 +795,16 @@ async function fetchManifestEnrichment(port, buildIconProxyUrl) {
|
|
|
790
795
|
var knownNonPatched = /* @__PURE__ */ new Set();
|
|
791
796
|
var knownNonExpo = /* @__PURE__ */ new Set();
|
|
792
797
|
var knownOne = /* @__PURE__ */ new Set();
|
|
793
|
-
async function probePort(port, buildIconProxyUrl) {
|
|
798
|
+
async function probePort(port, buildIconProxyUrl, listeningProcess) {
|
|
794
799
|
await loadOptionalDemoApps();
|
|
795
800
|
if (!await tcpPing(port)) return null;
|
|
801
|
+
const suppliedPid = listeningProcess?.pid;
|
|
802
|
+
const ownerPid = suppliedPid && suppliedPid > 0 ? suppliedPid : await resolveListeningPid(port);
|
|
803
|
+
const ownerCwd = ownerPid ? await resolveProcessCwd(ownerPid) : null;
|
|
804
|
+
const owner = {
|
|
805
|
+
...ownerPid ? { pid: ownerPid } : {},
|
|
806
|
+
...ownerCwd ? { cwd: ownerCwd } : {}
|
|
807
|
+
};
|
|
796
808
|
const onePath = `/node_modules/one/metro-entry.bundle?platform=ios&dev=true`;
|
|
797
809
|
const [sootsimRes, statusRes, manifestRes, expoRes] = await Promise.all([
|
|
798
810
|
knownNonPatched.has(port) ? Promise.resolve(null) : httpGet(port, "/__soot/"),
|
|
@@ -818,9 +830,10 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
818
830
|
{
|
|
819
831
|
port,
|
|
820
832
|
framework,
|
|
821
|
-
bundleUrl: withRuntimeConfig(port, launchUrl),
|
|
833
|
+
bundleUrl: withRuntimeConfig(port, launchUrl, owner.cwd),
|
|
822
834
|
hmrUrl: `ws://localhost:${port}/hot`,
|
|
823
|
-
lastSeen: Date.now()
|
|
835
|
+
lastSeen: Date.now(),
|
|
836
|
+
...owner
|
|
824
837
|
},
|
|
825
838
|
manifestRes,
|
|
826
839
|
buildIconProxyUrl
|
|
@@ -830,7 +843,7 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
830
843
|
knownNonPatched.add(port);
|
|
831
844
|
return enrichWithManifest(
|
|
832
845
|
applyManifest(
|
|
833
|
-
makeResult(port, expoRes && expoRes.statusCode === 200 ? "expo" : "metro"),
|
|
846
|
+
makeResult(port, expoRes && expoRes.statusCode === 200 ? "expo" : "metro", owner),
|
|
834
847
|
manifestRes,
|
|
835
848
|
buildIconProxyUrl
|
|
836
849
|
),
|
|
@@ -844,10 +857,15 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
844
857
|
{
|
|
845
858
|
port,
|
|
846
859
|
framework: "one",
|
|
847
|
-
bundleUrl: withRuntimeConfig(
|
|
860
|
+
bundleUrl: withRuntimeConfig(
|
|
861
|
+
port,
|
|
862
|
+
`http://localhost:${port}/__soot/bundle.js`,
|
|
863
|
+
owner.cwd
|
|
864
|
+
),
|
|
848
865
|
hmrUrl: `ws://localhost:${port}/hot`,
|
|
849
866
|
lastSeen: Date.now(),
|
|
850
|
-
patched: true
|
|
867
|
+
patched: true,
|
|
868
|
+
...owner
|
|
851
869
|
},
|
|
852
870
|
manifestRes,
|
|
853
871
|
buildIconProxyUrl
|
|
@@ -870,10 +888,12 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
870
888
|
framework: "one",
|
|
871
889
|
bundleUrl: withRuntimeConfig(
|
|
872
890
|
port,
|
|
873
|
-
`http://localhost:${port}${onePath}&minify=false
|
|
891
|
+
`http://localhost:${port}${onePath}&minify=false`,
|
|
892
|
+
owner.cwd
|
|
874
893
|
),
|
|
875
894
|
hmrUrl: `ws://localhost:${port}/hot`,
|
|
876
|
-
lastSeen: Date.now()
|
|
895
|
+
lastSeen: Date.now(),
|
|
896
|
+
...owner
|
|
877
897
|
},
|
|
878
898
|
manifestRes,
|
|
879
899
|
buildIconProxyUrl
|
|
@@ -900,7 +920,7 @@ function isWeakCachedResult(result) {
|
|
|
900
920
|
}
|
|
901
921
|
function hasCurrentRuntimeConfig(result) {
|
|
902
922
|
if (!result) return true;
|
|
903
|
-
return withRuntimeConfig(result.port, result.bundleUrl) === result.bundleUrl;
|
|
923
|
+
return withRuntimeConfig(result.port, result.bundleUrl, result.cwd) === result.bundleUrl;
|
|
904
924
|
}
|
|
905
925
|
function __shouldReuseScannerCacheEntry(entry, pid, now = Date.now()) {
|
|
906
926
|
if (pid === 0) return false;
|
|
@@ -968,7 +988,7 @@ async function scanDevServers(opts = {}) {
|
|
|
968
988
|
}
|
|
969
989
|
if (toProbe.length > 0) {
|
|
970
990
|
const probed = await Promise.all(
|
|
971
|
-
toProbe.map((p) => probePort(p.port, opts.buildIconProxyUrl))
|
|
991
|
+
toProbe.map((p) => probePort(p.port, opts.buildIconProxyUrl, p))
|
|
972
992
|
);
|
|
973
993
|
probed.forEach((result, i) => {
|
|
974
994
|
const { port, pid } = toProbe[i];
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.311 | (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/sdk.mjs
CHANGED