@mrciphersmith/roomyx 0.4.0 → 0.6.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/CHANGELOG.md ADDED
@@ -0,0 +1,432 @@
1
+ # Changelog
2
+
3
+ Notable changes to `@mrciphersmith/roomyx`. Generated release notes say what
4
+ changed; this file exists for the two things they cannot say — **why**, and
5
+ **what to do if you were relying on the old behaviour**.
6
+
7
+ Format loosely follows [Keep a Changelog](https://keepachangelog.com). Versions
8
+ are [semantic](https://semver.org), with the `0.x` convention that breaking
9
+ changes land in the minor position.
10
+
11
+ ## [0.6.0] — 2026-09-09
12
+
13
+ Two passes over the published 0.5.0: running it by hand and putting ten
14
+ screenshots of it in front of four reviewers, then a nine-reviewer read of the
15
+ whole repository. The first produced the TUI work below; the second produced
16
+ three blockers and thirteen major defects, and its report is
17
+ [`docs/roomyx/review-2026-09-09.md`](docs/roomyx/review-2026-09-09.md).
18
+
19
+ **The version is minor rather than patch because several things are breaking**,
20
+ which in `0.x` is where breaking changes go. `Enter` filters the stream instead
21
+ of opening a modal and `AgentModal` is deleted; `roomyx.skills.sync` over MCP no
22
+ longer takes `yes` or `dryRun`; `syncSkill` now refuses to write unless asked,
23
+ so an embedder that relied on the old default gets a refusal rather than a
24
+ file; and `RoomClient` loses `getAgentDetail` and `getLastSeenSeq`, `Footer`
25
+ loses `setWidth`.
26
+
27
+ **If you are on 0.5.0 or earlier, upgrade.** Three of the defects below cost
28
+ data or a session: a mistyped `--kind` makes a room unreadable forever, an idle
29
+ attached client dies of its own accord in about 2.7 hours, and one malformed log
30
+ line turns a client into a request storm.
31
+
32
+ ### Added
33
+
34
+ - **The transcript scrolls, and the arrows belong to it.** `↑`/`↓` by a line,
35
+ `PgUp`/`PgDn` by a page, `Ctrl-U`/`Ctrl-D` by a half, `g`/`G` to the top and
36
+ back to the bottom. The roster keeps its selection on `j`/`k`.
37
+
38
+ Before this, no key scrolled anything: the arrows moved the roster, so four
39
+ keypresses on a room taller than the pane moved one caret and left the stream
40
+ apparently frozen. A room that outgrew its pane could not be read back at
41
+ all.
42
+
43
+ **`:` opens the owner prompt.** `o` means *open* nearly everywhere and was
44
+ borrowed rather than chosen. It still works and is not documented, so a habit
45
+ from 0.5.0 does not break on upgrade.
46
+
47
+ The keymap is now data in `src/client/keymap.ts` rather than an `else if`
48
+ chain inside the keypress handler — which is how it could be wrong without
49
+ being visibly wrong, since there was no artefact anyone could read to answer
50
+ "what keys does this have?". A test asserts no two bindings claim the same
51
+ key, because a first-match-wins resolver silently shadows the loser.
52
+
53
+ - **A footer, generated from that keymap.** Keys on the right, liveness on the
54
+ left — and the liveness is a fact that *moves*: a message count and the age
55
+ of the newest message. A word that has always said the same thing stops being
56
+ read, which is precisely why a dead room looked like a live one; the header
57
+ differed from a working room by one word in the same ink. When the number
58
+ stops, the silence means something.
59
+
60
+ An empty room now says `connected · waiting for the first message` rather
61
+ than showing a void that reads as a hang. Scroll away from the bottom and the
62
+ footer says so and says how to return. On a terminal too narrow for
63
+ everything, hints drop one at a time by usefulness — the first version
64
+ dropped all of them at once, which took the keys away in the two states that
65
+ most need them.
66
+
67
+ Shipped in the same change as the rebind on purpose. A footer is a keymap's
68
+ confession: shipping it first would have printed `↑/↓ roster` on the screen
69
+ as documented behaviour, and made the correction more expensive.
70
+
71
+ - **The transcript has a hierarchy.** A message is a bright speaker name with a
72
+ dim `kind re #n` tag beside it, and the body indented underneath in a dimmer
73
+ ink, with a blank line between turns. Consecutive turns from one speaker
74
+ share a header — a real room had the same nine-character prefix nine times
75
+ running, which hides the one thing a header is for.
76
+
77
+ Before this every message was one line, one colour, one weight, and a wrapped
78
+ continuation began at the same column as a new turn, so sixteen messages were
79
+ a single grey wall. The indent is what makes a wrap read as a continuation.
80
+
81
+ It costs vertical space: a turn is three rows where it was one, so fewer
82
+ turns fit on a short terminal. The shared headers pay most of that back in a
83
+ room where people speak in runs.
84
+
85
+ - **The roster gives up its 24 columns below 80.** At 72 columns it was
86
+ spending a third of the terminal on a few short names while the messages
87
+ wrapped to 46. A fixed gutter is also where non-Latin names die — three CJK
88
+ characters are six cells, not three. Below the breakpoint the stream takes
89
+ the full width and the footer says how many participants are in the room;
90
+ widen the terminal and the list comes back.
91
+
92
+ - **Search, with `/` and `n`/`N`.** Matched case-insensitively against what is
93
+ on screen — the speaker's display name, the kind tag and the body — so
94
+ searching for `Ann` finds messages headed `Ann` rather than every message
95
+ from the id `a`. The footer names the live query and the match position, and
96
+ says `no matches` rather than standing still, because a search that finds
97
+ nothing must not look like one that found something.
98
+
99
+ - **`?` shows the full keymap,** generated from the same table the dispatcher
100
+ and the footer use. The footer teaches the handful of keys worth permanent
101
+ space; everything else lives here rather than in the source.
102
+
103
+ - **`w` writes what is on screen to a file** and names it. A terminal is a bad
104
+ place to search and a good place to read. It never overwrites — the next free
105
+ numbered name is used — and a filtered view gets its own file.
106
+
107
+ - **Connection changes are written into the transcript, not only the footer.**
108
+ A footer repainted at a fixed row, with the cursor parked in another pane, is
109
+ never spoken by a screen reader and never survives a `tee`. A `— disconnected,
110
+ retrying —` line in the stream lands in speech, in scrollback and in the log
111
+ at once.
112
+
113
+ ### Fixed
114
+
115
+ - **Closing the client no longer dumps a stack trace.** `SIGTERM`/`SIGINT`/
116
+ `SIGHUP` had no handler at all, so killing an attached client tore the
117
+ renderer down underneath a live poll: the poll lost its connection, called
118
+ `handleDisconnect`, and wrote "disconnected" into an already-destroyed text
119
+ buffer — `TextBuffer is destroyed`, ten frames of stack, at someone who just
120
+ closed a window. `q` and Ctrl-C escaped it only because that path happened to
121
+ stop the client first. All four now share one ordered shutdown that stops
122
+ polling before destroying the renderer.
123
+
124
+ - **Long messages are no longer silently cut.** `message-row.ts` set
125
+ `height: 1` with no wrapping, so every message was clipped at the pane width
126
+ with no ellipsis and nothing to scroll — and what got cut was the end of the
127
+ sentence, which in a room of arguing agents is where the claim is. Bodies now
128
+ wrap on word boundaries.
129
+
130
+ - **`kind` and `in_reply_to` are displayed.** Both are in `MessageEnvelope` and
131
+ both were written by the dispatcher and rendered by nothing. The
132
+ challenge/answer structure that is the point of the log schema was visible in
133
+ the log and invisible in the viewer of that log. Rows now read
134
+ `Ann [challenge re #1]: …`.
135
+
136
+ - **A pane holding its first messages before its first layout pass no longer
137
+ drops message 1.** The horizontal scrollbar occupies a viewport row whether
138
+ or not there is anything to scroll, leaving `maxScrollTop` at 1 on a pane
139
+ that is not full, so sticky-bottom scrolled down by one.
140
+
141
+ Narrower than [the backlog][backlog] claims, and that correction is recorded
142
+ there: the real client always paints a `[connecting…]` frame before its first
143
+ poll returns, so it never triggered this. No 0.4.0 or 0.5.0 user lost a
144
+ message to it. Fixed because it is one line and a trap for whoever later
145
+ makes the client paint after its first batch rather than before.
146
+
147
+ ### Fixed — from the full-repository review
148
+
149
+ A nine-reviewer pass over `src` and `test` found three blockers and thirteen
150
+ major defects; the report is [`docs/roomyx/review-2026-09-09.md`](docs/roomyx/review-2026-09-09.md)
151
+ and the work is flow 001. Every fix below was reproduced before and verified as
152
+ a regression barrier after — the fix is removed again and the test is required
153
+ to fail.
154
+
155
+ - **`roomyx room append` could make a room unreadable forever.** The reader
156
+ validated with zod; the writer had only TypeScript types, erased at the CLI
157
+ boundary where `--kind` was cast. `--kind bogus-kind` exited 0, wrote the
158
+ line, and every later read of that room threw — on an append-only log with no
159
+ repair command, while `serve` kept binding and `rooms list` kept calling the
160
+ room live. One schema, in `src/log/schema.ts`, is now imported by both
161
+ directions.
162
+
163
+ - **An idle attached client killed itself in about 2.7 hours.** `remove()` in
164
+ `@opentui/core` unlinks without freeing, and the roster was rebuilt on every
165
+ three-second state poll whether or not it had changed: five leaked renderables
166
+ a poll against a finite native pool. Detached rows are destroyed, and an
167
+ unchanged roster is not rebuilt.
168
+
169
+ - **One malformed log line turned a client into a request storm.** `callTool`
170
+ never read `isError`, so a tool error was indistinguishable from a dropped
171
+ transport, and each failing poll scheduled its own reconnect without stopping
172
+ the running loops — 510 connections in ten seconds, measured. Tool errors now
173
+ reach the transcript and the poll continues; reconnect is single-flight with a
174
+ generation counter and backs off to 30s.
175
+
176
+ - **`roomyx serve` would not exit on a signal while a client was attached** —
177
+ the normal state of a served room. The code that ended the connections sat
178
+ inside the callback that waits for them. Sessions close first,
179
+ `closeAllConnections()` bounds it, `SIGHUP` is handled, and deregistration
180
+ happens after the close rather than before, so a hung shutdown can no longer
181
+ hide a still-served room from the registry.
182
+
183
+ - **Concurrent `room append` produced duplicate `seq` values.** `seq` is the
184
+ transcript cursor, so a client polling between two colliding writes never
185
+ received the second message. The lockfile that had guarded the registry for
186
+ three rounds now guards the data too.
187
+
188
+ - **MCP sessions were never released.** Nothing sent the DELETE the SDK needs,
189
+ so every session a server ever accepted was retained — and stayed routable.
190
+ The client terminates its sessions, an unknown session id gets 404 instead of
191
+ a new transport, and an idle sweeper closes what a crashed client could not.
192
+
193
+ - **A roster id could direct the transcript export outside the working
194
+ directory** while the status bar reported otherwise. The id is sanitised and
195
+ the resolved path is checked against `cwd`.
196
+
197
+ - **`roomyx.skills.sync` over MCP wrote without the gate its own CLI help
198
+ promises.** `yes` and `dryRun` are off that tool's schema; the gate lives in
199
+ `syncSkill`, computed once and failing closed.
200
+
201
+ - **A dead room could be resurrected by a recycled port.** `isRoomLive` proved
202
+ only that something answered; the pid in the registry was never read. It is
203
+ now checked first.
204
+
205
+ - **The help overlay drew into its own border below 20 rows** — the clamp added
206
+ while fixing its height reintroduced the defect it fixed. It fits whatever
207
+ height it is given, and the `? or Esc closes` line is never what gets dropped.
208
+
209
+ - **A participant name of 23 characters rendered an empty roster row.** Word
210
+ wrapping moved it to a line that `height: 1` clipped, so the whole word
211
+ vanished while `j`/`k` still moved onto the row. Labels are clipped with a
212
+ marker.
213
+
214
+ - **Three regression tests no longer failed when their fix was removed.** Found
215
+ by mutation, restored the same way: the scrollbar fix is pinned at the
216
+ boundary heights where content exactly fills the pane, and the shutdown
217
+ ordering moved out of `runClient` — which no test can reach — into a unit that
218
+ asserts the order directly.
219
+
220
+ ### Known
221
+
222
+ - **A word ending exactly at the wrap column loses its last character** —
223
+ `whether scrolling or` draws as `whether scrollin` / `or`, with the `g` gone
224
+ rather than wrapped. Width-dependent: 120 columns is clean, 90 is not. Not
225
+ worked around, on purpose: a one-column right margin makes it disappear at
226
+ 60, 72, 108 and 120 and leaves it at 90, which would turn a reproducible
227
+ defect into an intermittent one. `test/client/wrap-defect.test.ts` holds the
228
+ reproduction as a tripwire that starts failing the day it is fixed upstream.
229
+
230
+ - **Nothing responds to a terminal resize.** Every dimension is read once at
231
+ construction, so a resized terminal leaves the footer off-screen, `PgUp`
232
+ overshooting, and the roster breakpoint stuck at its old answer. Deferred
233
+ deliberately: it is a feature rather than a repair, and it should land with
234
+ the display-cell width arithmetic below, which needs the same primitive.
235
+
236
+ - **The footer measures code units and calls them columns**, so a CJK
237
+ participant name eats the key hints — including the only on-screen statement
238
+ of how to quit. Deferred with the resize work for the same reason.
239
+
240
+ - **`room.get_transcript` has no `limit`,** and its consumer on the management
241
+ path is a language model: a cold attach at `since_seq: 0` is the whole log in
242
+ one block. A protocol change deserving a decision record, not a patch inside a
243
+ fix flow.
244
+
245
+ ### Fixed (continued)
246
+
247
+ - **`room append`'s refusal no longer asks you to assert something false.** It
248
+ ended "Pass `--force` if you know it isn't" — but the ordinary way to meet
249
+ that message is a room served by bare `roomyx serve`, which is genuinely live
250
+ and simply has no dispatcher, so there is no second writer to race. The
251
+ registry records that a room serves a path, not whether anything dispatches
252
+ into it, so the message now says what is known and leaves the judgement to
253
+ the operator.
254
+
255
+ [backlog]: docs/roomyx/improvement-backlog.md
256
+
257
+ ## [0.5.0] — 2026-09-09
258
+
259
+ The security release. Every item here came out of a review of the published
260
+ 0.4.0 that reproduced each finding before recording it; the full list is in
261
+ [`docs/roomyx/improvement-backlog.md`](docs/roomyx/improvement-backlog.md).
262
+
263
+ ### Added
264
+
265
+ - **`roomyx room new` and `roomyx room append`.** There was no supported way to
266
+ create the file `roomyx serve` takes. The only tool that made one was
267
+ `src/cli/seed.ts` — shipped in the package, absent from `bin` and the README,
268
+ and documented only as a call through an absolute path into the global
269
+ `node_modules`. Time-to-first-room is this product's central number and that
270
+ was the path to it.
271
+
272
+ `new` refuses to overwrite an existing log. `append` refuses when the
273
+ registry shows a live room serving that path, because that room's dispatcher
274
+ is the log's single writer; `--force` overrides. Recorded as **D-01a**: D-01
275
+ constrains the server, not the package, and the invariant is one writer per
276
+ *live* room.
277
+
278
+ `src/cli/seed.ts` is removed, superseded by these.
279
+
280
+ - **The `bin` entries are Node launchers.** They used to be the TypeScript
281
+ files themselves, carrying a `#!/usr/bin/env bun` shebang. On a machine
282
+ without Bun that failed as `/usr/bin/env: 'bun': No such file or directory` —
283
+ a kernel message with no roomyx text in it, and no way to add any, because a
284
+ shebang is an `execve` dispatch with no slot for a diagnostic.
285
+
286
+ `engines.bun` was not protecting anyone either: npm's engine check only ever
287
+ knew `node` and `npm`, so a package declaring `bun: ">=99.0.0"` installs
288
+ cleanly under `--engine-strict`.
289
+
290
+ roomyx now says what is missing and where to get it, and exits 1. **It does
291
+ not install Bun** — an install-time network fetch is what installer D-01
292
+ exists to refuse. Nothing is transpiled and `src/*.ts` is still the shipped
293
+ artifact. As a side effect, npm's generated Windows `.cmd` shim now has a
294
+ Node script to wrap rather than a `.ts` file.
295
+
296
+ - **One argument grammar, and a real `--help` for every command.** The CLI had
297
+ two hand-rolled argv scanners with different semantics and no notion of what
298
+ a flag *is*, so it could not tell a value from a positional, a typo from an
299
+ option, or a number from a switch. Measured against 0.4.0:
300
+
301
+ | | did |
302
+ | --- | --- |
303
+ | `serve --port 0 room.jsonl` | served a file literally named `--port`, on the default port |
304
+ | `serve --help` | **started a server** and minted a room ID |
305
+ | `serve room.jsonl --port` | listened on port 1, via `Number(true)` |
306
+ | `serve room.jsonl --port abc` | `NaN`, so a silent ephemeral port |
307
+ | `skills sync … --dryrun` | ignored the typo and did the opposite of the ask |
308
+ | `roomyx --help` | printed usage to stderr and exited 1 |
309
+ | `rooms list --registry X` | read the default registry and reported on it |
310
+
311
+ Flags are declared per command now. Unknown ones are refused with a
312
+ did-you-mean, missing and non-numeric values are refused, `--help` exits 0 on
313
+ stdout, a bad command exits 1 on stderr, and `--` ends flag parsing.
314
+
315
+ ### Changed — breaking
316
+
317
+ - **`Enter` filters the stream instead of opening a modal, and the modal is
318
+ gone.** `AgentModal` could not be scrolled, did not compose with search, cost
319
+ a keypress to leave, and was pinned at `top: 2, left: 2` — so, being 70% of
320
+ the terminal wide, it lay across the roster it had been opened from and left
321
+ a selection arrow pointing at a name it had covered.
322
+
323
+ Filtering shows the same data from the transcript the client already has, in
324
+ the pane the reader is already in, and `Esc` clears it. The server's
325
+ `agent.detail` tool is unchanged; the client no longer needs it to answer
326
+ "show me this participant".
327
+
328
+ ### Removed — breaking
329
+
330
+ - **`roomyx.skills.sync` no longer accepts `targetPath`.** The MCP tool took a
331
+ literal path and passed it to the writer, which made it an arbitrary-path
332
+ file writer on an unauthenticated loopback port. Reproduced: a cross-origin
333
+ request wrote the bundled skill over a file of the caller's choosing, with
334
+ the directory created for it.
335
+
336
+ **If you were using it:** pass `target` instead — `claude`, `codex`, `keryx`
337
+ or `all`. If you were embedding `serveManagement()` and relied on a literal
338
+ path, note that `keryx` resolves project-locally and `ManagementOptions` now
339
+ takes a `cwd` to control what "project" means. The **CLI** keeps its
340
+ literal-path escape hatch (`roomyx skills sync --target /some/path`), because
341
+ that is the operator on their own machine. The network surface does not get
342
+ one.
343
+
344
+ ### Security
345
+
346
+ - **DNS-rebinding protection is on for both servers.** Before this, an
347
+ `initialize` carrying `Origin: https://evil.example` and
348
+ `Host: roomyx.attacker.test` completed the handshake and could call tools —
349
+ so any page in a tab the operator had open could reach `roomyx serve` and
350
+ `roomyx mcp` cross-origin. D-06 reasoned that loopback binding made the
351
+ threat local; it does not constrain a browser. Recorded as **D-06a**.
352
+
353
+ This is not authentication, and D-06's no-token decision stands. The guard
354
+ stops browsers. A local process sends no `Origin` and passes, which is the
355
+ trust boundary D-06 drew on purpose.
356
+
357
+ - **`@modelcontextprotocol/sdk` floor raised to `>=1.25.0`,** as part of the
358
+ guard rather than as dependency hygiene. Measured across thirty releases: the
359
+ guard appears in 1.13.3, but before 1.24.0 it rejects requests with no
360
+ `Origin` header — which is every request roomyx's own client and liveness
361
+ probe make. Option forwarding to this transport begins at 1.25.0. Leaving the
362
+ range at `^1.0.0` would have shipped a guard that silently does nothing on a
363
+ fresh install.
364
+
365
+ ### Fixed
366
+
367
+ - **The release job installs with `--frozen-lockfile`,** matching CI. It used to
368
+ resolve freely, so a release could ship a dependency version CI never tested —
369
+ with provenance attached to a tree nobody verified.
370
+
371
+ - **The release smoke test can now fail.** It ran
372
+ `roomyx --help > /dev/null 2>&1 || true`, discarding the output, the exit code
373
+ and then any remaining signal. It passed every release while `--help` was
374
+ exiting 1 — reporting success on a defect it was standing next to. It now
375
+ asserts that the packed, installed artifact runs `--help` with exit 0 and
376
+ reports a version equal to the tag. The second half is stricter than the
377
+ manifest check beside it: that one compares what the repository says, this
378
+ compares what the artifact says when it runs.
379
+
380
+ - **The management server closes its sessions on shutdown.** The HTTP transport
381
+ had been written twice and the copies had drifted; one of them skipped this.
382
+ Both servers now share `src/server/http-transport.ts` (**D-07**).
383
+
384
+ ### Changed
385
+
386
+ - `ManagementOptions` gains `cwd`, which is what project-scoped skill targets
387
+ resolve against. It defaults to `process.cwd()` — right for `roomyx mcp`,
388
+ wrong for a long-lived server embedded in a host whose working directory
389
+ belongs to someone else.
390
+
391
+ ## [0.4.0] — 2026-09-09
392
+
393
+ - Owner commands reach the TUI: `o` opens a prompt for veto / constraint /
394
+ add-participant / goal-edit. Against a room served by bare `roomyx serve` the
395
+ answer is an honest refusal — no dispatcher is attached, and accepting a
396
+ command nothing will act on would be a lie.
397
+ - The bundled `startup-room` skill is the real methodology with roomyx's steps
398
+ folded in, rather than a placeholder.
399
+ - `roomyx --version`.
400
+ - `docs/roomyx/testing-story.md`: a walkthrough where every command was run
401
+ against the packed build.
402
+
403
+ ## [0.3.0] — 2026-09-09
404
+
405
+ - `roomyx skills sync` on the CLI, with named targets (`claude`, `codex`,
406
+ `keryx`, `all`) resolving to each runtime's real skill location.
407
+ - `room.post_owner_command` on the server: it forwards to a dispatcher-supplied
408
+ handler and never writes to the log (**D-01**).
409
+ - The registry stores an absolute `logPath`. It always claimed to; the code
410
+ stored whatever argv held, so `roomyx serve ./room.jsonl` left a path
411
+ meaningless to a client started elsewhere.
412
+ - `roomyx client` and `roomyx mcp` subcommands.
413
+
414
+ ## [0.2.1] — 2026-09-09
415
+
416
+ - Stop crashing in a project that was never `roomyx init`-ed. `rooms list`
417
+ printed a bare `ENOENT` and `roomyx-client` printed a stack trace, both for
418
+ the ordinary case of "no room has been started here yet". `roomyx serve` was
419
+ worse: it bound its port and only then died registering itself.
420
+
421
+ ## [0.2.0] — 2026-09-09
422
+
423
+ - `roomyx-client` ships as a binary. The README had promised `roomyx client`
424
+ and a running server printed the same, but no such command existed — the TUI
425
+ was unreachable in 0.1.0.
426
+ - README documents the commands, both MCP servers' tools, the `.roomyx` layout
427
+ and the skill-sync refusals, and states that Bun must be on `PATH`.
428
+
429
+ ## [0.1.0] — 2026-09-09
430
+
431
+ First publish. MCP server over a room log, terminal UI, room registry with
432
+ liveness checking, skill-sync, and a management MCP server.
package/README.md CHANGED
@@ -7,18 +7,25 @@ run at once and be found by id, and a skill-sync path that installs the bundled
7
7
  `startup-room` skill into a project without ever silently overwriting local
8
8
  edits.
9
9
 
10
- roomyx never writes to a room log. Owner commands do exist —
11
- `room.post_owner_command` takes a veto, constraint, added participant or goal
12
- edit — but the tool only forwards them to the dispatcher that runs the room.
13
- The log keeps exactly one writer, which is what the room's consistency rests
10
+ **A live room has exactly one writer, and it is never roomyx's server.** Owner
11
+ commands exist — `room.post_owner_command` takes a veto, constraint, added
12
+ participant or goal edit — but the tool only forwards them to the dispatcher
13
+ running the room. That single-writer rule is what the room's consistency rests
14
14
  on.
15
15
 
16
+ `roomyx room new` and `roomyx room append` do write, and that is not an
17
+ exception to the rule: creating a log nobody serves takes the writer count from
18
+ zero to one, and `append` refuses outright when the registry shows a live room
19
+ serving that path. See D-01a.
20
+
16
21
  ## Requirements
17
22
 
18
- **[Bun](https://bun.sh) 1.1 or newer must be on your `PATH`.** Both binaries are
19
- shipped as TypeScript with a `#!/usr/bin/env bun` shebang and are executed by
20
- Bun directly — there is no compiled or transpiled build step. Installing with
21
- npm works fine, but the commands will not run on a machine that has only Node.
23
+ **[Bun](https://bun.sh) 1.1 or newer must be on your `PATH`.** roomyx ships
24
+ TypeScript and runs it directly — there is no build step, so Bun is the
25
+ interpreter rather than a build-time dependency.
26
+
27
+ Installing on a machine without Bun succeeds, and the commands then tell you so
28
+ and point at https://bun.sh. They will not install it for you.
22
29
 
23
30
  ## Install
24
31
 
@@ -32,14 +39,15 @@ bun install -g @mrciphersmith/roomyx
32
39
 
33
40
  ```bash
34
41
  cd your-project
35
- roomyx init # scaffold .roomyx/
36
- roomyx serve path/to/room.jsonl # serve one room log over MCP
42
+ roomyx init # scaffold .roomyx/
43
+ roomyx room new room.jsonl --goal "Pick a database" # create a room log
44
+ roomyx serve room.jsonl # serve it over MCP
37
45
  ```
38
46
 
39
47
  `serve` prints the room's URL and its generated id:
40
48
 
41
49
  ```
42
- roomyx serving path/to/room.jsonl at http://127.0.0.1:4319/mcp
50
+ roomyx serving /abs/path/room.jsonl at http://127.0.0.1:4319/mcp
43
51
  room ID: r-a1b2c3 — attach with `roomyx-client --room r-a1b2c3`
44
52
  ```
45
53
 
@@ -50,11 +58,46 @@ roomyx-client # auto-attaches when exactly one room is live
50
58
  roomyx-client --room r-a1b2c3
51
59
  ```
52
60
 
53
- In the TUI: `↑`/`↓` move through the roster, `Enter` opens the selected agent's
54
- modal, `Esc` closes it, `q` or `Ctrl-C` quits. `o` opens an owner command —
55
- pick `v`eto, `c`onstraint, `a`dd participant or `g`oal edit, type the body,
56
- `Enter` sends. While the prompt is open it owns the keyboard, so a `q` in a
57
- veto is text rather than a quit.
61
+ In the TUI, the transcript owns the arrows and the roster has its own keys:
62
+
63
+ | Key | |
64
+ | --- | --- |
65
+ | `↑` `↓` | scroll the transcript a line |
66
+ | `PgUp` `PgDn` | scroll a page; `Ctrl-U` / `Ctrl-D` a half page |
67
+ | `g` `G` | jump to the top, or back to following the newest message |
68
+ | `j` `k` | move the roster selection |
69
+ | `Enter` | filter the stream to the selected participant; `Esc` clears |
70
+ | `/` | search, then `n` / `N` for next and previous match |
71
+ | `:` | owner command — then `v`eto, `c`onstraint, `a`dd participant or `g`oal edit, type the body, `Enter` sends |
72
+ | `w` | write what is on screen to a file in the working directory |
73
+ | `?` | the full keymap |
74
+ | `q` `Ctrl-C` | quit |
75
+
76
+ Selecting a participant filters the stream where it is rather than opening a
77
+ window over it, so the filter composes with scrolling and with search, and
78
+ leaving it is `Esc` rather than a mode you have to remember you are in. A live
79
+ filter or search is named in the footer — a filter that is on but invisible
80
+ makes a busy room look like a quiet one.
81
+
82
+ `w` exists because a terminal is a bad place to search and a good place to
83
+ read. It never overwrites: the next free numbered name is used, and a filtered
84
+ view gets its own file.
85
+
86
+ The bottom line carries the same keys, so nothing here has to be memorised, and
87
+ next to them the room's liveness: a message count and the age of the newest
88
+ message, or a `DISCONNECTED` that stays put. Scroll away from the bottom and it
89
+ tells you so, and tells you how to get back.
90
+
91
+ While the owner prompt is open it owns the keyboard, so a `q` in a veto is text
92
+ rather than a quit.
93
+
94
+ Below 80 columns the roster gives up its gutter to the transcript and the
95
+ footer carries the participant count instead; widen the terminal and the list
96
+ comes back.
97
+
98
+ Up to 0.5.0 the arrows moved the roster and nothing scrolled at all, `o` opened
99
+ the owner prompt, and `Enter` opened a modal window over the roster. `o` still
100
+ works, so a habit does not break on upgrade, but `:` is the documented key.
58
101
 
59
102
  ## Commands
60
103
 
@@ -71,6 +114,24 @@ registry, and a staged copy of the bundled `startup-room` skill. It never
71
114
  clobbers a registry that already has rooms in it, and never overwrites an
72
115
  existing `config.json`.
73
116
 
117
+ ### `roomyx room new <path> [flags]` / `roomyx room append <path> [flags]`
118
+
119
+ Creates a room log, and appends messages to one.
120
+
121
+ | Flag | Meaning |
122
+ | --- | --- |
123
+ | `--goal <s>` | Required by `new`. A room without a stated goal has nothing to converge on. |
124
+ | `--criteria <s>` | The success criteria, stored in the goal contract. |
125
+ | `--roster id:Name,...` | Participants. `id` is what `room.get_agent_detail` takes. |
126
+ | `--from <id>` / `--body <s>` | Required by `append`. |
127
+ | `--kind <k>` / `--in-reply-to <n>` | Optional message structure. |
128
+ | `--force` | Append anyway when a live room is serving that log. |
129
+
130
+ `new` refuses to overwrite an existing log — it is append-only, and clobbering
131
+ one loses a session. `append` refuses when the registry shows a live room
132
+ serving that path, because that room's dispatcher is the log's single writer
133
+ (D-01a). `--force` is for when you know the room is gone.
134
+
74
135
  ### `roomyx serve <logPath> [flags]`
75
136
 
76
137
  Serves one room log as an MCP server over StreamableHTTP, and registers the room
@@ -165,7 +226,14 @@ and skill-sync — to any MCP client.
165
226
  | Tool | Input | Returns |
166
227
  | --- | --- | --- |
167
228
  | `roomyx.rooms.list` | — | Live, liveness-checked rooms. |
168
- | `roomyx.skills.sync` | `target?: claude \| codex \| keryx \| all` or `targetPath?: string`, `dryRun?: boolean`, `yes?: boolean` | One result per target: whether it would write, whether it did, and where the backup went. |
229
+ | `roomyx.skills.sync` | `target: claude \| codex \| keryx \| all`, `dryRun?: boolean`, `yes?: boolean` | One result per target: whether it would write, whether it did, and where the backup went. |
230
+
231
+ **Named targets only, deliberately.** This tool once accepted a literal
232
+ `targetPath`, which made it an arbitrary-path file writer on an unauthenticated
233
+ loopback port — a page in any browser tab could drive it cross-origin. The CLI
234
+ keeps its literal-path escape hatch, because that is the operator on their own
235
+ machine. The network surface does not get one. `keryx` resolves project-locally
236
+ against the server's `cwd` option, which defaults to the process's.
169
237
 
170
238
  Start it with `roomyx mcp` (default port `4320`, so it does not collide with
171
239
  `roomyx serve`'s `4319`). Same loopback / `--acknowledge-non-loopback` rules as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/roomyx",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "description": "MCP server + terminal UI for startup-room: live room status, chat, per-agent modal, an installable room registry, and skill-sync.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -23,11 +23,12 @@
23
23
  "cli"
24
24
  ],
25
25
  "bin": {
26
- "roomyx": "./src/cli.ts",
27
- "roomyx-client": "./src/client/index.ts"
26
+ "roomyx": "./src/bin/roomyx.mjs",
27
+ "roomyx-client": "./src/bin/roomyx-client.mjs"
28
28
  },
29
29
  "files": [
30
30
  "src",
31
+ "CHANGELOG.md",
31
32
  "LICENSE",
32
33
  "README.md",
33
34
  "package.json"
@@ -39,7 +40,7 @@
39
40
  "check": "bun run lint && bun run typecheck && bun test"
40
41
  },
41
42
  "dependencies": {
42
- "@modelcontextprotocol/sdk": "^1.0.0",
43
+ "@modelcontextprotocol/sdk": "^1.25.0",
43
44
  "@opentui/core": "^0.5.11",
44
45
  "zod": "^4.5.4"
45
46
  },