sootsim 0.1.307 → 0.1.309
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 +5 -5
- package/dist-cli/chunks/{agent-BQ3KAQAU.js → agent-PJLXWBDD.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-DS6FBIAI.js → agent-wrapper-3MUIIBXT.js} +2 -2
- package/dist-cli/chunks/{app-fonts-VTLZYBCH.js → app-fonts-U64NV2YF.js} +2 -2
- package/dist-cli/chunks/{assert-MPQ4CDNH.js → assert-M4P25OHW.js} +2 -2
- package/dist-cli/chunks/{auth-O3PQ5WAK.js → auth-4UUAINI4.js} +2 -2
- package/dist-cli/chunks/{beta-CHK46VAX.js → beta-AC2BNWOQ.js} +2 -2
- package/dist-cli/chunks/{camera-YOO6XYC5.js → camera-LATKOQVT.js} +2 -2
- package/dist-cli/chunks/{chunk-NLE5PR7V.js → chunk-223S4HOM.js} +2 -2
- package/dist-cli/chunks/{chunk-SLEKK2UU.js → chunk-25GKNYXJ.js} +1 -1
- package/dist-cli/chunks/{chunk-Q35WXZFI.js → chunk-26LS4GPM.js} +2 -2
- package/dist-cli/chunks/{chunk-RCLJQZQR.js → chunk-2HUVXSCB.js} +2 -2
- package/dist-cli/chunks/{chunk-SZX2PHDS.js → chunk-2LXM5BMK.js} +1 -1
- package/dist-cli/chunks/{chunk-4QCKHLRV.js → chunk-3BN7ACIG.js} +2 -2
- package/dist-cli/chunks/{chunk-ZJR2AKLU.js → chunk-3KB6LLD2.js} +2 -2
- package/dist-cli/chunks/{chunk-7HPBPICZ.js → chunk-47AF7DZW.js} +1 -1
- package/dist-cli/chunks/{chunk-WE6WXVYB.js → chunk-5O56UY3I.js} +2 -2
- package/dist-cli/chunks/{chunk-WPVMW3I5.js → chunk-6ZIFXWDJ.js} +1 -1
- package/dist-cli/chunks/{chunk-7T5WCLEU.js → chunk-7BSX3TEH.js} +2 -2
- package/dist-cli/chunks/{chunk-537ULSCX.js → chunk-7QL76I5Z.js} +2 -2
- package/dist-cli/chunks/{chunk-EWSHWBPU.js → chunk-A6FYCXLX.js} +1 -1
- package/dist-cli/chunks/{chunk-CKLXK3SU.js → chunk-ASR54LQA.js} +2 -2
- package/dist-cli/chunks/{chunk-E2AY5MPI.js → chunk-BDOGRZ6M.js} +1 -1
- package/dist-cli/chunks/{chunk-Q32TOAPX.js → chunk-DFLNNIMW.js} +3 -3
- package/dist-cli/chunks/{chunk-XRUSCWIH.js → chunk-DLPIGWDZ.js} +2 -2
- package/dist-cli/chunks/{chunk-FRTR2EUL.js → chunk-FAI6B7KM.js} +3 -3
- package/dist-cli/chunks/{chunk-OQ6KN4TP.js → chunk-FJ5D7KBQ.js} +2 -2
- package/dist-cli/chunks/{chunk-6Q3FIZGP.js → chunk-FOWD7TYC.js} +1 -1
- package/dist-cli/chunks/{chunk-UKKB52JO.js → chunk-FSM2WGIT.js} +2 -2
- package/dist-cli/chunks/{chunk-5MN7CUQB.js → chunk-FYVL4NBD.js} +1 -1
- package/dist-cli/chunks/{chunk-IBM36KUP.js → chunk-GEXLPJZ6.js} +2 -2
- package/dist-cli/chunks/{chunk-LL76B22R.js → chunk-GHXN67UJ.js} +2 -2
- package/dist-cli/chunks/{chunk-NWOGE4YS.js → chunk-GVTCP23K.js} +3 -3
- package/dist-cli/chunks/{chunk-Z772XMEF.js → chunk-H4F7PJTT.js} +1 -1
- package/dist-cli/chunks/{chunk-YPKDDYIE.js → chunk-HKQURR57.js} +2 -2
- package/dist-cli/chunks/{chunk-QJ7B6FFD.js → chunk-I2RMH3PV.js} +2 -2
- package/dist-cli/chunks/{chunk-UURKPOZU.js → chunk-I5SSRJDW.js} +7 -7
- package/dist-cli/chunks/{chunk-J52NXD2T.js → chunk-IPNM6NRT.js} +2 -2
- package/dist-cli/chunks/{chunk-3S57XWPX.js → chunk-ISONHFRC.js} +1 -1
- package/dist-cli/chunks/{chunk-ZZBMQEEE.js → chunk-JVWHA7TR.js} +2 -2
- package/dist-cli/chunks/{chunk-NK72QUBY.js → chunk-LFJQHZGK.js} +2 -2
- package/dist-cli/chunks/{chunk-746PZ7ND.js → chunk-LR5GL7TZ.js} +1 -1
- package/dist-cli/chunks/{chunk-KPDYFXBD.js → chunk-N236X7SZ.js} +1 -1
- package/dist-cli/chunks/{chunk-4BZ6SM53.js → chunk-N4Z7NF3J.js} +3 -3
- package/dist-cli/chunks/{chunk-2P5OBO7Z.js → chunk-NMC3E6DO.js} +1 -1
- package/dist-cli/chunks/{chunk-EY5RFXHC.js → chunk-ODFSRDJM.js} +1 -1
- package/dist-cli/chunks/{chunk-3JLFWHOZ.js → chunk-POTUFLUZ.js} +1 -1
- package/dist-cli/chunks/{chunk-S5QHC5LD.js → chunk-S3YHQIHR.js} +1 -1
- package/dist-cli/chunks/{chunk-KCRDI5B2.js → chunk-S6YNVIOG.js} +2 -2
- package/dist-cli/chunks/{chunk-LTS6OYSK.js → chunk-SJHHKL2L.js} +2 -2
- package/dist-cli/chunks/{chunk-AD2J3Y5G.js → chunk-V7MJLIGU.js} +2 -2
- package/dist-cli/chunks/{chunk-SZDXEZ2I.js → chunk-VK3PJJAQ.js} +1 -1
- package/dist-cli/chunks/{chunk-YIKFWG22.js → chunk-W7C6FSWM.js} +2 -2
- package/dist-cli/chunks/{chunk-XVQ2YGCI.js → chunk-WKDTGITC.js} +1 -1
- package/dist-cli/chunks/{chunk-SKMVVRFI.js → chunk-Y2KNXEIX.js} +2 -2
- package/dist-cli/chunks/{chunk-WTWGQFNU.js → chunk-YRNCMR5K.js} +2 -2
- package/dist-cli/chunks/{chunk-2ODPPVQC.js → chunk-ZE3HG74O.js} +2 -2
- package/dist-cli/chunks/{chunk-BO2XSJJA.js → chunk-ZYZVAMKO.js} +1 -1
- package/dist-cli/chunks/{cleanup-RT2PX5NP.js → cleanup-264HUJBQ.js} +2 -2
- package/dist-cli/chunks/{cli-version-W3D5LXK5.js → cli-version-VBD6G5WE.js} +2 -2
- package/dist-cli/chunks/{compat-LGAXCMPJ.js → compat-2LLTMAGD.js} +2 -2
- package/dist-cli/chunks/{config-3MQYRCSB.js → config-K67AEQAU.js} +2 -2
- package/dist-cli/chunks/{control-MDWGTCXV.js → control-3VWXBZ2B.js} +2 -2
- package/dist-cli/chunks/daemon-4EOVMYNW.js +4 -0
- package/dist-cli/chunks/{debug-UKOFTGI3.js → debug-JO43E32E.js} +3 -3
- package/dist-cli/chunks/{desktop-N6TEZAIJ.js → desktop-ZSEVBLER.js} +3 -3
- package/dist-cli/chunks/{detox-T2Y4HE44.js → detox-KI7MKMXW.js} +2 -2
- package/dist-cli/chunks/{device-ZE2WSDJN.js → device-6EWIZV5M.js} +2 -2
- package/dist-cli/chunks/{diagnose-WFEFBH6U.js → diagnose-S3ET3TIZ.js} +2 -2
- package/dist-cli/chunks/disk-cleanup-BSWNZ4AI.js +4 -0
- package/dist-cli/chunks/drivers-AYUTJNIJ.js +4 -0
- package/dist-cli/chunks/{film-THTAWD5P.js → film-LMO5IQCB.js} +3 -3
- package/dist-cli/chunks/flow-2QKKLLQM.js +4 -0
- package/dist-cli/chunks/help-SOP6FLQI.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-SNP5LSQD.js → hidden-runtime-alias-Y6PI4YOZ.js} +2 -2
- package/dist-cli/chunks/{home-paths-WUCC72RE.js → home-paths-YGTX3HLF.js} +2 -2
- package/dist-cli/chunks/inspect-RU5RWMDH.js +4 -0
- package/dist-cli/chunks/install-desktop-AWS5ITUE.js +4 -0
- package/dist-cli/chunks/{login-ZEB4WSVZ.js → login-WSIJQW3G.js} +4 -4
- package/dist-cli/chunks/{logout-P6PV2WRO.js → logout-WFBUX573.js} +2 -2
- package/dist-cli/chunks/{maestro-TUA7YURM.js → maestro-PFLRSGR4.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-HI4UM47Q.js → maestro-generate-VS26IJM5.js} +3 -3
- package/dist-cli/chunks/{mode-ILLUAGCG.js → mode-OOTPI3ED.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-R7UFXPBP.js → optional-demo-registry-KBMT5UGA.js} +2 -2
- package/dist-cli/chunks/{perf-4CE5R2TN.js → perf-AR6BYBON.js} +2 -2
- package/dist-cli/chunks/{permissions-NQCKUHGU.js → permissions-R3ZC56LP.js} +2 -2
- package/dist-cli/chunks/{record-5JRY7R54.js → record-NUCCKPZD.js} +3 -3
- package/dist-cli/chunks/{report-issue-PFE7RDDV.js → report-issue-G66JIO6G.js} +2 -2
- package/dist-cli/chunks/runtime-KOIKZGYF.js +4 -0
- package/dist-cli/chunks/{screenshot-command-R3MPUAQI.js → screenshot-command-OYQVHOKW.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-TKLUUDFA.js → screenshot-layers-DNVWS54T.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-6UT2EVTR.js → screenshots-capture-LJ6LTZLL.js} +2 -2
- package/dist-cli/chunks/{serve-L5GFNPAX.js → serve-JOXV5ECW.js} +2 -2
- package/dist-cli/chunks/{setup-IZQ7IXYW.js → setup-RTUGZNIA.js} +2 -2
- package/dist-cli/chunks/{skills-2CY6YIL7.js → skills-ABCIWLFD.js} +2 -2
- package/dist-cli/chunks/{storage-EPY4VXCY.js → storage-2TXWI3HS.js} +2 -2
- package/dist-cli/chunks/store-NQKZHF7K.js +4 -0
- package/dist-cli/chunks/telemetry-NYAZLCMX.js +4 -0
- package/dist-cli/chunks/{timeline-LK5IA74W.js → timeline-CNOX2CCQ.js} +2 -2
- package/dist-cli/chunks/{upgrade-ZK6YJMUA.js → upgrade-CS4AOUGL.js} +2 -2
- package/dist-cli/chunks/upload-3QPV23AA.js +4 -0
- package/dist-cli/chunks/{version-SRC2HVYI.js → version-Q3L5LLSS.js} +2 -2
- package/dist-cli/chunks/{web-SVNHYKX5.js → web-2CGGMN7W.js} +2 -2
- package/dist-cli/chunks/{what-happened-URW3Q7QP.js → what-happened-A7SLCHUS.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 +10 -6
- package/dist-lib/sdk.mjs +10 -6
- package/dist-lib/skills.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/daemon-4FHSWZSV.js +0 -4
- package/dist-cli/chunks/disk-cleanup-YXC3JGG5.js +0 -4
- package/dist-cli/chunks/drivers-62L33HHX.js +0 -4
- package/dist-cli/chunks/flow-3HCUMLZL.js +0 -4
- package/dist-cli/chunks/help-KEXQPE2I.js +0 -4
- package/dist-cli/chunks/inspect-2SR5AEEA.js +0 -4
- package/dist-cli/chunks/install-desktop-KE5ZPY6L.js +0 -4
- package/dist-cli/chunks/runtime-MP2QVB2X.js +0 -4
- package/dist-cli/chunks/store-F5RQZH7P.js +0 -4
- package/dist-cli/chunks/telemetry-MZKLKJAS.js +0 -4
- package/dist-cli/chunks/upload-LP6UOKRF.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{h as j,j as A,m as K,n as v}from"./chunk-
|
|
4
|
+
import{h as j,j as A,m as K,n as v}from"./chunk-GHXN67UJ.js";import{createHash as Y}from"node:crypto";import{mkdirSync as L,readFileSync as W,readdirSync as Q,unlinkSync as X,writeFileSync as D}from"node:fs";import{dirname as q,extname as Z,resolve as B}from"node:path";function H(t){let e=t[0]?.toLowerCase()??"toggle";return e!=="on"&&e!=="off"&&e!=="toggle"&&(console.error(` unknown argument: "${e}" (expected on | off | toggle)`),process.exit(1)),e}async function U(t,e,o){let n=j(t,{port:e.port}),i=H(n.positional),m=A({...n,commandTimeoutMs:5e3});try{let a=!!(await K(m,"SootSim.bridges.settings.get"))?.[o.modeKey],u=i==="on"?!0:i==="off"?!1:!a;if(a===u)return console.log(` ${o.displayName}: already ${u?"on":"off"}`),{current:a,target:u,changed:!1};if(!await m.send({type:"evaluate",acquireLock:!0,code:`(async () => {
|
|
5
5
|
const modeKey = ${JSON.stringify(o.modeKey)}
|
|
6
6
|
const target = ${JSON.stringify(u)}
|
|
7
7
|
window.dispatchEvent(new CustomEvent('sootsim:shell-command', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
4
|
var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var m=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var n=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),o=(a,b)=>{for(var c in b)e(a,c,{get:b[c],enumerable:!0})},l=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?g(j(a)):{},l(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));export{m as a,n as b,o as c,p as d};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as ws}from"./chunk-
|
|
4
|
+
import{a as ws}from"./chunk-LR5GL7TZ.js";import{a as ks}from"./chunk-GEXLPJZ6.js";import{a as vt,b as Fr,d as Br}from"./chunk-WKDTGITC.js";var Is=Fr((Xr,Ss)=>{(()=>{var H={"./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive"(B){function Z(ot){return Promise.resolve().then(function(){var Et=new Error("Cannot find module '"+ot+"'");throw Et.code="MODULE_NOT_FOUND",Et})}Z.keys=()=>[],Z.resolve=Z,Z.id="./node_modules/.pnpm/mlly@1.8.2/node_modules/mlly/dist lazy recursive",B.exports=Z},fs(B){"use strict";B.exports=vt("fs")},"node:fs"(B){"use strict";B.exports=vt("node:fs")},"node:module"(B){"use strict";B.exports=vt("node:module")},"node:path"(B){"use strict";B.exports=vt("node:path")},os(B){"use strict";B.exports=vt("os")},path(B){"use strict";B.exports=vt("path")},"./node_modules/.pnpm/get-tsconfig@4.14.0/node_modules/get-tsconfig/dist/index.cjs"(B,Z,ot){"use strict";var Et=Object.defineProperty,k=(a,p)=>Et(a,"name",{value:p,configurable:!0}),L=ot("node:path"),oe=ot("node:fs"),ce=ot("node:module"),Ee=ot("./node_modules/.pnpm/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.cjs"),zt=ot("fs"),Ut=ot("os"),dt=ot("path");function J(a){return a.startsWith("\\\\?\\")?a:a.replace(/\\/g,"/")}k(J,"slash");let j=k(a=>{let p=oe[a];return(g,...l)=>{let y=`${a}:${l.join(":")}`,v=g?.get(y);return v===void 0&&(v=Reflect.apply(p,oe,l),g?.set(y,v)),v}},"cacheFs"),tt=j("existsSync"),yt=j("readFileSync"),P=j("statSync"),O=k((a,p,g)=>{for(;;){let l=L.posix.join(a,p);if(tt(g,l))return l;let y=L.dirname(a);if(y===a)return;a=y}},"findUp"),A=/^\.{1,2}(\/.*)?$/,n=k(a=>{let p=J(a);return A.test(p)?p:`./${p}`},"normalizeRelativePath");function z(a,p=!1){let g=a.length,l=0,y="",v=0,d=16,C=0,S=0,R=0,W=0,$=0;function et(E,ut){let xt=0,F=0;for(;xt<E;){let I=a.charCodeAt(l);if(I>=48&&I<=57)F=16*F+I-48;else if(I>=65&&I<=70)F=16*F+I-65+10;else{if(!(I>=97&&I<=102))break;F=16*F+I-97+10}l++,xt++}return xt<E&&(F=-1),F}function Y(E){l=E,y="",v=0,d=16,$=0}function Q(){let E=l;if(a.charCodeAt(l)===48)l++;else for(l++;l<a.length&&mt(a.charCodeAt(l));)l++;if(l<a.length&&a.charCodeAt(l)===46){if(l++,!(l<a.length&&mt(a.charCodeAt(l))))return $=3,a.substring(E,l);for(l++;l<a.length&&mt(a.charCodeAt(l));)l++}let ut=l;if(l<a.length&&(a.charCodeAt(l)===69||a.charCodeAt(l)===101))if(l++,(l<a.length&&a.charCodeAt(l)===43||a.charCodeAt(l)===45)&&l++,l<a.length&&mt(a.charCodeAt(l))){for(l++;l<a.length&&mt(a.charCodeAt(l));)l++;ut=l}else $=3;return a.substring(E,ut)}function X(){let E="",ut=l;for(;;){if(l>=g){E+=a.substring(ut,l),$=2;break}let xt=a.charCodeAt(l);if(xt===34){E+=a.substring(ut,l),l++;break}if(xt!==92){if(xt>=0&&xt<=31){if(ct(xt)){E+=a.substring(ut,l),$=2;break}$=6}l++}else{if(E+=a.substring(ut,l),l++,l>=g){$=2;break}switch(a.charCodeAt(l++)){case 34:E+='"';break;case 92:E+="\\";break;case 47:E+="/";break;case 98:E+="\b";break;case 102:E+="\f";break;case 110:E+=`
|
|
5
5
|
`;break;case 114:E+="\r";break;case 116:E+=" ";break;case 117:let F=et(4);F>=0?E+=String.fromCharCode(F):$=4;break;default:$=5}ut=l}}return E}function nt(){if(y="",$=0,v=l,S=C,W=R,l>=g)return v=g,d=17;let E=a.charCodeAt(l);if(st(E)){do l++,y+=String.fromCharCode(E),E=a.charCodeAt(l);while(st(E));return d=15}if(ct(E))return l++,y+=String.fromCharCode(E),E===13&&a.charCodeAt(l)===10&&(l++,y+=`
|
|
6
6
|
`),C++,R=l,d=14;switch(E){case 123:return l++,d=1;case 125:return l++,d=2;case 91:return l++,d=3;case 93:return l++,d=4;case 58:return l++,d=6;case 44:return l++,d=5;case 34:return l++,y=X(),d=10;case 47:let ut=l-1;if(a.charCodeAt(l+1)===47){for(l+=2;l<g&&!ct(a.charCodeAt(l));)l++;return y=a.substring(ut,l),d=12}if(a.charCodeAt(l+1)===42){l+=2;let xt=g-1,F=!1;for(;l<xt;){let I=a.charCodeAt(l);if(I===42&&a.charCodeAt(l+1)===47){l+=2,F=!0;break}l++,ct(I)&&(I===13&&a.charCodeAt(l)===10&&l++,C++,R=l)}return F||(l++,$=1),y=a.substring(ut,l),d=13}return y+=String.fromCharCode(E),l++,d=16;case 45:if(y+=String.fromCharCode(E),l++,l===g||!mt(a.charCodeAt(l)))return d=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return y+=Q(),d=11;default:for(;l<g&&It(E);)l++,E=a.charCodeAt(l);if(v!==l){switch(y=a.substring(v,l),y){case"true":return d=8;case"false":return d=9;case"null":return d=7}return d=16}return y+=String.fromCharCode(E),l++,d=16}}function It(E){if(st(E)||ct(E))return!1;switch(E){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Ot(){let E;do E=nt();while(E>=12&&E<=15);return E}return k(et,"scanHexDigits"),k(Y,"setPosition"),k(Q,"scanNumber"),k(X,"scanString"),k(nt,"scanNext"),k(It,"isUnknownContentCharacter"),k(Ot,"scanNextNonTrivia"),{setPosition:Y,getPosition:k(()=>l,"getPosition"),scan:p?Ot:nt,getToken:k(()=>d,"getToken"),getTokenValue:k(()=>y,"getTokenValue"),getTokenOffset:k(()=>v,"getTokenOffset"),getTokenLength:k(()=>l-v,"getTokenLength"),getTokenStartLine:k(()=>S,"getTokenStartLine"),getTokenStartCharacter:k(()=>v-W,"getTokenStartCharacter"),getTokenError:k(()=>$,"getTokenError")}}function st(a){return a===32||a===9}function ct(a){return a===10||a===13}function mt(a){return a>=48&&a<=57}var Rt,u;k(z,"createScanner"),k(st,"isWhiteSpace"),k(ct,"isLineBreak"),k(mt,"isDigit"),(u=Rt||(Rt={}))[u.lineFeed=10]="lineFeed",u[u.carriageReturn=13]="carriageReturn",u[u.space=32]="space",u[u._0=48]="_0",u[u._1=49]="_1",u[u._2=50]="_2",u[u._3=51]="_3",u[u._4=52]="_4",u[u._5=53]="_5",u[u._6=54]="_6",u[u._7=55]="_7",u[u._8=56]="_8",u[u._9=57]="_9",u[u.a=97]="a",u[u.b=98]="b",u[u.c=99]="c",u[u.d=100]="d",u[u.e=101]="e",u[u.f=102]="f",u[u.g=103]="g",u[u.h=104]="h",u[u.i=105]="i",u[u.j=106]="j",u[u.k=107]="k",u[u.l=108]="l",u[u.m=109]="m",u[u.n=110]="n",u[u.o=111]="o",u[u.p=112]="p",u[u.q=113]="q",u[u.r=114]="r",u[u.s=115]="s",u[u.t=116]="t",u[u.u=117]="u",u[u.v=118]="v",u[u.w=119]="w",u[u.x=120]="x",u[u.y=121]="y",u[u.z=122]="z",u[u.A=65]="A",u[u.B=66]="B",u[u.C=67]="C",u[u.D=68]="D",u[u.E=69]="E",u[u.F=70]="F",u[u.G=71]="G",u[u.H=72]="H",u[u.I=73]="I",u[u.J=74]="J",u[u.K=75]="K",u[u.L=76]="L",u[u.M=77]="M",u[u.N=78]="N",u[u.O=79]="O",u[u.P=80]="P",u[u.Q=81]="Q",u[u.R=82]="R",u[u.S=83]="S",u[u.T=84]="T",u[u.U=85]="U",u[u.V=86]="V",u[u.W=87]="W",u[u.X=88]="X",u[u.Y=89]="Y",u[u.Z=90]="Z",u[u.asterisk=42]="asterisk",u[u.backslash=92]="backslash",u[u.closeBrace=125]="closeBrace",u[u.closeBracket=93]="closeBracket",u[u.colon=58]="colon",u[u.comma=44]="comma",u[u.dot=46]="dot",u[u.doubleQuote=34]="doubleQuote",u[u.minus=45]="minus",u[u.openBrace=123]="openBrace",u[u.openBracket=91]="openBracket",u[u.plus=43]="plus",u[u.slash=47]="slash",u[u.formFeed=12]="formFeed",u[u.tab=9]="tab",new Array(20).fill(0).map((a,p)=>" ".repeat(p));let jt=200;var he,De,Mt;function be(a,p=[],g=he.DEFAULT){let l=null,y=[],v=[];function d(C){Array.isArray(y)?y.push(C):l!==null&&(y[l]=C)}return k(d,"onValue"),Ce(a,{onObjectBegin:k(()=>{let C={};d(C),v.push(y),y=C,l=null},"onObjectBegin"),onObjectProperty:k(C=>{l=C},"onObjectProperty"),onObjectEnd:k(()=>{y=v.pop()},"onObjectEnd"),onArrayBegin:k(()=>{let C=[];d(C),v.push(y),y=C,l=null},"onArrayBegin"),onArrayEnd:k(()=>{y=v.pop()},"onArrayEnd"),onLiteralValue:d,onError:k((C,S,R)=>{p.push({error:C,offset:S,length:R})},"onError")},g),y[0]}function Ce(a,p,g=he.DEFAULT){let l=z(a,!1),y=[],v=0;function d(q){return q?()=>v===0&&q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter()):()=>!0}function C(q){return q?at=>v===0&&q(at,l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter()):()=>!0}function S(q){return q?at=>v===0&&q(at,l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter(),()=>y.slice()):()=>!0}function R(q){return q?()=>{v>0?v++:q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter(),()=>y.slice())===!1&&(v=1)}:()=>!0}function W(q){return q?()=>{v>0&&v--,v===0&&q(l.getTokenOffset(),l.getTokenLength(),l.getTokenStartLine(),l.getTokenStartCharacter())}:()=>!0}k(d,"toNoArgVisit"),k(C,"toOneArgVisit"),k(S,"toOneArgVisitWithPath"),k(R,"toBeginVisit"),k(W,"toEndVisit");let $=R(p.onObjectBegin),et=S(p.onObjectProperty),Y=W(p.onObjectEnd),Q=R(p.onArrayBegin),X=W(p.onArrayEnd),nt=S(p.onLiteralValue),It=C(p.onSeparator),Ot=d(p.onComment),E=C(p.onError),ut=g&&g.disallowComments,xt=g&&g.allowTrailingComma;function F(){for(;;){let q=l.scan();switch(l.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:ut||I(11);break;case 2:I(12);break;case 6:I(16)}switch(q){case 12:case 13:ut?I(10):Ot();break;case 16:I(1);break;case 15:case 14:break;default:return q}}}function I(q,at=[],Ze=[]){if(E(q),at.length+Ze.length>0){let de=l.getToken();for(;de!==17;){if(at.indexOf(de)!==-1){F();break}if(Ze.indexOf(de)!==-1)break;de=F()}}}function Re(q){let at=l.getTokenValue();return q?nt(at):(et(at),y.push(at)),F(),!0}function ze(){switch(l.getToken()){case 11:let q=l.getTokenValue(),at=Number(q);isNaN(at)&&(I(2),at=0),nt(at);break;case 7:nt(null);break;case 8:nt(!0);break;case 9:nt(!1);break;default:return!1}return F(),!0}function Ye(){return l.getToken()!==10?(I(3,[],[2,5]),!1):(Re(!1),l.getToken()===6?(It(":"),F(),Zt()||I(4,[],[2,5])):I(5,[],[2,5]),y.pop(),!0)}function Qe(){$(),F();let q=!1;for(;l.getToken()!==2&&l.getToken()!==17;){if(l.getToken()===5){if(q||I(4,[],[]),It(","),F(),l.getToken()===2&&xt)break}else q&&I(6,[],[]);Ye()||I(4,[],[2,5]),q=!0}return Y(),l.getToken()!==2?I(7,[2],[]):F(),!0}function Xe(){Q(),F();let q=!0,at=!1;for(;l.getToken()!==4&&l.getToken()!==17;){if(l.getToken()===5){if(at||I(4,[],[]),It(","),F(),l.getToken()===4&&xt)break}else at&&I(6,[],[]);q?(y.push(0),q=!1):y[y.length-1]++,Zt()||I(4,[],[4,5]),at=!0}return X(),q||y.pop(),l.getToken()!==4?I(8,[4],[]):F(),!0}function Zt(){switch(l.getToken()){case 3:return Xe();case 1:return Qe();case 10:return Re(!0);default:return ze()}}return k(F,"scanNext"),k(I,"handleError"),k(Re,"parseString"),k(ze,"parseLiteral"),k(Ye,"parseProperty"),k(Qe,"parseObject"),k(Xe,"parseArray"),k(Zt,"parseValue"),F(),l.getToken()===17?!!g.allowEmptyContent||(I(4,[],[]),!1):Zt()?(l.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}new Array(jt).fill(0).map((a,p)=>`
|
|
7
7
|
`+" ".repeat(p)),new Array(jt).fill(0).map((a,p)=>"\r"+" ".repeat(p)),new Array(jt).fill(0).map((a,p)=>`\r
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as c}from"./chunk-
|
|
4
|
+
import{a as c}from"./chunk-SJHHKL2L.js";import{a}from"./chunk-JVWHA7TR.js";import{a as e}from"./chunk-V7MJLIGU.js";import{a as n}from"./chunk-S6YNVIOG.js";import{c as i,d as m,e as p}from"./chunk-ODFSRDJM.js";import{a as u}from"./chunk-ISONHFRC.js";import{a as f,c as s}from"./chunk-BDOGRZ6M.js";function g(){return`sootsim CLI v${u()} \xB7 ${c().primary}`}function _(){let r=m({bridgePort:7668,defaultShellUrl:n},e()),o=`
|
|
5
5
|
${s}
|
|
6
6
|
`;console.log(`${g()}
|
|
7
7
|
${o}${r}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
4
|
function i(t,o,a,c){return{width:3,ringToggle:{side:"left",top:t[0],height:t[1]},volumeUp:{side:"left",top:o[0],height:o[1]},volumeDown:{side:"left",top:a[0],height:a[1]},lock:{side:"right",top:c[0],height:c[1]}}}var E={width:2.5,lock:{side:"right",top:188.7,height:68.1},ringToggle:{side:"left",top:113.2,height:36},volumeUp:{side:"left",top:188.2,height:68.1},volumeDown:{side:"left",top:269,height:68.1}},y={width:3,lock:{side:"right",top:671/2.625,height:163/2.625},ringToggle:{side:"left",top:-1e3,height:0},volumeUp:{side:"right",top:971/2.625,height:165/2.625},volumeDown:{side:"right",top:1136/2.625,height:166/2.625}},A={width:3,lock:{side:"right",top:248,height:72},ringToggle:{side:"left",top:-1e3,height:0},volumeUp:{side:"right",top:144,height:62},volumeDown:{side:"right",top:216,height:62}},s=24,d="17",u=37,T=1080/2.625,O=2400/2.625,h=132/2.625;function r(t){return{top:t,right:t,bottom:t,left:t}}function N(t){let o=(t.frameInsets.top+t.frameInsets.right+t.frameInsets.bottom+t.frameInsets.left)/4,a=Math.max(Math.abs(t.frameInsets.top-o),Math.abs(t.frameInsets.right-o),Math.abs(t.frameInsets.bottom-o),Math.abs(t.frameInsets.left-o));return{frameRadius:t.cornerRadius+o,frameRadiusApproximationError:a,screenRadius:t.cornerRadius}}function _(t){return{...N(t),frameHeight:t.frameInsets.top+t.height+t.frameInsets.bottom,frameWidth:t.frameInsets.left+t.width+t.frameInsets.right,screenBottomInset:t.frameInsets.bottom,screenLeft:t.frameInsets.left,screenRightInset:t.frameInsets.right,screenTop:t.frameInsets.top}}function n(t){return{...t,platform:"ios",navigationBarHeight:0,navigationBarMode:t.homeIndicatorHeight>0?"gesture":"none",displayCutout:{top:t.dynamicIsland?t.statusBarHeight:0,bottom:0,left:0,right:0},cameraCutout:null,osVersion:t.iosVersion,androidApiLevel:null,systemName:"iOS",manufacturer:"Apple",brand:"Apple",modelName:t.name}}var C={"canvas-workspace":n({name:"Canvas Workspace",width:1440,height:900,scale:1,statusBarHeight:0,homeIndicatorHeight:0,cornerRadius:0,continuousCornerRadius:0,frameInsets:r(16),dynamicIsland:null,safeAreaInsets:{top:0,bottom:0,left:0,right:0},iosVersion:"26.4",physicalPPI:110,hardwareButtons:i([185.8,41.7],[258.2,67.6],[344,67.6],[281.5,106.9]),experimental:!0}),"iphone-se":n({name:"iPhone SE",width:375,height:667,scale:2,statusBarHeight:20,homeIndicatorHeight:0,cornerRadius:0,continuousCornerRadius:0,frameInsets:r(28.7),dynamicIsland:null,safeAreaInsets:{top:20,bottom:0,left:0,right:0},iosVersion:"15.8",physicalPPI:326,hardwareButtons:E}),"iphone-14":n({name:"iPhone 14",width:390,height:844,scale:3,statusBarHeight:47,homeIndicatorHeight:34,cornerRadius:46.2,continuousCornerRadius:67.462,frameInsets:r(19.5),dynamicIsland:null,safeAreaInsets:{top:47,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([141.7,29.7],[205.9,69.6],[289.5,69.6],[228.9,114.5])}),"iphone-15":n({name:"iPhone 15",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(18.2),dynamicIsland:{width:126,height:37.3,top:14.1},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([171.7,32],[235.8,65.3],[320.5,65.3],[280.6,105.2])}),"iphone-15-plus":n({name:"iPhone 15 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(17.3),dynamicIsland:{width:126,height:37.3,top:11.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"17.6",physicalPPI:460,hardwareButtons:i([172.1,33],[236.1,66.6],[321.2,66.6],[281,106.8])}),"iphone-15-pro":n({name:"iPhone 15 Pro",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-15-pro-max":n({name:"iPhone 15 Pro Max",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.3},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"18.2",physicalPPI:460,hardwareButtons:i([173.3,32.2],[253.4,61.7],[343.3,61.7],[268.5,98.5])}),"iphone-16":n({name:"iPhone 16",width:393,height:852,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:73.402,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:11},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-16-plus":n({name:"iPhone 16 Plus",width:430,height:932,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:53.9,continuousCornerRadius:74.654,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:11.4},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([173.3,32.2],[253.4,61.7],[343.3,61.7],[268.5,98.5])}),"iphone-16-pro":n({name:"iPhone 16 Pro",width:402,height:874,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:13.5},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-16-pro-max":n({name:"iPhone 16 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61.3,continuousCornerRadius:85.163,frameInsets:r(15.4),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"iphone-17":n({name:"iPhone 17",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:37.3,top:14},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-17-air":n({name:"iPhone Air",width:420,height:912,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:64.6,continuousCornerRadius:88.313,frameInsets:r(10.7),dynamicIsland:{width:126,height:38,top:20},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"iphone-17-pro":n({name:"iPhone 17 Pro",width:402,height:874,scale:3,statusBarHeight:59,homeIndicatorHeight:34,cornerRadius:61,continuousCornerRadius:84.661,frameInsets:r(15.3),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:59,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([159.1,31.5],[220.1,61.9],[299,61.9],[260.8,98.9])}),"iphone-17-pro-max":n({name:"iPhone 17 Pro Max",width:440,height:956,scale:3,statusBarHeight:62,homeIndicatorHeight:34,cornerRadius:61.3,continuousCornerRadius:85.163,frameInsets:r(15.4),dynamicIsland:{width:126,height:38,top:14},safeAreaInsets:{top:62,bottom:34,left:0,right:0},iosVersion:"26.4",physicalPPI:460,hardwareButtons:i([178.8,32.2],[266.8,61.8],[352.7,61.8],[292.2,98.3])}),"pixel-8":{platform:"android",name:"Pixel 8",width:T,height:O,scale:2.625,statusBarHeight:h,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:h,bottom:0,left:0,right:0},cornerRadius:39,continuousCornerRadius:39,frameInsets:{top:55/2.625,right:50/2.625,bottom:58/2.625,left:49/2.625},dynamicIsland:null,cameraCutout:{diameter:72.5/2.625},safeAreaInsets:{top:h,bottom:s,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:y},"pixel-8-three-button":{platform:"android",name:"Pixel 8 (3-button)",width:T,height:O,scale:2.625,statusBarHeight:h,homeIndicatorHeight:0,navigationBarHeight:48,navigationBarMode:"three-button",displayCutout:{top:h,bottom:0,left:0,right:0},cornerRadius:39,continuousCornerRadius:39,frameInsets:{top:55/2.625,right:50/2.625,bottom:58/2.625,left:49/2.625},dynamicIsland:null,cameraCutout:{diameter:72.5/2.625},safeAreaInsets:{top:h,bottom:48,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 8",physicalPPI:428,hardwareButtons:y},"pixel-9-pro-xl":{platform:"android",name:"Pixel 9 Pro XL",width:448,height:997,scale:3,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:41,continuousCornerRadius:41,frameInsets:r(12),dynamicIsland:null,cameraCutout:{diameter:24},safeAreaInsets:{top:40,bottom:s,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 9 Pro XL",physicalPPI:486,hardwareButtons:y},"pixel-10":{platform:"android",name:"Pixel 10",width:360,height:808,scale:3,statusBarHeight:40,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:40,bottom:0,left:0,right:0},cornerRadius:40,continuousCornerRadius:40,frameInsets:r(18),dynamicIsland:null,cameraCutout:{diameter:26},safeAreaInsets:{top:40,bottom:s,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Google",brand:"google",modelName:"Pixel 10",physicalPPI:422,hardwareButtons:y},"galaxy-s24":{platform:"android",name:"Galaxy S24",width:360,height:780,scale:3,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:36,continuousCornerRadius:36,frameInsets:r(8),dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:s,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S921B",physicalPPI:416,hardwareButtons:A},"galaxy-s24-ultra":{platform:"android",name:"Galaxy S24 Ultra",width:384,height:832,scale:3.75,statusBarHeight:36,homeIndicatorHeight:0,navigationBarHeight:s,navigationBarMode:"gesture",displayCutout:{top:36,bottom:0,left:0,right:0},cornerRadius:24,continuousCornerRadius:24,frameInsets:r(9),dynamicIsland:null,cameraCutout:{diameter:18},safeAreaInsets:{top:36,bottom:s,left:0,right:0},osVersion:d,iosVersion:"",androidApiLevel:u,systemName:"Android",manufacturer:"Samsung",brand:"samsung",modelName:"SM-S928B",physicalPPI:505,hardwareButtons:A}},R="iphone-17-pro";function z(t){return C[t]}function v(){return Object.keys(C)}function G(){return v().filter(t=>!C[t].experimental)}var D=["off","soft","full"];function B(t){return t==="off"||t==="soft"||t==="full"}var S={"iphone-6-9":{name:"iphone-6-9",label:'iPhone 6.7"',width:1284,height:2778,store:"apple"},"iphone-6-1":{name:"iphone-6-1",label:'iPhone 6.5"',width:1242,height:2688,store:"apple"},"android-phone":{name:"android-phone",label:"Google Play phone",width:1080,height:1920,store:"google"},"android-tablet-7":{name:"android-tablet-7",label:'Google Play 7" tablet',width:1200,height:1920,store:"google"},"android-tablet-10":{name:"android-tablet-10",label:'Google Play 10" tablet',width:1600,height:2560,store:"google"}},w={dark:{type:"gradient",direction:180,glow:"#4caeff",stops:[{offset:0,color:"#111827"},{offset:40,color:"#101725"},{offset:100,color:"#06080d"}]},cyan:{type:"gradient",direction:180,glow:"#25c3ec",stops:[{offset:0,color:"#1b465c"},{offset:32,color:"#122336"},{offset:100,color:"#05070b"}]},gold:{type:"gradient",direction:180,glow:"#ffc25a",stops:[{offset:0,color:"#3b2f1a"},{offset:34,color:"#18140d"},{offset:100,color:"#050505"}]},red:{type:"gradient",direction:180,glow:"#ff6178",stops:[{offset:0,color:"#3e1018"},{offset:35,color:"#17080c"},{offset:100,color:"#050405"}]}},K={color:"#25c3ec",blur:120,spread:52,opacity:.34},Y="iphone-17-pro";var H=[{name:"white",value:"#ffffff"},{name:"gray-light",value:"#d1d5db"},{name:"gray",value:"#6b7280"},{name:"gray-dark",value:"#3b4350"},{name:"slate",value:"#2a3644"},{name:"black",value:"#000000"},{name:"cyan",value:"#25c3ec"},{name:"blue",value:"#3f7cff"},{name:"teal",value:"#1fc7b4"},{name:"green",value:"#42c95d"},{name:"lime",value:"#92d21b"},{name:"gold",value:"#f5c518"},{name:"orange",value:"#ff912e"},{name:"coral",value:"#ff6f5b"},{name:"red",value:"#ff4f6f"},{name:"berry",value:"#d054ff"},{name:"magenta",value:"#ff4eb8"}],k=Object.fromEntries(H.map(t=>[t.name,t.value]));function X(t){return k[t]??k.gray}function $(t){return Object.prototype.hasOwnProperty.call(S,t)?S[t]:null}function L(t){return{type:t.type,color:t.color,direction:t.direction,glow:t.glow,stops:t.stops?.map(o=>({...o}))}}function q(t){return Object.prototype.hasOwnProperty.call(w,t)?L(w[t]):null}var F=[.823,.882,.941,1,1.118,1.235,1.353,1.786,2.143,2.643,3.143,3.571];function e(t,o){return Object.freeze({fontSize:t,lineHeight:o})}var Q=Object.freeze({xs:Object.freeze({largeTitle:e(31,44.408775),title1:e(25,37.128102),title2:e(19,27.816685),title3:e(17,23.807109),headline:e(14,20.161577),body:e(14,20.161577),callout:e(13,18.942243),subheadline:e(12,16.720313),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),s:Object.freeze({largeTitle:e(32,45.797256),title1:e(26,38.556756),title2:e(20,29.22433),title3:e(18,25.160469),headline:e(15,21.536754),body:e(15,21.536754),callout:e(14,20.326079),subheadline:e(13,18.213672),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),m:Object.freeze({largeTitle:e(33,47.185737),title1:e(27,39.985409),title2:e(21,30.631975),title3:e(19,26.513828),headline:e(16,22.911932),body:e(16,22.911932),callout:e(15,21.709914),subheadline:e(14,19.557031),footnote:e(12,16.986979),caption1:e(11,15.564453),caption2:e(11,16.126953)}),l:Object.freeze({largeTitle:e(34,48.574219),title1:e(28,41.414063),title2:e(22,32.253906),title3:e(20,27.867187),headline:e(17,24.287109),body:e(17,24.287109),callout:e(16,23.09375),subheadline:e(15,20.900391),footnote:e(13,18.513672),caption1:e(12,17.320313),caption2:e(11,16.126953)}),xl:Object.freeze({largeTitle:e(36,51.351181),title1:e(30,44.271369),title2:e(24,35.069196),title3:e(22,30.733906),headline:e(19,27.037464),body:e(19,27.037464),callout:e(18,25.861421),subheadline:e(17,23.587109),footnote:e(15,21.233724),caption1:e(14,20.269531),caption2:e(13,19.667518)}),xxl:Object.freeze({largeTitle:e(38,54.323266),title1:e(32,47.128676),title2:e(26,37.884487),title3:e(24,33.440625),headline:e(21,29.78782),body:e(21,29.78782),callout:e(20,28.629092),subheadline:e(19,26.273828),footnote:e(17,23.953776),caption1:e(16,23.03125),caption2:e(15,22.515775)}),xxxl:Object.freeze({largeTitle:e(40,57.100229),title1:e(34,50.221278),title2:e(28,40.699777),title3:e(26,36.147344),headline:e(23,32.719993),body:e(23,32.719993),callout:e(22,31.58724),subheadline:e(21,28.960547),footnote:e(19,26.673828),caption1:e(18,25.792969),caption2:e(17,25.364032)}),ax1:Object.freeze({largeTitle:e(44,62.654154),title1:e(38,56.171186),title2:e(34,49.359933),title3:e(31,43.074141),headline:e(28,39.595881),body:e(28,39.595881),callout:e(26,37.122582),subheadline:e(25,34.483984),footnote:e(23,32.280599),caption1:e(22,31.316406),caption2:e(20,29.636418)}),ax2:Object.freeze({largeTitle:e(48,68.403201),title1:e(43,63.314453),title2:e(39,56.612444),title3:e(37,51.194297),headline:e(33,46.653587),body:e(33,46.653587),callout:e(32,45.616071),subheadline:e(30,41.200781),footnote:e(27,37.720703),caption1:e(26,37.027344),caption2:e(24,35.332933)}),ax3:Object.freeze({largeTitle:e(52,73.957127),title1:e(48,70.693015),title2:e(44,63.65067),title3:e(43,59.474453),headline:e(40,56.461648),body:e(40,56.461648),callout:e(38,54.109561),subheadline:e(36,49.410937),footnote:e(33,46.047526),caption1:e(32,45.5),caption2:e(29,42.684345)}),ax4:Object.freeze({largeTitle:e(56,79.706174),title1:e(53,77.600988),title2:e(50,72.310826),title3:e(49,67.754609),headline:e(47,65.360618),body:e(47,66.269709),callout:e(44,62.412574),subheadline:e(42,57.621094),footnote:e(38,53.014323),caption1:e(37,52.404297),caption2:e(34,50.035757)}),ax5:Object.freeze({largeTitle:e(60,85.260099),title1:e(58,85.214844),title2:e(56,80.970982),title3:e(55,76.034766),headline:e(53,74.520774),body:e(53,74.520774),callout:e(51,72.2899),subheadline:e(49,67.174609),footnote:e(44,61.174479),caption1:e(43,60.876953),caption2:e(40,58.811298)})});function M(t){return F.some(o=>Object.is(o,t))}var ne=["colorScheme","reduceMotion","boldText","fontSize","largerAccessibilitySizes"],l={deviceModel:{type:"enum",default:R,description:"device model to simulate",cliFlag:"device",cliFlagShort:"d",options:v(),group:"device"},orientation:{type:"enum",default:"portrait",description:"screen orientation",cliFlag:"orientation",options:["portrait","landscape"],group:"device"},colorScheme:{type:"enum",default:"auto",description:"color scheme (auto follows system preference)",cliFlag:"theme",cliFlagShort:"t",options:["light","dark","auto"],group:"appearance"},reduceMotion:{type:"boolean",default:!1,description:"reduce motion",group:"appearance"},boldText:{type:"boolean",default:!1,description:"bold text",group:"appearance"},fontSize:{type:"number",default:1,description:"font size multiplier (1.0 = default)",group:"appearance",validate:t=>t>=.5&&t<=4},largerAccessibilitySizes:{type:"boolean",default:!1,description:"show accessibility categories in the dynamic type size picker",group:"appearance"},networkCondition:{type:"enum",default:"wifi",description:"simulated network condition",cliFlag:"network",options:["wifi","lte","fast-3g","slow-3g","offline"],group:"network"},language:{type:"string",default:"en",description:"language code (ISO 639-1)",cliFlag:"language",group:"locale"},region:{type:"string",default:"US",description:"region code (ISO 3166-1)",cliFlag:"region",group:"locale"},renderDensity:{type:"number",default:0,description:"render density override in device pixels per point for high-resolution capture (0 = device native)",group:"simulator",validate:t=>t===0||t>=1&&t<=9},showTouches:{type:"boolean",default:!1,description:"show touch indicators",group:"simulator"},showFrame:{type:"boolean",default:!0,description:"show device frame",cliFlag:"frame",group:"simulator"},showMenuBar:{type:"boolean",default:!0,description:"keep the menu bar visible instead of revealing it at the top edge",group:"simulator"},showRail:{type:"boolean",default:!0,description:"keep the rail visible instead of revealing it on hover",group:"simulator"},solidWindow:{type:"boolean",default:!1,description:"desktop app: always use the solid, freely-resizable window instead of the device-shaped transparent one (3d mode uses it regardless)",group:"simulator"},ambientGlow:{type:"enum",default:"off",description:"bleed the app's own edge colors outward behind the device, like bias lighting behind a TV (off, soft, full)",options:D,cliFlag:"ambient-glow",group:"simulator"},screenshotMode:{type:"boolean",default:!1,description:"show screenshot composition mode in the browser shell",group:"simulator"},screenshotCanvasEditing:{type:"boolean",default:!1,description:"experimental figma-style slide editing: draggable copy block, drop-in image layers (owner review pending)",group:"simulator"},threeMode:{type:"boolean",default:!1,description:"show the experimental 3d device stage in the browser shell",group:"simulator"},threeRecordingEditor:{type:"boolean",default:!1,description:"dock the 3d recording editor in the 3d stage (toggled from its rail)",group:"simulator"},screenshotCanvas:{type:"enum",default:"iphone-6-9",description:"target app-store canvas preset for screenshot mode",options:Object.keys(S),group:"simulator"},screenshotBackground:{type:"enum",default:"dark",description:"background preset rendered inside the screenshot canvas",options:Object.keys(w),group:"simulator"},screenshotText:{type:"enum",default:"bold-top",description:"text layout preset for the screenshot canvas",options:["bold-top","editorial-left","minimal-bottom","none"],group:"simulator"},screenshotPose:{type:"enum",default:"straight",description:"device pose preset inside the screenshot canvas",options:["straight","tilted-left","tilted-right","cut-bottom","cut-top"],group:"simulator"},screenshotDynamicSize:{type:"boolean",default:!1,description:"let the screenshot canvas rect fit available space (off = pin to exact preset pixels)",group:"simulator"},showStatusBar:{type:"boolean",default:!0,description:"show status bar",group:"simulator"},showHomeIndicator:{type:"boolean",default:!0,description:"show home indicator",group:"simulator"},alwaysShowLiveWebViews:{type:"boolean",default:!1,description:"always render WebViews as live browser views",group:"simulator"},a11yMode:{type:"enum",default:"delayed",description:"accessibility tree sync mode (off, delayed=100ms, active=30ms)",options:["off","delayed","active"],group:"simulator"},a11yDepth:{type:"enum",default:"deep",description:"accessibility tree structure depth (shallow or deep)",options:["shallow","deep"],group:"simulator"},inspectMode:{type:"boolean",default:!1,description:"inspect mode",group:"simulator"},productAnalytics:{type:"boolean",default:!0,description:"send bounded product usage analytics",group:"privacy"},crashReports:{type:"boolean",default:!0,description:"send anonymous crash reports",group:"privacy"},agentProvider:{type:"enum",default:"codex",description:"ai agent used by the sootsim agent prompt bar",options:["codex","claude"],group:"agent"}},ie={colorScheme:l.colorScheme.default,reduceMotion:l.reduceMotion.default,boldText:l.boldText.default,fontSize:l.fontSize.default,largerAccessibilitySizes:l.largerAccessibilitySizes.default};function V(){if(typeof window>"u")return{};let t={};try{let o=new URLSearchParams(window.location.search),a=o.get("device");a&&l.deviceModel.options?.includes(a)&&(t.deviceModel=a),o.get("ssMode")==="1"&&(t.screenshotMode=!0),o.get("filmStage")==="1"&&(t.threeMode=!0,a||(t.deviceModel="iphone-17-air"));let c=Number(o.get("renderDensity"));Number.isFinite(c)&&c>=1&&c<=9&&(t.renderDensity=c),o.get("ssEdit")==="1"&&(t.screenshotCanvasEditing=!0);let I=o.get("colorScheme")??o.get("theme");I&&l.colorScheme.options?.includes(I)&&(t.colorScheme=I);let p=o.get("reduceMotion");p==="1"||p==="true"?t.reduceMotion=!0:(p==="0"||p==="false")&&(t.reduceMotion=!1);let m=o.get("boldText");m==="1"||m==="true"?t.boldText=!0:(m==="0"||m==="false")&&(t.boldText=!1);let x=Number(o.get("fontSize"));Number.isFinite(x)&&M(x)&&(t.fontSize=x);let g=o.get("largerAccessibilitySizes");g==="1"||g==="true"?t.largerAccessibilitySizes=!0:(g==="0"||g==="false")&&(t.largerAccessibilitySizes=!1);let f=o.get("alwaysShowLiveWebViews");f==="1"||f==="true"?t.alwaysShowLiveWebViews=!0:(f==="0"||f==="false")&&(t.alwaysShowLiveWebViews=!1);let b=o.get("showFrame");b==="1"||b==="true"?t.showFrame=!0:(b==="0"||b==="false")&&(t.showFrame=!1);let P=o.get("ambientGlow");B(P)&&(t.ambientGlow=P)}catch{}return t}function ae(){let t={};for(let[o,a]of Object.entries(l))t[o]=a.default;return Object.assign(t,V()),t}export{_ as a,C as b,z as c,G as d,K as e,Y as f,X as g,$ as h,L as i,q as j,ne as k,l,ie as m,V as n,ae as o};
|
|
5
|
-
/*! sootsim v0.1.
|
|
5
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
4
|
import{execFileSync as b,execSync as x}from"node:child_process";var g=new WeakMap,c=new Set,y=!1;function l(){return{platform:process.platform,env:process.env}}function d(e=l()){return e.platform==="linux"&&e.env.GITHUB_ACTIONS==="true"&&e.env.RUNNER_OS==="Linux"}function A(e){let r=String(e);return/^--disable-gpu(?:=.*)?$/i.test(r)||/^--enable-unsafe-swiftshader(?:=.*)?$/i.test(r)||/^--use-angle=(?:swiftshader|swiftshader-webgl)$/i.test(r)||/^--use-gl=swiftshader$/i.test(r)}function I(e){return e.match(/(?:^|\s)(--disable-gpu(?:=[^\s]+)?|--enable-unsafe-swiftshader(?:=[^\s]+)?|--use-angle=(?:swiftshader|swiftshader-webgl)|--use-gl=swiftshader)(?=\s|$)/i)?.[1]??null}function R(e){return e==="darwin"?"metal":e==="linux"?"vulkan":"default"}function P(e,r=l()){if(d(r))return;let n=I(e);if(n)throw new Error(`[reap-browser] refused software-rendering Chrome process argument ${n}`);let o=R(r.platform),t=e.split(/\s+/);if(!t.includes(`--use-angle=${o}`)||!t.includes("--enable-gpu"))throw new Error(`[reap-browser] Chrome process did not retain the required ${o} GPU arguments`);if(r.platform==="darwin"&&e.includes("/Applications/Google Chrome.app/"))throw new Error("[reap-browser] refused the user's installed Google Chrome; use Playwright channel chromium")}function E(e){if(!e||typeof e!="object")return[];let n=e.gpu;if(!n||typeof n!="object")return[];let o=n,t=[],a=o.auxAttributes;if(a&&typeof a=="object")for(let i of Object.values(a))typeof i=="string"&&t.push(i);let s=o.devices;if(Array.isArray(s)){for(let i of s)if(!(!i||typeof i!="object"))for(let u of Object.values(i))typeof u=="string"&&t.push(u)}return t}function S(e){if(!e||typeof e!="object")return null;let r=e;if(!Array.isArray(r.processInfo))return null;for(let n of r.processInfo){if(!n||typeof n!="object")continue;let o=n;if(o.type==="browser"&&typeof o.id=="number"&&Number.isInteger(o.id)&&o.id>0)return o.id}return null}function L(e,r=l()){if(d(r))return;let o=E(e).join(" | ");if(!o||/swiftshader|llvmpipe|software rasterizer/i.test(o))throw new Error(`[reap-browser] Chrome reported a software renderer${o?`: ${o}`:""}`);if(r.platform==="darwin"&&!/metal/i.test(o))throw new Error(`[reap-browser] Chrome did not report an ANGLE Metal renderer: ${o}`)}function w(e){if(e&&typeof e=="object"){let n=g.get(e);if(n!==void 0)return n}let r=e;if(r&&typeof r.process=="function")try{let n=r.process();if(n&&typeof n.pid=="number"&&n.pid>0)return n.pid}catch{}if(r&&typeof r.browser=="function")try{let n=r.browser();if(n)return w(n)}catch{}return null}function h(e){let r=[];try{r=x(`pgrep -P ${e} || true`).toString().split(`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{b as s,c as g,d as f,e as v}from"./chunk-
|
|
4
|
+
import{b as s,c as g,d as f,e as v}from"./chunk-FSM2WGIT.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";var b={"browser-cache":"browser caches",recording:"recordings and captured frames","runtime-archive":"downloaded runtime archives","runtime-version":"inactive runtime versions"};function y(r){let i=new Map;for(let t of r){let o=i.get(t.kind)??{bytes:0,count:0};o.bytes+=t.bytes,o.count++,i.set(t.kind,o)}return[...i].sort((t,o)=>o[1].bytes-t[1].bytes).map(([t,o])=>` ${b[t]}: ${s(o.bytes)} (${o.count} ${o.count===1?"item":"items"})`)}function h(){console.log(`
|
|
5
5
|
sootsim cleanup \u2014 inspect and reclaim local SootSim disk usage
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-ISONHFRC.js";import"./chunk-WKDTGITC.js";export{a as getCliVersion};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{d as i,g as a,i as d,j as r}from"./chunk-
|
|
4
|
+
import{d as i,g as a,i as d,j as r}from"./chunk-VK3PJJAQ.js";import"./chunk-WKDTGITC.js";import{existsSync as m,readFileSync as k}from"node:fs";import{resolve as f}from"node:path";async function $(e){if(e.includes("--help")||e.includes("-h")){console.log(`
|
|
5
5
|
sootsim compat \u2014 check package compatibility
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{A as s,B as r,x as t}from"./chunk-
|
|
4
|
+
import{A as s,B as r,x as t}from"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";function l(){let e=s();console.log(` product analytics are ${e.productAnalytics?"ON":"OFF"}`),console.log(` config: ${t()}`);let o=process.env.DO_NOT_TRACK;(o==="1"||o==="true")&&console.log(` note: DO_NOT_TRACK=${o} is set \u2014 telemetry is off for this run`)}async function i(e){let o=e.find(n=>!n.startsWith("-"))?.toLowerCase();switch(o){case void 0:case"status":l();return;case"on":case"enable":r({...s(),productAnalytics:!0}),console.log(" product analytics ON"),console.log(` config: ${t()}`);return;case"off":case"disable":r({...s(),productAnalytics:!1}),console.log(" product analytics OFF"),console.log(` config: ${t()}`);return;default:console.error(` unknown telemetry action: ${o}`),console.error(" usage: sootsim config telemetry [on|off|status]"),process.exit(1)}}function c(){console.log(`
|
|
5
5
|
sootsim config \u2014 manage local CLI preferences
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"./chunk-
|
|
4
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";export{d as applyConfiguredRuntimeOrigin,h as buildOpenUrl,g as buildShellUrl,u as closeSimsBulk,b as normalizeDeepLinkTarget,v as planBulkCloseTargets,m as playwrightHostPidForSim,j as printConnectedSims,c as resolveBundleTarget,e as resolveDefaultShellBaseUrl,a as resolveDriverConnectWaitOptions,f as resolveShellBaseUrlForBridgePort,t as runClaimCommand,w as runCloseCommand,s as runFocusCommand,p as runLinkCommand,q as runOpenCommand,r as runUseCommand,n as signalDriverLaunchConnected,i as summarizeSimUrl,o as terminatePlaywrightHostsForSims,k as waitForSimMatch,l as waitForSimMatchOrHostExit};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a,b,c,d,e,f}from"./chunk-DLPIGWDZ.js";import"./chunk-5O56UY3I.js";import"./chunk-HKQURR57.js";import"./chunk-YRNCMR5K.js";import"./chunk-SJHHKL2L.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-ISONHFRC.js";import"./chunk-BDOGRZ6M.js";import"./chunk-WKDTGITC.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,e as teardownDaemonService,d as teardownLegacyMacDaemonArtifacts,f as teardownSootsimHome};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{f,m as T}from"./chunk-
|
|
4
|
+
import{f,m as T}from"./chunk-ASR54LQA.js";import{L as S,M as $,N,O as A,P as v}from"./chunk-I5SSRJDW.js";import{h as D,j as O,l as x}from"./chunk-GHXN67UJ.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";var H=["portals","sheets","layout","onlayout","animated","render","touch","yoga","all"],R="__sootsimShellAnimationTrace",q="__sootsimDebugAnimation";function L(){console.log(`
|
|
5
5
|
sootsim debug \u2014 drive __sootsimDebug from the terminal
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -172,7 +172,7 @@ examples:
|
|
|
172
172
|
} : null,
|
|
173
173
|
samples,
|
|
174
174
|
}
|
|
175
|
-
})()`}async function c(i,l){return x(i,l)}async function Y(i,l){let g=D(i,{port:l.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),u=g.positional;(!u[0]||i.includes("--help")||i.includes("-h"))&&(L(),process.exit(0));let P=g.wsPort,_=g.simId,n=!i.includes("--json"),y=_?` --sim ${_}`:"",k=u[0],r=u.slice(1);if(new Set(["state","js","eval","perf","memory","sample-color"]).has(k)){let{runInspect:e}=await import("./inspect-
|
|
175
|
+
})()`}async function c(i,l){return x(i,l)}async function Y(i,l){let g=D(i,{port:l.port,stripBooleanFlags:["--pretty","--json","--help","-h"]}),u=g.positional;(!u[0]||i.includes("--help")||i.includes("-h"))&&(L(),process.exit(0));let P=g.wsPort,_=g.simId,n=!i.includes("--json"),y=_?` --sim ${_}`:"",k=u[0],r=u.slice(1);if(new Set(["state","js","eval","perf","memory","sample-color"]).has(k)){let{runInspect:e}=await import("./inspect-RU5RWMDH.js");await e(["debug",...i],{port:l.port,verbose:l.verbose});return}let t=O(g);try{switch(k){case"enable":{let e=B(r[0]);e.length===0&&(console.error(` usage: sootsim debug enable <channel[,channel,...]>
|
|
176
176
|
known: ${H.join(", ")}`),process.exit(1));let o=await v(t,"enable",e);console.log(a({active:o},n));break}case"disable":{let e=B(r[0]),o=await v(t,"disable",e);console.log(a({active:o},n));break}case"toggle":{let e=r[0];e||(console.error(" usage: sootsim debug toggle <channel>"),process.exit(1));let o=await c(t,`window.__sootsimDebug.toggle(${JSON.stringify(e)})`);console.log(a({[e]:o},n));break}case"status":{let e=await S(t);console.log(a(e,n));break}case"channels":{let e=await c(t,"window.__sootsimDebug.channels()");console.log(a(e,n));break}case"flags":{let e=await $(t);console.log(a(e,n));break}case"snapshot":{let e=r[0],o=e?`window.__sootsimDebug.snapshot(${JSON.stringify(e)})`:"window.__sootsimDebug.snapshot()",s=await c(t,`(() => { const s = ${o}; if (!s) return null; return { label: s.label, at: s.at, size: s.nodes.size }; })()`);console.log(a(s,n));break}case"snapshots":{let e=await c(t,"window.__sootsimDebug.snapshots()");console.log(a(e,n));break}case"diff":{let e=r[0],o=r[1];(!e||!o)&&(console.error(" usage: sootsim debug diff <labelA> <labelB>"),process.exit(1));let s=`(() => {
|
|
177
177
|
const d = window.__sootsimDebug.diff(${JSON.stringify(e)}, ${JSON.stringify(o)});
|
|
178
178
|
if (!d) return null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as d}from"./chunk-
|
|
4
|
+
import{a as d}from"./chunk-FAI6B7KM.js";import"./chunk-N236X7SZ.js";import{a as u}from"./chunk-S3YHQIHR.js";import{a as l}from"./chunk-NMC3E6DO.js";import{g as m}from"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import{b as c,f as a}from"./chunk-LFJQHZGK.js";import{a as p}from"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";function v(o){let n=o.indexOf("--port");if(n<0)return;let e=o[n+1],t=e?Number(e):Number.NaN;return(!Number.isInteger(t)||t<=0)&&(console.error(` invalid --port value: ${e||"(missing)"}`),process.exit(1)),t}async function w(o,n){let e=v(o)??n.port;return e?m(String(e)):void 0}async function f(o,n){(o.includes("--help")||o.includes("-h"))&&(console.log(`
|
|
5
5
|
sootsim desktop \u2014 launch the desktop companion
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -16,7 +16,7 @@ examples:
|
|
|
16
16
|
sootsim desktop
|
|
17
17
|
sootsim desktop --port 5173
|
|
18
18
|
sootsim desktop --profile qa
|
|
19
|
-
`),process.exit(0));let e=o.find((k,s)=>o[s-1]==="--profile"),t=o.includes("--ephemeral");e&&t&&(console.error(" sootsim desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=e?c(e).id:void 0,i=p();if(!i){if(u(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run sootsim desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-
|
|
19
|
+
`),process.exit(0));let e=o.find((k,s)=>o[s-1]==="--profile"),t=o.includes("--ephemeral");e&&t&&(console.error(" sootsim desktop: --profile cannot be combined with --ephemeral"),process.exit(1));let h=e?c(e).id:void 0,i=p();if(!i){if(u(),process.stdin.isTTY&&process.env.CI!=="1"&&process.env.SOOTSIM_NO_PROMPT!=="1"&&await l("run sootsim desktop install now?",!0)){console.log();let{runInstallDesktop:s}=await import("./install-desktop-AWS5ITUE.js");await s(["--yes"]),i=p()}i||process.exit(1)}console.log(` launching ${i.path}`);let g=await w(o,n),r=await a.launch({url:g,device:n.device,profileId:h,ephemeralProfile:t});r.launched||(console.error(` ${r.message}`),process.exit(1)),console.log(` ${r.message}`)}function x(){console.log(`
|
|
20
20
|
sootsim desktop \u2014 launch or install the desktop companion
|
|
21
21
|
|
|
22
22
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{e as $}from"./chunk-
|
|
4
|
+
import{e as $}from"./chunk-N4Z7NF3J.js";import"./chunk-7BSX3TEH.js";import"./chunk-ZYZVAMKO.js";import"./chunk-GVTCP23K.js";import"./chunk-S3YHQIHR.js";import"./chunk-I2RMH3PV.js";import"./chunk-47AF7DZW.js";import{c as F,d as M,e as E}from"./chunk-3KB6LLD2.js";import{a as P}from"./chunk-IPNM6NRT.js";import"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-POTUFLUZ.js";import"./chunk-5O56UY3I.js";import"./chunk-HKQURR57.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";import{spawn as G}from"child_process";import{existsSync as x,mkdirSync as W,readFileSync as B,writeFileSync as y,unlinkSync as U}from"fs";import{tmpdir as N}from"os";import{dirname as C,resolve as c,join as J,relative as q}from"path";function H(){try{let t=import.meta.resolve("sootsim/detox");return C(t.startsWith("file://")?t.slice(7):t)}catch{return c(import.meta.dirname,"..","..","detox")}}var V=`
|
|
5
5
|
sootsim detox \u2014 run detox-style tests against a sootsim shell
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import"./chunk-
|
|
4
|
+
import"./chunk-6ZIFXWDJ.js";import"./chunk-FJ5D7KBQ.js";import{h as d,j as l,m as a}from"./chunk-GHXN67UJ.js";import"./chunk-V7MJLIGU.js";import{b as c,c as r,d as g}from"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";function h(){console.log(`
|
|
5
5
|
sootsim device \u2014 inspect or change the live device preset for a sim
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{h as E,j as R,m as b}from"./chunk-
|
|
4
|
+
import{h as E,j as R,m as b}from"./chunk-GHXN67UJ.js";import{f as v}from"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";function F(e){return e.ts??e.t??0}function W(e){return typeof e.message=="string"&&e.message.length>0?e.message:Array.isArray(e.args)?e.args.map(s=>typeof s=="string"?s:JSON.stringify(s)).join(" "):""}var B=new Set(["timeline","network","react","console","screen"]);function P(){console.log(`
|
|
5
5
|
sootsim get diagnosis \u2014 compact "what just went wrong?" report
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a,b,c,d,e}from"./chunk-FSM2WGIT.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";export{e as applyAutomaticSootsimCleanup,d as applySootsimCleanup,b as formatSootsimBytes,a as isAutomaticSootsimCleanupComplete,c as planSootsimCleanup};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import"./chunk-N236X7SZ.js";import{f as a,g as b,h as c,i as d,j as e,k as f,l as g}from"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-FOWD7TYC.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";export{c as ALL_DRIVERS,g as buildDriverListRows,a as electronDriver,d as getAllDrivers,e as getDriver,b as playwrightDriver,f as resolveDriver};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c as L,d as T}from"./chunk-
|
|
4
|
+
import{c as L,d as T}from"./chunk-W7C6FSWM.js";import{h as A,j as R,n as b}from"./chunk-GHXN67UJ.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";import{spawnSync as x}from"node:child_process";import{existsSync as V,mkdirSync as W,unlinkSync as N,writeFileSync as E}from"node:fs";import{homedir as j}from"node:os";import{dirname as q,extname as H,join as K,resolve as I}from"node:path";var n=e=>new Promise(a=>setTimeout(a,e)),X=["--out","--fps","--script","--slow"],J=["--keep-three"],Q=["--background","--gradient","--gradient-angle","--colorway","--environment","--env-shape","--env-spread","--env-size","--env-color","--env-glow","--env-plastic","--room","--focus","--focus-amount","--focus-range"],Y=12e4,Z=16e6;function c(e,a){let s=e.indexOf(a);return s>=0?e[s+1]:void 0}async function r(e,a,s=3e4){return await e.send({type:"evaluate",code:a},{timeoutMs:s})}async function ae(e,a){if(e.length===0||e.includes("--help")||e.includes("-h"))return console.log(`
|
|
5
5
|
sootsim film \u2014 record a flow flat, replay it on the 3d stage, save a clip
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -35,7 +35,7 @@ examples:
|
|
|
35
35
|
sootsim film flows/swap.yaml --script hero-arc --background gradient-tide --out ~/Desktop/swap-3d.mp4
|
|
36
36
|
sootsim film flows/login.yaml --colorway deep-blue --environment on --env-shape pane --room on
|
|
37
37
|
`),0;let s=e.find(d=>!d.startsWith("--")&&/\.ya?ml$/.test(d));if(!s||!V(I(s)))return console.error(` film: flow file not found: ${s??"(none given)"}`),1;let P=Number.parseInt(c(e,"--fps")??"30",10),h=c(e,"--script")??"hero-arc",z=e.includes("--keep-three"),v=s.replace(/^.*\//,"").replace(/\.ya?ml$/,""),O=c(e,"--out"),l=I(O??K(j(),"Desktop","sootsim-films",`${v}.webm`)),S=H(l).toLowerCase()===".mp4";if(S&&x("ffmpeg",["-version"]).status!==0)return console.error(" film: --out ends in .mp4 but ffmpeg is not installed"),console.error(" install ffmpeg or use a .webm output path"),1;let C=A(e,{port:a.port,stripValueFlags:[...X,...Q],stripBooleanFlags:J}),t=R({...C,commandTimeoutMs:6e4});try{let d=await r(t,`(() => { const s = window.SootSim?.bridges?.settings?.get?.() || {}
|
|
38
|
-
return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-
|
|
38
|
+
return { threeMode: s.threeMode === true, editor: s.threeRecordingEditor === true } })()`);if(console.log(` film: recording flow ${v} on the flat canvas`),!await r(t,"(async () => !!(await window.SootSim?.bridges?.startRecording?.('video', undefined, { skipEntitlement: true })))()"))return console.error(" film: engine recording store did not start (is @sootsim/plugin-recording installed?)"),1;let D=Date.now();await n(500);let{runFlowPlayback:G}=await import("./flow-2QKKLLQM.js"),m=[s],y=c(e,"--sim");y&&m.push("--sim",y);let k=c(e,"--slow");k&&m.push("--slow",k);let f=await G(m);await n(400);let u=Math.min(Date.now()-D,Y);if(await r(t,"window.SootSim?.bridges?.stopRecording?.()"),f!==0)return console.error(` film: flow failed (exit ${f}) \u2014 not filming a broken take`),f;let F=!1;for(let o=0;o<50;o++){await n(400);let i=await r(t,`(() => { const s = window.SootSim?.bridges?.getRecordingState?.()
|
|
39
39
|
return { state: s?.state, hasBlob: !!s?.lastVideoBlob } })()`);if(i?.state==="idle"&&i.hasBlob){F=!0;break}}if(!F)return console.error(" film: flow recording never produced a video blob"),1;console.log(` film: flow captured (${(u/1e3).toFixed(1)}s)`),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeMode', true)"),await L(t),await n(1400),await r(t,"window.SootSim?.bridges?.settings?.set?.('threeRecordingEditor', true)");let _=!1;for(let o=0;o<60;o++)if(await n(250),await r(t,`(() => { const rs = window.SootSim?.replayStore
|
|
40
40
|
return rs?.value?.preview?.surface === 'video' && !!rs?.value?.preview?.flowVideoUrl })()`)){_=!0;break}if(!_)return console.error(" film: recording editor did not seed the replay store"),1;let p=T(e);delete p.script,p.resetPose=!0,await b(t,"SootSim.bridges.threeMode.configure",p),await n(2400),console.log(` film: filming the 3d stage (script: ${h})`);let M=await r(t,`(() => {
|
|
41
41
|
const c = window.SootSim?.bridges?.threeMode?.getCanvas?.()
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{c,d,e,f,g,h}from"./chunk-N4Z7NF3J.js";import"./chunk-7BSX3TEH.js";import"./chunk-ZYZVAMKO.js";import{b as a,c as b}from"./chunk-GVTCP23K.js";import"./chunk-S3YHQIHR.js";import"./chunk-I2RMH3PV.js";import"./chunk-47AF7DZW.js";import"./chunk-3KB6LLD2.js";import"./chunk-IPNM6NRT.js";import"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-POTUFLUZ.js";import"./chunk-5O56UY3I.js";import"./chunk-HKQURR57.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a,b,c}from"./chunk-YRNCMR5K.js";import"./chunk-SJHHKL2L.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-ISONHFRC.js";import"./chunk-BDOGRZ6M.js";import"./chunk-WKDTGITC.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
|
package/dist-cli/chunks/{hidden-runtime-alias-SNP5LSQD.js → hidden-runtime-alias-Y6PI4YOZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as e,b as s}from"./chunk-
|
|
4
|
+
import{a as e,b as s}from"./chunk-ODFSRDJM.js";import"./chunk-WKDTGITC.js";var n=[{title:"Overview",route:"/docs/sootsim/cli"},...e.slice().sort((o,t)=>o.order-t.order).map(o=>({title:o.navTitle,route:`/docs/sootsim/cli/${o.slug}`}))];var i=["do","get"];function g(o){if(o.command)return o;let t=o.commandArgs.find(r=>!r.startsWith("-"));if(!t)return o;for(let r of i)if(s(r,t))return{...o,command:r};return o}export{g as resolveHiddenRuntimeAlias};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-
|
|
4
|
+
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";export{b as ACTIVE_RUNTIME_FILE,e as CONFIG_FILE,f as DAEMON_HEARTBEAT_STALE_MS,c as DAEMON_LOCKFILE,d as DEV_BRIDGE_LOCKFILE,a as SOOTSIM_HOME_ENV,J as activeRuntimeDir,m as activeRuntimeFile,u as cacheDir,R as claimDaemonLockfile,x as configFilePath,F as consumeRuntimeUpgradeNotice,s as daemonAppBundlePath,r as daemonAppDir,t as daemonAppLauncherPath,v as daemonLockfilePath,w as devBridgeLockfilePath,n as electronDir,o as electronUserDataDir,p as electronVersionDir,G as ensureSootsimHome,M as isDaemonLockfileFresh,N as isDevBridgeLockfileFresh,i as isDevWorkstation,h as isSootsimDevCheckout,q as profilesDir,H as readActiveRuntime,K as readDaemonLockfile,L as readDevBridgeLockfile,O as readLiveRuntimeVersions,C as readOrCreateAnonymousId,A as readPrivacyPreferences,y as readSharedConfig,S as removeDaemonLockfile,T as removeDevBridgeLockfile,l as runtimeDir,D as runtimeUpgradeNoticePath,k as runtimesDir,j as shouldSkipPersistentDaemon,g as sootsimHomeDir,I as writeActiveRuntime,P as writeDaemonLockfile,Q as writeDevBridgeLockfile,B as writePrivacyPreferences,E as writeRuntimeUpgradeNotice,z as writeSharedConfig};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{i as a,j as b}from"./chunk-GVTCP23K.js";import"./chunk-S3YHQIHR.js";import"./chunk-I2RMH3PV.js";import"./chunk-47AF7DZW.js";import"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-POTUFLUZ.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";export{a as printShellPerfReport,b as runInspect};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
+
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
+
import{a}from"./chunk-FAI6B7KM.js";import"./chunk-NMC3E6DO.js";import"./chunk-2LXM5BMK.js";import"./chunk-WKDTGITC.js";export{a as runInstallDesktop};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{b as k,d as v}from"./chunk-
|
|
4
|
+
import{b as k,d as v}from"./chunk-HKQURR57.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";import{exec as L}from"node:child_process";import{randomBytes as R}from"node:crypto";import x from"node:http";var b=process.env.SOOTSIM_AUTH_ORIGIN||"https://contrast.dev",w="https://contrast.localhost:3000";async function P(r){if(r)return r;if(process.env.SOOTSIM_AUTH_ORIGIN)return process.env.SOOTSIM_AUTH_ORIGIN;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{if((await fetch(`${w}/api/auth/me`)).ok)return w}catch{}return b}function A(){console.log(`
|
|
5
5
|
sootsim login \u2014 sign in so uploads can attach to your account
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -23,6 +23,6 @@ options:
|
|
|
23
23
|
<p style="color:#ccc">${r}</p>
|
|
24
24
|
</div>
|
|
25
25
|
</body>
|
|
26
|
-
</html>`}async function E(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(e.status===403)return{ok:!1,error:"local dev-login unavailable"};if(!e.ok){let u=await e.text().catch(()=>"");return{ok:!1,error:`dev-login ${e.status}: ${u}`}}let t=await e.json();return t.token?{ok:!0,token:t.token,userId:t.user?.id,email:t.email}:{ok:!1,error:"dev-login response missing token"}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"dev-login fetch failed"}}}function G(r){try{let e=new URL(r).hostname.replace(/^\[|\]$/g,"").toLowerCase();return!!(e==="localhost"||/^127(?:\.\d{1,3}){3}$/.test(e)||e==="::1"||e==="0.0.0.0"||e.endsWith(".local")||e.endsWith(".localhost")||e==="host.containers.internal"||e==="host.docker.internal"||e==="host.orb.internal"||e==="host.lima.internal"||e==="fd07:b51a:cc66:f0::fe"||e==="192.168.5.2"||/^192\.168\.(?:64|139)\.1$/.test(e))}catch{return!1}}async function z(r){(r.includes("--help")||r.includes("-h"))&&(A(),process.exit(0));let e=[...r],t=await P(C(e,"--origin"));if(G(t)){console.log(` detected local origin (${t}) \u2014 signing in as dev user`);let o=await E(t);if(o.ok){k({token:o.token,user:o.userId?{id:o.userId,email:o.email}:null,origin:t,source:"cli"});let i=await v(t),d=i?.user?.email||o.email||i?.user?.id||o.userId,{trackCliEvent:a,flushCliTelemetry:f}=await import("./telemetry-
|
|
26
|
+
</html>`}async function E(r){try{let e=await fetch(`${r.replace(/\/$/,"")}/api/dev-login`,{method:"POST"});if(e.status===403)return{ok:!1,error:"local dev-login unavailable"};if(!e.ok){let u=await e.text().catch(()=>"");return{ok:!1,error:`dev-login ${e.status}: ${u}`}}let t=await e.json();return t.token?{ok:!0,token:t.token,userId:t.user?.id,email:t.email}:{ok:!1,error:"dev-login response missing token"}}catch(e){return{ok:!1,error:e instanceof Error?e.message:"dev-login fetch failed"}}}function G(r){try{let e=new URL(r).hostname.replace(/^\[|\]$/g,"").toLowerCase();return!!(e==="localhost"||/^127(?:\.\d{1,3}){3}$/.test(e)||e==="::1"||e==="0.0.0.0"||e.endsWith(".local")||e.endsWith(".localhost")||e==="host.containers.internal"||e==="host.docker.internal"||e==="host.orb.internal"||e==="host.lima.internal"||e==="fd07:b51a:cc66:f0::fe"||e==="192.168.5.2"||/^192\.168\.(?:64|139)\.1$/.test(e))}catch{return!1}}async function z(r){(r.includes("--help")||r.includes("-h"))&&(A(),process.exit(0));let e=[...r],t=await P(C(e,"--origin"));if(G(t)){console.log(` detected local origin (${t}) \u2014 signing in as dev user`);let o=await E(t);if(o.ok){k({token:o.token,user:o.userId?{id:o.userId,email:o.email}:null,origin:t,source:"cli"});let i=await v(t),d=i?.user?.email||o.email||i?.user?.id||o.userId,{trackCliEvent:a,flushCliTelemetry:f}=await import("./telemetry-NYAZLCMX.js");a({event:"cli_login_succeeded",identity:{userId:o.userId??i?.user?.id??null},properties:{origin:t,mode:"dev"}}),await f(),console.log(` signed in${d?` as ${d}`:""} (dev)`);return}console.log(` dev-login not available (${o.error}); falling back to browser`)}let u=R(16).toString("hex");{let{trackCliEvent:o,flushCliTelemetry:i}=await import("./telemetry-NYAZLCMX.js");o({event:"cli_login_started",properties:{origin:t}}),await i()}let m=300*1e3,s=await new Promise(o=>{let i,d=!1,a=c=>{d||(d=!0,clearTimeout(i),o(c),f.close())},f=x.createServer((c,n)=>{try{let l=new URL(c.url||"/","http://127.0.0.1"),_=l.searchParams.get("state"),y=l.searchParams.get("token"),$=l.searchParams.get("email")||void 0,T=l.searchParams.get("userId")||void 0,p=l.searchParams.get("error");if(_!==u){n.statusCode=404,n.end("not found");return}if(n.setHeader("content-type","text/html; charset=utf-8"),p){n.end(g(`sign-in failed: ${p}`)),a({ok:!1,error:p});return}if(!y){n.end(g("missing token. close this tab and retry `sootsim login`.")),a({ok:!1,error:"missing token"});return}n.end(g("sign-in complete. you can return to the terminal.")),a({ok:!0,token:y,email:$,userId:T})}catch(l){n.statusCode=500,n.end(g("sign-in callback failed. retry `sootsim login`.")),a({ok:!1,error:l instanceof Error?l.message:"callback failed"})}});i=setTimeout(()=>{a({ok:!1,error:"timed out waiting for the browser sign-in (5 minutes). rerun `sootsim login` and complete the github authorize screen if it appears."})},m),f.listen(0,"127.0.0.1",()=>{let c=f.address();if(!c||typeof c=="string"){a({ok:!1,error:"failed to bind callback server"});return}let n=new URL(`${t.replace(/\/$/,"")}/auth/sootsim-cli`);n.searchParams.set("state",u),n.searchParams.set("port",String(c.port)),n.searchParams.set("contrast",t),console.log(" opening browser for sootsim login..."),console.log(" first time here? github will show an authorize screen. approve it to continue."),console.log(" waiting up to 5 minutes for the browser (ctrl+c to cancel)"),console.log(` if nothing opens, visit:
|
|
27
27
|
${n.toString()}
|
|
28
|
-
`),U(n.toString())})});if(!s.ok){let{trackCliEvent:o,flushCliTelemetry:i}=await import("./telemetry-
|
|
28
|
+
`),U(n.toString())})});if(!s.ok){let{trackCliEvent:o,flushCliTelemetry:i}=await import("./telemetry-NYAZLCMX.js");o({event:"cli_login_failed",properties:{origin:t,error:s.error}}),await i(),console.error(` login failed: ${s.error}`),process.exit(1)}k({token:s.token,user:s.userId?{id:s.userId,email:s.email}:null,origin:t,source:"cli"});let h=await v(t),I=h?.user?.email||s.email||h?.user?.id||s.userId,{trackCliEvent:O,flushCliTelemetry:S}=await import("./telemetry-NYAZLCMX.js");O({event:"cli_login_succeeded",identity:{userId:s.userId??h?.user?.id??null},properties:{origin:t}}),await S(),console.log(` signed in${I?` as ${I}`:""}`)}export{z as runLogin};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c as r,d as i}from"./chunk-
|
|
4
|
+
import{c as r,d as i}from"./chunk-5O56UY3I.js";import{a as t,c as o}from"./chunk-HKQURR57.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";async function s(){let e=t();if(!e?.token){console.log(" not signed in");return}try{await fetch(`${e.origin.replace(/\/$/,"")}/api/auth/sign-out`,{method:"POST",headers:{authorization:`Bearer ${e.token}`}})}catch{}o(),r({event:"cli_logout",identity:{userId:e.user?.id??null},properties:{origin:e.origin}}),await i(),console.log(" signed out")}export{s as runLogout};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c as E,d as O,f as L,g as R,h as P}from"./chunk-
|
|
4
|
+
import{c as E,d as O,f as L,g as R,h as P}from"./chunk-N4Z7NF3J.js";import"./chunk-7BSX3TEH.js";import"./chunk-ZYZVAMKO.js";import{b as k}from"./chunk-GVTCP23K.js";import"./chunk-S3YHQIHR.js";import{a as S}from"./chunk-I2RMH3PV.js";import"./chunk-47AF7DZW.js";import{b as $,c as F,d as T,e as M}from"./chunk-3KB6LLD2.js";import{a as A}from"./chunk-IPNM6NRT.js";import"./chunk-223S4HOM.js";import"./chunk-3BN7ACIG.js";import"./chunk-6ZIFXWDJ.js";import"./chunk-ASR54LQA.js";import"./chunk-I5SSRJDW.js";import"./chunk-LFJQHZGK.js";import"./chunk-2LXM5BMK.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-FJ5D7KBQ.js";import"./chunk-A6FYCXLX.js";import"./chunk-Y2KNXEIX.js";import"./chunk-LR5GL7TZ.js";import"./chunk-GHXN67UJ.js";import"./chunk-POTUFLUZ.js";import"./chunk-5O56UY3I.js";import"./chunk-HKQURR57.js";import"./chunk-FOWD7TYC.js";import"./chunk-GEXLPJZ6.js";import"./chunk-JVWHA7TR.js";import"./chunk-V7MJLIGU.js";import"./chunk-ZE3HG74O.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-ODFSRDJM.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";import*as s from"fs";import*as a from"path";var I=[".maestro","maestro"];function W(){console.log(`
|
|
5
5
|
sootsim maestro \u2014 author and run Maestro YAML flows against sootsim
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -91,7 +91,7 @@ appId: com.example.app
|
|
|
91
91
|
- inputText: "secret123"
|
|
92
92
|
- tapOn: "Sign in"
|
|
93
93
|
- assertVisible: "Welcome"
|
|
94
|
-
`,"utf8"),console.log(` + wrote ${e}`),console.log(" next: sootsim maestro test .maestro/login.yaml"),0)}async function Q(o,n={}){if(o.includes("--help")||o.includes("-h"))return W(),0;if(o.includes("--list-compat"))return D(),0;let e;try{e=Y(o)}catch(r){return console.error(` error: ${r.message}`),1}e=R(e);let t=process.cwd(),i=e[0];if(i==="init")return _(t);if(i==="generate"){let{runMaestroGenerate:r}=await import("./maestro-generate-
|
|
94
|
+
`,"utf8"),console.log(` + wrote ${e}`),console.log(" next: sootsim maestro test .maestro/login.yaml"),0)}async function Q(o,n={}){if(o.includes("--help")||o.includes("-h"))return W(),0;if(o.includes("--list-compat"))return D(),0;let e;try{e=Y(o)}catch(r){return console.error(` error: ${r.message}`),1}e=R(e);let t=process.cwd(),i=e[0];if(i==="init")return _(t);if(i==="generate"){let{runMaestroGenerate:r}=await import("./maestro-generate-VS26IJM5.js");return r(e.slice(1))}if(i==="start"||i==="keep"||i==="good"||i==="end"||i==="validate")return P(e);e=J(e);let c=null,u;if(i==="test"){let r=e.slice(1).find(f=>!U(f));r?(c=a.resolve(t,r),u=e.slice(1).filter(f=>f!==r)):(c=j(t),u=e.slice(1))}else i&&!U(i)?(c=a.resolve(t,i),u=e.slice(1)):(c=j(t),u=e);if(!c)return console.error(`
|
|
95
95
|
error: no maestro flows found.
|
|
96
96
|
expected one of: ${I.map(r=>`./${r}/`).join(", ")}
|
|
97
97
|
or pass a flow explicitly: sootsim maestro test path/to/flow.yaml
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.309 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as v}from"./chunk-
|
|
4
|
+
import{a as v}from"./chunk-I2RMH3PV.js";import{b as O,d as A,e as E}from"./chunk-3KB6LLD2.js";import{a as x,b as T}from"./chunk-IPNM6NRT.js";import{f as y}from"./chunk-I5SSRJDW.js";import"./chunk-2HUVXSCB.js";import"./chunk-7QL76I5Z.js";import"./chunk-A6FYCXLX.js";import"./chunk-LR5GL7TZ.js";import{h as b,j as S}from"./chunk-GHXN67UJ.js";import"./chunk-5O56UY3I.js";import"./chunk-HKQURR57.js";import"./chunk-S6YNVIOG.js";import"./chunk-FYVL4NBD.js";import"./chunk-25GKNYXJ.js";import"./chunk-WKDTGITC.js";import{mkdtempSync as R,writeFileSync as N}from"fs";import{tmpdir as C}from"os";import{join as k}from"path";var J=process.env.SOOTSIM_TEST_MODEL||"deepseek-v4-flash",_=18e3,j=18e4;function f(e,t){let r=e.indexOf(t);return r>=0?e[r+1]:void 0}function V(e,t){for(let r of t){let o=f(e,r);if(o)return o}}var P=new Set(["--origin","--preview-origin","--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]);function G(e){for(let t=0;t<e.length;t++){let r=e[t];if(r){if(P.has(r)){t+=1;continue}if(!r.startsWith("-"))return{prompt:r,index:t}}}return null}function H(e,t){return e.filter((r,o)=>o!==t)}async function Y(e,t){let r=H(e,t),o=b(r,{stripBooleanFlags:["--new","--headless","--headed","--electron","--preview-open"],stripValueFlags:[...P]}),i=S(o);try{let n=await y(i,{describe:!0,verbose:!1,filter:"",compact:!0,hideXy:!0}),s=[n.shell?`shell: ${JSON.stringify(n.shell)}`:"",n.keyboard?`keyboard: ${JSON.stringify(n.keyboard)}`:"",typeof n.nodeCount=="number"?`nodes: ${n.nodeCount}`:"",n.tree||""].filter(Boolean).join(`
|
|
5
5
|
`);return s.length>_?s.slice(0,_)+`
|
|
6
6
|
[tree truncated]`:s}finally{i.close()}}var K=`
|
|
7
7
|
You write Maestro-compatible SootSim YAML flows from a user's plain-language test goal.
|
|
@@ -32,5 +32,5 @@ ${t||"[no tree available]"}
|
|
|
32
32
|
|
|
33
33
|
Generate the shortest replayable flow that verifies the goal from this current state.
|
|
34
34
|
`.trim()}async function W(e){let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/llm`,{method:"POST",headers:{"content-type":"application/json",authorization:e.authHeader},body:JSON.stringify({modelId:J,context:{systemPrompt:K,messages:[{role:"user",content:z(e.prompt,e.describe),timestamp:Date.now()}]},options:{maxTokens:1800,temperature:.2},threadId:null}),signal:AbortSignal.timeout(j)});if(!t.ok||!t.body){let a=await t.text().catch(()=>"");throw new Error(`/api/llm ${t.status}${a?`: ${a}`:""}`)}let r=t.body.getReader(),o=new TextDecoder,i=[],n="",c=a=>{let l=a.trim();if(!l)return;let u=JSON.parse(l);if(u.type==="text_delta"&&u.delta)i.push(u.delta);else if(u.type==="error")throw new Error(u.errorMessage||"llm error")};for(;;){let{value:a,done:l}=await r.read();if(l)break;n+=o.decode(a,{stream:!0});let u;for(;(u=n.indexOf(`
|
|
35
|
-
`))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function X(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function M(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=X(e);if(!M(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"SootSim generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!M(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:v.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: sootsim maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=x();if(!i||i.kind==="github")return console.error(' sootsim maestro generate "<goal>" needs a login or SOOTSIM_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await W({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=R(k(C(),"sootsim-maestro-generate-")),m=k(u,"flow.yaml");N(m,l.yamlText),console.log(` flow: ${m}`);let F=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-
|
|
35
|
+
`))>=0;)c(n.slice(0,u)),n=n.slice(u+1)}n+=o.decode(),n.trim()&&c(n);let s=i.join("").trim();if(!s)throw new Error("llm returned an empty test flow");return s}function X(e){let t=e.match(/```(?:json)?\s*([\s\S]*?)```/i),r=t?t[1]:e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);return JSON.parse(r)}function M(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}function q(e){let t=X(e);if(!M(t))throw new Error("llm did not return a JSON object");let r=typeof t.summary=="string"&&t.summary.trim()?t.summary.trim().slice(0,500):"SootSim generated test",o=t.steps;if(!Array.isArray(o)||o.length===0)throw new Error("llm returned no flow steps");let i=o.map((n,c)=>{if(!M(n))throw new Error(`flow step ${c+1} is not an object`);return n});return{summary:r,steps:i,yamlText:v.stringify(i)}}function Q(e,t,r,o){let i=[r,"--preview","--preview-origin",o,"--billing-kind","test_run"],n=new Set(["--public-origin","--preview-public-origin","--owner","--repo","--url","--driver","--sim","--device","--slow","--tail-wait","--remap","--replace"]),c=new Set(["--new","--headless","--headed","--electron","--preview-open","--no-shell","--shell-only"]);for(let s=0;s<e.length;s++){if(s===t)continue;let a=e[s];if(a==="--origin"||a==="--preview-origin"){s+=1;continue}if(a==="--public-origin"){let l=e[s+1];l&&i.push("--preview-public-origin",l),s+=1;continue}if(n.has(a)){let l=e[s+1];l&&i.push(a,l),s+=1;continue}c.has(a)&&i.push(a)}return i}async function le(e){let t=G(e);if(!t)return console.error(' usage: sootsim maestro generate "test goal"'),1;let{prompt:r,index:o}=t,i=x();if(!i||i.kind==="github")return console.error(' sootsim maestro generate "<goal>" needs a login or SOOTSIM_API_KEY.'),console.error(" API keys must include preview_upload and llm scopes."),1;let n=T(i),c=await E(V(e,["--origin","--preview-origin"]));console.log(" inspecting current sim\u2026");let s=await Y(e,o);console.log(" generating Maestro flow\u2026");let a=await W({prompt:r,describe:s,origin:c,authHeader:n}),l=q(a),u=R(k(C(),"sootsim-maestro-generate-")),m=k(u,"flow.yaml");N(m,l.yamlText),console.log(` flow: ${m}`);let F=Date.now(),{runFlowPlayback:I,getLastFlowPreviewUploadResult:$,getLastFlowTraceSteps:D}=await import("./flow-2QKKLLQM.js"),L=Q(e,o,m,c),w=await I(L),p=$(),h=D(),U=h.find(B=>B.status==="failure"),g=w===0?"passed":"failed",d=await A({origin:c,kind:"maestro",prompt:r,summary:l.summary,status:g,failureMessage:g==="failed"?U?.error??"flow playback failed":null,previewShareId:p?.shareId??null,owner:f(e,"--owner")??null,repo:f(e,"--repo")??null,durationMs:Date.now()-F,flowYamlSizeBytes:Buffer.byteLength(l.yamlText,"utf8"),...O(h),auth:i});return console.log(`
|
|
36
36
|
result: ${g}`),d&&console.log(` run: ${d.id}`),p?.previewUrl&&console.log(` preview: ${p.previewUrl}`),d?.traceUrl&&console.log(` replay: ${d.traceUrl}`),w}export{le as runMaestroGenerate};
|