sootsim 0.1.64 → 0.1.66
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-SHMN3LWB.js → agent-IW7CCSSI.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-ESDQSMYX.js → agent-wrapper-5DJBERZP.js} +2 -2
- package/dist-cli/chunks/{assert-X3GQJUDI.js → assert-RHILK3WR.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-PS2UDBP7.js +2 -0
- package/dist-cli/chunks/beta-XLYWSKEA.js +2 -0
- package/dist-cli/chunks/{chunk-FFVJK2R7.js → chunk-22CO2ZE3.js} +2 -2
- package/dist-cli/chunks/{chunk-VGD57MTN.js → chunk-4LYNJPUM.js} +2 -2
- package/dist-cli/chunks/{chunk-XHDHG6YH.js → chunk-4NT6VRUU.js} +1 -1
- package/dist-cli/chunks/chunk-5MVFADNH.js +3 -0
- package/dist-cli/chunks/{chunk-OBL6OIK5.js → chunk-6AP6LXVV.js} +1 -1
- package/dist-cli/chunks/chunk-7NYW73Q6.js +2 -0
- package/dist-cli/chunks/{chunk-2GAZ3JW7.js → chunk-AYBGSHQK.js} +2 -2
- package/dist-cli/chunks/{chunk-VE4QTDAY.js → chunk-BD76YSRN.js} +2 -2
- package/dist-cli/chunks/{chunk-WKVIKFMU.js → chunk-BEQD2DSK.js} +1 -1
- package/dist-cli/chunks/{chunk-N63QYSHT.js → chunk-BTHB3PMG.js} +3 -3
- package/dist-cli/chunks/{chunk-J6TCNU6W.js → chunk-D4VEI6MI.js} +1 -1
- package/dist-cli/chunks/{chunk-3R3BQDKC.js → chunk-DEQ7RED3.js} +2 -2
- package/dist-cli/chunks/{chunk-UVDVALC7.js → chunk-EEMGSSWY.js} +2 -2
- package/dist-cli/chunks/{chunk-ALDKVFW3.js → chunk-EIQLQDKX.js} +2 -2
- package/dist-cli/chunks/chunk-EMMX6RF7.js +73 -0
- package/dist-cli/chunks/{chunk-RQHWF2OD.js → chunk-FIIBCY5I.js} +2 -2
- package/dist-cli/chunks/{chunk-BT6IVKHN.js → chunk-FXF2FHPI.js} +2 -2
- package/dist-cli/chunks/{chunk-SVT7H2QF.js → chunk-G4VWDOWB.js} +2 -2
- package/dist-cli/chunks/{chunk-X3QWOTLT.js → chunk-GDCMTHEU.js} +1 -1
- package/dist-cli/chunks/chunk-GMKGJHVG.js +1 -0
- package/dist-cli/chunks/{chunk-YJIQYIHM.js → chunk-HIN5TAAL.js} +1 -1
- package/dist-cli/chunks/{chunk-RKUDWRIN.js → chunk-HWCZYW6M.js} +2 -2
- package/dist-cli/chunks/{chunk-DSLBZC6J.js → chunk-LCKLQSZX.js} +2 -2
- package/dist-cli/chunks/{chunk-G4GM43A7.js → chunk-LRBMW2WC.js} +2 -2
- package/dist-cli/chunks/{chunk-ZV2TI6OH.js → chunk-LVFWALS4.js} +2 -2
- package/dist-cli/chunks/{chunk-YXZFG3ZY.js → chunk-M2Q4FXRE.js} +1 -1
- package/dist-cli/chunks/{chunk-T5TDH2UO.js → chunk-M3ZEZHOB.js} +1 -1
- package/dist-cli/chunks/{chunk-34PKFCEI.js → chunk-MWTMLNGM.js} +3 -3
- package/dist-cli/chunks/{chunk-R6ZTREB6.js → chunk-NCSGLZRV.js} +2 -2
- package/dist-cli/chunks/chunk-NQKBIKUZ.js +1 -0
- package/dist-cli/chunks/{chunk-LKJI7RRW.js → chunk-QMRXLBPN.js} +4 -4
- package/dist-cli/chunks/{chunk-L3MRXOBW.js → chunk-T4YLDM5C.js} +3 -3
- package/dist-cli/chunks/{chunk-6X3I2LF4.js → chunk-TJEP4DBA.js} +2 -2
- package/dist-cli/chunks/{chunk-RRGCQNVD.js → chunk-UMXVWFST.js} +1 -1
- package/dist-cli/chunks/{chunk-PXRELDJJ.js → chunk-UNSLXX7V.js} +2 -2
- package/dist-cli/chunks/{chunk-DJIQVKM6.js → chunk-V4SZERWD.js} +47 -10
- package/dist-cli/chunks/{chunk-346HJVD6.js → chunk-VRV2X4X2.js} +1 -1
- package/dist-cli/chunks/{chunk-SMYSG4VE.js → chunk-WAOLC7WV.js} +1 -1
- package/dist-cli/chunks/{chunk-GKUKCZBA.js → chunk-X4HQLK4V.js} +1 -1
- package/dist-cli/chunks/chunk-XOTJSR4T.js +2 -0
- package/dist-cli/chunks/{chunk-YGMHOMAJ.js → chunk-XZ5SQJM2.js} +2 -2
- package/dist-cli/chunks/chunk-YSQV4D7P.js +1 -0
- package/dist-cli/chunks/{chunk-HERZHQFG.js → chunk-Z6HSVZIO.js} +2 -2
- package/dist-cli/chunks/cli-version-ESQ2S6N5.js +2 -0
- package/dist-cli/chunks/{compat-SOHG4UE5.js → compat-I7JXYUJN.js} +3 -3
- package/dist-cli/chunks/{config-JQF6TGCG.js → config-3HR5RKVH.js} +2 -2
- package/dist-cli/chunks/control-TDZXFNVT.js +2 -0
- package/dist-cli/chunks/{cpu-profile-3C7LHLJE.js → cpu-profile-ZVHMTVAU.js} +2 -2
- package/dist-cli/chunks/{daemon-SD773LNY.js → daemon-VYRTYH55.js} +2 -2
- package/dist-cli/chunks/{debug-MNWVCAAF.js → debug-CQ6Y7GJ2.js} +3 -3
- package/dist-cli/chunks/demo-app-registry-JAYU7BBM.js +2 -0
- package/dist-cli/chunks/{detox-VOWHHVNU.js → detox-7ZKTGLDR.js} +2 -2
- package/dist-cli/chunks/{device-TFKPS72A.js → device-4M6Z7E2N.js} +2 -2
- package/dist-cli/chunks/{diagnose-J2BTJTGW.js → diagnose-SMQLYGNX.js} +2 -2
- package/dist-cli/chunks/drivers-SIY6JBEM.js +2 -0
- package/dist-cli/chunks/{electron-NHJHQAOJ.js → electron-6N2MIN5W.js} +3 -3
- package/dist-cli/chunks/flow-BZEWL7UQ.js +2 -0
- package/dist-cli/chunks/{hints-XONGBPNI.js → hints-RJCZS2E3.js} +2 -2
- package/dist-cli/chunks/{home-paths-KK7NZVIK.js → home-paths-DCUNA3CD.js} +2 -2
- package/dist-cli/chunks/{inspect-7AINMWI2.js → inspect-T5NC7HHB.js} +13 -13
- package/dist-cli/chunks/install-YTJI5RS7.js +2 -0
- package/dist-cli/chunks/{install-desktop-CRFW4MDL.js → install-desktop-C7424OSW.js} +3 -3
- package/dist-cli/chunks/{keys-PLJITE2X.js → keys-TXUQOAZ3.js} +2 -2
- package/dist-cli/chunks/{launch-FHMTFUI3.js → launch-MVA44QTC.js} +3 -3
- package/dist-cli/chunks/{login-DCFVFSY3.js → login-NHO2WTHC.js} +4 -4
- package/dist-cli/chunks/{logout-55UH67FS.js → logout-SRRWADCE.js} +2 -2
- package/dist-cli/chunks/{maestro-HNNW73KG.js → maestro-UHNXEZAN.js} +2 -2
- package/dist-cli/chunks/{preview-EYIZWAEJ.js → preview-ETIUP7KC.js} +2 -2
- package/dist-cli/chunks/{profile-UOG2ET7W.js → profile-MY5JFVIF.js} +2 -2
- package/dist-cli/chunks/{react-MRICF5YD.js → react-KCMC4GL3.js} +2 -2
- package/dist-cli/chunks/{record-33ZECMTQ.js → record-DHDSXC2Y.js} +7 -6
- package/dist-cli/chunks/runtime-AJP6V5LM.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-KYEJ3C24.js → runtime-delivery-LQZIWQU6.js} +2 -2
- package/dist-cli/chunks/{screenshot-B6B3CE2W.js → screenshot-4KPEEI6I.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-QVII6GH6.js → screenshot-mode-USPWASI3.js} +2 -2
- package/dist-cli/chunks/{screenshots-GYQ3JHAW.js → screenshots-EPEDNA6H.js} +2 -2
- package/dist-cli/chunks/{server-G4WPXKFR.js → server-222QT33M.js} +2 -2
- package/dist-cli/chunks/setup-repo-D56L3CEB.js +2 -0
- package/dist-cli/chunks/{skills-RF27H27Y.js → skills-6XRREE2M.js} +2 -2
- package/dist-cli/chunks/{start-EBOUYGAP.js → start-YCAZBZEX.js} +4 -4
- package/dist-cli/chunks/store-Z32KZ34K.js +2 -0
- package/dist-cli/chunks/telemetry-RFTX2BZK.js +2 -0
- package/dist-cli/chunks/{test-SATSKLC6.js → test-6TNRHSWC.js} +3 -3
- package/dist-cli/chunks/{three-mode-XLTSGRVJ.js → three-mode-MDOLHGXW.js} +2 -2
- package/dist-cli/chunks/{timeline-ELOCAU3S.js → timeline-72MWE44G.js} +2 -2
- package/dist-cli/chunks/{upgrade-2OZLYETX.js → upgrade-IHZ4DFAE.js} +2 -2
- package/dist-cli/chunks/upload-G5C7LJWG.js +2 -0
- package/dist-cli/chunks/{web-YOKL7JUD.js → web-JLJSJUS2.js} +2 -2
- package/dist-cli/chunks/{what-happened-YGFJR2TI.js → what-happened-BUXSJ3QS.js} +2 -2
- package/dist-cli/chunks/{whoami-GKH3GF3H.js → whoami-2EYGCRDQ.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 +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/auto-bootstrap-PH4II3F2.js +0 -2
- package/dist-cli/chunks/beta-YKR6YRXH.js +0 -2
- package/dist-cli/chunks/chunk-CETSCOUK.js +0 -1
- package/dist-cli/chunks/chunk-E5EWHEA5.js +0 -3
- package/dist-cli/chunks/chunk-KY2VMN66.js +0 -1
- package/dist-cli/chunks/chunk-M4CADRP5.js +0 -66
- package/dist-cli/chunks/chunk-OBSMT5TS.js +0 -2
- package/dist-cli/chunks/chunk-WN4XOOK5.js +0 -2
- package/dist-cli/chunks/chunk-XHD3XCT5.js +0 -1
- package/dist-cli/chunks/cli-version-32VNOX3F.js +0 -2
- package/dist-cli/chunks/control-GIAGLNPG.js +0 -2
- package/dist-cli/chunks/demo-app-registry-JUKLYD4R.js +0 -2
- package/dist-cli/chunks/drivers-HVKRY4MB.js +0 -2
- package/dist-cli/chunks/flow-D6MKC5NH.js +0 -2
- package/dist-cli/chunks/install-YPSDICK4.js +0 -2
- package/dist-cli/chunks/runtime-OG4HGCYH.js +0 -2
- package/dist-cli/chunks/setup-repo-2TQURG52.js +0 -2
- package/dist-cli/chunks/store-FRMH2SYG.js +0 -2
- package/dist-cli/chunks/telemetry-EZIRTFFL.js +0 -2
- package/dist-cli/chunks/upload-SJCUW6BT.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{K as F,x as S,y as k,z as g}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.66 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{K as F,x as S,y as k,z as g}from"./chunk-V4SZERWD.js";import{c as b,e as y}from"./chunk-G4VWDOWB.js";import{b as w}from"./chunk-VRV2X4X2.js";import"./chunk-7NYW73Q6.js";import"./chunk-BEQD2DSK.js";import"./chunk-D4VEI6MI.js";function M(t){let e=[];for(let n=0;n<t.length;n++)if(t[n]==="--since"&&n+1<t.length){e.push(n,n+1);let s=t[n+1].trim(),a=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(a){let l=Number(a[1]),u=a[2]??"ms",r=u==="s"?l*1e3:u==="m"?l*6e4:l;return{since:Date.now()-r,consumed:e}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:e}}return{consumed:e}}function E(t){let e=[];for(let n=0;n<t.length;n++)if(t[n]==="--kinds"&&n+1<t.length)return e.push(n,n+1),{kinds:t[n+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:e};return{consumed:e}}function C(t){let e=[];for(let n=0;n<t.length;n++)if(t[n]==="--limit"&&n+1<t.length){e.push(n,n+1);let s=Number(t[n+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:e}}return{consumed:e}}function _(t,e){if(e===null)return new Date(t).toLocaleTimeString();let n=(t-e)/1e3;return`${n>=0?"+":""}${n.toFixed(2)}s`}function j(t,e){switch(t){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"react-commit":{let n=e.slowest;return`${e.fiberCount??"?"} fibers ${e.durationMs??"?"}ms${n?.displayName?` \xB7 ${n.displayName} ${n.durationMs??"?"}ms`:""}`}case"reanimated":case"animation":return`${e.kind??""} ${e.target??""}${e.durationMs?` ${e.durationMs}ms`:""}`}}function N(t,e){let n=_(t.t,e).padStart(8),s=t.context.padEnd(6),a=`[${t.kind}]`.padEnd(15),o="",l=t.data;return l&&typeof l=="object"&&(o=j(t.kind,l)),` ${n} ${s} ${a} ${o}`}function T(t){let e=[],n={label:"initial state",events:[],startedAt:t[0]?.t??null};e.push(n);for(let s of t)if(n.events.push(s),s.kind==="screen"||s.kind==="route"){let a=s.data,o=a?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let l=a?.name||a?.activeName||a?.path||a?.pathname||s.kind;e.length===1&&n.events.length===1?n.label=`${s.kind}: ${l}`:(n={label:`${s.kind}: ${l}`,events:[],startedAt:s.t},e.push(n))}}return e}async function O(t,e){let n=b(t,{port:e.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow"],stripValueFlags:["--since","--kinds","--limit"]});(t.includes("--help")||t.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.66 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as i}from"./chunk-EEMGSSWY.js";import{d as n}from"./chunk-EIQLQDKX.js";import"./chunk-BEQD2DSK.js";import"./chunk-D4VEI6MI.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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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.66 | (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/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.66 | (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.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-N63QYSHT.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{B as v,j as h,k as b,l as T,m as y}from"./chunk-DJIQVKM6.js";import{d as f,h as M,i as R}from"./chunk-SVT7H2QF.js";var B={timeoutMs:1800,settleMs:48,startWindowMs:64};function p(e){return new Promise(t=>setTimeout(t,e))}function k(e){return e.includes("--json")}function D(e){process.stdout.write(`${JSON.stringify(e??null,null,2)}
|
|
3
|
-
`)}async function I(e,t,...r){return M(e,`__sootsimTest.${t}`,...r)}async function x(e,t,...r){return R(e,`SootSim.bridges.mainShell.${t}`,...r)}async function _(e,t={}){try{let r=await I(e,"waitForScreenTransitions",B);if(!t.verbose||!r?.started)return;if(r.timedOut){console.log(` screen transition still active after ${r.waitedMs}ms; continuing`);return}r.waitedMs>0&&console.log(` waited ${r.waitedMs}ms for screen transition settle`)}catch{}}async function P(e,t,r,...n){let i=Date.now()+Math.max(0,r);for(;;)try{return await x(e,t,...n)}catch(o){if(!v(o)||Date.now()>=i)throw o;await p(50)}}async function A(e,t,r,n={}){let i=n.attempts??30,o=n.intervalMs??500,d=n.minNodeCount??10;for(let s=0;s<i;s++){let u=f(e,{commandTimeoutMs:t,simId:r,simIdSource:n.simIdSource});try{let a=await u.send({type:"evaluate",code:"(async () => (await window.__sootsimTest?.getNodeCount()) || 0)()"});if(typeof a=="number"&&a>d)return{bridge:u,count:a}}catch{}u.close(),await p(o)}return null}async function E(e,t,r,n={}){let i=n.timeoutMs??8e3,o=n.intervalMs??250,d=Date.now()+i;for(;Date.now()<d;){let s=f(e,{commandTimeoutMs:t,simId:r,simIdSource:n.simIdSource});try{return await s.send({type:"evaluate",code:"1"}),s}catch{s.close()}await p(o)}return null}async function F(e,t={}){let r=t.timeoutMs??1e4,n=t.errorGraceMs??3e3,i=t.pollIntervalMs??200,o=Date.now(),d=o+r,s=-1,u=o,a={ready:!1,source:"timeout",elapsedMs:0,nodes:0,targets:0,errors:0};for(;Date.now()<d;){try{let m=await e.send({type:"evaluate",code:h}),c=Date.now()-o,l=Number(m?.nodes)||0,w=Number(m?.targets)||0,g=Number(m?.errors)||0,S=m?.flag===!0;if(l!==s&&(s=l,u=c),a={ready:!1,source:"timeout",elapsedMs:c,nodes:l,targets:w,errors:g},S&&l>=b&&y({nodes:l,targets:w})&&c-u>=T)return{ready:!0,source:"flag",elapsedMs:c,nodes:l,targets:w,errors:g};if(c>=n&&g>0&&!S)return{ready:!1,source:"error-bail",elapsedMs:c,nodes:l,targets:w,errors:g}}catch{}await p(i)}return a.nodes>=b&&y(a)?{...a,ready:!0,source:"nodes-fallback"}:{...a,ready:!1,source:"timeout",elapsedMs:Date.now()-o}}export{p as a,k as b,D as c,I as d,_ as e,P as f,A as g,E as h,F as i};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as Q,e as X}from"./chunk-UVDVALC7.js";import{d as K}from"./chunk-YJIQYIHM.js";import{a as J,b as m}from"./chunk-3R3BQDKC.js";import{a as D}from"./chunk-ALDKVFW3.js";import{c as q,e as Y,g as v}from"./chunk-SVT7H2QF.js";import{createHash as Te}from"crypto";import{readFileSync as te}from"fs";import{gzipSync as ne}from"zlib";function Z(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}function H(e,t){let r=new AbortController,s=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(s)}}async function be(e){let t=H(12e4,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let s=await r.text().catch(()=>"");throw new Error(`PUT ${r.status}: ${s.slice(0,200)}`)}}async function we(e,t=8,r){let s=0,o=0,a=e.length;await Promise.all(Array.from({length:Math.min(t,a)},async()=>{for(;s<a;){let u=e[s++];await be(u),o++,r?.(o,a)}}))}function ve(e,t,r,s){let o=[];o.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let a of e.files){let u=r.get(a.urlhash);u&&o.push({url:a.putUrl,contentType:a.contentType,bytes:u})}return e.events&&s?.eventsBytes&&o.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.flowVideo&&s?.videoBytes&&o.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&o.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes}),o}function Be(e){return e.replace(/\/+$/,"")}var _=class extends Error{constructor(r,s,o,a=""){super(r);this.status=s;this.phase=o;this.responseText=a;this.name="PresignedUploadError"}};async function ee(e){let t=Be(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-soot-admin-upload-bypass"]=e.adminBypassToken);let s=H(3e4,"init"),o;try{o=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!o.ok){let h=await o.text().catch(()=>"");throw new _(`init failed: ${o.status} ${h.slice(0,200)}`,o.status,"init",h)}let a=await o.json(),u=ve(a,e.bundleBytes,e.filesByHash,e.extras);await we(u,e.concurrency??8,e.onPutProgress);let b=H(3e4,"finalize"),p;try{p=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:a.token}),signal:b.signal})}finally{b.cancel()}if(!p.ok){let h=await p.text().catch(()=>"");throw new _(`finalize failed: ${p.status} ${h.slice(0,200)}`,p.status,"finalize",h)}let P=await p.json();return{init:a,finalize:P}}function Ie(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}var ie=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",ae=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",M="http://localhost:3000";async function Ue(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${M}/api/preview/upload/init`,{method:"OPTIONS"});if(t.ok||t.status===204||t.status===405)return M}catch{}return ie}function B(e){return e.replace(/\/$/,"")}function Pe(e){try{let r=new URL(e).hostname.replace(/^\[|\]$/g,"").toLowerCase();return r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r)}catch{return!1}}function xe(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function Se(e,t){return t?B(t):process.env.SOOTSIM_PREVIEW_ORIGIN?B(process.env.SOOTSIM_PREVIEW_ORIGIN):Pe(e)?B(e):xe(e)?B(ae):B(e)}function Oe(){console.log(`
|
|
3
|
-
sootsim upload \u2014 publish the current bundle as a /preview/<id> link
|
|
4
|
-
|
|
5
|
-
usage:
|
|
6
|
-
sootsim upload [--origin <url>] [--public-origin <url>] [--events <path>] [--sim <sim>] [--open] [--assets-only]
|
|
7
|
-
|
|
8
|
-
options:
|
|
9
|
-
--origin <url> upload target (default: auto)
|
|
10
|
-
prefers ${M} when available, otherwise
|
|
11
|
-
falls back to ${ie}
|
|
12
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
13
|
-
--public-origin <url>
|
|
14
|
-
public /preview link origin (default: ${ae}
|
|
15
|
-
for prod uploads, upload origin for localhost/custom origins).
|
|
16
|
-
override with SOOTSIM_PREVIEW_ORIGIN env var
|
|
17
|
-
--events <path> path to a gzipped events .jsonl.gz file to attach
|
|
18
|
-
--video <path> path to a webm/mp4/gif flow recording. embedded inline
|
|
19
|
-
in the pr sticky comment served at
|
|
20
|
-
/api/preview/flow-video?id=<share-id>
|
|
21
|
-
--video-duration-ms <ms>
|
|
22
|
-
duration hint for attached flow video
|
|
23
|
-
--sim <sim> target a specific sim (see: sootsim list)
|
|
24
|
-
--open open the resulting /preview/<id> url in the browser
|
|
25
|
-
--assets-only drop API/JSON/HTML records before upload; keep images,
|
|
26
|
-
fonts, css, js, and binary blobs. live-data demos hit
|
|
27
|
-
the real network at replay time instead of serving
|
|
28
|
-
recorded API snapshots
|
|
29
|
-
-h, --help
|
|
30
|
-
|
|
31
|
-
examples:
|
|
32
|
-
sootsim upload
|
|
33
|
-
sootsim upload --origin http://localhost:3000 --open
|
|
34
|
-
sootsim upload --events ./my-session.jsonl.gz
|
|
35
|
-
sootsim upload --video /tmp/soot-flow.webm
|
|
36
|
-
`)}function U(e,t){let r=e.findIndex(o=>o===t);if(r<0)return;let s=e[r+1];return e.splice(r,2),s}function re(e,t){let r=e.findIndex(s=>s===t);return r<0?!1:(e.splice(r,1),!0)}function se(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!!(t.startsWith("image/")||t.startsWith("font/")||t.startsWith("video/")||t.startsWith("audio/")||t.startsWith("model/")||t==="text/css"||t==="application/javascript"||t==="text/javascript"||t==="application/wasm"||t==="application/font-woff"||t==="application/font-woff2"||t==="application/octet-stream"):!1}async function oe(e){let t=await fetch(e);if(!t.ok)throw new Error(`fetch ${e} -> ${t.status} ${t.statusText}`);return new Uint8Array(await t.arrayBuffer())}function $e(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Re(e){try{let t=new URL(e);return t.searchParams.get("lazy")==="true"?(t.searchParams.set("lazy","false"),t.toString()):e}catch{return e}}async function _e(e,t){let s=[];for(let o=0;o<t;o+=15e5){let a=Math.min(o+15e5,t),u=await v(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${o}, ${a})`);if(typeof u!="string")return null;s.push(u)}return s.join("")}async function Ve(e,t){(e.includes("--help")||e.includes("-h"))&&(Oe(),process.exit(0));let r=[...e],s=await Ue(U(r,"--origin")),o=Se(s,U(r,"--public-origin")),a=U(r,"--events"),u=U(r,"--video"),b=U(r,"--video-duration-ms"),p=re(r,"--open"),P=re(r,"--assets-only"),h=q(r,{stripBooleanFlags:[],stripValueFlags:[]}),w=Y(h),l,C=[],g=[],z=null;try{if(l=await v(w,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),l?.bundleUrl){let n=new URL(l.bundleUrl).origin;C=(await v(w,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(n)}) || [])`)).filter(T=>{try{return!new URL(T.url).pathname.startsWith("/api/")}catch{return!0}});let i=await v(w,`(() => {
|
|
37
|
-
const rec = window.__sootsimPreviewRecorder
|
|
38
|
-
if (!rec?.list) return null
|
|
39
|
-
const all = rec.list()
|
|
40
|
-
const cross = all.filter((e) => {
|
|
41
|
-
try { return new URL(e.url).origin !== ${JSON.stringify(n)} } catch { return false }
|
|
42
|
-
})
|
|
43
|
-
return {
|
|
44
|
-
count: cross.length,
|
|
45
|
-
totalBytes: cross.reduce((n, e) => n + (e.size || 0), 0),
|
|
46
|
-
}
|
|
47
|
-
})()`);if(i&&i.count>0&&(console.log(` ${i.count} recorded cross-origin responses (${(i.totalBytes/1024).toFixed(1)} KiB)`),g=await v(w,`(() => {
|
|
48
|
-
const rec = window.__sootsimPreviewRecorder
|
|
49
|
-
if (!rec?.dump) return []
|
|
50
|
-
const bundleUrl = ${JSON.stringify(l.bundleUrl)}
|
|
51
|
-
return rec.dump().filter((r) => {
|
|
52
|
-
try {
|
|
53
|
-
const u = new URL(r.url)
|
|
54
|
-
if (u.origin !== ${JSON.stringify(n)}) return true
|
|
55
|
-
// bundle-origin api responses came from the rewritten
|
|
56
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
57
|
-
// recorder's unwrap step). they need bodies attached the
|
|
58
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
59
|
-
// the dev server lacks the bundle's session cookies.
|
|
60
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
61
|
-
return false
|
|
62
|
-
} catch { return false }
|
|
63
|
-
})
|
|
64
|
-
})()`),P)){let T=g.length;g=g.filter(I=>se(I.contentType));let F=i.totalBytes-g.reduce((I,R)=>I+(R.size||0),0);console.log(` --assets-only: kept ${g.length}/${T} records (dropped ${(F/1024).toFixed(1)} KiB of API responses)`)}}l?.transformedBundle&&(z=await _e(w,l.transformedBundle.byteLength))}finally{w.close()}l||(console.error(" could not read bundle snapshot \u2014 is sootsim running and is the bundle loaded?"),process.exit(2)),l.bundleUrl||(console.error(` no ?bundle= URL on the current sootsim tab.
|
|
65
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let d,A=!1;if(z!==null)d=new TextEncoder().encode(z),A=!0,console.log(` using post-transform bundle: ${(d.byteLength/1024).toFixed(1)} KiB`);else{let n=Re(l.bundleUrl);n!==l.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),d=await oe(n),console.log(` main bundle: ${(d.byteLength/1024).toFixed(1)} KiB`)}let x=C.filter(n=>n.url!==l.bundleUrl);P&&(x=x.filter(n=>se(n.contentType))),console.log(` fetching ${x.length} extra files\u2026`);let S=(await Promise.all(x.map(async n=>{try{let i=await oe(n.url);return{...n,bytes:i}}catch(i){return console.error(` warning: failed to re-fetch ${n.url}: ${i instanceof Error?i.message:i}`),null}}))).filter(n=>!!n),le=S.reduce((n,i)=>n+i.bytes.byteLength,0);console.log(` ${S.length} extra files: ${(le/1024).toFixed(1)} KiB`);let y;a&&(y=te(a));let f,O,N;if(u){if(f=te(u),O=u.endsWith(".mp4")?"video/mp4":u.endsWith(".gif")?"image/gif":"video/webm",b){let n=Number(b);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${b}`),await m(),process.exit(1)),N=Math.round(n)}console.log(` attaching flow video: ${(f.byteLength/1024).toFixed(1)} KiB (${O})`)}let c=Q(),ue=D();J({event:"preview_upload_started",identity:{userId:c?.kind==="session"?ue?.user?.id??null:null,repoId:c?.kind==="github"?c.repoId:null,installationId:c?.kind==="github"?c.installationId??null:null},properties:{origin:s,hasAuth:!!c,authMode:c?.kind??"none",bundleBytes:d.byteLength,isTransformed:A,extraFiles:S.length,recordedFetches:g.length,hasEvents:!!y,hasVideo:!!f}}),c||(console.error(" preview uploads need auth."),console.error(" set SOOTSIM_API_KEY=sk_sootsim_..., run `sootsim login`, or use the soot github runner."),await m(),process.exit(1));let ce=X(c),de=(()=>{try{return new URL(l.bundleUrl).origin}catch{return null}})(),W=(n,i,T,F,I,R,ye)=>{let V=Z(R),me=V?ne(n):n;return{url:i,urlhash:T,method:F,bodyHash:I,contentType:R,responseHeaders:ye,bytes:me,encoding:V?"gzip":void 0}},E=[...S.map(n=>W(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders)),...g.map(n=>W(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders))],L=ne(d),pe=Te("sha256").update(d).digest("hex");console.log(` bundle raw=${(d.byteLength/1024).toFixed(1)} KiB gz=${(L.byteLength/1024).toFixed(1)} KiB`);let ge={contentHash:pe,bundleSizeBytes:d.byteLength,bundleContentType:$e(l.bundleUrl),bundleEncoding:"gzip",bundleOrigin:de,entry:l.entry,isTransformed:A,deviceSpec:l.deviceSpec,installationId:c.kind==="github"?c.installationId??void 0:void 0,repoId:c.kind==="github"?c.repoId:void 0,files:E.map(n=>({url:n.url,urlhash:n.urlhash,method:n.method,bodyHash:n.bodyHash,contentType:n.contentType,responseHeaders:n.responseHeaders,encoding:n.encoding,sizeBytes:n.bytes.byteLength})),events:y?{sizeBytes:y.byteLength}:void 0,flowVideo:f&&O?{sizeBytes:f.byteLength,contentType:O,durationMs:N}:void 0},j=new Map;for(let n of E)j.set(n.urlhash,n.bytes);let fe=Date.now(),$=L.byteLength;for(let n of E)$+=n.bytes.byteLength;y&&($+=y.byteLength),f&&($+=f.byteLength);let he=`${B(s)}/api/preview/upload/init`;console.log(` init: ${he}`);let k;try{let n=await ee({originBase:s,initBody:ge,bundleBytes:L,filesByHash:j,extras:{eventsBytes:y,videoBytes:f},authHeader:ce,concurrency:16});k=n.finalize;let i=1+n.init.files.length+(n.init.events?1:0)+(n.init.flowVideo?1:0);console.log(` PUT ${i} objects in ${Date.now()-fe}ms (${($/1024).toFixed(1)} KiB)`)}catch(n){let i=n;i.phase==="init"&&i.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await m(),process.exit(1)),i.status===402&&(console.error(` ${Ie(i.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await m(),process.exit(1)),console.error(` ${i.message??`${i.phase??"upload"} failed: ${String(n)}`}`),await m(),process.exit(1)}let G=`${o}${k.url}`;console.log(`
|
|
66
|
-
stored ${k.filesStored??0} extra files`),console.log(` preview: ${G}`),p&&await K(G),await m()}export{Ue as a,Se as b,Ve as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as a,e as b,f as c,g as d,h as e,i as f,j as g,k as h,l as i,m as j,n as k,o as l,p as m,q as n,r as o}from"./chunk-LKJI7RRW.js";import"./chunk-RKUDWRIN.js";import"./chunk-T5TDH2UO.js";import"./chunk-DJIQVKM6.js";import"./chunk-DSLBZC6J.js";import"./chunk-HERZHQFG.js";import"./chunk-X3QWOTLT.js";import"./chunk-XHD3XCT5.js";import"./chunk-2GAZ3JW7.js";import"./chunk-YJIQYIHM.js";import"./chunk-WN4XOOK5.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.js";export{d as buildOpenUrl,c as buildShellUrl,n as planBulkCloseTargets,h as playwrightHostPidForSim,f as printConnectedSims,a as resolveBundleTarget,b as resolveDefaultShellBaseUrl,m as runClaimCommand,o as runCloseCommand,l as runFocusCommand,i as runListCommand,j as runOpenCommand,k as runUseCommand,e as summarizeSimUrl,g as waitForSimMatch};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-CETSCOUK.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-HERZHQFG.js";import"./chunk-X3QWOTLT.js";import"./chunk-XHD3XCT5.js";import"./chunk-2GAZ3JW7.js";import"./chunk-YJIQYIHM.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.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.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-34PKFCEI.js";import"./chunk-ZV2TI6OH.js";import"./chunk-KY2VMN66.js";import"./chunk-VGD57MTN.js";import"./chunk-M4CADRP5.js";import"./chunk-UVDVALC7.js";import{d as a,e as b}from"./chunk-YGMHOMAJ.js";import"./chunk-LKJI7RRW.js";import"./chunk-RKUDWRIN.js";import"./chunk-T5TDH2UO.js";import"./chunk-DJIQVKM6.js";import"./chunk-DSLBZC6J.js";import"./chunk-HERZHQFG.js";import"./chunk-X3QWOTLT.js";import"./chunk-XHD3XCT5.js";import"./chunk-2GAZ3JW7.js";import"./chunk-YJIQYIHM.js";import"./chunk-PXRELDJJ.js";import"./chunk-WN4XOOK5.js";import"./chunk-3R3BQDKC.js";import"./chunk-ALDKVFW3.js";import"./chunk-G4GM43A7.js";import"./chunk-BT6IVKHN.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.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.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-6X3I2LF4.js";import"./chunk-OBL6OIK5.js";import"./chunk-N63QYSHT.js";import"./chunk-3R3BQDKC.js";import"./chunk-ALDKVFW3.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.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,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-L3MRXOBW.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-R6ZTREB6.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.js";export{a as runRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-6X3I2LF4.js";import"./chunk-OBL6OIK5.js";import"./chunk-N63QYSHT.js";import"./chunk-3R3BQDKC.js";import"./chunk-ALDKVFW3.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.js";export{a as runSetupRepo};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.64 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-M4CADRP5.js";import"./chunk-UVDVALC7.js";import"./chunk-XHD3XCT5.js";import"./chunk-YJIQYIHM.js";import"./chunk-3R3BQDKC.js";import"./chunk-ALDKVFW3.js";import"./chunk-SVT7H2QF.js";import"./chunk-346HJVD6.js";import"./chunk-OBSMT5TS.js";import"./chunk-WKVIKFMU.js";import"./chunk-J6TCNU6W.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|