rnxsim 0.1.373 → 0.1.375
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/cli/commands/box.ts +5 -5
- package/cli/ws-bridge.ts +5 -2
- package/dist-cli/bin.js +5 -5
- package/dist-cli/chunks/{agent-TJXK3LYQ.js → agent-JJN7U6FR.js} +2 -2
- package/dist-cli/chunks/{agent-wrapper-IBMSADYR.js → agent-wrapper-AVVUJ3WF.js} +2 -2
- package/dist-cli/chunks/{app-fonts-PUXF6G6Y.js → app-fonts-QJ22CNAZ.js} +2 -2
- package/dist-cli/chunks/{assert-RSPGS4CF.js → assert-PZZKIY3K.js} +2 -2
- package/dist-cli/chunks/{auth-P4RWMWAM.js → auth-5AVDJO33.js} +2 -2
- package/dist-cli/chunks/{beta-HNRJDCWK.js → beta-PFRGP266.js} +2 -2
- package/dist-cli/chunks/{box-TBCAJ74I.js → box-ILC2O7ZO.js} +5 -5
- package/dist-cli/chunks/{camera-2P7A65KA.js → camera-J3V62PP7.js} +2 -2
- package/dist-cli/chunks/{chunk-NQDLJL63.js → chunk-25KRGDZT.js} +1 -1
- package/dist-cli/chunks/{chunk-GVIPHFFH.js → chunk-2BRBFLWA.js} +2 -2
- package/dist-cli/chunks/{chunk-SDY5Y6EY.js → chunk-2GXNAZHB.js} +2 -2
- package/dist-cli/chunks/{chunk-UL6KGGFA.js → chunk-2IUMRRYV.js} +2 -2
- package/dist-cli/chunks/{chunk-O5TKIMXX.js → chunk-4ALPWIMP.js} +2 -2
- package/dist-cli/chunks/{chunk-XUJ67CGZ.js → chunk-4CEZZKRY.js} +1 -1
- package/dist-cli/chunks/{chunk-PGPD6XML.js → chunk-4EUKOIAV.js} +2 -2
- package/dist-cli/chunks/{chunk-QPONDPPF.js → chunk-4IKE4YUS.js} +2 -2
- package/dist-cli/chunks/{chunk-XHSYJMBV.js → chunk-4ZXR2M3D.js} +1 -1
- package/dist-cli/chunks/{chunk-YIH24FX4.js → chunk-5CGJFU27.js} +2 -2
- package/dist-cli/chunks/{chunk-NEJ3WA75.js → chunk-5HHWECGT.js} +2 -2
- package/dist-cli/chunks/{chunk-POCPBDTJ.js → chunk-5PZVYF42.js} +1 -1
- package/dist-cli/chunks/chunk-7NCPUZ52.js +27 -0
- package/dist-cli/chunks/{chunk-ZGOWBBWX.js → chunk-7OSIJCBR.js} +2 -2
- package/dist-cli/chunks/{chunk-SK6RRDXP.js → chunk-AQ5TMOAI.js} +1 -1
- package/dist-cli/chunks/{chunk-U55C6SUH.js → chunk-BQCEI37V.js} +1 -1
- package/dist-cli/chunks/{chunk-BHNWFDNX.js → chunk-C6B5FOP3.js} +1 -1
- package/dist-cli/chunks/{chunk-EEBXLGGD.js → chunk-CCMZSHJB.js} +1 -1
- package/dist-cli/chunks/{chunk-ZMXWHNCZ.js → chunk-CX7VCKAT.js} +2 -2
- package/dist-cli/chunks/{chunk-O7NKNTJ6.js → chunk-DQUPSAHE.js} +1 -1
- package/dist-cli/chunks/{chunk-UHFVEMYL.js → chunk-DSD2UBZI.js} +2 -2
- package/dist-cli/chunks/{chunk-LEX3XST4.js → chunk-EWPAI4MO.js} +2 -2
- package/dist-cli/chunks/{chunk-O6VJVWEA.js → chunk-EZXV6U2N.js} +3 -3
- package/dist-cli/chunks/{chunk-QKX26L27.js → chunk-F5F7FIPM.js} +2 -2
- package/dist-cli/chunks/{chunk-5UMNXXVL.js → chunk-FUTYK55H.js} +3 -3
- package/dist-cli/chunks/{chunk-676FU5M6.js → chunk-FW6AN7I2.js} +1 -1
- package/dist-cli/chunks/{chunk-4ULLSYFL.js → chunk-FZDRA7Z4.js} +2 -2
- package/dist-cli/chunks/{chunk-HIFJBR5S.js → chunk-GDLE4NIV.js} +1 -1
- package/dist-cli/chunks/{chunk-TIPRUSQQ.js → chunk-GEX7RVHY.js} +1 -1
- package/dist-cli/chunks/{chunk-MTWJ3CNR.js → chunk-H4MYYOYJ.js} +2 -2
- package/dist-cli/chunks/{chunk-ADP35DA3.js → chunk-HEV7BAPE.js} +2 -2
- package/dist-cli/chunks/{chunk-MWXYYQMU.js → chunk-HNDWYCND.js} +2 -2
- package/dist-cli/chunks/{chunk-EUEQHXM2.js → chunk-HNPHODBD.js} +2 -2
- package/dist-cli/chunks/{chunk-2YNZ3GHI.js → chunk-HWDVC6YA.js} +1 -1
- package/dist-cli/chunks/{chunk-VPWI7ZQM.js → chunk-JOHJZUGG.js} +2 -2
- package/dist-cli/chunks/{chunk-OCH4TAJF.js → chunk-JWUDT4QK.js} +2 -2
- package/dist-cli/chunks/{chunk-4NBB7L3M.js → chunk-K7QQWKGE.js} +1 -1
- package/dist-cli/chunks/{chunk-45MY5YQL.js → chunk-LAOKTKT4.js} +2 -2
- package/dist-cli/chunks/{chunk-UL6JYYB3.js → chunk-LD7I266X.js} +2 -2
- package/dist-cli/chunks/{chunk-AYZLK7R4.js → chunk-LMHBU5LZ.js} +1 -1
- package/dist-cli/chunks/{chunk-4AGK7T3W.js → chunk-LSOGXSDV.js} +3 -3
- package/dist-cli/chunks/{chunk-BLOJLKH7.js → chunk-MP2GPO4T.js} +1 -1
- package/dist-cli/chunks/{chunk-5BMF3MJN.js → chunk-MXJ2UWRV.js} +1 -1
- package/dist-cli/chunks/{chunk-XOPJZBOT.js → chunk-OJNKRIZF.js} +2 -2
- package/dist-cli/chunks/{chunk-B7LYAWJU.js → chunk-PBOWUNXO.js} +2 -2
- package/dist-cli/chunks/{chunk-UFR7WANF.js → chunk-PNRJFHX4.js} +1 -1
- package/dist-cli/chunks/{chunk-CVMYEPWT.js → chunk-QJQOK34O.js} +2 -2
- package/dist-cli/chunks/{chunk-UMTP3PDW.js → chunk-RLCQLMFF.js} +2 -2
- package/dist-cli/chunks/{chunk-52NWLXHO.js → chunk-S65CK3RI.js} +1 -1
- package/dist-cli/chunks/{chunk-HSKW3YE2.js → chunk-SWBUNMQS.js} +2 -2
- package/dist-cli/chunks/{chunk-NHUVO3VC.js → chunk-SXBFGGAM.js} +1 -1
- package/dist-cli/chunks/{chunk-2272Y5HN.js → chunk-T4ISWS5H.js} +1 -1
- package/dist-cli/chunks/{chunk-K6GGQQU5.js → chunk-TPPVAA7Z.js} +2 -2
- package/dist-cli/chunks/{chunk-IGHXSJ54.js → chunk-USM3P74H.js} +2 -2
- package/dist-cli/chunks/{chunk-6CYCKPTJ.js → chunk-V4EJJHF5.js} +1 -1
- package/dist-cli/chunks/{chunk-EG4HCEKS.js → chunk-V7RGRZOL.js} +1 -1
- package/dist-cli/chunks/{chunk-VXZGJMFM.js → chunk-XUBV77WH.js} +1 -1
- package/dist-cli/chunks/{chunk-5H5N36NO.js → chunk-XYSDYGKC.js} +2 -2
- package/dist-cli/chunks/{chunk-AQBARY5L.js → chunk-YNHRSDVG.js} +2 -2
- package/dist-cli/chunks/{chunk-7T3K66TV.js → chunk-YX52RJKO.js} +2 -2
- package/dist-cli/chunks/{chunk-Y47FOLM5.js → chunk-Z5O5H4O7.js} +2 -2
- package/dist-cli/chunks/{chunk-YPJJDEFE.js → chunk-Z6LOIW46.js} +1 -1
- package/dist-cli/chunks/{chunk-4RQFXEF2.js → chunk-ZXFVBYJY.js} +2 -2
- package/dist-cli/chunks/{cleanup-2DD3AX5G.js → cleanup-KPUW4SFK.js} +2 -2
- package/dist-cli/chunks/cli-version-APGT6GAT.js +4 -0
- package/dist-cli/chunks/{compat-U6VLKECZ.js → compat-XXRFD2TW.js} +2 -2
- package/dist-cli/chunks/{config-W7D7BANR.js → config-DDMFDQ7F.js} +2 -2
- package/dist-cli/chunks/{connect-CUQIG76A.js → connect-IPG47YXM.js} +2 -2
- package/dist-cli/chunks/control-O22Z3UJ5.js +4 -0
- package/dist-cli/chunks/daemon-PADUIMJV.js +4 -0
- package/dist-cli/chunks/{debug-5VKWI2IY.js → debug-MYIP46TM.js} +3 -3
- package/dist-cli/chunks/{desktop-JUI2EFQV.js → desktop-ENFFBQAA.js} +3 -3
- package/dist-cli/chunks/{detox-WWO5NMX5.js → detox-J5WVK6OH.js} +2 -2
- package/dist-cli/chunks/{device-N54IMZI5.js → device-RAVQVL75.js} +2 -2
- package/dist-cli/chunks/{diagnose-RPMOVNDH.js → diagnose-PJMPXKJY.js} +2 -2
- package/dist-cli/chunks/{disk-cleanup-LS4E6EN2.js → disk-cleanup-YLAY445J.js} +2 -2
- package/dist-cli/chunks/{do-chain-SKD3BNPJ.js → do-chain-UBE7GIOU.js} +2 -2
- package/dist-cli/chunks/drivers-ZFNX3T5Z.js +4 -0
- package/dist-cli/chunks/{env-4WPFRAKQ.js → env-Y5XJSNRD.js} +2 -2
- package/dist-cli/chunks/{film-VLUYMYJC.js → film-W3V6VURB.js} +3 -3
- package/dist-cli/chunks/flow-VMLI7BYM.js +4 -0
- package/dist-cli/chunks/help-PKZCWHJJ.js +4 -0
- package/dist-cli/chunks/{hidden-runtime-alias-TARNNZAO.js → hidden-runtime-alias-S5DJ7EDF.js} +2 -2
- package/dist-cli/chunks/{home-paths-UBO2R6RQ.js → home-paths-5O4IZPYV.js} +2 -2
- package/dist-cli/chunks/inspect-LT4MXK37.js +4 -0
- package/dist-cli/chunks/install-desktop-EXCFMXFS.js +4 -0
- package/dist-cli/chunks/{login-47BPRPSH.js → login-V6TZ54ZH.js} +2 -2
- package/dist-cli/chunks/{logout-IKVBKUCK.js → logout-SPMLFWYA.js} +2 -2
- package/dist-cli/chunks/{maestro-Q7MGCY72.js → maestro-5ISTBAZE.js} +3 -3
- package/dist-cli/chunks/{maestro-generate-DLV3CE75.js → maestro-generate-WUI64NHR.js} +3 -3
- package/dist-cli/chunks/{mode-EATOC6AC.js → mode-QPNBYXUF.js} +2 -2
- package/dist-cli/chunks/{optional-demo-registry-324IOW5Q.js → optional-demo-registry-CBSYF4CG.js} +2 -2
- package/dist-cli/chunks/{perf-X5EKGPQJ.js → perf-T6N5PVYV.js} +2 -2
- package/dist-cli/chunks/{permissions-7PT2O3O2.js → permissions-YZ7RRSZJ.js} +2 -2
- package/dist-cli/chunks/{platform-Y3Q4V4JM.js → platform-XDQAA72X.js} +3 -3
- package/dist-cli/chunks/privacy-54FIGXLT.js +4 -0
- package/dist-cli/chunks/{record-26GR6633.js → record-QGYXRUKP.js} +3 -3
- package/dist-cli/chunks/{report-issue-FRUOURLU.js → report-issue-VUUTGX7V.js} +2 -2
- package/dist-cli/chunks/reset-CGO52KBW.js +4 -0
- package/dist-cli/chunks/resolve-target-NNQCALDM.js +4 -0
- package/dist-cli/chunks/runtime-4EP6YJVL.js +4 -0
- package/dist-cli/chunks/{screenshot-command-K35IU6HC.js → screenshot-command-NZCMSJ4P.js} +3 -3
- package/dist-cli/chunks/{screenshot-layers-VMQCTFSU.js → screenshot-layers-VMTQ6XIU.js} +2 -2
- package/dist-cli/chunks/{screenshots-capture-SXROGTCP.js → screenshots-capture-K3MWIDBK.js} +2 -2
- package/dist-cli/chunks/{serve-I3YMZVYB.js → serve-QJRIB2BV.js} +2 -2
- package/dist-cli/chunks/setup-6XXEJQVF.js +4 -0
- package/dist-cli/chunks/{sim-client-R3QBYUIC.js → sim-client-5YUVL45C.js} +2 -2
- package/dist-cli/chunks/{skills-LGJB4EOZ.js → skills-T3CS7CXK.js} +2 -2
- package/dist-cli/chunks/{state-2IXZ5JYX.js → state-AJC3VK3G.js} +2 -2
- package/dist-cli/chunks/{storage-3PNQOCXW.js → storage-KVGZKC3Y.js} +2 -2
- package/dist-cli/chunks/store-AWUMOQUH.js +4 -0
- package/dist-cli/chunks/telemetry-W5ZDGWK6.js +4 -0
- package/dist-cli/chunks/{timeline-FXYNSSJJ.js → timeline-DXDCAZUA.js} +2 -2
- package/dist-cli/chunks/{upgrade-ZG4X4SPV.js → upgrade-SRPTJACU.js} +2 -2
- package/dist-cli/chunks/upload-ZDV4BFED.js +4 -0
- package/dist-cli/chunks/{version-AXPWANGE.js → version-SOLPSBMG.js} +2 -2
- package/dist-cli/chunks/{web-YPFT4L4F.js → web-RT75LD7A.js} +2 -2
- package/dist-cli/chunks/welcome-IJ55EC7U.js +5 -0
- package/dist-cli/chunks/{what-happened-XE32WD2W.js → what-happened-CEIWJIWK.js} +2 -2
- package/dist-cli/chunks/{ws-bridge-JW3MABK7.js → ws-bridge-YK5R3HOI.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-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 +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/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +3 -3
- 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 +1 -1
- package/dist-lib/profiles.cjs +1 -1
- 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 +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/package.json +1 -1
- package/dist-cli/chunks/chunk-VBAUP3CK.js +0 -27
- package/dist-cli/chunks/cli-version-Y4TNXT2D.js +0 -4
- package/dist-cli/chunks/control-IMYDYX74.js +0 -4
- package/dist-cli/chunks/daemon-3ZSBIRII.js +0 -4
- package/dist-cli/chunks/drivers-RIZIUIBG.js +0 -4
- package/dist-cli/chunks/flow-JQFIL6QT.js +0 -4
- package/dist-cli/chunks/help-K4MMUKLT.js +0 -4
- package/dist-cli/chunks/inspect-2FYLUREA.js +0 -4
- package/dist-cli/chunks/install-desktop-5IK4MZ25.js +0 -4
- package/dist-cli/chunks/privacy-34TQ2IOU.js +0 -4
- package/dist-cli/chunks/reset-MQGKFTRW.js +0 -4
- package/dist-cli/chunks/resolve-target-XSMC6QNY.js +0 -4
- package/dist-cli/chunks/runtime-ZAH42MO5.js +0 -4
- package/dist-cli/chunks/setup-6BNCYKCA.js +0 -4
- package/dist-cli/chunks/store-BV7S5W55.js +0 -4
- package/dist-cli/chunks/telemetry-UHKCD6GY.js +0 -4
- package/dist-cli/chunks/upload-R4XZLOLQ.js +0 -4
- package/dist-cli/chunks/welcome-SRGEEM4A.js +0 -5
package/cli/commands/box.ts
CHANGED
|
@@ -363,11 +363,11 @@ async function runLocalBox(opts: BoxCommandOptions): Promise<number> {
|
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
try {
|
|
366
|
-
// the checkout is shared with editors, agents, and the user's own terminal
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
return await repl(shell, relative
|
|
366
|
+
// the checkout is shared with editors, agents, and the user's own terminal.
|
|
367
|
+
// HarnessProjectFs arms a stale bit on each shell turn and refreshes the
|
|
368
|
+
// plane synchronously on the first actual file access, so commands that
|
|
369
|
+
// never touch project files pay nothing, while reads always see fresh disk state.
|
|
370
|
+
return await repl(shell, relative)
|
|
371
371
|
} finally {
|
|
372
372
|
shared?.close()
|
|
373
373
|
}
|
package/cli/ws-bridge.ts
CHANGED
|
@@ -698,11 +698,14 @@ export function createBridge(wsPort: number, opts: WsBridgeOptions = {}): WsBrid
|
|
|
698
698
|
}
|
|
699
699
|
} catch {}
|
|
700
700
|
ws.close()
|
|
701
|
-
|
|
701
|
+
// unref, or a one-shot `rnx` command is held on the event loop for the
|
|
702
|
+
// full 250ms after its work is done. that delay lands directly in in-box
|
|
703
|
+
// prompt latency, since the shell spawns rnx and waits on child close.
|
|
704
|
+
setTimeout(() => {
|
|
702
705
|
if (ws.readyState !== WebSocket.CLOSED) {
|
|
703
706
|
ws.terminate()
|
|
704
707
|
}
|
|
705
|
-
}, 250)
|
|
708
|
+
}, 250).unref()
|
|
706
709
|
},
|
|
707
710
|
}
|
|
708
711
|
}
|
package/dist-cli/bin.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/*! rnx v0.1.
|
|
2
|
+
/*! rnx v0.1.375 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
3
3
|
import { createRequire as __sootsimCreateRequire } from 'node:module'
|
|
4
4
|
var require = __sootsimCreateRequire(import.meta.url)
|
|
5
|
-
import{a as g,b as f}from"./chunks/chunk-
|
|
5
|
+
import{a as g,b as f}from"./chunks/chunk-4CEZZKRY.js";import{a as h}from"./chunks/chunk-T4ISWS5H.js";import{a as m}from"./chunks/chunk-25KRGDZT.js";import"./chunks/chunk-DQUPSAHE.js";function k(a){let t=a instanceof Error?a.message:String(a);(/^command timed out after \d+s$/.test(t)||t.startsWith("sim disconnected:")||t.startsWith("bridge never reconnected")||t.startsWith("multiple sims are connected:")||t.startsWith("saved sim ")||t.startsWith("no sim connected with id ")||t.startsWith("could not connect to ws://")||t.startsWith("rnx bridge daemon is not running")||t.startsWith("rnx bridge lockfile is fresh")||t.startsWith("rnx bridge exited before becoming ready")||t.startsWith(`${m.commandName} open: requested bridge port`)||t.startsWith("background daemon setup is unavailable")||t.startsWith("rnx bridge did not start within"))&&!process.env.SOOTSIM_VERBOSE&&(process.stderr.write(` ${t}
|
|
6
6
|
`),process.exit(1)),a instanceof Error&&a.stack?process.stderr.write(`${a.stack}
|
|
7
7
|
`):process.stderr.write(`${t}
|
|
8
8
|
`),process.exit(1)}process.on("unhandledRejection",k);process.on("uncaughtException",k);var v=typeof __SOOTSIM_STANDALONE__<"u"&&__SOOTSIM_STANDALONE__,C=new Set(["desktop"]);function $(a){!v||!C.has(a)||(process.stderr.write(` ${m.commandName} ${a} isn't available in the standalone binary \u2014
|
|
9
9
|
it needs vite / electron / playwright from a project's node_modules.
|
|
10
10
|
run the npm package instead:
|
|
11
11
|
${m.commandName} ${a}
|
|
12
|
-
`),process.exit(1))}var e=f(process.argv);if(!e.command&&e.commandArgs.length>0){let{resolveHiddenRuntimeAlias:a}=await import("./chunks/hidden-runtime-alias-
|
|
13
|
-
`)}var b=!1;async function S(){if(!b&&(b=!0,!(e.command==="cleanup"||e.command==="serve"||e.command==="agent-wrapper"||e.command==="daemon"&&e.commandArgs[0]==="uninstall")))try{let{shouldSkipAutomaticSootsimCleanup:a}=await import("./chunks/disk-cleanup-
|
|
12
|
+
`),process.exit(1))}var e=f(process.argv);if(!e.command&&e.commandArgs.length>0){let{resolveHiddenRuntimeAlias:a}=await import("./chunks/hidden-runtime-alias-S5DJ7EDF.js");e=a(e)}var _=e.command==="cleanup"&&e.commandArgs.length===1&&e.commandArgs[0]==="--automatic-worker",x=!e.command&&e.commandArgs.length===0;if(!_&&!x&&!e.help&&!e.version&&e.command!=="config"&&e.command!=="setup"&&e.command!=="telemetry"){let{ensurePrivacyChoice:a}=await import("./chunks/privacy-54FIGXLT.js");await a({prompt:!0})}if(e.command!=="serve"&&e.command!=="daemon"){let{consumeRuntimeUpgradeNotice:a}=await import("./chunks/home-paths-5O4IZPYV.js"),t=a();t&&process.stderr.write(` ${m.name} engine upgraded to v${t.to}`+(t.from?` (from v${t.from})`:"")+` \xB7 what's new: ${m.origin}/changelog
|
|
13
|
+
`)}var b=!1;async function S(){if(!b&&(b=!0,!(e.command==="cleanup"||e.command==="serve"||e.command==="agent-wrapper"||e.command==="daemon"&&e.commandArgs[0]==="uninstall")))try{let{shouldSkipAutomaticSootsimCleanup:a}=await import("./chunks/disk-cleanup-YLAY445J.js");if(a())return;let{spawn:t}=await import("node:child_process"),r=["cleanup","--automatic-worker"],d=process.argv[1],p=v?t(process.execPath,r,{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env}):d?t(process.execPath,[d,...r],{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env}):t(m.commandName,r,{detached:!0,stdio:["ignore","ignore","inherit"],env:process.env});p.once("error",w=>{process.stderr.write(` ${m.name} automatic cleanup will retry on the next run: ${w.message}
|
|
14
14
|
`)}),p.unref()}catch(a){process.stderr.write(` ${m.name} automatic cleanup will retry on the next run: ${a instanceof Error?a.message:String(a)}
|
|
15
|
-
`)}}async function n(a){let{flushCliTelemetry:t}=await import("./chunks/telemetry-
|
|
15
|
+
`)}}async function n(a){let{flushCliTelemetry:t}=await import("./chunks/telemetry-W5ZDGWK6.js");await t(),await S(),process.exit(a)}if(e.version){let{getCliVersion:a}=await import("./chunks/cli-version-APGT6GAT.js"),{IS_BETA:t,BETA_LABEL:r}=await import("./chunks/beta-PFRGP266.js"),d=t?` \xB7 ${r}`:"";console.log(`${m.commandName} v${a()}${d}`);let{readActiveRuntime:p}=await import("./chunks/home-paths-5O4IZPYV.js"),w=p();console.log(w?`runtime v${w}`:"runtime not installed"),await n(0)}if(e.help&&!e.command){let{printHelp:a}=await import("./chunks/help-PKZCWHJJ.js");a(),await n(0)}var o=e.globalFlags.port,c=e.verbose,u=e.globalFlags.device,l=e.globalFlags.theme,E=e.globalFlags.driver,O=e.globalFlags.headless===!0,A=e.globalFlags.sim??e.globalFlags.session??e.globalFlags.tab,i=A?["--sim",A,...e.commandArgs]:e.commandArgs;if(u||l){let{settingsStore:a}=await import("./chunks/store-AWUMOQUH.js"),t={};u&&(t.deviceModel=u),l&&(t.colorScheme=l),a.apply(t)}if(!e.command&&e.commandArgs.length===0){let{runWelcome:a}=await import("./chunks/welcome-IJ55EC7U.js");await n(await a())}var s=e.command??"";if(!s){if(e.commandArgs.length>0){let t=e.commandArgs.find(r=>!r.startsWith("-"))??e.commandArgs[0];console.error(` unknown command: ${t}`),console.error(` run \`${m.commandName} --help\` to see the full surface.`),await n(1)}let{printHelp:a}=await import("./chunks/help-PKZCWHJJ.js");a(),await n(0)}if(e.help||e.commandArgs.includes("--help")||e.commandArgs.includes("-h")){if(s==="skill"){let{runSkill:r}=await import("./chunks/skills-T3CS7CXK.js");await r(e.commandArgs),await n(0)}if(s==="state"){let{runState:r}=await import("./chunks/state-AJC3VK3G.js");await n(await r(i,{port:o}))}if(s==="reset"){let{runReset:r}=await import("./chunks/reset-CGO52KBW.js");await n(await r(i,{port:o}))}let a=s==="do"||s==="get"||s==="debug"||s==="shell"||s==="perf"||s==="wait",t=e.commandArgs.find(r=>!r.startsWith("-"));if(!(s==="shell"||s==="perf"))if(a&&!t){let{printGroupHelp:r}=await import("./chunks/help-PKZCWHJJ.js");r(s)&&await n(0)}else{let{printCommandHelp:r}=await import("./chunks/help-PKZCWHJJ.js");r(a&&t?t:s,{prefer:a&&t?"verb":"command",group:a&&t?s:void 0}),await n(0)}}$(s);try{if(g.has(s)){if(s==="do"){let{hasDoChain:t,runDoChain:r}=await import("./chunks/do-chain-UBE7GIOU.js");t(i)&&await n(await r(i,{port:o}))}let{runInspect:a}=await import("./chunks/inspect-LT4MXK37.js");await a([s,...i],{port:o,verbose:c})}else switch(s){case"assert":{let{runAssert:a}=await import("./chunks/assert-PZZKIY3K.js");await a(e.commandArgs);break}case"detox":{let{runDetox:a}=await import("./chunks/detox-J5WVK6OH.js");await a(e.commandArgs,{port:o,verbose:c});break}case"maestro":{let{runMaestro:a}=await import("./chunks/maestro-5ISTBAZE.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"record":{let{runRecord:a}=await import("./chunks/record-QGYXRUKP.js");await a(i,{port:o,verbose:c});break}case"film":{let{runFilm:a}=await import("./chunks/film-W3V6VURB.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"storage":{let{runStorage:a}=await import("./chunks/storage-KVGZKC3Y.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"state":{let{runState:a}=await import("./chunks/state-AJC3VK3G.js"),t=await a(i,{port:o});await n(t)}case"reset":{let{runReset:a}=await import("./chunks/reset-CGO52KBW.js"),t=await a(i,{port:o});await n(t)}case"perf":{let{runPerf:a}=await import("./chunks/perf-T6N5PVYV.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"screenshot":{let{runScreenshotCommand:a}=await import("./chunks/screenshot-command-NZCMSJ4P.js"),t=await a(i,{port:o,verbose:c});await n(typeof t=="number"?t:0)}case"camera":{let{runCamera:a}=await import("./chunks/camera-J3V62PP7.js"),t=await a(i,{port:o});await n(typeof t=="number"?t:0)}case"mode":{let{runMode:a}=await import("./chunks/mode-QPNBYXUF.js");await a(i,{port:o,verbose:c});break}case"permissions":{let{runPermissions:a}=await import("./chunks/permissions-YZ7RRSZJ.js"),t=await a(i,{port:o,verbose:c});await n(t)}case"debug":{let{runDebug:a}=await import("./chunks/debug-MYIP46TM.js");await a(i,{port:o,verbose:c});break}case"timeline":{let{runTimeline:a}=await import("./chunks/timeline-DXDCAZUA.js");await a(i,{port:o,verbose:c});break}case"what-happened":{let{runWhatHappened:a}=await import("./chunks/what-happened-CEIWJIWK.js");await a(i,{port:o,verbose:c});break}case"open":{let{runOpenCommand:a}=await import("./chunks/control-O22Z3UJ5.js");await a(i,{port:o});break}case"ios":case"android":{let{runPlatformCommand:a}=await import("./chunks/platform-XDQAA72X.js"),t=await a(s,i,{port:o});await n(typeof t=="number"?t:0)}case"box":{let{runBox:a}=await import("./chunks/box-ILC2O7ZO.js");await n(await a(i,{port:o,verbose:c}))}case"use":{let{runUseCommand:a}=await import("./chunks/control-O22Z3UJ5.js");await a(i,{port:o});break}case"claim":{let{runClaimCommand:a}=await import("./chunks/control-O22Z3UJ5.js");await a(i,{port:o});break}case"close":{let{runCloseCommand:a}=await import("./chunks/control-O22Z3UJ5.js");await a(i,{port:o});break}case"device":{let{runDeviceCommand:a}=await import("./chunks/device-RAVQVL75.js");await a(i,{port:o});break}case"compat":{let{runCompat:a}=await import("./chunks/compat-XXRFD2TW.js");await a(e.commandArgs);break}case"report-issue":{let{runReportIssue:a}=await import("./chunks/report-issue-VUUTGX7V.js"),t=await a(e.commandArgs);await n(t)}case"desktop":{let{runDesktop:a}=await import("./chunks/desktop-ENFFBQAA.js");await a(e.commandArgs,{port:o,device:u});break}case"login":{let{runLogin:a}=await import("./chunks/login-V6TZ54ZH.js");await a(e.commandArgs);break}case"logout":{let{runLogout:a}=await import("./chunks/logout-SPMLFWYA.js");await a();break}case"auth":{let{runAuth:a}=await import("./chunks/auth-5AVDJO33.js");await a(e.commandArgs);break}case"setup":{let{runSetup:a}=await import("./chunks/setup-6XXEJQVF.js");await a(e.commandArgs);break}case"serve":{let{runServe:a}=await import("./chunks/serve-QJRIB2BV.js");await a(e.commandArgs,{port:o});break}case"daemon":{let{runDaemon:a}=await import("./chunks/daemon-PADUIMJV.js");await a(e.commandArgs,{port:o});break}case"runtime":{let{runRuntime:a}=await import("./chunks/runtime-4EP6YJVL.js");await a(e.commandArgs);break}case"upgrade":{let{runUpgrade:a}=await import("./chunks/upgrade-SRPTJACU.js");await a(e.commandArgs);break}case"version":{let{runVersion:a}=await import("./chunks/version-SOLPSBMG.js");await a(e.commandArgs);break}case"agent":{let{runAgentCommand:a}=await import("./chunks/agent-JJN7U6FR.js"),t=await a(e.commandArgs);await n(t)}case"agent-wrapper":{let{runAgentWrapper:a}=await import("./chunks/agent-wrapper-AVVUJ3WF.js"),t=await a(e.commandArgs);await n(t)}case"skill":{let{runSkill:a}=await import("./chunks/skills-T3CS7CXK.js");await a(e.commandArgs);break}case"app-fonts":{let{runAppFonts:a}=await import("./chunks/app-fonts-QJ22CNAZ.js");await a(e.commandArgs);break}case"config":{let{runConfig:a}=await import("./chunks/config-DDMFDQ7F.js");await a(e.commandArgs);break}case"cleanup":{let{runCleanup:a}=await import("./chunks/cleanup-KPUW4SFK.js"),t=await a(e.commandArgs);await n(t)}default:console.error(` unknown command: ${s}`),console.error(` run \`${m.commandName} --help\` to see the full surface.`),await n(1)}}catch(a){throw a instanceof h&&await n(a.code),a}await S();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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 b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-
|
|
4
|
+
import{a as b,b as E,c as A,d as l,e as S,g as x,h as j,j as T,n as I,o as k,p as D,q as g,r as O,s as C}from"./chunk-5CGJFU27.js";import"./chunk-GDLE4NIV.js";import{c as $}from"./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-XUBV77WH.js";import{j as y}from"./chunk-HWDVC6YA.js";import"./chunk-4EUKOIAV.js";import"./chunk-25KRGDZT.js";import"./chunk-DQUPSAHE.js";import w from"node:fs";import d from"node:path";import{spawn as _}from"node:child_process";import F from"node:net";import{WebSocket as R}from"ws";var c=class extends Error{code;constructor(e,t){super(e),this.name="AgentDaemonError",this.code=t}},f=class{ws;port;commandTimeoutMs;ready;closed=!1;nextId=1;pending=new Map;eventListeners=new Set;statusListeners=new Set;disconnectListeners=new Set;constructor(e={}){this.port=e.port??7668,this.commandTimeoutMs=e.commandTimeoutMs??15e3,this.ws=new R(`ws://localhost:${this.port}`),this.ready=new Promise((t,r)=>{let s=()=>{this.ws.off("error",o),t()},o=i=>{this.ws.off("open",s),r(new c(`could not connect to rnx daemon on port ${this.port}: ${i.message}`,"NO_DAEMON"))};this.ws.once("open",s),this.ws.once("error",o)}),this.ws.on("message",t=>this.handleMessage(t)),this.ws.on("close",()=>this.handleClose()),this.ws.on("error",()=>{})}async waitReady(){return this.ready}async listProjects(){return this.send("agent:list-projects")}async upsertProject(e){return this.send("agent:upsert-project",{input:e})}async deleteProject(e){return this.send("agent:delete-project",{projectId:e})}async autoAttachForUrl(e){return this.send("agent:auto-attach-for-url",{input:e})}async listSessions(e){return this.send("agent:list-sessions",{projectId:e})}async startSession(e){return this.send("agent:start-session",{input:e})}async sendPrompt(e,t){return this.send("agent:send-prompt",{sessionId:e,prompt:t})}async sendClaimedPrompt(e,t){return this.send("agent:send-claimed-prompt",{simId:e,prompt:t})}async endSession(e){return this.send("agent:end-session",{sessionId:e})}async getTranscript(e){return this.send("agent:get-transcript",{sessionId:e})}async getPaths(){return this.send("agent:get-paths")}async subscribeEvents(e){return this.send("agent:subscribe-events",{sessionId:e})}async unsubscribeEvents(e){return this.send("agent:unsubscribe-events",{sessionId:e})}onAgentEvent(e){return this.eventListeners.add(e),()=>this.eventListeners.delete(e)}onSessionStatusChange(e){return this.statusListeners.add(e),()=>this.statusListeners.delete(e)}onDisconnect(e){return this.disconnectListeners.add(e),()=>this.disconnectListeners.delete(e)}close(){if(!this.closed){this.closed=!0;try{this.ws.close()}catch{}}}async send(e,t={}){if(await this.ready,this.closed||this.ws.readyState!==R.OPEN)throw new c("daemon connection is closed","NO_DAEMON");let r=this.nextId++;return new Promise((s,o)=>{let i=setTimeout(()=>{this.pending.delete(r),o(new c(`${e} timed out after ${Math.round(this.commandTimeoutMs/1e3)}s`,"TIMEOUT"))},this.commandTimeoutMs);this.pending.set(r,{resolve:s,reject:o,timer:i});try{this.ws.send(JSON.stringify({id:r,type:e,...t}))}catch(a){clearTimeout(i),this.pending.delete(r),o(a instanceof Error?a:new Error(String(a)))}})}handleMessage(e){let t;try{t=JSON.parse(String(e))}catch{return}if(!t||typeof t!="object")return;if(t.type==="agent:event"){for(let s of this.eventListeners)try{s({sessionId:t.sessionId,event:t.event})}catch{}return}if(t.type==="agent:session-status"){for(let s of this.statusListeners)try{s(t.session)}catch{}return}if(typeof t.id!="number")return;let r=this.pending.get(t.id);r&&(this.pending.delete(t.id),clearTimeout(r.timer),t.error?r.reject(new c(t.error,t.code)):r.resolve(t.result))}handleClose(){if(!this.closed){this.closed=!0;for(let[,e]of this.pending)clearTimeout(e.timer),e.reject(new c("daemon disconnected","DISCONNECT"));this.pending.clear();for(let e of this.disconnectListeners)try{e()}catch{}}}};function M(n=7668,e=400){return new Promise(t=>{let r=new F.Socket,s=!1,o=i=>{s||(s=!0,r.destroy(),t(i))};r.setTimeout(e),r.once("connect",()=>o(!0)),r.once("timeout",()=>o(!1)),r.once("error",()=>o(!1)),r.connect(n,"127.0.0.1")})}async function B(n={}){let e=n.port??7668;if(await M(e))return{alreadyRunning:!0};if(y())throw new c(`no rnx bridge on port ${e}. run \`rnx daemon install\` to enable the faster background service, or \`rnx serve\` in another shell.`,"DEV_HOST_REFUSED");let{cmd:t,prefixArgs:r}=C(),s=[...r,"serve","--quiet"];e!==7668&&s.push("--port",String(e));let o=_(t,s,{detached:!0,stdio:"ignore",env:process.env,cwd:process.cwd()});o.unref();let i=Date.now()+(n.startupTimeoutMs??5e3);for(;Date.now()<i;){if(await M(e))return{alreadyRunning:!1,pid:o.pid};await new Promise(a=>setTimeout(a,100))}throw new c(`spawned rnx daemon on port ${e} but it did not come up in time. run \`rnx serve\` manually to diagnose.`,"SPAWN_TIMEOUT")}async function h(n={}){await B({port:n.port,startupTimeoutMs:n.startupTimeoutMs});let e=new f(n);try{await e.waitReady()}catch(t){throw e.close(),t}return e}async function ge(n){let[e,...t]=n;try{switch(e){case void 0:case"--help":case"-h":case"help":return L(),0;case"attach":return await W(t);case"projects":return await J();case"project":return await V(t);case"sessions":return await H(t);case"start":return await G(t);case"prompt":return await q(t);case"watch":return await K(t);case"transcript":return await z(t);case"end":return await Q(t);case"paths":return await Y();default:return process.stderr.write(`unknown agent subcommand: ${e}
|
|
5
5
|
`),L(),2}}catch(r){if(r instanceof c)return process.stderr.write(`${r.message}
|
|
6
6
|
`),1;throw r}}async function v(n){let e=await h({clientLabel:"sootsim-agent-cli"});try{return await n(e)}finally{e.close()}}function L(){$("agent")}function P(n,e){let t={},r=[];for(let s=0;s<n.length;s++){let o=n[s],i=e[o];i==="value"?(t[o]=n[s+1]??"",s++):i==="bool"?t[o]=!0:r.push(o)}return{flags:t,positional:r}}function U(n,e="codex"){return n==="codex"||n==="claude"?n:e}async function W(n){let{flags:e,positional:t}=P(n,{"--name":"value","--provider":"value"}),r=t[0];if(!r)return process.stderr.write(`usage: rnx agent attach <dir> [--name X] [--provider codex|claude]
|
|
7
7
|
`),2;let s=d.resolve(r);if(!w.existsSync(s))return process.stderr.write(`directory does not exist: ${s}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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{b as M}from"./chunk-
|
|
4
|
+
import{b as M}from"./chunk-GDLE4NIV.js";import"./chunk-DQUPSAHE.js";import{execFile as G,spawn as q}from"node:child_process";import{randomUUID as X}from"node:crypto";import{constants as R,createReadStream as Y,createWriteStream as j,existsSync as C,openSync as J}from"node:fs";import V from"node:fs/promises";import z from"node:path";import K from"node:readline";import{promisify as Q}from"node:util";import{spawn as H}from"node:child_process";import L from"node:readline";var b=class extends Error{code;data;constructor(t,r,m){super(t),this.name="CodexRpcError",this.code=r,this.data=m}};function W(d){let t=H(d.bin,["app-server"],{cwd:d.cwd,env:{...process.env,...d.env},stdio:["pipe","pipe","pipe"]}),r=new Map,m=new Map,u=1,f=!1,a=new Promise(s=>{t.on("exit",(o,e)=>{f=!0;let p=new Error(`codex app-server exited (code=${o}, signal=${e??""})`);for(let{reject:y}of r.values())y(p);r.clear(),s({code:o,signal:e})})});L.createInterface({input:t.stdout,crlfDelay:1/0}).on("line",s=>{let o=s.trim();if(!o)return;let e;try{e=JSON.parse(o)}catch{return}if(e.id!=null&&(e.result!==void 0||e.error!==void 0)){let p=typeof e.id=="string"?Number(e.id):e.id,y=p!=null?r.get(p):void 0;if(!y)return;r.delete(p),e.error?y.reject(new b(e.error.message,e.error.code,e.error.data)):y.resolve(e.result);return}if(e.method){let p=m.get(e.method);if(!p)return;for(let y of p)try{y(e.params)}catch(l){console.error(`[codex-client] handler for "${e.method}" threw:`,l instanceof Error?l.stack??l.message:l)}}}),t.stderr.setEncoding("utf8"),t.stderr.on("data",s=>{let o=m.get("__stderr__");if(o)for(let e of o)try{e({text:s})}catch{}});function n(s){if(!f)try{t.stdin.write(JSON.stringify(s)+`
|
|
5
5
|
`)}catch{}}return{exited:a,on(s,o){let e=m.get(s);return e||(e=new Set,m.set(s,e)),e.add(o),()=>{e?.delete(o)}},request(s,o){if(f)return Promise.reject(new Error(`codex app-server closed; cannot call ${s}`));let e=u++;return new Promise((p,y)=>{r.set(e,{resolve:l=>p(l),reject:y,method:s}),n({jsonrpc:"2.0",id:e,method:s,params:o})})},notify(s,o){n({jsonrpc:"2.0",method:s,params:o})},async shutdown(s=1500){if(f)return;try{t.stdin.end()}catch{}let o=setTimeout(()=>{if(!f)try{t.kill("SIGTERM")}catch{}},s);try{await a}finally{clearTimeout(o)}},kill(s="SIGTERM"){if(!f)try{t.kill(s)}catch{}}}}var O="never",F="danger-full-access",Z={type:"dangerFullAccess"},D="fast",ee="medium",te=Q(G);async function ne(d,t){let r=t||d;if(r.includes("/")||r.includes("\\"))return C(r)?{ok:!0,path:r}:{ok:!1,message:`agent binary not found at path: ${r}`};try{let{stdout:m}=await te("which",[r],{timeout:1500}),u=m.trim();return u?{ok:!0,path:u}:{ok:!1,message:`${r} not found on PATH`}}catch{return{ok:!1,message:`${r} not found on PATH. install the ${d} CLI and retry, or pass --${d}-bin /path/to/${d} to agent start.`}}}function re(d){let t={"--session-id":"sessionId","--project-id":"projectId","--provider":"provider","--cwd":"cwd","--prompt-in":"promptIn","--events-out":"eventsOut","--transcript":"transcript","--codex-bin":"codexBin","--claude-bin":"claudeBin","--claude-session-uuid":"claudeSessionUuid"},r={};for(let m=0;m<d.length;m++){let u=d[m];if(u==="--fresh-thread"){r.freshThread=!0;continue}let f=t[u];f&&(r[f]=d[m+1],m++)}return r}async function Ie(d){let t=re(d);if(!t.sessionId||!t.projectId||!t.provider||!t.cwd||!t.promptIn||!t.eventsOut)return process.stderr.write(`usage: rnx agent-wrapper --session-id <id> --project-id <id>
|
|
6
6
|
--provider codex|claude --cwd <path>
|
|
7
7
|
--prompt-in <fifo> --events-out <fifo>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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{p as g}from"./chunk-
|
|
4
|
+
import{p as g}from"./chunk-CX7VCKAT.js";import"./chunk-4ZXR2M3D.js";import"./chunk-MP2GPO4T.js";import{c as f}from"./chunk-T4ISWS5H.js";import"./chunk-DQUPSAHE.js";import{existsSync as d,mkdirSync as y,readFileSync as m,writeFileSync as u}from"node:fs";import{join as w}from"node:path";import{gzipSync as x}from"node:zlib";function l(t,e){let r=t.indexOf(`--${e}`);if(r!==-1&&r+1<t.length)return t[r+1];let s=t.find(i=>i.startsWith(`--${e}=`));return s?s.slice(e.length+3):void 0}async function S(t){let e=l(t,"wire")||"",r=l(t,"out-dir"),s=l(t,"manifest");if((!r||!s)&&(console.error(" usage: rnx app-fonts stage --wire <wire> --out-dir <dir> --manifest <path>"),f(1)),!e.trim()){console.log("no app fonts declared \u2014 nothing to stage");return}y(r,{recursive:!0});let i=await g(e,{onStaged:({url:n,byteLength:o})=>console.log(` staged app font: ${n} (${(o/1024).toFixed(1)} KiB)`),onError:(n,o)=>console.error(` warning: failed to fetch app font ${n}: ${o instanceof Error?o.message:o}`)}),a=[];for(let n of i){let o=x(n.bytes);u(w(r,n.urlhash),o),a.push({url:n.url,urlhash:n.urlhash,contentType:n.contentType,encoding:"gzip",sizeBytes:o.length,rawBytes:n.bytes.byteLength})}let c=[];if(d(s))try{let n=JSON.parse(m(s,"utf8"));Array.isArray(n)&&(c=n)}catch{}let h=new Set(c.map(n=>n.urlhash)),p=[...c,...a.filter(n=>!h.has(n.urlhash))];u(s,JSON.stringify(p)),console.log(`staged ${a.length} app font(s); manifest now has ${p.length} file(s)`)}async function B(t){let e=t[0];if(e==="stage"){await S(t.slice(1));return}console.error(` unknown app-fonts subcommand: ${e??"(none)"}`),console.error(" available: stage"),f(1)}export{B as runAppFonts};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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{c}from"./chunk-
|
|
4
|
+
import{c}from"./chunk-T4ISWS5H.js";import"./chunk-DQUPSAHE.js";import{spawn as S}from"child_process";var k=new Set(["describe","find","list","network","logs","count","tree","url","a11y","node","layout","keyboard","errors","warnings","requests","animations","animation","state","sample-color"]),q=new Set(["--exists","--empty","--negate","--quiet","--allow-timeout","!"]),P=new Set(["--count","--count-at-least","--count-at-most","--contains","--not-contains","--matches","--not-matches","--equals","--jq","--has-path","--within"]),j=new Set(["--path-equals"]);function N(s){let r=[],u=[],n=0,e=!1,t=!1,i=!1;for(let o=0;o<s.length;o++){let a=s[o];if(a==="--within"){let l=Number(s[o+1]);if(!Number.isFinite(l)||l<0)return{error:`--within requires a non-negative number, got: ${s[o+1]}`};n=l,o++;continue}if(a==="--negate"||a==="!"){e=!0;continue}if(a==="--quiet"){t=!0;continue}if(a==="--allow-timeout"){i=!0;continue}if(q.has(a)){u.push({kind:a,args:[]});continue}if(P.has(a)){let l=s[o+1];if(l==null)return{error:`${a} requires a value`};u.push({kind:a,args:[l]}),o++;continue}if(j.has(a)){let l=s[o+1],p=s[o+2];if(l==null||p==null)return{error:`${a} requires <path> <value>`};u.push({kind:a,args:[l,p]}),o+=2;continue}r.push(a)}return r.length===0?{error:"assert requires a verb (e.g. find, describe, get errors)"}:{verbArgs:r,predicates:u,withinMs:n,negate:e,quiet:t,allowTimeout:i}}function R(s){return s[0]==="get"||s[0]==="debug"?k.has(s[1])?s[1]:null:s[0]==="do"||s[0]==="wait"?null:k.has(s[0])?s[0]:null}async function A(s){let u=[process.argv[1],...s,"--json"];return new Promise(n=>{let e=S(process.execPath,u,{stdio:["ignore","pipe","pipe"],env:process.env}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",o=>{n({ok:!1,payload:null,reason:`spawn failed: ${o.message}`})}),e.on("close",o=>{if(o!==0){let a=i.trim().split(`
|
|
5
5
|
`).slice(-2).join(" | ").slice(0,200);n({ok:!1,payload:null,reason:`verb exited ${o}${a?`: ${a}`:""}`});return}if(!t.trim()){n({ok:!1,payload:null,reason:"verb produced no output"});return}try{let a=JSON.parse(t);n({ok:!0,payload:a})}catch{n({ok:!1,payload:null,reason:`verb output was not valid json: ${t.slice(0,120)}`})}})})}function v(s,r){let u=r.split(".").filter(e=>e.length>0),n=s;for(let e of u){if(n==null)return{found:!1};if(Array.isArray(n)){let t=Number(e);if(!Number.isInteger(t)||t<0||t>=n.length)return{found:!1};n=n[t];continue}if(typeof n=="object"){let t=n;if(!(e in t))return{found:!1};n=t[e];continue}return{found:!1}}return{found:!0,value:n}}function g(s){return Array.isArray(s)?s.length:s&&typeof s=="object"?Object.keys(s).length:null}async function O(s,r){let{kind:u,args:n}=s;switch(u){case"--exists":return r==null?{ok:!1,reason:"payload is null"}:g(r)===0?{ok:!1,reason:"payload is empty"}:{ok:!0,reason:"exists"};case"--empty":{if(r==null)return{ok:!0,reason:"payload is null"};let e=g(r);return e===0?{ok:!0,reason:"payload is empty"}:{ok:!1,reason:`payload has ${e} item(s)`}}case"--count":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:`payload not countable (${typeof r})`}:{ok:t===e,reason:`count=${t}, want=${e}`}}case"--count-at-least":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t>=e,reason:`count=${t}, want>=${e}`}}case"--count-at-most":{let e=Number(n[0]),t=g(r);return t==null?{ok:!1,reason:"payload not countable"}:{ok:t<=e,reason:`count=${t}, want<=${e}`}}case"--contains":{let e=n[0],t=JSON.stringify(r);return{ok:t.includes(e),reason:t.includes(e)?`contains "${e}"`:`missing "${e}"`}}case"--not-contains":{let e=n[0],t=JSON.stringify(r);return{ok:!t.includes(e),reason:t.includes(e)?`unexpected "${e}"`:`not contains "${e}"`}}case"--matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=e.test(t);return{ok:i,reason:i?`matches /${n[0]}/`:`no match for /${n[0]}/`}}case"--not-matches":{let e=new RegExp(n[0]),t=JSON.stringify(r),i=!e.test(t);return{ok:i,reason:i?`not matches /${n[0]}/`:`unexpected /${n[0]}/`}}case"--equals":{let e=n[0],t=typeof r=="string"?r:typeof r=="number"||typeof r=="boolean"?String(r):JSON.stringify(r);return{ok:t===e,reason:`got=${JSON.stringify(t)}, want=${JSON.stringify(e)}`}}case"--has-path":{let e=v(r,n[0]);return{ok:e.found,reason:e.found?`path ${n[0]} present`:`path ${n[0]} missing`}}case"--path-equals":{let[e,t]=n,i=v(r,e);if(!i.found)return{ok:!1,reason:`path ${e} missing`};let o=typeof i.value=="string"||typeof i.value=="number"||typeof i.value=="boolean"?String(i.value):JSON.stringify(i.value);return{ok:o===t,reason:`${e}=${o}, want=${t}`}}case"--jq":{let e=n[0];try{let i=(await E(e,r)).trim();return{ok:i.length>0&&i!=="null"&&i!=="false"&&i!=='""',reason:`jq: ${i.slice(0,120)}`}}catch(t){throw new Error(`jq evaluation failed: ${t.message}`)}}default:return{ok:!1,reason:`unknown predicate ${u}`}}}function E(s,r){return new Promise((u,n)=>{let e=S("jq",[s],{stdio:["pipe","pipe","pipe"]}),t="",i="";e.stdout.on("data",o=>t+=o.toString()),e.stderr.on("data",o=>i+=o.toString()),e.on("error",n),e.on("close",o=>{if(o!==0){n(new Error(i.trim()||`jq exited ${o}`));return}u(t)}),e.stdin.end(JSON.stringify(r))})}async function L(s){(s[0]==="--help"||s[0]==="-h"||s.length===0)&&(J(),c(s.length===0?2:0));let r=N(s);"error"in r&&(process.stderr.write(` assert: ${r.error}
|
|
6
6
|
`),c(2));let{verbArgs:u,predicates:n,withinMs:e,negate:t,quiet:i,allowTimeout:o}=r;R(u)||(process.stderr.write(` assert: unknown or non-read verb: ${u.join(" ")}
|
|
7
7
|
supported: ${Array.from(k).sort().join(", ")}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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 i}from"./chunk-
|
|
4
|
+
import{a as i}from"./chunk-HEV7BAPE.js";import{d as t}from"./chunk-JWUDT4QK.js";import{c as r}from"./chunk-T4ISWS5H.js";import"./chunk-HWDVC6YA.js";import"./chunk-DQUPSAHE.js";function s(){console.log(`
|
|
5
5
|
rnx auth \u2014 inspect CLI auth
|
|
6
6
|
|
|
7
7
|
usage:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.375 | (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,b,c,d}from"./chunk-
|
|
4
|
+
import{a,b,c,d}from"./chunk-AQ5TMOAI.js";import"./chunk-DQUPSAHE.js";export{d as BETA_ASK_HEADLINE,b as BETA_LABEL,c as BETA_TAGLINE,a as IS_BETA};
|