sootsim 0.1.67 → 0.1.69
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 +7 -28
- package/dist-cli/chunks/agent-24YNURWT.js +46 -0
- package/dist-cli/chunks/{agent-wrapper-EEKVEJOC.js → agent-wrapper-HFGHIXOE.js} +2 -2
- package/dist-cli/chunks/{assert-MDYZKXZ6.js → assert-II7SOIWW.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-ZSBWJNS3.js +2 -0
- package/dist-cli/chunks/beta-KP45AIKO.js +2 -0
- package/dist-cli/chunks/chunk-3IX7MYA5.js +2 -0
- package/dist-cli/chunks/{chunk-ZJJKYJMH.js → chunk-3ZTDUKJ7.js} +2 -2
- package/dist-cli/chunks/{chunk-KBJ2WHII.js → chunk-53M6D45I.js} +2 -2
- package/dist-cli/chunks/{chunk-SH6HMUCY.js → chunk-54F34JSE.js} +2 -2
- package/dist-cli/chunks/{chunk-O624O5MO.js → chunk-6ZY6ZQCR.js} +2 -2
- package/dist-cli/chunks/{chunk-3KVVIZ6M.js → chunk-7JNNK4Y5.js} +2 -2
- package/dist-cli/chunks/{chunk-N4JRDJMN.js → chunk-7VSCHTOB.js} +3 -3
- package/dist-cli/chunks/{chunk-ZO7SGE65.js → chunk-AZL2QB55.js} +1 -1
- package/dist-cli/chunks/{chunk-EJTXYZEF.js → chunk-BJAE7XPO.js} +2 -2
- package/dist-cli/chunks/chunk-CUY6BNX7.js +2 -0
- package/dist-cli/chunks/{chunk-TLTS533S.js → chunk-CZLZY2L7.js} +1 -1
- package/dist-cli/chunks/{chunk-IB4BRND4.js → chunk-CZMDG33T.js} +1 -1
- package/dist-cli/chunks/{chunk-F23Y4HMT.js → chunk-D5GJOIEA.js} +1 -1
- package/dist-cli/chunks/{chunk-LQ5BA5JU.js → chunk-E4JGW3W5.js} +2 -2
- package/dist-cli/chunks/{chunk-2I535GZU.js → chunk-F3OZIZRP.js} +1 -1
- package/dist-cli/chunks/{chunk-IBWN764Q.js → chunk-FSLQ5JMG.js} +2 -2
- package/dist-cli/chunks/{chunk-XCRUPKWB.js → chunk-GPSRFWIM.js} +2 -2
- package/dist-cli/chunks/{chunk-MIAAZSSE.js → chunk-GTS473QW.js} +2 -2
- package/dist-cli/chunks/{chunk-7PQHQOCI.js → chunk-HLI4LU4W.js} +2 -2
- package/dist-cli/chunks/{chunk-5WRBVYML.js → chunk-HPQONVKR.js} +2 -2
- package/dist-cli/chunks/{chunk-YGQV3CUV.js → chunk-HW5RSKWO.js} +2 -2
- package/dist-cli/chunks/{chunk-K4PKR2EO.js → chunk-HYUN4NOK.js} +2 -2
- package/dist-cli/chunks/chunk-ILS7LZYU.js +1 -0
- package/dist-cli/chunks/{chunk-67566AJS.js → chunk-J2BEK2N4.js} +2 -2
- package/dist-cli/chunks/chunk-JE42KYBM.js +1 -0
- package/dist-cli/chunks/{chunk-CUNQTNH4.js → chunk-KPFFOGTN.js} +2 -2
- package/dist-cli/chunks/{chunk-42NMKOVE.js → chunk-L2GIJ4ZE.js} +2 -2
- package/dist-cli/chunks/chunk-L43OQHGJ.js +23 -0
- package/dist-cli/chunks/chunk-MRPOYAVM.js +2 -0
- package/dist-cli/chunks/{chunk-NYR3Z44O.js → chunk-MSJP7ZHX.js} +1 -1
- package/dist-cli/chunks/{chunk-ATRGAFJD.js → chunk-NBJWBQNF.js} +1 -1
- package/dist-cli/chunks/{chunk-2HKCZLY7.js → chunk-NZMMRHQT.js} +41 -36
- package/dist-cli/chunks/chunk-ODEFEKMH.js +119 -0
- package/dist-cli/chunks/{chunk-4H6LBA4A.js → chunk-QHCJJ5PN.js} +1 -1
- package/dist-cli/chunks/{chunk-ZP2HMCKS.js → chunk-RTZD4HOM.js} +1 -1
- package/dist-cli/chunks/{chunk-AQ7YR4MO.js → chunk-RVBRL2SF.js} +1 -1
- package/dist-cli/chunks/{chunk-U47AHSGE.js → chunk-SYTOGXRD.js} +2 -2
- package/dist-cli/chunks/{chunk-HW5YHSIE.js → chunk-TBHAELOL.js} +1 -1
- package/dist-cli/chunks/{chunk-52RZ6TSZ.js → chunk-TRH4J2JR.js} +3 -3
- package/dist-cli/chunks/{chunk-4QSGVTBE.js → chunk-TVVF5ZAO.js} +2 -2
- package/dist-cli/chunks/{chunk-F4RC4AOY.js → chunk-Y4E7Q6NI.js} +1 -1
- package/dist-cli/chunks/{chunk-DOWYG3HG.js → chunk-YDWZBFP5.js} +2 -2
- package/dist-cli/chunks/chunk-Z25U2JGF.js +1 -0
- package/dist-cli/chunks/{chunk-BCVVANS5.js → chunk-ZAHHQU6K.js} +2 -2
- package/dist-cli/chunks/cli-version-EQFYDXHX.js +2 -0
- package/dist-cli/chunks/{compat-5MMZ4R3Q.js → compat-GR3KMP2X.js} +3 -3
- package/dist-cli/chunks/{config-YWN44WJQ.js → config-IAUKDHRD.js} +2 -2
- package/dist-cli/chunks/{control-LUCFDAZI.js → control-24GO5WE6.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-VFGUVXU5.js → cpu-profile-BK4OEHAL.js} +2 -2
- package/dist-cli/chunks/daemon-CWA7IN2V.js +65 -0
- package/dist-cli/chunks/{debug-CPOG32OT.js → debug-FV3LOPJE.js} +3 -3
- package/dist-cli/chunks/demo-app-registry-F3BYAS3Y.js +2 -0
- package/dist-cli/chunks/{detox-J6NGSZR5.js → detox-KY3RQVO7.js} +2 -2
- package/dist-cli/chunks/{device-QYOQXI2P.js → device-NFSQHWUB.js} +2 -2
- package/dist-cli/chunks/{diagnose-MMW4LJLA.js → diagnose-6G4U4WW4.js} +2 -2
- package/dist-cli/chunks/drivers-QTMRZD2O.js +2 -0
- package/dist-cli/chunks/{electron-IK3HIZY4.js → electron-JOGRH27P.js} +3 -3
- package/dist-cli/chunks/flow-3DMUKMYK.js +2 -0
- package/dist-cli/chunks/{hints-KZOD56U5.js → hints-CL5TQ6W3.js} +2 -2
- package/dist-cli/chunks/{home-paths-R2YZZTUM.js → home-paths-CDP3XDH7.js} +2 -2
- package/dist-cli/chunks/{inspect-ZARO3HQ4.js → inspect-U5UTOW3R.js} +3 -3
- package/dist-cli/chunks/install-2OI3XDXA.js +2 -0
- package/dist-cli/chunks/{install-desktop-4GH5I7SC.js → install-desktop-V6Y2VN6X.js} +3 -3
- package/dist-cli/chunks/{keys-AXEFZUUI.js → keys-CHKK42VK.js} +2 -2
- package/dist-cli/chunks/{launch-QLE56ON7.js → launch-MBPAFJAV.js} +3 -3
- package/dist-cli/chunks/{login-J45NQQM6.js → login-BISIC3YY.js} +4 -4
- package/dist-cli/chunks/{logout-ZE5OUBB7.js → logout-N7RTN7R7.js} +2 -2
- package/dist-cli/chunks/{maestro-FS6CAKDD.js → maestro-VT664LRA.js} +2 -2
- package/dist-cli/chunks/{preview-TSU5IXVR.js → preview-HUI7EHN7.js} +2 -2
- package/dist-cli/chunks/{profile-ZBJ4TYWA.js → profile-G3AWN5I3.js} +2 -2
- package/dist-cli/chunks/{react-TGZLTTYN.js → react-OG7TY3PM.js} +2 -2
- package/dist-cli/chunks/{record-JSBFUNOD.js → record-6N6D4NVH.js} +29 -13
- package/dist-cli/chunks/runtime-ISROAVBF.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-36UMAXOV.js → runtime-delivery-XCDYMVSH.js} +2 -2
- package/dist-cli/chunks/{screenshot-3CHMALUJ.js → screenshot-A4Z7NHYA.js} +8 -6
- package/dist-cli/chunks/{screenshot-mode-C547UT5H.js → screenshot-mode-3OH45UQY.js} +2 -2
- package/dist-cli/chunks/{screenshots-XCNGSNYG.js → screenshots-VQD2GQMY.js} +2 -2
- package/dist-cli/chunks/{server-W37X3IW7.js → server-NNA7UFLZ.js} +2 -2
- package/dist-cli/chunks/setup-repo-QGX5ZWTB.js +2 -0
- package/dist-cli/chunks/{skills-OXZLDNDW.js → skills-DIVMMGLZ.js} +2 -2
- package/dist-cli/chunks/{start-N6ZQYUBP.js → start-L4NTRCYK.js} +4 -4
- package/dist-cli/chunks/store-4VBBBDJE.js +2 -0
- package/dist-cli/chunks/telemetry-M32R6OYB.js +2 -0
- package/dist-cli/chunks/{test-DWZ7PRSW.js → test-JQ656BIH.js} +3 -3
- package/dist-cli/chunks/{three-mode-P2R7KA62.js → three-mode-VR4MV76T.js} +2 -2
- package/dist-cli/chunks/{timeline-VPES3YCN.js → timeline-SG45ESID.js} +2 -2
- package/dist-cli/chunks/{upgrade-NYQLA4UJ.js → upgrade-AQWJ2OCM.js} +2 -2
- package/dist-cli/chunks/upload-ICDSBY65.js +2 -0
- package/dist-cli/chunks/web-TIQ65MI5.js +2 -0
- package/dist-cli/chunks/{what-happened-GZ73H6KF.js → what-happened-TWF4J6P2.js} +2 -2
- package/dist-cli/chunks/{whoami-UDLQK7IY.js → whoami-TN3F5LMO.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/vite-base.cjs +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/agent-Z45KTLTP.js +0 -61
- package/dist-cli/chunks/auto-bootstrap-YZ6C6VYO.js +0 -2
- package/dist-cli/chunks/beta-WXH75XUE.js +0 -2
- package/dist-cli/chunks/chunk-6O64VUC6.js +0 -2
- package/dist-cli/chunks/chunk-GFVC6EEB.js +0 -1
- package/dist-cli/chunks/chunk-JE4JBSNJ.js +0 -119
- package/dist-cli/chunks/chunk-KR36VJSN.js +0 -1
- package/dist-cli/chunks/chunk-SVFSMAZN.js +0 -2
- package/dist-cli/chunks/chunk-TEMZK6Q2.js +0 -1
- package/dist-cli/chunks/cli-version-5LGQQE5P.js +0 -2
- package/dist-cli/chunks/daemon-ONX5ZBXF.js +0 -83
- package/dist-cli/chunks/demo-app-registry-LWT6JLU6.js +0 -2
- package/dist-cli/chunks/drivers-NRWUJJCD.js +0 -2
- package/dist-cli/chunks/flow-2MB7HINM.js +0 -2
- package/dist-cli/chunks/install-O67RTYCX.js +0 -2
- package/dist-cli/chunks/runtime-DGDQ7NVY.js +0 -2
- package/dist-cli/chunks/setup-repo-DETS5ZJT.js +0 -2
- package/dist-cli/chunks/store-QOXJKJUZ.js +0 -2
- package/dist-cli/chunks/telemetry-74LX7WG4.js +0 -2
- package/dist-cli/chunks/upload-YOMMYESV.js +0 -2
- package/dist-cli/chunks/web-OTALJKK5.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{A as y,L as x,y as F,z as T}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{A as y,L as x,y as F,z as T}from"./chunk-RVBRL2SF.js";import{c as S,e as N}from"./chunk-SYTOGXRD.js";import{b as k}from"./chunk-CZMDG33T.js";import"./chunk-3IX7MYA5.js";import"./chunk-TBHAELOL.js";import"./chunk-CZLZY2L7.js";function _(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--since"&&t+1<n.length){e.push(t,t+1);let s=n[t+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let a=Number(l[1]),m=l[2]??"ms",$=m==="s"?a*1e3:m==="m"?a*6e4:a;return{since:Date.now()-$,consumed:e}}let o=Number(s);if(Number.isFinite(o)&&o>1e12)return{since:o,consumed:e}}return{consumed:e}}function K(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--kinds"&&t+1<n.length)return e.push(t,t+1),{kinds:n[t+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:e};return{consumed:e}}function O(n){let e=[];for(let t=0;t<n.length;t++)if(n[t]==="--limit"&&t+1<n.length){e.push(t,t+1);let s=Number(n[t+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:e}}return{consumed:e}}function j(n,e){if(e===null)return new Date(n).toLocaleTimeString();let t=(n-e)/1e3;return`${t>=0?"+":""}${t.toFixed(2)}s`}function B(n,e){switch(n){case"app-launch":return e.phase==="launch"?`launch ${e.appName??e.toAppId??""}`:`dismiss ${e.appName??e.fromAppId??""} \u2192 ${e.toAppId??""}`;case"toast":return`"${e.text??""}"${e.durationMs?` (${e.durationMs}ms)`:""}`;case"keyboard":return`${e.phase??"?"}${e.heightPx?` h=${e.heightPx}`:""}${e.mode?` ${e.mode}`:""}`;case"screen":return`${e.phase??"?"} ${e.name??e.activeName??""}`;case"route":return`${e.phase??"?"} ${e.path??e.pathname??""}`;case"alert":case"actionsheet":case"picker":return`${e.phase??"?"} ${e.title??e.message??""}`;case"notification":return`${e.title??""}${e.body?` \u2014 ${e.body}`:""}`;case"fetch":return`${e.method??"GET"} ${e.url??""}${e.status?` -> ${e.status}`:""}`;case"console":return`${e.level??"log"}: ${(e.message??"").toString().slice(0,120)}`;case"shell":return`${e.event??e.type??e.phase??""}`;case"scroll":return`${e.phase??"?"} ${e.target??""}`;case"gesture":return`${e.phase??"?"} ${e.type??""}`;case"text-input":return`${e.phase??"?"}${e.value!==void 0?` "${String(e.value).slice(0,40)}"`:""}`;case"layout":return`${e.kind??"?"} ${e.testID??e.type??""}${e.skipped?` skipped:${e.reason??"unknown"}`:""}`;case"react-commit":{let t=e.slowest;return`${e.fiberCount??"?"} fibers ${e.durationMs??"?"}ms${t?.displayName?` \xB7 ${t.displayName} ${t.durationMs??"?"}ms`:""}`}case"reanimated":case"animation":return`${e.kind??""} ${e.target??""}${e.durationMs?` ${e.durationMs}ms`:""}`}}function A(n,e){let t=j(n.t,e).padStart(8),s=n.context.padEnd(6),l=`[${n.kind}]`.padEnd(15),o="",a=n.data;return a&&typeof a=="object"&&(o=B(n.kind,a)),` ${t} ${s} ${l} ${o}`}function M(n){let e=[],t={label:"initial state",events:[],startedAt:n[0]?.t??null};e.push(t);for(let s of n)if(t.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,o=l?.phase;if(!o||o==="enter"||o==="appear"||o==="active"){let a=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;e.length===1&&t.events.length===1?t.label=`${s.kind}: ${a}`:(t={label:`${s.kind}: ${a}`,events:[],startedAt:s.t},e.push(t))}}return e}async function J(n,e){let t=S(n,{port:e.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim what-happened \u2014 show recent events from the semantic timeline
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{d as i}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{d as i}from"./chunk-E4JGW3W5.js";import{d as n}from"./chunk-6ZY6ZQCR.js";import"./chunk-TBHAELOL.js";import"./chunk-CZLZY2L7.js";async function u(){let o=i();if(o||(console.log(" not signed in"),console.log(" set SOOTSIM_API_KEY=sk_sootsim_\u2026 or run `sootsim login`"),process.exit(1)),o.kind==="api-key"){let r=`${o.secret.slice(0,14)}\u2026`,t=o.source==="env"?"SOOTSIM_API_KEY env var":"saved key (~/.config/sootsim/credentials.json)";console.log(` api key ${r}`),console.log(` source: ${t}`);return}if(o.kind==="github"){console.log(` github token (${o.source})`),console.log(` repo: ${o.repoId}`);return}let e=await n(),s=e?.user;console.log(` ${s?.email||s?.name||s?.id||"signed in"}`),console.log(` origin: ${e?.origin??o.origin}`),e?.updatedAt&&console.log(` updated: ${e.updatedAt}`)}export{u as runWhoami};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/home-paths.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/metro.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/profiles.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/render-mode.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/vite-base.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.69 | (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,61 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.67 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a as y,b as $,c as b,d as l,e as E,g as A,h as j,j as S,m as I,n as T,o as x,p as g,q as k,r as D}from"./chunk-67566AJS.js";import"./chunk-F4RC4AOY.js";import"./chunk-6O64VUC6.js";import"./chunk-HW5YHSIE.js";import"./chunk-TLTS533S.js";import w from"node:fs";import d from"node:path";import{spawn as N}from"node:child_process";import U from"node:net";import{WebSocket as O}from"ws";var c=class extends Error{code;constructor(e,t){super(e),this.name="AgentDaemonError",this.code=t}},f=class{ws;port;commandTimeoutMs;ready;closed=!1;nextId=1;pending=new Map;eventListeners=new Set;statusListeners=new Set;disconnectListeners=new Set;constructor(e={}){this.port=e.port??7668,this.commandTimeoutMs=e.commandTimeoutMs??15e3,this.ws=new O(`ws://localhost:${this.port}`),this.ready=new Promise((t,s)=>{let r=()=>{this.ws.off("error",o),t()},o=i=>{this.ws.off("open",r),s(new c(`could not connect to sootsim daemon on port ${this.port}: ${i.message}`,"NO_DAEMON"))};this.ws.once("open",r),this.ws.once("error",o)}),this.ws.on("message",t=>this.handleMessage(t)),this.ws.on("close",()=>this.handleClose()),this.ws.on("error",()=>{})}async waitReady(){return this.ready}async listProjects(){return this.send("agent:list-projects")}async upsertProject(e){return this.send("agent:upsert-project",{input:e})}async deleteProject(e){return this.send("agent:delete-project",{projectId:e})}async autoAttachForUrl(e){return this.send("agent:auto-attach-for-url",{input:e})}async listSessions(e){return this.send("agent:list-sessions",{projectId:e})}async startSession(e){return this.send("agent:start-session",{input:e})}async sendPrompt(e,t){return this.send("agent:send-prompt",{sessionId:e,prompt:t})}async endSession(e){return this.send("agent:end-session",{sessionId:e})}async getTranscript(e){return this.send("agent:get-transcript",{sessionId:e})}async getPaths(){return this.send("agent:get-paths")}async subscribeEvents(e){return this.send("agent:subscribe-events",{sessionId:e})}async unsubscribeEvents(e){return this.send("agent:unsubscribe-events",{sessionId:e})}onAgentEvent(e){return this.eventListeners.add(e),()=>this.eventListeners.delete(e)}onSessionStatusChange(e){return this.statusListeners.add(e),()=>this.statusListeners.delete(e)}onDisconnect(e){return this.disconnectListeners.add(e),()=>this.disconnectListeners.delete(e)}close(){if(!this.closed){this.closed=!0;try{this.ws.close()}catch{}}}async send(e,t={}){if(await this.ready,this.closed||this.ws.readyState!==O.OPEN)throw new c("daemon connection is closed","NO_DAEMON");let s=this.nextId++;return new Promise((r,o)=>{let i=setTimeout(()=>{this.pending.delete(s),o(new c(`${e} timed out after ${Math.round(this.commandTimeoutMs/1e3)}s`,"TIMEOUT"))},this.commandTimeoutMs);this.pending.set(s,{resolve:r,reject:o,timer:i});try{this.ws.send(JSON.stringify({id:s,type:e,...t}))}catch(a){clearTimeout(i),this.pending.delete(s),o(a instanceof Error?a:new Error(String(a)))}})}handleMessage(e){let t;try{t=JSON.parse(String(e))}catch{return}if(!t||typeof t!="object")return;if(t.type==="agent:event"){for(let r of this.eventListeners)try{r({sessionId:t.sessionId,event:t.event})}catch{}return}if(t.type==="agent:session-status"){for(let r of this.statusListeners)try{r(t.session)}catch{}return}if(typeof t.id!="number")return;let s=this.pending.get(t.id);s&&(this.pending.delete(t.id),clearTimeout(s.timer),t.error?s.reject(new c(t.error,t.code)):s.resolve(t.result))}handleClose(){if(!this.closed){this.closed=!0;for(let[,e]of this.pending)clearTimeout(e.timer),e.reject(new c("daemon disconnected","DISCONNECT"));this.pending.clear();for(let e of this.disconnectListeners)try{e()}catch{}}}};function R(n=7668,e=400){return new Promise(t=>{let s=new U.Socket,r=!1,o=i=>{r||(r=!0,s.destroy(),t(i))};s.setTimeout(e),s.once("connect",()=>o(!0)),s.once("timeout",()=>o(!1)),s.once("error",()=>o(!1)),s.connect(n,"127.0.0.1")})}async function _(n={}){let e=n.port??7668;if(await R(e))return{alreadyRunning:!0};let{cmd:t,prefixArgs:s}=D(),r=[...s,"server","--quiet"];e!==7668&&r.push("--port",String(e));let o=N(t,r,{detached:!0,stdio:"ignore",env:process.env,cwd:process.cwd()});o.unref();let i=Date.now()+(n.startupTimeoutMs??5e3);for(;Date.now()<i;){if(await R(e))return{alreadyRunning:!1,pid:o.pid};await new Promise(a=>setTimeout(a,100))}throw new c(`spawned sootsim daemon on port ${e} but it did not come up in time. run \`sootsim server\` manually to diagnose.`,"SPAWN_TIMEOUT")}async function h(n={}){await _({port:n.port,startupTimeoutMs:n.startupTimeoutMs});let e=new f(n);try{await e.waitReady()}catch(t){throw e.close(),t}return e}async function ue(n){let[e,...t]=n;try{switch(e){case void 0:case"--help":case"-h":case"help":return C(),0;case"attach":return await F(t);case"projects":return await B();case"project":return await W(t);case"sessions":return await J(t);case"start":return await V(t);case"prompt":return await q(t);case"watch":return await G(t);case"transcript":return await H(t);case"end":return await K(t);case"paths":return await z();default:return process.stderr.write(`unknown agent subcommand: ${e}
|
|
3
|
-
`),C(),2}}catch(s){if(s instanceof c)return process.stderr.write(`${s.message}
|
|
4
|
-
`),1;throw s}}async function v(n){let e=await h({clientLabel:"sootsim-agent-cli"});try{return await n(e)}finally{e.close()}}function C(){process.stdout.write(`sootsim agent \u2014 attached projects + local agent sessions
|
|
5
|
-
|
|
6
|
-
attach <dir> [--name X] [--provider codex|claude]
|
|
7
|
-
projects list attached projects
|
|
8
|
-
project show <id> print full detail for one project
|
|
9
|
-
project remove <id> delete a project + its sessions
|
|
10
|
-
sessions [--project <id>] [--all]
|
|
11
|
-
list agent sessions (default: active only)
|
|
12
|
-
start <projectId> [--provider codex|claude]
|
|
13
|
-
spawn a wrapper session (detached)
|
|
14
|
-
prompt <sessionId> "<text>" enqueue a prompt on the session
|
|
15
|
-
watch <sessionId> stream events.out pretty-printed
|
|
16
|
-
transcript <sessionId> cat the raw transcript file
|
|
17
|
-
end <sessionId> stop the wrapper + mark session ended
|
|
18
|
-
paths print userData + state file locations
|
|
19
|
-
`)}function P(n,e){let t={},s=[];for(let r=0;r<n.length;r++){let o=n[r],i=e[o];i==="value"?(t[o]=n[r+1]??"",r++):i==="bool"?t[o]=!0:s.push(o)}return{flags:t,positional:s}}function L(n,e="codex"){return n==="codex"||n==="claude"?n:e}async function F(n){let{flags:e,positional:t}=P(n,{"--name":"value","--provider":"value"}),s=t[0];if(!s)return process.stderr.write(`usage: sootsim agent attach <dir> [--name X] [--provider codex|claude]
|
|
20
|
-
`),2;let r=d.resolve(s);if(!w.existsSync(r))return process.stderr.write(`directory does not exist: ${r}
|
|
21
|
-
`),1;let o=b({cwd:r,name:e["--name"]||d.basename(r),preferredProvider:L(e["--provider"]),sourceRoots:[r]});return process.stdout.write(`\u2713 attached "${o.name}" (id: ${o.id})
|
|
22
|
-
cwd: ${o.cwd}
|
|
23
|
-
framework: ${o.framework}
|
|
24
|
-
preferred provider: ${o.preferredProvider}
|
|
25
|
-
`),0}async function B(){let n=[...E()].sort((t,s)=>s.updatedAt-t.updatedAt);if(n.length===0)return process.stdout.write("no attached projects yet. try `sootsim agent attach <dir>`.\n"),0;let e=`${"ID".padEnd(18)} ${"NAME".padEnd(20)} ${"FRAMEWORK".padEnd(10)} ${"PROVIDER".padEnd(8)} ${"7D COST".padEnd(10)} CWD
|
|
26
|
-
`;process.stdout.write(e);for(let t of n){let s=A(t),r=s>0?`$${s.toFixed(2)}`:"\u2014";process.stdout.write(`${t.id.padEnd(18)} ${p(t.name,20).padEnd(20)} ${t.framework.padEnd(10)} ${t.preferredProvider.padEnd(8)} ${r.padEnd(10)} ${t.cwd}
|
|
27
|
-
`)}return 0}async function W(n){let[e,t]=n;if(e==="show"){if(!t)return process.stderr.write(`usage: sootsim agent project show <id>
|
|
28
|
-
`),2;let s=l(t);return s?(process.stdout.write(JSON.stringify(s,null,2)+`
|
|
29
|
-
`),0):(process.stderr.write(`no project with id=${t}
|
|
30
|
-
`),1)}return e==="remove"?t?(j(t),process.stdout.write(`\u2713 removed project ${t}
|
|
31
|
-
`),0):(process.stderr.write(`usage: sootsim agent project remove <id>
|
|
32
|
-
`),2):(process.stderr.write(`usage: sootsim agent project [show|remove] <id>
|
|
33
|
-
`),2)}async function J(n){let{flags:e}=P(n,{"--project":"value","--all":"bool"}),t=e["--project"]||void 0,s=e["--all"]===!0,r=S(t);if(s||(r=r.filter(i=>i.status!=="ended")),r=r.sort((i,a)=>a.lastSeenAt-i.lastSeenAt),r.length===0)return process.stdout.write(s?`no sessions.
|
|
34
|
-
`:`no active sessions. pass --all to include ended.
|
|
35
|
-
`),0;let o=`${"SESSION".padEnd(26)} ${"PROJECT".padEnd(18)} ${"PROVIDER".padEnd(8)} ${"STATUS".padEnd(16)} ${"ALIVE".padEnd(5)} LAST PROMPT
|
|
36
|
-
`;process.stdout.write(o);for(let i of r){let a=k(i.wrapperPid,i.id)?"yes":"no",m=i.lastPrompt?p(i.lastPrompt,40):"";process.stdout.write(`${M(i.id).padEnd(26)} ${M(i.projectId).padEnd(18)} ${i.provider.padEnd(8)} ${i.status.padEnd(16)} ${a.padEnd(5)} ${m}
|
|
37
|
-
`)}return 0}async function V(n){let{flags:e,positional:t}=P(n,{"--provider":"value","--codex-bin":"value","--claude-bin":"value","--fresh-thread":"bool"}),s=t[0];if(!s)return process.stderr.write(`usage: sootsim agent start <projectId> [--provider codex|claude] [--fresh-thread]
|
|
38
|
-
`),2;let r=await v(i=>i.startSession({projectId:s,provider:L(e["--provider"],void 0)||void 0,codexBin:e["--codex-bin"]||void 0,claudeBin:e["--claude-bin"]||void 0,freshThread:e["--fresh-thread"]===!0})),o=l(r.session.projectId);return process.stdout.write(`\u2713 session ${r.session.id} started
|
|
39
|
-
project: ${o.name} (${o.id})
|
|
40
|
-
provider: ${r.session.provider}
|
|
41
|
-
pid: ${r.wrapperPid}
|
|
42
|
-
prompt with: sootsim agent prompt ${r.session.id} "<text>"
|
|
43
|
-
watch events: sootsim agent watch ${r.session.id}
|
|
44
|
-
`),0}async function q(n){let[e,...t]=n,s=t.join(" ");return!e||!s?(process.stderr.write(`usage: sootsim agent prompt <sessionId> "<text>"
|
|
45
|
-
`),2):(await v(r=>r.sendPrompt(e,{text:s})),process.stdout.write(`\u2713 prompt sent to ${e}
|
|
46
|
-
`),0)}async function G(n){let e=n[0];if(!e)return process.stderr.write(`usage: sootsim agent watch <sessionId>
|
|
47
|
-
`),2;process.stdout.write(`watching ${e}
|
|
48
|
-
---
|
|
49
|
-
`);let t=await h({clientLabel:"sootsim-agent-watch"}),s,r=new Promise(a=>{s=a}),o=t.onAgentEvent(({sessionId:a,event:m})=>{a===e&&process.stdout.write(X(m)+`
|
|
50
|
-
`)}),i=t.onDisconnect(()=>{process.stderr.write(`
|
|
51
|
-
[sootsim] daemon disconnected; exiting watch.
|
|
52
|
-
`),s(1)});try{await t.subscribeEvents(e)}catch(a){throw o(),i(),t.close(),a}return process.on("SIGINT",()=>{o(),i(),t.unsubscribeEvents(e).catch(()=>{}),t.close(),s(130)}),r}function X(n){let e=Q(n.ts);switch(n.type){case"ready":return`[${e}] ready ${n.provider} @ ${n.cwd}`;case"prompt-received":return`[${e}] prompt "${p(n.text,120)}"`;case"turn-started":return`[${e}] turn-started ${n.turnId??""}`;case"turn-message":return`[${e}] turn-message ${n.delta.replace(/\s+$/,"")}`;case"turn-reasoning":return`[${e}] turn-reasoning ${p(n.delta,200)}`;case"tool-call":return`[${e}] tool-call ${n.name}`;case"file-edited":return`[${e}] file-edited ${n.kind.padEnd(6)} ${n.path}`;case"turn-completed":return`[${e}] turn-completed ${n.durationMs}ms files=${n.filesTouched.length}`;case"approval-needed":return`[${e}] approval ${n.kind}`;case"error":return`[${e}] error ${n.message}`;case"exited":return`[${e}] exited code=${n.code}`;case"file-diff-delta":return`[${e}] file-diff-delta ${n.path}`;case"turn-plan":return`[${e}] turn-plan steps=${n.steps.length}`;default:return`[${e}] ${n.type}`}}async function H(n){let e=n[0];if(!e)return process.stderr.write(`usage: sootsim agent transcript <sessionId>
|
|
53
|
-
`),2;let t=g(e);return w.existsSync(t)?(process.stdout.write(w.readFileSync(t,"utf8")),0):(process.stderr.write(`transcript not found: ${t}
|
|
54
|
-
`),1)}async function K(n){let e=n[0];return e?(await v(t=>t.endSession(e)),process.stdout.write(`\u2713 ended session ${e}
|
|
55
|
-
`),0):(process.stderr.write(`usage: sootsim agent end <sessionId>
|
|
56
|
-
`),2)}async function z(){let n=$();return process.stdout.write(`userData: ${n}
|
|
57
|
-
state: ${d.join(n,"attached-projects.json")}
|
|
58
|
-
sessions: ${d.join(n,"sessions")}
|
|
59
|
-
transcripts: ${d.join(n,"transcripts")}
|
|
60
|
-
locks: ${d.join(n,"locks")}
|
|
61
|
-
`),0}function p(n,e){return n.length<=e?n:n.slice(0,e-1)+"\u2026"}function M(n){return n.length>14?`${n.slice(0,14)}\u2026`:n}function Q(n){return new Date(n).toISOString().replace("T"," ").slice(0,19)}var pe={sessionDir:I,promptFifoPath:T,eventsFifoPath:x,transcriptPath:g,parseAgentEventLine:y};export{pe as __internals,ue as runAgentCommand};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.67 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import{a,b,c,d}from"./chunk-N4JRDJMN.js";import"./chunk-U47AHSGE.js";import"./chunk-IB4BRND4.js";import"./chunk-6O64VUC6.js";import"./chunk-HW5YHSIE.js";import"./chunk-TLTS533S.js";export{c as ensureDaemonRunning,a as ensureRuntimeInstalled,d as ensureSootsimReady,b as resolveBootstrapPort};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! sootsim v0.1.67 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|