sootsim 0.1.79 → 0.1.81
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-WLXLRH5W.js → agent-UJBKYOCB.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-UMSSI7PR.js → agent-wrapper-PQAB6NSJ.js} +2 -2
- package/dist-cli/chunks/{assert-PZFBBI2C.js → assert-KCFN2HRU.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-MAZA7QWP.js +2 -0
- package/dist-cli/chunks/beta-KO7G2QIW.js +2 -0
- package/dist-cli/chunks/chunk-25TQ7F5P.js +3 -0
- package/dist-cli/chunks/{chunk-KG3QK6SU.js → chunk-2IPRONLT.js} +2 -2
- package/dist-cli/chunks/chunk-2UBJ3CHB.js +2 -0
- package/dist-cli/chunks/{chunk-6CV5PWVX.js → chunk-3ITP5DCL.js} +2 -2
- package/dist-cli/chunks/{chunk-ADEUNGCS.js → chunk-ADIYZB6J.js} +2 -2
- package/dist-cli/chunks/chunk-APWBBUFX.js +1 -0
- package/dist-cli/chunks/{chunk-64NCRZOM.js → chunk-BAPYWOQJ.js} +2 -2
- package/dist-cli/chunks/{chunk-5AAA62L3.js → chunk-BOFDWCQB.js} +1 -1
- package/dist-cli/chunks/chunk-BXC7K7RO.js +1 -0
- package/dist-cli/chunks/{chunk-HPBM7EC3.js → chunk-CIYIOZPN.js} +2 -2
- package/dist-cli/chunks/{chunk-HD3DOMR4.js → chunk-EQXJOORV.js} +3 -3
- package/dist-cli/chunks/{chunk-DWNMVYQF.js → chunk-G7OOSA3T.js} +2 -2
- package/dist-cli/chunks/{chunk-GWVNIC6J.js → chunk-GFLMBF36.js} +2 -2
- package/dist-cli/chunks/{chunk-MGWNYNHJ.js → chunk-GJ645NI4.js} +1 -1
- package/dist-cli/chunks/{chunk-BCLUAKGI.js → chunk-GLWFGEVP.js} +2 -2
- package/dist-cli/chunks/{chunk-RQHYUZ62.js → chunk-GQTUQIQ4.js} +1 -1
- package/dist-cli/chunks/{chunk-WLTORRDJ.js → chunk-II5KVWDI.js} +2 -2
- package/dist-cli/chunks/{chunk-BMMKT26A.js → chunk-IWIHTU2Q.js} +2 -2
- package/dist-cli/chunks/{chunk-YJYBY2MG.js → chunk-J4CA4F74.js} +1 -1
- package/dist-cli/chunks/{chunk-XAULRRAP.js → chunk-JPP34M72.js} +1 -1
- package/dist-cli/chunks/{chunk-MIZQAHOG.js → chunk-JPSDR2TX.js} +2 -2
- package/dist-cli/chunks/{chunk-LKA24TJP.js → chunk-M2T6GWZU.js} +1 -1
- package/dist-cli/chunks/{chunk-S4JYGGXO.js → chunk-M7T4E7GA.js} +2 -2
- package/dist-cli/chunks/{chunk-ZTRDOWFN.js → chunk-MMHH4PMP.js} +3 -3
- package/dist-cli/chunks/chunk-N55OF7E4.js +73 -0
- package/dist-cli/chunks/{chunk-K5KRTTNP.js → chunk-P5KW7CBY.js} +2 -2
- package/dist-cli/chunks/{chunk-NNWW5IVI.js → chunk-PB4HZQET.js} +2 -2
- package/dist-cli/chunks/{chunk-UFFRP7MO.js → chunk-PC4TGQYJ.js} +1 -1
- package/dist-cli/chunks/{chunk-BWWLQJNX.js → chunk-Q3IYWRN6.js} +2 -2
- package/dist-cli/chunks/{chunk-ZST2MPRH.js → chunk-Q3JHBOX2.js} +2 -2
- package/dist-cli/chunks/{chunk-KZPH3WG2.js → chunk-Q6RYI3ND.js} +3 -3
- package/dist-cli/chunks/{chunk-2TMDPPFK.js → chunk-Q6TWLIUU.js} +2 -2
- package/dist-cli/chunks/chunk-ST2OBG6U.js +1 -0
- package/dist-cli/chunks/{chunk-OULQWEBM.js → chunk-T4B5WH56.js} +1 -1
- package/dist-cli/chunks/{chunk-BK7YEROW.js → chunk-T63O6JUH.js} +1 -1
- package/dist-cli/chunks/chunk-TRDL6X6C.js +2 -0
- package/dist-cli/chunks/{chunk-K2CR4VBD.js → chunk-VY2IT7TQ.js} +1 -1
- package/dist-cli/chunks/{chunk-ZDS7QMM4.js → chunk-WB5NVHYB.js} +1 -1
- package/dist-cli/chunks/{chunk-BFOOHNWY.js → chunk-XCV5NWEP.js} +1 -1
- package/dist-cli/chunks/{chunk-B7Z5UJSO.js → chunk-XZCOVJSW.js} +1 -1
- package/dist-cli/chunks/{chunk-7HB3MYOA.js → chunk-YBA4MUAF.js} +2 -2
- package/dist-cli/chunks/{chunk-PYT3LUEJ.js → chunk-YRSS436D.js} +2 -2
- package/dist-cli/chunks/{chunk-YIKXNRKP.js → chunk-ZK7QY7ST.js} +1 -1
- package/dist-cli/chunks/{chunk-KKFRYVLZ.js → chunk-ZRGZM4C4.js} +2 -2
- package/dist-cli/chunks/cli-version-IHSZB57Q.js +2 -0
- package/dist-cli/chunks/{compat-BNUQVULR.js → compat-WAEGXXEW.js} +3 -3
- package/dist-cli/chunks/{config-IPRZKCZY.js → config-3QXYGCBQ.js} +2 -2
- package/dist-cli/chunks/{control-SU4WTRYY.js → control-WZZJAPR3.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-A4OCUVVB.js → cpu-profile-KO62GNV5.js} +2 -2
- package/dist-cli/chunks/{daemon-OZXRPE7C.js → daemon-ZYFVG5SF.js} +2 -2
- package/dist-cli/chunks/{debug-E5GASYSP.js → debug-FAOUHIAG.js} +3 -3
- package/dist-cli/chunks/demo-app-registry-2S3DCN2E.js +2 -0
- package/dist-cli/chunks/{detox-U66TQWG2.js → detox-Q3W7JS3H.js} +2 -2
- package/dist-cli/chunks/{device-XDNDHYHW.js → device-42VLA5W5.js} +2 -2
- package/dist-cli/chunks/{diagnose-AKKYNDXW.js → diagnose-ZNWJM4X6.js} +2 -2
- package/dist-cli/chunks/drivers-IESTOEEK.js +2 -0
- package/dist-cli/chunks/{electron-QPROP36X.js → electron-PLULBHHF.js} +3 -3
- package/dist-cli/chunks/flow-OM3O5RPO.js +2 -0
- package/dist-cli/chunks/{hints-QDKJAFJ6.js → hints-PP6G2PN7.js} +2 -2
- package/dist-cli/chunks/{home-paths-DQJKE7L5.js → home-paths-L5MBP4Z6.js} +2 -2
- package/dist-cli/chunks/{inspect-OOASFJND.js → inspect-NXJZOWDT.js} +3 -3
- package/dist-cli/chunks/install-QFV6HS2J.js +2 -0
- package/dist-cli/chunks/{install-desktop-MBVZWN2E.js → install-desktop-44KTEOAW.js} +3 -3
- package/dist-cli/chunks/{keys-O5DPLQZN.js → keys-YPWK4LKD.js} +2 -2
- package/dist-cli/chunks/{launch-JPLNZ43Y.js → launch-D3SSPM33.js} +3 -3
- package/dist-cli/chunks/{login-MQVK55EH.js → login-3Q2JNIX7.js} +4 -4
- package/dist-cli/chunks/{logout-TE7EQQ2W.js → logout-FZRRJKOJ.js} +2 -2
- package/dist-cli/chunks/{maestro-V3LMXPNJ.js → maestro-DU2TXXRN.js} +2 -2
- package/dist-cli/chunks/{preview-GT7RVSDR.js → preview-2UYWMTZ6.js} +2 -2
- package/dist-cli/chunks/{profile-XBVVRPG7.js → profile-A566ICHG.js} +2 -2
- package/dist-cli/chunks/{react-DHPUEXOU.js → react-2JDBFLZ6.js} +2 -2
- package/dist-cli/chunks/{record-6W7MOPVI.js → record-4VJZKPDS.js} +12 -12
- package/dist-cli/chunks/runtime-V7KTEZGZ.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-R3V6R5PG.js → runtime-delivery-NCGNIHC3.js} +2 -2
- package/dist-cli/chunks/{screenshot-P7UX7VGT.js → screenshot-LTDSU7XO.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-PGK2RQ76.js → screenshot-mode-QFNEHHTX.js} +2 -2
- package/dist-cli/chunks/{screenshots-KNMGAV2R.js → screenshots-ODDRHWKW.js} +2 -2
- package/dist-cli/chunks/{server-VSSE3WZR.js → server-AB6B475P.js} +2 -2
- package/dist-cli/chunks/setup-repo-KKZWDQDU.js +2 -0
- package/dist-cli/chunks/{skills-5EYYLDTG.js → skills-VT2LYFIC.js} +2 -2
- package/dist-cli/chunks/{start-YP4MRCJ5.js → start-TLBKZDB6.js} +4 -4
- package/dist-cli/chunks/store-J26S54GN.js +2 -0
- package/dist-cli/chunks/telemetry-KD6452TY.js +2 -0
- package/dist-cli/chunks/{test-QSOCSAQJ.js → test-GKMCKD65.js} +3 -3
- package/dist-cli/chunks/{three-mode-NZ4CS6W3.js → three-mode-6KODH5Y6.js} +2 -2
- package/dist-cli/chunks/{timeline-2EX5FJIG.js → timeline-U3IY6NK5.js} +2 -2
- package/dist-cli/chunks/{upgrade-3MODSMWS.js → upgrade-W24MFLUR.js} +2 -2
- package/dist-cli/chunks/upload-3CEQY7UP.js +2 -0
- package/dist-cli/chunks/{web-5XGHNCRD.js → web-VT7LAGMK.js} +2 -2
- package/dist-cli/chunks/{what-happened-YOMTOISF.js → what-happened-4DHTJYYO.js} +2 -2
- package/dist-cli/chunks/{whoami-MCPS5IS2.js → whoami-CM775PTS.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-546LRHOV.js +0 -2
- package/dist-cli/chunks/beta-OQMLTEJB.js +0 -2
- package/dist-cli/chunks/chunk-3HFEVSRM.js +0 -1
- package/dist-cli/chunks/chunk-KII3MQYQ.js +0 -1
- package/dist-cli/chunks/chunk-O62UTMGF.js +0 -1
- package/dist-cli/chunks/chunk-PQPG3YV2.js +0 -73
- package/dist-cli/chunks/chunk-RN54553U.js +0 -3
- package/dist-cli/chunks/chunk-VY2UOZ4Y.js +0 -2
- package/dist-cli/chunks/chunk-Z6CJ4H3V.js +0 -2
- package/dist-cli/chunks/cli-version-H56CZI35.js +0 -2
- package/dist-cli/chunks/demo-app-registry-PALGQIQO.js +0 -2
- package/dist-cli/chunks/drivers-NZZ2WJQJ.js +0 -2
- package/dist-cli/chunks/flow-QCN3YXYF.js +0 -2
- package/dist-cli/chunks/install-RZF3KSE4.js +0 -2
- package/dist-cli/chunks/runtime-5VNFF7XM.js +0 -2
- package/dist-cli/chunks/setup-repo-LVOY52VR.js +0 -2
- package/dist-cli/chunks/store-P3SJ4JPP.js +0 -2
- package/dist-cli/chunks/telemetry-OOZE3MAX.js +0 -2
- package/dist-cli/chunks/upload-QHQ7SU6M.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.81 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as y,L as x,y as F,z as T}from"./chunk-GQTUQIQ4.js";import{c as S,e as N}from"./chunk-GLWFGEVP.js";import{b as k}from"./chunk-BOFDWCQB.js";import"./chunk-TRDL6X6C.js";import"./chunk-XZCOVJSW.js";import"./chunk-WB5NVHYB.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.81 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as i}from"./chunk-25TQ7F5P.js";import{d as n}from"./chunk-G7OOSA3T.js";import"./chunk-XZCOVJSW.js";import"./chunk-WB5NVHYB.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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.81 | (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.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-HD3DOMR4.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{d as ne,e as re}from"./chunk-RN54553U.js";import{d as Z}from"./chunk-YJYBY2MG.js";import{a as X,b as v}from"./chunk-BWWLQJNX.js";import{a as Q}from"./chunk-DWNMVYQF.js";import{c as ee,e as te,g as T}from"./chunk-BCLUAKGI.js";import{createHash as Re}from"crypto";import{readFileSync as ie}from"fs";import{gzipSync as ae}from"zlib";function se(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 W(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=W(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 Ie(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 Ue(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 Pe(e){return e.replace(/\/+$/,"")}var E=class extends Error{constructor(r,s,o,a=""){super(r);this.status=s;this.phase=o;this.responseText=a;this.name="PresignedUploadError"}};async function oe(e){let t=Pe(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=W(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 y=await o.text().catch(()=>"");throw new E(`init failed: ${o.status} ${y.slice(0,200)}`,o.status,"init",y)}let a=await o.json(),u=Ue(a,e.bundleBytes,e.filesByHash,e.extras);await Ie(u,e.concurrency??8,e.onPutProgress);let B=W(3e4,"finalize"),g;try{g=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:a.token}),signal:B.signal})}finally{B.cancel()}if(!g.ok){let y=await g.text().catch(()=>"");throw new E(`finalize failed: ${g.status} ${y.slice(0,200)}`,g.status,"finalize",y)}let S=await g.json();return{init:a,finalize:S}}function xe(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 de=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",pe=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",D="http://localhost:3000";async function Se(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${D}/api/preview/upload/init`,{method:"OPTIONS"});if(t.ok||t.status===204||t.status===405)return D}catch{}return de}function P(e){return e.replace(/\/$/,"")}function Oe(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 _e(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function $e(e,t){return t?P(t):process.env.SOOTSIM_PREVIEW_ORIGIN?P(process.env.SOOTSIM_PREVIEW_ORIGIN):Oe(e)?P(e):_e(e)?P(pe):P(e)}function ke(){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 ${D} when available, otherwise
|
|
11
|
-
falls back to ${de}
|
|
12
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
13
|
-
--public-origin <url>
|
|
14
|
-
public /preview link origin (default: ${pe}
|
|
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 x(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 le(e,t){let r=e.findIndex(s=>s===t);return r<0?!1:(e.splice(r,1),!0)}function ue(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 ce(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 Ee(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function ze(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 Ae(e,t){let s=[];for(let o=0;o<t;o+=15e5){let a=Math.min(o+15e5,t),u=await T(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${o}, ${a})`);if(typeof u!="string")return null;s.push(u)}return s.join("")}function V(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function Ke(e,t){(e.includes("--help")||e.includes("-h"))&&(ke(),process.exit(0));let r=[...e],s=await Se(x(r,"--origin")),o=$e(s,x(r,"--public-origin")),a=x(r,"--events"),u=x(r,"--video"),B=x(r,"--video-duration-ms"),g=le(r,"--open"),S=le(r,"--assets-only"),y=ee(r,{stripBooleanFlags:[],stripValueFlags:[]}),m=te(y),l,q=[],f=[],z=null;try{if(l=await T(m,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),l?.bundleUrl){let n=new URL(l.bundleUrl).origin,[i,M]=await Promise.all([T(m,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(n)}) || [])`),T(m,`(async () => {
|
|
37
|
-
const list = window.__sootsimListWorkerFetchRecorder
|
|
38
|
-
return typeof list === 'function'
|
|
39
|
-
? await list(${JSON.stringify(n)})
|
|
40
|
-
: []
|
|
41
|
-
})()`)]);q=V([...i,...M]).filter(d=>{try{return!new URL(d.url).pathname.startsWith("/api/")}catch{return!0}});let R=await T(m,`(async () => {
|
|
42
|
-
const rec = window.__sootsimPreviewRecorder
|
|
43
|
-
const workerList = window.__sootsimListWorkerFetchRecorder
|
|
44
|
-
return {
|
|
45
|
-
main: rec?.list ? rec.list() : [],
|
|
46
|
-
worker: typeof workerList === 'function' ? await workerList() : [],
|
|
47
|
-
}
|
|
48
|
-
})()`),I=(R?V([...R.main,...R.worker]):[]).filter(d=>{try{return new URL(d.url).origin!==n}catch{return!1}}),w=I.length>0?{count:I.length,totalBytes:I.reduce((d,U)=>d+(U.size||0),0)}:null;if(w&&w.count>0){console.log(` ${w.count} recorded cross-origin responses (${(w.totalBytes/1024).toFixed(1)} KiB)`);let d=await T(m,`(async () => {
|
|
49
|
-
const rec = window.__sootsimPreviewRecorder
|
|
50
|
-
const workerDump = window.__sootsimDumpWorkerFetchRecorder
|
|
51
|
-
const bundleUrl = ${JSON.stringify(l.bundleUrl)}
|
|
52
|
-
const keep = (r) => {
|
|
53
|
-
try {
|
|
54
|
-
const u = new URL(r.url)
|
|
55
|
-
if (u.origin !== ${JSON.stringify(n)}) return true
|
|
56
|
-
// bundle-origin api responses came from the rewritten
|
|
57
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
58
|
-
// recorder's unwrap step). they need bodies attached the
|
|
59
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
60
|
-
// the dev server lacks the bundle's session cookies.
|
|
61
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
62
|
-
return false
|
|
63
|
-
} catch { return false }
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
main: rec?.dump ? rec.dump().filter(keep) : [],
|
|
67
|
-
worker: typeof workerDump === 'function'
|
|
68
|
-
? (await workerDump()).filter(keep)
|
|
69
|
-
: [],
|
|
70
|
-
}
|
|
71
|
-
})()`);if(f=V([...d.main,...d.worker]),S){let U=f.length;f=f.filter(N=>ue(N.contentType));let C=w.totalBytes-f.reduce((N,Te)=>N+(Te.size||0),0);console.log(` --assets-only: kept ${f.length}/${U} records (dropped ${(C/1024).toFixed(1)} KiB of API responses)`)}}}l?.transformedBundle&&(z=await Ae(m,l.transformedBundle.byteLength))}finally{m.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.
|
|
72
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let p,A=!1;if(z!==null)p=new TextEncoder().encode(z),A=!0,console.log(` using post-transform bundle: ${(p.byteLength/1024).toFixed(1)} KiB`);else{let n=ze(l.bundleUrl);n!==l.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),p=await ce(n),console.log(` main bundle: ${(p.byteLength/1024).toFixed(1)} KiB`)}let O=q.filter(n=>n.url!==l.bundleUrl);S&&(O=O.filter(n=>ue(n.contentType))),console.log(` fetching ${O.length} extra files\u2026`);let _=(await Promise.all(O.map(async n=>{try{let i=await ce(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),ge=_.reduce((n,i)=>n+i.bytes.byteLength,0);console.log(` ${_.length} extra files: ${(ge/1024).toFixed(1)} KiB`);let b;a&&(b=ie(a));let h,$,j;if(u){if(h=ie(u),$=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 v(),process.exit(1)),j=Math.round(n)}console.log(` attaching flow video: ${(h.byteLength/1024).toFixed(1)} KiB (${$})`)}let c=ne(),fe=Q();X({event:"preview_upload_started",identity:{userId:c?.kind==="session"?fe?.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:p.byteLength,isTransformed:A,extraFiles:_.length,recordedFetches:f.length,hasEvents:!!b,hasVideo:!!h}}),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 v(),process.exit(1));let he=re(c),ye=(()=>{try{return new URL(l.bundleUrl).origin}catch{return null}})(),G=(n,i,M,R,Y,I,w,d)=>{let U=se(I),C=U?ae(n):n;return{url:i,urlhash:M,method:R,bodyHash:Y,requestVaryHash:d,contentType:I,responseHeaders:w,bytes:C,encoding:U?"gzip":void 0}},L=[..._.map(n=>G(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...f.map(n=>G(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash))],H=ae(p),me=Re("sha256").update(p).digest("hex");console.log(` bundle raw=${(p.byteLength/1024).toFixed(1)} KiB gz=${(H.byteLength/1024).toFixed(1)} KiB`);let be={contentHash:me,bundleSizeBytes:p.byteLength,bundleContentType:Ee(l.bundleUrl),bundleEncoding:"gzip",bundleOrigin:ye,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:L.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:b?{sizeBytes:b.byteLength}:void 0,flowVideo:h&&$?{sizeBytes:h.byteLength,contentType:$,durationMs:j}:void 0},J=new Map;for(let n of L)J.set(n.urlhash,n.bytes);let we=Date.now(),k=H.byteLength;for(let n of L)k+=n.bytes.byteLength;b&&(k+=b.byteLength),h&&(k+=h.byteLength);let ve=`${P(s)}/api/preview/upload/init`;console.log(` init: ${ve}`);let F;try{let n=await oe({originBase:s,initBody:be,bundleBytes:H,filesByHash:J,extras:{eventsBytes:b,videoBytes:h},authHeader:he,concurrency:16});F=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()-we}ms (${(k/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 v(),process.exit(1)),i.status===402&&(console.error(` ${xe(i.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await v(),process.exit(1)),console.error(` ${i.message??`${i.phase??"upload"} failed: ${String(n)}`}`),await v(),process.exit(1)}let K=`${o}${F.url}`;console.log(`
|
|
73
|
-
stored ${F.filesStored??0} extra files`),console.log(` preview: ${K}`),g&&await Z(K),await v()}export{Se as a,$e as b,Ke as c};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-DWNMVYQF.js";import{l as s}from"./chunk-B7Z5UJSO.js";import{chmodSync as c,existsSync as a,mkdirSync as l,readFileSync as d,rmSync as p,writeFileSync as h}from"node:fs";import{dirname as g,join as f,resolve as k}from"node:path";function i(){return f(s(),"credentials.json")}function _(){let t=i();if(!a(t))return null;try{let e=JSON.parse(d(t,"utf8"));return e.version!==1||typeof e.apiKey!="string"||!e.apiKey.startsWith("sk_sootsim_")?null:e.apiKey}catch{return null}}function T(t){if(!t.startsWith("sk_sootsim_"))throw new Error("api key must start with sk_sootsim_");let e=i();l(g(k(e)),{recursive:!0}),h(e,JSON.stringify({version:1,apiKey:t,savedAt:new Date().toISOString()},null,2)+`
|
|
3
|
-
`);try{c(e,384)}catch{}}function K(){p(i(),{force:!0})}var m=["ghs_","ghp_","gho_","ghu_","github_pat_"];function y(t){return!!(t&&t.length>=20&&t.length<=256&&m.some(e=>t.startsWith(e)))}function S(){let t=process.env.SOOT_INSTALLATION_TOKEN?.trim(),e=process.env.GITHUB_TOKEN?.trim(),r=t||e;if(!y(r))return null;let n=(process.env.SOOT_REPO||process.env.GITHUB_REPOSITORY||"").trim();if(!n)return null;let u=(process.env.SOOT_INSTALLATION_ID||process.env.GITHUB_APP_INSTALLATION_ID||"").trim();return{kind:"github",token:r,repoId:n,installationId:u||null,source:t?"soot-runner":"github-actions"}}function b(){let t=process.env.SOOTSIM_API_KEY?.trim();if(t&&t.startsWith("sk_sootsim_"))return{kind:"api-key",secret:t,source:"env"};let e=S();if(e)return e;let r=_();if(r)return{kind:"api-key",secret:r,source:"file"};let n=o();return n?.token?{kind:"session",token:n.token,origin:n.origin}:null}function E(t){return t.kind==="api-key"?`Bearer ${t.secret}`:`Bearer ${t.token}`}export{_ as a,T as b,K as c,b as d,E as e};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-3HFEVSRM.js";import{a,b,c,d,e,f,g,h,i}from"./chunk-WLTORRDJ.js";import"./chunk-LKA24TJP.js";import"./chunk-O62UTMGF.js";import"./chunk-7HB3MYOA.js";import"./chunk-YJYBY2MG.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.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.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as c,b as d,c as e,d as f}from"./chunk-ZTRDOWFN.js";import"./chunk-KKFRYVLZ.js";import"./chunk-KII3MQYQ.js";import"./chunk-HPBM7EC3.js";import"./chunk-PQPG3YV2.js";import"./chunk-RN54553U.js";import{d as a,e as b}from"./chunk-6CV5PWVX.js";import"./chunk-PYT3LUEJ.js";import"./chunk-MIZQAHOG.js";import"./chunk-ADEUNGCS.js";import"./chunk-RQHYUZ62.js";import"./chunk-S4JYGGXO.js";import"./chunk-WLTORRDJ.js";import"./chunk-LKA24TJP.js";import"./chunk-O62UTMGF.js";import"./chunk-7HB3MYOA.js";import"./chunk-YJYBY2MG.js";import"./chunk-K5KRTTNP.js";import"./chunk-Z6CJ4H3V.js";import"./chunk-BWWLQJNX.js";import"./chunk-DWNMVYQF.js";import"./chunk-ZST2MPRH.js";import"./chunk-BK7YEROW.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.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.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as o}from"./chunk-NNWW5IVI.js";import"./chunk-YIKXNRKP.js";import"./chunk-HD3DOMR4.js";import"./chunk-BWWLQJNX.js";import"./chunk-DWNMVYQF.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.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.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-KZPH3WG2.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-BMMKT26A.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.js";export{a as runRuntime};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-NNWW5IVI.js";import"./chunk-YIKXNRKP.js";import"./chunk-HD3DOMR4.js";import"./chunk-BWWLQJNX.js";import"./chunk-DWNMVYQF.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.js";export{a as runSetupRepo};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.79 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-PQPG3YV2.js";import"./chunk-RN54553U.js";import"./chunk-O62UTMGF.js";import"./chunk-YJYBY2MG.js";import"./chunk-BWWLQJNX.js";import"./chunk-DWNMVYQF.js";import"./chunk-BCLUAKGI.js";import"./chunk-5AAA62L3.js";import"./chunk-VY2UOZ4Y.js";import"./chunk-B7Z5UJSO.js";import"./chunk-ZDS7QMM4.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|