sootsim 0.1.233 → 0.1.234
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-FSAU46RP.js → agent-RKA6QTYE.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-C7OIZCDK.js → agent-wrapper-OB6OUCSF.js} +2 -2
- package/dist-cli/chunks/{app-fonts-DXMHWUJT.js → app-fonts-6PFARL6B.js} +2 -2
- package/dist-cli/chunks/{assert-WNFJZX3A.js → assert-Q6BV2NEM.js} +2 -2
- package/dist-cli/chunks/{auth-3VWWSVDJ.js → auth-HJ3NXFJP.js} +2 -2
- package/dist-cli/chunks/beta-7LVCC4DC.js +2 -0
- package/dist-cli/chunks/{camera-2AXW72BD.js → camera-LWGYRGBB.js} +2 -2
- package/dist-cli/chunks/{chunk-Q3KYEB42.js → chunk-2QOLVYFF.js} +1 -1
- package/dist-cli/chunks/chunk-2RP6TUZ3.js +1 -0
- package/dist-cli/chunks/{chunk-HBD6YSQT.js → chunk-2YOWFGX3.js} +1 -1
- package/dist-cli/chunks/{chunk-3654N4EX.js → chunk-36HLSYS2.js} +2 -2
- package/dist-cli/chunks/{chunk-ZXTPXUAL.js → chunk-37CANPD2.js} +3 -3
- package/dist-cli/chunks/{chunk-BOYWUXVQ.js → chunk-4NTBHQZU.js} +3 -3
- package/dist-cli/chunks/{chunk-AHNX3XFL.js → chunk-4YPQAOC6.js} +1 -1
- package/dist-cli/chunks/{chunk-TB775GFN.js → chunk-54U7A36G.js} +1 -1
- package/dist-cli/chunks/{chunk-FMZCSQXP.js → chunk-57FLKZOS.js} +3 -3
- package/dist-cli/chunks/{chunk-ZQBKE54L.js → chunk-5AVOWKYR.js} +1 -1
- package/dist-cli/chunks/{chunk-MGECBBZI.js → chunk-5FDIH76R.js} +2 -2
- package/dist-cli/chunks/{chunk-GQQZNMLJ.js → chunk-5JX4BCGL.js} +1 -1
- package/dist-cli/chunks/{chunk-WBWRABBM.js → chunk-6KZBSG52.js} +2 -2
- package/dist-cli/chunks/{chunk-3RIGVY4O.js → chunk-6NUCPZGB.js} +1 -1
- package/dist-cli/chunks/{chunk-5SAISMRK.js → chunk-7G4VSJQ4.js} +1 -1
- package/dist-cli/chunks/{chunk-TQF5LD6Y.js → chunk-7ST3HVVO.js} +1 -1
- package/dist-cli/chunks/{chunk-G7DEABX5.js → chunk-A3R3A55R.js} +2 -2
- package/dist-cli/chunks/{chunk-WAVNZQ5B.js → chunk-AASXS3LK.js} +2 -2
- package/dist-cli/chunks/{chunk-K2MMUVAS.js → chunk-B77AQNOH.js} +1 -1
- package/dist-cli/chunks/{chunk-46QQ23PF.js → chunk-DAWIWEWR.js} +2 -2
- package/dist-cli/chunks/{chunk-RTLMLUPQ.js → chunk-DFAMEHIJ.js} +2 -2
- package/dist-cli/chunks/chunk-DVPVSP7S.js +99 -0
- package/dist-cli/chunks/{chunk-ULBICLEG.js → chunk-FSSTNYFL.js} +2 -2
- package/dist-cli/chunks/{chunk-ZRRTM6WY.js → chunk-HTTSF6YF.js} +2 -2
- package/dist-cli/chunks/{chunk-KR5WHNHB.js → chunk-IB6NUH34.js} +2 -2
- package/dist-cli/chunks/{chunk-OMQVA6X5.js → chunk-IHRBDBGS.js} +2 -2
- package/dist-cli/chunks/{chunk-LU5U5HEI.js → chunk-JXPGKN3F.js} +2 -2
- package/dist-cli/chunks/{chunk-5W3SERZ3.js → chunk-KIALD4JX.js} +2 -2
- package/dist-cli/chunks/{chunk-QE7FDUJN.js → chunk-KIYCMEMO.js} +3 -3
- package/dist-cli/chunks/{chunk-DU2XIAOZ.js → chunk-KIYNMK6P.js} +2 -2
- package/dist-cli/chunks/{chunk-KNGJ7VHE.js → chunk-KQCFBS3K.js} +2 -2
- package/dist-cli/chunks/{chunk-IDGS2QTY.js → chunk-LJLYNHJF.js} +1 -1
- package/dist-cli/chunks/{chunk-63LYNRZC.js → chunk-LW25UTSS.js} +2 -2
- package/dist-cli/chunks/{chunk-S7S2TXMP.js → chunk-MS33P5CV.js} +1 -1
- package/dist-cli/chunks/{chunk-KUHSSHBI.js → chunk-PSDDQWFO.js} +1 -1
- package/dist-cli/chunks/chunk-TAPKEEG2.js +1 -0
- package/dist-cli/chunks/{chunk-7LEIOQSX.js → chunk-TD3PSMQU.js} +1 -1
- package/dist-cli/chunks/chunk-TGPXK5U2.js +2 -0
- package/dist-cli/chunks/{chunk-Q5SCJQUL.js → chunk-UQEDU53Q.js} +2 -2
- package/dist-cli/chunks/{chunk-ZRQEHAES.js → chunk-VVVCJPSQ.js} +1 -1
- package/dist-cli/chunks/{chunk-36ROSEUV.js → chunk-VWAOND2T.js} +1 -1
- package/dist-cli/chunks/{chunk-3DRMNDJ7.js → chunk-WPS3EFNK.js} +1 -1
- package/dist-cli/chunks/{chunk-FQ5ISCZF.js → chunk-XK5YL6SF.js} +2 -2
- package/dist-cli/chunks/{chunk-6GADJWCT.js → chunk-YV35LVCO.js} +2 -2
- package/dist-cli/chunks/cli-version-7DTLL57G.js +2 -0
- package/dist-cli/chunks/{compat-QFJSNZ7F.js → compat-NN643MYB.js} +3 -3
- package/dist-cli/chunks/{config-FYNAEPT6.js → config-GVVXK4LX.js} +2 -2
- package/dist-cli/chunks/{control-AYMN3IBC.js → control-TL666XUK.js} +2 -2
- package/dist-cli/chunks/daemon-MTBKLQAM.js +2 -0
- package/dist-cli/chunks/{debug-IGWPYQVC.js → debug-4D7UPKL6.js} +3 -3
- package/dist-cli/chunks/{desktop-EKR2GZ6P.js → desktop-UK3TXNWM.js} +3 -3
- package/dist-cli/chunks/{detox-JSFPSPI4.js → detox-GGCJIYAO.js} +2 -2
- package/dist-cli/chunks/{device-TOVWFBQJ.js → device-27GVWZRM.js} +2 -2
- package/dist-cli/chunks/{diagnose-SKCJE2OJ.js → diagnose-MRGZ2QTM.js} +2 -2
- package/dist-cli/chunks/drivers-BHAS62HS.js +2 -0
- package/dist-cli/chunks/{film-7ZRUTIPW.js → film-SFZGOMH5.js} +3 -3
- package/dist-cli/chunks/flow-X3NSSQNP.js +2 -0
- package/dist-cli/chunks/help-7WJO45XU.js +2 -0
- package/dist-cli/chunks/{hidden-runtime-alias-CNJPGHH3.js → hidden-runtime-alias-EJ5NRH2V.js} +2 -2
- package/dist-cli/chunks/{home-paths-MUFDNXAD.js → home-paths-ICQCVYFE.js} +2 -2
- package/dist-cli/chunks/inspect-FRSSCWP2.js +2 -0
- package/dist-cli/chunks/install-desktop-67O3RXXA.js +2 -0
- package/dist-cli/chunks/{login-575DYIFV.js → login-YJFCUM4C.js} +4 -4
- package/dist-cli/chunks/{logout-FWSC6I62.js → logout-T4MKUGMT.js} +2 -2
- package/dist-cli/chunks/{maestro-XVRDDQPC.js → maestro-MJH5BSJG.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-D2BWU3QI.js → maestro-generate-5ORUBHVA.js} +3 -3
- package/dist-cli/chunks/{mode-5NB4ZSW7.js → mode-D7MC6TTG.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-KV3FG6HR.js +2 -0
- package/dist-cli/chunks/{perf-FHR37YVM.js → perf-IRUFRNO5.js} +2 -2
- package/dist-cli/chunks/record-GTZOEPUV.js +70 -0
- package/dist-cli/chunks/runtime-RXHJI4Y4.js +2 -0
- package/dist-cli/chunks/{screenshot-command-ZZGUTSXV.js → screenshot-command-72DH5GXF.js} +3 -3
- package/dist-cli/chunks/{screenshots-capture-BOUIB3JS.js → screenshots-capture-6QQ4NPZ6.js} +2 -2
- package/dist-cli/chunks/{serve-YC7L66XG.js → serve-C2GAQBTN.js} +2 -2
- package/dist-cli/chunks/{setup-LUDPDJK4.js → setup-TOAATCCA.js} +3 -3
- package/dist-cli/chunks/{skills-FQ55TVJQ.js → skills-PPGCRJYB.js} +2 -2
- package/dist-cli/chunks/{storage-3KQFUZXP.js → storage-LI55AAJB.js} +2 -2
- package/dist-cli/chunks/store-L4ASCJJM.js +2 -0
- package/dist-cli/chunks/telemetry-BVONU4AY.js +2 -0
- package/dist-cli/chunks/{timeline-SUHWK7B7.js → timeline-VTU7U2F7.js} +2 -2
- package/dist-cli/chunks/{upgrade-U5BIIO7Z.js → upgrade-VQSDSFTG.js} +2 -2
- package/dist-cli/chunks/upload-REVW5JI2.js +2 -0
- package/dist-cli/chunks/{version-JKCTZB5N.js → version-V37CLU3B.js} +2 -2
- package/dist-cli/chunks/web-PPVH2K63.js +2 -0
- package/dist-cli/chunks/{what-happened-ZQV5XPQM.js → what-happened-3ZN3FV34.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 +15 -6
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/beta-FYKGC4H6.js +0 -2
- package/dist-cli/chunks/chunk-3ZNQP22M.js +0 -99
- package/dist-cli/chunks/chunk-CBDZY232.js +0 -2
- package/dist-cli/chunks/chunk-PSEFQYVM.js +0 -1
- package/dist-cli/chunks/chunk-UJZ337EP.js +0 -1
- package/dist-cli/chunks/chunk-WHSY2B3U.js +0 -2
- package/dist-cli/chunks/cli-version-CS57HE3I.js +0 -2
- package/dist-cli/chunks/daemon-UOJGRIKE.js +0 -2
- package/dist-cli/chunks/drivers-VJLWPIKJ.js +0 -2
- package/dist-cli/chunks/flow-4J2JB726.js +0 -2
- package/dist-cli/chunks/help-IZWZPAUI.js +0 -2
- package/dist-cli/chunks/inspect-AELXHN3R.js +0 -2
- package/dist-cli/chunks/install-desktop-L4ZD5MNA.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-4EYB4RJG.js +0 -2
- package/dist-cli/chunks/record-ZKVEEOM3.js +0 -70
- package/dist-cli/chunks/runtime-PFL2DHOG.js +0 -2
- package/dist-cli/chunks/store-KVEMIG7O.js +0 -2
- package/dist-cli/chunks/telemetry-LZQKUZ6S.js +0 -2
- package/dist-cli/chunks/upload-KRWZEVFY.js +0 -2
- package/dist-cli/chunks/web-O6GVKSMI.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.234 | (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-6NUCPZGB.js";import{g as A,i as _}from"./chunk-JXPGKN3F.js";import"./chunk-7ST3HVVO.js";import{c as k}from"./chunk-54U7A36G.js";import"./chunk-5JX4BCGL.js";import"./chunk-2QOLVYFF.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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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.234 | (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;
|
|
@@ -470,10 +470,10 @@ var init_registry = __esm({
|
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
range: ">=4.0.0",
|
|
473
|
-
coverage: 0.
|
|
474
|
-
note: "
|
|
475
|
-
working: "useSharedValue, useAnimatedStyle/Props/Reaction, useDerivedValue, useAnimatedScrollHandler, useFrameCallback, useAnimatedRef, withTiming/Spring/Decay/Delay/Sequence/Repeat/Clamp, interpolate, interpolateColor, runOnJS/UI, measure, scrollTo, Easing, createAnimatedComponent, Animated.View/Text/Image/ScrollView/FlatList",
|
|
476
|
-
missing: "
|
|
473
|
+
coverage: 0.95,
|
|
474
|
+
note: "core animations, gestures, scroll, layout transitions, keyboard, sensors, and reduced motion",
|
|
475
|
+
working: "useSharedValue, useAnimatedStyle/Props/Reaction, useDerivedValue, useAnimatedScrollHandler, useScrollViewOffset, useFrameCallback, useAnimatedRef, useAnimatedKeyboard, useAnimatedSensor, useReducedMotion, entering/exiting/layout transitions, withTiming/Spring/Decay/Delay/Sequence/Repeat/Clamp, interpolate, interpolateColor, runOnJS/UI, measure, scrollTo, Easing, createAnimatedComponent, Animated.View/Text/Image/ScrollView/FlatList",
|
|
476
|
+
missing: "Reanimated 4 native CSS keyframes/transitions, getViewProp, and direct setViewStyle remain incomplete"
|
|
477
477
|
}
|
|
478
478
|
]
|
|
479
479
|
},
|
|
@@ -2897,7 +2897,7 @@ var init_registry = __esm({
|
|
|
2897
2897
|
coverage: 0.92,
|
|
2898
2898
|
note: "real canvaskit-wasm backing via the engine instance (`globalThis.__sootsimCanvasKit`); declarative <Canvas> snapshots each commit through an offscreen SkSurface and mounts the encoded PNG as a host image. zero second canvaskit bundle.",
|
|
2899
2899
|
working: "<Canvas> with offscreen SkSurface paint\u2192PNG\u2192host <Image>, <Path>/<Rect>/<RoundedRect>/<Circle>/<Oval>/<Line>/<Fill>/<Image>/<Text>/<Group> primitives, <LinearGradient>/<RadialGradient>/<SweepGradient>/<ColorShader> paint shaders, <BlurMask>/<Blur>/<Mask>/<Shadow> mask + image filters, <BackdropFilter>/<BackdropBlur>, <DashPathEffect>/<DiscretePathEffect>/<CornerPathEffect>, Skia.Path/Paint/Color/Shader/MaskFilter/ImageFilter/ColorFilter/Font/Typeface/FontMgr factories, Skia.MakeImageFromEncoded, Skia.XYWHRect/LTRBRect/RRectXY/Point/Matrix, useImage (fetches+decodes through canvaskit), useFont (loads typeface from ArrayBuffer / URL), useFonts (matchFamilyStyle), useCanvasRef + ref.makeImageSnapshot, useValue/useDerivedValue/useComputedValue/useValueEffect/useClockValue listener model, BlendMode/StrokeCap/StrokeJoin/FillType/PaintStyle/TileMode/BlurStyle/FontWeight/FontStyle/FontSlant/FontWidth/ClipOp/PathVerb/PathOp/TextAlign/TextDirection enums.",
|
|
2900
|
-
missing: "<RuntimeShader> SkSL compilation+uniform-binding pipeline, <Points>/<TextPath>/<Glyphs>/<ImageSVG>/<Vertices>/<Patch>/<Atlas>/<Picture>/<FitBox>/<Box>/<BoxShadow> (each logs a one-time hint and renders null), <Paint> as a declarative component, useTouchHandler full gesture state machine (we forward a minimal touch handler shape; consumers should use Pressable wrappers for hit-testing), reanimated worklet-driven canvas redraws (`useSharedValueEffect`
|
|
2900
|
+
missing: "<RuntimeShader> SkSL compilation+uniform-binding pipeline, <Points>/<TextPath>/<Glyphs>/<ImageSVG>/<Vertices>/<Patch>/<Atlas>/<Picture>/<FitBox>/<Box>/<BoxShadow> (each logs a one-time hint and renders null), <Paint> as a declarative component, useTouchHandler full gesture state machine (we forward a minimal touch handler shape; consumers should use Pressable wrappers for hit-testing), reanimated worklet-driven canvas redraws (`useSharedValueEffect` subscribes only to the local SkiaValue listener shape; Canvas display-list encoding and setTick/setDataUrl updates remain owned by React useLayoutEffect, so redraws still reconcile through React), Skia.ParagraphBuilder full layout (we keep measurement-only semantics matching the previous stub; for pixel-perfect skia paragraphs apps should wait on the upstream JsiSkParagraphBuilder adapter), Skia.SVG.MakeFromString (canvaskit-wasm omits svg parsing in the size-tuned builds we ship), GPU SkSurface backing on offscreen paints (we use software MakeSurface so each Canvas paint runs on cpu; deferred until a real engine host element owns its own GrDirectContext for paint-only animation)."
|
|
2901
2901
|
}
|
|
2902
2902
|
]
|
|
2903
2903
|
},
|
|
@@ -17197,6 +17197,14 @@ var init_open_url2 = __esm({
|
|
|
17197
17197
|
}
|
|
17198
17198
|
});
|
|
17199
17199
|
|
|
17200
|
+
// cli/run-registry.ts
|
|
17201
|
+
var init_run_registry = __esm({
|
|
17202
|
+
"cli/run-registry.ts"() {
|
|
17203
|
+
"use strict";
|
|
17204
|
+
init_auth();
|
|
17205
|
+
}
|
|
17206
|
+
});
|
|
17207
|
+
|
|
17200
17208
|
// cli/telemetry.ts
|
|
17201
17209
|
var init_telemetry = __esm({
|
|
17202
17210
|
"cli/telemetry.ts"() {
|
|
@@ -17235,6 +17243,7 @@ var init_upload = __esm({
|
|
|
17235
17243
|
init_app_splash();
|
|
17236
17244
|
init_auth();
|
|
17237
17245
|
init_open_url2();
|
|
17246
|
+
init_run_registry();
|
|
17238
17247
|
init_telemetry();
|
|
17239
17248
|
init_ws_bridge();
|
|
17240
17249
|
REMOTE_DEFAULT_ORIGIN = process.env.SOOTSIM_UPLOAD_ORIGIN || "https://contrast.dev";
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.234 | (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,99 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as Ue,b as _e,c as Pe}from"./chunk-MGECBBZI.js";import{c as Be}from"./chunk-AHNX3XFL.js";import{d as Ee}from"./chunk-ZRQEHAES.js";import{d as Ae}from"./chunk-3DRMNDJ7.js";import{g as Re,i as Ie,k as B}from"./chunk-LU5U5HEI.js";import{a as ke,b as E}from"./chunk-DU2XIAOZ.js";import{a as xe}from"./chunk-KNGJ7VHE.js";import{createHash as ht}from"crypto";import{readFileSync as w}from"fs";import Ne from"path";import{gzipSync as ue,gunzipSync as yt}from"zlib";function Le(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 ot,constants as it}from"node:zlib";var at=9;function $e(e){return ot(e,{params:{[it.BROTLI_PARAM_QUALITY]:at}})}function ae(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 lt(e){let t=ae(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 ${e.url} failed ${r.status}: ${s.slice(0,200)}`)}}async function ut(e,t=8,r){let s=0,i=0,a=e.length;await Promise.all(Array.from({length:Math.min(t,a)},async()=>{for(;s<a;){let u=e[s++];await lt(u),i++,r?.(i,a)}}))}function ct(e,t,r,s){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&&s?.eventsBytes&&i.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:s.eventsBytes}),e.timeline&&s?.timelineBytes&&i.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:s.timelineBytes}),e.flowVideo&&s?.videoBytes&&i.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:s.videoBytes}),e.storage&&s?.storageBytes&&i.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:s.storageBytes}),e.failureBundle&&s?.failureBundleBytes&&i.push({url:e.failureBundle.putUrl,contentType:e.failureBundle.contentType,bytes:s.failureBundleBytes});for(let a of e.snapshots??[]){let u=s?.snapshotBytes?.get(a.id);u&&i.push({url:a.putUrl,contentType:a.contentType,bytes:u})}return i}function dt(e){return e.replace(/\/+$/,"")}var K=class extends Error{constructor(r,s,i,a=""){super(r);this.status=s;this.phase=i;this.responseText=a;this.name="PresignedUploadError"}};async function Fe(e){let t=dt(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-contrast-admin-upload-bypass"]=e.adminBypassToken);let s=ae(3e4,"init"),i;try{i=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:s.signal})}finally{s.cancel()}if(!i.ok){let M=await i.text().catch(()=>"");throw new K(`init failed: ${i.status} ${M.slice(0,200)}`,i.status,"init",M)}let a=await i.json(),u=ct(a,e.bundleBytes,e.filesByHash,e.extras);await ut(u,e.concurrency??8,e.onPutProgress);let g=ae(3e4,"finalize"),d;try{d=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:a.token}),signal:g.signal})}finally{g.cancel()}if(!d.ok){let M=await d.text().catch(()=>"");throw new K(`finalize failed: ${d.status} ${M.slice(0,200)}`,d.status,"finalize",M)}let R=await d.json();return{init:a,finalize:R}}function pt(e){return e!==null&&typeof e=="object"?e:null}function Oe(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function le(e){let t=pt(e);return t?t.schemaVersion===1&&Oe(t.t)!==void 0&&Oe(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function ft(e,t){let r=[];for(let s of e.split(`
|
|
3
|
-
`)){let i=s.trim();if(i)try{let a=JSON.parse(i);t(a)&&r.push(a)}catch{}}return r}function Ce(e){return ft(e,le)}function bt(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}function wt(e){let t=JSON.parse(w(e,"utf8"));if(!Array.isArray(t))throw new Error("snapshot manifest must be an array");let r=new Set;return t.map((s,i)=>{if(s===null||typeof s!="object")throw new Error(`snapshot manifest entry ${i} must be an object`);let a=Reflect.get(s,"id"),u=Reflect.get(s,"label"),g=Reflect.get(s,"path"),d=Reflect.get(s,"t");if(typeof a!="string"||!a||r.has(a))throw new Error(`snapshot manifest entry ${i} has an invalid or duplicate id`);if(typeof g!="string"||!g)throw new Error(`snapshot manifest entry ${i} has no PNG path`);if(typeof d!="number"||!Number.isFinite(d)||d<0)throw new Error(`snapshot manifest entry ${i} has an invalid capture time`);r.add(a);let R=w(g);return{meta:{id:a,label:typeof u=="string"&&u?u:a,kind:"interaction",t:Math.round(d),contentType:"image/png",sizeBytes:R.byteLength},bytes:R}})}var Je=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://contrast.dev",qe=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",de="http://localhost:3000",Mt=2e3;async function Tt(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${de}/api/preview/upload/init`,{method:"OPTIONS",signal:AbortSignal.timeout(Mt)});if(t.ok||t.status===204||t.status===405)return de}catch{}return Je}function F(e){return e.replace(/\/$/,"")}function St(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 vt(e){try{let t=new URL(e).hostname.toLowerCase();return t==="contrast.dev"||t.endsWith(".contrast.dev")}catch{return!1}}function xt(e,t){return t?F(t):process.env.SOOTSIM_PREVIEW_ORIGIN?F(process.env.SOOTSIM_PREVIEW_ORIGIN):St(e)?F(e):vt(e)?F(qe):F(e)}function kt(){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 ${de} when available, otherwise
|
|
12
|
-
falls back to ${Je}
|
|
13
|
-
override with SOOTSIM_UPLOAD_ORIGIN env var
|
|
14
|
-
--public-origin <url>
|
|
15
|
-
public /preview link origin (default: ${qe}
|
|
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
|
-
--snapshot-manifest <path>
|
|
24
|
-
JSON manifest of existing interaction PNGs to attach
|
|
25
|
-
--video <path> path to a mp4/gif flow recording. embedded inline
|
|
26
|
-
in the pr sticky comment served at
|
|
27
|
-
/api/preview/flow-video?id=<share-id>
|
|
28
|
-
--video-duration-ms <ms>
|
|
29
|
-
duration hint for attached flow video
|
|
30
|
-
--timeline-events <path>
|
|
31
|
-
extra trace timeline rows, JSONL or JSONL gz
|
|
32
|
-
--trace-frame-stats <path>
|
|
33
|
-
frame stats JSON returned by the recorder bridge
|
|
34
|
-
--failure-bundle <dir>
|
|
35
|
-
per-failure debug bundle dir written by the flow runner
|
|
36
|
-
(error.json, describe.json, a11y.txt, tree.txt,
|
|
37
|
-
console.json, screenshot.png). uploaded with the share
|
|
38
|
-
so failed CI runs are debuggable from the dashboard
|
|
39
|
-
--owner <org> associate a session upload with a linked org repo
|
|
40
|
-
--repo <repo> repo name for --owner; the signed-in user must belong
|
|
41
|
-
to the local/org team that owns the link
|
|
42
|
-
--billing-kind test_run
|
|
43
|
-
meter this upload as a natural-language test run
|
|
44
|
-
--sim <sim> target a specific sim (see: sootsim list)
|
|
45
|
-
--open open the resulting /preview/<id> url in the browser
|
|
46
|
-
--assets-only drop API/JSON/HTML records before upload; keep images,
|
|
47
|
-
fonts, css, js, and binary blobs. live-data demos hit
|
|
48
|
-
the real network at replay time instead of serving
|
|
49
|
-
recorded API snapshots
|
|
50
|
-
-h, --help
|
|
51
|
-
|
|
52
|
-
examples:
|
|
53
|
-
sootsim record upload --events ./my-session.jsonl.gz
|
|
54
|
-
sootsim record upload --origin http://localhost:3000 --events ./my-session.jsonl.gz --open
|
|
55
|
-
sootsim record upload --video /tmp/sootsim-flow.mp4 --video-duration-ms 12000
|
|
56
|
-
`)}function p(e,t){let r=e.findIndex(i=>i===t);if(r<0)return;let s=e[r+1];return e.splice(r,2),s}function ze(e,t){let r=e.findIndex(s=>s===t);return r<0?!1:(e.splice(r,1),!0)}function De(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 je(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 Et(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Bt(e){try{return new URL(e).searchParams.get("appFonts")||""}catch{return""}}function Rt(e){try{return new URL(e).searchParams.get("appSplash")||""}catch{return""}}function It(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 At(e,t){let s=[];for(let i=0;i<t;i+=15e5){let a=Math.min(i+15e5,t),u=await B(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${i}, ${a})`);if(typeof u!="string")return null;s.push(u)}return s.join("")}function Ut(e){return e.recordedDurationMs&&e.recordingStartedAtMs?{since:e.recordingStartedAtMs-1e4,until:e.recordingStartedAtMs+e.recordedDurationMs+5e3,limit:2e3}:{limit:2e3}}function _t(e){let t=w(e),s=(t[0]===31&&t[1]===139?yt(t):t).toString("utf8");return Ce(s)}function Pt(e){return JSON.parse(w(e,"utf8"))}function Lt(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 s=[];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;s.push({schemaVersion:1,t:r+Math.round(i[0]),seq:s.length+1,context:"tenant",kind:"frame",data:{totalMs:a(i[1]),layoutMs:a(i[2]),renderMs:a(i[3]),copyMs:a(i[4])}})}return s}function $t(e){if(e===null||typeof e!="object")return e;let{samples:t,...r}=e;return r}function ce(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function rn(e,t){(e.includes("--help")||e.includes("-h"))&&(kt(),process.exit(0));let r=[...e],s=await Tt(p(r,"--origin")),i=xt(s,p(r,"--public-origin")),a=p(r,"--events"),u=p(r,"--screenshot"),g=p(r,"--snapshot-manifest"),d=p(r,"--video"),R=p(r,"--timeline-events"),M=p(r,"--trace-frame-stats"),V=p(r,"--failure-bundle"),G=p(r,"--video-duration-ms"),pe=De(p(r,"--recorded-duration-ms"),"--recorded-duration-ms"),fe=De(p(r,"--recording-started-at-ms"),"--recording-started-at-ms"),W=p(r,"--owner"),Y=p(r,"--repo"),z=p(r,"--billing-kind"),Ke=p(r,"--run-scope"),Ve=ze(r,"--open");(W&&!Y||!W&&Y)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),z&&z!=="test_run"&&(console.error(` invalid --billing-kind: ${z}`),process.exit(1)),!a&&!d&&(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 maestro test --preview` instead of uploading a bundle-only snapshot."),process.exit(1));let me=ze(r,"--assets-only"),Ge=Re(r,{stripBooleanFlags:[],stripValueFlags:[]}),T=Ie(Ge),c,ge=[],S=[],v=R?_t(R):[],he=M?Pt(M):null;v.push(...Lt(he));let ye=v.length,Q=null;try{if(c=await B(T,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),c?.bundleUrl){let l=new URL(c.bundleUrl).origin,[f,_]=await Promise.all([B(T,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(l)}) || [])`),B(T,`(async () => {
|
|
57
|
-
const list = window.__sootsimListWorkerFetchRecorder
|
|
58
|
-
return typeof list === 'function'
|
|
59
|
-
? await list(${JSON.stringify(l)})
|
|
60
|
-
: []
|
|
61
|
-
})()`)]);ge=ce([...f,..._]).filter(m=>{try{return!new URL(m.url).pathname.startsWith("/api/")}catch{return!0}});let $=await B(T,`(async () => {
|
|
62
|
-
const rec = window.__sootsimPreviewRecorder
|
|
63
|
-
const workerList = window.__sootsimListWorkerFetchRecorder
|
|
64
|
-
return {
|
|
65
|
-
main: rec?.list ? rec.list() : [],
|
|
66
|
-
worker: typeof workerList === 'function' ? await workerList() : [],
|
|
67
|
-
}
|
|
68
|
-
})()`),N=($?ce([...$.main,...$.worker]):[]).filter(m=>{try{return new URL(m.url).origin!==l}catch{return!1}}),k=N.length>0?{count:N.length,totalBytes:N.reduce((m,oe)=>m+(oe.size||0),0)}:null;if(k&&k.count>0){console.log(` ${k.count} recorded cross-origin responses (${(k.totalBytes/1024).toFixed(1)} KiB)`);let m=await B(T,`(async () => {
|
|
69
|
-
const rec = window.__sootsimPreviewRecorder
|
|
70
|
-
const workerDump = window.__sootsimDumpWorkerFetchRecorder
|
|
71
|
-
const bundleUrl = ${JSON.stringify(c.bundleUrl)}
|
|
72
|
-
const keep = (r) => {
|
|
73
|
-
try {
|
|
74
|
-
const u = new URL(r.url)
|
|
75
|
-
if (u.origin !== ${JSON.stringify(l)}) return true
|
|
76
|
-
// bundle-origin api responses came from the rewritten
|
|
77
|
-
// /__app-api proxy at record time (re-keyed by the
|
|
78
|
-
// recorder's unwrap step). they need bodies attached the
|
|
79
|
-
// same way as cross-origin records \u2014 direct re-fetch from
|
|
80
|
-
// the dev server lacks the bundle's session cookies.
|
|
81
|
-
if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
|
|
82
|
-
return false
|
|
83
|
-
} catch { return false }
|
|
84
|
-
}
|
|
85
|
-
return {
|
|
86
|
-
main: rec?.dump ? rec.dump().filter(keep) : [],
|
|
87
|
-
worker: typeof workerDump === 'function'
|
|
88
|
-
? (await workerDump()).filter(keep)
|
|
89
|
-
: [],
|
|
90
|
-
}
|
|
91
|
-
})()`);if(S=ce([...m.main,...m.worker]),me){let oe=S.length;S=S.filter(ie=>je(ie.contentType));let rt=k.totalBytes-S.reduce((ie,st)=>ie+(st.size||0),0);console.log(` --assets-only: kept ${S.length}/${oe} records (dropped ${(rt/1024).toFixed(1)} KiB of API responses)`)}}}c?.transformedBundle&&(Q=await At(T,c.transformedBundle.byteLength));let n=await B(T,`(() => {
|
|
92
|
-
const bridge = window.SootSim?.bridges?.timeline ?? window.__sootsimTimeline
|
|
93
|
-
if (!bridge || typeof bridge.recent !== 'function') return null
|
|
94
|
-
return bridge.recent(${JSON.stringify(Ut({recordedDurationMs:pe,recordingStartedAtMs:fe}))})
|
|
95
|
-
})()`).catch(l=>(console.warn(` warning: failed to capture trace timeline: ${l instanceof Error?l.message:String(l)}`),null)),o=Array.isArray(n?.events)?n.events:[];v=[...v,...o.filter(le)].sort((l,f)=>l.t-f.t||l.seq-f.seq)}finally{T.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.
|
|
96
|
-
open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let h,X=!1;if(Q!==null)h=new TextEncoder().encode(Q),X=!0,console.log(` using post-transform bundle: ${(h.byteLength/1024).toFixed(1)} KiB`);else{let n=It(c.bundleUrl);n!==c.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),h=await He(n),console.log(` main bundle: ${(h.byteLength/1024).toFixed(1)} KiB`)}let D=ge.filter(n=>n.url!==c.bundleUrl);me&&(D=D.filter(n=>je(n.contentType))),console.log(` fetching ${D.length} extra files\u2026`);let j=(await Promise.all(D.map(async n=>{try{let o=await He(n.url);return{...n,bytes:o}}catch(o){return console.error(` warning: failed to re-fetch ${n.url}: ${o instanceof Error?o.message:o}`),null}}))).filter(n=>!!n),We=j.reduce((n,o)=>n+o.bytes.byteLength,0);console.log(` ${j.length} extra files: ${(We/1024).toFixed(1)} KiB`);let I;a&&(I=w(a)),v.sort((n,o)=>n.t-o.t||n.seq-o.seq);let be=v.map(n=>JSON.stringify(n)).join(`
|
|
97
|
-
`),Z=ue(be?`${be}
|
|
98
|
-
`:"");console.log(` trace timeline: ${v.length} events${ye?` (${ye} from runner sidecars)`:""}`);let y;u&&(y=w(u),console.log(` attaching screenshot: ${(y.byteLength/1024).toFixed(1)} KiB`));let O=g?wt(g):[];O.length>0&&console.log(` attaching ${O.length} interaction snapshots`);let A,U;if(V){let n=f=>{try{return w(Ne.join(V,f),"utf8")}catch{return null}},o=f=>{let _=n(f);if(_===null)return null;try{return JSON.parse(_)}catch{return _}},l={error:o("error.json"),describe:o("describe.json"),console:o("console.json"),a11y:n("a11y.txt"),tree:n("tree.txt")};Object.values(l).some(f=>f!==null)&&(A=ue(JSON.stringify(l)),console.log(` attaching failure bundle: ${(A.byteLength/1024).toFixed(1)} KiB gz`));try{U=w(Ne.join(V,"screenshot.png"))}catch{}}let x,C,we;if(d){if(x=w(d),C=d.endsWith(".mp4")?"video/mp4":d.endsWith(".gif")?"image/gif":void 0,C||(console.error(" preview flow videos must be mp4 or gif"),await E(),process.exit(1)),G){let n=Number(G);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${G}`),await E(),process.exit(1)),we=Math.round(n)}console.log(` attaching flow video: ${(x.byteLength/1024).toFixed(1)} KiB (${C})`)}let P=Ue(),L=Pe(P),Ye=xe();ke({event:"preview_upload_started",identity:{userId:P?.kind==="session"?Ye?.user?.id??null:null,repoId:L?.repoId??null,installationId:L?.installationId??null},properties:{origin:s,hasAuth:!!P,authMode:P?.kind??"none",bundleBytes:h.byteLength,isTransformed:X,extraFiles:j.length,recordedFetches:S.length,hasEvents:!!I,traceTimelineEvents:v.length,hasScreenshot:!!y,hasVideo:!!x}}),P||(console.error(" preview uploads need auth."),console.error(" set SOOTSIM_API_KEY=sk_sootsim_..., run `sootsim login`, or use the Contrast github runner."),await E(),process.exit(1));let Qe=_e(P),Xe=(()=>{try{return new URL(c.bundleUrl).origin}catch{return null}})(),H=(n,o,l,f,_,$,ve,N)=>{let k=Le($),m=k?ue(n):n;return{url:o,urlhash:l,method:f,bodyHash:_,requestVaryHash:N,contentType:$,responseHeaders:ve,bytes:m,encoding:k?"gzip":void 0}},Me=[],ee=Bt(c.pageHref)||"";if(ee){let n=await Ee(ee,{onStaged:({url:o,byteLength:l})=>console.log(` staged app font: ${o} (${(l/1024).toFixed(1)} KiB)`),onError:(o,l)=>console.error(` warning: failed to fetch app font ${o}: ${l instanceof Error?l.message:l}`)});for(let o of n)Me.push(H(Buffer.from(o.bytes),o.url,o.urlhash,"GET","-",o.contentType))}let Te=[],te=Rt(c.pageHref)||"";if(te){let n=await Be(te,{onStaged:({url:o,byteLength:l})=>console.log(` staged splash image: ${o} (${(l/1024).toFixed(1)} KiB)`),onError:(o,l)=>console.error(` warning: failed to fetch splash image ${o}: ${l instanceof Error?l.message:l}`)});for(let o of n)Te.push(H(Buffer.from(o.bytes),o.url,o.urlhash,"GET","-",o.contentType))}let ne=[...j.map(n=>H(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...S.map(n=>H(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash)),...Me,...Te],re=$e(h),Ze=ht("sha256").update(h).digest("hex");console.log(` bundle raw=${(h.byteLength/1024).toFixed(1)} KiB br=${(re.byteLength/1024).toFixed(1)} KiB`);let et={contentHash:Ze,bundleSizeBytes:h.byteLength,bundleContentType:Et(c.bundleUrl),bundleEncoding:"br",bundleOrigin:Xe,runtimeVersion:c.runtimeVersion??void 0,appFonts:ee||void 0,appSplash:te||void 0,entry:c.entry,isTransformed:X,deviceSpec:c.deviceSpec,installationId:L?.installationId??void 0,repoId:L?.repoId,owner:W??L?.owner,repo:Y??L?.repo,billingKind:z==="test_run"?"test_run":void 0,runScope:Ke||void 0,files:ne.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:I?{sizeBytes:I.byteLength}:void 0,timeline:{sizeBytes:Z.byteLength,encoding:"gzip"},traceFrameStats:$t(he),recordedDurationMs:pe,recordingStartedAtMs:fe,failureBundle:A?{sizeBytes:A.byteLength,encoding:"gzip"}:void 0,snapshots:(()=>{let n=[];y&&n.push({id:"landing",label:"Landing",kind:"landing",t:0,contentType:"image/png",sizeBytes:y.byteLength}),U&&n.push({id:"failure",label:"Failure",kind:"failure",contentType:"image/png",sizeBytes:U.byteLength});for(let o of O)n.push(o.meta);return n.length>0?n:void 0})(),flowVideo:x&&C?{sizeBytes:x.byteLength,contentType:C,durationMs:we}:void 0},Se=new Map;for(let n of ne)Se.set(n.urlhash,n.bytes);let J=new Map;y&&J.set("landing",y),U&&J.set("failure",U);for(let n of O)J.set(n.meta.id,n.bytes);let tt=Date.now(),b=re.byteLength;for(let n of ne)b+=n.bytes.byteLength;I&&(b+=I.byteLength),b+=Z.byteLength,y&&(b+=y.byteLength),U&&(b+=U.byteLength);for(let n of O)b+=n.bytes.byteLength;A&&(b+=A.byteLength),x&&(b+=x.byteLength);let nt=`${F(s)}/api/preview/upload/init`;console.log(` init: ${nt}`);let q;try{let n=await Fe({originBase:s,initBody:et,bundleBytes:re,filesByHash:Se,extras:{eventsBytes:I,timelineBytes:Z,videoBytes:x,failureBundleBytes:A,snapshotBytes:J},authHeader:Qe,concurrency:16});q=n.finalize;let o=1+n.init.files.length+(n.init.events?1:0)+(n.init.timeline?1:0)+n.init.snapshots.length+(n.init.flowVideo?1:0)+(n.init.failureBundle?1:0);console.log(` PUT ${o} objects in ${Date.now()-tt}ms (${(b/1024).toFixed(1)} KiB)`)}catch(n){let o=n;o.phase==="init"&&o.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await E(),process.exit(1)),o.status===402&&(console.error(` ${bt(o.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await E(),process.exit(1)),console.error(` ${o.message??`${o.phase??"upload"} failed: ${String(n)}`}`),await E(),process.exit(1)}let se=`${i}${q.url}`;return console.log(`
|
|
99
|
-
stored ${q.filesStored??0} extra files`),console.log(` preview: ${se}`),Ve&&await Ae(se),await E(),{previewUrl:se,shareId:q.id}}export{Tt as a,xt as b,rn as c};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{h as w,j as u,k as m,l}from"./chunk-46QQ23PF.js";var p="sootsim:settings",v=["errorReporting","colorScheme","a11yMode","a11yDepth","screenshotCanvas","screenshotBackground","screenshotText","screenshotPose","screenshotDynamicSize","alwaysShowLiveWebViews","agentProvider","onboardingComplete","betaConsentVersion","detailedTelemetry"];function S(){if(typeof window>"u")return null;let e=window.sootsimElectron;return e&&typeof e=="object"?e:null}function g(e){let t={};for(let n of v){if(!(n in e))continue;let r=e[n],o=u[n];o.validate&&!o.validate(r)||o.options&&!o.options.includes(r)||(t[n]=r)}return t}function h(e){let t={};for(let n of v)t[n]=e[n];return t}function _(){if(typeof localStorage>"u")return{};try{let e=localStorage.getItem(p);return e?g(JSON.parse(e)):{}}catch{return{}}}function V(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(p,JSON.stringify(h(e)))}catch{}}function E(){let t=S()?.sharedConfig?.settings;return!t||typeof t!="object"?{}:g(t)}function K(e){let t=S();if(t?.writeSharedConfig)try{t.writeSharedConfig({settings:h(e)})}catch{}}function b(){if(typeof window>"u")return null;let e=window.__sootsimSharedConfig;return e&&typeof e=="object"?e:null}function j(){let e=b()?.settings;return!e||typeof e!="object"?{}:g(e)}function D(e){if(!b())return;let t={settings:h(e)};try{if(globalThis.__sootsimBridgeRequest?.writeSharedConfig?.(t))return}catch{}if(!(typeof fetch>"u"))try{fetch("/__sootsim/shared-config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),keepalive:!0}).catch(()=>{})}catch{}}function k(){let e=_(),t=j(),n=E();return{...e,...t,...n}}function R(e){V(e),K(e),D(e)}function C(e){if(typeof window>"u")return()=>{};let t=i=>{if(!(i.key!==p||i.newValue==null))try{e(g(JSON.parse(i.newValue)))}catch{}};window.addEventListener("storage",t);let n=S(),r;n?.onSharedConfigChanged&&(r=n.onSharedConfigChanged(i=>{let d=i?.settings;!d||typeof d!="object"||e(g(d))}));let c=globalThis.__sootsimBridgeRequest?.subscribeSharedConfig?.(i=>{let d=i?.settings;!d||typeof d!="object"||e(g(d))});return()=>{window.removeEventListener("storage",t),r?.(),c?.()}}var M=l(),P=k();for(let e of Object.keys(m()))delete P[e];var s={...M,...P},f=[],a=null;function y(){for(let e of f)e();R(s)}C(e=>{let t={...s},n=!1;for(let[r,o]of Object.entries(e)){let c=r;t[c]!==o&&(t[c]=o,n=!0)}if(n){s=t,a=null;for(let r of f)r()}});var L={get(e){return s[e]},set(e,t){let n=u[e];n.validate&&!n.validate(t)||n.options&&!n.options.includes(t)||s[e]!==t&&(s={...s,[e]:t},e==="deviceModel"&&(a=null),y())},getAll(){return s},apply(e){let t=!1,n={...s};for(let[r,o]of Object.entries(e)){if(o===void 0)continue;let c=r,i=u[c];i&&(i.validate&&!i.validate(o)||i.options&&!i.options.includes(o)||n[c]!==o&&(n[c]=o,t=!0))}t&&(s=n,a=null,y())},reset(){s=l(),a=null,y()},subscribe(e){return f.push(e),()=>{f=f.filter(t=>t!==e)}},getDeviceSpec(){return a||(a=w(s.deviceModel)),a},getA11yMode(){return s.a11yMode},setA11yMode(e){this.set("a11yMode",e)},getInspectMode(){return s.inspectMode},setInspectMode(e){this.set("inspectMode",e)}};export{L as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as d,b as p}from"./chunk-MGECBBZI.js";import{execSync as c}from"child_process";function s(e){try{return c(e,{stdio:["ignore","pipe","ignore"],timeout:3e3,encoding:"utf8"}).trim()||null}catch{return null}}function o(e){let n=e?.trim();return!n||!/^\d+$/.test(n)?null:Number(n)}function m(){let e=s("git remote get-url origin");if(!e)return null;let n=e.match(/github\.com[/:]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i);return n?{owner:n[1],repo:n[2]}:null}function f(){let e=process.env.GITHUB_ACTIONS==="true",n=(process.env.CONTRAST_REPO||process.env.GITHUB_REPOSITORY||"").trim(),[r,i]=n.includes("/")?n.split("/",2):[null,null];if(e){let u=process.env.GITHUB_REF?.match(/^refs\/pull\/(\d+)\//)?.[1];return{owner:r,repo:i,branch:process.env.GITHUB_HEAD_REF?.trim()||process.env.GITHUB_REF_NAME?.trim()||null,commitSha:process.env.GITHUB_SHA?.trim()||null,githubUsername:process.env.GITHUB_ACTOR?.trim()||null,pullRequestNumber:o(process.env.CONTRAST_PR_NUMBER)??o(u),githubRunId:process.env.GITHUB_RUN_ID?.trim()||null,source:"ci"}}let l=s("git rev-parse --abbrev-ref HEAD"),t=r?null:m();return{owner:r??t?.owner??null,repo:i??t?.repo??null,branch:l==="HEAD"?null:l,commitSha:s("git rev-parse HEAD"),githubUsername:null,pullRequestNumber:o(process.env.CONTRAST_PR_NUMBER),githubRunId:null,source:"cli"}}function R(e){if(e.length===0)return{stepCount:null,failedStepIndex:null};let n=e.find(r=>r.status==="failure");return{stepCount:e.length,failedStepIndex:n?n.stepIndex:null}}function b(e){return e.auth?e.uploadedShare?!0:e.auth.kind==="github"||process.env.GITHUB_ACTIONS==="true":!1}async function S(e){let n=e.auth??d();if(!n)return null;let r=f(),i=e.owner??(n.kind==="github"?n.owner:null)??r.owner,l=e.repo??(n.kind==="github"?n.repo:null)??r.repo;try{let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/sootsim/test-runs`,{method:"POST",headers:{"content-type":"application/json",authorization:p(n)},body:JSON.stringify({kind:e.kind,source:r.source,name:e.name??void 0,prompt:e.prompt??void 0,summary:e.summary??void 0,status:e.status,failureMessage:e.failureMessage??void 0,previewShareId:e.previewShareId??void 0,owner:i??void 0,repo:l??void 0,branch:r.branch??void 0,commitSha:r.commitSha??void 0,githubUsername:r.githubUsername??void 0,pullRequestNumber:r.pullRequestNumber??void 0,githubRunId:r.githubRunId??void 0,stepCount:e.stepCount??void 0,failedStepIndex:e.failedStepIndex??void 0,durationMs:e.durationMs??void 0,flowYamlSizeBytes:e.flowYamlSizeBytes??void 0})});if(!t.ok){let a=await t.text().catch(()=>"");return console.warn(` warn: run registration failed: /api/sootsim/test-runs ${t.status}${a?`: ${a.slice(0,200)}`:""}`),null}let u=await t.json();return u.run?.id?{id:u.run.id,previewUrl:u.run.previewUrl??null,traceUrl:u.run.traceUrl??null}:(console.warn(" warn: run registration returned no id"),null)}catch(t){return console.warn(` warn: run registration failed: ${t instanceof Error?t.message:String(t)}`),null}}export{R as a,b,S as c};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d,e}from"./chunk-3654N4EX.js";import"./chunk-DU2XIAOZ.js";import"./chunk-KNGJ7VHE.js";import"./chunk-ZRRTM6WY.js";import"./chunk-G7DEABX5.js";import"./chunk-63LYNRZC.js";import"./chunk-FQ5ISCZF.js";import"./chunk-TQF5LD6Y.js";import"./chunk-TB775GFN.js";import"./chunk-7LEIOQSX.js";import"./chunk-GQQZNMLJ.js";import"./chunk-5SAISMRK.js";import"./chunk-ZQBKE54L.js";import"./chunk-46QQ23PF.js";import"./chunk-Q3KYEB42.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.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import"./chunk-UJZ337EP.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-WBWRABBM.js";import"./chunk-S7S2TXMP.js";import"./chunk-3DRMNDJ7.js";import"./chunk-TB775GFN.js";import"./chunk-GQQZNMLJ.js";import"./chunk-Q3KYEB42.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.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{c,d,e,f,g,h}from"./chunk-QE7FDUJN.js";import"./chunk-ULBICLEG.js";import"./chunk-KUHSSHBI.js";import{c as a,d as b}from"./chunk-FMZCSQXP.js";import"./chunk-RTLMLUPQ.js";import"./chunk-3ZNQP22M.js";import"./chunk-MGECBBZI.js";import"./chunk-KR5WHNHB.js";import"./chunk-WAVNZQ5B.js";import"./chunk-PSEFQYVM.js";import"./chunk-WBWRABBM.js";import"./chunk-S7S2TXMP.js";import"./chunk-AHNX3XFL.js";import"./chunk-ZRQEHAES.js";import"./chunk-3DRMNDJ7.js";import"./chunk-36ROSEUV.js";import"./chunk-6GADJWCT.js";import"./chunk-3RIGVY4O.js";import"./chunk-LU5U5HEI.js";import"./chunk-IDGS2QTY.js";import"./chunk-DU2XIAOZ.js";import"./chunk-KNGJ7VHE.js";import"./chunk-63LYNRZC.js";import"./chunk-FQ5ISCZF.js";import"./chunk-TQF5LD6Y.js";import"./chunk-TB775GFN.js";import"./chunk-7LEIOQSX.js";import"./chunk-GQQZNMLJ.js";import"./chunk-CBDZY232.js";import"./chunk-46QQ23PF.js";import"./chunk-Q3KYEB42.js";export{e as discoverSootsimUrl,c as getLastFlowPreviewUploadResult,d as getLastFlowTraceSteps,g as hoistLeadingSimFlag,a as parseFlowFile,f as runFlowPlayback,h as runMaestroAuthoring,b as validateFlowFile};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c}from"./chunk-ZRRTM6WY.js";import"./chunk-G7DEABX5.js";import"./chunk-63LYNRZC.js";import"./chunk-FQ5ISCZF.js";import"./chunk-TQF5LD6Y.js";import"./chunk-TB775GFN.js";import"./chunk-7LEIOQSX.js";import"./chunk-GQQZNMLJ.js";import"./chunk-5SAISMRK.js";import"./chunk-ZQBKE54L.js";import"./chunk-46QQ23PF.js";import"./chunk-Q3KYEB42.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.233 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{j as a,k as b}from"./chunk-FMZCSQXP.js";import"./chunk-RTLMLUPQ.js";import"./chunk-KR5WHNHB.js";import"./chunk-WAVNZQ5B.js";import"./chunk-PSEFQYVM.js";import"./chunk-WBWRABBM.js";import"./chunk-S7S2TXMP.js";import"./chunk-AHNX3XFL.js";import"./chunk-ZRQEHAES.js";import"./chunk-3DRMNDJ7.js";import"./chunk-36ROSEUV.js";import"./chunk-6GADJWCT.js";import"./chunk-3RIGVY4O.js";import"./chunk-LU5U5HEI.js";import"./chunk-IDGS2QTY.js";import"./chunk-63LYNRZC.js";import"./chunk-FQ5ISCZF.js";import"./chunk-TQF5LD6Y.js";import"./chunk-TB775GFN.js";import"./chunk-7LEIOQSX.js";import"./chunk-GQQZNMLJ.js";import"./chunk-CBDZY232.js";import"./chunk-46QQ23PF.js";import"./chunk-Q3KYEB42.js";export{a as printShellPerfReport,b as runInspect};
|