sootsim 0.1.90 → 0.1.91
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-KD75M5AD.js → agent-RDJ5OOIL.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-Q3R2VGWQ.js → agent-wrapper-K2XIYABM.js} +2 -2
- package/dist-cli/chunks/{assert-TH3EF5UK.js → assert-MOH6CTD2.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-24A5RRBQ.js +2 -0
- package/dist-cli/chunks/beta-IGE75E4B.js +2 -0
- package/dist-cli/chunks/{chunk-7CA35CG7.js → chunk-2Q32WWKY.js} +1 -1
- package/dist-cli/chunks/{chunk-SDQLAKCM.js → chunk-3EQCMOTV.js} +3 -3
- package/dist-cli/chunks/{chunk-J6RB33XR.js → chunk-3FMTRV2A.js} +2 -2
- package/dist-cli/chunks/{chunk-4SJS4UO3.js → chunk-3IUIN356.js} +1 -1
- package/dist-cli/chunks/{chunk-5JMOVKGM.js → chunk-4DTA5UKZ.js} +2 -2
- package/dist-cli/chunks/chunk-4WUXZXWE.js +1 -0
- package/dist-cli/chunks/{chunk-RRDHCABJ.js → chunk-54EVAG4O.js} +1 -1
- package/dist-cli/chunks/{chunk-F3XCNXOY.js → chunk-5DYLJJRL.js} +2 -2
- package/dist-cli/chunks/{chunk-4INIBCYZ.js → chunk-63E34ET7.js} +2 -2
- package/dist-cli/chunks/{chunk-J64TT3CL.js → chunk-6R3S7M66.js} +2 -2
- package/dist-cli/chunks/{chunk-J6Y3O6KO.js → chunk-7HFHTCKD.js} +2 -2
- package/dist-cli/chunks/{chunk-VFIXAYS5.js → chunk-7WLL6LH4.js} +2 -2
- package/dist-cli/chunks/{chunk-L2TEJXVI.js → chunk-ACWM3RKN.js} +2 -2
- package/dist-cli/chunks/{chunk-6UFYAXFV.js → chunk-APQYD7HL.js} +2 -2
- package/dist-cli/chunks/{chunk-GPYYSXEX.js → chunk-AWEEXX2S.js} +5 -5
- package/dist-cli/chunks/{chunk-WLBHB55Z.js → chunk-B6NQHHMB.js} +2 -2
- package/dist-cli/chunks/chunk-D3J6G7JL.js +2 -0
- package/dist-cli/chunks/{chunk-5YAADNTI.js → chunk-DFDRE6OB.js} +1 -1
- package/dist-cli/chunks/{chunk-PAK43NT5.js → chunk-DUPGSOQC.js} +1 -1
- package/dist-cli/chunks/{chunk-YR3LVC5V.js → chunk-HUUC3TYH.js} +1 -1
- package/dist-cli/chunks/{chunk-DLT5ZB63.js → chunk-J6GWUBW3.js} +2 -2
- package/dist-cli/chunks/{chunk-EXBBXVB3.js → chunk-KRZU6LRW.js} +2 -2
- package/dist-cli/chunks/{chunk-5KOQJGIB.js → chunk-LQQUA6BP.js} +2 -2
- package/dist-cli/chunks/{chunk-YNAHQ7QZ.js → chunk-MERAEG54.js} +1 -1
- package/dist-cli/chunks/{chunk-ZCTYC33O.js → chunk-NAB63JVH.js} +1 -1
- package/dist-cli/chunks/chunk-OT7LR5RE.js +1 -0
- package/dist-cli/chunks/{chunk-PKLG3XOP.js → chunk-QWYIMQHF.js} +1 -1
- package/dist-cli/chunks/{chunk-6TCGDWMB.js → chunk-QX6G6HA2.js} +1 -1
- package/dist-cli/chunks/{chunk-NOGTBNWP.js → chunk-RL7P7EQA.js} +2 -2
- package/dist-cli/chunks/{chunk-AR3LYAV5.js → chunk-SISOWHRQ.js} +3 -3
- package/dist-cli/chunks/{chunk-CLPPEWVH.js → chunk-T3CUB2ZH.js} +2 -2
- package/dist-cli/chunks/{chunk-CM27M3L2.js → chunk-T77FN74G.js} +2 -2
- package/dist-cli/chunks/{chunk-DMGC4JSN.js → chunk-TBIILRLW.js} +3 -3
- package/dist-cli/chunks/chunk-TVRQ3SOL.js +79 -0
- package/dist-cli/chunks/{chunk-UQ4PTAAN.js → chunk-UBF3TGKU.js} +2 -2
- package/dist-cli/chunks/{chunk-5QE7QJZ5.js → chunk-VFFWR44I.js} +1 -1
- package/dist-cli/chunks/{chunk-STC3XOWJ.js → chunk-VQSP53OC.js} +2 -2
- package/dist-cli/chunks/{chunk-426P5244.js → chunk-W3AG5PFE.js} +2 -2
- package/dist-cli/chunks/{chunk-L2JE65ES.js → chunk-W7I7OUOK.js} +1 -1
- package/dist-cli/chunks/chunk-WQQQQZUL.js +2 -0
- package/dist-cli/chunks/chunk-XVHJZCMT.js +1 -0
- package/dist-cli/chunks/{chunk-O33KUMYB.js → chunk-Y53I2KD4.js} +1 -1
- package/dist-cli/chunks/{chunk-6HC2ZXG5.js → chunk-YK4I75GA.js} +1 -1
- package/dist-cli/chunks/cli-version-B7YMJ7C3.js +2 -0
- package/dist-cli/chunks/{compat-77GP6QPI.js → compat-XMDCTR7Q.js} +3 -3
- package/dist-cli/chunks/{config-J3NXEG6L.js → config-6EJMWP2Q.js} +2 -2
- package/dist-cli/chunks/{control-OSUGPLYY.js → control-OQTVATE3.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-H2OKMLRW.js → cpu-profile-3K4EHQGQ.js} +2 -2
- package/dist-cli/chunks/{daemon-2GFPR7I2.js → daemon-OIVJUCY4.js} +2 -2
- package/dist-cli/chunks/{debug-RFR6G6MI.js → debug-EUROZ7TJ.js} +3 -3
- package/dist-cli/chunks/{detox-2TZ5KWG5.js → detox-H2BVWCR3.js} +2 -2
- package/dist-cli/chunks/{device-YCVGUSQX.js → device-GIPGWDDE.js} +2 -2
- package/dist-cli/chunks/{diagnose-F2QUL24I.js → diagnose-AM5HDCQZ.js} +2 -2
- package/dist-cli/chunks/drivers-FHFWDATI.js +2 -0
- package/dist-cli/chunks/{electron-M67IM3CU.js → electron-QUB2SALE.js} +3 -3
- package/dist-cli/chunks/flow-M7CBSQZU.js +2 -0
- package/dist-cli/chunks/help-YQ6FPCDR.js +2 -0
- package/dist-cli/chunks/{hints-MHQ2TYMZ.js → hints-6CRRYE4S.js} +2 -2
- package/dist-cli/chunks/{home-paths-BSHVFKLZ.js → home-paths-GRVUKYNB.js} +2 -2
- package/dist-cli/chunks/{inspect-6GEJLBYU.js → inspect-EOMNE3FJ.js} +3 -3
- package/dist-cli/chunks/install-LQPKZ4RZ.js +2 -0
- package/dist-cli/chunks/{install-desktop-DBBE3NZ7.js → install-desktop-XZWIGLQT.js} +3 -3
- package/dist-cli/chunks/{keys-UHEFYJ7F.js → keys-IY6T6KCR.js} +2 -2
- package/dist-cli/chunks/{launch-WRAOCKFK.js → launch-BAZXORER.js} +3 -3
- package/dist-cli/chunks/{login-DA6A6G3P.js → login-VOJRQBIA.js} +4 -4
- package/dist-cli/chunks/{logout-4P7VYC6H.js → logout-VO3X64AP.js} +2 -2
- package/dist-cli/chunks/{maestro-2VGZWS74.js → maestro-FSBGGAAM.js} +2 -2
- package/dist-cli/chunks/{preview-FYPJ7LBC.js → preview-27HTOBLN.js} +2 -2
- package/dist-cli/chunks/{profile-LMDMTRS3.js → profile-MQJB6RE7.js} +2 -2
- package/dist-cli/chunks/{react-TQCFRFTZ.js → react-6M6SL4E4.js} +2 -2
- package/dist-cli/chunks/{record-7NOURJWW.js → record-6T6IEYQU.js} +2 -2
- package/dist-cli/chunks/runtime-PFOAMDWK.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-QYMC2O4K.js → runtime-delivery-O27SF4YJ.js} +2 -2
- package/dist-cli/chunks/{screenshot-2D5ARVGS.js → screenshot-S4XVNQWB.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-7UAZLCAI.js → screenshot-mode-NRJVIBSH.js} +2 -2
- package/dist-cli/chunks/{screenshots-QRQZ5TKT.js → screenshots-6DEGG6X3.js} +2 -2
- package/dist-cli/chunks/{server-7NUNZUAU.js → server-VZC2QSL7.js} +2 -2
- package/dist-cli/chunks/setup-repo-WGDJ6VJ2.js +2 -0
- package/dist-cli/chunks/{skills-QTHZLE2W.js → skills-FWHY4IXO.js} +2 -2
- package/dist-cli/chunks/{start-67SRUSA3.js → start-AEQJJVJX.js} +4 -4
- package/dist-cli/chunks/store-G3Z5MP57.js +2 -0
- package/dist-cli/chunks/telemetry-74YV3IF3.js +2 -0
- package/dist-cli/chunks/{test-S5JPM6FI.js → test-OKNHRAIV.js} +3 -3
- package/dist-cli/chunks/{three-mode-D2FJPWAP.js → three-mode-GDBEW2PB.js} +2 -2
- package/dist-cli/chunks/{timeline-7TK34VYF.js → timeline-YIZEXSB3.js} +2 -2
- package/dist-cli/chunks/{upgrade-IXQVUL3N.js → upgrade-XJTQY36G.js} +2 -2
- package/dist-cli/chunks/upload-6VFUC5HN.js +2 -0
- package/dist-cli/chunks/{web-ZRY3Z6Z2.js → web-MOMUT4FJ.js} +2 -2
- package/dist-cli/chunks/{what-happened-2APFGIJF.js → what-happened-W2YJQSUS.js} +2 -2
- package/dist-cli/chunks/{whoami-SRIIDCZR.js → whoami-GRP3K4G3.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/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +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/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/demo-app-registry.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/auto-bootstrap-SX2UKCBF.js +0 -2
- package/dist-cli/chunks/beta-62D6UWKF.js +0 -2
- package/dist-cli/chunks/chunk-MKESTT4L.js +0 -2
- package/dist-cli/chunks/chunk-PE3O45IA.js +0 -1
- package/dist-cli/chunks/chunk-U7DSWHLT.js +0 -79
- package/dist-cli/chunks/chunk-YT4EDHZS.js +0 -1
- package/dist-cli/chunks/chunk-Z4YIG3WU.js +0 -2
- package/dist-cli/chunks/chunk-ZQTCNGCU.js +0 -1
- package/dist-cli/chunks/cli-version-Q5NCSSZM.js +0 -2
- package/dist-cli/chunks/drivers-I4VYF6F4.js +0 -2
- package/dist-cli/chunks/flow-5RHNQDZL.js +0 -2
- package/dist-cli/chunks/help-QWUUBYOH.js +0 -2
- package/dist-cli/chunks/install-EJE5JRX5.js +0 -2
- package/dist-cli/chunks/runtime-W3PIKRLN.js +0 -2
- package/dist-cli/chunks/setup-repo-OQC6ITL2.js +0 -2
- package/dist-cli/chunks/store-PTOBLYPI.js +0 -2
- package/dist-cli/chunks/telemetry-BYEGQXDF.js +0 -2
- package/dist-cli/chunks/upload-KMIK2ZLD.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.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as y,L as x,y as F,z as T}from"./chunk-HUUC3TYH.js";import{c as S,e as N}from"./chunk-T3CUB2ZH.js";import{b as k}from"./chunk-QWYIMQHF.js";import"./chunk-WQQQQZUL.js";import"./chunk-2Q32WWKY.js";import"./chunk-YK4I75GA.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.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as i}from"./chunk-LQQUA6BP.js";import{d as n}from"./chunk-J6GWUBW3.js";import"./chunk-2Q32WWKY.js";import"./chunk-YK4I75GA.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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.91 | (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.91 | (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.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
|
|
3
3
|
// src/host/fetch-proxy-overrides.ts
|
|
4
4
|
var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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.91 | (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/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.91 | (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.91 | (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.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-AR3LYAV5.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-Z4YIG3WU.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as ae,e as le,f as ce}from"./chunk-5KOQJGIB.js";import{c as se,e as ie,g as B}from"./chunk-CLPPEWVH.js";import{d as oe}from"./chunk-PAK43NT5.js";import{a as re,b as T}from"./chunk-4INIBCYZ.js";import{a as ne}from"./chunk-DLT5ZB63.js";import{createHash as Ee}from"crypto";import{readFileSync as D}from"fs";import{gzipSync as pe}from"zlib";function de(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 V(e,t){let r=new AbortController,o=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(o)}}async function Se(e){let t=V(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 o=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${o.slice(0,200)}`)}}async function _e(e,t=8,r){let o=0,s=0,i=e.length;await Promise.all(Array.from({length:Math.min(t,i)},async()=>{for(;o<i;){let l=e[o++];await Se(l),s++,r?.(s,i)}}))}function $e(e,t,r,o){let s=[];s.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let i of e.files){let l=r.get(i.urlhash);l&&s.push({url:i.putUrl,contentType:i.contentType,bytes:l})}e.events&&o?.eventsBytes&&s.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:o.eventsBytes}),e.flowVideo&&o?.videoBytes&&s.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:o.videoBytes}),e.storage&&o?.storageBytes&&s.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:o.storageBytes});for(let i of e.snapshots??[]){let l=o?.snapshotBytes?.get(i.id);l&&s.push({url:i.putUrl,contentType:i.contentType,bytes:l})}return s}function ke(e){return e.replace(/\/+$/,"")}var z=class extends Error{constructor(r,o,s,i=""){super(r);this.status=o;this.phase=s;this.responseText=i;this.name="PresignedUploadError"}};async function ue(e){let t=ke(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-soot-admin-upload-bypass"]=e.adminBypassToken);let o=V(3e4,"init"),s;try{s=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:o.signal})}finally{o.cancel()}if(!s.ok){let p=await s.text().catch(()=>"");throw new z(`init failed: ${s.status} ${p.slice(0,200)}`,s.status,"init",p)}let i=await s.json(),l=$e(i,e.bundleBytes,e.filesByHash,e.extras);await _e(l,e.concurrency??8,e.onPutProgress);let h=V(3e4,"finalize"),d;try{d=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:i.token}),signal:h.signal})}finally{h.cancel()}if(!d.ok){let p=await d.text().catch(()=>"");throw new z(`finalize failed: ${d.status} ${p.slice(0,200)}`,d.status,"finalize",p)}let S=await d.json();return{init:i,finalize:S}}function Le(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 ye=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",me=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",j="http://localhost:3000";async function ze(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${j}/api/preview/upload/init`,{method:"OPTIONS"});if(t.ok||t.status===204||t.status===405)return j}catch{}return ye}function O(e){return e.replace(/\/$/,"")}function Ae(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 Fe(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function Me(e,t){return t?O(t):process.env.SOOTSIM_PREVIEW_ORIGIN?O(process.env.SOOTSIM_PREVIEW_ORIGIN):Ae(e)?O(e):Fe(e)?O(me):O(e)}function He(){console.log(`
|
|
3
|
-
sootsim upload \u2014 publish the current recorded bundle as a /preview/<id> link
|
|
4
|
-
|
|
5
|
-
usage:
|
|
6
|
-
sootsim upload [--origin <url>] [--public-origin <url>] (--events <path> | --video <path>) [--screenshot <path>] [--owner <org> --repo <repo>] [--sim <sim>] [--open] [--assets-only]
|
|
7
|
-
|
|
8
|
-
options:
|
|
9
|
-
--origin <url> upload target (default: auto)
|
|
10
|
-
prefers ${j} when available, otherwise
|
|
11
|
-
falls back to ${ye}
|
|
12
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
13
|
-
--public-origin <url>
|
|
14
|
-
public /preview link origin (default: ${me}
|
|
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
|
-
required unless --video is present; previews must
|
|
19
|
-
have replay or recording playback data
|
|
20
|
-
--screenshot <path>
|
|
21
|
-
path to a PNG thumbnail to attach to the share
|
|
22
|
-
--video <path> path to a webm/mp4/gif flow recording. embedded inline
|
|
23
|
-
in the pr sticky comment served at
|
|
24
|
-
/api/preview/flow-video?id=<share-id>
|
|
25
|
-
--video-duration-ms <ms>
|
|
26
|
-
duration hint for attached flow video
|
|
27
|
-
--owner <org> associate a session upload with a linked org repo
|
|
28
|
-
--repo <repo> repo name for --owner; the signed-in user must belong
|
|
29
|
-
to the local/org team that owns the link
|
|
30
|
-
--sim <sim> target a specific sim (see: sootsim list)
|
|
31
|
-
--open open the resulting /preview/<id> url in the browser
|
|
32
|
-
--assets-only drop API/JSON/HTML records before upload; keep images,
|
|
33
|
-
fonts, css, js, and binary blobs. live-data demos hit
|
|
34
|
-
the real network at replay time instead of serving
|
|
35
|
-
recorded API snapshots
|
|
36
|
-
-h, --help
|
|
37
|
-
|
|
38
|
-
examples:
|
|
39
|
-
sootsim upload --events ./my-session.jsonl.gz
|
|
40
|
-
sootsim upload --origin http://localhost:3000 --events ./my-session.jsonl.gz --open
|
|
41
|
-
sootsim upload --video /tmp/soot-flow.webm --video-duration-ms 12000
|
|
42
|
-
`)}function w(e,t){let r=e.findIndex(s=>s===t);if(r<0)return;let o=e[r+1];return e.splice(r,2),o}function fe(e,t){let r=e.findIndex(o=>o===t);return r<0?!1:(e.splice(r,1),!0)}function ge(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 he(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 Ne(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Ce(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 We(e,t){let o=[];for(let s=0;s<t;s+=15e5){let i=Math.min(s+15e5,t),l=await B(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${s}, ${i})`);if(typeof l!="string")return null;o.push(l)}return o.join("")}function G(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function nt(e,t){(e.includes("--help")||e.includes("-h"))&&(He(),process.exit(0));let r=[...e],o=await ze(w(r,"--origin")),s=Me(o,w(r,"--public-origin")),i=w(r,"--events"),l=w(r,"--screenshot"),h=w(r,"--video"),d=w(r,"--video-duration-ms"),S=w(r,"--owner"),p=w(r,"--repo"),we=fe(r,"--open");(S&&!p||!S&&p)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),!i&&!h&&(console.error(" preview uploads require playback data: pass --events or --video.\n for a normal local preview, use `sootsim record --mode combined --open`\n or `sootsim flow --preview` instead of uploading a bundle-only snapshot."),process.exit(1));let J=fe(r,"--assets-only"),be=se(r,{stripBooleanFlags:[],stripValueFlags:[]}),b=ie(be),c,K=[],y=[],A=null;try{if(c=await B(b,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),c?.bundleUrl){let n=new URL(c.bundleUrl).origin,[a,C]=await Promise.all([B(b,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(n)}) || [])`),B(b,`(async () => {
|
|
43
|
-
const list = window.__sootsimListWorkerFetchRecorder
|
|
44
|
-
return typeof list === 'function'
|
|
45
|
-
? await list(${JSON.stringify(n)})
|
|
46
|
-
: []
|
|
47
|
-
})()`)]);K=G([...a,...C]).filter(u=>{try{return!new URL(u.url).pathname.startsWith("/api/")}catch{return!0}});let $=await B(b,`(async () => {
|
|
48
|
-
const rec = window.__sootsimPreviewRecorder
|
|
49
|
-
const workerList = window.__sootsimListWorkerFetchRecorder
|
|
50
|
-
return {
|
|
51
|
-
main: rec?.list ? rec.list() : [],
|
|
52
|
-
worker: typeof workerList === 'function' ? await workerList() : [],
|
|
53
|
-
}
|
|
54
|
-
})()`),R=($?G([...$.main,...$.worker]):[]).filter(u=>{try{return new URL(u.url).origin!==n}catch{return!1}}),U=R.length>0?{count:R.length,totalBytes:R.reduce((u,x)=>u+(x.size||0),0)}:null;if(U&&U.count>0){console.log(` ${U.count} recorded cross-origin responses (${(U.totalBytes/1024).toFixed(1)} KiB)`);let u=await B(b,`(async () => {
|
|
55
|
-
const rec = window.__sootsimPreviewRecorder
|
|
56
|
-
const workerDump = window.__sootsimDumpWorkerFetchRecorder
|
|
57
|
-
const bundleUrl = ${JSON.stringify(c.bundleUrl)}
|
|
58
|
-
const keep = (r) => {
|
|
59
|
-
try {
|
|
60
|
-
const u = new URL(r.url)
|
|
61
|
-
if (u.origin !== ${JSON.stringify(n)}) return true
|
|
62
|
-
// bundle-origin api responses came from the rewritten
|
|
63
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
64
|
-
// recorder's unwrap step). they need bodies attached the
|
|
65
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
66
|
-
// the dev server lacks the bundle's session cookies.
|
|
67
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
68
|
-
return false
|
|
69
|
-
} catch { return false }
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
main: rec?.dump ? rec.dump().filter(keep) : [],
|
|
73
|
-
worker: typeof workerDump === 'function'
|
|
74
|
-
? (await workerDump()).filter(keep)
|
|
75
|
-
: [],
|
|
76
|
-
}
|
|
77
|
-
})()`);if(y=G([...u.main,...u.worker]),J){let x=y.length;y=y.filter(q=>ge(q.contentType));let W=U.totalBytes-y.reduce((q,Oe)=>q+(Oe.size||0),0);console.log(` --assets-only: kept ${y.length}/${x} records (dropped ${(W/1024).toFixed(1)} KiB of API responses)`)}}}c?.transformedBundle&&(A=await We(b,c.transformedBundle.byteLength))}finally{b.close()}c||(console.error(" could not read bundle snapshot \u2014 is sootsim running and is the bundle loaded?"),process.exit(2)),c.bundleUrl||(console.error(` no ?bundle= URL on the current sootsim tab.
|
|
78
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let f,F=!1;if(A!==null)f=new TextEncoder().encode(A),F=!0,console.log(` using post-transform bundle: ${(f.byteLength/1024).toFixed(1)} KiB`);else{let n=Ce(c.bundleUrl);n!==c.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),f=await he(n),console.log(` main bundle: ${(f.byteLength/1024).toFixed(1)} KiB`)}let k=K.filter(n=>n.url!==c.bundleUrl);J&&(k=k.filter(n=>ge(n.contentType))),console.log(` fetching ${k.length} extra files\u2026`);let E=(await Promise.all(k.map(async n=>{try{let a=await he(n.url);return{...n,bytes:a}}catch(a){return console.error(` warning: failed to re-fetch ${n.url}: ${a instanceof Error?a.message:a}`),null}}))).filter(n=>!!n),ve=E.reduce((n,a)=>n+a.bytes.byteLength,0);console.log(` ${E.length} extra files: ${(ve/1024).toFixed(1)} KiB`);let v;i&&(v=D(i));let g;l&&(g=D(l),console.log(` attaching screenshot: ${(g.byteLength/1024).toFixed(1)} KiB`));let m,L,Y;if(h){if(m=D(h),L=h.endsWith(".mp4")?"video/mp4":h.endsWith(".gif")?"image/gif":"video/webm",d){let n=Number(d);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${d}`),await T(),process.exit(1)),Y=Math.round(n)}console.log(` attaching flow video: ${(m.byteLength/1024).toFixed(1)} KiB (${L})`)}let P=ae(),I=ce(P),Ue=ne();re({event:"preview_upload_started",identity:{userId:P?.kind==="session"?Ue?.user?.id??null:null,repoId:I?.repoId??null,installationId:I?.installationId??null},properties:{origin:o,hasAuth:!!P,authMode:P?.kind??"none",bundleBytes:f.byteLength,isTransformed:F,extraFiles:E.length,recordedFetches:y.length,hasEvents:!!v,hasScreenshot:!!g,hasVideo:!!m}}),P||(console.error(" preview uploads need auth."),console.error(" set SOOTSIM_API_KEY=sk_sootsim_..., run `sootsim login`, or use the soot github runner."),await T(),process.exit(1));let Te=le(P),Be=(()=>{try{return new URL(c.bundleUrl).origin}catch{return null}})(),Q=(n,a,C,$,te,R,U,u)=>{let x=de(R),W=x?pe(n):n;return{url:a,urlhash:C,method:$,bodyHash:te,requestVaryHash:u,contentType:R,responseHeaders:U,bytes:W,encoding:x?"gzip":void 0}},M=[...E.map(n=>Q(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...y.map(n=>Q(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash))],H=pe(f),Pe=Ee("sha256").update(f).digest("hex");console.log(` bundle raw=${(f.byteLength/1024).toFixed(1)} KiB gz=${(H.byteLength/1024).toFixed(1)} KiB`);let Ie={contentHash:Pe,bundleSizeBytes:f.byteLength,bundleContentType:Ne(c.bundleUrl),bundleEncoding:"gzip",bundleOrigin:Be,entry:c.entry,isTransformed:F,deviceSpec:c.deviceSpec,installationId:I?.installationId??void 0,repoId:I?.repoId,owner:S??I?.owner,repo:p??I?.repo,files:M.map(n=>({url:n.url,urlhash:n.urlhash,method:n.method,bodyHash:n.bodyHash,contentType:n.contentType,responseHeaders:n.responseHeaders,requestVaryHash:n.requestVaryHash,encoding:n.encoding,sizeBytes:n.bytes.byteLength})),events:v?{sizeBytes:v.byteLength}:void 0,snapshots:g?[{id:"landing",label:"Landing",kind:"landing",t:0,contentType:"image/png",sizeBytes:g.byteLength}]:void 0,flowVideo:m&&L?{sizeBytes:m.byteLength,contentType:L,durationMs:Y}:void 0},X=new Map;for(let n of M)X.set(n.urlhash,n.bytes);let Z=new Map;g&&Z.set("landing",g);let Re=Date.now(),_=H.byteLength;for(let n of M)_+=n.bytes.byteLength;v&&(_+=v.byteLength),g&&(_+=g.byteLength),m&&(_+=m.byteLength);let xe=`${O(o)}/api/preview/upload/init`;console.log(` init: ${xe}`);let N;try{let n=await ue({originBase:o,initBody:Ie,bundleBytes:H,filesByHash:X,extras:{eventsBytes:v,videoBytes:m,snapshotBytes:Z},authHeader:Te,concurrency:16});N=n.finalize;let a=1+n.init.files.length+(n.init.events?1:0)+n.init.snapshots.length+(n.init.flowVideo?1:0);console.log(` PUT ${a} objects in ${Date.now()-Re}ms (${(_/1024).toFixed(1)} KiB)`)}catch(n){let a=n;a.phase==="init"&&a.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await T(),process.exit(1)),a.status===402&&(console.error(` ${Le(a.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await T(),process.exit(1)),console.error(` ${a.message??`${a.phase??"upload"} failed: ${String(n)}`}`),await T(),process.exit(1)}let ee=`${s}${N.url}`;console.log(`
|
|
79
|
-
stored ${N.filesStored??0} extra files`),console.log(` preview: ${ee}`),we&&await oe(ee),await T()}export{ze as a,Me as b,nt as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-PE3O45IA.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-STC3XOWJ.js";import"./chunk-ZCTYC33O.js";import"./chunk-YT4EDHZS.js";import"./chunk-6UFYAXFV.js";import"./chunk-PAK43NT5.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.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.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-DMGC4JSN.js";import"./chunk-EXBBXVB3.js";import"./chunk-ZQTCNGCU.js";import"./chunk-J6RB33XR.js";import"./chunk-U7DSWHLT.js";import"./chunk-5KOQJGIB.js";import{d as a,e as b}from"./chunk-5JMOVKGM.js";import"./chunk-GPYYSXEX.js";import"./chunk-L2TEJXVI.js";import"./chunk-J64TT3CL.js";import"./chunk-YR3LVC5V.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-STC3XOWJ.js";import"./chunk-ZCTYC33O.js";import"./chunk-YT4EDHZS.js";import"./chunk-6UFYAXFV.js";import"./chunk-PAK43NT5.js";import"./chunk-4INIBCYZ.js";import"./chunk-DLT5ZB63.js";import"./chunk-CM27M3L2.js";import"./chunk-MKESTT4L.js";import"./chunk-Z4YIG3WU.js";import"./chunk-UQ4PTAAN.js";import"./chunk-O33KUMYB.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.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.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-NOGTBNWP.js";import"./chunk-CM27M3L2.js";import"./chunk-RRDHCABJ.js";import"./chunk-MKESTT4L.js";import"./chunk-Z4YIG3WU.js";import"./chunk-5QE7QJZ5.js";import"./chunk-L2JE65ES.js";import"./chunk-O33KUMYB.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-426P5244.js";import"./chunk-YNAHQ7QZ.js";import"./chunk-AR3LYAV5.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-4INIBCYZ.js";import"./chunk-DLT5ZB63.js";import"./chunk-Z4YIG3WU.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.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.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-SDQLAKCM.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-Z4YIG3WU.js";import"./chunk-WLBHB55Z.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.js";export{a as runRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-426P5244.js";import"./chunk-YNAHQ7QZ.js";import"./chunk-AR3LYAV5.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-4INIBCYZ.js";import"./chunk-DLT5ZB63.js";import"./chunk-Z4YIG3WU.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.js";export{a as runSetupRepo};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.90 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-U7DSWHLT.js";import"./chunk-5KOQJGIB.js";import"./chunk-CLPPEWVH.js";import"./chunk-PKLG3XOP.js";import"./chunk-YT4EDHZS.js";import"./chunk-PAK43NT5.js";import"./chunk-4INIBCYZ.js";import"./chunk-DLT5ZB63.js";import"./chunk-Z4YIG3WU.js";import"./chunk-7CA35CG7.js";import"./chunk-6HC2ZXG5.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|