@mrciphersmith/roomyx 0.7.0 → 0.7.1
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 +32 -0
- package/package.json +1 -1
- package/src/bundled-skills/startup-room/SKILL.md +42 -4
- package/src/log/store.ts +13 -1
- package/src/server/serve.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,38 @@ patch and never a minor. The rule, the reason, and an audit of the four of seven
|
|
|
13
13
|
releases that followed it are in
|
|
14
14
|
[`docs/roomyx/versioning.md`](docs/roomyx/versioning.md) and decision D-13.
|
|
15
15
|
|
|
16
|
+
## [0.7.1] — 2026-09-10
|
|
17
|
+
|
|
18
|
+
A patch. Found while writing setup prompts for an operator: following the
|
|
19
|
+
bundled skill produced a room that could not be attached to, and nothing said
|
|
20
|
+
why.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **`roomyx serve` refuses a log it cannot read, instead of becoming an
|
|
25
|
+
invisible room.** It used to bind a port, print a room ID and an attach
|
|
26
|
+
command, and only then fail on every tool call. Because the liveness probe
|
|
27
|
+
reads a throwing `room.get_state` as "not this room", `roomyx rooms list`
|
|
28
|
+
answered **"No live rooms"** about a server that was running, and the client
|
|
29
|
+
refused to attach to the id it had just been handed. The log is now read once
|
|
30
|
+
before anything is bound, so the failure is a sentence naming the file and the
|
|
31
|
+
line.
|
|
32
|
+
- **A missing log is a sentence, not a stack trace.** `roomyx serve nope.jsonl`
|
|
33
|
+
printed a raw `ENOENT` with a stack. It now says what is missing and the one
|
|
34
|
+
command that creates it — a typo'd path being the most ordinary way to get
|
|
35
|
+
there.
|
|
36
|
+
- **The bundled `startup-room` skill told dispatchers to keep the transcript in
|
|
37
|
+
markdown, which roomyx cannot read.** The section that added roomyx was
|
|
38
|
+
written without reconciling the format, so an agent following the skill
|
|
39
|
+
produced a `.md` log and a room that would not serve. It now creates the log
|
|
40
|
+
with `roomyx room new` (JSONL) and appends with `roomyx room append --force`,
|
|
41
|
+
and says why `--force` is right there: the dispatcher *is* the single writer
|
|
42
|
+
the guard exists to protect, and roomyx cannot tell that from outside. The
|
|
43
|
+
markdown convention remains, for when roomyx is not available.
|
|
44
|
+
- The skill also now tells the dispatcher to mention `roomyx rooms history` and
|
|
45
|
+
`roomyx-client --archive` when a room ends, so the owner knows a closed room
|
|
46
|
+
can still be reread.
|
|
47
|
+
|
|
16
48
|
## [0.7.0] — 2026-09-10
|
|
17
49
|
|
|
18
50
|
A minor, because two things an existing caller relied on changed. The feature is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrciphersmith/roomyx",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
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"
|
|
@@ -103,7 +103,7 @@ When the owner says "save this idea" (or a candidate clearly survives enough rou
|
|
|
103
103
|
|
|
104
104
|
1. Identify the persona profile files to use (e.g. `arena/roles/**/*.md` or a subset). Each profile should already be a neutral biography/expertise sheet — no pre-baked opinions or conclusions (see the project's persona-writing convention if one exists).
|
|
105
105
|
2. Write the **goal contract** (see above): goal statement, success criteria (default to the 50-criteria rubric for a startup-idea room), and the convergence requirement.
|
|
106
|
-
3. Create the log file with a header: the goal contract in full (not just a one-line goal — include the criteria/threshold so anyone reading the log later can check whether it was actually met), list of participants (name + one-line role), and the ground rule that only the moderator writes to it.
|
|
106
|
+
3. Create the log. **If roomyx is available, create it with `roomyx room new` (JSONL) — see below.** Otherwise create a markdown file with a header: the goal contract in full (not just a one-line goal — include the criteria/threshold so anyone reading the log later can check whether it was actually met), list of participants (name + one-line role), and the ground rule that only the moderator writes to it.
|
|
107
107
|
4. Decide the opening framing. If the task is "find something from scratch," say so explicitly and do NOT hand participants a pre-built brief that narrows their options — that biases the room before it starts. The criteria are the bar the eventual candidate must clear, not a hint about what kind of idea to look for.
|
|
108
108
|
5. If roomyx is available for this project — a `.roomyx/` directory exists, or `roomyx` resolves on `PATH` — start a server for the log so the owner can watch the room live. See **Watching the room live (roomyx)** below. If it isn't available, skip this step and run the session exactly as you would otherwise; nothing here depends on it.
|
|
109
109
|
|
|
@@ -114,20 +114,54 @@ turns it into something they can watch while it runs, without changing how the
|
|
|
114
114
|
room works: it reads the log and serves it, and it never writes to it. The
|
|
115
115
|
dispatcher stays the log's single writer.
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
**The log must be roomyx's own format, not the markdown transcript.** roomyx
|
|
118
|
+
reads JSONL: one `state` header line, then one JSON line per message. A markdown
|
|
119
|
+
file is not readable by it, so create the log with `roomyx room new` and append
|
|
120
|
+
through `roomyx room append` — those two commands are the whole of it, and the
|
|
121
|
+
dispatcher is still the single writer. Use the markdown convention described
|
|
122
|
+
above only when roomyx is *not* available.
|
|
123
|
+
|
|
124
|
+
Create the room and start the server as part of setup, before the kickoff
|
|
125
|
+
spawns:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
roomyx room new .roomyx/rooms/logs/<topic>.jsonl \
|
|
129
|
+
--goal "<the goal statement>" \
|
|
130
|
+
--criteria "<the threshold, in one line>" \
|
|
131
|
+
--roster "ann:Ann,ben:Ben,cara:Cara"
|
|
132
|
+
|
|
133
|
+
roomyx serve .roomyx/rooms/logs/<topic>.jsonl --port 0
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Then append each participant's turn verbatim as it arrives:
|
|
118
137
|
|
|
119
138
|
```bash
|
|
120
|
-
roomyx
|
|
139
|
+
roomyx room append .roomyx/rooms/logs/<topic>.jsonl --force \
|
|
140
|
+
--from ann --kind pitch --body "<their actual words>"
|
|
121
141
|
```
|
|
122
142
|
|
|
143
|
+
**`--force` is required here, and it is correct here.** Without it, `append`
|
|
144
|
+
refuses whenever a live room is serving that log — a guard against a *second*
|
|
145
|
+
writer racing the dispatcher. You are the dispatcher: the single writer the
|
|
146
|
+
guard exists to protect. roomyx cannot tell the two apart from outside, so it
|
|
147
|
+
asks, and this is the case where the answer is yes.
|
|
148
|
+
|
|
149
|
+
`--kind` is one of `pitch`, `question`, `challenge`, `answer`, `vote`, `status`,
|
|
150
|
+
`research`; `--in-reply-to <seq>` records who was being answered. Both are
|
|
151
|
+
optional and both make the transcript far easier to read later.
|
|
152
|
+
|
|
123
153
|
`--port 0` takes an ephemeral port, so several rooms can run at once without
|
|
124
154
|
colliding. It prints the bound URL and a short room ID:
|
|
125
155
|
|
|
126
156
|
```
|
|
127
|
-
roomyx serving /abs/path/room.
|
|
157
|
+
roomyx serving /abs/path/room.jsonl at http://127.0.0.1:41235/mcp
|
|
128
158
|
room ID: r-a1b2c3 — attach with `roomyx-client --room r-a1b2c3`
|
|
129
159
|
```
|
|
130
160
|
|
|
161
|
+
If `serve` refuses instead, read what it says: it now reads the log before
|
|
162
|
+
binding anything, so "must start with a valid state line" means the file is not
|
|
163
|
+
a roomyx log — most likely a markdown transcript. Create it with `room new`.
|
|
164
|
+
|
|
131
165
|
**Relay that room ID to the owner in the kickoff confirmation, with the attach
|
|
132
166
|
command.** That is the whole point of starting it — the owner opens the room in
|
|
133
167
|
a second terminal and watches the discussion as it happens instead of waiting
|
|
@@ -141,6 +175,10 @@ Stop the server with `SIGINT`/`SIGTERM` when the room ends — it removes its ow
|
|
|
141
175
|
registry entry on the way out. A server killed outright leaves a stale entry,
|
|
142
176
|
which is harmless: the next `rooms list` prunes it after a liveness check.
|
|
143
177
|
|
|
178
|
+
A closed room is not lost. It is recorded in `roomyx rooms history`, and the
|
|
179
|
+
owner can reread it at any time with `roomyx-client --archive`, so tell them the
|
|
180
|
+
room is in the history when you finish.
|
|
181
|
+
|
|
144
182
|
## Kickoff (spawn once per persona)
|
|
145
183
|
|
|
146
184
|
Spawn each participant as a separate `Agent` call (`subagent_type: general-purpose`, tools available as needed — allow `WebSearch`/`WebFetch` if the room is expected to ground claims in reality, not just riff). The kickoff prompt for each must include:
|
package/src/log/store.ts
CHANGED
|
@@ -27,7 +27,19 @@ function parseLine(text: string, describe: () => string): unknown {
|
|
|
27
27
|
export function loadRoomLog(path: string): { state: RoomState; messages: MessageEnvelope[] } {
|
|
28
28
|
// Editors add a byte-order mark; it is not part of the JSON and it made the
|
|
29
29
|
// first line unparseable, which made the whole room unreadable.
|
|
30
|
-
|
|
30
|
+
let raw: string;
|
|
31
|
+
try {
|
|
32
|
+
raw = readFileSync(path, "utf8").replace(/^\uFEFF/, "");
|
|
33
|
+
} catch (error) {
|
|
34
|
+
// A sentence, not a stack. Every other failure in this function names the
|
|
35
|
+
// file and says what is wrong with it; "no such file" was the one that
|
|
36
|
+
// escaped as a raw ENOENT with a stack trace, and it is the most ordinary
|
|
37
|
+
// mistake there is \u2014 a typo in a path, or a log that has been moved.
|
|
38
|
+
if ((error as NodeJS.ErrnoException).code === "ENOENT") {
|
|
39
|
+
throw new Error(`No room log at ${path}. Create one with \`roomyx room new ${path} --goal "\u2026"\`.`);
|
|
40
|
+
}
|
|
41
|
+
throw new Error(`Cannot read room log at ${path}: ${error instanceof Error ? error.message : String(error)}`);
|
|
42
|
+
}
|
|
31
43
|
const lines = raw.split("\n").filter((line) => line.trim().length > 0);
|
|
32
44
|
|
|
33
45
|
if (lines.length === 0) {
|
package/src/server/serve.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { createRoomMcpServer } from "./index";
|
|
|
2
2
|
import type { RoomMcpServerOptions } from "./index";
|
|
3
3
|
import { serveMcpOverHttp } from "./http-transport";
|
|
4
4
|
import type { McpHttpTransportHandle } from "./http-transport";
|
|
5
|
+
import { loadRoomLog } from "../log/store";
|
|
5
6
|
|
|
6
7
|
export interface ServeOptions extends RoomMcpServerOptions {
|
|
7
8
|
/** Defaults to 4319 (specification.md's default). 0 selects an ephemeral port. */
|
|
@@ -18,6 +19,20 @@ export type ServeHandle = McpHttpTransportHandle;
|
|
|
18
19
|
* is which server a session gets and which port it defaults to.
|
|
19
20
|
*/
|
|
20
21
|
export async function serve(logPath: string, options: ServeOptions): Promise<ServeHandle> {
|
|
22
|
+
// Read the log once before binding anything.
|
|
23
|
+
//
|
|
24
|
+
// Without this, `roomyx serve` on a log it cannot parse — a markdown
|
|
25
|
+
// transcript, say, which is what the bundled skill used to tell a dispatcher
|
|
26
|
+
// to write — succeeded loudly and then failed silently: it bound a port,
|
|
27
|
+
// printed a room ID and an attach command, and every tool call threw. The
|
|
28
|
+
// liveness probe treats a throwing `room.get_state` as "not this room", so
|
|
29
|
+
// `roomyx rooms list` answered **"No live rooms"** about a server that was
|
|
30
|
+
// running, and the client refused to attach to the id it had just been given.
|
|
31
|
+
//
|
|
32
|
+
// Failing here costs one read and turns an invisible room into a sentence
|
|
33
|
+
// that names the file and the line.
|
|
34
|
+
loadRoomLog(logPath);
|
|
35
|
+
|
|
21
36
|
return serveMcpOverHttp({
|
|
22
37
|
createMcpServer: () => createRoomMcpServer(logPath, { onOwnerCommand: options.onOwnerCommand }),
|
|
23
38
|
commandLabel: "roomyx serve",
|