@nice-code/commander 0.81.0 → 0.82.0
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 +13 -0
- package/build/cli.cjs +7 -1
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +7 -1
- package/build/cli.mjs.map +1 -1
- package/build/client/assets/index-BSsRv_2Z.js +23 -0
- package/build/client/assets/index-BSsRv_2Z.js.map +1 -0
- package/build/client/assets/index-DnkKT_BD.css +1 -0
- package/build/client/index.html +2 -1
- package/build/{main-CecRz_2L.cjs → main-D1Qv8v0t.cjs} +45 -4
- package/build/main-D1Qv8v0t.cjs.map +1 -0
- package/build/{main-DyR1LyM-.mjs → main-D2bk4fuD.mjs} +45 -4
- package/build/main-D2bk4fuD.mjs.map +1 -0
- package/package.json +7 -6
- package/build/client/assets/index-BaHIV1eO.js +0 -19
- package/build/client/assets/index-BaHIV1eO.js.map +0 -1
- package/build/main-CecRz_2L.cjs.map +0 -1
- package/build/main-DyR1LyM-.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -64,6 +64,19 @@ terms). `up --dry-run` and `explain` show exactly what would be touched, without
|
|
|
64
64
|
Node ≥ 22 or Bun. The web UI is pre-built into the package; Vite and React are not installed on
|
|
65
65
|
your machine. Built on [`@nice-code/process`](https://www.npmjs.com/package/@nice-code/process).
|
|
66
66
|
|
|
67
|
+
## Developing the web UI (`bun run dev`)
|
|
68
|
+
|
|
69
|
+
Editing the UI needs a fast loop, so the package ships a dev harness: `bun run dev` (from
|
|
70
|
+
`packages/nice-commander`) serves the client **source** with Vite hot reload and proxies its
|
|
71
|
+
auth/websocket lanes to a throwaway daemon running the `dev/showroom.config.ts` demo. Open the
|
|
72
|
+
printed URL, edit `src/client/**`, and watch it hot-reload live against a real backend.
|
|
73
|
+
|
|
74
|
+
- `NICE_COMMANDER_DEV_PORT` changes the vite port (default 5196). The daemon runs on its own
|
|
75
|
+
`showroom` data dir and port range, so it never touches your real environment.
|
|
76
|
+
- `NICE_COMMANDER_DEV_OPEN=0` skips auto-opening a browser (headless runs).
|
|
77
|
+
- Ctrl+C (or closing the vite server) stops the showroom daemon and its processes too.
|
|
78
|
+
- The demo needs `build/cli.mjs`; the harness runs `bun run build:server` itself if it is missing.
|
|
79
|
+
|
|
67
80
|
## Security posture
|
|
68
81
|
|
|
69
82
|
Loopback only. The browser takes a capability from a same-origin bootstrap and keeps it in memory —
|
package/build/cli.cjs
CHANGED
|
@@ -23107,6 +23107,11 @@ const commanderStatusRealm = defineRealm({
|
|
|
23107
23107
|
endedAt: t.number(),
|
|
23108
23108
|
durationMs: t.optional(t.number())
|
|
23109
23109
|
})),
|
|
23110
|
+
recentRuns: t.array(t.object({
|
|
23111
|
+
startedAt: t.number(),
|
|
23112
|
+
endedAt: t.optional(t.number()),
|
|
23113
|
+
outcome: t.optional(t.union(t.literal("succeeded"), t.literal("failed"), t.literal("stopped"), t.literal("crashed"), t.literal("timedOut")))
|
|
23114
|
+
})),
|
|
23110
23115
|
restarts: t.number(),
|
|
23111
23116
|
lastExit: t.optional(t.object({
|
|
23112
23117
|
code: t.optional(t.number()),
|
|
@@ -23130,6 +23135,7 @@ const commanderStatusRealm = defineRealm({
|
|
|
23130
23135
|
cwd: t.string(),
|
|
23131
23136
|
dependsOn: t.array(t.string()),
|
|
23132
23137
|
ready: t.optional(t.string()),
|
|
23138
|
+
timeoutMs: t.optional(t.number()),
|
|
23133
23139
|
endpoints: t.array(t.object({
|
|
23134
23140
|
name: t.string(),
|
|
23135
23141
|
protocol: t.string(),
|
|
@@ -25267,7 +25273,7 @@ async function withTimeout(ctx, run) {
|
|
|
25267
25273
|
async function main() {
|
|
25268
25274
|
const argv = process.argv.slice(2);
|
|
25269
25275
|
if (argv[0] === "daemon") {
|
|
25270
|
-
const { runCommanderDaemon } = await Promise.resolve().then(() => require("./main-
|
|
25276
|
+
const { runCommanderDaemon } = await Promise.resolve().then(() => require("./main-D1Qv8v0t.cjs"));
|
|
25271
25277
|
return runCommanderDaemon(argv.slice(1));
|
|
25272
25278
|
}
|
|
25273
25279
|
const parsed = parseCliArgs(argv);
|