rnxsim 0.1.321 → 0.1.322
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-ZCYY6UIN.js → agent-NIJPYKAO.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-RHQSSWDW.js → agent-wrapper-VC2VPS6V.js} +2 -2
- package/dist-cli/chunks/{app-fonts-AQQYVP7R.js → app-fonts-25ZCB34S.js} +2 -2
- package/dist-cli/chunks/{assert-X2WWRRSM.js → assert-EGRQFN3F.js} +2 -2
- package/dist-cli/chunks/{auth-J3KZA5A6.js → auth-LM3QTK3U.js} +2 -2
- package/dist-cli/chunks/{beta-HY6A6NCH.js → beta-FYZFHWX5.js} +2 -2
- package/dist-cli/chunks/{camera-WUBTQ334.js → camera-UQDC4ALH.js} +2 -2
- package/dist-cli/chunks/{chunk-FFVU2PDZ.js → chunk-2ANXMVBO.js} +2 -2
- package/dist-cli/chunks/{chunk-T46RH3WF.js → chunk-2NOBSTP5.js} +1 -1
- package/dist-cli/chunks/{chunk-UJMOZCWO.js → chunk-2QVSKVOD.js} +2 -2
- package/dist-cli/chunks/{chunk-5M233QX4.js → chunk-3GQZOUFV.js} +1 -1
- package/dist-cli/chunks/{chunk-QT75KSQM.js → chunk-3WOVZJLU.js} +1 -1
- package/dist-cli/chunks/{chunk-BNQ72PAX.js → chunk-3XLVQ3GF.js} +1 -1
- package/dist-cli/chunks/{chunk-3CNTIEWQ.js → chunk-4YHMTHGT.js} +2 -2
- package/dist-cli/chunks/{chunk-SF53CD7P.js → chunk-65I23OCS.js} +2 -2
- package/dist-cli/chunks/{chunk-FPKWVCBQ.js → chunk-6IRBNOOV.js} +2 -2
- package/dist-cli/chunks/{chunk-S7BD2P6E.js → chunk-6UHHMD4E.js} +2 -2
- package/dist-cli/chunks/{chunk-ZK4IAIMS.js → chunk-7BTA6IWV.js} +1 -1
- package/dist-cli/chunks/{chunk-32A72KME.js → chunk-7C3OKBWI.js} +2 -2
- package/dist-cli/chunks/{chunk-YF2IN3VY.js → chunk-7DE3NNKL.js} +2 -2
- package/dist-cli/chunks/{chunk-CSDURW3F.js → chunk-7F56NHVF.js} +1 -1
- package/dist-cli/chunks/{chunk-JVSP44UG.js → chunk-A7ZEPRJ2.js} +1 -1
- package/dist-cli/chunks/{chunk-WUPOL43L.js → chunk-CE2KHJUN.js} +2 -2
- package/dist-cli/chunks/{chunk-VOEHSEKD.js → chunk-CGXAANRC.js} +2 -2
- package/dist-cli/chunks/{chunk-IFGVS2TC.js → chunk-DGMNOCZD.js} +1 -1
- package/dist-cli/chunks/{chunk-5VKPIWJZ.js → chunk-DWBZFEW4.js} +2 -2
- package/dist-cli/chunks/{chunk-2QMTL2EG.js → chunk-ELCODHRJ.js} +1 -1
- package/dist-cli/chunks/{chunk-7KZFMNBK.js → chunk-FANHU6DO.js} +1 -1
- package/dist-cli/chunks/{chunk-23ZU4FXX.js → chunk-GW56WWP6.js} +2 -2
- package/dist-cli/chunks/{chunk-SBWPE3WK.js → chunk-JSAH72EY.js} +1 -1
- package/dist-cli/chunks/{chunk-KXJU4MBT.js → chunk-JYRXXBPI.js} +1 -1
- package/dist-cli/chunks/{chunk-TSY2V2MP.js → chunk-KEGJOMDP.js} +1 -1
- package/dist-cli/chunks/{chunk-U4ZDIQ7L.js → chunk-KGICM2XE.js} +3 -3
- package/dist-cli/chunks/{chunk-3LV2SDTH.js → chunk-LBBG4KRO.js} +2 -2
- package/dist-cli/chunks/{chunk-PT3GNJQH.js → chunk-LIROKJ67.js} +2 -2
- package/dist-cli/chunks/{chunk-3CSXP2YE.js → chunk-LL2KBYX3.js} +2 -2
- package/dist-cli/chunks/{chunk-SHARS5CG.js → chunk-MB5ULVG6.js} +1 -1
- package/dist-cli/chunks/{chunk-EEE6UJHO.js → chunk-MB7JVBJU.js} +2 -2
- package/dist-cli/chunks/{chunk-RQ33WKLO.js → chunk-NAGC5CEK.js} +1 -1
- package/dist-cli/chunks/{chunk-XXCK3RR5.js → chunk-NSRMQ6FV.js} +1 -1
- package/dist-cli/chunks/{chunk-36JV4DV6.js → chunk-NTMUMXCK.js} +2 -2
- package/dist-cli/chunks/{chunk-FFLKQQG3.js → chunk-NTZY74WJ.js} +2 -2
- package/dist-cli/chunks/{chunk-3K5UE6UP.js → chunk-OFQYHISQ.js} +1 -1
- package/dist-cli/chunks/{chunk-POHL75MH.js → chunk-OQRKG2P4.js} +2 -2
- package/dist-cli/chunks/{chunk-4IN6R33C.js → chunk-PD4P6QHH.js} +2 -2
- package/dist-cli/chunks/{chunk-TQHZJZY2.js → chunk-PFOKZTPT.js} +2 -2
- package/dist-cli/chunks/{chunk-DKBKKGFO.js → chunk-Q6MFP4GM.js} +2 -2
- package/dist-cli/chunks/{chunk-POSOP6PZ.js → chunk-QCJJ6JFE.js} +1 -1
- package/dist-cli/chunks/{chunk-HHLWR6VA.js → chunk-QDA7WBVP.js} +2 -2
- package/dist-cli/chunks/{chunk-QE4NGEPT.js → chunk-QEYTEHPY.js} +2 -2
- package/dist-cli/chunks/{chunk-S6NS2TKN.js → chunk-QSG5HOZY.js} +3 -3
- package/dist-cli/chunks/{chunk-4I2CJZN5.js → chunk-TCSYA6ZZ.js} +2 -2
- package/dist-cli/chunks/{chunk-WHNMPF54.js → chunk-TPMNXUJG.js} +2 -2
- package/dist-cli/chunks/{chunk-4PKAKFQK.js → chunk-UYQQFHDT.js} +1 -1
- package/dist-cli/chunks/{chunk-NAQPR53B.js → chunk-V55REGJU.js} +2 -2
- package/dist-cli/chunks/{chunk-XVSFRPTA.js → chunk-XXE5T2Y4.js} +2 -2
- package/dist-cli/chunks/{chunk-7VJZ6B4X.js → chunk-YLVQZKVD.js} +1 -1
- package/dist-cli/chunks/{chunk-VWDGEDEZ.js → chunk-YZFQB7QN.js} +2 -2
- package/dist-cli/chunks/{chunk-CZC6KUTW.js → chunk-ZC2AAKPI.js} +3 -3
- package/dist-cli/chunks/{chunk-NHCFCFAV.js → chunk-ZHMEYZXY.js} +3 -3
- package/dist-cli/chunks/{cleanup-DE64XSKX.js → cleanup-ON3E4JL6.js} +2 -2
- package/dist-cli/chunks/cli-version-GLQEMIXG.js +4 -0
- package/dist-cli/chunks/{compat-5GC6MAPX.js → compat-CKMXRYA4.js} +2 -2
- package/dist-cli/chunks/{config-7CUM23NN.js → config-X4WIKW3I.js} +2 -2
- package/dist-cli/chunks/{control-YTLWJKDP.js → control-A5ZZW5EU.js} +2 -2
- package/dist-cli/chunks/daemon-W2CJ26LR.js +4 -0
- package/dist-cli/chunks/{debug-VZP6SDUP.js → debug-3F3PSBPT.js} +3 -3
- package/dist-cli/chunks/{desktop-T33XW3GD.js → desktop-SEJJPJ3V.js} +3 -3
- package/dist-cli/chunks/{detox-LUOUH3C3.js → detox-QIYTPSDJ.js} +2 -2
- package/dist-cli/chunks/{device-FXRQXNG5.js → device-RQRRQTCO.js} +2 -2
- package/dist-cli/chunks/{diagnose-WHGCL34L.js → diagnose-5XDTCE65.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-ELTLACVP.js → disk-cleanup-TWXUCTQK.js} +2 -2
- package/dist-cli/chunks/drivers-KFM577QG.js +4 -0
- package/dist-cli/chunks/{film-6LQAQS57.js → film-B635EXRH.js} +3 -3
- package/dist-cli/chunks/flow-MDX2RDFB.js +4 -0
- package/dist-cli/chunks/help-WLKSYDIZ.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-NBGWRK47.js → hidden-runtime-alias-F7HACNCM.js} +2 -2
- package/dist-cli/chunks/{home-paths-RZP2L3BB.js → home-paths-CAGGHUP5.js} +2 -2
- package/dist-cli/chunks/inspect-5YNOPNYF.js +4 -0
- package/dist-cli/chunks/install-desktop-BA2GDZ6R.js +4 -0
- package/dist-cli/chunks/{login-H2HWC5RU.js → login-F3SDVGFK.js} +4 -4
- package/dist-cli/chunks/{logout-S44WRVP3.js → logout-5QBBOBVF.js} +2 -2
- package/dist-cli/chunks/{maestro-U5SBE2HV.js → maestro-ARCXV6EH.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-TBUZDLAF.js → maestro-generate-OCTJPXNW.js} +3 -3
- package/dist-cli/chunks/{mode-37QVQ7OI.js → mode-SZXV7VMA.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-SNKYXLAT.js → optional-demo-registry-M7QJADLQ.js} +2 -2
- package/dist-cli/chunks/{perf-KQQWKUW3.js → perf-4HS5IOL7.js} +2 -2
- package/dist-cli/chunks/{permissions-MVK4QOEY.js → permissions-NVGYFJZL.js} +2 -2
- package/dist-cli/chunks/{record-NNTQCAJ3.js → record-LN3YDVDM.js} +3 -3
- package/dist-cli/chunks/{report-issue-UOEECDRT.js → report-issue-JNMZO232.js} +2 -2
- package/dist-cli/chunks/reset-TGFAY754.js +4 -0
- package/dist-cli/chunks/runtime-WTDD5CIV.js +4 -0
- package/dist-cli/chunks/{screenshot-command-KLVX7P24.js → screenshot-command-X6ATRVDW.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-ISGWVQPM.js → screenshot-layers-6PXNEVPM.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-WNJ4TWJ4.js → screenshots-capture-BFEHOILE.js} +2 -2
- package/dist-cli/chunks/{serve-M3QTPA55.js → serve-QDSSCYVS.js} +2 -2
- package/dist-cli/chunks/{setup-H5XFNCVF.js → setup-MTQUOG7U.js} +2 -2
- package/dist-cli/chunks/{skills-OVKZPWM5.js → skills-EIIZDHXN.js} +2 -2
- package/dist-cli/chunks/{state-4UZM32TR.js → state-ZF6VTLHG.js} +2 -2
- package/dist-cli/chunks/{storage-YWXATWMC.js → storage-NXFVH4X4.js} +2 -2
- package/dist-cli/chunks/store-7FNPDD2N.js +4 -0
- package/dist-cli/chunks/telemetry-6PHXRU4L.js +4 -0
- package/dist-cli/chunks/{timeline-H6FCOHPR.js → timeline-MZPEKVIX.js} +2 -2
- package/dist-cli/chunks/{upgrade-BYXH7RHT.js → upgrade-TUE2UOWE.js} +2 -2
- package/dist-cli/chunks/upload-QC572ITM.js +4 -0
- package/dist-cli/chunks/{version-A2VOC5DI.js → version-MDQABDC6.js} +2 -2
- package/dist-cli/chunks/{web-BAOBEDHH.js → web-OWNPYPJE.js} +2 -2
- package/dist-cli/chunks/{what-happened-HIG4KHRX.js → what-happened-EL6RNNAK.js} +2 -2
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +1 -1
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro.cjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.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 +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/cli-version-4PHX7SM2.js +0 -4
- package/dist-cli/chunks/daemon-HCWJYO7Y.js +0 -4
- package/dist-cli/chunks/drivers-ALZ2DI7E.js +0 -4
- package/dist-cli/chunks/flow-DAZJNZUQ.js +0 -4
- package/dist-cli/chunks/help-GW42ZLG5.js +0 -4
- package/dist-cli/chunks/inspect-NA6HUTGV.js +0 -4
- package/dist-cli/chunks/install-desktop-VCLGTXMR.js +0 -4
- package/dist-cli/chunks/reset-NMSCZFR5.js +0 -4
- package/dist-cli/chunks/runtime-752LLHT5.js +0 -4
- package/dist-cli/chunks/store-6BKOI4J4.js +0 -4
- package/dist-cli/chunks/telemetry-E4UF7OTF.js +0 -4
- package/dist-cli/chunks/upload-AD43GTK2.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as f,b as S}from"./chunk-
|
|
4
|
+
import{a as f,b as S}from"./chunk-7BTA6IWV.js";import{a as y,c as P}from"./chunk-NTMUMXCK.js";import{a as v}from"./chunk-3GQZOUFV.js";import{b}from"./chunk-JYRXXBPI.js";function M(){let e=f();return e?{available:!0,reason:null,detail:`${e.kind} @ ${e.path}`}:{available:!1,reason:"rnxsim desktop app not installed (run `rnxsim desktop install`)"}}async function A(e){let o=f();if(!o)return{launched:!1,message:"rnxsim desktop app not installed"};try{let r=await S(e.url,o,{device:e.device,profileId:e.profileId,ephemeralProfile:e.ephemeralProfile,ownerPid:e.ownerPid});return r.launched?{launched:!0,message:e.url?`electron launched via ${r.via} \u2192 ${e.url}`:`electron launched via ${r.via}`,target:r.target,attachUrl:e.url}:{launched:!1,message:"desktop companion failed to start"}}catch(r){return{launched:!1,message:`electron launch failed: ${r instanceof Error?r.message:String(r)}`}}}var k={id:"electron",name:"electron",description:"rnxsim desktop companion app (native window, menu bar)",kind:"native",availability:M,launch:A};import{spawn as B}from"child_process";import{closeSync as F,mkdtempSync as G,openSync as U,readFileSync as q}from"fs";import{tmpdir as T}from"os";import{join as I}from"path";import{spawnSync as O}from"node:child_process";import{existsSync as _,readFileSync as R}from"node:fs";import{createRequire as L}from"node:module";import{dirname as W,join as N}from"node:path";var $=`
|
|
5
5
|
const { existsSync } = require('node:fs');
|
|
6
6
|
const modulePath = process.env.SOOTSIM_PW_MODULE;
|
|
7
7
|
try {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
4
|
var c="sootsim-agent-prompt-v1";function r(n){return typeof n=="string"?n.trim():""}function m(n){let e=r(n.text);if(!e)return"";let t=r(n.displayText),s=r(n.inspectSummary),o=r(n.inspectTrace);return!!s||!!o||/[\r\n]/.test(e)||!!t&&t!==e?JSON.stringify({__sootsimAgentPrompt:c,text:e,displayText:t,inspectSummary:s,inspectTrace:o}):e}function u(n){let e=r(n);if(!e)return null;try{let t=JSON.parse(e);if(t.__sootsimAgentPrompt!==c)return{text:e};let s=r(typeof t.text=="string"?t.text:void 0);if(!s)return null;let o=r(typeof t.displayText=="string"?t.displayText:void 0),i=r(typeof t.inspectSummary=="string"?t.inspectSummary:void 0),p=r(typeof t.inspectTrace=="string"?t.inspectTrace:void 0);return{text:s,...o?{displayText:o}:{},...i?{inspectSummary:i}:{},...p?{inspectTrace:p}:{}}}catch{return{text:e}}}export{m as a,u as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
4
|
var m={"--help":{type:"boolean",short:"-h"},"--version":{type:"boolean",short:"-V"},"--verbose":{type:"boolean",short:"-v"},"--port":{type:"number",short:"-p"},"--device":{type:"string",short:"-d"},"--theme":{type:"string",short:"-t"},"--headless":{type:"boolean"},"--driver":{type:"string"},"--sim":{type:"string"},"--session":{type:"string"},"--tab":{type:"string"}},p=new Set(["list","describe","find","get","do","wait","network","logs","shell"]),b=new Set(["do","get","wait","shell","debug"]),d=new Set(["detox","maestro","record","film","storage","permissions","perf","screenshot","state","reset","camera","mode","debug","timeline","what-happened","shell","assert","device","open","list","use","claim","close","compat","report-issue","desktop","login","logout","auth","setup","serve","daemon","runtime","upgrade","version","skill","config","cleanup","app-fonts","agent-wrapper","agent",...p]);function u(c){let n=c.slice(2),e={command:null,commandArgs:[],globalFlags:{},help:!1,version:!1,verbose:!1},s=0;for(;s<n.length;){let o=n[s];if(o==="--"){e.commandArgs.push(...n.slice(s+1));break}let i=Object.entries(m).find(([a,r])=>a===o||r.short===o);if(i){let[a,r]=i,l=a.replace(/^--/,"");if(r.type==="boolean")e.globalFlags[l]=!0,s++;else{let t=n[s+1];if(t===void 0||t.startsWith("-")){console.error(` warning: ${o} requires a value`),s++;continue}if(r.type==="number"){let g=Number(t);if(Number.isNaN(g)){console.error(` warning: ${o} requires a number, got "${t}"`),s+=2;continue}e.globalFlags[l]=g}else e.globalFlags[l]=t;s+=2}continue}if(!e.command&&!o.startsWith("-")){let a=o.indexOf("-");if(a>0){let r=o.slice(0,a),l=o.slice(a+1);if(b.has(r)&&l.length>0){e.command=r;let t=n.slice(s+1);e.commandArgs=[l,...t[0]==="--"?t.slice(1):t];break}}if(d.has(o)){e.command=o;let r=n.slice(s+1);e.commandArgs=r[0]==="--"?r.slice(1):r;break}e.commandArgs=n.slice(s);break}e.commandArgs.push(o),s++}return e.help=!!e.globalFlags.help,e.version=!!e.globalFlags.version,e.verbose=!!e.globalFlags.verbose,e}export{p as a,u as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{I as m,o as P,q as a}from"./chunk-
|
|
4
|
+
import{I as m,o as P,q as a}from"./chunk-7F56NHVF.js";import l from"fs";import c from"path";var s="default",S="profiles.json",i=1;function o(e){let r=e.trim();if(!r)throw new Error("profile id is required");if(!/^[A-Za-z0-9][A-Za-z0-9._-]*$/.test(r))throw new Error("profile ids must start with a letter or number and contain only letters, numbers, dot, dash, or underscore");if(r==="."||r==="..")throw new Error(`invalid profile id: ${r}`);return r}function d(){return c.join(a(),S)}function I(e){return`sootsim-profile-${o(e)}`}function h(e){return c.join(P(),"Partitions",I(e))}function A(e){return c.join(a(),"playwright",o(e))}function u(){try{let e=JSON.parse(l.readFileSync(d(),"utf8"));if(!e||e.version!==i)return{version:i,profiles:[]};let r=Array.isArray(e.profiles)?e.profiles.filter(t=>!!t&&typeof t.id=="string"&&typeof t.createdAt=="string"&&typeof t.updatedAt=="string").map(t=>({id:o(t.id),createdAt:t.createdAt,updatedAt:t.updatedAt})):[];return{version:i,profiles:r}}catch{return{version:i,profiles:[]}}}function x(e){return[...e].sort((r,t)=>r.id===s?-1:t.id===s?1:r.id.localeCompare(t.id))}function p(e){if(e.profiles.some(t=>t.id===s))return{...e,profiles:x(e.profiles)};let r=new Date().toISOString();return{version:i,profiles:x([{id:s,createdAt:r,updatedAt:r},...e.profiles])}}function g(e){m();let r=p(e),t=`${d()}.tmp`;return l.writeFileSync(t,`${JSON.stringify(r,null,2)}
|
|
5
5
|
`,"utf8"),l.renameSync(t,d()),r}function y(){return g(u()).profiles}function E(e){let r=o(e);return y().find(t=>t.id===r)??null}function _(e=s){let r=o(e),t=E(r);return t||D(r)}function D(e){let r=o(e),t=p(u());if(t.profiles.some(w=>w.id===r))throw new Error(`profile already exists: ${r}`);let f=new Date().toISOString(),n={id:r,createdAt:f,updatedAt:f};return g({version:i,profiles:[...t.profiles,n]}),n}function F(e){let r=o(e);if(r===s)throw new Error("the default profile cannot be deleted; clear it instead");let t=p(u()),f=t.profiles.find(n=>n.id===r);if(!f)throw new Error(`profile not found: ${r}`);return g({version:i,profiles:t.profiles.filter(n=>n.id!==r)}),v(r),f}function v(e){let r=o(e);for(let t of[h(r),A(r)])try{l.rmSync(t,{recursive:!0,force:!0})}catch{}}export{A as a,y as b,_ as c,D as d,F as e,v as f};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{q as j,s as A,v as K,w as v}from"./chunk-
|
|
4
|
+
import{q as j,s as A,v as K,w as v}from"./chunk-4YHMTHGT.js";import{createHash as Y}from"node:crypto";import{mkdirSync as L,readFileSync as W,readdirSync as Q,unlinkSync as X,writeFileSync as D}from"node:fs";import{dirname as q,extname as Z,resolve as B}from"node:path";function H(t){let e=t[0]?.toLowerCase()??"toggle";return e!=="on"&&e!=="off"&&e!=="toggle"&&(console.error(` unknown argument: "${e}" (expected on | off | toggle)`),process.exit(1)),e}async function U(t,e,n){let o=j(t,{port:e.port}),i=H(o.positional),m=A({...o,commandTimeoutMs:5e3});try{let a=!!(await K(m,"SootSim.bridges.settings.get"))?.[n.modeKey],u=i==="on"?!0:i==="off"?!1:!a;if(a===u)return console.log(` ${n.displayName}: already ${u?"on":"off"}`),{current:a,target:u,changed:!1};if(!await m.send({type:"evaluate",acquireLock:!0,code:`(async () => {
|
|
5
5
|
const modeKey = ${JSON.stringify(n.modeKey)}
|
|
6
6
|
const target = ${JSON.stringify(u)}
|
|
7
7
|
window.dispatchEvent(new CustomEvent('sootsim:shell-command', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as c}from"./chunk-
|
|
4
|
+
import{a as c}from"./chunk-QCJJ6JFE.js";import{a as i}from"./chunk-6IRBNOOV.js";import{a as n}from"./chunk-FANHU6DO.js";import{createRequire as f}from"node:module";import{createJiti as s}from"jiti";var m=f(import.meta.url);function t(e){return e===void 0||e!==null&&typeof e=="object"&&!Array.isArray(e)}function p(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let o=Reflect.get(e,"runtimeVersion"),r=Reflect.get(e,"network");return(o===void 0||typeof o=="string"&&o===o.trim()&&i(o))&&t(Reflect.get(e,"modules"))&&t(Reflect.get(e,"turboModules"))&&t(Reflect.get(e,"nativeModules"))&&t(Reflect.get(e,"env"))&&t(r)&&t(Reflect.get(e,"settings"))&&t(Reflect.get(e,"initialState"))}async function a(e){if(e?.configPath)try{let r=await s(import.meta.url,{interopDefault:!0,alias:{[`${n.packageName}/config`]:m.resolve(`${n.packageName}/config`)}}).import(e.configPath,{default:!0});if(!p(r))throw new Error("the default export must be an rnx config object");return r}catch(o){let r=o instanceof Error?o.message:String(o);throw new Error(`could not load ${e.configPath}: ${r}`)}}async function R(e=process.cwd()){let o=c(e);return{project:o,config:await a(o)}}export{a,R as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{o as d}from"./chunk-
|
|
4
|
+
import{o as d}from"./chunk-7F56NHVF.js";import{chmodSync as S,existsSync as f,mkdirSync as A,readFileSync as k,rmSync as o,writeFileSync as y}from"node:fs";import{dirname as c,join as D,resolve as m}from"node:path";var s=1,p="SOOTSIM_SHARED_AUTH_FILE",u="https://contrast.dev";function w(){let t=process.env[p];return t?.trim()?c(m(t)):d()}function a(){let t=process.env[p];return t?.trim()?m(t):D(w(),"desktop-auth.json")}function g(t){if(!t||typeof t!="object")return null;let e=t;return typeof e.id!="string"||!e.id.trim()?null:{id:e.id.trim(),name:typeof e.name=="string"?e.name:void 0,email:typeof e.email=="string"?e.email:void 0,image:typeof e.image=="string"?e.image:void 0,githubUsername:typeof e.githubUsername=="string"?e.githubUsername:void 0,isAdmin:e.isAdmin===!0,teams:Array.isArray(e.teams)?e.teams.map(r=>{if(!r||typeof r!="object")return null;let n=r;return typeof n.id!="string"||typeof n.name!="string"?null:{id:n.id,name:n.name,role:n.role==="owner"?"owner":"member",githubOrg:typeof n.githubOrg=="string"?n.githubOrg:null}}).filter(r=>!!r):void 0}}function v(t){if(!t||typeof t!="object")return null;let e=t;if(e.version!==s||typeof e.token!="string"||!e.token.trim())return null;let r=typeof e.origin=="string"&&e.origin.trim()?e.origin.trim():u,n=e.source==="cli"||e.source==="electron"||e.source==="browser"||e.source==="unknown"?e.source:"unknown",i=typeof e.updatedAt=="string"&&e.updatedAt?e.updatedAt:new Date().toISOString(),h=typeof e.validatedAt=="string"&&e.validatedAt?e.validatedAt:void 0;return{version:s,token:e.token.trim(),user:g(e.user),origin:r,source:n,updatedAt:i,validatedAt:h}}function b(){let t=a();if(!f(t))return null;try{let e=JSON.parse(k(t,"utf8")),r=v(e);return r||(o(t,{force:!0}),null)}catch{return o(t,{force:!0}),null}}function O(t){let e=a();A(c(e),{recursive:!0});let r={version:s,token:t.token.trim(),user:t.user?g(t.user):null,origin:t.origin?.trim()||u,source:t.source,updatedAt:t.updatedAt||new Date().toISOString(),validatedAt:t.validatedAt};y(e,JSON.stringify(r,null,2)+`
|
|
5
5
|
`);try{S(e,384)}catch{}return r}function l(){o(a(),{force:!0})}async function E(t){let e=b();if(!e?.token)return null;let r=t||e.origin||u;try{let n=await fetch(`${r.replace(/\/$/,"")}/api/auth/me`,{headers:{authorization:`Bearer ${e.token}`}});if(n.status===401)return l(),null;if(!n.ok)return e;let i=await n.json();return i.user?.id?O({token:e.token,user:i.user,origin:r,source:e.source,validatedAt:new Date().toISOString()}):(l(),null)}catch{return e}}export{b as a,O as b,l as c,E as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.322 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
3
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a}from"./chunk-
|
|
4
|
+
import{a}from"./chunk-PD4P6QHH.js";import{C as l,E as u}from"./chunk-7F56NHVF.js";var c=/^[A-Za-z0-9._:-]{1,160}$/;function T(e){if(!e?.startsWith("TM_SESSION:"))return null;let n=e.slice(11).trim();return c.test(n)?n:null}function p(e){return c.test(e)}function f(){let e=process.env.DO_NOT_TRACK;return e==="1"||e==="true"||!l().productAnalytics}function m(){if(f())return null;let e=process.env.VITE_POSTHOG_API_KEY||"";if(!e)return null;let n=process.env.CONTRAST_POSTHOG_HOST||process.env.VITE_POSTHOG_HOST||"https://us.i.posthog.com";return{apiKey:e,host:n.replace(/\/+$/,"")}}function d(){try{return u()}catch{return"anonymous-cli"}}function S(e){return e?e.userId?e.userId:e.installationId!=null?`install:${e.installationId}`:e.repoId?`repo:${e.repoId}`:e.shareId?`share:${e.shareId}`:d():d()}function h(e){let n=e.identity??{},o=process.env.TM_SESSION,s=o&&p(o)?"team-machine":process.env.CI==="1"||process.env.CI==="true"||process.env.GITHUB_ACTIONS==="true"?"ci":null,t={$lib:"sootsim-cli",source:n.source??"cli",...e.properties,traffic_type:s?"automated":"human",is_automated:s!==null,...s?{automation_source:s}:{}};return n.userId&&(t.userId=n.userId),n.repoId&&(t.repoId=n.repoId),n.installationId!=null&&(t.installationId=String(n.installationId)),n.shareId&&(t.shareId=n.shareId),n.plan&&(t.plan=n.plan),{event:e.event,distinct_id:S(n),properties:t,timestamp:new Date().toISOString()}}var r=[],I=!1;async function i(){if(r.length===0)return;let e=m();if(!e){r.length=0;return}let n=r.splice(0,r.length).map(h);try{await fetch(`${e.host}/batch/`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({api_key:e.apiKey,batch:n}),signal:AbortSignal.timeout(2e3)})}catch{}}function g(){I||(I=!0,process.on("beforeExit",()=>void i()),process.on("exit",()=>void i()))}function C(e){if(f())return;g();let n=null;try{n=a()?.user?.id??null}catch{n=null}r.push({...e,identity:{source:"cli",userId:n,...e.identity}})}async function E(){await i()}export{T as a,p as b,C as c,E as d};
|