sootsim 0.1.202 → 0.1.204

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.
Files changed (140) hide show
  1. package/dist-cli/bin.js +4 -4
  2. package/dist-cli/chunks/{agent-SP6EE5XV.js → agent-T2OMCNWX.js} +2 -2
  3. package/dist-cli/chunks/{agent-wrapper-PWZVJ3OK.js → agent-wrapper-TOEG4KZN.js} +2 -2
  4. package/dist-cli/chunks/{app-fonts-EMJB6QLM.js → app-fonts-ZZFS4AH7.js} +2 -2
  5. package/dist-cli/chunks/{assert-H2B6TDXT.js → assert-PY6GNPNF.js} +2 -2
  6. package/dist-cli/chunks/{auth-SOHXBYLQ.js → auth-B2PWGTKN.js} +2 -2
  7. package/dist-cli/chunks/beta-UOE2TYBN.js +2 -0
  8. package/dist-cli/chunks/{camera-ULLCBM5H.js → camera-OEPAIWJN.js} +2 -2
  9. package/dist-cli/chunks/{chunk-RS7QLHEH.js → chunk-2QNS3LVC.js} +2 -2
  10. package/dist-cli/chunks/{chunk-KRGHRSKY.js → chunk-3QH7DDPH.js} +2 -2
  11. package/dist-cli/chunks/{chunk-KYGUR727.js → chunk-4E5IRWI7.js} +2 -2
  12. package/dist-cli/chunks/{chunk-4KT2BGQE.js → chunk-4M2TZWK6.js} +1 -1
  13. package/dist-cli/chunks/{chunk-6FZ6SNVP.js → chunk-4MOXA427.js} +2 -2
  14. package/dist-cli/chunks/{chunk-6QFVYLX6.js → chunk-53WUR3VJ.js} +2 -2
  15. package/dist-cli/chunks/{chunk-CB7LDZKJ.js → chunk-6ZAG2UD7.js} +3 -3
  16. package/dist-cli/chunks/{chunk-5SKKMM7E.js → chunk-77BU6BBG.js} +1 -1
  17. package/dist-cli/chunks/{chunk-DRJ4YWUG.js → chunk-BASFSVR7.js} +1 -1
  18. package/dist-cli/chunks/{chunk-OG6TFGYF.js → chunk-BJPP3RYK.js} +2 -2
  19. package/dist-cli/chunks/{chunk-GZKT53SA.js → chunk-C77XHORB.js} +1 -1
  20. package/dist-cli/chunks/{chunk-3ZENZOIX.js → chunk-CTTF7N3P.js} +2 -2
  21. package/dist-cli/chunks/chunk-GYCMTLSB.js +1 -0
  22. package/dist-cli/chunks/{chunk-RWXCSRNE.js → chunk-HLFAGJQS.js} +2 -2
  23. package/dist-cli/chunks/{chunk-PL4GXELT.js → chunk-HXYRVST6.js} +1 -1
  24. package/dist-cli/chunks/{chunk-4KVSVFRF.js → chunk-IFELEVID.js} +1 -1
  25. package/dist-cli/chunks/{chunk-Z5VMWFCY.js → chunk-IFFUT5B6.js} +1 -1
  26. package/dist-cli/chunks/{chunk-2CID4LNK.js → chunk-IKUS3HEG.js} +3 -3
  27. package/dist-cli/chunks/chunk-JZHU6AG2.js +1 -0
  28. package/dist-cli/chunks/{chunk-RZQO4Q7E.js → chunk-LBIRAJOL.js} +1 -1
  29. package/dist-cli/chunks/{chunk-JP7J325R.js → chunk-LLSFRU7R.js} +2 -2
  30. package/dist-cli/chunks/{chunk-ENXHZGSL.js → chunk-LWAHCD7M.js} +1 -1
  31. package/dist-cli/chunks/{chunk-2V43M57C.js → chunk-MBP24UDB.js} +1 -1
  32. package/dist-cli/chunks/{chunk-ROYBEBG2.js → chunk-N4SBPOL2.js} +1 -1
  33. package/dist-cli/chunks/{chunk-AAQVPSIV.js → chunk-O5EQ6EUO.js} +2 -2
  34. package/dist-cli/chunks/{chunk-EMOZJ773.js → chunk-P4TMHMTW.js} +2 -2
  35. package/dist-cli/chunks/{chunk-HZYHSLNH.js → chunk-PNARQS2A.js} +2 -2
  36. package/dist-cli/chunks/{chunk-GUYKLSTX.js → chunk-QIUGKRGQ.js} +1 -1
  37. package/dist-cli/chunks/{chunk-WILIVPUU.js → chunk-QL7ZV7RK.js} +24 -24
  38. package/dist-cli/chunks/{chunk-W4Y3JJX6.js → chunk-QPWJELIW.js} +3 -3
  39. package/dist-cli/chunks/{chunk-K3UBHPVP.js → chunk-QQKXV6OM.js} +1 -1
  40. package/dist-cli/chunks/{chunk-CGJ2U6ST.js → chunk-R4XFWY2O.js} +1 -1
  41. package/dist-cli/chunks/{chunk-RJVIUQK4.js → chunk-SQPLGMB6.js} +1 -1
  42. package/dist-cli/chunks/{chunk-WVDWIXPH.js → chunk-UJYUJFAF.js} +2 -2
  43. package/dist-cli/chunks/{chunk-LNDRRZP3.js → chunk-UW5SGYV4.js} +2 -2
  44. package/dist-cli/chunks/{chunk-TANTCV45.js → chunk-VEPYEPFT.js} +2 -2
  45. package/dist-cli/chunks/chunk-VIZKVZQB.js +2 -0
  46. package/dist-cli/chunks/chunk-VK2PTPFN.js +97 -0
  47. package/dist-cli/chunks/{chunk-SQBX2HS7.js → chunk-WCGZK5VV.js} +2 -2
  48. package/dist-cli/chunks/{chunk-4NM6JBYH.js → chunk-WFS5YJAV.js} +1 -1
  49. package/dist-cli/chunks/{chunk-B6JB4THC.js → chunk-YZOZZJOB.js} +2 -2
  50. package/dist-cli/chunks/{chunk-F2LLN4U7.js → chunk-Z3I3WOQH.js} +2 -2
  51. package/dist-cli/chunks/cli-version-F5UUZ3AL.js +2 -0
  52. package/dist-cli/chunks/{compat-YW3OJ7RX.js → compat-M2I2R7FR.js} +3 -3
  53. package/dist-cli/chunks/{config-ZGOXFEX4.js → config-6H6NNUFA.js} +2 -2
  54. package/dist-cli/chunks/{control-75JRFOYV.js → control-RHYSHKVY.js} +2 -2
  55. package/dist-cli/chunks/daemon-E3GVTRTF.js +2 -0
  56. package/dist-cli/chunks/{debug-4APEP64L.js → debug-QBI2C77H.js} +3 -3
  57. package/dist-cli/chunks/{desktop-CS7S4CXK.js → desktop-YXBYOWT7.js} +3 -3
  58. package/dist-cli/chunks/{detox-7R7DOKQM.js → detox-5UZKDRSJ.js} +2 -2
  59. package/dist-cli/chunks/{device-EIDKLBEK.js → device-22PEYRIX.js} +2 -2
  60. package/dist-cli/chunks/{diagnose-J2F7MJAJ.js → diagnose-6XHZ44UY.js} +2 -2
  61. package/dist-cli/chunks/drivers-JMXYZ6QQ.js +2 -0
  62. package/dist-cli/chunks/flow-VWRNDUMP.js +2 -0
  63. package/dist-cli/chunks/help-EN6VZRYR.js +2 -0
  64. package/dist-cli/chunks/{home-paths-WVCREWI7.js → home-paths-KF47ROJM.js} +2 -2
  65. package/dist-cli/chunks/inspect-42Q6QOAY.js +2 -0
  66. package/dist-cli/chunks/install-desktop-6AW62HXK.js +2 -0
  67. package/dist-cli/chunks/{login-EOBJ7CZ4.js → login-7ORY4PH7.js} +4 -4
  68. package/dist-cli/chunks/{logout-RL7D66VQ.js → logout-DLV43XAX.js} +2 -2
  69. package/dist-cli/chunks/{maestro-F66ZIJKA.js → maestro-KUYHVA4K.js} +2 -2
  70. package/dist-cli/chunks/{mode-R2VIW66U.js → mode-KY52AGWL.js} +2 -2
  71. package/dist-cli/chunks/optional-demo-registry-CPJHOPHN.js +2 -0
  72. package/dist-cli/chunks/{perf-PGYO5BBR.js → perf-LOQ24NZ5.js} +2 -2
  73. package/dist-cli/chunks/{record-IGDVHC67.js → record-V7PUJQLE.js} +3 -3
  74. package/dist-cli/chunks/runtime-UWXYS6JK.js +2 -0
  75. package/dist-cli/chunks/screenshot-command-MHE3PC4G.js +151 -0
  76. package/dist-cli/chunks/screenshots-capture-4HAJBNUA.js +41 -0
  77. package/dist-cli/chunks/{serve-3TFVHYLY.js → serve-HADAVKJP.js} +2 -2
  78. package/dist-cli/chunks/{setup-JSPPRVET.js → setup-6HHTU6KU.js} +3 -3
  79. package/dist-cli/chunks/{skills-LK3B76W7.js → skills-KDJACPBK.js} +2 -2
  80. package/dist-cli/chunks/{storage-NC5RNBUA.js → storage-AU6V673L.js} +2 -2
  81. package/dist-cli/chunks/store-4XRYXAOA.js +2 -0
  82. package/dist-cli/chunks/telemetry-A4M356NJ.js +2 -0
  83. package/dist-cli/chunks/{test-2CXPLH5N.js → test-R4QJQNF2.js} +5 -5
  84. package/dist-cli/chunks/{timeline-WDTEVELN.js → timeline-MZZXRUH3.js} +2 -2
  85. package/dist-cli/chunks/{upgrade-TT2IJSNJ.js → upgrade-JTW54477.js} +2 -2
  86. package/dist-cli/chunks/upload-G6JTMQK7.js +2 -0
  87. package/dist-cli/chunks/{version-JUNH4FOR.js → version-TCNEY542.js} +2 -2
  88. package/dist-cli/chunks/{web-BWCW26ZA.js → web-OXDQRQVR.js} +2 -2
  89. package/dist-cli/chunks/{what-happened-L6EEB6MB.js → what-happened-6M7UMJUB.js} +2 -2
  90. package/dist-lib/agent-daemon-client.cjs +1 -1
  91. package/dist-lib/agent-events.cjs +1 -1
  92. package/dist-lib/agent-identity.cjs +1 -1
  93. package/dist-lib/agent-sessions.cjs +1 -1
  94. package/dist-lib/attached-projects.cjs +1 -1
  95. package/dist-lib/auth/shared-session.cjs +1 -1
  96. package/dist-lib/backend-origin.cjs +1 -1
  97. package/dist-lib/beta.cjs +1 -1
  98. package/dist-lib/beta.mjs +1 -1
  99. package/dist-lib/bridge-constants.cjs +1 -1
  100. package/dist-lib/cli-constants.cjs +1 -1
  101. package/dist-lib/config.cjs +1 -1
  102. package/dist-lib/detox/index.cjs +1 -1
  103. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  104. package/dist-lib/home-paths.cjs +1 -1
  105. package/dist-lib/host/bridge-host.cjs +1 -1
  106. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  107. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  108. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  109. package/dist-lib/host/websocket-proxy.cjs +1 -1
  110. package/dist-lib/index.cjs +1 -1
  111. package/dist-lib/jump-to-source-babel.cjs +1 -1
  112. package/dist-lib/menu.cjs +1 -1
  113. package/dist-lib/menu.mjs +1 -1
  114. package/dist-lib/metro.cjs +1 -1
  115. package/dist-lib/profiles.cjs +1 -1
  116. package/dist-lib/render-mode.cjs +1 -1
  117. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  118. package/dist-lib/sdk.cjs +1 -1
  119. package/dist-lib/sdk.mjs +1 -1
  120. package/dist-lib/skills.cjs +1 -1
  121. package/dist-lib/vite.cjs +1 -1
  122. package/package.json +1 -1
  123. package/dist-cli/chunks/beta-CCNQQ73A.js +0 -2
  124. package/dist-cli/chunks/chunk-5J63S2NM.js +0 -1
  125. package/dist-cli/chunks/chunk-BZ7AW7ZB.js +0 -92
  126. package/dist-cli/chunks/chunk-DKBKU55D.js +0 -2
  127. package/dist-cli/chunks/chunk-I6O7NBPZ.js +0 -1
  128. package/dist-cli/chunks/cli-version-Z4NGLJLH.js +0 -2
  129. package/dist-cli/chunks/daemon-SHFBQRHD.js +0 -2
  130. package/dist-cli/chunks/drivers-55L7BHDF.js +0 -2
  131. package/dist-cli/chunks/flow-AHWVTHJP.js +0 -2
  132. package/dist-cli/chunks/help-C4BTMPEE.js +0 -2
  133. package/dist-cli/chunks/inspect-M4Z4SSSB.js +0 -2
  134. package/dist-cli/chunks/install-desktop-PVRUAEMA.js +0 -2
  135. package/dist-cli/chunks/optional-demo-registry-ILX5YV34.js +0 -2
  136. package/dist-cli/chunks/runtime-43RJGUGS.js +0 -2
  137. package/dist-cli/chunks/screenshot-command-HX4GVUJM.js +0 -190
  138. package/dist-cli/chunks/store-3XMEKA6H.js +0 -2
  139. package/dist-cli/chunks/telemetry-CVJ5YZNS.js +0 -2
  140. package/dist-cli/chunks/upload-4HMNB4HA.js +0 -2
@@ -1,5 +1,5 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{C as N,D as F,F as y,Q as T,R as b,S}from"./chunk-ROYBEBG2.js";import{g as A,i as _}from"./chunk-KRGHRSKY.js";import"./chunk-PL4GXELT.js";import{b as k}from"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-4KT2BGQE.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let r=Number(l[1]),u=l[2]??"ms",v=u==="s"?r*1e3:u==="m"?r*6e4:r;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function x(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let r=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${r}`:(e={label:`${s.kind}: ${r}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=A(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
+ import{C as N,D as F,F as y,Q as T,R as b,S}from"./chunk-N4SBPOL2.js";import{g as A,i as _}from"./chunk-3QH7DDPH.js";import"./chunk-HXYRVST6.js";import{b as k}from"./chunk-LBIRAJOL.js";import"./chunk-C77XHORB.js";import"./chunk-4M2TZWK6.js";function O(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let r=Number(l[1]),u=l[2]??"ms",v=u==="s"?r*1e3:u==="m"?r*6e4:r;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function x(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let r=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${r}`:(e={label:`${s.kind}: ${r}`,events:[],startedAt:s.t},t.push(e))}}return t}async function J(n,t){let e=A(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
3
3
  sootsim what-happened \u2014 show recent events from the semantic timeline
4
4
 
5
5
  usage:
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/beta.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/beta.ts
4
4
  var IS_BETA = true;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/host/fetch-proxy-overrides.ts
4
4
  var FETCH_PROXY_BROWSER_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36";
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/menu.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // src/menu.ts
4
4
  var SOOTSIM_ENGINE_EVENT_NAME = "sootsim:engine-event";
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/sdk.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
 
3
3
  // cli/commands/inspect/core.ts
4
4
  function resolveMaxMsFlag(args, fallbackMs) {
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
1
+ /*! sootsim v0.1.204 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
2
  let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sootsim",
3
- "version": "0.1.202",
3
+ "version": "0.1.204",
4
4
  "description": "sootsim CLI + vite/metro plugins + skills registry. bridge client for driving the proprietary sootsim-engine over WebSocket.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b,c,d}from"./chunk-5SKKMM7E.js";import"./chunk-4KT2BGQE.js";export{d as BETA_ASK_HEADLINE,b as BETA_LABEL,c as BETA_TAGLINE,a as IS_BETA};
@@ -1 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
@@ -1,92 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a as ke,b as Ee,c as Re}from"./chunk-TANTCV45.js";import{c as Te}from"./chunk-CGJ2U6ST.js";import{d as we}from"./chunk-RJVIUQK4.js";import{g as Se,i as ve,k as x}from"./chunk-KRGHRSKY.js";import{d as xe}from"./chunk-DRJ4YWUG.js";import{a as Me,b as v}from"./chunk-KYGUR727.js";import{a as be}from"./chunk-RWXCSRNE.js";import{createHash as ut}from"crypto";import{readFileSync as L}from"fs";import{gzipSync as Pe,gunzipSync as ct}from"zlib";function Ie(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!(t.startsWith("image/")||t.startsWith("video/")||t.startsWith("audio/")||t==="font/woff2"||t==="application/font-woff2"||t==="application/zip"||t==="application/gzip"):!0}import{brotliCompressSync as Xe,constants as Ze}from"node:zlib";var et=9;function Be(e){return Xe(e,{params:{[Ze.BROTLI_PARAM_QUALITY]:et}})}function te(e,t){let r=new AbortController,o=setTimeout(()=>r.abort(new Error(`${t} timed out after ${e/1e3}s`)),e);return{signal:r.signal,cancel:()=>clearTimeout(o)}}async function tt(e){let t=te(12e4,`PUT ${e.url}`),r;try{r=await fetch(e.url,{method:"PUT",headers:{"content-type":e.contentType},body:e.bytes,signal:t.signal})}finally{t.cancel()}if(!r.ok){let o=await r.text().catch(()=>"");throw new Error(`PUT ${e.url} failed ${r.status}: ${o.slice(0,200)}`)}}async function nt(e,t=8,r){let o=0,i=0,a=e.length;await Promise.all(Array.from({length:Math.min(t,a)},async()=>{for(;o<a;){let u=e[o++];await tt(u),i++,r?.(i,a)}}))}function rt(e,t,r,o){let i=[];i.push({url:e.bundle.putUrl,contentType:e.bundle.contentType,bytes:t});for(let a of e.files){let u=r.get(a.urlhash);u&&i.push({url:a.putUrl,contentType:a.contentType,bytes:u})}e.events&&o?.eventsBytes&&i.push({url:e.events.putUrl,contentType:e.events.contentType,bytes:o.eventsBytes}),e.timeline&&o?.timelineBytes&&i.push({url:e.timeline.putUrl,contentType:e.timeline.contentType,bytes:o.timelineBytes}),e.flowVideo&&o?.videoBytes&&i.push({url:e.flowVideo.putUrl,contentType:e.flowVideo.contentType,bytes:o.videoBytes}),e.storage&&o?.storageBytes&&i.push({url:e.storage.putUrl,contentType:e.storage.contentType,bytes:o.storageBytes});for(let a of e.snapshots??[]){let u=o?.snapshotBytes?.get(a.id);u&&i.push({url:a.putUrl,contentType:a.contentType,bytes:u})}return i}function st(e){return e.replace(/\/+$/,"")}var z=class extends Error{constructor(r,o,i,a=""){super(r);this.status=o;this.phase=i;this.responseText=a;this.name="PresignedUploadError"}};async function Ae(e){let t=st(e.originBase),r={"content-type":"application/json"};e.authHeader&&(r.authorization=e.authHeader),e.adminBypassToken&&(r["x-soot-admin-upload-bypass"]=e.adminBypassToken);let o=te(3e4,"init"),i;try{i=await fetch(`${t}/api/preview/upload/init`,{method:"POST",headers:r,body:JSON.stringify(e.initBody),signal:o.signal})}finally{o.cancel()}if(!i.ok){let f=await i.text().catch(()=>"");throw new z(`init failed: ${i.status} ${f.slice(0,200)}`,i.status,"init",f)}let a=await i.json(),u=rt(a,e.bundleBytes,e.filesByHash,e.extras);await nt(u,e.concurrency??8,e.onPutProgress);let y=te(3e4,"finalize"),m;try{m=await fetch(`${t}/api/preview/upload/finalize`,{method:"POST",headers:r,body:JSON.stringify({token:a.token}),signal:y.signal})}finally{y.cancel()}if(!m.ok){let f=await m.text().catch(()=>"");throw new z(`finalize failed: ${m.status} ${f.slice(0,200)}`,m.status,"finalize",f)}let F=await m.json();return{init:a,finalize:F}}function ot(e){return e!==null&&typeof e=="object"?e:null}function Ue(e){return typeof e=="number"&&Number.isFinite(e)?e:void 0}function ne(e){let t=ot(e);return t?t.schemaVersion===1&&Ue(t.t)!==void 0&&Ue(t.seq)!==void 0&&typeof t.context=="string"&&typeof t.kind=="string"&&"data"in t:!1}function it(e,t){let r=[];for(let o of e.split(`
3
- `)){let i=o.trim();if(i)try{let a=JSON.parse(i);t(a)&&r.push(a)}catch{}}return r}function _e(e){return it(e,ne)}function dt(e){if(!e)return null;try{let t=JSON.parse(e);return typeof t.message=="string"&&t.message?t.message:null}catch{return null}}var Ce=process.env.SOOTSIM_UPLOAD_ORIGIN||"https://sootbean.com",Ne=process.env.SOOTSIM_PREVIEW_ORIGIN||"https://sootsim.com",se="http://localhost:3000",pt=2e3;async function mt(e){if(e)return e;if(process.env.SOOTSIM_UPLOAD_ORIGIN)return process.env.SOOTSIM_UPLOAD_ORIGIN;try{let t=await fetch(`${se}/api/preview/upload/init`,{method:"OPTIONS",signal:AbortSignal.timeout(pt)});if(t.ok||t.status===204||t.status===405)return se}catch{}return Ce}function U(e){return e.replace(/\/$/,"")}function ft(e){try{let r=new URL(e).hostname.replace(/^\[|\]$/g,"").toLowerCase();return r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r)}catch{return!1}}function gt(e){try{let t=new URL(e).hostname.toLowerCase();return t==="sootbean.com"||t.endsWith(".sootbean.com")}catch{return!1}}function ht(e,t){return t?U(t):process.env.SOOTSIM_PREVIEW_ORIGIN?U(process.env.SOOTSIM_PREVIEW_ORIGIN):ft(e)?U(e):gt(e)?U(Ne):U(e)}function yt(){console.log(`
4
- sootsim record upload \u2014 publish the current recorded bundle as a /preview/<id> link
5
-
6
- usage:
7
- sootsim record upload [--origin <url>] [--public-origin <url>] (--events <path> | --video <path>) [--screenshot <path>] [--owner <org> --repo <repo>] [--sim <sim>] [--open] [--assets-only]
8
-
9
- options:
10
- --origin <url> upload target (default: auto)
11
- prefers ${se} when available, otherwise
12
- falls back to ${Ce}
13
- override with SOOTSIM_UPLOAD_ORIGIN env var
14
- --public-origin <url>
15
- public /preview link origin (default: ${Ne}
16
- for prod uploads, upload origin for localhost/custom origins).
17
- override with SOOTSIM_PREVIEW_ORIGIN env var
18
- --events <path> path to a gzipped events .jsonl.gz file to attach
19
- required unless --video is present; previews must
20
- have replay or recording playback data
21
- --screenshot <path>
22
- path to a PNG thumbnail to attach to the share
23
- --video <path> path to a mp4/gif flow recording. embedded inline
24
- in the pr sticky comment served at
25
- /api/preview/flow-video?id=<share-id>
26
- --video-duration-ms <ms>
27
- duration hint for attached flow video
28
- --timeline-events <path>
29
- extra trace timeline rows, JSONL or JSONL gz
30
- --trace-frame-stats <path>
31
- frame stats JSON returned by the recorder bridge
32
- --owner <org> associate a session upload with a linked org repo
33
- --repo <repo> repo name for --owner; the signed-in user must belong
34
- to the local/org team that owns the link
35
- --billing-kind test_run
36
- meter this upload as a natural-language test run
37
- --sim <sim> target a specific sim (see: sootsim list)
38
- --open open the resulting /preview/<id> url in the browser
39
- --assets-only drop API/JSON/HTML records before upload; keep images,
40
- fonts, css, js, and binary blobs. live-data demos hit
41
- the real network at replay time instead of serving
42
- recorded API snapshots
43
- -h, --help
44
-
45
- examples:
46
- sootsim record upload --events ./my-session.jsonl.gz
47
- sootsim record upload --origin http://localhost:3000 --events ./my-session.jsonl.gz --open
48
- sootsim record upload --video /tmp/soot-flow.mp4 --video-duration-ms 12000
49
- `)}function d(e,t){let r=e.findIndex(i=>i===t);if(r<0)return;let o=e[r+1];return e.splice(r,2),o}function Le(e,t){let r=e.findIndex(o=>o===t);return r<0?!1:(e.splice(r,1),!0)}function Fe(e,t){if(!e)return;let r=Number(e);return(!Number.isFinite(r)||r<=0)&&(console.error(` invalid ${t}: ${e}`),process.exit(1)),Math.round(r)}function $e(e){let t=(e||"").toLowerCase().split(";")[0].trim();return t?!!(t.startsWith("image/")||t.startsWith("font/")||t.startsWith("video/")||t.startsWith("audio/")||t.startsWith("model/")||t==="text/css"||t==="application/javascript"||t==="text/javascript"||t==="application/wasm"||t==="application/font-woff"||t==="application/font-woff2"||t==="application/octet-stream"):!1}async function Oe(e){let t=await fetch(e);if(!t.ok)throw new Error(`fetch ${e} -> ${t.status} ${t.statusText}`);return new Uint8Array(await t.arrayBuffer())}function bt(e){return/\.bundle($|\?)/.test(e)||/\.js($|\?)/.test(e)?"application/javascript":/\.zip($|\?)/.test(e)?"application/zip":"application/javascript"}function Mt(e){try{return new URL(e).searchParams.get("appFonts")||""}catch{return""}}function wt(e){try{return new URL(e).searchParams.get("appSplash")||""}catch{return""}}function Tt(e){try{let t=new URL(e);return t.searchParams.get("lazy")==="true"?(t.searchParams.set("lazy","false"),t.toString()):e}catch{return e}}async function St(e,t){let o=[];for(let i=0;i<t;i+=15e5){let a=Math.min(i+15e5,t),u=await x(e,`(window.__sootsimLastTransformedBundle?.text || "").slice(${i}, ${a})`);if(typeof u!="string")return null;o.push(u)}return o.join("")}function vt(e){return e.recordedDurationMs&&e.recordingStartedAtMs?{since:e.recordingStartedAtMs-1e4,until:e.recordingStartedAtMs+e.recordedDurationMs+5e3,limit:2e3}:{limit:2e3}}function xt(e){let t=L(e),o=(t[0]===31&&t[1]===139?ct(t):t).toString("utf8");return _e(o)}function kt(e){return JSON.parse(L(e,"utf8"))}function Et(e){if(e===null||typeof e!="object")return[];let t=e,r=typeof t.startedAtEpochMs=="number"&&t.startedAtEpochMs>0?t.startedAtEpochMs:null;if(r===null||!Array.isArray(t.samples))return[];let o=[];for(let i of t.samples){if(!Array.isArray(i)||typeof i[0]!="number")continue;let a=u=>typeof u=="number"&&Number.isFinite(u)?Math.round(u*100)/100:0;o.push({schemaVersion:1,t:r+Math.round(i[0]),seq:o.length+1,context:"tenant",kind:"frame",data:{totalMs:a(i[1]),layoutMs:a(i[2]),renderMs:a(i[3]),copyMs:a(i[4])}})}return o}function Rt(e){if(e===null||typeof e!="object")return e;let{samples:t,...r}=e;return r}function re(e){let t=new Map;for(let r of e)t.set(r.urlhash||r.url,r);return Array.from(t.values())}async function Wt(e,t){(e.includes("--help")||e.includes("-h"))&&(yt(),process.exit(0));let r=[...e],o=await mt(d(r,"--origin")),i=ht(o,d(r,"--public-origin")),a=d(r,"--events"),u=d(r,"--screenshot"),y=d(r,"--video"),m=d(r,"--timeline-events"),F=d(r,"--trace-frame-stats"),f=d(r,"--video-duration-ms"),oe=Fe(d(r,"--recorded-duration-ms"),"--recorded-duration-ms"),ie=Fe(d(r,"--recording-started-at-ms"),"--recording-started-at-ms"),H=d(r,"--owner"),j=d(r,"--repo"),$=d(r,"--billing-kind"),De=Le(r,"--open");(H&&!j||!H&&j)&&(console.error(" --owner and --repo must be provided together"),process.exit(1)),$&&$!=="test_run"&&(console.error(` invalid --billing-kind: ${$}`),process.exit(1)),!a&&!y&&(console.error(" preview uploads require playback data: pass --events or --video.\n for a normal local preview, use `sootsim record --mode combined --open`\n or `sootsim flow --preview` instead of uploading a bundle-only snapshot."),process.exit(1));let ae=Le(r,"--assets-only"),ze=Se(r,{stripBooleanFlags:[],stripValueFlags:[]}),b=ve(ze),c,le=[],M=[],w=m?xt(m):[],ue=F?kt(F):null;w.push(...Et(ue));let ce=w.length,J=null;try{if(c=await x(b,'(typeof window.__sootsimCaptureBundle === "function") ? window.__sootsimCaptureBundle() : null'),c?.bundleUrl){let l=new URL(c.bundleUrl).origin,[B,X]=await Promise.all([x(b,`(window.__sootsimPreviewRecorder?.list?.(${JSON.stringify(l)}) || [])`),x(b,`(async () => {
50
- const list = window.__sootsimListWorkerFetchRecorder
51
- return typeof list === 'function'
52
- ? await list(${JSON.stringify(l)})
53
- : []
54
- })()`)]);le=re([...B,...X]).filter(p=>{try{return!new URL(p.url).pathname.startsWith("/api/")}catch{return!0}});let A=await x(b,`(async () => {
55
- const rec = window.__sootsimPreviewRecorder
56
- const workerList = window.__sootsimListWorkerFetchRecorder
57
- return {
58
- main: rec?.list ? rec.list() : [],
59
- worker: typeof workerList === 'function' ? await workerList() : [],
60
- }
61
- })()`),P=(A?re([...A.main,...A.worker]):[]).filter(p=>{try{return new URL(p.url).origin!==l}catch{return!1}}),S=P.length>0?{count:P.length,totalBytes:P.reduce((p,Z)=>p+(Z.size||0),0)}:null;if(S&&S.count>0){console.log(` ${S.count} recorded cross-origin responses (${(S.totalBytes/1024).toFixed(1)} KiB)`);let p=await x(b,`(async () => {
62
- const rec = window.__sootsimPreviewRecorder
63
- const workerDump = window.__sootsimDumpWorkerFetchRecorder
64
- const bundleUrl = ${JSON.stringify(c.bundleUrl)}
65
- const keep = (r) => {
66
- try {
67
- const u = new URL(r.url)
68
- if (u.origin !== ${JSON.stringify(l)}) return true
69
- // bundle-origin api responses came from the rewritten
70
- // /__app-api proxy at record time (re-keyed by the
71
- // recorder's unwrap step). they need bodies attached the
72
- // same way as cross-origin records \u2014 direct re-fetch from
73
- // the dev server lacks the bundle's session cookies.
74
- if (r.url !== bundleUrl && u.pathname.startsWith('/api/')) return true
75
- return false
76
- } catch { return false }
77
- }
78
- return {
79
- main: rec?.dump ? rec.dump().filter(keep) : [],
80
- worker: typeof workerDump === 'function'
81
- ? (await workerDump()).filter(keep)
82
- : [],
83
- }
84
- })()`);if(M=re([...p.main,...p.worker]),ae){let Z=M.length;M=M.filter(ee=>$e(ee.contentType));let Ye=S.totalBytes-M.reduce((ee,Qe)=>ee+(Qe.size||0),0);console.log(` --assets-only: kept ${M.length}/${Z} records (dropped ${(Ye/1024).toFixed(1)} KiB of API responses)`)}}}c?.transformedBundle&&(J=await St(b,c.transformedBundle.byteLength));let n=await x(b,`(() => {
85
- const bridge = window.SootSim?.bridges?.timeline ?? window.__sootsimTimeline
86
- if (!bridge || typeof bridge.recent !== 'function') return null
87
- return bridge.recent(${JSON.stringify(vt({recordedDurationMs:oe,recordingStartedAtMs:ie}))})
88
- })()`).catch(l=>(console.warn(` warning: failed to capture trace timeline: ${l instanceof Error?l.message:String(l)}`),null)),s=Array.isArray(n?.events)?n.events:[];w=[...w,...s.filter(ne)].sort((l,B)=>l.t-B.t||l.seq-B.seq)}finally{b.close()}c||(console.error(" could not read bundle snapshot \u2014 is sootsim running and is the bundle loaded?"),process.exit(2)),c.bundleUrl||(console.error(` no ?bundle= URL on the current sootsim tab.
89
- open the app you want to share first (e.g. sootsim open 8082), then run upload.`),process.exit(2));let g,K=!1;if(J!==null)g=new TextEncoder().encode(J),K=!0,console.log(` using post-transform bundle: ${(g.byteLength/1024).toFixed(1)} KiB`);else{let n=Tt(c.bundleUrl);n!==c.bundleUrl&&console.log(" forcing lazy=false for self-contained bundle"),console.log(` capturing: ${n}`),g=await Oe(n),console.log(` main bundle: ${(g.byteLength/1024).toFixed(1)} KiB`)}let O=le.filter(n=>n.url!==c.bundleUrl);ae&&(O=O.filter(n=>$e(n.contentType))),console.log(` fetching ${O.length} extra files\u2026`);let C=(await Promise.all(O.map(async n=>{try{let s=await Oe(n.url);return{...n,bytes:s}}catch(s){return console.error(` warning: failed to re-fetch ${n.url}: ${s instanceof Error?s.message:s}`),null}}))).filter(n=>!!n),He=C.reduce((n,s)=>n+s.bytes.byteLength,0);console.log(` ${C.length} extra files: ${(He/1024).toFixed(1)} KiB`);let k;a&&(k=L(a)),w.sort((n,s)=>n.t-s.t||n.seq-s.seq);let de=w.map(n=>JSON.stringify(n)).join(`
90
- `),V=Pe(de?`${de}
91
- `:"");console.log(` trace timeline: ${w.length} events${ce?` (${ce} from runner sidecars)`:""}`);let h;u&&(h=L(u),console.log(` attaching screenshot: ${(h.byteLength/1024).toFixed(1)} KiB`));let T,_,pe;if(y){if(T=L(y),_=y.endsWith(".mp4")?"video/mp4":y.endsWith(".gif")?"image/gif":void 0,_||(console.error(" preview flow videos must be mp4 or gif"),await v(),process.exit(1)),f){let n=Number(f);(!Number.isFinite(n)||n<=0)&&(console.error(` invalid --video-duration-ms: ${f}`),await v(),process.exit(1)),pe=Math.round(n)}console.log(` attaching flow video: ${(T.byteLength/1024).toFixed(1)} KiB (${_})`)}let E=ke(),R=Re(E),je=be();Me({event:"preview_upload_started",identity:{userId:E?.kind==="session"?je?.user?.id??null:null,repoId:R?.repoId??null,installationId:R?.installationId??null},properties:{origin:o,hasAuth:!!E,authMode:E?.kind??"none",bundleBytes:g.byteLength,isTransformed:K,extraFiles:C.length,recordedFetches:M.length,hasEvents:!!k,traceTimelineEvents:w.length,hasScreenshot:!!h,hasVideo:!!T}}),E||(console.error(" preview uploads need auth."),console.error(" set SOOTSIM_API_KEY=sk_sootsim_..., run `sootsim login`, or use the soot github runner."),await v(),process.exit(1));let Je=Ee(E),Ke=(()=>{try{return new URL(c.bundleUrl).origin}catch{return null}})(),N=(n,s,l,B,X,A,ye,P)=>{let S=Ie(A),p=S?Pe(n):n;return{url:s,urlhash:l,method:B,bodyHash:X,requestVaryHash:P,contentType:A,responseHeaders:ye,bytes:p,encoding:S?"gzip":void 0}},me=[],q=Mt(c.pageHref)||"";if(q){let n=await we(q,{onStaged:({url:s,byteLength:l})=>console.log(` staged app font: ${s} (${(l/1024).toFixed(1)} KiB)`),onError:(s,l)=>console.error(` warning: failed to fetch app font ${s}: ${l instanceof Error?l.message:l}`)});for(let s of n)me.push(N(Buffer.from(s.bytes),s.url,s.urlhash,"GET","-",s.contentType))}let fe=[],W=wt(c.pageHref)||"";if(W){let n=await Te(W,{onStaged:({url:s,byteLength:l})=>console.log(` staged splash image: ${s} (${(l/1024).toFixed(1)} KiB)`),onError:(s,l)=>console.error(` warning: failed to fetch splash image ${s}: ${l instanceof Error?l.message:l}`)});for(let s of n)fe.push(N(Buffer.from(s.bytes),s.url,s.urlhash,"GET","-",s.contentType))}let G=[...C.map(n=>N(n.bytes,n.url,n.urlhash,"GET","-",n.contentType,n.responseHeaders,n.requestVaryHash)),...M.map(n=>N(Buffer.from(n.bodyBase64,"base64"),n.url,n.urlhash,n.method||"GET",n.bodyHash||"-",n.contentType,n.responseHeaders,n.requestVaryHash)),...me,...fe],Y=Be(g),Ve=ut("sha256").update(g).digest("hex");console.log(` bundle raw=${(g.byteLength/1024).toFixed(1)} KiB br=${(Y.byteLength/1024).toFixed(1)} KiB`);let qe={contentHash:Ve,bundleSizeBytes:g.byteLength,bundleContentType:bt(c.bundleUrl),bundleEncoding:"br",bundleOrigin:Ke,runtimeVersion:c.runtimeVersion??void 0,appFonts:q||void 0,appSplash:W||void 0,entry:c.entry,isTransformed:K,deviceSpec:c.deviceSpec,installationId:R?.installationId??void 0,repoId:R?.repoId,owner:H??R?.owner,repo:j??R?.repo,billingKind:$==="test_run"?"test_run":void 0,files:G.map(n=>({url:n.url,urlhash:n.urlhash,method:n.method,bodyHash:n.bodyHash,contentType:n.contentType,responseHeaders:n.responseHeaders,requestVaryHash:n.requestVaryHash,encoding:n.encoding,sizeBytes:n.bytes.byteLength})),events:k?{sizeBytes:k.byteLength}:void 0,timeline:{sizeBytes:V.byteLength,encoding:"gzip"},traceFrameStats:Rt(ue),recordedDurationMs:oe,recordingStartedAtMs:ie,snapshots:h?[{id:"landing",label:"Landing",kind:"landing",t:0,contentType:"image/png",sizeBytes:h.byteLength}]:void 0,flowVideo:T&&_?{sizeBytes:T.byteLength,contentType:_,durationMs:pe}:void 0},ge=new Map;for(let n of G)ge.set(n.urlhash,n.bytes);let he=new Map;h&&he.set("landing",h);let We=Date.now(),I=Y.byteLength;for(let n of G)I+=n.bytes.byteLength;k&&(I+=k.byteLength),I+=V.byteLength,h&&(I+=h.byteLength),T&&(I+=T.byteLength);let Ge=`${U(o)}/api/preview/upload/init`;console.log(` init: ${Ge}`);let D;try{let n=await Ae({originBase:o,initBody:qe,bundleBytes:Y,filesByHash:ge,extras:{eventsBytes:k,timelineBytes:V,videoBytes:T,snapshotBytes:he},authHeader:Je,concurrency:16});D=n.finalize;let s=1+n.init.files.length+(n.init.events?1:0)+(n.init.timeline?1:0)+n.init.snapshots.length+(n.init.flowVideo?1:0);console.log(` PUT ${s} objects in ${Date.now()-We}ms (${(I/1024).toFixed(1)} KiB)`)}catch(n){let s=n;s.phase==="init"&&s.status===401&&(console.error(" preview upload requires a valid login."),console.error(" run `sootsim login` and retry."),await v(),process.exit(1)),s.status===402&&(console.error(` ${dt(s.responseText)??"preview uploads require Personal, Team, or an active trial \u2014 upgrade from the billing dialog."}`),await v(),process.exit(1)),console.error(` ${s.message??`${s.phase??"upload"} failed: ${String(n)}`}`),await v(),process.exit(1)}let Q=`${i}${D.url}`;return console.log(`
92
- stored ${D.filesStored??0} extra files`),console.log(` preview: ${Q}`),De&&await xe(Q),await v(),{previewUrl:Q,shareId:D.id}}export{mt as a,ht as b,Wt as c};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b as d}from"./chunk-TANTCV45.js";import{execSync as c}from"child_process";function p(e){try{return c(e,{stdio:["ignore","pipe","ignore"],timeout:3e3,encoding:"utf8"}).trim()||null}catch{return null}}function o(e){let n=e?.trim();return!n||!/^\d+$/.test(n)?null:Number(n)}function m(){let e=process.env.GITHUB_ACTIONS==="true",n=(process.env.SOOT_REPO||process.env.GITHUB_REPOSITORY||"").trim(),[r,u]=n.includes("/")?n.split("/",2):[null,null];if(e){let t=process.env.GITHUB_REF?.match(/^refs\/pull\/(\d+)\//)?.[1];return{owner:r,repo:u,branch:process.env.GITHUB_HEAD_REF?.trim()||process.env.GITHUB_REF_NAME?.trim()||null,commitSha:process.env.GITHUB_SHA?.trim()||null,githubUsername:process.env.GITHUB_ACTOR?.trim()||null,pullRequestNumber:o(process.env.SOOT_PR_NUMBER)??o(t),githubRunId:process.env.GITHUB_RUN_ID?.trim()||null,source:"ci"}}let i=p("git rev-parse --abbrev-ref HEAD");return{owner:r,repo:u,branch:i==="HEAD"?null:i,commitSha:p("git rev-parse HEAD"),githubUsername:null,pullRequestNumber:o(process.env.SOOT_PR_NUMBER),githubRunId:null,source:"cli"}}function g(e){if(e.length===0)return{stepCount:null,failedStepIndex:null};let n=e.find(r=>r.status==="failure");return{stepCount:e.length,failedStepIndex:n?n.stepIndex:null}}function b(e){return e.auth?e.uploadedShare?!0:e.auth.kind==="github"||process.env.GITHUB_ACTIONS==="true":!1}async function R(e){let n=e.auth??a();if(!n)return null;let r=m(),u=e.owner??(n.kind==="github"?n.owner:null)??r.owner,i=e.repo??(n.kind==="github"?n.repo:null)??r.repo;try{let t=await fetch(`${e.origin.replace(/\/$/,"")}/api/sootsim/test-runs`,{method:"POST",headers:{"content-type":"application/json",authorization:d(n)},body:JSON.stringify({kind:e.kind,source:r.source,name:e.name??void 0,prompt:e.prompt??void 0,summary:e.summary??void 0,status:e.status,failureMessage:e.failureMessage??void 0,previewShareId:e.previewShareId??void 0,owner:u??void 0,repo:i??void 0,branch:r.branch??void 0,commitSha:r.commitSha??void 0,githubUsername:r.githubUsername??void 0,pullRequestNumber:r.pullRequestNumber??void 0,githubRunId:r.githubRunId??void 0,stepCount:e.stepCount??void 0,failedStepIndex:e.failedStepIndex??void 0,durationMs:e.durationMs??void 0,flowYamlSizeBytes:e.flowYamlSizeBytes??void 0})});if(!t.ok){let s=await t.text().catch(()=>"");return console.warn(` warn: run registration failed: /api/sootsim/test-runs ${t.status}${s?`: ${s.slice(0,200)}`:""}`),null}let l=await t.json();return l.run?.id?{id:l.run.id,previewUrl:l.run.previewUrl??null,traceUrl:l.run.traceUrl??null}:(console.warn(" warn: run registration returned no id"),null)}catch(t){return console.warn(` warn: run registration failed: ${t instanceof Error?t.message:String(t)}`),null}}export{g as a,b,R as c};
@@ -1 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a}from"./chunk-K3UBHPVP.js";import"./chunk-4KT2BGQE.js";export{a as getCliVersion};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b,c,d,e}from"./chunk-3ZENZOIX.js";import"./chunk-KYGUR727.js";import"./chunk-RWXCSRNE.js";import"./chunk-RS7QLHEH.js";import"./chunk-LNDRRZP3.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-K3UBHPVP.js";import"./chunk-5SKKMM7E.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{c as daemonInstall,b as getDaemonServiceStatus,a as runDaemon,d as teardownDaemonService,e as teardownSootsimHome};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import"./chunk-5J63S2NM.js";import{f as a,g as b,h as c,i as d,j as e,k as f,l as g,m as h,n as i}from"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-4KT2BGQE.js";export{e as ALL_DRIVERS,i as buildDriverListRows,a as chromiumDriver,b as electronDriver,f as getAllDrivers,g as getDriver,c as playwrightDriver,h as resolveDriver,d as systemDriver};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{c,d,e,f,g,h}from"./chunk-WILIVPUU.js";import{c as a,d as b}from"./chunk-2CID4LNK.js";import"./chunk-AAQVPSIV.js";import"./chunk-6QFVYLX6.js";import"./chunk-BZ7AW7ZB.js";import"./chunk-TANTCV45.js";import"./chunk-B6JB4THC.js";import"./chunk-WVDWIXPH.js";import"./chunk-I6O7NBPZ.js";import"./chunk-CGJ2U6ST.js";import"./chunk-RJVIUQK4.js";import"./chunk-4NM6JBYH.js";import"./chunk-EMOZJ773.js";import"./chunk-ROYBEBG2.js";import"./chunk-KRGHRSKY.js";import"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-4KVSVFRF.js";import"./chunk-OG6TFGYF.js";import"./chunk-KYGUR727.js";import"./chunk-RWXCSRNE.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{e as discoverSootsimUrl,c as getLastFlowPreviewUploadResult,d as getLastFlowTraceSteps,g as hoistLeadingSimFlag,a as parseFlowFile,h as runFlow,f as runFlowPlayback,b as validateFlowFile};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b,c}from"./chunk-RS7QLHEH.js";import"./chunk-LNDRRZP3.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-K3UBHPVP.js";import"./chunk-5SKKMM7E.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{c as printCommandHelp,b as printGroupHelp,a as printHelp};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{j as a,k as b}from"./chunk-2CID4LNK.js";import"./chunk-AAQVPSIV.js";import"./chunk-B6JB4THC.js";import"./chunk-WVDWIXPH.js";import"./chunk-I6O7NBPZ.js";import"./chunk-CGJ2U6ST.js";import"./chunk-RJVIUQK4.js";import"./chunk-4NM6JBYH.js";import"./chunk-EMOZJ773.js";import"./chunk-ROYBEBG2.js";import"./chunk-KRGHRSKY.js";import"./chunk-HZYHSLNH.js";import"./chunk-ENXHZGSL.js";import"./chunk-DRJ4YWUG.js";import"./chunk-4KVSVFRF.js";import"./chunk-OG6TFGYF.js";import"./chunk-SQBX2HS7.js";import"./chunk-F2LLN4U7.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-2V43M57C.js";import"./chunk-4KT2BGQE.js";export{a as printShellPerfReport,b as runInspect};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a}from"./chunk-CB7LDZKJ.js";import"./chunk-GUYKLSTX.js";import"./chunk-ENXHZGSL.js";import"./chunk-4KT2BGQE.js";export{a as runInstallDesktop};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a,b}from"./chunk-4NM6JBYH.js";import"./chunk-4KT2BGQE.js";export{a as loadOptionalDemoApps,b as optionalDemoAppsSync};
@@ -1,2 +0,0 @@
1
- /*! sootsim v0.1.202 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
2
- import{a}from"./chunk-W4Y3JJX6.js";import"./chunk-6FZ6SNVP.js";import"./chunk-KRGHRSKY.js";import"./chunk-PL4GXELT.js";import"./chunk-RZQO4Q7E.js";import"./chunk-GZKT53SA.js";import"./chunk-4KT2BGQE.js";export{a as runRuntime};