sootsim 0.1.149 → 0.1.150
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-DTREOLFP.js → agent-LSSBQD6J.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-LEZW2CEK.js → agent-wrapper-HYZ3VS4M.js} +2 -2
- package/dist-cli/chunks/{app-fonts-EQ6CK5L6.js → app-fonts-XXHCZZVE.js} +2 -2
- package/dist-cli/chunks/{assert-UEVT3SCS.js → assert-7I2ANKDG.js} +2 -2
- package/dist-cli/chunks/auto-bootstrap-YJM7QYAO.js +2 -0
- package/dist-cli/chunks/beta-EQOZMXP3.js +2 -0
- package/dist-cli/chunks/{camera-SHCRQWYG.js → camera-4D7T4PZW.js} +2 -2
- package/dist-cli/chunks/{chunk-DEOS6HMP.js → chunk-36L4ANT2.js} +1 -1
- package/dist-cli/chunks/{chunk-WKSDGVRG.js → chunk-3CENW2HN.js} +2 -2
- package/dist-cli/chunks/{chunk-Q3MVIFGA.js → chunk-3J5I64W6.js} +2 -2
- package/dist-cli/chunks/{chunk-GBWFT53N.js → chunk-3K237XV5.js} +1 -1
- package/dist-cli/chunks/{chunk-WKJ5NKXN.js → chunk-3MWCUIK4.js} +2 -2
- package/dist-cli/chunks/{chunk-AEKDLIFW.js → chunk-3RRDJNXM.js} +2 -2
- package/dist-cli/chunks/{chunk-EKTBF3PU.js → chunk-45XLWBNT.js} +1 -1
- package/dist-cli/chunks/{chunk-MLXZI2VU.js → chunk-5Q464MLB.js} +1 -1
- package/dist-cli/chunks/{chunk-NHWVFX3R.js → chunk-65GDTEX7.js} +3 -3
- package/dist-cli/chunks/{chunk-DYSZWMKF.js → chunk-6SXJQK5R.js} +3 -3
- package/dist-cli/chunks/{chunk-K6DR7C5H.js → chunk-6UA5JZ4E.js} +2 -2
- package/dist-cli/chunks/{chunk-Q6QBFWIS.js → chunk-7YEISEQ2.js} +2 -2
- package/dist-cli/chunks/{chunk-UGMBWU7M.js → chunk-B43JOK5N.js} +1 -1
- package/dist-cli/chunks/{chunk-JDEZIU6A.js → chunk-BFGPENAX.js} +1 -1
- package/dist-cli/chunks/{chunk-BYL2ZXSO.js → chunk-BUKMAGA6.js} +2 -2
- package/dist-cli/chunks/{chunk-YHLH2UZO.js → chunk-BWVKFTFM.js} +1 -1
- package/dist-cli/chunks/{chunk-Y3BXVPQA.js → chunk-CDLPRRMH.js} +2 -2
- package/dist-cli/chunks/{chunk-ZU3Y3JSR.js → chunk-DNTULI35.js} +1 -1
- package/dist-cli/chunks/{chunk-SOGORN62.js → chunk-GXFEY4YV.js} +1 -1
- package/dist-cli/chunks/chunk-H5YQDCRA.js +1 -0
- package/dist-cli/chunks/{chunk-QFNCCWKQ.js → chunk-IADOI73U.js} +2 -2
- package/dist-cli/chunks/{chunk-MQ4ES4QV.js → chunk-IIJQQIAP.js} +2 -2
- package/dist-cli/chunks/{chunk-GG4I3SBM.js → chunk-JPWK6SFZ.js} +1 -1
- package/dist-cli/chunks/{chunk-QWHEYTUI.js → chunk-KIDONDPE.js} +2 -2
- package/dist-cli/chunks/{chunk-L4SMKJAF.js → chunk-KO4VABY3.js} +1 -1
- package/dist-cli/chunks/{chunk-WMMLJ7UY.js → chunk-LBZGVNQE.js} +1 -1
- package/dist-cli/chunks/{chunk-FFPNLA27.js → chunk-LPVQM4H7.js} +2 -2
- package/dist-cli/chunks/{chunk-DVANCABF.js → chunk-MFPT2P6I.js} +1 -1
- package/dist-cli/chunks/{chunk-CGBHDP72.js → chunk-NHDDW7WP.js} +1 -1
- package/dist-cli/chunks/{chunk-Q6KGWTG3.js → chunk-NI2TIFUK.js} +1 -1
- package/dist-cli/chunks/{chunk-FCLKD5U3.js → chunk-NISJ26VT.js} +7 -32
- package/dist-cli/chunks/{chunk-LEUPCPVX.js → chunk-NK5T7NYR.js} +1 -1
- package/dist-cli/chunks/{chunk-MPJTH4SZ.js → chunk-NSEXBZUW.js} +2 -2
- package/dist-cli/chunks/chunk-OYWQKX2A.js +2 -0
- package/dist-cli/chunks/{chunk-PXDREKKK.js → chunk-PFFELWZN.js} +2 -2
- package/dist-cli/chunks/{chunk-KQW5FXIA.js → chunk-PGAGVXOZ.js} +2 -2
- package/dist-cli/chunks/chunk-PHRIZLTZ.js +1 -0
- package/dist-cli/chunks/{chunk-UKIYBW22.js → chunk-QIGU47UD.js} +1 -1
- package/dist-cli/chunks/{chunk-NCTGR5CW.js → chunk-VJRAGYZ6.js} +2 -2
- package/dist-cli/chunks/{chunk-JMLOSEXB.js → chunk-WNJOX4AQ.js} +2 -2
- package/dist-cli/chunks/chunk-WQF5CLFD.js +463 -0
- package/dist-cli/chunks/{chunk-PO6ZZXU5.js → chunk-WZ5JKRIA.js} +2 -2
- package/dist-cli/chunks/chunk-YKWGZWBE.js +1 -0
- package/dist-cli/chunks/{chunk-XCLGRBR7.js → chunk-YLSVHL4W.js} +2 -2
- package/dist-cli/chunks/{chunk-UO5XXQ53.js → chunk-YSN32GSR.js} +2 -2
- package/dist-cli/chunks/cli-version-QHAJ7OMR.js +2 -0
- package/dist-cli/chunks/{compat-BLVO5WCI.js → compat-EPSPO3GI.js} +3 -3
- package/dist-cli/chunks/{config-3FJKPOWY.js → config-7YGGAVYO.js} +2 -2
- package/dist-cli/chunks/{control-VU5ZXVAD.js → control-TMFCD2NX.js} +2 -2
- package/dist-cli/chunks/{cpu-profile-4MF47DGH.js → cpu-profile-44YYVMOE.js} +2 -2
- package/dist-cli/chunks/{daemon-5WV3TEOV.js → daemon-4XLAN5CC.js} +2 -2
- package/dist-cli/chunks/{debug-UJ5SRPFT.js → debug-MUYM2RWK.js} +3 -3
- package/dist-cli/chunks/{detox-EI6UZQAT.js → detox-NZJVVCA3.js} +2 -2
- package/dist-cli/chunks/{device-WGUF7AKG.js → device-7HMHAQ2Q.js} +2 -2
- package/dist-cli/chunks/{diagnose-P6MU3RU3.js → diagnose-FXVOC7LV.js} +2 -2
- package/dist-cli/chunks/drivers-GM6GJG7Q.js +2 -0
- package/dist-cli/chunks/{electron-OGUHFWUK.js → electron-NKK6Z2F3.js} +3 -3
- package/dist-cli/chunks/flow-3E4SG5M7.js +2 -0
- package/dist-cli/chunks/help-VIYWVIUB.js +2 -0
- package/dist-cli/chunks/{hints-7N4GV3ZE.js → hints-BLVNUKRX.js} +2 -2
- package/dist-cli/chunks/{home-paths-AANZCIZ5.js → home-paths-2QMRDV5X.js} +2 -2
- package/dist-cli/chunks/{inspect-RII7IRDI.js → inspect-E6Z6N3PK.js} +34 -34
- package/dist-cli/chunks/install-U7C5NDWU.js +2 -0
- package/dist-cli/chunks/{install-desktop-OO4TEBLO.js → install-desktop-O2E7FC4R.js} +3 -3
- package/dist-cli/chunks/{keys-UOR7DA3Y.js → keys-GWXMM5CC.js} +2 -2
- package/dist-cli/chunks/{launch-FEBSZFD3.js → launch-KWMHPASG.js} +3 -3
- package/dist-cli/chunks/{login-RBLUCSMW.js → login-AJO4L3ZI.js} +4 -4
- package/dist-cli/chunks/{logout-YUX36SXZ.js → logout-ZVGPEGAB.js} +2 -2
- package/dist-cli/chunks/{maestro-FACL5FAI.js → maestro-4QX23OEI.js} +2 -2
- package/dist-cli/chunks/optional-demo-registry-LKCGAST6.js +2 -0
- package/dist-cli/chunks/{preview-JHPF7LKC.js → preview-CGBGA343.js} +2 -2
- package/dist-cli/chunks/{profile-ADYZQ5J6.js → profile-RLKDXLSK.js} +2 -2
- package/dist-cli/chunks/{react-LZQFPQ6B.js → react-W2VGA55C.js} +2 -2
- package/dist-cli/chunks/{record-SAQPU2IQ.js → record-CF2HMY5Y.js} +2 -2
- package/dist-cli/chunks/runtime-A7DUL4IU.js +2 -0
- package/dist-cli/chunks/{runtime-delivery-FZNUZSUT.js → runtime-delivery-DZWXR2A5.js} +2 -2
- package/dist-cli/chunks/{screenshot-KXMYCKUF.js → screenshot-YV7USPJA.js} +2 -2
- package/dist-cli/chunks/{screenshot-mode-K7KP3GHW.js → screenshot-mode-V27UKIG6.js} +2 -2
- package/dist-cli/chunks/{screenshots-Z7YQYHGB.js → screenshots-BUOMYKKW.js} +2 -2
- package/dist-cli/chunks/{server-RFPTQNPD.js → server-6EZSHZV3.js} +3 -3
- package/dist-cli/chunks/setup-repo-MCAZJVL5.js +2 -0
- package/dist-cli/chunks/{skills-AJQCRGJE.js → skills-NXDCB76R.js} +2 -2
- package/dist-cli/chunks/{slides-7SEKUGSB.js → slides-6LF76Q4J.js} +2 -2
- package/dist-cli/chunks/{start-3N2SXPTE.js → start-5VNJWI56.js} +4 -4
- package/dist-cli/chunks/store-SX54DA6L.js +2 -0
- package/dist-cli/chunks/telemetry-PHXMPEY3.js +2 -0
- package/dist-cli/chunks/{test-BPVERVNB.js → test-KPKJXRDI.js} +3 -3
- package/dist-cli/chunks/{three-mode-5GSDNLD6.js → three-mode-RWCVKNGM.js} +2 -2
- package/dist-cli/chunks/{timeline-66ZJ4PFG.js → timeline-SRG5UM44.js} +2 -2
- package/dist-cli/chunks/{upgrade-SSG22SMA.js → upgrade-LMUTKCI4.js} +2 -2
- package/dist-cli/chunks/upload-3YJQJYAD.js +2 -0
- package/dist-cli/chunks/{version-VCIYUELO.js → version-P4LKM55A.js} +2 -2
- package/dist-cli/chunks/{web-56FLXL2W.js → web-5ZYKOZJG.js} +2 -2
- package/dist-cli/chunks/{what-happened-NW3U7BQM.js → what-happened-AFWB7XTD.js} +2 -2
- package/dist-cli/chunks/{whoami-56CZBGT2.js → whoami-YXJ6KECJ.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 +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +152 -55
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/auto-bootstrap-ZFEKV5N5.js +0 -2
- package/dist-cli/chunks/beta-FKWWIATG.js +0 -2
- package/dist-cli/chunks/chunk-6HSKGTN3.js +0 -1
- package/dist-cli/chunks/chunk-FE4WZMPN.js +0 -1
- package/dist-cli/chunks/chunk-ODLM2KEX.js +0 -1
- package/dist-cli/chunks/chunk-UM2U5JQE.js +0 -2
- package/dist-cli/chunks/chunk-YCZB7NKY.js +0 -386
- package/dist-cli/chunks/cli-version-XNIRTBJN.js +0 -2
- package/dist-cli/chunks/drivers-ISZDFEMB.js +0 -2
- package/dist-cli/chunks/flow-5WJLI3KM.js +0 -2
- package/dist-cli/chunks/help-25RH7GSX.js +0 -2
- package/dist-cli/chunks/install-LBOWGAGG.js +0 -2
- package/dist-cli/chunks/optional-demo-registry-RIDIENLK.js +0 -2
- package/dist-cli/chunks/runtime-TJT4YSOY.js +0 -2
- package/dist-cli/chunks/setup-repo-UQXTC4PO.js +0 -2
- package/dist-cli/chunks/store-BKCI7NRB.js +0 -2
- package/dist-cli/chunks/telemetry-H4J7ZTQF.js +0 -2
- package/dist-cli/chunks/upload-ITKMHX55.js +0 -2
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{b as Ns}from"./chunk-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
dbs.map(
|
|
9
|
-
(db) =>
|
|
10
|
-
new Promise((resolve) => {
|
|
11
|
-
if (!db.name) {
|
|
12
|
-
resolve()
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
const req = indexedDB.deleteDatabase(db.name)
|
|
16
|
-
req.onsuccess = () => resolve()
|
|
17
|
-
req.onerror = () => resolve()
|
|
18
|
-
req.onblocked = () => resolve()
|
|
19
|
-
}),
|
|
20
|
-
),
|
|
21
|
-
)
|
|
22
|
-
} catch {}
|
|
23
|
-
try {
|
|
24
|
-
document.cookie.split(';').forEach((cookie) => {
|
|
25
|
-
const name = cookie.split('=')[0]?.trim()
|
|
26
|
-
if (name) {
|
|
27
|
-
document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
} catch {}
|
|
31
|
-
return true
|
|
32
|
-
})()`;var ds={};Ns(ds,{Alias:()=>ee,CST:()=>hs,Composer:()=>be,Document:()=>se,Lexer:()=>Fe,LineCounter:()=>Be,Pair:()=>C,Parser:()=>we,Scalar:()=>y,Schema:()=>_e,YAMLError:()=>Me,YAMLMap:()=>_,YAMLParseError:()=>j,YAMLSeq:()=>D,YAMLWarning:()=>Pe,isAlias:()=>x,isCollection:()=>L,isDocument:()=>R,isMap:()=>U,isNode:()=>I,isPair:()=>E,isScalar:()=>T,isSeq:()=>V,parse:()=>wn,parseAllDocuments:()=>bn,parseDocument:()=>ms,stringify:()=>Sn,visit:()=>W,visitAsync:()=>qe});var st=Symbol.for("yaml.alias"),nt=Symbol.for("yaml.document"),Y=Symbol.for("yaml.map"),Rt=Symbol.for("yaml.pair"),q=Symbol.for("yaml.scalar"),re=Symbol.for("yaml.seq"),B=Symbol.for("yaml.node.type"),x=s=>!!s&&typeof s=="object"&&s[B]===st,R=s=>!!s&&typeof s=="object"&&s[B]===nt,U=s=>!!s&&typeof s=="object"&&s[B]===Y,E=s=>!!s&&typeof s=="object"&&s[B]===Rt,T=s=>!!s&&typeof s=="object"&&s[B]===q,V=s=>!!s&&typeof s=="object"&&s[B]===re;function L(s){if(s&&typeof s=="object")switch(s[B]){case Y:case re:return!0}return!1}function I(s){if(s&&typeof s=="object")switch(s[B]){case st:case Y:case q:case re:return!0}return!1}var it=s=>(T(s)||L(s))&&!!s.anchor;var K=Symbol("break visit"),As=Symbol("skip children"),z=Symbol("remove node");function W(s,e){let t=Os(e);R(s)?Ne(null,s.contents,t,Object.freeze([s]))===z&&(s.contents=null):Ne(null,s,t,Object.freeze([]))}W.BREAK=K;W.SKIP=As;W.REMOVE=z;function Ne(s,e,t,n){let i=Ts(s,e,t,n);if(I(i)||E(i))return Es(s,n,i),Ne(s,i,t,n);if(typeof i!="symbol"){if(L(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=Ne(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===K)return K;o===z&&(e.items.splice(r,1),r-=1)}}}else if(E(e)){n=Object.freeze(n.concat(e));let r=Ne("key",e.key,t,n);if(r===K)return K;r===z&&(e.key=null);let o=Ne("value",e.value,t,n);if(o===K)return K;o===z&&(e.value=null)}}return i}async function qe(s,e){let t=Os(e);R(s)?await Ae(null,s.contents,t,Object.freeze([s]))===z&&(s.contents=null):await Ae(null,s,t,Object.freeze([]))}qe.BREAK=K;qe.SKIP=As;qe.REMOVE=z;async function Ae(s,e,t,n){let i=await Ts(s,e,t,n);if(I(i)||E(i))return Es(s,n,i),Ae(s,i,t,n);if(typeof i!="symbol"){if(L(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await Ae(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===K)return K;o===z&&(e.items.splice(r,1),r-=1)}}}else if(E(e)){n=Object.freeze(n.concat(e));let r=await Ae("key",e.key,t,n);if(r===K)return K;r===z&&(e.key=null);let o=await Ae("value",e.value,t,n);if(o===K)return K;o===z&&(e.value=null)}}return i}function Os(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function Ts(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(U(e))return t.Map?.(s,e,n);if(V(e))return t.Seq?.(s,e,n);if(E(e))return t.Pair?.(s,e,n);if(T(e))return t.Scalar?.(s,e,n);if(x(e))return t.Alias?.(s,e,n)}function Es(s,e,t){let n=e[e.length-1];if(L(n))n.items[s]=t;else if(E(n))s==="key"?n.key=t:n.value=t;else if(R(n))n.contents=t;else{let i=x(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}var En={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},In=s=>s.replace(/[!,[\]{}]/g,e=>En[e]),Z=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+In(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&I(e.contents)){let r={};W(e.contents,(o,a)=>{I(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{b as Ns}from"./chunk-MFPT2P6I.js";function hi(s){return`(async () => {
|
|
3
|
+
const bridge = globalThis.SootSim && globalThis.SootSim.bridges && globalThis.SootSim.bridges.hotRemount
|
|
4
|
+
if (!bridge || typeof bridge.reloadExternalApp !== 'function') return false
|
|
5
|
+
await bridge.reloadExternalApp({ resetStorage: ${s?"true":"false"} })
|
|
6
|
+
return true
|
|
7
|
+
})()`}var ds={};Ns(ds,{Alias:()=>ee,CST:()=>hs,Composer:()=>be,Document:()=>se,Lexer:()=>Fe,LineCounter:()=>Be,Pair:()=>C,Parser:()=>we,Scalar:()=>y,Schema:()=>_e,YAMLError:()=>Me,YAMLMap:()=>_,YAMLParseError:()=>j,YAMLSeq:()=>D,YAMLWarning:()=>Pe,isAlias:()=>x,isCollection:()=>L,isDocument:()=>R,isMap:()=>U,isNode:()=>I,isPair:()=>E,isScalar:()=>T,isSeq:()=>V,parse:()=>wn,parseAllDocuments:()=>bn,parseDocument:()=>ms,stringify:()=>Sn,visit:()=>W,visitAsync:()=>qe});var st=Symbol.for("yaml.alias"),nt=Symbol.for("yaml.document"),Y=Symbol.for("yaml.map"),Rt=Symbol.for("yaml.pair"),q=Symbol.for("yaml.scalar"),re=Symbol.for("yaml.seq"),B=Symbol.for("yaml.node.type"),x=s=>!!s&&typeof s=="object"&&s[B]===st,R=s=>!!s&&typeof s=="object"&&s[B]===nt,U=s=>!!s&&typeof s=="object"&&s[B]===Y,E=s=>!!s&&typeof s=="object"&&s[B]===Rt,T=s=>!!s&&typeof s=="object"&&s[B]===q,V=s=>!!s&&typeof s=="object"&&s[B]===re;function L(s){if(s&&typeof s=="object")switch(s[B]){case Y:case re:return!0}return!1}function I(s){if(s&&typeof s=="object")switch(s[B]){case st:case Y:case q:case re:return!0}return!1}var it=s=>(T(s)||L(s))&&!!s.anchor;var K=Symbol("break visit"),As=Symbol("skip children"),z=Symbol("remove node");function W(s,e){let t=Os(e);R(s)?Ne(null,s.contents,t,Object.freeze([s]))===z&&(s.contents=null):Ne(null,s,t,Object.freeze([]))}W.BREAK=K;W.SKIP=As;W.REMOVE=z;function Ne(s,e,t,n){let i=Ts(s,e,t,n);if(I(i)||E(i))return Es(s,n,i),Ne(s,i,t,n);if(typeof i!="symbol"){if(L(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=Ne(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===K)return K;o===z&&(e.items.splice(r,1),r-=1)}}}else if(E(e)){n=Object.freeze(n.concat(e));let r=Ne("key",e.key,t,n);if(r===K)return K;r===z&&(e.key=null);let o=Ne("value",e.value,t,n);if(o===K)return K;o===z&&(e.value=null)}}return i}async function qe(s,e){let t=Os(e);R(s)?await Ae(null,s.contents,t,Object.freeze([s]))===z&&(s.contents=null):await Ae(null,s,t,Object.freeze([]))}qe.BREAK=K;qe.SKIP=As;qe.REMOVE=z;async function Ae(s,e,t,n){let i=await Ts(s,e,t,n);if(I(i)||E(i))return Es(s,n,i),Ae(s,i,t,n);if(typeof i!="symbol"){if(L(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await Ae(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===K)return K;o===z&&(e.items.splice(r,1),r-=1)}}}else if(E(e)){n=Object.freeze(n.concat(e));let r=await Ae("key",e.key,t,n);if(r===K)return K;r===z&&(e.key=null);let o=await Ae("value",e.value,t,n);if(o===K)return K;o===z&&(e.value=null)}}return i}function Os(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function Ts(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(U(e))return t.Map?.(s,e,n);if(V(e))return t.Seq?.(s,e,n);if(E(e))return t.Pair?.(s,e,n);if(T(e))return t.Scalar?.(s,e,n);if(x(e))return t.Alias?.(s,e,n)}function Es(s,e,t){let n=e[e.length-1];if(L(n))n.items[s]=t;else if(E(n))s==="key"?n.key=t:n.value=t;else if(R(n))n.contents=t;else{let i=x(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}var En={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},In=s=>s.replace(/[!,[\]{}]/g,e=>En[e]),Z=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+In(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&I(e.contents)){let r={};W(e.contents,(o,a)=>{I(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
33
8
|
`)}};Z.defaultYaml={explicit:!1,version:"1.2"};Z.defaultTags={"!!":"tag:yaml.org,2002:"};function rt(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function Ut(s){let e=new Set;return W(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function Vt(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function Is(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=Ut(s));let o=Vt(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(T(o.node)||L(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}function fe(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=fe(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=fe(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=fe(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=fe(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}function P(s,e,t){if(Array.isArray(s))return s.map((n,i)=>P(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!it(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!t?.keep?Number(s):s}var ue=class{constructor(e){Object.defineProperty(this,B,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!R(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=P(this,"",o);if(typeof i=="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?fe(r,{"":a},"",a):a}};var ee=class extends ue{constructor(e){super(st),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){if(t?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],W(e,{Node:(r,o)=>{(x(o)||it(o))&&n.push(o)}}),t&&(t.aliasResolveCache=n));let i;for(let r of n){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(P(o,null,t),a=n.get(o)),a?.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=ot(i,o,n)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(rt(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function ot(s,e,t){if(x(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(L(e)){let n=0;for(let i of e.items){let r=ot(s,i,t);r>n&&(n=r)}return n}else if(E(e)){let n=ot(s,e.key,t),i=ot(s,e.value,t);return Math.max(n,i)}return 1}var at=s=>!s||typeof s!="function"&&typeof s!="object",y=class extends ue{constructor(e){super(q),this.value=e}toJSON(e,t){return t?.keep?this.value:P(this.value,e,t)}toString(){return String(this.value)}};y.BLOCK_FOLDED="BLOCK_FOLDED";y.BLOCK_LITERAL="BLOCK_LITERAL";y.PLAIN="PLAIN";y.QUOTE_DOUBLE="QUOTE_DOUBLE";y.QUOTE_SINGLE="QUOTE_SINGLE";var Ln="tag:yaml.org,2002:";function vn(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)??n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify?.(s)&&!n.format)}function oe(s,e,t){if(R(s)&&(s=s.contents),I(s))return s;if(E(s)){let f=t.schema[Y].createNode?.(t.schema,null,t);return f.items.push(s),f}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t,l;if(n&&s&&typeof s=="object"){if(l=a.get(s),l)return l.anchor??(l.anchor=i(s)),new ee(l.anchor);l={anchor:null,node:null},a.set(s,l)}e?.startsWith("!!")&&(e=Ln+e.slice(2));let c=vn(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let f=new y(s);return l&&(l.node=f),f}c=s instanceof Map?o[Y]:Symbol.iterator in Object(s)?o[re]:o[Y]}r&&(r(c),delete t.onTagObj);let p=c?.createNode?c.createNode(t.schema,s,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,s,t):new y(s);return e?p.tag=e:c.default||(p.tag=c.tag),l&&(l.node=p),p}function je(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return oe(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var Te=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,Oe=class extends ue{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>I(n)||E(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Te(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(L(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,je(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,!0);if(L(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&T(r)?r.value:r:L(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!E(t))return!1;let n=t.value;return n==null||e&&T(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let i=this.get(t,!0);return L(i)?i.hasIn(n):!1}setIn(e,t){let[n,...i]=e;if(i.length===0)this.set(n,t);else{let r=this.get(n,!0);if(L(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,je(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};var Ls=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function J(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var te=(s,e,t)=>s.endsWith(`
|
|
34
9
|
`)?J(t,e):t.includes(`
|
|
35
10
|
`)?`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import{createHash as b}from"node:crypto";import g from"node:fs";import{createRequire as S}from"node:module";import u from"node:path";var y=/\.(ttf|otf|woff|woff2)$/i;function P(t,n,r){if(!t||typeof t!="object")return;let o=t.fonts;if(Array.isArray(o))for(let i of o)typeof i=="string"&&r.push(i);let e=t[n];if(!e||typeof e!="object")return;let s=e.fonts;if(Array.isArray(s))for(let i of s){if(typeof i=="string"){r.push(i);continue}if(!i||typeof i!="object")continue;let c=i.fontDefinitions;if(Array.isArray(c))for(let a of c){if(!a||typeof a!="object")continue;let p=a.path;typeof p=="string"&&r.push(p)}}}function m(t,n){if(!Array.isArray(t))return[];let r=[];for(let o of t){let e=Array.isArray(o)?o[0]:o;if(typeof e!="string"||!/(^|\/)expo-font$/.test(e))continue;let s=Array.isArray(o)?o[1]??{}:{};P(s,n,r)}return r}function C(t){return t.slice(t.lastIndexOf("/")+1).replace(y,"")}function h(t,n){let r=n.replace(/\/+$/,""),o=new Set,e=[];for(let s of t){let i=s.replace(/^\.\//,"").replace(/^\/+/,"");!i||o.has(i)||(o.add(i),y.test(i)&&e.push({family:C(i),url:`${r}/assets/${i}`}))}return e}var d=S(import.meta.url);function x(t){try{let n=new URL(t),r=n.hostname.replace(/^\[|\]$/g,"").toLowerCase();if(r==="localhost"||r.endsWith(".localhost")||r==="0.0.0.0"||r==="::1"||/^127(?:\.\d{1,3}){3}$/.test(r))return n.origin}catch{}return null}var R=["app.config.js","app.config.ts","app.config.cjs","app.config.mjs","app.json"];function w(t){for(let n of R)try{if(g.statSync(u.join(t,n)).isFile())return!0}catch{}return!1}var j=new Set(["node_modules","artifacts","dist","build","out","coverage","tmp","public","ios","android","macos","windows","__fixtures__","__tests__","examples","example"]);function F(t,n){w(t)&&n.push(t);let r;try{r=g.readdirSync(t,{withFileTypes:!0})}catch{return}for(let o of r)o.isDirectory()&&(o.name.startsWith(".")||j.has(o.name)||F(u.join(t,o.name),n))}function _(t){try{return g.statSync(u.join(t,"package.json")).isFile()}catch{return!1}}function I(t){let n=x(t.bundleUrl);if(!n)return[];let r=t.repoDir||process.env.SOOT_REPO_DIR,o=r?u.resolve(r):process.cwd();if(!r&&!_(o))return[];let e=[];if(r)F(o,e),e.includes(o)||e.push(o);else{if(!w(o))return[];e.push(o)}if(e.length===0)return[];let s=(t.platform||process.env.SOOT_PLATFORM||"ios").toLowerCase(),i=null;try{let l=d.resolve("@expo/config",{paths:[...e,o]}),f=d(l);typeof f.getConfig=="function"&&(i=f.getConfig)}catch{}if(!i)return[];let c;for(let l of e)try{let f=i(l,{skipSDKVersionRequirement:!0});if(f?.exp&&typeof f.exp=="object"){let A=f.exp.plugins;if(Array.isArray(A)){c=f.exp;break}}}catch{}if(!c||typeof c!="object")return[];let a=c.plugins;if(!Array.isArray(a))return[];let p=m(a,s==="android"?"android":"ios");return h(p,n)}async function L(t,n){let r=x(t);if(!r)return null;let o=new AbortController,e=setTimeout(()=>o.abort(),n?.timeoutMs??1500);try{let s=await fetch(`${r}/`,{headers:{"expo-platform":"ios",Accept:"application/json"},signal:o.signal});if(!s.ok)return null;let c=(await s.json())?.extra?.expoClient?._internal?.projectRoot;return typeof c=="string"&&c.length>0?c:null}catch{return null}finally{clearTimeout(e)}}function M(t){return t.map(n=>`${encodeURIComponent(n.url)}::${encodeURIComponent(n.family)}`).join(",")}function k(t){let n=[];for(let r of t.split(",")){let o=r.trim();if(!o)continue;let e=o.indexOf("::"),s=e===-1?o:o.slice(0,e);try{n.push(decodeURIComponent(s))}catch{n.push(s)}}return n.filter(Boolean)}function D(t){let n=(t.split("?")[0].split(".").pop()||"").toLowerCase();return n==="ttf"?"font/ttf":n==="otf"?"font/otf":n==="woff"?"font/woff":n==="woff2"?"font/woff2":"application/octet-stream"}async function G(t,n){let r=[],o=new Set;for(let e of k(t)){let s=b("sha256").update(e).digest("hex");if(!o.has(s)){o.add(s);try{let i=await fetch(e);if(!i.ok){n?.onError?.(e,new Error(`${i.status} ${i.statusText}`));continue}let c=new Uint8Array(await i.arrayBuffer());r.push({url:e,urlhash:s,contentType:D(e),bytes:c}),n?.onStaged?.({url:e,byteLength:c.byteLength})}catch(i){n?.onError?.(e,i)}}}return r}export{I as a,L as b,M as c,G as d};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{j as n}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{j as n}from"./chunk-BWVKFTFM.js";var i=[];for(let[t,e]of Object.entries(n))e.cliFlag&&i.push({name:`--${e.cliFlag}`,short:e.cliFlagShort?`-${e.cliFlagShort}`:void 0,key:t,type:e.type==="enum"?"string":e.type,description:e.description,options:e.options,default:e.default});var a=i;function g(){let t=[];for(let e of a){let s=e.short?`${e.short}, ${e.name}`:` ${e.name}`,o=e.options?` [${e.options.join("|")}]`:"",r=e.default!==void 0?` (default: ${e.default})`:"";t.push(` ${s.padEnd(24)}${e.description}${o}${r}`)}return t.join(`
|
|
3
3
|
`)}export{g as a};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{h as u}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{h as u}from"./chunk-BWVKFTFM.js";var S=52,l=18,h=42,x=96,g=54,E=1.5,$="inset 0 0 0 0.5px #000, inset 0 0 0 2px #757575, inset 0 0 0 5px #212121",w=1;function y(e){let t=u(e),r=t.scale,o=!t.dynamicIsland&&t.homeIndicatorHeight===0&&t.cornerRadius===0,n=t.width,i=t.height,a=o?t.width+l*2:t.width+28,d=o?t.height+h+x:t.height+28,c=9.5,b=w,p=a+c*2,m=d+w*2,f=c+(o?l:14),B=o?h:14,H=o?S:t.cornerRadius+14,v=[{side:"right",top:t.hardwareButtons.lock.top,height:t.hardwareButtons.lock.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.ringToggle.top,height:t.hardwareButtons.ringToggle.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.volumeUp.top,height:t.hardwareButtons.volumeUp.height,width:t.hardwareButtons.width},{side:"left",top:t.hardwareButtons.volumeDown.top,height:t.hardwareButtons.volumeDown.height,width:t.hardwareButtons.width}];return{model:e,renderScale:r,outerWidth:Math.round(p*r),outerHeight:Math.round(m*r),logicalOuterWidth:p,logicalOuterHeight:m,logicalFrameWidth:a,logicalFrameHeight:d,logicalFrameLeft:c,logicalFrameTop:b,logicalScreenWidth:n,logicalScreenHeight:i,logicalScreenLeft:f,logicalScreenTop:B,logicalScreenRadius:o?0:t.cornerRadius,logicalFrameRadius:H,frameBackground:o?"linear-gradient(180deg, #1b1c20 0%, #0f1012 42%, #050608 100%)":"#000000",frameOutline:o?"0 0 0 1px #1f2125":"0 0 0 1px #333",metallicRingShadow:o?null:$,buttons:v,legacyHomeButton:o?{top:h+t.height+(x-g)/2,left:t.width/2-g/2+l,size:g,ring:E}:null,showHomeIndicator:t.homeIndicatorHeight>0,logicalHomeIndicatorStripHeight:t.homeIndicatorHeight}}function L(e){let t=e.side==="right",r=t?"inset(-3px -3px -3px 0)":"inset(-3px 0 -3px -3px)";return`
|
|
3
3
|
<div
|
|
4
4
|
aria-hidden="true"
|
|
5
5
|
style="
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as s}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as s}from"./chunk-CDLPRRMH.js";import{y as o}from"./chunk-NHDDW7WP.js";function u(){let e=process.env.DO_NOT_TRACK;return e==="1"||e==="true"||!o()}function a(){if(u())return null;let e=process.env.VITE_POSTHOG_API_KEY||"";if(!e)return null;let t=process.env.SOOT_POSTHOG_HOST||process.env.VITE_POSTHOG_HOST||"https://us.i.posthog.com";return{apiKey:e,host:t.replace(/\/+$/,"")}}function c(e){return e?e.userId?e.userId:e.installationId!=null?`install:${e.installationId}`:e.repoId?`repo:${e.repoId}`:e.shareId?`share:${e.shareId}`:"anonymous-cli":"anonymous-cli"}function p(e){let t=e.identity??{},n={$lib:"soot-cli",source:t.source??"cli",...e.properties};return t.userId&&(n.userId=t.userId),t.repoId&&(n.repoId=t.repoId),t.installationId!=null&&(n.installationId=String(t.installationId)),t.shareId&&(n.shareId=t.shareId),t.plan&&(n.plan=t.plan),{event:e.event,distinct_id:c(t),properties:n,timestamp:new Date().toISOString()}}var r=[],l=!1;async function i(){if(r.length===0)return;let e=a();if(!e){r.length=0;return}let t=r.splice(0,r.length).map(p);try{await fetch(`${e.host}/batch/`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({api_key:e.apiKey,batch:t}),signal:AbortSignal.timeout(2e3)})}catch{}}function d(){l||(l=!0,process.on("beforeExit",()=>void i()),process.on("exit",()=>void i()))}function h(e){if(u())return;d();let t=null;try{t=s()?.user?.id??null}catch{t=null}r.push({...e,identity:{source:"cli",userId:t,...e.identity}})}async function g(){await i()}export{h as a,g as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
function M(t,e){let r=["--max-ms","--maxMs","--maxms","--max_ms"];for(let n of r){let s=t.indexOf(n);if(s>=0&&t[s+1]){let o=Number(t[s+1]);if(Number.isFinite(o))return Math.max(100,o)}}return e}var w=new Set(["tap","double-tap","tap-text","tap-id","long-press","touch"]);function S(t){return typeof t=="string"&&w.has(t)}async function v(t){return await t.send({type:"evaluate",code:"window.__sootsimEngineState?.inspectActive === true"})===!0}async function H(t,e){if(!S(e))return!1;try{return await v(t)}catch{return!1}}async function C(t){let e=await t.send({type:"evaluate",code:"(async () => await window.__sootsimTest.getNodeCount())()"});return{nodes:typeof e=="number"?e:0}}async function B(t,e=5){let r=await t.send({type:"evaluate",code:`(async () => await window.__sootsimTest.dumpTree(${e}))()`});return{depth:e,tree:r}}async function W(t){let e=await t.send({type:"evaluate",code:"window.location.href"});return{url:typeof e=="string"?e:""}}async function F(t,e){let r=`(async () => {
|
|
3
3
|
const t = window.__sootsimTest
|
|
4
4
|
const mainShell = window.SootSim?.bridges?.mainShell
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as C,b as k}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as C,b as k}from"./chunk-BFGPENAX.js";var x="sootsimConfig";function m(e){return!!e&&Object.keys(e).length>0}function D(e){return e?m(e.modules)||m(e.turboModules)||m(e.nativeModules)||m(e.env)||m(e.network?.remap)||m(e.settings)||m(e.initialState):!1}function M(e,o){let t=new URL(e);return D(o)?t.searchParams.set(x,JSON.stringify(o)):t.searchParams.delete(x),t.toString()}import{exec as N}from"child_process";import L from"http";import O from"net";import{promisify as $}from"util";var te="/index.bundle?platform=ios&dev=true&hot=true&minify=false";function T(e){return/^https?:\/\//i.test(e)}function E(e){return e.endsWith(".bundle")}function A(e){process.env.SOOTSIM_PREVIEW_PROD_BUNDLE&&(e.searchParams.set("dev","false"),e.searchParams.set("minify","true"),e.searchParams.has("hot")&&e.searchParams.set("hot","false"))}function U(e){try{let o=T(e),t=new URL(e,"http://soot.local");return t.pathname=t.pathname.replace(/\.\.bundle$/,".bundle"),E(t.pathname)?(t.searchParams.delete("transform.bytecode"),A(t),o?t.toString():`${t.pathname}${t.search}${t.hash}`):e}catch{return e}}var v=$(N);C();var I=250,B=1500,H=120;function j(e,o=H){return new Promise(t=>{let r=new O.Socket,s=!1,i=a=>{s||(s=!0,r.destroy(),t(a))};r.setTimeout(o),r.once("connect",()=>i(!0)),r.once("timeout",()=>i(!1)),r.once("error",()=>i(!1)),r.connect(e,"localhost")})}function h(e,o,t="GET",r=I,s={}){return new Promise(i=>{let a=L.request({hostname:"localhost",port:e,path:o,method:t,timeout:r,headers:s},n=>{let u="";n.on("data",l=>u+=l.toString());let c=(()=>{let l=n.headers["content-type"];if(typeof l=="string")return l;if(Array.isArray(l))return l[0]})();n.on("end",()=>i({statusCode:n.statusCode||0,body:u,contentType:c}))});a.on("error",()=>i(null)),a.setTimeout(r,()=>{a.destroy(),i(null)}),a.end()})}var W=[8081,8082,8083,8084,8085,8086,3e3,3001,19e3].map(e=>({port:e,pid:0}));function P(e,o){return!(e<=0||e>=2e4||o.has(e)||e>=5170&&e<=5200)}async function F(e=[]){let o=new Set(e);try{let{stdout:t}=await v("lsof -iTCP -sTCP:LISTEN -P -n 2>/dev/null | grep -E '^(node|bun)'",{encoding:"utf8",timeout:2e3});if(t.trim()){let r=new Map;for(let s of t.trim().split(`
|
|
3
3
|
`)){let i=s.trim().split(/\s+/);if(i.length<9)continue;let a=Number(i[1]),u=i[8].match(/:(\d+)$/);if(!u)continue;let c=Number(u[1]);P(c,o)&&(r.has(c)||r.set(c,a))}if(r.size>0)return[...r.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}try{let{stdout:t}=await v(`ss -tlnp 2>/dev/null | grep -E '"(node|bun)"'`,{encoding:"utf8",timeout:2e3});if(t.trim()){let r=new Map;for(let s of t.trim().split(`
|
|
4
4
|
`)){let i=s.match(/:(\d+)\s/),a=s.match(/pid=(\d+)/);if(!i)continue;let n=Number(i[1]),u=a?Number(a[1]):0;P(n,o)&&(r.has(n)||r.set(n,u))}if(r.size>0)return[...r.entries()].map(([s,i])=>({port:s,pid:i}))}}catch{}return W.filter(t=>P(t.port,o))}var y=new Map;async function G(e){if(e<=0)return null;let o=y.get(e);if(o)return o;try{let{stdout:t}=await v(`lsof -p ${e} -a -d cwd -Fn 2>/dev/null`,{encoding:"utf8",timeout:1500});for(let r of t.split(`
|
|
5
5
|
`))if(r.startsWith("n")&&r.length>1){let s=r.slice(1).trim();if(s)return y.set(e,s),s}}catch{}return null}function z(e,o){return{port:e,framework:o,bundleUrl:g(e,`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()}}function g(e,o){let t=k().find(s=>s.preferredPort===e),r=t?.runtimeConfig?M(o,t.runtimeConfig):o;return U(r)}function J(e){return e.includes("/node_modules/one/metro-entry.bundle")}function K(e){try{let o=JSON.parse(e);return o&&typeof o=="object"?o:null}catch{return null}}function w(e,o,t){if(!o)return e;try{let r=JSON.parse(o.body),s=r?.extra?.expoClient||r?.extra||{};s.name&&(e.projectName=s.name),s.ios?.bundleIdentifier&&(e.bundleId=s.ios.bundleIdentifier),e.framework==="metro"&&s.sdkVersion&&(e.framework="expo");let i=r?.launchAsset?.url;i&&!e.patched&&!J(e.bundleUrl)&&(e.bundleUrl=g(e.port,i));let a=s.iconUrl||s.ios?.iconUrl||s.icon||s.ios?.icon;if(a)if(e.iconPath=a,t)if(a.startsWith("http"))e.iconUrl=t(a);else{let n=a.replace(/^\.\//,"");e.iconUrl=t(`http://localhost:${e.port}/assets/${n}`)}else e.iconUrl=a.startsWith("http")?a:`http://localhost:${e.port}/assets/${a.replace(/^\.\//,"")}`}catch{}return e}var d=new Set,p=new Set,S=new Set;async function V(e,o){if(!await j(e))return null;let t="/node_modules/one/metro-entry.bundle?platform=ios&dev=true",[r,s,i,a]=await Promise.all([d.has(e)?Promise.resolve(null):h(e,"/__soot/"),h(e,"/status"),S.has(e)?Promise.resolve(null):h(e,"/","GET",B,{"expo-platform":"ios"}),p.has(e)?Promise.resolve(null):h(e,"/_expo/status")]);a&&a.statusCode===200?p.delete(e):p.has(e)||p.add(e);let n=i?K(i.body):null,u=typeof n?.launchAsset?.url=="string"?n.launchAsset.url:null,c=n?.extra?.expoClient||n?.extra||{};if(n&&(u||typeof c.name=="string")){d.add(e);let R=u||`http://localhost:${e}/index.bundle?platform=ios&dev=true&hot=true&minify=false`,_=R.includes("/one/metro-entry.bundle")?"one":"expo";return w({port:e,framework:_,bundleUrl:g(e,R),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},i,o)}if(s&&s.body.includes("packager-status:running"))return d.add(e),w(z(e,a&&a.statusCode===200?"expo":"metro"),i,o);if(r&&r.statusCode===200&&r.body.includes("sootsim-patched"))return d.delete(e),w({port:e,framework:"one",bundleUrl:g(e,`http://localhost:${e}/__soot/bundle.js`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now(),patched:!0},i,o);if(s&&s.statusCode===200||a&&a.statusCode===200||i&&i.statusCode===200&&n!=null)return null;let f=await h(e,t,"HEAD");return f&&f.statusCode>0&&f.statusCode<400&&/application\/javascript/i.test(f.contentType||"")?(d.add(e),S.add(e),w({port:e,framework:"one",bundleUrl:g(e,`http://localhost:${e}${t}&minify=false`),hmrUrl:`ws://localhost:${e}/hot`,lastSeen:Date.now()},i,o)):(d.add(e),null)}function q(e){let o=e.projectName?.trim().toLowerCase();return!!(o==="soot"||o==="sootsim"||e.bundleId?.trim().toLowerCase()?.startsWith("dev.soot"))}var b=new Map,Q=3e4,Y=1500;function X(e){return!e||e.framework==="metro"||e.framework==="unknown"}function Z(e){return e?g(e.port,e.bundleUrl)===e.bundleUrl:!0}function ee(e,o,t=Date.now()){if(o===0||e.pid!==o||!Z(e.result))return!1;let r=t-e.cachedAt;return!(e.result===null&&r>=Q||X(e.result)&&r>=Y)}async function de(e={}){let o=await F(e.excludePorts),t=new Set(o.map(n=>n.port));for(let n of[...b.keys()])t.has(n)||b.delete(n);for(let n of[...d])t.has(n)||d.delete(n);for(let n of[...p])t.has(n)||p.delete(n);for(let n of[...S])t.has(n)||S.delete(n);let r=[],s=[];for(let{port:n,pid:u}of o){let c=b.get(n);if(c&&ee(c,u)){c.result&&r.push(c.result);continue}c&&c.pid!==u&&(d.delete(n),p.delete(n),S.delete(n)),s.push({port:n,pid:u})}s.length>0&&(await Promise.all(s.map(u=>V(u.port,e.buildIconProxyUrl)))).forEach((u,c)=>{let{port:l,pid:f}=s[c];f!==0&&b.set(l,{pid:f,result:u,cachedAt:Date.now()}),u&&r.push(u)});let i=new Map;for(let{port:n,pid:u}of o)u>0&&i.set(n,u);await Promise.all(r.map(async n=>{let u=i.get(n.port);if(!u)return;n.pid=u;let c=await G(u);c&&(n.cwd=c)}));let a=new Set(i.values());for(let n of[...y.keys()])a.has(n)||y.delete(n);return r.filter(n=>!q(n))}export{M as a,te as b,U as c,V as d,de as e};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! sootsim v0.1.
|
|
2
|
-
import{a as d,b as g}from"./chunk-
|
|
1
|
+
/*! sootsim v0.1.150 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
+
import{a as d,b as g}from"./chunk-LBZGVNQE.js";import{a as f,c as w}from"./chunk-3MWCUIK4.js";import{a as u,b as h,c as m}from"./chunk-36L4ANT2.js";import{c as p}from"./chunk-NI2TIFUK.js";function I(){let e=u();return e?{available:!0,reason:null,detail:e}:{available:!1,reason:"no chromium-family browser found (chrome, chromium, edge, brave, arc)"}}async function M(e){if(e.headless)return{launched:!1,message:"the chromium driver launches a visible browser window and cannot run headless \u2014 a headless `chrome --headless=new` process exits immediately and the sim never connects. for headless automation use `--driver playwright`."};let r=u();if(!r)return{launched:!1,message:"chromium not found \u2014 install chrome or run `sootsim list --drivers`"};if(!e.url)return{launched:!1,message:"chromium driver requires a target url"};if(e.profileId||e.ephemeralProfile)return{launched:!1,message:"profiles require electron or playwright; browser tabs use your current Chrome profile"};try{let t=await m(e.url,{detached:e.detached??!0});return{launched:!0,message:`chromium launched \u2192 ${e.url}`,pid:t.pid,target:t.target??r,attachUrl:e.url}}catch(t){return{launched:!1,message:`chromium spawn failed: ${t instanceof Error?t.message:String(t)}`}}}var v={id:"chromium",name:"chromium",description:"system chrome / chromium / edge \u2014 visible window (headless: use playwright)",kind:"browser",availability:I,launch:M};function _(){let e=d();return e?{available:!0,reason:null,detail:`${e.kind} @ ${e.path}`}:{available:!1,reason:"sootsim desktop app not installed (run `sootsim install-desktop`)"}}async function x(e){let r=d();if(!r)return{launched:!1,message:"sootsim desktop app not installed"};try{let t=await g(e.url,r,{device:e.device,profileId:e.profileId,ephemeralProfile:e.ephemeralProfile});return t.launched?{launched:!0,message:e.url?`electron launched via ${t.via} \u2192 ${e.url}`:`electron launched via ${t.via}`,target:t.target,attachUrl:e.url}:{launched:!1,message:"desktop companion failed to start"}}catch(t){return{launched:!1,message:`electron launch failed: ${t instanceof Error?t.message:String(t)}`}}}var y={id:"electron",name:"electron",description:"sootsim desktop companion app (native window, menu bar)",kind:"native",availability:_,launch:x};import{spawn as C}from"child_process";import{closeSync as E,mkdtempSync as A,openSync as L,readFileSync as R}from"fs";import{createRequire as W}from"module";import{tmpdir as b}from"os";import{join as S}from"path";var N=`
|
|
3
3
|
const modulePath = process.env.SOOTSIM_PW_MODULE;
|
|
4
4
|
const url = process.env.SOOTSIM_PW_URL;
|
|
5
5
|
const headless = process.env.SOOTSIM_PW_HEADLESS === '1';
|