sootsim 0.1.173 → 0.1.175
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 +3 -3
- package/dist-cli/chunks/{agent-C2E22ESN.js → agent-A4WFJEFV.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-IQUZ3DT6.js → agent-wrapper-EOZBE6UT.js} +2 -2
- package/dist-cli/chunks/{app-fonts-EL3GCMOF.js → app-fonts-H2I7IV7N.js} +2 -2
- package/dist-cli/chunks/{assert-UFDQWVKU.js → assert-36QXQUCE.js} +2 -2
- package/dist-cli/chunks/beta-7FRVMDBH.js +2 -0
- package/dist-cli/chunks/{camera-YR4LF62J.js → camera-7HK2Y3PY.js} +2 -2
- package/dist-cli/chunks/{chunk-7O64AC44.js → chunk-2J67UJXT.js} +1 -1
- package/dist-cli/chunks/{chunk-M2GYHZES.js → chunk-2QTAUBZX.js} +3 -3
- package/dist-cli/chunks/chunk-3G5EE3ST.js +2 -0
- package/dist-cli/chunks/{chunk-7LCS6UB7.js → chunk-3SUIAUIY.js} +1 -1
- package/dist-cli/chunks/{chunk-GTIQVAJP.js → chunk-46S56FJJ.js} +1 -1
- package/dist-cli/chunks/{chunk-4NEHOYQH.js → chunk-4PQ36DTJ.js} +3 -3
- package/dist-cli/chunks/{chunk-KHMFZHHP.js → chunk-4UATZVHM.js} +2 -2
- package/dist-cli/chunks/{chunk-MJQCN4PS.js → chunk-4UGD4KJM.js} +2 -2
- package/dist-cli/chunks/{chunk-BUCN4NOE.js → chunk-5D4PHINP.js} +1 -1
- package/dist-cli/chunks/{chunk-RXB7KMHB.js → chunk-5QLWXLML.js} +2 -2
- package/dist-cli/chunks/{chunk-HGUPRH7F.js → chunk-7F2LH7U5.js} +2 -2
- package/dist-cli/chunks/{chunk-TYCNPLOA.js → chunk-DV6SWCY7.js} +1 -1
- package/dist-cli/chunks/{chunk-2IUYPQC6.js → chunk-EEIUS5AS.js} +2 -2
- package/dist-cli/chunks/{chunk-CO42HSYV.js → chunk-GJQGKFLY.js} +1 -1
- package/dist-cli/chunks/{chunk-FLKV4YHL.js → chunk-H2J4Z7LY.js} +2 -2
- package/dist-cli/chunks/{chunk-KBTADP77.js → chunk-HCKTFQLK.js} +1 -1
- package/dist-cli/chunks/{chunk-I3UUCR2A.js → chunk-HWJ52K4J.js} +1 -1
- package/dist-cli/chunks/{chunk-5RLVAUSR.js → chunk-HWUFW3IP.js} +2 -2
- package/dist-cli/chunks/{chunk-6PQ4KSCP.js → chunk-IISA6UXR.js} +1 -1
- package/dist-cli/chunks/{chunk-QYHBVPQH.js → chunk-IKJSGKUB.js} +2 -2
- package/dist-cli/chunks/{chunk-VQQVVMNO.js → chunk-JCQEG4R6.js} +2 -2
- package/dist-cli/chunks/{chunk-LOP35MNF.js → chunk-KSF72FPP.js} +2 -2
- package/dist-cli/chunks/{chunk-FX3YWIDK.js → chunk-LYZXARZO.js} +2 -2
- package/dist-cli/chunks/{chunk-MPJX3BCR.js → chunk-MLLINRL2.js} +1 -1
- package/dist-cli/chunks/{chunk-A43ZSZMJ.js → chunk-NPZPBSZD.js} +1 -1
- package/dist-cli/chunks/chunk-ODISDSXU.js +1 -0
- package/dist-cli/chunks/{chunk-HSACKNHS.js → chunk-OMJ2DTQJ.js} +2 -2
- package/dist-cli/chunks/{chunk-QGQSKDXQ.js → chunk-P2WO5LMI.js} +2 -2
- package/dist-cli/chunks/{chunk-ODWORXXD.js → chunk-QK76RK6J.js} +1 -1
- package/dist-cli/chunks/{chunk-6D2B6YM5.js → chunk-RAESCYIA.js} +1 -1
- package/dist-cli/chunks/{chunk-N7HUNHH6.js → chunk-RCPMRHTK.js} +1 -1
- package/dist-cli/chunks/{chunk-WS4M3ANJ.js → chunk-SV3SRWN5.js} +1 -1
- package/dist-cli/chunks/{chunk-WYGYIQOE.js → chunk-UMJDCX2P.js} +2 -2
- package/dist-cli/chunks/chunk-URQSBUTU.js +1 -0
- package/dist-cli/chunks/{chunk-DFP5BKYL.js → chunk-UXZRHPX6.js} +2 -2
- package/dist-cli/chunks/{chunk-X4A5YX56.js → chunk-V7AGBG2P.js} +2 -2
- package/dist-cli/chunks/{chunk-AOFD6E2Z.js → chunk-VW643HG5.js} +2 -2
- package/dist-cli/chunks/{chunk-HYCJ7HUJ.js → chunk-WM73SGMM.js} +2 -2
- package/dist-cli/chunks/{chunk-3N4T6ZCZ.js → chunk-XBK3XAKL.js} +2 -2
- package/dist-cli/chunks/{chunk-MPVUKE2L.js → chunk-XDDO46ZW.js} +1 -1
- package/dist-cli/chunks/{chunk-TAFDTRBK.js → chunk-Y3OHYOFS.js} +2 -2
- package/dist-cli/chunks/{chunk-PPDVP56P.js → chunk-YMBQBKKA.js} +12 -12
- package/dist-cli/chunks/{chunk-Q6VYTVCL.js → chunk-ZG2A6LCL.js} +2 -2
- package/dist-cli/chunks/{chunk-D5MW3FJE.js → chunk-ZPQY5DBY.js} +2 -2
- package/dist-cli/chunks/{chunk-HTCJBVQD.js → chunk-ZZWAHZ37.js} +1 -1
- package/dist-cli/chunks/cli-version-HCYSKPJO.js +2 -0
- package/dist-cli/chunks/{compat-K733FE26.js → compat-KWM6HXJD.js} +3 -3
- package/dist-cli/chunks/{control-PAVODRG5.js → control-PVZRPH57.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-OGUUHMAT.js → cpu-profile-3YLLRNVG.js} +2 -2
- package/dist-cli/chunks/daemon-2DT4QAJ4.js +2 -0
- package/dist-cli/chunks/{debug-7DNEARGS.js → debug-TD4EVFT7.js} +3 -3
- package/dist-cli/chunks/{detox-JAIVH44U.js → detox-S7M5WN3L.js} +2 -2
- package/dist-cli/chunks/{device-DLTVU6ZI.js → device-WR7GA4RN.js} +2 -2
- package/dist-cli/chunks/{diagnose-3D5ISUJP.js → diagnose-JZMNR25X.js} +2 -2
- package/dist-cli/chunks/drivers-UMQTPEMU.js +2 -0
- package/dist-cli/chunks/{electron-HYOT74T7.js → electron-V2YDDVKJ.js} +3 -3
- package/dist-cli/chunks/flow-CKXTFJJ7.js +2 -0
- package/dist-cli/chunks/help-OEMLUQMD.js +2 -0
- package/dist-cli/chunks/{hints-5RUWD6KL.js → hints-OK373YOJ.js} +2 -2
- package/dist-cli/chunks/{home-paths-YXPZJSA5.js → home-paths-IFY5UTLL.js} +2 -2
- package/dist-cli/chunks/inspect-LRIJ7MQT.js +987 -0
- package/dist-cli/chunks/{install-desktop-AXOXLY57.js → install-desktop-ESQL2Q2T.js} +3 -3
- package/dist-cli/chunks/{keys-OS55YM3T.js → keys-IHG2YEL3.js} +2 -2
- package/dist-cli/chunks/{login-CE3ATU7H.js → login-CYIWYJGG.js} +4 -4
- package/dist-cli/chunks/{logout-55RMHZIG.js → logout-NALFLZWI.js} +2 -2
- package/dist-cli/chunks/{maestro-BWH4Y3OO.js → maestro-QKSXVPWG.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-CIEW2ET7.js +2 -0
- package/dist-cli/chunks/{preview-YZCH5SS4.js → preview-XCQGBN2I.js} +2 -2
- package/dist-cli/chunks/{profile-Q6CC3BOS.js → profile-RDAPVU7K.js} +2 -2
- package/dist-cli/chunks/{react-43Y6I63U.js → react-MM373YNE.js} +2 -2
- package/dist-cli/chunks/{record-OAW5IIQH.js → record-SQA376Z7.js} +4 -4
- package/dist-cli/chunks/runtime-CUNVH66R.js +2 -0
- package/dist-cli/chunks/{screenshot-JEXBD4GJ.js → screenshot-FCKW6JV6.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-AOS3ROPL.js → screenshot-mode-QVRUJXZ3.js} +2 -2
- package/dist-cli/chunks/{screenshots-CYTHIJ5W.js → screenshots-ITBCSBZS.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-YAEYGEHY.js → screenshots-capture-H4EAYFH3.js} +2 -2
- package/dist-cli/chunks/{serve-OYNG5IHK.js → serve-3GHYSGJR.js} +10 -10
- package/dist-cli/chunks/{setup-6O7GJF73.js → setup-ME5SRHWD.js} +2 -2
- package/dist-cli/chunks/skills-E5JE3SAI.js +48 -0
- package/dist-cli/chunks/{slides-DSY2GHZZ.js → slides-D37ML4LI.js} +2 -2
- package/dist-cli/chunks/store-UW5HH6DW.js +2 -0
- package/dist-cli/chunks/telemetry-KSBNWXNE.js +2 -0
- package/dist-cli/chunks/{test-DVS4LMCY.js → test-CWWQJG5K.js} +3 -3
- package/dist-cli/chunks/{three-mode-6KCLSSPS.js → three-mode-WESGARG5.js} +2 -2
- package/dist-cli/chunks/{timeline-ZWPBF46N.js → timeline-RUVZASG4.js} +2 -2
- package/dist-cli/chunks/{upgrade-ZV77D7SC.js → upgrade-DKWD6TSY.js} +2 -2
- package/dist-cli/chunks/upload-LYANGCPB.js +2 -0
- package/dist-cli/chunks/{version-WAJ3YX4U.js → version-G45RLONC.js} +2 -2
- package/dist-cli/chunks/{web-KVDTMF6L.js → web-X2HCJQQE.js} +2 -2
- package/dist-cli/chunks/{what-happened-GUIQ3GXK.js → what-happened-5DBVOXKC.js} +2 -2
- package/dist-cli/chunks/{whoami-U6J5UL6X.js → whoami-ZDT3RQOC.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/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 +3 -2
- 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 +28 -1
- package/dist-lib/sdk.mjs +27 -1
- package/dist-lib/skills.cjs +4 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/skills/soot.md +1 -1
- package/skills/sootsim-debug.md +23 -1
- package/src/host/bridge-host.ts +7 -4
- package/dist-cli/chunks/beta-3VFRMFCE.js +0 -2
- package/dist-cli/chunks/chunk-4UNCEOKE.js +0 -2
- package/dist-cli/chunks/chunk-F2VINQ62.js +0 -1
- package/dist-cli/chunks/chunk-M4TI3GFJ.js +0 -1
- package/dist-cli/chunks/cli-version-7EPWQ5XZ.js +0 -2
- package/dist-cli/chunks/daemon-ITK6NXMP.js +0 -2
- package/dist-cli/chunks/drivers-VFK56EQO.js +0 -2
- package/dist-cli/chunks/flow-AHIM2QYC.js +0 -2
- package/dist-cli/chunks/help-7JOCVVN6.js +0 -2
- package/dist-cli/chunks/inspect-D476ZLEK.js +0 -978
- package/dist-cli/chunks/optional-demo-registry-4IEF2MIB.js +0 -2
- package/dist-cli/chunks/runtime-C2EIPLM6.js +0 -2
- package/dist-cli/chunks/skills-XJOVDRCF.js +0 -40
- package/dist-cli/chunks/store-DSH2KPUH.js +0 -2
- package/dist-cli/chunks/telemetry-PJHHQYHR.js +0 -2
- package/dist-cli/chunks/upload-STOKBIDT.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as M,c as $}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as M,c as $}from"./chunk-XBK3XAKL.js";import{a as j,b as D}from"./chunk-5D4PHINP.js";import{a as P}from"./chunk-Y3OHYOFS.js";import"./chunk-JCQEG4R6.js";import"./chunk-5QLWXLML.js";import"./chunk-HWUFW3IP.js";import"./chunk-DV6SWCY7.js";import"./chunk-UMJDCX2P.js";import"./chunk-7F2LH7U5.js";import"./chunk-3G5EE3ST.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import{I as b,K as v}from"./chunk-3SUIAUIY.js";import"./chunk-SV3SRWN5.js";import"./chunk-XDDO46ZW.js";import"./chunk-QK76RK6J.js";import"./chunk-ZZWAHZ37.js";import{execSync as H}from"child_process";import{existsSync as g,readFileSync as I,writeFileSync as w}from"fs";import{join as K,relative as h,resolve as m}from"path";import{existsSync as c,readFileSync as d,readdirSync as W,statSync as A}from"fs";import{basename as N,dirname as V,join as i}from"path";function O(e){let o=e;for(;;){if(c(i(o,"turbo.json"))||c(i(o,"nx.json"))||c(i(o,"lerna.json"))||c(i(o,"pnpm-workspace.yaml")))return o;let n=i(o,"package.json");if(c(n))try{if(JSON.parse(d(n,"utf8")).workspaces)return o}catch{}let t=V(o);if(t===o)break;o=t}return e}function J(e){return c(i(e,"bun.lock"))||c(i(e,"bun.lockb"))?"bun":c(i(e,"pnpm-lock.yaml"))?"pnpm":c(i(e,"yarn.lock"))?"yarn":"npm"}function B(e){if(c(i(e,"turbo.json")))return"turbo";if(c(i(e,"nx.json")))return"nx";if(c(i(e,"pnpm-workspace.yaml")))return"pnpm";let o=i(e,"package.json");if(c(o))try{if(JSON.parse(d(o,"utf8")).workspaces)return"npm-workspaces"}catch{}return"single"}function G(e){return e.one?"one":e.expo?"expo":e["react-native"]?"bare":"unknown"}function S(e){let o=i(e,"package.json");if(!c(o))return null;let n;try{n=JSON.parse(d(o,"utf8"))}catch{return null}let t={...n.dependencies,...n.devDependencies},r=G(t);return r==="unknown"?null:{dir:e,name:n.name||N(e),framework:r,hasViteConfig:c(i(e,"vite.config.ts"))||c(i(e,"vite.config.js")),hasMetroConfig:c(i(e,"metro.config.js"))||c(i(e,"metro.config.ts")),hasSootsimDependency:!!t.sootsim,devCommand:n.scripts?.dev||null}}function U(e){let o=[],n=i(e,"pnpm-workspace.yaml");if(c(n)){let s=d(n,"utf8").match(/packages:\s*\n((?:\s+-\s+.+\n?)+)/);if(s){let p=s[1].split(`
|
|
3
3
|
`).filter(Boolean);for(let u of p){let a=u.replace(/^\s*-\s*['"]?/,"").replace(/['"]?\s*$/,"");a&&o.push(...C(e,a))}}return o}let t=i(e,"package.json");if(c(t))try{let r=JSON.parse(d(t,"utf8")),s=Array.isArray(r.workspaces)?r.workspaces:r.workspaces?.packages||[];for(let p of s)o.push(...C(e,p))}catch{}return o}function C(e,o){let n=o.replace(/\/\*\*?$/,"").replace(/\*$/,""),t=i(e,n);if(!c(t))return[];try{return W(t).map(s=>i(t,s)).filter(s=>{try{return A(s).isDirectory()&&c(i(s,"package.json"))}catch{return!1}})}catch{return[]}}function _(e){let o=B(e),n=J(e);if(o==="single"){let p=S(e);return{root:e,type:o,packageManager:n,apps:p?[p]:[]}}let t=U(e),r=[],s=S(e);s&&r.push(s);for(let p of t){if(p===e)continue;let u=S(p);u&&r.push(u)}return{root:e,type:o,packageManager:n,apps:r}}function R(e){switch(e){case"bun":return"bun add -d sootsim";case"pnpm":return"pnpm add -D sootsim";case"yarn":return"yarn add -D sootsim";case"npm":return"npm install -D sootsim"}}async function xe(e){(e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
4
4
|
sootsim setup \u2014 set up this machine and, optionally, this repo
|
|
5
5
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-ZZWAHZ37.js";import*as r from"fs";import*as x from"os";import*as a from"path";import{fileURLToPath as p}from"url";function L(){try{let t=p(import.meta.resolve("sootsim/package.json"));return a.join(a.dirname(t),"skills")}catch{let t=a.dirname(p(import.meta.url));return a.resolve(t,"../../skills")}}var d=L(),w=new Set(["all","codex","claude"]);function h(){console.log(`sootsim skill
|
|
3
|
+
|
|
4
|
+
install and inspect bundled SootSim agent skills.
|
|
5
|
+
|
|
6
|
+
usage:
|
|
7
|
+
sootsim skill install [all|codex|claude] [skill-name...]
|
|
8
|
+
sootsim skill install --target <dir> [skill-name...]
|
|
9
|
+
sootsim skill show [skill-name]
|
|
10
|
+
|
|
11
|
+
commands:
|
|
12
|
+
install install skills; no target means all supported local agents
|
|
13
|
+
show list bundled skills, or print one skill markdown
|
|
14
|
+
|
|
15
|
+
targets:
|
|
16
|
+
all Codex and Claude Code (default)
|
|
17
|
+
codex $CODEX_HOME/skills, or ~/.codex/skills
|
|
18
|
+
claude $CLAUDE_CONFIG_DIR/skills, or ~/.claude/skills
|
|
19
|
+
`)}function S(){console.log(`sootsim skill install
|
|
20
|
+
|
|
21
|
+
install bundled SootSim skills in the agent skill layout: <skill>/SKILL.md.
|
|
22
|
+
each skill is symlinked back to its source, so edits stay live without a
|
|
23
|
+
re-install. an existing byte-identical copy is upgraded to a symlink; an
|
|
24
|
+
unrelated file is left alone unless --force is passed.
|
|
25
|
+
|
|
26
|
+
usage:
|
|
27
|
+
sootsim skill install [all|codex|claude] [skill-name...]
|
|
28
|
+
sootsim skill install --target <dir> [skill-name...]
|
|
29
|
+
|
|
30
|
+
options:
|
|
31
|
+
--force, -f replace a conflicting existing skill file with the symlink
|
|
32
|
+
|
|
33
|
+
examples:
|
|
34
|
+
sootsim skill install
|
|
35
|
+
sootsim skill install codex
|
|
36
|
+
sootsim skill install codex sootsim-debug
|
|
37
|
+
sootsim skill install --force sootsim-debug
|
|
38
|
+
`)}function m(t,n){let e=process.env[t]||a.join(x.homedir(),n);return a.join(e,"skills")}function g(){return[{label:"codex",dir:m("CODEX_HOME",".codex")},{label:"claude",dir:m("CLAUDE_CONFIG_DIR",".claude")}]}function D(t){if(t==="all")return g();if(t==="codex")return[{label:"codex",dir:m("CODEX_HOME",".codex")}];if(t==="claude")return[{label:"claude",dir:m("CLAUDE_CONFIG_DIR",".claude")}];console.error(` unknown skill install target: ${t}`),console.error(" expected all, codex, or claude"),process.exit(1)}function _(t){let n=t.match(/^---\n([\s\S]*?)\n---/);if(!n)return null;let e=n[1],s=y(e,"name");return s?{name:s,description:y(e,"description")||""}:null}function y(t,n){let e=t.split(`
|
|
39
|
+
`),s=`${n}:`;for(let i=0;i<e.length;i++){let o=e[i];if(!o.startsWith(s))continue;let l=o.slice(s.length).trim();if(l===">-"||l===">"||l==="|-"||l==="|"){let c=[];for(let u=i+1;u<e.length;u++){let f=e[u];if(/^[A-Za-z0-9_-]+:\s*/.test(f))break;if(f.trim()===""){c.push("");continue}if(!/^\s+/.test(f))break;c.push(f.trim())}return c.join(l.startsWith("|")?`
|
|
40
|
+
`:" ").trim()}return l.startsWith('"')&&l.endsWith('"')||l.startsWith("'")&&l.endsWith("'")?l.slice(1,-1):l}return null}function k(){if(!r.existsSync(d))return[];let t=r.readdirSync(d).filter(e=>e.endsWith(".md")),n=[];for(let e of t){let s=r.readFileSync(a.join(d,e),"utf8"),i=_(s);i&&n.push({...i,filename:e})}return n.sort((e,s)=>e.name.localeCompare(s.name))}function I(t,n){if(n.length===0)return t;let e=t.filter(s=>n.some(i=>s.name.includes(i)||s.name.replace("sootsim-","").includes(i)||s.filename.includes(i)));return e.length===0&&(console.error(` no skills matched: ${n.join(", ")}`),console.error(" available: "+t.map(s=>s.name).join(", ")),process.exit(1)),e}function b(t){try{return r.lstatSync(t)}catch{return null}}function C(t,n){let e=b(t);if(!e||!e.isSymbolicLink())return!1;try{return r.realpathSync(t)===r.realpathSync(n)}catch{return!1}}function j(t,n,e){if(t.isSymbolicLink()||!t.isFile())return!1;try{return r.readFileSync(n).equals(r.readFileSync(e))}catch{return!1}}function $(t,n,e){let s=a.join(d,t.filename),i=a.join(n,t.name),o=a.join(i,"SKILL.md");r.mkdirSync(i,{recursive:!0});let l=b(o);return l?C(o,s)?"up-to-date":e||j(l,o,s)?(r.rmSync(o,{force:!0}),r.symlinkSync(s,o),"replaced"):"conflict":(r.symlinkSync(s,o),"linked")}function W(){let t=k();if(t.length!==0)for(let n of g()){let e=a.resolve(n.dir);if(r.existsSync(a.dirname(e))){try{r.mkdirSync(e,{recursive:!0})}catch{continue}for(let s of t)try{$(s,e,!1)}catch{}}}}function T(t){if(t.length===0){console.log(" no skills found");return}console.log(`
|
|
41
|
+
available skills:
|
|
42
|
+
`);for(let n of t)console.log(` ${n.name}`),console.log(` ${n.description}
|
|
43
|
+
`);console.log(" usage: sootsim skill install [all|codex|claude] [skill-name...]"),console.log(` usage: sootsim skill show [skill-name]
|
|
44
|
+
`)}function v(t){let n=null,e=!1,s=[];for(let i=0;i<t.length;i++){let o=t[i];if((o==="--help"||o==="-h")&&(S(),process.exit(0)),o==="--force"||o==="-f"){e=!0;continue}if(o==="--target"){let l=t[i+1];(!l||l.startsWith("-"))&&(console.error(" --target requires a directory"),process.exit(1)),n&&(console.error(" pass only one install target"),process.exit(1)),n=[{label:"target",dir:l}],i++;continue}if(o.startsWith("-")&&(console.error(` unknown option: ${o}`),S(),process.exit(1)),!n&&w.has(o)){n=D(o);continue}s.push(o)}return{targets:n??g(),filters:s,force:e}}async function F(t){let n=k();n.length===0&&(console.error(" no skills found in sootsim package"),process.exit(1));let e=v(t),s=I(n,e.filters),i=e.targets.map(l=>({...l,dir:a.resolve(l.dir)}));for(let l of i)r.mkdirSync(l.dir,{recursive:!0}),r.statSync(l.dir).isDirectory()||(console.error(` target is not a directory: ${l.dir}`),process.exit(1));console.log(`
|
|
45
|
+
installing ${s.length} skill(s) to ${i.length} target(s)
|
|
46
|
+
`);let o=0;for(let l of i){console.log(` target ${l.label}: ${l.dir}`);for(let c of s){let u=a.join(l.dir,c.name,"SKILL.md"),f=$(c,l.dir,e.force);f==="linked"?console.log(` linked ${c.name} -> ${u}`):f==="replaced"?console.log(` relinked ${c.name} -> ${u}`):f==="up-to-date"?console.log(` up to date ${c.name}`):(o++,console.log(` conflict ${c.name}: ${u} exists and is not this skill \u2014 pass --force to replace`))}console.log("")}o>0&&(console.error(` ${o} conflict(s); rerun with --force only if replacing them is intended.
|
|
47
|
+
`),process.exit(1)),console.log(` done. restart the agent session to load newly installed skills.
|
|
48
|
+
`)}function E(t){let n=k(),e=t.find(o=>!o.startsWith("-"));if(!e){T(n);return}let[s]=I(n,[e]),i=r.readFileSync(a.join(d,s.filename),"utf8");console.log(i)}async function A(t){let[n,...e]=t;if(!n||n==="--help"||n==="-h"){h();return}if(n==="install"){await F(e);return}if(n==="show"||n==="list"){E(e);return}console.error(` unknown skill command: ${n}`),h(),process.exit(1)}export{W as refreshInstalledSkills,A as runSkill};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as S,e as y,g as v,h as b,i as u}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as S,e as y,g as v,h as b,i as u}from"./chunk-OMJ2DTQJ.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import"./chunk-3SUIAUIY.js";import"./chunk-ZZWAHZ37.js";import{mkdirSync as $,writeFileSync as x}from"node:fs";import{dirname as k,isAbsolute as B,join as C,resolve as E}from"node:path";var z=`
|
|
3
3
|
sootsim slides \u2014 compose App Store screenshots in the live sim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import"./chunk-ZZWAHZ37.js";import{spawn as m}from"child_process";import{existsSync as h,readdirSync as w}from"fs";import{resolve as u,dirname as x}from"path";import{fileURLToPath as y}from"url";var d=x(y(import.meta.resolve("sootsim-engine/package.json")));async function v(t,r){let l=t.includes("--flows"),f=t.includes("--detox"),c=t.includes("--parallel"),i=t.includes("--watch"),a=t.find((e,o)=>t[o-1]==="--reporter")||"console";if((t.includes("--help")||t.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim test \u2014 run tests against sootsim
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -26,6 +26,6 @@ examples:
|
|
|
26
26
|
notes:
|
|
27
27
|
playwright is best for smoke and package-local debugging
|
|
28
28
|
--detox is the preferred parity lane for behavior that should match real RN
|
|
29
|
-
`),process.exit(0)),l)await b(t,r,c,a);else if(f){let{runDetox:e}=await import("./detox-
|
|
29
|
+
`),process.exit(0)),l)await b(t,r,c,a);else if(f){let{runDetox:e}=await import("./detox-S7M5WN3L.js");await e(t.filter(o=>o!=="--detox"),r)}else await g(t,r)}async function g(t,r){let l=["playwright","test"],f=t.find((e,o)=>t[o-1]==="-t")||t.find((e,o)=>t[o-1]==="--testNamePattern")||t.find((e,o)=>t[o-1]==="--grep");f&&l.push("-g",f),t.includes("--watch")&&l.push("--ui");let c=new Set(["--flows","--detox","--parallel","--watch","--reporter","-t","--testNamePattern","--grep"]);for(let e=0;e<t.length;e++){if(c.has(t[e])){(t[e]==="-t"||t[e]==="--testNamePattern"||t[e]==="--grep"||t[e]==="--reporter")&&e++;continue}l.push(t[e])}console.log(` running: npx ${l.join(" ")}`);let i=m("npx",l,{cwd:d,stdio:"inherit",env:{...process.env}}),a=await new Promise(e=>{i.on("exit",o=>e(o||0))});process.exit(a)}async function b(t,r,l,f){let c=["flows","test/flows","e2e/flows",".maestro","maestro"],i=[];for(let o of c){let s=u(d,o);if(h(s)){let p=w(s).filter(n=>n.endsWith(".yaml")||n.endsWith(".yml"));for(let n of p)i.push(u(s,n))}}for(let o of c){let s=u(process.cwd(),o);if(!s.startsWith(d)&&h(s)){let p=w(s).filter(n=>n.endsWith(".yaml")||n.endsWith(".yml"));for(let n of p)i.push(u(s,n))}}i.length===0&&(console.log(" no flow files found in flows/, test/flows/, or e2e/flows/"),process.exit(0)),console.log(` found ${i.length} flow(s)`);let a=0,e=0;for(let o of i)try{let{runFlowPlayback:s}=await import("./flow-CKXTFJJ7.js"),p=r.port?`http://localhost:${r.port}`:"http://localhost:5173";if(await s([o,"--url",p,"--new"])!==0){e++;continue}a++}catch{e++}console.log(`
|
|
30
30
|
results: ${a} passed, ${e} failed (${i.length} total)
|
|
31
31
|
`),process.exit(e>0?1:0)}export{v as runTest};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as $}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as $}from"./chunk-WM73SGMM.js";import{c as p,e as h,i as R}from"./chunk-OMJ2DTQJ.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import"./chunk-3SUIAUIY.js";import"./chunk-ZZWAHZ37.js";var b=12e3;async function j(e,o){if((e.includes("--help")||e.includes("-h"))&&(console.log(`
|
|
3
3
|
sootsim three-mode \u2014 toggle the 3d device stage
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{c as m,e as d,h as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{c as m,e as d,h as s}from"./chunk-OMJ2DTQJ.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import"./chunk-3SUIAUIY.js";import"./chunk-ZZWAHZ37.js";import{writeFileSync as g}from"fs";function u(){console.log(`
|
|
3
3
|
sootsim timeline \u2014 control the semantic event timeline
|
|
4
4
|
|
|
5
5
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as s}from"./chunk-2QTAUBZX.js";import"./chunk-ZG2A6LCL.js";import"./chunk-OMJ2DTQJ.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import{G as i}from"./chunk-3SUIAUIY.js";import{a as e}from"./chunk-SV3SRWN5.js";import"./chunk-ZZWAHZ37.js";import{spawn as r}from"node:child_process";var a="https://registry.npmjs.org/sootsim/latest";async function h(o){let n=o.indexOf("--channel"),t=n>=0&&o[n+1]?o[n+1]:void 0;console.log(`sootsim upgrade
|
|
3
3
|
`),await c(),console.log(`
|
|
4
4
|
runtime:`),await s(["install",...t?["--channel",t]:[]],{})}async function c(){let o=e(),n=await u();if(!n){console.log(` cli: v${o} \u2014 couldn't reach the npm registry, skipped`);return}if(i(n,o)<=0){console.log(` cli: v${o} (latest)`);return}console.log(` cli: v${o} \u2192 v${n} \u2014 installing globally\u2026`),await m(n)?console.log(` cli: installed v${n} \u2014 restart any running \`sootsim\` process to pick it up`):(console.log(" cli: automatic install failed \u2014 upgrade it yourself with:"),console.log(" npm install -g sootsim@latest"))}async function u(){try{let o=await fetch(a,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!o.ok)return null;let n=await o.json();return typeof n.version=="string"&&n.version?n.version:null}catch{return null}}function m(o){return new Promise(n=>{let t=r("npm",["install","-g",`sootsim@${o}`],{stdio:"inherit",shell:!0});t.on("error",()=>n(!1)),t.on("exit",l=>n(l===0))})}export{h as runUpgrade};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a,b,c}from"./chunk-LYZXARZO.js";import"./chunk-V7AGBG2P.js";import"./chunk-2J67UJXT.js";import"./chunk-RCPMRHTK.js";import"./chunk-OMJ2DTQJ.js";import"./chunk-HWJ52K4J.js";import"./chunk-Y3OHYOFS.js";import"./chunk-JCQEG4R6.js";import"./chunk-HCKTFQLK.js";import"./chunk-RAESCYIA.js";import"./chunk-3SUIAUIY.js";import"./chunk-ZZWAHZ37.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as s,d as l,h as r}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.175 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as s,d as l,h as r}from"./chunk-ZG2A6LCL.js";import{a as i}from"./chunk-HWUFW3IP.js";import"./chunk-3SUIAUIY.js";import{a as t}from"./chunk-SV3SRWN5.js";import"./chunk-ZZWAHZ37.js";async function d(u){let{IS_BETA:a,BETA_LABEL:m}=await import("./beta-7FRVMDBH.js"),c=a?` \xB7 ${m}`:"";console.log(`sootsim v${t()}${c}`);let o=i(),e=l();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${e}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `sootsim runtime install`"):console.log(`${o.primary} \xB7 ${e}`);let n=await r({channel:e});n.outdated&&n.latest&&console.log(`
|
|
3
3
|
\u2191 runtime v${n.latest} available \u2014 run \`sootsim upgrade\``),console.log(`
|
|
4
4
|
what's new: ${s}`)}export{d as runVersion};
|