sootsim 0.1.80 → 0.1.82
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 +3 -3
- package/dist-cli/chunks/{agent-BOFSQL4D.js → agent-3C6Z6YXA.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-VHXDLJ5Q.js → agent-wrapper-7Z4UFACX.js} +2 -2
- package/dist-cli/chunks/{assert-HKFZZDIH.js → assert-XYBIZRDK.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-D2EQVL7R.js +2 -0
- package/dist-cli/chunks/beta-VHPXECZY.js +2 -0
- package/dist-cli/chunks/{chunk-W4RVWX6M.js → chunk-27HBWBE6.js} +2 -2
- package/dist-cli/chunks/{chunk-NDDO5LJQ.js → chunk-2EFQQWEC.js} +2 -2
- package/dist-cli/chunks/{chunk-BOBWMEVH.js → chunk-2JQIKL3B.js} +2 -2
- package/dist-cli/chunks/{chunk-RZEIW2HF.js → chunk-2W5C5J4O.js} +2 -2
- package/dist-cli/chunks/{chunk-TUEWX5ZK.js → chunk-2XULSYS6.js} +2 -2
- package/dist-cli/chunks/chunk-3OH4VCJA.js +1 -0
- package/dist-cli/chunks/chunk-45HLFQRI.js +2 -0
- package/dist-cli/chunks/{chunk-RLBHHZ7Q.js → chunk-4QUAOBUB.js} +2 -2
- package/dist-cli/chunks/{chunk-43YUWV4Y.js → chunk-7SCQEPXK.js} +1 -1
- package/dist-cli/chunks/chunk-7YLCK5HG.js +5 -0
- package/dist-cli/chunks/{chunk-ZBG7W6NB.js → chunk-BISEHRNE.js} +2 -2
- package/dist-cli/chunks/{chunk-LL37YEM2.js → chunk-BRDUKIZI.js} +1 -1
- package/dist-cli/chunks/{chunk-P3XP5CAJ.js → chunk-BVXP2GDN.js} +3 -3
- package/dist-cli/chunks/{chunk-QG62KMJO.js → chunk-C7JOLDDQ.js} +2 -2
- package/dist-cli/chunks/{chunk-J5TKJD6U.js → chunk-D3SM2JYB.js} +2 -2
- package/dist-cli/chunks/{chunk-VQ5DPLLF.js → chunk-DCFGNIJC.js} +2 -2
- package/dist-cli/chunks/{chunk-QWWS5HES.js → chunk-DSYW2NOW.js} +2 -2
- package/dist-cli/chunks/{chunk-PA6LEZXS.js → chunk-EJGEDUOC.js} +3 -3
- package/dist-cli/chunks/{chunk-LRHF2NHY.js → chunk-EX6IOT23.js} +1 -1
- package/dist-cli/chunks/chunk-GADW2Q5S.js +1 -0
- package/dist-cli/chunks/{chunk-FSBYGM4J.js → chunk-GI5MF6LP.js} +1 -1
- package/dist-cli/chunks/{chunk-KT3MW6TT.js → chunk-H6NBDJIO.js} +1 -1
- package/dist-cli/chunks/chunk-HST43CVE.js +2 -0
- package/dist-cli/chunks/{chunk-LA4X55X7.js → chunk-IZ2OO47Y.js} +2 -2
- package/dist-cli/chunks/{chunk-FFLG37RS.js → chunk-JUCV3VHM.js} +2 -2
- package/dist-cli/chunks/{chunk-WQR3COSG.js → chunk-JUDJXJSE.js} +1 -1
- package/dist-cli/chunks/{chunk-ZF2YAFTR.js → chunk-JVNGH5S7.js} +1 -1
- package/dist-cli/chunks/{chunk-5JQLSFSU.js → chunk-M3OULYY3.js} +2 -2
- package/dist-cli/chunks/{chunk-F6I3D46Z.js → chunk-M4ERVRM4.js} +2 -2
- package/dist-cli/chunks/{chunk-ZVNHBVPN.js → chunk-MQXYJTXM.js} +53 -15
- package/dist-cli/chunks/{chunk-ZPHWYFVX.js → chunk-O3AOQP3V.js} +2 -2
- package/dist-cli/chunks/{chunk-VGPVE4F4.js → chunk-PO64TMRT.js} +2 -2
- package/dist-cli/chunks/{chunk-IX4IMVA5.js → chunk-PYDAVGCZ.js} +1 -1
- package/dist-cli/chunks/{chunk-VPUMU5AW.js → chunk-Q4JNA5VO.js} +1 -1
- package/dist-cli/chunks/{chunk-45ZDPOFK.js → chunk-QJBQOGTK.js} +2 -2
- package/dist-cli/chunks/{chunk-6NFFFBRU.js → chunk-QPDWMYCA.js} +1 -1
- package/dist-cli/chunks/{chunk-ODVLFSC5.js → chunk-QTJJHBCI.js} +1 -1
- package/dist-cli/chunks/{chunk-HVRM6FSJ.js → chunk-TR7NIFSL.js} +1 -1
- package/dist-cli/chunks/{chunk-AVR2E37B.js → chunk-U3XCDQRH.js} +3 -3
- package/dist-cli/chunks/{chunk-WQ3BYT6L.js → chunk-UOWBKSSI.js} +1 -1
- package/dist-cli/chunks/chunk-V26REV7G.js +1 -0
- package/dist-cli/chunks/{chunk-5GNIETQW.js → chunk-WZLKUS54.js} +1 -1
- package/dist-cli/chunks/{chunk-YEPCS7AI.js → chunk-Z6G5SDG7.js} +2 -2
- package/dist-cli/chunks/{chunk-PO2MKTNM.js → chunk-ZN2C7V5R.js} +2 -2
- package/dist-cli/chunks/cli-version-WF7T6IKI.js +2 -0
- package/dist-cli/chunks/{compat-IFZNDTXD.js → compat-2DVSCCR7.js} +3 -3
- package/dist-cli/chunks/{config-5EC44WU2.js → config-YDX4Q4XM.js} +2 -2
- package/dist-cli/chunks/{control-MUARF7SZ.js → control-EAK2OPGB.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-6NAXD4XK.js → cpu-profile-GU62WVZZ.js} +2 -2
- package/dist-cli/chunks/daemon-V5NLDTSB.js +66 -0
- package/dist-cli/chunks/{debug-275YCTYT.js → debug-HAOCONNB.js} +3 -3
- package/dist-cli/chunks/demo-app-registry-52A2MI72.js +2 -0
- package/dist-cli/chunks/{detox-NJK62KDQ.js → detox-YLC4DLXB.js} +2 -2
- package/dist-cli/chunks/{device-WORHBYNF.js → device-ZQ4DN4H6.js} +2 -2
- package/dist-cli/chunks/{diagnose-2T5UCUZB.js → diagnose-HNUO3Z5F.js} +2 -2
- package/dist-cli/chunks/drivers-B4QPIZ4B.js +2 -0
- package/dist-cli/chunks/{electron-ZUZXGYBI.js → electron-ZAASAHSW.js} +3 -3
- package/dist-cli/chunks/flow-PFLHFNVM.js +2 -0
- package/dist-cli/chunks/{hints-WLSIX5QI.js → hints-BA3GE5W5.js} +2 -2
- package/dist-cli/chunks/{home-paths-FHPG7JDF.js → home-paths-MQXRHBTW.js} +2 -2
- package/dist-cli/chunks/{inspect-PB4D35DX.js → inspect-T4RMS5KX.js} +3 -3
- package/dist-cli/chunks/install-ZCPEMK6U.js +2 -0
- package/dist-cli/chunks/install-desktop-MH26VONS.js +23 -0
- package/dist-cli/chunks/{keys-A4LALALU.js → keys-IELIDRGB.js} +2 -2
- package/dist-cli/chunks/{launch-RBMKIP3M.js → launch-VMT3OWOB.js} +3 -3
- package/dist-cli/chunks/login-VZBANVLU.js +26 -0
- package/dist-cli/chunks/{logout-XGXHAQU3.js → logout-GWXBTQ4H.js} +2 -2
- package/dist-cli/chunks/{maestro-633VVDZT.js → maestro-JYHR4HFR.js} +2 -2
- package/dist-cli/chunks/{preview-VGFVGFZB.js → preview-RPZ4UQ2B.js} +2 -2
- package/dist-cli/chunks/{profile-LDX6EHIH.js → profile-7FLDF2AP.js} +2 -2
- package/dist-cli/chunks/{react-6LDRB5SE.js → react-3RC4CNDZ.js} +2 -2
- package/dist-cli/chunks/{record-OHYVAFRN.js → record-CZ33G5FT.js} +2 -2
- package/dist-cli/chunks/runtime-AZKHZHJ4.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-YCPQH2CF.js → runtime-delivery-Z7I2KIRB.js} +2 -2
- package/dist-cli/chunks/{screenshot-LPRVBOKU.js → screenshot-GRCZ6AM4.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-DQLYQ4J3.js → screenshot-mode-E4YHXHH5.js} +2 -2
- package/dist-cli/chunks/{screenshots-Y62YKRVC.js → screenshots-7SXMX2AY.js} +2 -2
- package/dist-cli/chunks/{server-GSCDPJD6.js → server-GDJ2TCRV.js} +2 -2
- package/dist-cli/chunks/setup-repo-3Y2QAZRK.js +2 -0
- package/dist-cli/chunks/{skills-5KO7XVQ7.js → skills-62E7NDRC.js} +2 -2
- package/dist-cli/chunks/{start-MJ6AP5WQ.js → start-Y7KR5ZQ3.js} +4 -4
- package/dist-cli/chunks/store-TDTFZMGA.js +2 -0
- package/dist-cli/chunks/telemetry-G3NIU5NP.js +2 -0
- package/dist-cli/chunks/{test-SWPGWLJQ.js → test-IYMSUPVC.js} +3 -3
- package/dist-cli/chunks/{three-mode-JCSQ72ZH.js → three-mode-QKKXCCC2.js} +2 -2
- package/dist-cli/chunks/{timeline-NTPONVEH.js → timeline-PF6NQ7RT.js} +2 -2
- package/dist-cli/chunks/{upgrade-Y2NECITB.js → upgrade-CE2Y3TAN.js} +2 -2
- package/dist-cli/chunks/upload-CLWFS7IL.js +2 -0
- package/dist-cli/chunks/{web-4DWNKFME.js → web-XEO3ZCPF.js} +2 -2
- package/dist-cli/chunks/{what-happened-OVPXK3D5.js → what-happened-372J7YF7.js} +2 -2
- package/dist-cli/chunks/{whoami-HWUWOOYW.js → whoami-B4E7KCT5.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.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/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +21 -21
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/index.cjs +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/vite-base.cjs +21 -21
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/auto-bootstrap-IV33JYV7.js +0 -2
- package/dist-cli/chunks/beta-WERQ42O6.js +0 -2
- package/dist-cli/chunks/chunk-3FRJ3IQT.js +0 -2
- package/dist-cli/chunks/chunk-DMU4XTZG.js +0 -5
- package/dist-cli/chunks/chunk-JQA5KAIE.js +0 -1
- package/dist-cli/chunks/chunk-MSIBILXN.js +0 -1
- package/dist-cli/chunks/chunk-QH2JVOUE.js +0 -2
- package/dist-cli/chunks/chunk-SYNYE5TO.js +0 -1
- package/dist-cli/chunks/cli-version-OV3H4YQZ.js +0 -2
- package/dist-cli/chunks/daemon-NPVAZ2UV.js +0 -65
- package/dist-cli/chunks/demo-app-registry-2QV7XFDS.js +0 -2
- package/dist-cli/chunks/drivers-OIPHMFKJ.js +0 -2
- package/dist-cli/chunks/flow-ADDBJR62.js +0 -2
- package/dist-cli/chunks/install-BUIMX6TK.js +0 -2
- package/dist-cli/chunks/install-desktop-WK5A6OAT.js +0 -23
- package/dist-cli/chunks/login-IXRXVIFH.js +0 -26
- package/dist-cli/chunks/runtime-AH2JVKAE.js +0 -2
- package/dist-cli/chunks/setup-repo-MOIVUVU5.js +0 -2
- package/dist-cli/chunks/store-VVMMNYXU.js +0 -2
- package/dist-cli/chunks/telemetry-5OQHMDJ6.js +0 -2
- package/dist-cli/chunks/upload-QDOU2W3V.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{A as y,L as x,y as F,z as T}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.82 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as y,L as x,y as F,z as T}from"./chunk-TR7NIFSL.js";import{c as S,e as N}from"./chunk-O3AOQP3V.js";import{b as k}from"./chunk-UOWBKSSI.js";import"./chunk-45HLFQRI.js";import"./chunk-PYDAVGCZ.js";import"./chunk-WZLKUS54.js";function _(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--since"&&t+1<n.length){e.push(t,t+1);let s=n[t+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let a=Number(l[1]),m=l[2]??"ms",$=m==="s"?a*1e3:m==="m"?a*6e4:a;return{since:Date.now()-$,consumed:e}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:e}}return{consumed:e}}function K(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--kinds"&&t+1<n.length)return e.push(t,t+1),{kinds:n[t+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:e};return{consumed:e}}function O(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--limit"&&t+1<n.length){e.push(t,t+1);let s=Number(n[t+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:e}}return{consumed:e}}function j(n,e){if(e===null)return new Date(n).toLocaleTimeString();let t=(n-e)/1e3;return`${t>=0?"+":""}${t.toFixed(2)}s`}function B(n,e){switch(n){case"app-launch":return e.phase==="launch"?`launch ${e.appName??e.toAppId??""}`:`dismiss ${e.appName??e.fromAppId??""} \u2192 ${e.toAppId??""}`;case"toast":return`"${e.text??""}"${e.durationMs?` (${e.durationMs}ms)`:""}`;case"keyboard":return`${e.phase??"?"}${e.heightPx?` h=${e.heightPx}`:""}${e.mode?` ${e.mode}`:""}`;case"screen":return`${e.phase??"?"} ${e.name??e.activeName??""}`;case"route":return`${e.phase??"?"} ${e.path??e.pathname??""}`;case"alert":case"actionsheet":case"picker":return`${e.phase??"?"} ${e.title??e.message??""}`;case"notification":return`${e.title??""}${e.body?` \u2014 ${e.body}`:""}`;case"fetch":return`${e.method??"GET"} ${e.url??""}${e.status?` -> ${e.status}`:""}`;case"console":return`${e.level??"log"}: ${(e.message??"").toString().slice(0,120)}`;case"shell":return`${e.event??e.type??e.phase??""}`;case"scroll":return`${e.phase??"?"} ${e.target??""}`;case"gesture":return`${e.phase??"?"} ${e.type??""}`;case"text-input":return`${e.phase??"?"}${e.value!==void 0?` "${String(e.value).slice(0,40)}"`:""}`;case"layout":return`${e.kind??"?"} ${e.testID??e.type??""}${e.skipped?` skipped:${e.reason??"unknown"}`:""}`;case"react-commit":{let t=e.slowest;return`${e.fiberCount??"?"} fibers ${e.durationMs??"?"}ms${t?.displayName?` \xB7 ${t.displayName} ${t.durationMs??"?"}ms`:""}`}case"reanimated":case"animation":return`${e.kind??""} ${e.target??""}${e.durationMs?` ${e.durationMs}ms`:""}`}}function A(n,e){let t=j(n.t,e).padStart(8),s=n.context.padEnd(6),l=`[${n.kind}]`.padEnd(15),o="",a=n.data;return a&&typeof a=="object"&&(o=B(n.kind,a)),` ${t} ${s} ${l} ${o}`}function M(n){let e=[],t={label:"initial state",events:[],startedAt:n[0]?.t??null};e.push(t);for(let s of n)if(t.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let a=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;e.length===1&&t.events.length===1?t.label=`${s.kind}: ${a}`:(t={label:`${s.kind}: ${a}`,events:[],startedAt:s.t},e.push(t))}}return e}async function J(n,e){let t=S(n,{port:e.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim what-happened \u2014 show recent events from the semantic timeline
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{d as i}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.82 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as i}from"./chunk-Z6G5SDG7.js";import{d as n}from"./chunk-2JQIKL3B.js";import"./chunk-PYDAVGCZ.js";import"./chunk-WZLKUS54.js";async function u(){let o=i();if(o||(console.log(" not signed in"),console.log(" set SOOTSIM_API_KEY=sk_sootsim_\u2026 or run `sootsim login`"),process.exit(1)),o.kind==="api-key"){let r=`${o.secret.slice(0,14)}\u2026`,t=o.source==="env"?"SOOTSIM_API_KEY env var":"saved key (~/.config/sootsim/credentials.json)";console.log(` api key ${r}`),console.log(` source: ${t}`);return}if(o.kind==="github"){console.log(` github token (${o.source})`),console.log(` repo: ${o.repoId}`);return}let e=await n(),s=e?.user;console.log(` ${s?.email||s?.name||s?.id||"signed in"}`),console.log(` origin: ${e?.origin??o.origin}`),e?.updatedAt&&console.log(` updated: ${e.updatedAt}`)}export{u as runWhoami};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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.82 | (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.82 | (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.82 | (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.82 | (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.82 | (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.82 | (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.82 | (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/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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.82 | (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
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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.82 | (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;
|
|
@@ -1079,10 +1079,9 @@ var knownOne = /* @__PURE__ */ new Set();
|
|
|
1079
1079
|
async function probePort(port, buildIconProxyUrl) {
|
|
1080
1080
|
if (!await tcpPing(port)) return null;
|
|
1081
1081
|
const onePath = `/node_modules/one/metro-entry.bundle?platform=ios&dev=true`;
|
|
1082
|
-
const [sootsimRes, statusRes,
|
|
1082
|
+
const [sootsimRes, statusRes, manifestRes, expoRes] = await Promise.all([
|
|
1083
1083
|
knownNonPatched.has(port) ? Promise.resolve(null) : httpGet(port, "/__soot/"),
|
|
1084
1084
|
httpGet(port, "/status"),
|
|
1085
|
-
httpGet(port, onePath, "HEAD"),
|
|
1086
1085
|
knownOne.has(port) ? Promise.resolve(null) : httpGet(port, "/", "GET", MANIFEST_TIMEOUT_MS, { "expo-platform": "ios" }),
|
|
1087
1086
|
knownNonExpo.has(port) ? Promise.resolve(null) : httpGet(port, "/_expo/status")
|
|
1088
1087
|
]);
|
|
@@ -1112,24 +1111,6 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
1112
1111
|
buildIconProxyUrl
|
|
1113
1112
|
);
|
|
1114
1113
|
}
|
|
1115
|
-
if (oneRes && oneRes.statusCode > 0 && oneRes.statusCode < 400 && /application\/javascript/i.test(oneRes.contentType || "")) {
|
|
1116
|
-
knownNonPatched.add(port);
|
|
1117
|
-
knownOne.add(port);
|
|
1118
|
-
return applyManifest(
|
|
1119
|
-
{
|
|
1120
|
-
port,
|
|
1121
|
-
framework: "one",
|
|
1122
|
-
bundleUrl: withRuntimeConfig(
|
|
1123
|
-
port,
|
|
1124
|
-
`http://localhost:${port}${onePath}&minify=false`
|
|
1125
|
-
),
|
|
1126
|
-
hmrUrl: `ws://localhost:${port}/hot`,
|
|
1127
|
-
lastSeen: Date.now()
|
|
1128
|
-
},
|
|
1129
|
-
manifestRes,
|
|
1130
|
-
buildIconProxyUrl
|
|
1131
|
-
);
|
|
1132
|
-
}
|
|
1133
1114
|
if (statusRes && statusRes.body.includes("packager-status:running")) {
|
|
1134
1115
|
knownNonPatched.add(port);
|
|
1135
1116
|
return applyManifest(
|
|
@@ -1153,6 +1134,25 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
1153
1134
|
buildIconProxyUrl
|
|
1154
1135
|
);
|
|
1155
1136
|
}
|
|
1137
|
+
const oneRes = await httpGet(port, onePath, "HEAD");
|
|
1138
|
+
if (oneRes && oneRes.statusCode > 0 && oneRes.statusCode < 400 && /application\/javascript/i.test(oneRes.contentType || "")) {
|
|
1139
|
+
knownNonPatched.add(port);
|
|
1140
|
+
knownOne.add(port);
|
|
1141
|
+
return applyManifest(
|
|
1142
|
+
{
|
|
1143
|
+
port,
|
|
1144
|
+
framework: "one",
|
|
1145
|
+
bundleUrl: withRuntimeConfig(
|
|
1146
|
+
port,
|
|
1147
|
+
`http://localhost:${port}${onePath}&minify=false`
|
|
1148
|
+
),
|
|
1149
|
+
hmrUrl: `ws://localhost:${port}/hot`,
|
|
1150
|
+
lastSeen: Date.now()
|
|
1151
|
+
},
|
|
1152
|
+
manifestRes,
|
|
1153
|
+
buildIconProxyUrl
|
|
1154
|
+
);
|
|
1155
|
+
}
|
|
1156
1156
|
knownNonPatched.add(port);
|
|
1157
1157
|
return null;
|
|
1158
1158
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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.82 | (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.82 | (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/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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.82 | (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.82 | (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/vite-base.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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;
|
|
@@ -1073,10 +1073,9 @@ function applyManifest(result, manifestRes, buildIconProxyUrl) {
|
|
|
1073
1073
|
async function probePort(port, buildIconProxyUrl) {
|
|
1074
1074
|
if (!await tcpPing(port)) return null;
|
|
1075
1075
|
const onePath = `/node_modules/one/metro-entry.bundle?platform=ios&dev=true`;
|
|
1076
|
-
const [sootsimRes, statusRes,
|
|
1076
|
+
const [sootsimRes, statusRes, manifestRes, expoRes] = await Promise.all([
|
|
1077
1077
|
knownNonPatched.has(port) ? Promise.resolve(null) : httpGet(port, "/__soot/"),
|
|
1078
1078
|
httpGet(port, "/status"),
|
|
1079
|
-
httpGet(port, onePath, "HEAD"),
|
|
1080
1079
|
knownOne.has(port) ? Promise.resolve(null) : httpGet(port, "/", "GET", MANIFEST_TIMEOUT_MS, { "expo-platform": "ios" }),
|
|
1081
1080
|
knownNonExpo.has(port) ? Promise.resolve(null) : httpGet(port, "/_expo/status")
|
|
1082
1081
|
]);
|
|
@@ -1106,24 +1105,6 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
1106
1105
|
buildIconProxyUrl
|
|
1107
1106
|
);
|
|
1108
1107
|
}
|
|
1109
|
-
if (oneRes && oneRes.statusCode > 0 && oneRes.statusCode < 400 && /application\/javascript/i.test(oneRes.contentType || "")) {
|
|
1110
|
-
knownNonPatched.add(port);
|
|
1111
|
-
knownOne.add(port);
|
|
1112
|
-
return applyManifest(
|
|
1113
|
-
{
|
|
1114
|
-
port,
|
|
1115
|
-
framework: "one",
|
|
1116
|
-
bundleUrl: withRuntimeConfig(
|
|
1117
|
-
port,
|
|
1118
|
-
`http://localhost:${port}${onePath}&minify=false`
|
|
1119
|
-
),
|
|
1120
|
-
hmrUrl: `ws://localhost:${port}/hot`,
|
|
1121
|
-
lastSeen: Date.now()
|
|
1122
|
-
},
|
|
1123
|
-
manifestRes,
|
|
1124
|
-
buildIconProxyUrl
|
|
1125
|
-
);
|
|
1126
|
-
}
|
|
1127
1108
|
if (statusRes && statusRes.body.includes("packager-status:running")) {
|
|
1128
1109
|
knownNonPatched.add(port);
|
|
1129
1110
|
return applyManifest(
|
|
@@ -1147,6 +1128,25 @@ async function probePort(port, buildIconProxyUrl) {
|
|
|
1147
1128
|
buildIconProxyUrl
|
|
1148
1129
|
);
|
|
1149
1130
|
}
|
|
1131
|
+
const oneRes = await httpGet(port, onePath, "HEAD");
|
|
1132
|
+
if (oneRes && oneRes.statusCode > 0 && oneRes.statusCode < 400 && /application\/javascript/i.test(oneRes.contentType || "")) {
|
|
1133
|
+
knownNonPatched.add(port);
|
|
1134
|
+
knownOne.add(port);
|
|
1135
|
+
return applyManifest(
|
|
1136
|
+
{
|
|
1137
|
+
port,
|
|
1138
|
+
framework: "one",
|
|
1139
|
+
bundleUrl: withRuntimeConfig(
|
|
1140
|
+
port,
|
|
1141
|
+
`http://localhost:${port}${onePath}&minify=false`
|
|
1142
|
+
),
|
|
1143
|
+
hmrUrl: `ws://localhost:${port}/hot`,
|
|
1144
|
+
lastSeen: Date.now()
|
|
1145
|
+
},
|
|
1146
|
+
manifestRes,
|
|
1147
|
+
buildIconProxyUrl
|
|
1148
|
+
);
|
|
1149
|
+
}
|
|
1150
1150
|
knownNonPatched.add(port);
|
|
1151
1151
|
return null;
|
|
1152
1152
|
}
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.82 | (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/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-PA6LEZXS.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as R}from"./chunk-RZEIW2HF.js";var C="sootsimConfig";function m(e){return!!e&&Object.keys(e).length>0}function U(e){return e?m(e.modules)||m(e.turboModules)||m(e.nativeModules)||m(e.env)||m(e.settings)||m(e.initialState):!1}function x(e,r){let t=new URL(e);return U(r)?t.searchParams.set(C,JSON.stringify(r)):t.searchParams.delete(C),t.toString()}import{exec as E}from"child_process";import A from"http";import N from"net";import{promisify as L}from"util";var ee="/index.bundle?platform=ios&dev=true&hot=true&minify=false";function _(e){return/^https?:\/\//i.test(e)}function D(e){return e.endsWith(".bundle")}function T(e){process.env.SOOTSIM_PREVIEW_PROD_BUNDLE&&(e.searchParams.set("dev","false"),e.searchParams.set("minify","true"),e.searchParams.has("hot")&&e.searchParams.set("hot","false"))}function k(e){try{let r=_(e),t=new URL(e,"http://soot.local");return t.pathname=t.pathname.replace(/\.\.bundle$/,".bundle"),D(t.pathname)?(t.searchParams.delete("transform.bytecode"),T(t),r?t.toString():`${t.pathname}${t.search}${t.hash}`):e}catch{return e}}var v=L(E),$=250,O=1500,I=120;function B(e,r=I){return new Promise(t=>{let o=new N.Socket,s=!1,i=u=>{s||(s=!0,o.destroy(),t(u))};o.setTimeout(r),o.once("connect",()=>i(!0)),o.once("timeout",()=>i(!1)),o.once("error",()=>i(!1)),o.connect(e,"localhost")})}function h(e,r,t="GET",o=$,s={}){return new Promise(i=>{let u=A.request({hostname:"localhost",port:e,path:r,method:t,timeout:o,headers:s},n=>{let a="";n.on("data",l=>a+=l.toString());let c=(()=>{let l=n.headers["content-type"];if(typeof l=="string")return l;if(Array.isArray(l))return l[0]})();n.on("end",()=>i({statusCode:n.statusCode||0,body:a,contentType:c}))});u.on("error",()=>i(null)),u.setTimeout(o,()=>{u.destroy(),i(null)}),u.end()})}var H=[8081,8082,8083,8084,8085,8086,3e3,3001,19e3].map(e=>({port:e,pid:0}));function P(e,r){return!(e<=0||e>=2e4||r.has(e)||e>=5170&&e<=5200)}async function j(e=[]){let r=new Set(e);try{let{stdout:t}=await v("lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null | grep -E '^(node|bun)'",{encoding:"utf8",timeout:2e3});if(t.trim()){let o=new Map;for(let s of t.trim().split(`
|
|
3
|
-
`)){let i=s.trim().split(/\s+/);if(i.length<9)continue;let u=Number(i[1]),a=i[8].match(/:(\d+)$/);if(!a)continue;let c=Number(a[1]);P(c,r)&&(o.has(c)||o.set(c,u))}if(o.size>0)return[...o.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}try{let{stdout:t}=await v(`ss -tlnp 2>/dev/null | grep -E '"(node|bun)"'`,{encoding:"utf8",timeout:2e3});if(t.trim()){let o=new Map;for(let s of t.trim().split(`
|
|
4
|
-
`)){let i=s.match(/:(\d+)\s/),u=s.match(/pid=(\d+)/);if(!i)continue;let n=Number(i[1]),a=u?Number(u[1]):0;P(n,r)&&(o.has(n)||o.set(n,a))}if(o.size>0)return[...o.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}return H.filter(t=>P(t.port,r))}var y=new Map;async function W(e){if(e<=0)return null;let r=y.get(e);if(r)return r;try{let{stdout:t}=await v(`lsof -p ${e} -a -d cwd -Fn 2>/dev/null`,{encoding:"utf8",timeout:1500});for(let o of t.split(`
|
|
5
|
-
`))if(o.startsWith("n")&&o.length>1){let s=o.slice(1).trim();if(s)return y.set(e,s),s}}catch{}return null}function F(e,r){return{port:e,framework:r,bundleUrl:p(e,`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()}}function p(e,r){let t=R.find(s=>s.preferredPort===e),o=t?.runtimeConfig?x(r,t.runtimeConfig):r;return k(o)}function G(e){return e.includes("/node_modules/one/metro-entry.bundle")}function z(e){try{let r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}}function b(e,r,t){if(!r)return e;try{let o=JSON.parse(r.body),s=o?.extra?.expoClient||o?.extra||{};s.name&&(e.projectName=s.name),s.ios?.bundleIdentifier&&(e.bundleId=s.ios.bundleIdentifier),e.framework==="metro"&&s.sdkVersion&&(e.framework="expo");let i=o?.launchAsset?.url;i&&!e.patched&&!G(e.bundleUrl)&&(e.bundleUrl=p(e.port,i));let u=s.iconUrl||s.ios?.iconUrl||s.icon||s.ios?.icon;if(u)if(e.iconPath=u,t)if(u.startsWith("http"))e.iconUrl=t(u);else{let n=u.replace(/^\.\//,"");e.iconUrl=t(`http://localhost:${e.port}/assets/${n}`)}else e.iconUrl=u.startsWith("http")?u:`http://localhost:${e.port}/assets/${u.replace(/^\.\//,"")}`}catch{}return e}var d=new Set,f=new Set,S=new Set;async function J(e,r){if(!await B(e))return null;let t="/node_modules/one/metro-entry.bundle?platform=ios&dev=true",[o,s,i,u,n]=await Promise.all([d.has(e)?Promise.resolve(null):h(e,"/__soot/"),h(e,"/status"),h(e,t,"HEAD"),S.has(e)?Promise.resolve(null):h(e,"/","GET",O,{"expo-platform":"ios"}),f.has(e)?Promise.resolve(null):h(e,"/_expo/status")]);n&&n.statusCode===200?f.delete(e):f.has(e)||f.add(e);let a=u?z(u.body):null,c=typeof a?.launchAsset?.url=="string"?a.launchAsset.url:null,l=a?.extra?.expoClient||a?.extra||{};if(a&&(c||typeof l.name=="string")){d.add(e);let g=c||`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`,M=g.includes("/one/metro-entry.bundle")?"one":"expo";return b({port:e,framework:M,bundleUrl:p(e,g),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},u,r)}return i&&i.statusCode>0&&i.statusCode<400&&/application\/javascript/i.test(i.contentType||"")?(d.add(e),S.add(e),b({port:e,framework:"one",bundleUrl:p(e,`http://localhost:${e}${t}&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},u,r)):s&&s.body.includes("packager-status:running")?(d.add(e),b(F(e,n&&n.statusCode===200?"expo":"metro"),u,r)):o&&o.statusCode===200&&o.body.includes("sootsim-patched")?(d.delete(e),b({port:e,framework:"one",bundleUrl:p(e,`http://localhost:${e}/__soot/bundle.js`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now(),patched:!0},u,r)):(d.add(e),null)}function K(e){let r=e.projectName?.trim().toLowerCase();return!!(r==="soot"||r==="sootsim"||e.bundleId?.trim().toLowerCase()?.startsWith("dev.soot"))}var w=new Map,V=3e4,q=1500;function Q(e){return!e||e.framework==="metro"||e.framework==="unknown"}function Y(e){return e?p(e.port,e.bundleUrl)===e.bundleUrl:!0}function X(e,r,t=Date.now()){if(r===0||e.pid!==r||!Y(e.result))return!1;let o=t-e.cachedAt;return!(e.result===null&&o>=V||Q(e.result)&&o>=q)}async function ce(e={}){let r=await j(e.excludePorts),t=new Set(r.map(n=>n.port));for(let n of[...w.keys()])t.has(n)||w.delete(n);for(let n of[...d])t.has(n)||d.delete(n);for(let n of[...f])t.has(n)||f.delete(n);for(let n of[...S])t.has(n)||S.delete(n);let o=[],s=[];for(let{port:n,pid:a}of r){let c=w.get(n);if(c&&X(c,a)){c.result&&o.push(c.result);continue}c&&c.pid!==a&&(d.delete(n),f.delete(n),S.delete(n)),s.push({port:n,pid:a})}s.length>0&&(await Promise.all(s.map(a=>J(a.port,e.buildIconProxyUrl)))).forEach((a,c)=>{let{port:l,pid:g}=s[c];g!==0&&w.set(l,{pid:g,result:a,cachedAt:Date.now()}),a&&o.push(a)});let i=new Map;for(let{port:n,pid:a}of r)a>0&&i.set(n,a);await Promise.all(o.map(async n=>{let a=i.get(n.port);if(!a)return;n.pid=a;let c=await W(a);c&&(n.cwd=c)}));let u=new Set(i.values());for(let n of[...y.keys()])u.has(n)||y.delete(n);return o.filter(n=>!K(n))}export{x as a,ee as b,k as c,J as d,ce as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{c as T}from"./chunk-FFLG37RS.js";import"./chunk-VGPVE4F4.js";import"./chunk-LL37YEM2.js";import"./chunk-QH2JVOUE.js";import"./chunk-FSBYGM4J.js";import"./chunk-43YUWV4Y.js";import{a as _,b as N}from"./chunk-J5TKJD6U.js";import"./chunk-BOBWMEVH.js";import"./chunk-VPUMU5AW.js";import"./chunk-3FRJ3IQT.js";import{g as I,o as C,p as w,q as B}from"./chunk-IX4IMVA5.js";import{a as W}from"./chunk-5GNIETQW.js";import{execFileSync as et,spawnSync as s}from"child_process";import{existsSync as a,mkdirSync as v,readFileSync as rt,rmSync as S,writeFileSync as U}from"fs";import{homedir as $}from"os";import{dirname as M,resolve as p}from"path";import{execFileSync as Y}from"child_process";import{chmodSync as K,mkdirSync as D,rmSync as X,writeFileSync as P}from"fs";import{dirname as L}from"path";var Q="dev.sootsim.daemon",O="SootSim Daemon",F="0.1.36";function R(t,e,r){let o=w(),n=B(),i=L(L(n)),f=L(n),u=`${i}/Resources`;X(o,{recursive:!0,force:!0}),D(C(),{recursive:!0}),D(f,{recursive:!0}),D(u,{recursive:!0}),P(`${i}/Info.plist`,z()),P(`${i}/PkgInfo`,"APPL????"),P(n,J(t,e,r)),K(n,493);try{Y("codesign",["--force","--sign","-","--deep",o],{stdio:"pipe"})}catch(c){let g=c instanceof Error?c.message:String(c);console.warn(` warning: ad-hoc codesign of ${o} failed: ${g}
|
|
3
|
-
the daemon will still run, but Login Items may show a generic name.`)}return{bundlePath:o,launcherPath:n}}function z(){return`<?xml version="1.0" encoding="UTF-8"?>
|
|
4
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
5
|
-
<plist version="1.0">
|
|
6
|
-
<dict>
|
|
7
|
-
<key>CFBundleDevelopmentRegion</key><string>en</string>
|
|
8
|
-
<key>CFBundleDisplayName</key><string>${O}</string>
|
|
9
|
-
<key>CFBundleExecutable</key><string>sootsim-daemon</string>
|
|
10
|
-
<key>CFBundleIdentifier</key><string>${Q}</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
|
|
12
|
-
<key>CFBundleName</key><string>${O}</string>
|
|
13
|
-
<key>CFBundlePackageType</key><string>APPL</string>
|
|
14
|
-
<key>CFBundleShortVersionString</key><string>${F}</string>
|
|
15
|
-
<key>CFBundleSignature</key><string>????</string>
|
|
16
|
-
<key>CFBundleVersion</key><string>${F}</string>
|
|
17
|
-
<key>LSBackgroundOnly</key><true/>
|
|
18
|
-
<key>LSUIElement</key><true/>
|
|
19
|
-
<key>LSMinimumSystemVersion</key><string>13.0</string>
|
|
20
|
-
<key>NSHumanReadableCopyright</key><string>Tamagui LLC</string>
|
|
21
|
-
</dict>
|
|
22
|
-
</plist>
|
|
23
|
-
`}function J(t,e,r){let n=[t.executable,...t.prefixArgs,"server","--quiet","--port",String(e)].map(Z).join(" ");return`#!/bin/sh
|
|
24
|
-
# SootSim Daemon launcher \u2014 auto-generated by 'sootsim daemon install'.
|
|
25
|
-
# launchd spawns this; we exec the real sootsim invocation in place so
|
|
26
|
-
# launchd tracks the daemon process, not the shell wrapper.
|
|
27
|
-
#
|
|
28
|
-
# stdout: ${r.stdout}
|
|
29
|
-
# stderr: ${r.stderr}
|
|
30
|
-
exec ${n}
|
|
31
|
-
`}function Z(t){return`'${t.replace(/'/g,"'\\''")}'`}var j=60,m="dev.sootsim.daemon",E="dev.sootsim.server",d="sootsim-server",h=p($(),"Library/Logs/sootsim"),ot=p($(),".local/state/sootsim");async function Ct(t,e={}){let[r,...o]=t,n=e.port??7668;if(!r||r==="--help"||r==="-h"){V();return}new Set(["install","uninstall","restart","start","stop"]).has(r)&&_({event:`daemon_${r}`,properties:{platform:process.platform,subsource:"daemon"}});try{switch(r){case"install":return await ut({port:n,force:o.includes("--force")});case"uninstall":return await dt();case"status":return await pt();case"restart":return await mt();case"start":return await gt();case"stop":return await ft();default:console.error(` unknown daemon subcommand: ${r}`),V(),process.exit(1)}}finally{await N()}}function V(){T("daemon")}function nt(){let t=st();return{executable:process.execPath,prefixArgs:[t]}}function st(){try{let e=et("which",["sootsim"],{encoding:"utf8"}).trim();if(e&&a(e))return q(e)}catch{}let t=process.argv[1];if(t&&a(t))return q(t);throw new Error("could not locate the sootsim binary")}function q(t){try{return W("fs").realpathSync(t)}catch{return t}}function it(t,e){v(h,{recursive:!0});let r=p(h,"server.out.log"),o=p(h,"server.err.log"),{launcherPath:n}=R(t,e,{stdout:r,stderr:o}),i=` <string>${ct(n)}</string>`;return`<?xml version="1.0" encoding="UTF-8"?>
|
|
32
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
33
|
-
<plist version="1.0">
|
|
34
|
-
<dict>
|
|
35
|
-
<key>Label</key><string>${m}</string>
|
|
36
|
-
<key>ProgramArguments</key>
|
|
37
|
-
<array>
|
|
38
|
-
${i}
|
|
39
|
-
</array>
|
|
40
|
-
<key>RunAtLoad</key><true/>
|
|
41
|
-
<key>KeepAlive</key><true/>
|
|
42
|
-
<key>ThrottleInterval</key><integer>${j}</integer>
|
|
43
|
-
<key>ProcessType</key><string>Background</string>
|
|
44
|
-
<key>StandardOutPath</key><string>${r}</string>
|
|
45
|
-
<key>StandardErrorPath</key><string>${o}</string>
|
|
46
|
-
</dict>
|
|
47
|
-
</plist>
|
|
48
|
-
`}function at(t,e){return v(ot,{recursive:!0}),`[Unit]
|
|
49
|
-
Description=sootsim bridge daemon
|
|
50
|
-
After=default.target
|
|
51
|
-
|
|
52
|
-
[Service]
|
|
53
|
-
Type=simple
|
|
54
|
-
ExecStart=${[t.executable,...t.prefixArgs].map(lt).join(" ")} server --quiet --port ${e}
|
|
55
|
-
Restart=always
|
|
56
|
-
RestartSec=${j}
|
|
57
|
-
|
|
58
|
-
[Install]
|
|
59
|
-
WantedBy=default.target
|
|
60
|
-
`}function ct(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function lt(t){return/[^\w@%+=:,./-]/.test(t)?`'${t.replace(/'/g,"'\\''")}'`:t}function b(){return p($(),"Library/LaunchAgents",`${m}.plist`)}function G(){return p($(),"Library/LaunchAgents",`${E}.plist`)}function x(){return p($(),".config/systemd/user",`${d}.service`)}function H(){let t=G();return a(t)?(s("launchctl",["bootout",`gui/${process.getuid()}/${E}`],{stdio:"ignore"}),S(t,{force:!0}),!0):!1}async function ut({port:t,force:e}){if(I())throw new Error(`refusing to install the persistent sootsim daemon agent from a dev checkout.
|
|
61
|
-
the launchd / systemd agent would point at workspace artifacts that change
|
|
62
|
-
between sessions, and would serve stale prod-built engine assets instead of
|
|
63
|
-
the live \`bun dev:sootsim\` output. start the daemon manually in another
|
|
64
|
-
shell with: sootsim server
|
|
65
|
-
(set SOOTSIM_FORCE_DAEMON_INSTALL=1 to override.)`);let r=nt();if(console.log(` binary: ${[r.executable,...r.prefixArgs].join(" ")}`),console.log(` port: ${t}`),process.platform==="darwin"){H()&&console.log(` migrated away from legacy ${E} plist`);let o=b();if(a(o)&&!e){console.log(` already installed at ${o}`),console.log(" pass --force to overwrite, or use 'sootsim daemon restart' to reload");return}v(M(o),{recursive:!0}),U(o,it(r,t)),console.log(` wrote ${o}`);let n=`gui/${process.getuid()}`,i=`${n}/${m}`,f=()=>{let l=s("launchctl",["bootstrap",n,o],{stdio:"pipe",encoding:"utf8"}),k=(l.stderr||l.stdout||"").trim();if(l.status!==0)return{ok:!1,reason:`bootstrap exit ${l.status}${k?`: ${k}`:""}`};let A=s("launchctl",["print",i],{encoding:"utf8"});return A.status!==0?{ok:!1,reason:`bootstrap returned 0 but service not registered (print exit ${A.status})`}:{ok:!0}},u=f();if(!u.ok){let l=u.reason;if(s("launchctl",["bootout",i],{stdio:"ignore"}),u=f(),!u.ok)throw new Error(`launchctl bootstrap failed: ${u.reason}`+(l!==u.reason?` (initial: ${l})`:"")+" \u2014 try `sootsim daemon uninstall` then retry, or reboot if launchd state is stuck.")}let c=Date.now()+4e3,g,y;for(;Date.now()<c;){let l=s("launchctl",["print",i],{encoding:"utf8"});if(l.status===0&&(g=l.stdout?.match(/state\s*=\s*(\w+)/)?.[1],y=l.stdout?.match(/pid\s*=\s*(\d+)/)?.[1],g==="running"||y))break;await new Promise(k=>setTimeout(k,150))}if(g!=="running"&&!y)throw new Error(`daemon registered but did not reach running state within 4s (last state: ${g||"unknown"}). check ${p(h,"server.err.log")} \u2014 typically a stale runtime or a port already bound by another process.`);console.log(` registered (state: ${g||"unknown"}${y?`, pid ${y}`:""}, log: ${p(h,"server.err.log")})`);return}if(process.platform==="linux"){let o=x();if(a(o)&&!e){console.log(` already installed at ${o}`),console.log(" pass --force to overwrite, or use 'sootsim daemon restart' to reload");return}v(M(o),{recursive:!0}),U(o,at(r,t)),console.log(` wrote ${o}`);let n=s("systemctl",["--user","daemon-reload"],{stdio:"pipe",encoding:"utf8"});if(n.status!==0){let c=(n.stderr||n.stdout||"").trim();throw new Error(`systemctl daemon-reload failed${c?`: ${c}`:""}`)}let i=s("systemctl",["--user","enable","--now",d],{stdio:"pipe",encoding:"utf8"});if(i.status!==0){let c=(i.stderr||i.stdout||"").trim();throw new Error(`systemctl enable --now failed${c?`: ${c}`:""} \u2014 try \`sootsim daemon uninstall\` then retry.`)}let u=(s("systemctl",["--user","is-active",d],{encoding:"utf8"}).stdout||"").trim()||"unknown";console.log(` registered (state: ${u}, journalctl --user -u ${d} to tail logs)`);return}console.error(` sootsim daemon install is not supported on ${process.platform}`),console.error(" run 'sootsim server' in a persistent shell instead"),process.exit(1)}async function dt(){if(process.platform==="darwin"){let t=b(),e=H();e&&console.log(` removed legacy ${G()}`);let r=a(t);r&&(s("launchctl",["bootout",`gui/${process.getuid()}/${m}`],{stdio:"ignore"}),S(t,{force:!0}),console.log(` removed ${t}`));let o=w();a(o)&&(S(o,{recursive:!0,force:!0}),console.log(` removed ${o}`)),!r&&!e&&console.log(" not installed");return}if(process.platform==="linux"){let t=x();if(!a(t)){console.log(" not installed");return}s("systemctl",["--user","disable","--now",d],{stdio:"ignore"}),S(t,{force:!0}),s("systemctl",["--user","daemon-reload"],{stdio:"ignore"}),console.log(` removed ${t}`);return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function pt(){if(process.platform==="darwin"){let t=b();if(!a(t)){console.log(" installed: no");return}console.log(` installed: yes (${t})`);let e=yt(t);e&&console.log(` binary: ${e}`);let r=s("launchctl",["print",`gui/${process.getuid()}/${m}`],{encoding:"utf8"});if(r.status===0){let o=r.stdout.match(/state\s*=\s*(\w+)/)?.[1],n=r.stdout.match(/pid\s*=\s*(\d+)/)?.[1];console.log(` state: ${o||"unknown"}${n?` (pid ${n})`:""}`)}else console.log(" state: not running");return}if(process.platform==="linux"){let t=x();if(!a(t)){console.log(" installed: no");return}console.log(` installed: yes (${t})`);let e=s("systemctl",["--user","is-active",d],{encoding:"utf8"});console.log(` state: ${e.stdout.trim()||"unknown"}`);return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function mt(){if(process.platform==="darwin"){let t=b();a(t)||(console.error(" daemon not registered \u2014 run any sootsim command to bootstrap it"),process.exit(1));let e=s("launchctl",["kickstart","-k",`gui/${process.getuid()}/${m}`],{stdio:"pipe",encoding:"utf8"});e.status!==0&&(console.error(` kickstart failed: ${e.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}if(process.platform==="linux"){let t=x();a(t)||(console.error(" daemon not registered \u2014 run any sootsim command to bootstrap it"),process.exit(1));let e=s("systemctl",["--user","restart",d],{stdio:"pipe",encoding:"utf8"});e.status!==0&&(console.error(` restart failed: ${e.stderr?.trim()}`),process.exit(1)),console.log(" restarted");return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function gt(){if(process.platform==="darwin"){s("launchctl",["kickstart",`gui/${process.getuid()}/${m}`],{stdio:"inherit"});return}if(process.platform==="linux"){s("systemctl",["--user","start",d],{stdio:"inherit"});return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}async function ft(){if(process.platform==="darwin"){s("launchctl",["bootout",`gui/${process.getuid()}/${m}`],{stdio:"inherit"});return}if(process.platform==="linux"){s("systemctl",["--user","stop",d],{stdio:"inherit"});return}console.error(` unsupported platform: ${process.platform}`),process.exit(1)}function yt(t){try{return rt(t,"utf8").match(/<array>\s*<string>([^<]+)<\/string>/)?.[1]||null}catch{return null}}export{ut as daemonInstall,Ct as runDaemon};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-SYNYE5TO.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-ZVNHBVPN.js";import"./chunk-LRHF2NHY.js";import"./chunk-MSIBILXN.js";import"./chunk-NDDO5LJQ.js";import"./chunk-6NFFFBRU.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{e as ALL_DRIVERS,i as buildDriverListRows,a as chromiumDriver,b as electronDriver,f as getAllDrivers,g as getDriver,c as playwrightDriver,h as resolveDriver,d as systemDriver};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-P3XP5CAJ.js";import"./chunk-ZBG7W6NB.js";import"./chunk-JQA5KAIE.js";import"./chunk-TUEWX5ZK.js";import"./chunk-45ZDPOFK.js";import"./chunk-YEPCS7AI.js";import{d as a,e as b}from"./chunk-LA4X55X7.js";import"./chunk-PO2MKTNM.js";import"./chunk-DMU4XTZG.js";import"./chunk-QWWS5HES.js";import"./chunk-HVRM6FSJ.js";import"./chunk-RZEIW2HF.js";import"./chunk-ZVNHBVPN.js";import"./chunk-LRHF2NHY.js";import"./chunk-MSIBILXN.js";import"./chunk-NDDO5LJQ.js";import"./chunk-6NFFFBRU.js";import"./chunk-VGPVE4F4.js";import"./chunk-QH2JVOUE.js";import"./chunk-J5TKJD6U.js";import"./chunk-BOBWMEVH.js";import"./chunk-5JQLSFSU.js";import"./chunk-VPUMU5AW.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{c as discoverSootsimUrl,e as hoistLeadingSimFlag,a as parseFlowFile,f as runFlow,d as runFlowPlayback,b as validateFlowFile};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-RLBHHZ7Q.js";import"./chunk-KT3MW6TT.js";import"./chunk-PA6LEZXS.js";import"./chunk-J5TKJD6U.js";import"./chunk-BOBWMEVH.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";async function t(n){console.error(" note: `sootsim install` is now `sootsim setup-repo`. forwarding\u2026\n"),await o(n)}export{t as runInstall};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as b}from"./chunk-KT3MW6TT.js";import{a as x}from"./chunk-LRHF2NHY.js";import"./chunk-5GNIETQW.js";import{spawn as k,spawnSync as u}from"child_process";import{chmodSync as S,createWriteStream as E,existsSync as w,mkdirSync as y,renameSync as T,rmSync as g,statSync as P}from"fs";import{tmpdir as D}from"os";import{dirname as M,join as f,resolve as v}from"path";var h="https://sootbean.com/api/electron-release";function A(){let r=process.arch;if(process.platform==="darwin"){let o=r==="arm64"?"mac-arm64":"mac-x64",n=`sootsim-latest-${o}.dmg`;return{platform:o,filename:n,url:`${h}/${n}`,install:_}}if(process.platform==="linux"){let o="sootsim-latest-linux-x64.AppImage";return{platform:"linux-x64",filename:o,url:`${h}/${o}`,install:L}}if(process.platform==="win32"){let o="sootsim-latest-win-x64.exe";return{platform:"win-x64",filename:o,url:`${h}/${o}`,install:C}}return null}async function O({url:r,dest:o,onProgress:n}){let s=await fetch(r,{redirect:"follow"});if(!s.ok)throw new Error(`download failed: ${s.status} ${s.statusText} (${r})`);let t=s.headers.get("content-length"),a=t?Number(t):null;if(!s.body)throw new Error("download failed: empty response body");y(M(o),{recursive:!0});let i=E(o),d=s.body.getReader(),c=0;try{for(;;){let{done:l,value:p}=await d.read();if(l)break;i.write(Buffer.from(p)),c+=p.byteLength,n?.(c,a)}}finally{await new Promise((l,p)=>{i.end(e=>e?p(e):l())})}}function I(r,o){let n=(r/1048576).toFixed(1);if(!o)return` ${n} MB`;let s=Math.min(100,Math.round(r/o*100)),t=(o/(1024*1024)).toFixed(1),a=24,i=Math.round(s/100*a);return` ${"\u2588".repeat(i)+"\u2591".repeat(a-i)} ${s}% ${n} / ${t} MB`}async function _(r){let o=u("hdiutil",["attach","-nobrowse","-readonly",r],{encoding:"utf8"});if(o.status!==0)throw new Error(`hdiutil attach failed: ${o.stderr||o.stdout}`.trim());let n=o.stdout.trim().split(`
|
|
3
|
-
`),t=n[n.length-1].split(" ").pop()?.trim();if(!t||!w(t))throw new Error(`could not determine dmg mount point (output: ${o.stdout})`);let a=f(t,"sootsim.app");if(!w(a))throw u("hdiutil",["detach","-force",t]),new Error(`sootsim.app not found inside ${t}`);let i="/Applications",d=v(process.env.HOME||"","Applications"),c=i;try{let m=f(i,`.sootsim-write-probe-${process.pid}`);u("touch",[m]),w(m)?g(m,{force:!0}):c=d}catch{c=d}c===d&&y(c,{recursive:!0});let l=f(c,"sootsim.app");w(l)&&g(l,{recursive:!0,force:!0});let p=u("cp",["-R",a,l]),e=u("hdiutil",["detach","-force",t]);if(p.status!==0)throw new Error(`copy to ${l} failed: ${p.stderr?.toString()||""}`.trim());return e.status!==0&&console.warn(` warning: failed to unmount ${t} (${e.stderr?.toString().trim()||"unknown error"})`),u("xattr",["-dr","com.apple.quarantine",l]),l}async function L(r){let o=v(process.env.HOME||"","Applications");y(o,{recursive:!0});let n=f(o,"sootsim.AppImage");return w(n)&&g(n,{force:!0}),T(r,n),S(n,493),n}async function C(r){return await new Promise((o,n)=>{let s=k("cmd",["/c","start",'""',"/wait",r],{stdio:"inherit"});s.once("error",n),s.once("exit",t=>{t===0?o():n(new Error(`installer exited with code ${t}`))})}),r}async function Y(r){(r.includes("--help")||r.includes("-h"))&&(console.log(`
|
|
4
|
-
sootsim install-desktop \u2014 download and install the optional desktop GUI
|
|
5
|
-
|
|
6
|
-
the CLI + daemon are the canonical sootsim surface; the GUI is optional.
|
|
7
|
-
if you just want to drive a running metro/expo dev server from the
|
|
8
|
-
terminal, you don't need this.
|
|
9
|
-
|
|
10
|
-
usage:
|
|
11
|
-
sootsim install-desktop [options]
|
|
12
|
-
|
|
13
|
-
options:
|
|
14
|
-
-y, --yes skip confirmation and install immediately
|
|
15
|
-
--force reinstall even if the companion is already present
|
|
16
|
-
|
|
17
|
-
examples:
|
|
18
|
-
sootsim install-desktop
|
|
19
|
-
sootsim install-desktop --yes
|
|
20
|
-
`),process.exit(0));let o=r.includes("--yes")||r.includes("-y")||process.env.SOOTSIM_NO_PROMPT==="1"||process.env.CI==="1"||!process.stdin.isTTY,n=r.includes("--force"),s=x();if(s&&!n){console.log(` sootsim desktop already installed at: ${s.path}`),console.log(" pass --force to reinstall.");return}let t=A();if(t||(console.error(` no desktop build available for ${process.platform}/${process.arch}.`),console.error(" supported: darwin-arm64, darwin-x64, linux-x64, win32-x64"),process.exit(1)),console.log(` platform: ${t.platform}`),console.log(` download: ${t.url}`),console.log(),!o){if(!await b("download and install now?",!0)){console.log(" cancelled.");return}console.log()}let a=f(D(),`sootsim-install-${Date.now()}`),i=f(a,t.filename),d=0;process.stdout.write(` downloading ${t.filename}...
|
|
21
|
-
`);try{await O({url:t.url,dest:i,onProgress:(e,m)=>{let $=Date.now();$-d<100&&e<(m??1/0)||(d=$,process.stdout.isTTY&&process.stdout.write(`\r\x1B[2K${I(e,m)}`))}})}catch(e){g(a,{recursive:!0,force:!0}),console.error(`
|
|
22
|
-
download failed: ${e instanceof Error?e.message:String(e)}`),process.exit(1)}process.stdout.isTTY&&process.stdout.write(`
|
|
23
|
-
`);let c=P(i).size;console.log(` downloaded ${(c/(1024*1024)).toFixed(1)} MB`),console.log(),console.log(" installing...");let{trackCliEvent:l,flushCliTelemetry:p}=await import("./telemetry-5OQHMDJ6.js");try{let e=await t.install(i);l({event:"cli_install_desktop_succeeded",properties:{platform:t.platform,size_bytes:c}}),console.log(` installed: ${e}`)}catch(e){l({event:"cli_install_desktop_failed",properties:{platform:t.platform,error:e instanceof Error?e.message:String(e)}}),await p(),console.error(` install failed: ${e instanceof Error?e.message:String(e)}`),console.error(` keeping download at ${i} for manual install.`),process.exit(1)}finally{g(a,{recursive:!0,force:!0})}console.log(),console.log(" next steps:"),console.log(" sootsim electron launch the desktop app"),console.log(" sootsim open <target> open a demo or bundle in it")}export{Y as runInstallDesktop};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{b as f,d as m}from"./chunk-BOBWMEVH.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";import{exec as S}from"node:child_process";import{randomBytes as $}from"node:crypto";import _ from"node:http";var I=process.env.SOOTSIM_AUTH_ORIGIN||"https://sootbean.com",h="http://localhost:3000";async function x(t){if(t)return t;if(process.env.SOOTSIM_AUTH_ORIGIN)return process.env.SOOTSIM_AUTH_ORIGIN;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{if((await fetch(`${h}/api/auth/me`)).ok)return h}catch{}return I}function R(){console.log(`
|
|
3
|
-
sootsim login \u2014 sign in so desktop uploads can attach to your account
|
|
4
|
-
|
|
5
|
-
usage:
|
|
6
|
-
sootsim login [--origin <url>]
|
|
7
|
-
|
|
8
|
-
options:
|
|
9
|
-
--origin <url> auth host (default: auto)
|
|
10
|
-
prefers ${h} when available, otherwise
|
|
11
|
-
falls back to ${I}
|
|
12
|
-
override with SOOTSIM_AUTH_ORIGIN env var
|
|
13
|
-
-h, --help
|
|
14
|
-
`)}function T(t,o){let e=t.findIndex(i=>i===o);if(e<0)return;let c=t[e+1];return t.splice(e,2),c}function L(t){let o=process.platform==="darwin"?`open "${t}"`:process.platform==="win32"?`start "" "${t}"`:`xdg-open "${t}"`;S(o,e=>{e&&(console.log(" could not open browser automatically."),console.log(` open this URL manually:
|
|
15
|
-
${t}
|
|
16
|
-
`))})}function u(t){return`<!doctype html>
|
|
17
|
-
<html>
|
|
18
|
-
<body style="font-family:system-ui;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;height:100vh;margin:0">
|
|
19
|
-
<div style="max-width:480px;text-align:center">
|
|
20
|
-
<h1 style="font-size:28px;margin:0 0 12px">SootSim</h1>
|
|
21
|
-
<p style="color:#ccc">${t}</p>
|
|
22
|
-
</div>
|
|
23
|
-
</body>
|
|
24
|
-
</html>`}async function P(t){try{let o=await fetch(`${t.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(o.status===403)return{ok:!1,error:"dev-login disabled (not in dev mode)"};if(!o.ok){let c=await o.text().catch(()=>"");return{ok:!1,error:`dev-login ${o.status}: ${c}`}}let e=await o.json();return e.token?{ok:!0,token:e.token,userId:e.user?.id,email:e.email}:{ok:!1,error:"dev-login response missing token"}}catch(o){return{ok:!1,error:o instanceof Error?o.message:"dev-login fetch failed"}}}function A(t){try{let o=new URL(t).hostname;return o==="localhost"||o==="127.0.0.1"||o.endsWith(".local")}catch{return!1}}async function G(t){(t.includes("--help")||t.includes("-h"))&&(R(),process.exit(0));let o=[...t],e=await x(T(o,"--origin"));if(A(e)){console.log(` detected local origin (${e}) \u2014 signing in as dev user`);let r=await P(e);if(r.ok){f({token:r.token,user:r.userId?{id:r.userId,email:r.email}:null,origin:e,source:"cli"});let s=await m(e),l=s?.user?.email||r.email||s?.user?.id||r.userId,{trackCliEvent:n,flushCliTelemetry:a}=await import("./telemetry-5OQHMDJ6.js");n({event:"cli_login_succeeded",identity:{userId:r.userId??s?.user?.id??null},properties:{origin:e,mode:"dev"}}),await a(),console.log(` signed in${l?` as ${l}`:""} (dev)`);return}console.log(` dev-login not available (${r.error}); falling back to browser`)}let c=$(16).toString("hex"),i=await new Promise(r=>{let s=_.createServer((l,n)=>{try{let a=new URL(l.url||"/","http://127.0.0.1"),w=a.searchParams.get("state"),k=a.searchParams.get("token"),b=a.searchParams.get("email")||void 0,O=a.searchParams.get("userId")||void 0,g=a.searchParams.get("error");if(n.setHeader("content-type","text/html; charset=utf-8"),g){n.end(u(`sign-in failed: ${g}`)),r({ok:!1,error:g}),s.close();return}if(w!==c){n.end(u("state mismatch. close this tab and retry `sootsim login`.")),r({ok:!1,error:"state mismatch"}),s.close();return}if(!k){n.end(u("missing token. close this tab and retry `sootsim login`.")),r({ok:!1,error:"missing token"}),s.close();return}n.end(u("sign-in complete. you can return to the terminal.")),r({ok:!0,token:k,email:b,userId:O}),s.close()}catch(a){n.statusCode=500,n.end(u("sign-in callback failed. retry `sootsim login`.")),r({ok:!1,error:a instanceof Error?a.message:"callback failed"}),s.close()}});s.listen(0,"127.0.0.1",()=>{let l=s.address();if(!l||typeof l=="string"){r({ok:!1,error:"failed to bind callback server"}),s.close();return}let n=new URL(`${e.replace(/\/$/,"")}/auth/sootsim-cli`);n.searchParams.set("state",c),n.searchParams.set("port",String(l.port)),n.searchParams.set("sootbean",e),console.log(" opening browser for sootsim login..."),console.log(` waiting for callback on 127.0.0.1:${l.port}`),console.log(` if nothing opens, visit:
|
|
25
|
-
${n.toString()}
|
|
26
|
-
`),L(n.toString())})});if(!i.ok){let{trackCliEvent:r,flushCliTelemetry:s}=await import("./telemetry-5OQHMDJ6.js");r({event:"cli_login_failed",properties:{origin:e,error:i.error}}),await s(),console.error(` login failed: ${i.error}`),process.exit(1)}f({token:i.token,user:i.userId?{id:i.userId,email:i.email}:null,origin:e,source:"cli"});let d=await m(e),p=d?.user?.email||i.email||d?.user?.id||i.userId,{trackCliEvent:y,flushCliTelemetry:v}=await import("./telemetry-5OQHMDJ6.js");y({event:"cli_login_succeeded",identity:{userId:i.userId??d?.user?.id??null},properties:{origin:e}}),await v(),console.log(` signed in${p?` as ${p}`:""}`)}export{G as runLogin};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-AVR2E37B.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-F6I3D46Z.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{a as runRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-RLBHHZ7Q.js";import"./chunk-KT3MW6TT.js";import"./chunk-PA6LEZXS.js";import"./chunk-J5TKJD6U.js";import"./chunk-BOBWMEVH.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{a as runSetupRepo};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.80 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-45ZDPOFK.js";import"./chunk-YEPCS7AI.js";import"./chunk-MSIBILXN.js";import"./chunk-6NFFFBRU.js";import"./chunk-J5TKJD6U.js";import"./chunk-BOBWMEVH.js";import"./chunk-ZPHWYFVX.js";import"./chunk-WQ3BYT6L.js";import"./chunk-3FRJ3IQT.js";import"./chunk-IX4IMVA5.js";import"./chunk-5GNIETQW.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|