sootsim 0.1.202 → 0.1.203
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 +4 -4
- package/dist-cli/chunks/{agent-SP6EE5XV.js → agent-PWM4XT5H.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-PWZVJ3OK.js → agent-wrapper-V2BSTANB.js} +2 -2
- package/dist-cli/chunks/{app-fonts-EMJB6QLM.js → app-fonts-7M4PTF6W.js} +2 -2
- package/dist-cli/chunks/{assert-H2B6TDXT.js → assert-SEW5OJL3.js} +2 -2
- package/dist-cli/chunks/{auth-SOHXBYLQ.js → auth-3YY55NBL.js} +2 -2
- package/dist-cli/chunks/beta-Y4ZJUKAM.js +2 -0
- package/dist-cli/chunks/{camera-ULLCBM5H.js → camera-CYXCASB3.js} +2 -2
- package/dist-cli/chunks/{chunk-4NM6JBYH.js → chunk-4NHPXU3X.js} +1 -1
- package/dist-cli/chunks/{chunk-2V43M57C.js → chunk-62AKBZTO.js} +1 -1
- package/dist-cli/chunks/{chunk-WILIVPUU.js → chunk-6DN4BD7O.js} +24 -24
- package/dist-cli/chunks/{chunk-RWXCSRNE.js → chunk-6M56UHEY.js} +2 -2
- package/dist-cli/chunks/{chunk-F2LLN4U7.js → chunk-A3FIOG7U.js} +2 -2
- package/dist-cli/chunks/{chunk-Z5VMWFCY.js → chunk-B7VBDZ3U.js} +1 -1
- package/dist-cli/chunks/{chunk-WVDWIXPH.js → chunk-BBOFH45Q.js} +2 -2
- package/dist-cli/chunks/{chunk-RS7QLHEH.js → chunk-BJJXNQHO.js} +2 -2
- package/dist-cli/chunks/{chunk-HZYHSLNH.js → chunk-BL67OSVN.js} +2 -2
- package/dist-cli/chunks/{chunk-CB7LDZKJ.js → chunk-EBH65V62.js} +3 -3
- package/dist-cli/chunks/{chunk-OG6TFGYF.js → chunk-FF3C57T5.js} +2 -2
- package/dist-cli/chunks/{chunk-JP7J325R.js → chunk-FUC7C5HS.js} +2 -2
- package/dist-cli/chunks/{chunk-AAQVPSIV.js → chunk-G5GRLVYA.js} +2 -2
- package/dist-cli/chunks/chunk-G5VOIXM7.js +1 -0
- package/dist-cli/chunks/{chunk-CGJ2U6ST.js → chunk-GMVAXDHH.js} +1 -1
- package/dist-cli/chunks/{chunk-RJVIUQK4.js → chunk-GTBF3M2H.js} +1 -1
- package/dist-cli/chunks/{chunk-LNDRRZP3.js → chunk-GYTATFQA.js} +2 -2
- package/dist-cli/chunks/{chunk-PL4GXELT.js → chunk-JLOAWSX6.js} +1 -1
- package/dist-cli/chunks/{chunk-B6JB4THC.js → chunk-K3CRSIGS.js} +2 -2
- package/dist-cli/chunks/{chunk-SQBX2HS7.js → chunk-LKJ5LA6K.js} +2 -2
- package/dist-cli/chunks/{chunk-6QFVYLX6.js → chunk-LTRNOX6N.js} +2 -2
- package/dist-cli/chunks/{chunk-K3UBHPVP.js → chunk-MQHSWXDS.js} +1 -1
- package/dist-cli/chunks/{chunk-3ZENZOIX.js → chunk-NHSO4473.js} +2 -2
- package/dist-cli/chunks/chunk-ODW7RHSD.js +97 -0
- package/dist-cli/chunks/{chunk-TANTCV45.js → chunk-OK7QEDHD.js} +2 -2
- package/dist-cli/chunks/{chunk-RZQO4Q7E.js → chunk-OXQOPTTB.js} +1 -1
- package/dist-cli/chunks/{chunk-EMOZJ773.js → chunk-P4GJL7OH.js} +2 -2
- package/dist-cli/chunks/{chunk-6FZ6SNVP.js → chunk-PELEQURX.js} +2 -2
- package/dist-cli/chunks/chunk-QKDII5UB.js +1 -0
- package/dist-cli/chunks/{chunk-DKBKU55D.js → chunk-R7GIVBTY.js} +2 -2
- package/dist-cli/chunks/{chunk-4KVSVFRF.js → chunk-RVOF6RIE.js} +1 -1
- package/dist-cli/chunks/{chunk-W4Y3JJX6.js → chunk-RZU5TDPJ.js} +3 -3
- package/dist-cli/chunks/{chunk-KRGHRSKY.js → chunk-U6OCMLMU.js} +2 -2
- package/dist-cli/chunks/{chunk-5SKKMM7E.js → chunk-UJ64GJSZ.js} +1 -1
- package/dist-cli/chunks/{chunk-DRJ4YWUG.js → chunk-UZGLGCLM.js} +1 -1
- package/dist-cli/chunks/{chunk-KYGUR727.js → chunk-WSOZGPIX.js} +2 -2
- package/dist-cli/chunks/{chunk-ENXHZGSL.js → chunk-WVF2EDZF.js} +1 -1
- package/dist-cli/chunks/{chunk-ROYBEBG2.js → chunk-XYMOH3HP.js} +1 -1
- package/dist-cli/chunks/{chunk-2CID4LNK.js → chunk-YJNJ5GVC.js} +3 -3
- package/dist-cli/chunks/{chunk-GUYKLSTX.js → chunk-YP3NIRTK.js} +1 -1
- package/dist-cli/chunks/{chunk-GZKT53SA.js → chunk-ZGM7N2AV.js} +1 -1
- package/dist-cli/chunks/{chunk-4KT2BGQE.js → chunk-ZRWVLKFL.js} +1 -1
- package/dist-cli/chunks/cli-version-N2RKZ2CU.js +2 -0
- package/dist-cli/chunks/{compat-YW3OJ7RX.js → compat-FK5MP535.js} +3 -3
- package/dist-cli/chunks/{config-ZGOXFEX4.js → config-T3W2HI67.js} +2 -2
- package/dist-cli/chunks/{control-75JRFOYV.js → control-ONFLGDEC.js} +2 -2
- package/dist-cli/chunks/daemon-FDI5YYZN.js +2 -0
- package/dist-cli/chunks/{debug-4APEP64L.js → debug-Z6NG4KY2.js} +3 -3
- package/dist-cli/chunks/{desktop-CS7S4CXK.js → desktop-BIWB2UYC.js} +3 -3
- package/dist-cli/chunks/{detox-7R7DOKQM.js → detox-6K7WFLQO.js} +2 -2
- package/dist-cli/chunks/{device-EIDKLBEK.js → device-TPD5WAP2.js} +2 -2
- package/dist-cli/chunks/{diagnose-J2F7MJAJ.js → diagnose-NACPOTYX.js} +2 -2
- package/dist-cli/chunks/drivers-G2YZR6G6.js +2 -0
- package/dist-cli/chunks/flow-OAW2MZCD.js +2 -0
- package/dist-cli/chunks/help-MY2CBECX.js +2 -0
- package/dist-cli/chunks/{home-paths-WVCREWI7.js → home-paths-WWFDX6YU.js} +2 -2
- package/dist-cli/chunks/inspect-ZPVPUSAK.js +2 -0
- package/dist-cli/chunks/install-desktop-QZWSSGJV.js +2 -0
- package/dist-cli/chunks/{login-EOBJ7CZ4.js → login-WGCO2V4S.js} +4 -4
- package/dist-cli/chunks/{logout-RL7D66VQ.js → logout-VWSSNYF5.js} +2 -2
- package/dist-cli/chunks/{maestro-F66ZIJKA.js → maestro-YED424Y6.js} +2 -2
- package/dist-cli/chunks/{mode-R2VIW66U.js → mode-QCOM4UM4.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-3KZFUZZD.js +2 -0
- package/dist-cli/chunks/{perf-PGYO5BBR.js → perf-FZHCFAID.js} +2 -2
- package/dist-cli/chunks/{record-IGDVHC67.js → record-NF3PKBSW.js} +3 -3
- package/dist-cli/chunks/runtime-ETELTKFT.js +2 -0
- package/dist-cli/chunks/screenshot-command-KLPOA5TW.js +151 -0
- package/dist-cli/chunks/screenshots-capture-MCTZSXLE.js +41 -0
- package/dist-cli/chunks/{serve-3TFVHYLY.js → serve-XBWYWHMC.js} +2 -2
- package/dist-cli/chunks/{setup-JSPPRVET.js → setup-W7EROACZ.js} +3 -3
- package/dist-cli/chunks/{skills-LK3B76W7.js → skills-RBGNF7GS.js} +2 -2
- package/dist-cli/chunks/{storage-NC5RNBUA.js → storage-3SFE2DUE.js} +2 -2
- package/dist-cli/chunks/store-Z3CHVRR3.js +2 -0
- package/dist-cli/chunks/telemetry-SWFOAVWP.js +2 -0
- package/dist-cli/chunks/{test-2CXPLH5N.js → test-UP6VTFKE.js} +5 -5
- package/dist-cli/chunks/{timeline-WDTEVELN.js → timeline-A54JB74A.js} +2 -2
- package/dist-cli/chunks/{upgrade-TT2IJSNJ.js → upgrade-H7XE3N76.js} +2 -2
- package/dist-cli/chunks/upload-X2BRKPBJ.js +2 -0
- package/dist-cli/chunks/{version-JUNH4FOR.js → version-4JV7HX23.js} +2 -2
- package/dist-cli/chunks/{web-BWCW26ZA.js → web-5OLZXKVF.js} +2 -2
- package/dist-cli/chunks/{what-happened-L6EEB6MB.js → what-happened-Q4L6SI4I.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +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/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +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/beta-CCNQQ73A.js +0 -2
- package/dist-cli/chunks/chunk-5J63S2NM.js +0 -1
- package/dist-cli/chunks/chunk-BZ7AW7ZB.js +0 -92
- package/dist-cli/chunks/chunk-I6O7NBPZ.js +0 -1
- package/dist-cli/chunks/cli-version-Z4NGLJLH.js +0 -2
- package/dist-cli/chunks/daemon-SHFBQRHD.js +0 -2
- package/dist-cli/chunks/drivers-55L7BHDF.js +0 -2
- package/dist-cli/chunks/flow-AHWVTHJP.js +0 -2
- package/dist-cli/chunks/help-C4BTMPEE.js +0 -2
- package/dist-cli/chunks/inspect-M4Z4SSSB.js +0 -2
- package/dist-cli/chunks/install-desktop-PVRUAEMA.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-ILX5YV34.js +0 -2
- package/dist-cli/chunks/runtime-43RJGUGS.js +0 -2
- package/dist-cli/chunks/screenshot-command-HX4GVUJM.js +0 -190
- package/dist-cli/chunks/store-3XMEKA6H.js +0 -2
- package/dist-cli/chunks/telemetry-CVJ5YZNS.js +0 -2
- package/dist-cli/chunks/upload-4HMNB4HA.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{C as N,D as F,F as y,Q as T,R as b,S}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.203 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{C as N,D as F,F as y,Q as T,R as b,S}from"./chunk-XYMOH3HP.js";import{g as A,i as _}from"./chunk-U6OCMLMU.js";import"./chunk-JLOAWSX6.js";import{b as k}from"./chunk-OXQOPTTB.js";import"./chunk-ZGM7N2AV.js";import"./chunk-ZRWVLKFL.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let r=Number(l[1]),u=l[2]??"ms",v=u==="s"?r*1e3:u==="m"?r*6e4:r;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function x(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let r=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${r}`:(e={label:`${s.kind}: ${r}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=A(n,{port:t.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,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (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.203 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.203 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/menu.mjs
CHANGED
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.203 | (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.203 | (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.203 | (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.203 | (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/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.203 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.203 | (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.203 | (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 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as ke,b as Ee,c as Re}from"./chunk-TANTCV45.js";import{c as Te}from"./chunk-CGJ2U6ST.js";import{d as we}from"./chunk-RJVIUQK4.js";import{g as Se,i as ve,k as x}from"./chunk-KRGHRSKY.js";import{d as xe}from"./chunk-DRJ4YWUG.js";import{a as Me,b as v}from"./chunk-KYGUR727.js";import{a as be}from"./chunk-RWXCSRNE.js";import{createHash as ut}from"crypto";import{readFileSync as L}from"fs";import{gzipSync as Pe,gunzipSync as ct}from"zlib";function Ie(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}import{brotliCompressSync as Xe,constants as Ze}from"node:zlib";var et=9;function Be(e){return Xe(e,{params:{[Ze.BROTLI_PARAM_QUALITY]:et}})}function te(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 tt(e){let t=te(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 nt(e,t=8,r){let o=0,i=0,a=e.length;await Promise.all(Array.from({length:Math.min(t,a)},async()=>{for(;o<a;){let u=e[o++];await tt(u),i++,r?.(i,a)}}))}function rt(e,t,r,o){let i=[];i.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let a of e.files){let u=r.get(a.urlhash);u&&i.push({url:a.putUrl,contentType:a.contentType,bytes:u})}e.events&&o?.eventsBytes&&i.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:o.eventsBytes}),e.timeline&&o?.timelineBytes&&i.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:o.timelineBytes}),e.flowVideo&&o?.videoBytes&&i.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:o.videoBytes}),e.storage&&o?.storageBytes&&i.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:o.storageBytes});for(let a of e.snapshots??[]){let u=o?.snapshotBytes?.get(a.id);u&&i.push({url:a.putUrl,contentType:a.contentType,bytes:u})}return i}function st(e){return e.replace(/\/+$/,"")}var z=class extends Error{constructor(r,o,i,a=""){super(r);this.status=o;this.phase=i;this.responseText=a;this.name="PresignedUploadError"}};async function Ae(e){let t=st(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=te(3e4,"init"),i;try{i=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:o.signal})}finally{o.cancel()}if(!i.ok){let f=await i.text().catch(()=>"");throw new z(`init failed: ${i.status} ${f.slice(0,200)}`,i.status,"init",f)}let a=await i.json(),u=rt(a,e.bundleBytes,e.filesByHash,e.extras);await nt(u,e.concurrency??8,e.onPutProgress);let y=te(3e4,"finalize"),m;try{m=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:a.token}),signal:y.signal})}finally{y.cancel()}if(!m.ok){let f=await m.text().catch(()=>"");throw new z(`finalize failed: ${m.status} ${f.slice(0,200)}`,m.status,"finalize",f)}let F=await m.json();return{init:a,finalize:F}}function ot(e){return e!==null&&typeof e=="object"?e:null}function Ue(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ne(e){let t=ot(e);return t?t.schemaVersion===1&&Ue(t.t)!==void 0&&Ue(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function it(e,t){let r=[];for(let o of e.split(`
|
|
3
|
-
`)){let i=o.trim();if(i)try{let a=JSON.parse(i);t(a)&&r.push(a)}catch{}}return r}function _e(e){return it(e,ne)}function dt(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 Ce=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",Ne=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",se="http://localhost:3000",pt=2e3;async function mt(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${se}/api/preview/upload/init`,{method:"OPTIONS",signal:AbortSignal.timeout(pt)});if(t.ok||t.status===204||t.status===405)return se}catch{}return Ce}function U(e){return e.replace(/\/$/,"")}function ft(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 gt(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function ht(e,t){return t?U(t):process.env.SOOTSIM_PREVIEW_ORIGIN?U(process.env.SOOTSIM_PREVIEW_ORIGIN):ft(e)?U(e):gt(e)?U(Ne):U(e)}function yt(){console.log(`
|
|
4
|
-
sootsim record upload \u2014 publish the current recorded bundle as a /preview/<id> link
|
|
5
|
-
|
|
6
|
-
usage:
|
|
7
|
-
sootsim record upload [--origin <url>] [--public-origin <url>] (--events <path> | --video <path>) [--screenshot <path>] [--owner <org> --repo <repo>] [--sim <sim>] [--open] [--assets-only]
|
|
8
|
-
|
|
9
|
-
options:
|
|
10
|
-
--origin <url> upload target (default: auto)
|
|
11
|
-
prefers ${se} when available, otherwise
|
|
12
|
-
falls back to ${Ce}
|
|
13
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
14
|
-
--public-origin <url>
|
|
15
|
-
public /preview link origin (default: ${Ne}
|
|
16
|
-
for prod uploads, upload origin for localhost/custom origins).
|
|
17
|
-
override with SOOTSIM_PREVIEW_ORIGIN env var
|
|
18
|
-
--events <path> path to a gzipped events .jsonl.gz file to attach
|
|
19
|
-
required unless --video is present; previews must
|
|
20
|
-
have replay or recording playback data
|
|
21
|
-
--screenshot <path>
|
|
22
|
-
path to a PNG thumbnail to attach to the share
|
|
23
|
-
--video <path> path to a mp4/gif flow recording. embedded inline
|
|
24
|
-
in the pr sticky comment served at
|
|
25
|
-
/api/preview/flow-video?id=<share-id>
|
|
26
|
-
--video-duration-ms <ms>
|
|
27
|
-
duration hint for attached flow video
|
|
28
|
-
--timeline-events <path>
|
|
29
|
-
extra trace timeline rows, JSONL or JSONL gz
|
|
30
|
-
--trace-frame-stats <path>
|
|
31
|
-
frame stats JSON returned by the recorder bridge
|
|
32
|
-
--owner <org> associate a session upload with a linked org repo
|
|
33
|
-
--repo <repo> repo name for --owner; the signed-in user must belong
|
|
34
|
-
to the local/org team that owns the link
|
|
35
|
-
--billing-kind test_run
|
|
36
|
-
meter this upload as a natural-language test run
|
|
37
|
-
--sim <sim> target a specific sim (see: sootsim list)
|
|
38
|
-
--open open the resulting /preview/<id> url in the browser
|
|
39
|
-
--assets-only drop API/JSON/HTML records before upload; keep images,
|
|
40
|
-
fonts, css, js, and binary blobs. live-data demos hit
|
|
41
|
-
the real network at replay time instead of serving
|
|
42
|
-
recorded API snapshots
|
|
43
|
-
-h, --help
|
|
44
|
-
|
|
45
|
-
examples:
|
|
46
|
-
sootsim record upload --events ./my-session.jsonl.gz
|
|
47
|
-
sootsim record upload --origin http://localhost:3000 --events ./my-session.jsonl.gz --open
|
|
48
|
-
sootsim record upload --video /tmp/soot-flow.mp4 --video-duration-ms 12000
|
|
49
|
-
`)}function d(e,t){let r=e.findIndex(i=>i===t);if(r<0)return;let o=e[r+1];return e.splice(r,2),o}function Le(e,t){let r=e.findIndex(o=>o===t);return r<0?!1:(e.splice(r,1),!0)}function Fe(e,t){if(!e)return;let r=Number(e);return(!Number.isFinite(r)||r<=0)&&(console.error(` invalid ${t}: ${e}`),process.exit(1)),Math.round(r)}function $e(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 bt(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Mt(e){try{return new URL(e).searchParams.get("appFonts")||""}catch{return""}}function wt(e){try{return new URL(e).searchParams.get("appSplash")||""}catch{return""}}function Tt(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 St(e,t){let o=[];for(let i=0;i<t;i+=15e5){let a=Math.min(i+15e5,t),u=await x(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${i}, ${a})`);if(typeof u!="string")return null;o.push(u)}return o.join("")}function vt(e){return e.recordedDurationMs&&e.recordingStartedAtMs?{since:e.recordingStartedAtMs-1e4,until:e.recordingStartedAtMs+e.recordedDurationMs+5e3,limit:2e3}:{limit:2e3}}function xt(e){let t=L(e),o=(t[0]===31&&t[1]===139?ct(t):t).toString("utf8");return _e(o)}function kt(e){return JSON.parse(L(e,"utf8"))}function Et(e){if(e===null||typeof e!="object")return[];let t=e,r=typeof t.startedAtEpochMs=="number"&&t.startedAtEpochMs>0?t.startedAtEpochMs:null;if(r===null||!Array.isArray(t.samples))return[];let o=[];for(let i of t.samples){if(!Array.isArray(i)||typeof i[0]!="number")continue;let a=u=>typeof u=="number"&&Number.isFinite(u)?Math.round(u*100)/100:0;o.push({schemaVersion:1,t:r+Math.round(i[0]),seq:o.length+1,context:"tenant",kind:"frame",data:{totalMs:a(i[1]),layoutMs:a(i[2]),renderMs:a(i[3]),copyMs:a(i[4])}})}return o}function Rt(e){if(e===null||typeof e!="object")return e;let{samples:t,...r}=e;return r}function re(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function Wt(e,t){(e.includes("--help")||e.includes("-h"))&&(yt(),process.exit(0));let r=[...e],o=await mt(d(r,"--origin")),i=ht(o,d(r,"--public-origin")),a=d(r,"--events"),u=d(r,"--screenshot"),y=d(r,"--video"),m=d(r,"--timeline-events"),F=d(r,"--trace-frame-stats"),f=d(r,"--video-duration-ms"),oe=Fe(d(r,"--recorded-duration-ms"),"--recorded-duration-ms"),ie=Fe(d(r,"--recording-started-at-ms"),"--recording-started-at-ms"),H=d(r,"--owner"),j=d(r,"--repo"),$=d(r,"--billing-kind"),De=Le(r,"--open");(H&&!j||!H&&j)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),$&&$!=="test_run"&&(console.error(` invalid --billing-kind: ${$}`),process.exit(1)),!a&&!y&&(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 ae=Le(r,"--assets-only"),ze=Se(r,{stripBooleanFlags:[],stripValueFlags:[]}),b=ve(ze),c,le=[],M=[],w=m?xt(m):[],ue=F?kt(F):null;w.push(...Et(ue));let ce=w.length,J=null;try{if(c=await x(b,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),c?.bundleUrl){let l=new URL(c.bundleUrl).origin,[B,X]=await Promise.all([x(b,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(l)}) || [])`),x(b,`(async () => {
|
|
50
|
-
const list = window.__sootsimListWorkerFetchRecorder
|
|
51
|
-
return typeof list === 'function'
|
|
52
|
-
? await list(${JSON.stringify(l)})
|
|
53
|
-
: []
|
|
54
|
-
})()`)]);le=re([...B,...X]).filter(p=>{try{return!new URL(p.url).pathname.startsWith("/api/")}catch{return!0}});let A=await x(b,`(async () => {
|
|
55
|
-
const rec = window.__sootsimPreviewRecorder
|
|
56
|
-
const workerList = window.__sootsimListWorkerFetchRecorder
|
|
57
|
-
return {
|
|
58
|
-
main: rec?.list ? rec.list() : [],
|
|
59
|
-
worker: typeof workerList === 'function' ? await workerList() : [],
|
|
60
|
-
}
|
|
61
|
-
})()`),P=(A?re([...A.main,...A.worker]):[]).filter(p=>{try{return new URL(p.url).origin!==l}catch{return!1}}),S=P.length>0?{count:P.length,totalBytes:P.reduce((p,Z)=>p+(Z.size||0),0)}:null;if(S&&S.count>0){console.log(` ${S.count} recorded cross-origin responses (${(S.totalBytes/1024).toFixed(1)} KiB)`);let p=await x(b,`(async () => {
|
|
62
|
-
const rec = window.__sootsimPreviewRecorder
|
|
63
|
-
const workerDump = window.__sootsimDumpWorkerFetchRecorder
|
|
64
|
-
const bundleUrl = ${JSON.stringify(c.bundleUrl)}
|
|
65
|
-
const keep = (r) => {
|
|
66
|
-
try {
|
|
67
|
-
const u = new URL(r.url)
|
|
68
|
-
if (u.origin !== ${JSON.stringify(l)}) return true
|
|
69
|
-
// bundle-origin api responses came from the rewritten
|
|
70
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
71
|
-
// recorder's unwrap step). they need bodies attached the
|
|
72
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
73
|
-
// the dev server lacks the bundle's session cookies.
|
|
74
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
75
|
-
return false
|
|
76
|
-
} catch { return false }
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
main: rec?.dump ? rec.dump().filter(keep) : [],
|
|
80
|
-
worker: typeof workerDump === 'function'
|
|
81
|
-
? (await workerDump()).filter(keep)
|
|
82
|
-
: [],
|
|
83
|
-
}
|
|
84
|
-
})()`);if(M=re([...p.main,...p.worker]),ae){let Z=M.length;M=M.filter(ee=>$e(ee.contentType));let Ye=S.totalBytes-M.reduce((ee,Qe)=>ee+(Qe.size||0),0);console.log(` --assets-only: kept ${M.length}/${Z} records (dropped ${(Ye/1024).toFixed(1)} KiB of API responses)`)}}}c?.transformedBundle&&(J=await St(b,c.transformedBundle.byteLength));let n=await x(b,`(() => {
|
|
85
|
-
const bridge = window.SootSim?.bridges?.timeline ?? window.__sootsimTimeline
|
|
86
|
-
if (!bridge || typeof bridge.recent !== 'function') return null
|
|
87
|
-
return bridge.recent(${JSON.stringify(vt({recordedDurationMs:oe,recordingStartedAtMs:ie}))})
|
|
88
|
-
})()`).catch(l=>(console.warn(` warning: failed to capture trace timeline: ${l instanceof Error?l.message:String(l)}`),null)),s=Array.isArray(n?.events)?n.events:[];w=[...w,...s.filter(ne)].sort((l,B)=>l.t-B.t||l.seq-B.seq)}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.
|
|
89
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let g,K=!1;if(J!==null)g=new TextEncoder().encode(J),K=!0,console.log(` using post-transform bundle: ${(g.byteLength/1024).toFixed(1)} KiB`);else{let n=Tt(c.bundleUrl);n!==c.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),g=await Oe(n),console.log(` main bundle: ${(g.byteLength/1024).toFixed(1)} KiB`)}let O=le.filter(n=>n.url!==c.bundleUrl);ae&&(O=O.filter(n=>$e(n.contentType))),console.log(` fetching ${O.length} extra files\u2026`);let C=(await Promise.all(O.map(async n=>{try{let s=await Oe(n.url);return{...n,bytes:s}}catch(s){return console.error(` warning: failed to re-fetch ${n.url}: ${s instanceof Error?s.message:s}`),null}}))).filter(n=>!!n),He=C.reduce((n,s)=>n+s.bytes.byteLength,0);console.log(` ${C.length} extra files: ${(He/1024).toFixed(1)} KiB`);let k;a&&(k=L(a)),w.sort((n,s)=>n.t-s.t||n.seq-s.seq);let de=w.map(n=>JSON.stringify(n)).join(`
|
|
90
|
-
`),V=Pe(de?`${de}
|
|
91
|
-
`:"");console.log(` trace timeline: ${w.length} events${ce?` (${ce} from runner sidecars)`:""}`);let h;u&&(h=L(u),console.log(` attaching screenshot: ${(h.byteLength/1024).toFixed(1)} KiB`));let T,_,pe;if(y){if(T=L(y),_=y.endsWith(".mp4")?"video/mp4":y.endsWith(".gif")?"image/gif":void 0,_||(console.error(" preview flow videos must be mp4 or gif"),await v(),process.exit(1)),f){let n=Number(f);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${f}`),await v(),process.exit(1)),pe=Math.round(n)}console.log(` attaching flow video: ${(T.byteLength/1024).toFixed(1)} KiB (${_})`)}let E=ke(),R=Re(E),je=be();Me({event:"preview_upload_started",identity:{userId:E?.kind==="session"?je?.user?.id??null:null,repoId:R?.repoId??null,installationId:R?.installationId??null},properties:{origin:o,hasAuth:!!E,authMode:E?.kind??"none",bundleBytes:g.byteLength,isTransformed:K,extraFiles:C.length,recordedFetches:M.length,hasEvents:!!k,traceTimelineEvents:w.length,hasScreenshot:!!h,hasVideo:!!T}}),E||(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 Je=Ee(E),Ke=(()=>{try{return new URL(c.bundleUrl).origin}catch{return null}})(),N=(n,s,l,B,X,A,ye,P)=>{let S=Ie(A),p=S?Pe(n):n;return{url:s,urlhash:l,method:B,bodyHash:X,requestVaryHash:P,contentType:A,responseHeaders:ye,bytes:p,encoding:S?"gzip":void 0}},me=[],q=Mt(c.pageHref)||"";if(q){let n=await we(q,{onStaged:({url:s,byteLength:l})=>console.log(` staged app font: ${s} (${(l/1024).toFixed(1)} KiB)`),onError:(s,l)=>console.error(` warning: failed to fetch app font ${s}: ${l instanceof Error?l.message:l}`)});for(let s of n)me.push(N(Buffer.from(s.bytes),s.url,s.urlhash,"GET","-",s.contentType))}let fe=[],W=wt(c.pageHref)||"";if(W){let n=await Te(W,{onStaged:({url:s,byteLength:l})=>console.log(` staged splash image: ${s} (${(l/1024).toFixed(1)} KiB)`),onError:(s,l)=>console.error(` warning: failed to fetch splash image ${s}: ${l instanceof Error?l.message:l}`)});for(let s of n)fe.push(N(Buffer.from(s.bytes),s.url,s.urlhash,"GET","-",s.contentType))}let G=[...C.map(n=>N(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...M.map(n=>N(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash)),...me,...fe],Y=Be(g),Ve=ut("sha256").update(g).digest("hex");console.log(` bundle raw=${(g.byteLength/1024).toFixed(1)} KiB br=${(Y.byteLength/1024).toFixed(1)} KiB`);let qe={contentHash:Ve,bundleSizeBytes:g.byteLength,bundleContentType:bt(c.bundleUrl),bundleEncoding:"br",bundleOrigin:Ke,runtimeVersion:c.runtimeVersion??void 0,appFonts:q||void 0,appSplash:W||void 0,entry:c.entry,isTransformed:K,deviceSpec:c.deviceSpec,installationId:R?.installationId??void 0,repoId:R?.repoId,owner:H??R?.owner,repo:j??R?.repo,billingKind:$==="test_run"?"test_run":void 0,files:G.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:k?{sizeBytes:k.byteLength}:void 0,timeline:{sizeBytes:V.byteLength,encoding:"gzip"},traceFrameStats:Rt(ue),recordedDurationMs:oe,recordingStartedAtMs:ie,snapshots:h?[{id:"landing",label:"Landing",kind:"landing",t:0,contentType:"image/png",sizeBytes:h.byteLength}]:void 0,flowVideo:T&&_?{sizeBytes:T.byteLength,contentType:_,durationMs:pe}:void 0},ge=new Map;for(let n of G)ge.set(n.urlhash,n.bytes);let he=new Map;h&&he.set("landing",h);let We=Date.now(),I=Y.byteLength;for(let n of G)I+=n.bytes.byteLength;k&&(I+=k.byteLength),I+=V.byteLength,h&&(I+=h.byteLength),T&&(I+=T.byteLength);let Ge=`${U(o)}/api/preview/upload/init`;console.log(` init: ${Ge}`);let D;try{let n=await Ae({originBase:o,initBody:qe,bundleBytes:Y,filesByHash:ge,extras:{eventsBytes:k,timelineBytes:V,videoBytes:T,snapshotBytes:he},authHeader:Je,concurrency:16});D=n.finalize;let s=1+n.init.files.length+(n.init.events?1:0)+(n.init.timeline?1:0)+n.init.snapshots.length+(n.init.flowVideo?1:0);console.log(` PUT ${s} objects in ${Date.now()-We}ms (${(I/1024).toFixed(1)} KiB)`)}catch(n){let s=n;s.phase==="init"&&s.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await v(),process.exit(1)),s.status===402&&(console.error(` ${dt(s.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await v(),process.exit(1)),console.error(` ${s.message??`${s.phase??"upload"} failed: ${String(n)}`}`),await v(),process.exit(1)}let Q=`${i}${D.url}`;return console.log(`
|
|
92
|
-
stored ${D.filesStored??0} extra files`),console.log(` preview: ${Q}`),De&&await xe(Q),await v(),{previewUrl:Q,shareId:D.id}}export{mt as a,ht as b,Wt as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-3ZENZOIX.js";import"./chunk-KYGUR727.js";import"./chunk-RWXCSRNE.js";import"./chunk-RS7QLHEH.js";import"./chunk-LNDRRZP3.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-K3UBHPVP.js";import"./chunk-5SKKMM7E.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,d as teardownDaemonService,e as teardownSootsimHome};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-5J63S2NM.js";import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i}from"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-4KT2BGQE.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.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{c,d,e,f,g,h}from"./chunk-WILIVPUU.js";import{c as a,d as b}from"./chunk-2CID4LNK.js";import"./chunk-AAQVPSIV.js";import"./chunk-6QFVYLX6.js";import"./chunk-BZ7AW7ZB.js";import"./chunk-TANTCV45.js";import"./chunk-B6JB4THC.js";import"./chunk-WVDWIXPH.js";import"./chunk-I6O7NBPZ.js";import"./chunk-CGJ2U6ST.js";import"./chunk-RJVIUQK4.js";import"./chunk-4NM6JBYH.js";import"./chunk-EMOZJ773.js";import"./chunk-ROYBEBG2.js";import"./chunk-KRGHRSKY.js";import"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-4KVSVFRF.js";import"./chunk-OG6TFGYF.js";import"./chunk-KYGUR727.js";import"./chunk-RWXCSRNE.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{e as discoverSootsimUrl,c as getLastFlowPreviewUploadResult,d as getLastFlowTraceSteps,g as hoistLeadingSimFlag,a as parseFlowFile,h as runFlow,f as runFlowPlayback,b as validateFlowFile};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-RS7QLHEH.js";import"./chunk-LNDRRZP3.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-K3UBHPVP.js";import"./chunk-5SKKMM7E.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{j as a,k as b}from"./chunk-2CID4LNK.js";import"./chunk-AAQVPSIV.js";import"./chunk-B6JB4THC.js";import"./chunk-WVDWIXPH.js";import"./chunk-I6O7NBPZ.js";import"./chunk-CGJ2U6ST.js";import"./chunk-RJVIUQK4.js";import"./chunk-4NM6JBYH.js";import"./chunk-EMOZJ773.js";import"./chunk-ROYBEBG2.js";import"./chunk-KRGHRSKY.js";import"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-4KVSVFRF.js";import"./chunk-OG6TFGYF.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{a as printShellPerfReport,b as runInspect};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a}from"./chunk-W4Y3JJX6.js";import"./chunk-6FZ6SNVP.js";import"./chunk-KRGHRSKY.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-4KT2BGQE.js";export{a as runRuntime};
|