rnxsim 0.1.375 → 0.1.377
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/README.md +28 -25
- package/cli/app-config.ts +9 -12
- package/cli/app-fonts.ts +3 -3
- package/cli/app-project.ts +8 -8
- package/cli/auth.ts +7 -9
- package/cli/bin.ts +16 -31
- package/cli/bridge-flow-runner.ts +3 -3
- package/cli/browser-backend.ts +44 -0
- package/cli/command-contract.ts +221 -0
- package/cli/command-registry.ts +291 -0
- package/cli/commands/agent-wrapper.ts +2 -2
- package/cli/commands/app-fonts.ts +2 -2
- package/cli/commands/assert.ts +3 -3
- package/cli/commands/auth.ts +1 -1
- package/cli/commands/box/cloud-box.ts +1 -1
- package/cli/commands/box/plane-share.ts +2 -2
- package/cli/commands/box.ts +4 -6
- package/cli/commands/compat.ts +1 -1
- package/cli/commands/config.ts +2 -2
- package/cli/commands/control.ts +42 -28
- package/cli/commands/cpu-profile.ts +7 -7
- package/cli/commands/daemon-mac-app.ts +7 -7
- package/cli/commands/daemon.ts +10 -10
- package/cli/commands/debug.ts +11 -11
- package/cli/commands/detox.ts +13 -13
- package/cli/commands/diagnose.ts +6 -6
- package/cli/commands/do-chain.ts +1 -2
- package/cli/commands/electron.ts +1 -3
- package/cli/commands/film.ts +3 -3
- package/cli/commands/flow.ts +43 -43
- package/cli/commands/inspect/count.ts +1 -1
- package/cli/commands/inspect/describe.ts +1 -1
- package/cli/commands/inspect/env.ts +2 -2
- package/cli/commands/inspect/get-layout.ts +1 -1
- package/cli/commands/inspect/keyboard.ts +1 -1
- package/cli/commands/inspect/list.ts +1 -1
- package/cli/commands/inspect/memory.ts +1 -1
- package/cli/commands/inspect/resolve-target.ts +1 -1
- package/cli/commands/inspect/screens.ts +1 -1
- package/cli/commands/inspect/tree.ts +1 -1
- package/cli/commands/inspect/url.ts +1 -1
- package/cli/commands/inspect/wait-event.ts +5 -5
- package/cli/commands/inspect.ts +34 -34
- package/cli/commands/install-desktop.ts +3 -3
- package/cli/commands/login.ts +6 -6
- package/cli/commands/maestro-generate.ts +5 -5
- package/cli/commands/maestro.ts +5 -5
- package/cli/commands/profile.ts +1 -1
- package/cli/commands/record.ts +9 -9
- package/cli/commands/runtime.ts +18 -18
- package/cli/commands/screenshot-command.ts +1 -1
- package/cli/commands/screenshot-layers.ts +5 -5
- package/cli/commands/screenshot-mode.ts +1 -1
- package/cli/commands/screenshot.ts +8 -8
- package/cli/commands/screenshots-capture.ts +5 -5
- package/cli/commands/serve.ts +3 -3
- package/cli/commands/setup.ts +20 -12
- package/cli/commands/skills.ts +5 -5
- package/cli/commands/slides.ts +1 -1
- package/cli/commands/telemetry.ts +1 -1
- package/cli/commands/three-mode.ts +1 -1
- package/cli/commands/timeline.ts +8 -8
- package/cli/commands/upgrade.ts +116 -131
- package/cli/commands/upload.ts +12 -12
- package/cli/commands/version.ts +7 -7
- package/cli/commands/what-happened.ts +9 -9
- package/cli/current-sim.ts +3 -3
- package/cli/desktop-companion.ts +1 -1
- package/cli/drivers/playwright.ts +9 -9
- package/cli/drivers/registry.ts +1 -1
- package/cli/drivers/types.ts +1 -1
- package/cli/flow-file.ts +2 -2
- package/cli/flow-session.ts +1 -1
- package/cli/help-core.ts +136 -0
- package/cli/help.ts +17 -53
- package/cli/hints.ts +5 -5
- package/cli/inspect-notice-state.ts +1 -1
- package/cli/maestro-js.ts +1 -1
- package/cli/outbound-endpoints.ts +23 -5
- package/cli/parse-args.ts +19 -66
- package/cli/recording-access.ts +1 -1
- package/cli/registry.ts +1 -0
- package/cli/run-registry.ts +1 -1
- package/cli/run-rnx-core.ts +148 -0
- package/cli/run-rnx.ts +6 -9
- package/cli/runtime-notes.ts +3 -3
- package/cli/standalone.ts +4 -0
- package/cli/ws-bridge.ts +8 -8
- package/detox/config-loader.ts +2 -2
- package/detox/index.ts +8 -8
- package/detox/jest-preset.cjs +1 -1
- package/detox/navigation.ts +2 -2
- package/dist-lib/agent-daemon-client.cjs +5 -5
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +2 -2
- package/dist-lib/agent-sessions.cjs +10 -10
- package/dist-lib/attached-projects.cjs +6 -6
- package/dist-lib/auth/shared-session.cjs +6 -6
- 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-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +1 -1
- package/dist-lib/config.cjs +25 -25
- package/dist-lib/detox/index.cjs +9 -9
- package/dist-lib/detox/jest-preset.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/home-paths.cjs +29 -29
- package/dist-lib/host/bridge-host.cjs +274 -181
- 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/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +14 -14
- 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-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +8 -8
- package/dist-lib/profiles.cjs +12 -12
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +25 -11
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +470 -322
- package/dist-lib/vite.cjs +9 -9
- package/package.json +4 -11
- package/scripts/dev-server-scanner.ts +25 -7
- package/scripts/optional-demo-registry.ts +1 -1
- package/skills/contrast/SKILL.md +3 -3
- package/skills/rnx-debug/SKILL.md +1 -1
- package/skills/rnx-test/SKILL.md +2 -2
- package/src/agent-identity.ts +1 -1
- package/src/agent-sessions.ts +7 -5
- package/src/cli-version.ts +12 -4
- package/src/config.ts +26 -28
- package/src/disk-cleanup.ts +11 -11
- package/src/home-paths.ts +28 -28
- package/src/host/bridge-host.ts +16 -16
- package/src/metro-plugin.ts +2 -2
- package/src/profiles.ts +2 -2
- package/src/runtime-assets.ts +7 -7
- package/src/runtime-delivery.ts +13 -13
- package/src/screenshots/orchestrate.ts +1 -1
- package/src/screenshots/schema.ts +2 -2
- package/src/skills/builtin/a11y-review.ts +2 -2
- package/src/skills/builtin/compat-check.ts +2 -2
- package/src/skills/builtin/maestro-test.ts +2 -2
- package/src/skills/builtin/perf-profile.ts +2 -2
- package/src/skills/builtin/screenshot-all.ts +2 -2
- package/src/skills/builtin/visual-diff.ts +2 -2
- package/src/skills/registry.ts +8 -8
- package/src/skills/types.ts +1 -1
- package/src/vite-plugin-one.ts +3 -3
- package/src/vite-plugin.ts +15 -2
- package/dist-cli/bin.js +0 -15
- package/dist-cli/chunks/agent-JJN7U6FR.js +0 -48
- package/dist-cli/chunks/agent-wrapper-AVVUJ3WF.js +0 -17
- package/dist-cli/chunks/app-fonts-QJ22CNAZ.js +0 -4
- package/dist-cli/chunks/assert-PZZKIY3K.js +0 -49
- package/dist-cli/chunks/auth-5AVDJO33.js +0 -12
- package/dist-cli/chunks/beta-PFRGP266.js +0 -4
- package/dist-cli/chunks/box-ILC2O7ZO.js +0 -1730
- package/dist-cli/chunks/camera-J3V62PP7.js +0 -33
- package/dist-cli/chunks/chunk-25KRGDZT.js +0 -4
- package/dist-cli/chunks/chunk-2BRBFLWA.js +0 -38
- package/dist-cli/chunks/chunk-2GXNAZHB.js +0 -74
- package/dist-cli/chunks/chunk-2IUMRRYV.js +0 -7
- package/dist-cli/chunks/chunk-4ALPWIMP.js +0 -10
- package/dist-cli/chunks/chunk-4CEZZKRY.js +0 -4
- package/dist-cli/chunks/chunk-4EUKOIAV.js +0 -4
- package/dist-cli/chunks/chunk-4IKE4YUS.js +0 -32
- package/dist-cli/chunks/chunk-4ZXR2M3D.js +0 -4
- package/dist-cli/chunks/chunk-5CGJFU27.js +0 -7
- package/dist-cli/chunks/chunk-5HHWECGT.js +0 -4
- package/dist-cli/chunks/chunk-5PZVYF42.js +0 -312
- package/dist-cli/chunks/chunk-7NCPUZ52.js +0 -27
- package/dist-cli/chunks/chunk-7OSIJCBR.js +0 -107
- package/dist-cli/chunks/chunk-AQ5TMOAI.js +0 -4
- package/dist-cli/chunks/chunk-BQCEI37V.js +0 -5
- package/dist-cli/chunks/chunk-C6B5FOP3.js +0 -4
- package/dist-cli/chunks/chunk-CCMZSHJB.js +0 -71
- package/dist-cli/chunks/chunk-CX7VCKAT.js +0 -14
- package/dist-cli/chunks/chunk-DQUPSAHE.js +0 -4
- package/dist-cli/chunks/chunk-DSD2UBZI.js +0 -4
- package/dist-cli/chunks/chunk-EWPAI4MO.js +0 -7
- package/dist-cli/chunks/chunk-EZXV6U2N.js +0 -497
- package/dist-cli/chunks/chunk-F5F7FIPM.js +0 -6
- package/dist-cli/chunks/chunk-FUTYK55H.js +0 -30
- package/dist-cli/chunks/chunk-FW6AN7I2.js +0 -3
- package/dist-cli/chunks/chunk-FZDRA7Z4.js +0 -4
- package/dist-cli/chunks/chunk-GDLE4NIV.js +0 -4
- package/dist-cli/chunks/chunk-GEX7RVHY.js +0 -5
- package/dist-cli/chunks/chunk-H4MYYOYJ.js +0 -5
- package/dist-cli/chunks/chunk-HEV7BAPE.js +0 -11
- package/dist-cli/chunks/chunk-HNDWYCND.js +0 -506
- package/dist-cli/chunks/chunk-HNPHODBD.js +0 -4
- package/dist-cli/chunks/chunk-HWDVC6YA.js +0 -11
- package/dist-cli/chunks/chunk-JOHJZUGG.js +0 -4
- package/dist-cli/chunks/chunk-JWUDT4QK.js +0 -5
- package/dist-cli/chunks/chunk-K7QQWKGE.js +0 -4
- package/dist-cli/chunks/chunk-LAOKTKT4.js +0 -4
- package/dist-cli/chunks/chunk-LD7I266X.js +0 -24
- package/dist-cli/chunks/chunk-LMHBU5LZ.js +0 -4
- package/dist-cli/chunks/chunk-LSOGXSDV.js +0 -535
- package/dist-cli/chunks/chunk-MP2GPO4T.js +0 -4
- package/dist-cli/chunks/chunk-MXJ2UWRV.js +0 -4
- package/dist-cli/chunks/chunk-OJNKRIZF.js +0 -15
- package/dist-cli/chunks/chunk-PBOWUNXO.js +0 -4
- package/dist-cli/chunks/chunk-PNRJFHX4.js +0 -4
- package/dist-cli/chunks/chunk-QJQOK34O.js +0 -28
- package/dist-cli/chunks/chunk-RLCQLMFF.js +0 -142
- package/dist-cli/chunks/chunk-S65CK3RI.js +0 -9
- package/dist-cli/chunks/chunk-SWBUNMQS.js +0 -4
- package/dist-cli/chunks/chunk-SXBFGGAM.js +0 -4
- package/dist-cli/chunks/chunk-T4ISWS5H.js +0 -4
- package/dist-cli/chunks/chunk-TPPVAA7Z.js +0 -5
- package/dist-cli/chunks/chunk-USM3P74H.js +0 -4
- package/dist-cli/chunks/chunk-V4EJJHF5.js +0 -4
- package/dist-cli/chunks/chunk-V7RGRZOL.js +0 -423
- package/dist-cli/chunks/chunk-XUBV77WH.js +0 -130
- package/dist-cli/chunks/chunk-XYSDYGKC.js +0 -4
- package/dist-cli/chunks/chunk-YNHRSDVG.js +0 -5
- package/dist-cli/chunks/chunk-YX52RJKO.js +0 -4
- package/dist-cli/chunks/chunk-Z5O5H4O7.js +0 -99
- package/dist-cli/chunks/chunk-Z6LOIW46.js +0 -7
- package/dist-cli/chunks/chunk-ZXFVBYJY.js +0 -5
- package/dist-cli/chunks/cleanup-KPUW4SFK.js +0 -25
- package/dist-cli/chunks/cli-version-APGT6GAT.js +0 -4
- package/dist-cli/chunks/compat-XXRFD2TW.js +0 -23
- package/dist-cli/chunks/config-DDMFDQ7F.js +0 -13
- package/dist-cli/chunks/connect-IPG47YXM.js +0 -4
- package/dist-cli/chunks/control-O22Z3UJ5.js +0 -4
- package/dist-cli/chunks/daemon-PADUIMJV.js +0 -4
- package/dist-cli/chunks/debug-MYIP46TM.js +0 -200
- package/dist-cli/chunks/desktop-ENFFBQAA.js +0 -31
- package/dist-cli/chunks/detox-J5WVK6OH.js +0 -52
- package/dist-cli/chunks/device-RAVQVL75.js +0 -18
- package/dist-cli/chunks/diagnose-PJMPXKJY.js +0 -43
- package/dist-cli/chunks/disk-cleanup-YLAY445J.js +0 -4
- package/dist-cli/chunks/do-chain-UBE7GIOU.js +0 -5
- package/dist-cli/chunks/drivers-ZFNX3T5Z.js +0 -4
- package/dist-cli/chunks/env-Y5XJSNRD.js +0 -4
- package/dist-cli/chunks/film-W3V6VURB.js +0 -74
- package/dist-cli/chunks/flow-VMLI7BYM.js +0 -4
- package/dist-cli/chunks/help-PKZCWHJJ.js +0 -4
- package/dist-cli/chunks/hidden-runtime-alias-S5DJ7EDF.js +0 -4
- package/dist-cli/chunks/home-paths-5O4IZPYV.js +0 -4
- package/dist-cli/chunks/inspect-LT4MXK37.js +0 -4
- package/dist-cli/chunks/install-desktop-EXCFMXFS.js +0 -4
- package/dist-cli/chunks/login-V6TZ54ZH.js +0 -26
- package/dist-cli/chunks/logout-SPMLFWYA.js +0 -4
- package/dist-cli/chunks/maestro-5ISTBAZE.js +0 -108
- package/dist-cli/chunks/maestro-generate-WUI64NHR.js +0 -36
- package/dist-cli/chunks/mode-QPNBYXUF.js +0 -26
- package/dist-cli/chunks/optional-demo-registry-CBSYF4CG.js +0 -4
- package/dist-cli/chunks/perf-T6N5PVYV.js +0 -48
- package/dist-cli/chunks/permissions-YZ7RRSZJ.js +0 -13
- package/dist-cli/chunks/platform-XDQAA72X.js +0 -6
- package/dist-cli/chunks/privacy-54FIGXLT.js +0 -4
- package/dist-cli/chunks/record-QGYXRUKP.js +0 -72
- package/dist-cli/chunks/report-issue-VUUTGX7V.js +0 -29
- package/dist-cli/chunks/reset-CGO52KBW.js +0 -4
- package/dist-cli/chunks/resolve-target-NNQCALDM.js +0 -4
- package/dist-cli/chunks/runtime-4EP6YJVL.js +0 -4
- package/dist-cli/chunks/screenshot-command-NZCMSJ4P.js +0 -159
- package/dist-cli/chunks/screenshot-layers-VMTQ6XIU.js +0 -20
- package/dist-cli/chunks/screenshots-capture-K3MWIDBK.js +0 -42
- package/dist-cli/chunks/serve-QJRIB2BV.js +0 -56
- package/dist-cli/chunks/setup-6XXEJQVF.js +0 -4
- package/dist-cli/chunks/sim-client-5YUVL45C.js +0 -4
- package/dist-cli/chunks/skills-T3CS7CXK.js +0 -50
- package/dist-cli/chunks/state-AJC3VK3G.js +0 -14
- package/dist-cli/chunks/storage-KVGZKC3Y.js +0 -37
- package/dist-cli/chunks/store-AWUMOQUH.js +0 -4
- package/dist-cli/chunks/telemetry-W5ZDGWK6.js +0 -4
- package/dist-cli/chunks/timeline-DXDCAZUA.js +0 -24
- package/dist-cli/chunks/upgrade-SRPTJACU.js +0 -7
- package/dist-cli/chunks/upload-ZDV4BFED.js +0 -4
- package/dist-cli/chunks/version-SOLPSBMG.js +0 -6
- package/dist-cli/chunks/web-RT75LD7A.js +0 -4
- package/dist-cli/chunks/welcome-IJ55EC7U.js +0 -5
- package/dist-cli/chunks/what-happened-CEIWJIWK.js +0 -25
- package/dist-cli/chunks/ws-bridge-YK5R3HOI.js +0 -4
- package/scripts/postinstall.cjs +0 -3
- package/scripts/preuninstall.cjs +0 -118
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{c}from"./chunk-T4ISWS5H.js";import{a as S}from"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";import*as s from"fs";import*as b from"os";import*as a from"path";import{fileURLToPath as y}from"url";function j(){try{let t=y(import.meta.resolve(`${S.packageName}/package.json`));return a.join(a.dirname(t),"skills")}catch{let t=a.dirname(y(import.meta.url));return a.resolve(t,"../../skills")}}var g=j(),v=new Set(["all","codex","claude"]);function x(){console.log(`rnx skill
|
|
5
|
-
|
|
6
|
-
install and inspect bundled rnx agent skills.
|
|
7
|
-
|
|
8
|
-
usage:
|
|
9
|
-
rnx skill install [all|codex|claude] [skill-name...]
|
|
10
|
-
rnx skill install --target <dir> [skill-name...]
|
|
11
|
-
rnx skill show [skill-name]
|
|
12
|
-
|
|
13
|
-
commands:
|
|
14
|
-
install install skills; no target means all supported local agents
|
|
15
|
-
show list bundled skills, or print one skill markdown
|
|
16
|
-
|
|
17
|
-
targets:
|
|
18
|
-
all Codex and Claude Code (default)
|
|
19
|
-
codex $CODEX_HOME/skills, or ~/.codex/skills
|
|
20
|
-
claude $CLAUDE_CONFIG_DIR/skills, or ~/.claude/skills
|
|
21
|
-
`)}function I(){console.log(`rnx skill install
|
|
22
|
-
|
|
23
|
-
install bundled rnx skills in the agent skill layout: <skill>/SKILL.md.
|
|
24
|
-
each skill directory is symlinked back to its source, so edits stay live
|
|
25
|
-
without a re-install. an existing install from an older CLI is upgraded in
|
|
26
|
-
place; an unrelated skill directory is left alone unless --force is passed.
|
|
27
|
-
|
|
28
|
-
usage:
|
|
29
|
-
rnx skill install [all|codex|claude] [skill-name...]
|
|
30
|
-
rnx skill install --target <dir> [skill-name...]
|
|
31
|
-
|
|
32
|
-
options:
|
|
33
|
-
--force, -f replace a conflicting existing skill with the symlink
|
|
34
|
-
|
|
35
|
-
examples:
|
|
36
|
-
rnx skill install
|
|
37
|
-
rnx skill install codex
|
|
38
|
-
rnx skill install codex rnx-debug
|
|
39
|
-
rnx skill install --force rnx-debug
|
|
40
|
-
`)}function m(t,n){let e=process.env[t]||a.join(b.homedir(),n);return a.join(e,"skills")}function p(){return[{label:"codex",dir:m("CODEX_HOME",".codex")},{label:"claude",dir:m("CLAUDE_CONFIG_DIR",".claude")}]}function C(t){if(t==="all")return p();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"),c(1)}function E(t){let n=t.match(/^---\n([\s\S]*?)\n---/);if(!n)return null;let e=n[1],l=L(e,"name");return l?{name:l,description:L(e,"description")||""}:null}function L(t,n){let e=t.split(`
|
|
41
|
-
`),l=`${n}:`;for(let i=0;i<e.length;i++){let r=e[i];if(!r.startsWith(l))continue;let o=r.slice(l.length).trim();if(o===">-"||o===">"||o==="|-"||o==="|"){let f=[];for(let d=i+1;d<e.length;d++){let u=e[d];if(/^[A-Za-z0-9_-]+:\s*/.test(u))break;if(u.trim()===""){f.push("");continue}if(!/^\s+/.test(u))break;f.push(u.trim())}return f.join(o.startsWith("|")?`
|
|
42
|
-
`:" ").trim()}return o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'")?o.slice(1,-1):o}return null}function h(){if(!s.existsSync(g))return[];let t=[];for(let n of s.readdirSync(g)){let e=a.join(g,n,"SKILL.md");if(!s.existsSync(e))continue;let l=E(s.readFileSync(e,"utf8"));l&&t.push({name:n,description:l.description})}return t.sort((n,e)=>n.name.localeCompare(e.name))}function $(t,n){if(n.length===0)return t;let e=t.filter(l=>n.some(i=>{let r=i.replace(/^sootsim-/,"").replace(/^rnx-/,"");return l.name.includes(i)||l.name.replace(/^rnx-/,"").includes(r)}));return e.length===0&&(console.error(` no skills matched: ${n.join(", ")}`),console.error(" available: "+t.map(l=>l.name).join(", ")),c(1)),e}function k(t){try{return s.lstatSync(t)}catch{return null}}function T(t,n){let e=k(t);if(!e||!e.isSymbolicLink())return!1;try{return s.realpathSync(t)===s.realpathSync(n)}catch{return!1}}function _(t,n,e){if(t.isSymbolicLink()||!t.isDirectory())return!1;let l;try{l=s.readdirSync(n)}catch{return!1}if(l.length!==1||l[0]!=="SKILL.md")return!1;let i=a.join(n,"SKILL.md"),r=k(i);if(!r)return!1;if(r.isSymbolicLink())try{return s.readlinkSync(i).includes(`${a.sep}skills${a.sep}`)}catch{return!1}if(!r.isFile())return!1;try{return s.readFileSync(i).equals(s.readFileSync(a.join(e,"SKILL.md")))}catch{return!1}}function w(t,n,e){let l=a.join(g,t.name),i=a.join(n,t.name);s.mkdirSync(n,{recursive:!0});let r=k(i);return r?T(i,l)?"up-to-date":e||_(r,i,l)?(s.rmSync(i,{recursive:!0,force:!0}),s.symlinkSync(l,i),"replaced"):"conflict":(s.symlinkSync(l,i),"linked")}function H(){let t=h();if(t.length!==0)for(let n of p()){let e=a.resolve(n.dir);if(s.existsSync(a.dirname(e))){try{s.mkdirSync(e,{recursive:!0})}catch{continue}try{D(e)}catch{}for(let l of t)try{w(l,e,!1)}catch{}}}}var F=["sootsim-setup","sootsim-debug","sootsim-perf","sootsim-test","sootsim-visual"];function D(t){for(let n of F){let e=a.join(t,n),l=k(e);l&&(l.isSymbolicLink()||_(l,e,a.join(g,n)))&&s.rmSync(e,{recursive:!0,force:!0})}}function O(t){if(t.length===0){console.log(" no skills found");return}console.log(`
|
|
43
|
-
available skills:
|
|
44
|
-
`);for(let n of t)console.log(` ${n.name}`),console.log(` ${n.description}
|
|
45
|
-
`);console.log(" usage: rnx skill install [all|codex|claude] [skill-name...]"),console.log(` usage: rnx skill show [skill-name]
|
|
46
|
-
`)}function A(t){let n=null,e=!1,l=[];for(let i=0;i<t.length;i++){let r=t[i];if((r==="--help"||r==="-h")&&(I(),c(0)),r==="--force"||r==="-f"){e=!0;continue}if(r==="--target"){let o=t[i+1];(!o||o.startsWith("-"))&&(console.error(" --target requires a directory"),c(1)),n&&(console.error(" pass only one install target"),c(1)),n=[{label:"target",dir:o}],i++;continue}if(r.startsWith("-")&&(console.error(` unknown option: ${r}`),I(),c(1)),!n&&v.has(r)){n=C(r);continue}l.push(r)}return{targets:n??p(),filters:l,force:e}}async function R(t){let n=h();n.length===0&&(console.error(" no skills found in rnx package"),c(1));let e=A(t),l=$(n,e.filters),i=e.targets.map(o=>({...o,dir:a.resolve(o.dir)}));for(let o of i)s.mkdirSync(o.dir,{recursive:!0}),s.statSync(o.dir).isDirectory()||(console.error(` target is not a directory: ${o.dir}`),c(1)),D(o.dir);console.log(`
|
|
47
|
-
installing ${l.length} skill(s) to ${i.length} target(s)
|
|
48
|
-
`);let r=0;for(let o of i){console.log(` target ${o.label}: ${o.dir}`);for(let f of l){let d=a.join(o.dir,f.name),u=w(f,o.dir,e.force);u==="linked"?console.log(` linked ${f.name} -> ${d}`):u==="replaced"?console.log(` relinked ${f.name} -> ${d}`):u==="up-to-date"?console.log(` up to date ${f.name}`):(r++,console.log(` conflict ${f.name}: ${d} exists and is not this skill \u2014 pass --force to replace`))}console.log("")}r>0&&(console.error(` ${r} conflict(s); rerun with --force only if replacing them is intended.
|
|
49
|
-
`),c(1)),console.log(` done. restart the agent session to load newly installed skills.
|
|
50
|
-
`)}function W(t){let n=h(),e=t.find(r=>!r.startsWith("-"));if(!e){O(n);return}let[l]=$(n,[e]),i=s.readFileSync(a.join(g,l.name,"SKILL.md"),"utf8");console.log(i)}async function M(t){let[n,...e]=t;if(!n||n==="--help"||n==="-h"){x();return}if(n==="install"){await R(e);return}if(n==="show"||n==="list"){W(e);return}console.error(` unknown skill command: ${n}`),x(),c(1)}export{H as refreshInstalledSkills,M as runSkill};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{m as g}from"./chunk-2BRBFLWA.js";import{f as a,g as u}from"./chunk-5PZVYF42.js";import{t as c,v as l}from"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";function d(t){return!!t&&typeof t=="object"&&typeof Reflect.get(t,"capturedAt")=="number"&&(Reflect.get(t,"tree")===void 0||a(Reflect.get(t,"tree")))}function f(){console.log(`
|
|
5
|
-
rnx state - capture the current app state in one call
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx state [--json] [--sim <id>]
|
|
9
|
-
|
|
10
|
-
options:
|
|
11
|
-
--json print the complete structured result, including the screenshot
|
|
12
|
-
--sim <id> target a specific sim
|
|
13
|
-
--port <p> WS bridge port
|
|
14
|
-
`)}async function S(t,p={}){if(t.includes("--help")||t.includes("-h"))return f(),0;let o=c(t,{port:p.port,stripBooleanFlags:["--json"]});if(o.positional.length>0)return console.error(` unexpected state argument: ${o.positional[0]}`),1;let n=l(o);try{let e=await n.send({type:"state"});if(!d(e))throw new Error("state bridge returned an invalid result");if(t.includes("--json"))return console.log(JSON.stringify(e)),0;let r=e.route;if(console.log(` route: ${r?.screen??r?.url??"(unknown)"}`),r?.stack?.length&&console.log(` stack: ${r.stack.join(" > ")}`),console.log(` keyboard: ${e.keyboard?.visible?"visible":"hidden"}`),console.log(""),console.log(e.tree?u(e.tree):""),console.log(""),e.recentErrors?.length){console.log(` recent errors (${e.recentErrors.length}):`);for(let i of e.recentErrors)console.log(` [${i.level}] ${i.text}`)}else console.log(" recent errors: none");let s=typeof e.screenshot=="string"?e.screenshot.length:0;return console.log(s>0?` screenshot: captured (${s} characters; use --json to read it)`:" screenshot: unavailable"),0}catch(e){return console.error(` state failed: ${e instanceof Error?e.message:e}`),await g(n),1}finally{n.close()}}export{S as runState};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as f}from"./chunk-OJNKRIZF.js";import{b as t,c as l,d as s,e as c,f as a}from"./chunk-YNHRSDVG.js";import"./chunk-2BRBFLWA.js";import"./chunk-5PZVYF42.js";import"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";function p(){console.log(`
|
|
5
|
-
rnx storage profile \u2014 manage isolated storage profiles
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx storage profile list
|
|
9
|
-
rnx storage profile create <id>
|
|
10
|
-
rnx storage profile clear <id>
|
|
11
|
-
rnx storage profile delete <id>
|
|
12
|
-
|
|
13
|
-
profiles isolate cookies, localStorage, IndexedDB, cache, permissions, and
|
|
14
|
-
service workers in Electron and Playwright launches. Plain browser-tab launches
|
|
15
|
-
cannot honor profiles and will fail clearly if a profile is requested.
|
|
16
|
-
|
|
17
|
-
examples:
|
|
18
|
-
rnx storage profile list
|
|
19
|
-
rnx storage profile create qa
|
|
20
|
-
rnx open 8081 --profile qa
|
|
21
|
-
rnx open 8081 --profile qa --driver playwright
|
|
22
|
-
rnx storage profile clear qa
|
|
23
|
-
rnx storage profile delete qa
|
|
24
|
-
`)}async function d(r,n){if(r.includes("--help")||r.includes("-h"))return p(),0;let o=r[0]??"list";try{switch(o){case"list":{let e=t();for(let i of e)console.log(` ${i.id}`);return 0}case"create":{let e=r[1];if(!e)return console.error(" profile create expects <id>"),1;let i=s(e);return console.log(` created profile: ${i.id}`),0}case"ensure":{let e=r[1];if(!e)return console.error(" profile ensure expects <id>"),1;let i=l(e);return console.log(` profile: ${i.id}`),0}case"clear":{let e=r[1];return e?(l(e),a(e),console.log(` cleared profile: ${e}`),0):(console.error(" profile clear expects <id>"),1)}case"delete":{let e=r[1];if(!e)return console.error(" profile delete expects <id>"),1;let i=c(e);return console.log(` deleted profile: ${i.id}`),0}default:return console.error(` unknown profile command: ${o}`),p(),1}}catch(e){return console.error(` profile failed: ${e instanceof Error?e.message:String(e)}`),1}}var m=new Set(["--sim","--port","-p"]),g=new Set(["profile","clear"]);function x(r){for(let n=0;n<r.length;n++){let o=r[n];if(o.startsWith("-")){m.has(o)&&n++;continue}return g.has(o)?{name:o,index:n}:null}return null}function u(){console.log(`
|
|
25
|
-
rnx storage \u2014 manage sim and app storage
|
|
26
|
-
|
|
27
|
-
usage:
|
|
28
|
-
rnx storage profile <subcommand>
|
|
29
|
-
rnx storage clear [--full] [--sim <id>] [--json]
|
|
30
|
-
|
|
31
|
-
subcommands:
|
|
32
|
-
profile list
|
|
33
|
-
profile create <id>
|
|
34
|
-
profile clear <id>
|
|
35
|
-
profile delete <id>
|
|
36
|
-
clear clear the current guest app data and relaunch it
|
|
37
|
-
`)}async function w(r,n){if(r.includes("--help")||r.includes("-h"))return u(),0;let o=x(r);return o?.name==="profile"?d([...r.slice(0,o.index),...r.slice(o.index+1)],n):o?.name==="clear"?f([...r.slice(0,o.index),...r.slice(o.index+1)],n):(console.error(` unknown storage command: ${o?.name??"(missing)"}`),u(),1)}export{w as runStorage};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a}from"./chunk-FZDRA7Z4.js";import"./chunk-H4MYYOYJ.js";import"./chunk-DQUPSAHE.js";export{a as settingsStore};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a,b,c,d}from"./chunk-DSD2UBZI.js";import"./chunk-5HHWECGT.js";import"./chunk-S65CK3RI.js";import"./chunk-LMHBU5LZ.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";export{a as buildCliDiagnosticEvent,d as flushCliTelemetry,b as trackCliDiagnostic,c as trackCliError};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{t as d,v as u,y as i}from"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import{c as o}from"./chunk-T4ISWS5H.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";import{writeFileSync as b}from"fs";function p(){console.log(`
|
|
5
|
-
rnx timeline \u2014 control the semantic event timeline
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx timeline <subcommand> [args]
|
|
9
|
-
|
|
10
|
-
subcommands:
|
|
11
|
-
status show enabled kinds and ring sizes
|
|
12
|
-
start [kinds] enable kinds (csv); 'all' for every opt-in
|
|
13
|
-
stop [kinds] disable kinds (csv); 'all' for every kind
|
|
14
|
-
clear drop all events + cursors
|
|
15
|
-
dump <file> write current merged ring to JSON
|
|
16
|
-
|
|
17
|
-
note: cheap kinds (console, fetch, app-launch, keyboard, screen, alert,
|
|
18
|
-
toast, notification, route, shell, actionsheet, picker) record at all times.
|
|
19
|
-
start/stop enables opt-in kinds (react-commit, scroll, gesture, text-input,
|
|
20
|
-
layout, reanimated, animation).
|
|
21
|
-
|
|
22
|
-
read the timeline with: rnx what-happened
|
|
23
|
-
`)}async function k(s,g){let l=d(s,{port:g.port,stripBooleanFlags:["--json","--help","-h"]}),r=l.positional[0];(!r||s.includes("--help")||s.includes("-h"))&&(p(),o(0));let a=s.includes("--json"),t=u(l),c=l.positional.slice(1),n=c[0]?c[0].split(",").map(e=>e.trim()).filter(Boolean):[];try{switch(r){case"status":{let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"start":{n.length===0&&n.push("all"),await i(t,"SootSim.bridges.timeline.enable",...n);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"stop":{n.length===0&&n.push("all"),await i(t,"SootSim.bridges.timeline.disable",...n);let e=await i(t,"SootSim.bridges.timeline.status");console.log(JSON.stringify(e,null,a?0:2));break}case"clear":{await i(t,"SootSim.bridges.timeline.clear"),console.log(" cleared");break}case"dump":{let e=c[0];e||(console.error(" usage: rnx timeline dump <file>"),o(1));let m=await i(t,"SootSim.bridges.timeline.recent",{limit:1e6});b(e,JSON.stringify(m.events,null,2)+`
|
|
24
|
-
`),console.log(` wrote ${m.events.length} event(s) to ${e}`);break}default:console.error(` unknown subcommand: ${r}`),p(),o(1)}}finally{t.close()}}export{k as runTimeline};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as h,b as v,c as $}from"./chunk-FUTYK55H.js";import{b as p}from"./chunk-PBOWUNXO.js";import"./chunk-MP2GPO4T.js";import"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-T4ISWS5H.js";import{b as g}from"./chunk-F5F7FIPM.js";import{M as a,g as m,h as u,l as d}from"./chunk-HWDVC6YA.js";import{a as f}from"./chunk-4EUKOIAV.js";import"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";import{spawn as y}from"node:child_process";import x from"node:fs";import R from"node:os";import s from"node:path";var b="https://registry.npmjs.org/rnxsim/latest";async function W(t){let n=t.indexOf("--channel"),e=n>=0&&t[n+1]?t[n+1]:void 0;console.log(`rnx upgrade
|
|
5
|
-
`),console.log("runtime:");let o=a(),{config:l}=await p(),r=l?.runtimeVersion,c=r?x.existsSync(s.join(d(r),"index.html")):!1;r&&console.log(` project config: v${r}`);let i=(r&&c?null:await $(["install",...r?[r,"--set-active=false"]:[],...e?["--channel",e]:[]],{}))?.version??r??a();i&&console.log(r?c?` result: v${i} already installed for this project`:` result: not installed \u2192 v${i} for this project`:o&&o!==i?` result: v${o} \u2192 v${i}`:o?` result: v${i} already current`:` result: not installed \u2192 v${i}`);let k=i?await h(i):null;console.log(`
|
|
6
|
-
cli:`),await j(),i&&console.log(`
|
|
7
|
-
${v(i,k)}`)}function w(){if(u())return{kind:"dev"};let t=process.argv[1]??"";try{t=x.realpathSync(t)}catch{}let n=s.sep;if(t.includes(`${n}_npx${n}`)||t.includes(`${n}.bunx${n}`))return{kind:"npx"};if(t.includes(`${n}.bun${n}`))return{kind:"global",command:"bun",args:["add","-g","rnxsim@latest"]};if(t.includes(`${n}pnpm${n}`))return{kind:"global",command:"pnpm",args:["add","-g","rnxsim@latest"]};let e=s.join(m(),"cli");if(t.startsWith(`${e}${n}`))return{kind:"global",command:"npm",args:["i","-g","--prefix",e,"rnxsim@latest"]};let o=s.resolve(process.env.SOOTSIM_CLI_PREFIX||s.join(R.homedir(),".local"));return t.startsWith(`${o}${n}`)?{kind:"global",command:"npm",args:["i","-g","--prefix",o,"rnxsim@latest"]}:{kind:"global",command:"npm",args:["i","-g","rnxsim@latest"]}}async function j(){let t=f(),n=await C();if(!n){console.log(` v${t} \u2014 couldn't reach the npm registry, skipped`);return}if(g(n,t)<=0){console.log(` v${t} (latest)`);return}let e=w();if(console.log(` v${t} \u2192 v${n}`),e.kind==="dev"){console.log(" running from the Contrast dev checkout \u2014 pull instead of upgrading");return}if(e.kind==="npx"){console.log(" running from the npx cache \u2014 get the latest with:"),console.log(" npx rnxsim@latest");return}let o=`${e.command} ${e.args.join(" ")}`;console.log(` updating global install (${o})\u2026`),await S(e.command,e.args)?console.log(` updated to v${n}`):(console.log(" update failed \u2014 run it yourself:"),console.log(` ${o}`))}function S(t,n){return new Promise(e=>{let o=y(t,n,{stdio:"inherit"});o.on("error",()=>e(!1)),o.on("exit",l=>e(l===0))})}async function C(){try{let t=await fetch(b,{headers:{accept:"application/json"},signal:AbortSignal.timeout(8e3)});if(!t.ok)return null;let n=await t.json();return typeof n.version=="string"&&n.version?n.version:null}catch{return null}}export{W as runUpgrade};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{e as a,f as b,g as c}from"./chunk-Z5O5H4O7.js";import"./chunk-HEV7BAPE.js";import"./chunk-JWUDT4QK.js";import"./chunk-USM3P74H.js";import"./chunk-CX7VCKAT.js";import"./chunk-4ZXR2M3D.js";import"./chunk-MP2GPO4T.js";import"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-T4ISWS5H.js";import"./chunk-HWDVC6YA.js";import"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";export{a as resolveDefaultUploadOrigin,b as resolvePublicPreviewOrigin,c as runUpload};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{b as a}from"./chunk-PBOWUNXO.js";import"./chunk-MP2GPO4T.js";import{a as m}from"./chunk-HNPHODBD.js";import"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import{d as s,f as t}from"./chunk-F5F7FIPM.js";import{l as r}from"./chunk-HWDVC6YA.js";import{a as l}from"./chunk-4EUKOIAV.js";import"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";import g from"node:fs";import d from"node:path";async function R($){let{IS_BETA:c,BETA_LABEL:u}=await import("./beta-PFRGP266.js"),f=c?` \xB7 ${u}`:"";console.log(`rnx v${l()}${f}`);let o=m(),n=t.resolveChannel();o.isDevBridge?(console.log(o.primary),o.installedRuntime&&console.log(`${o.installedRuntime} \xB7 ${n}`)):o.primary==="runtime not installed"?console.log("runtime not installed \u2014 run `rnx runtime install`"):console.log(`${o.primary} \xB7 ${n}`);let{config:e}=await a();if(e?.runtimeVersion){let p=g.existsSync(d.join(r(e.runtimeVersion),"index.html"));console.log(`project runtime v${e.runtimeVersion} \xB7 configured \xB7 ${p?"installed":"installs on open"}`)}let i=await t.checkUpToDate({channel:n});i.outdated&&i.latest&&console.log(`
|
|
5
|
-
\u2191 default runtime v${i.latest} available; run \`rnx upgrade\``),console.log(`
|
|
6
|
-
what's new: ${s}`)}export{R as runVersion};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a,b,c,d,e,f,g,h,i,j}from"./chunk-V4EJJHF5.js";import"./chunk-DQUPSAHE.js";export{b as COMPAT_CATEGORIES,j as COMPAT_RESULT_CAVEAT,c as POLYFILL_REGISTRY,a as UNSUPPORTABLE,f as countScanResults,i as formatDetailedScanLines,h as formatPackageStatus,g as formatScanCounts,d as scanDeps,e as scanDepsWithData};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{a as t}from"./chunk-4IKE4YUS.js";import"./chunk-SWBUNMQS.js";import"./chunk-LD7I266X.js";import{q as e}from"./chunk-EWPAI4MO.js";import"./chunk-XYSDYGKC.js";import"./chunk-PNRJFHX4.js";import"./chunk-HNDWYCND.js";import"./chunk-YNHRSDVG.js";import"./chunk-USM3P74H.js";import"./chunk-CX7VCKAT.js";import"./chunk-Z6LOIW46.js";import"./chunk-2BRBFLWA.js";import"./chunk-C6B5FOP3.js";import"./chunk-5PZVYF42.js";import"./chunk-FZDRA7Z4.js";import"./chunk-4ZXR2M3D.js";import"./chunk-PBOWUNXO.js";import"./chunk-MP2GPO4T.js";import"./chunk-2GXNAZHB.js";import"./chunk-4ALPWIMP.js";import"./chunk-HNPHODBD.js";import"./chunk-ZXFVBYJY.js";import"./chunk-AQ5TMOAI.js";import"./chunk-TPPVAA7Z.js";import"./chunk-H4MYYOYJ.js";import"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-T4ISWS5H.js";import"./chunk-XUBV77WH.js";import"./chunk-K7QQWKGE.js";import"./chunk-F5F7FIPM.js";import"./chunk-DSD2UBZI.js";import{a as r}from"./chunk-5HHWECGT.js";import{f as o}from"./chunk-S65CK3RI.js";import"./chunk-LMHBU5LZ.js";import{C as n}from"./chunk-HWDVC6YA.js";import"./chunk-4EUKOIAV.js";import"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";async function u(){return!n()&&r()?(await t([],{launchConnectRN:!0}),0):(o("Run any React Native app in a local simulator."),console.log(`
|
|
5
|
-
Opening ConnectRN`),await e(["ConnectRN","--no-describe","--quiet"]),0)}export{u as runWelcome};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{A as T,B as A,D as y,O as _,P as b,Q as S}from"./chunk-5PZVYF42.js";import{e as x,t as N,v as F}from"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import{c as k}from"./chunk-T4ISWS5H.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";function B(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--since"&&e+1<n.length){t.push(e,e+1);let s=n[e+1].trim(),l=/^(\d+(?:\.\d+)?)(ms|s|m)?$/.exec(s);if(l){let c=Number(l[1]),u=l[2]??"ms",v=u==="s"?c*1e3:u==="m"?c*6e4:c;return{since:Date.now()-v,consumed:t}}let i=Number(s);if(Number.isFinite(i)&&i>1e12)return{since:i,consumed:t}}return{consumed:t}}function D(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--kinds"&&e+1<n.length)return t.push(e,e+1),{kinds:n[e+1].split(",").map(s=>s.trim()).filter(Boolean),consumed:t};return{consumed:t}}function K(n){let t=[];for(let e=0;e<n.length;e++)if(n[e]==="--limit"&&e+1<n.length){t.push(e,e+1);let s=Number(n[e+1]);if(Number.isFinite(s)&&s>0)return{limit:s,consumed:t}}return{consumed:t}}function E(n){let t=[],e={label:"initial state",events:[],startedAt:n[0]?.t??null};t.push(e);for(let s of n)if(e.events.push(s),s.kind==="screen"||s.kind==="route"){let l=s.data,i=l?.phase;if(!i||i==="enter"||i==="appear"||i==="active"){let c=l?.name||l?.activeName||l?.path||l?.pathname||s.kind;t.length===1&&e.events.length===1?e.label=`${s.kind}: ${c}`:(e={label:`${s.kind}: ${c}`,events:[],startedAt:s.t},t.push(e))}}return t}async function Q(n,t){let e=N(n,{port:t.port,stripBooleanFlags:["--summary","--all","--json","--no-advance","--help","-h","--flow","--noisy"],stripValueFlags:["--since","--kinds","--limit"]});(n.includes("--help")||n.includes("-h"))&&(console.log(`
|
|
5
|
-
rnx what-happened \u2014 show recent events from the semantic timeline
|
|
6
|
-
|
|
7
|
-
usage:
|
|
8
|
-
rnx what-happened # since last CLI call
|
|
9
|
-
rnx what-happened --summary # one-line counts
|
|
10
|
-
rnx what-happened --all # full ring (ignore cursor)
|
|
11
|
-
rnx what-happened --since 5s # absolute window
|
|
12
|
-
rnx what-happened --kinds toast,fetch
|
|
13
|
-
rnx what-happened --noisy # include react-commit/layout/scroll
|
|
14
|
-
rnx what-happened --limit 50
|
|
15
|
-
rnx what-happened --json
|
|
16
|
-
rnx what-happened --no-advance # don't advance cursor after read
|
|
17
|
-
|
|
18
|
-
note: react-commit, layout, and scroll are opt-in/noisy events. enable them
|
|
19
|
-
with "rnx timeline start <kind>", then pass --noisy or include them in
|
|
20
|
-
--kinds to see them.
|
|
21
|
-
`),k(0));let s=n.includes("--summary"),l=n.includes("--flow"),i=n.includes("--all"),c=n.includes("--json"),u=n.includes("--no-advance"),v=n.includes("--noisy"),{since:a}=B(n),{kinds:d}=D(n),{limit:C}=K(n),g=x(),$={limit:C??200,...d&&d.length?{kinds:d}:{},...a!==void 0?{since:a}:i?{}:{sinceCursor:g}},h=F(e);try{if(s){let r=await T(h,$);if(c)console.log(JSON.stringify(r));else{let m=i?"all time":a!==void 0?`last ${((Date.now()-a)/1e3).toFixed(1)}s`:"since last call";console.log(` ${m}: ${_(r)}`)}!u&&!i&&r.lastAt&&await y(h,g,r.lastAt);return}let o=await A(h,$),I=Array.isArray(d)&&d.some(r=>b.has(r)),M=!v&&!I,f=0;if(M){let r=o.events.filter(m=>b.has(m.kind)?(f+=1,!1):!0);o.events=r}if(c)console.log(JSON.stringify(l?E(o.events):o,null,2));else{if(o.events.length===0)f>0?console.log(` no non-noise events (${f} react-commit/layout/scroll hidden)`):console.log(i?" no events recorded":a!==void 0?" no events in window":" no new events since last call");else if(l){let r=o.events[0]?.t??null,m=E(o.events),w=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2014 flow view \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2014 flow view \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2014 flow view \u2500\u2500\u2500`;console.log(` ${w}`);for(let p of m){console.log(`
|
|
22
|
-
\u2500\u2500 ${p.label} (${p.events.length} event${p.events.length===1?"":"s"}) \u2500\u2500`);for(let O of p.events)console.log(S(O,r))}}else{let r=o.events[0]?.t??null,m=i?`\u2500\u2500\u2500 ${o.events.length} event(s) total \u2500\u2500\u2500`:a!==void 0?`\u2500\u2500\u2500 ${o.events.length} event(s) in last ${((Date.now()-a)/1e3).toFixed(1)}s \u2500\u2500\u2500`:`\u2500\u2500\u2500 ${o.events.length} event(s) since last call \u2500\u2500\u2500`;console.log(` ${m}`);for(let w of o.events)console.log(S(w,r))}f>0&&o.events.length>0&&process.stderr.write(`
|
|
23
|
-
${f} high-frequency event(s) hidden (react-commit/layout/scroll)
|
|
24
|
-
rerun with --noisy or --kinds react-commit,layout,scroll to include them
|
|
25
|
-
`)}!u&&!i&&o.watermark>0&&await y(h,g,o.watermark)}finally{h.close()}}export{Q as runWhatHappened};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
|
-
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
3
|
-
var require = __sootsimCreateRequire(import.meta.url)
|
|
4
|
-
import{k as a,l as b,m as c,n as d,o as e,p as f,q as g,r as h,s as i,t as j,u as k,v as l,w as m,x as n,y as o,z as p}from"./chunk-7NCPUZ52.js";import"./chunk-GEX7RVHY.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";export{i as BridgeSimLockedError,a as RNX_PLACEMENT_ENV,f as bridgePortForShellBaseUrl,c as bridgeWsUrl,o as callInBridge,p as callInBridgeWrite,m as checkSimHealth,k as createBridge,l as createBridgeFromParsed,n as evalInBridge,j as parseBridgeCliArgs,h as printBridgeWorldNotice,d as resolveBridgeWorld,g as resolveDefaultBridgePort,b as resolvePlacement,e as worldForBridgePort};
|
package/scripts/postinstall.cjs
DELETED
package/scripts/preuninstall.cjs
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// preuninstall — runs before `npm rm -g sootsim` actually removes the bin.
|
|
3
|
-
//
|
|
4
|
-
// without this hook the user is left with a 79MB ghost: a launchd/systemd
|
|
5
|
-
// service still ENABLED + actively running (with ExecStart pointing at the
|
|
6
|
-
// now-missing binary), ~/.sootsim/ (cache + runtimes + electron + profiles +
|
|
7
|
-
// daemon.json), and the user's first instinct (`sootsim daemon uninstall`)
|
|
8
|
-
// is gone with the package. so we tear it all down here, while the bin still
|
|
9
|
-
// exists.
|
|
10
|
-
//
|
|
11
|
-
// reliability: npm preuninstall hooks are best-effort — they don't fire when
|
|
12
|
-
// the package wasn't installed by npm (yarn/bun/pnpm have their own lifecycle
|
|
13
|
-
// rules), and they don't run as part of `npm cache verify` cleanup or manual
|
|
14
|
-
// dir removal. that's why `sootsim daemon uninstall` is also documented as
|
|
15
|
-
// the manual teardown path.
|
|
16
|
-
//
|
|
17
|
-
// strategy: spawn the bundled bin to run `daemon uninstall` (single source of
|
|
18
|
-
// truth — the same logic the user invokes manually). if that fails for any
|
|
19
|
-
// reason — node version mismatch, the bin already removed by a previous
|
|
20
|
-
// half-completed run, missing $HOME — do a best-effort raw fs cleanup so the
|
|
21
|
-
// machine isn't left in a broken state.
|
|
22
|
-
|
|
23
|
-
const { spawnSync } = require('child_process')
|
|
24
|
-
const fs = require('fs')
|
|
25
|
-
const os = require('os')
|
|
26
|
-
const path = require('path')
|
|
27
|
-
|
|
28
|
-
if (process.env.SOOTSIM_SKIP_PREUNINSTALL === '1') {
|
|
29
|
-
process.exit(0)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// dev / workspace installs (running inside the Contrast monorepo, not in a
|
|
33
|
-
// node_modules tree) — don't tear anything down. the developer is rebuilding
|
|
34
|
-
// the workspace, not actually uninstalling.
|
|
35
|
-
const pkgDir = path.resolve(__dirname, '..')
|
|
36
|
-
if (!pkgDir.includes(`${path.sep}node_modules${path.sep}`)) {
|
|
37
|
-
process.exit(0)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// skipped under sudo for the same reason as postinstall: $HOME would be /root,
|
|
41
|
-
// but the user who needs cleanup is the one who installed sootsim. they can
|
|
42
|
-
// run `sootsim daemon uninstall` themselves before `sudo npm rm -g sootsim`
|
|
43
|
-
// to clean their own home.
|
|
44
|
-
const isRoot = typeof process.getuid === 'function' && process.getuid() === 0
|
|
45
|
-
if (isRoot && process.env.SUDO_USER) {
|
|
46
|
-
console.log(
|
|
47
|
-
'rnx: preuninstall skipped under sudo — run `rnx daemon uninstall` ' +
|
|
48
|
-
'as your user first to remove ~/.sootsim and the bridge daemon',
|
|
49
|
-
)
|
|
50
|
-
process.exit(0)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const bin = path.join(pkgDir, 'dist-cli', 'bin.js')
|
|
54
|
-
let unifiedOk = false
|
|
55
|
-
if (fs.existsSync(bin)) {
|
|
56
|
-
const res = spawnSync(process.execPath, [bin, 'daemon', 'uninstall'], {
|
|
57
|
-
stdio: 'inherit',
|
|
58
|
-
timeout: 30_000,
|
|
59
|
-
})
|
|
60
|
-
unifiedOk = res.status === 0
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (!unifiedOk) {
|
|
64
|
-
// raw fallback. mirrors teardownDaemonService + teardownSootsimHome from
|
|
65
|
-
// cli/commands/daemon.ts. idempotent: each entry is checked before remove.
|
|
66
|
-
console.log('rnx: bin path failed — running raw cleanup fallback')
|
|
67
|
-
rawCleanup()
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
process.exit(0)
|
|
71
|
-
|
|
72
|
-
function rawCleanup() {
|
|
73
|
-
const home = sootsimHomeDir()
|
|
74
|
-
if (process.platform === 'darwin') {
|
|
75
|
-
safeSpawn('launchctl', ['bootout', `gui/${getuid()}/dev.sootsim.daemon`])
|
|
76
|
-
safeSpawn('launchctl', ['bootout', `gui/${getuid()}/dev.sootsim.server`])
|
|
77
|
-
safeRemove(path.join(os.homedir(), 'Library/LaunchAgents/dev.sootsim.daemon.plist'))
|
|
78
|
-
safeRemove(path.join(os.homedir(), 'Library/LaunchAgents/dev.sootsim.server.plist'))
|
|
79
|
-
safeRemove(path.join(os.homedir(), 'Library/Logs/sootsim'), {
|
|
80
|
-
recursive: true,
|
|
81
|
-
})
|
|
82
|
-
} else if (process.platform === 'linux') {
|
|
83
|
-
safeSpawn('systemctl', ['--user', 'disable', '--now', 'sootsim-daemon'])
|
|
84
|
-
safeSpawn('systemctl', ['--user', 'daemon-reload'])
|
|
85
|
-
safeSpawn('systemctl', ['--user', 'reset-failed', 'sootsim-daemon'])
|
|
86
|
-
safeRemove(path.join(os.homedir(), '.config/systemd/user/sootsim-daemon.service'))
|
|
87
|
-
safeRemove(path.join(os.homedir(), '.local/state/sootsim'), { recursive: true })
|
|
88
|
-
}
|
|
89
|
-
// ~/.sootsim is the same on every platform; honor $SOOTSIM_HOME.
|
|
90
|
-
safeRemove(home, { recursive: true })
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function sootsimHomeDir() {
|
|
94
|
-
const env = process.env.SOOTSIM_HOME
|
|
95
|
-
if (env && env.length > 0) return path.resolve(env)
|
|
96
|
-
return path.join(os.homedir(), '.sootsim')
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function safeRemove(p, opts) {
|
|
100
|
-
try {
|
|
101
|
-
if (fs.existsSync(p)) {
|
|
102
|
-
fs.rmSync(p, { force: true, ...(opts || {}) })
|
|
103
|
-
console.log(` removed ${p}`)
|
|
104
|
-
}
|
|
105
|
-
} catch (err) {
|
|
106
|
-
console.log(` could not remove ${p}: ${err && err.message}`)
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function safeSpawn(cmd, args) {
|
|
111
|
-
try {
|
|
112
|
-
spawnSync(cmd, args, { stdio: 'ignore' })
|
|
113
|
-
} catch {}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
function getuid() {
|
|
117
|
-
return typeof process.getuid === 'function' ? process.getuid() : 0
|
|
118
|
-
}
|