@mrciphersmith/roomyx 0.10.1 → 0.10.2

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 CHANGED
@@ -13,6 +13,23 @@ 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.10.2] — 2026-09-10
17
+
18
+ ### Added
19
+
20
+ - **The persona library is offered at both scopes in `roomyx init`**, under its
21
+ own heading — "For every project" (`~/.roomyx/personas`) and "In this project"
22
+ (`.roomyx/personas`) — the same machine-wide/project question the skill rows
23
+ already ask. `roomyx personas --global` is the command-line equivalent.
24
+ - **The skill now states a lookup order**: `.roomyx/personas/` first, falling
25
+ back to `~/.roomyx/personas/`. A project copy overrides the machine-wide one,
26
+ which is the order every runtime already uses for skills.
27
+
28
+ The project row is ticked by default and the machine-wide one is not: the
29
+ project copy is the one the skill prefers and the one that travels with the
30
+ repository, and eighty-seven files appearing under a home directory nobody asked
31
+ about is the surprise the default-tick rule exists to prevent.
32
+
16
33
  ## [0.10.1] — 2026-09-10
17
34
 
18
35
  A patch. The skill pointed at a persona directory that only existed in the
package/README.md CHANGED
@@ -209,12 +209,15 @@ offers the same thing as a ticked box.
209
209
  | a 50-question interview script | `questionnaire-50.md` |
210
210
 
211
211
  A room is built out of these — the `startup-room` skill casts its participants
212
- from this directory. The 50-criteria scoring rubric travels inside the skill
212
+ from this directory. It looks in `.roomyx/personas/` first and falls back to
213
+ `~/.roomyx/personas/`, so a project copy overrides the machine-wide one — the
214
+ same order every runtime uses for skills. The 50-criteria scoring rubric travels inside the skill
213
215
  itself.
214
216
 
215
217
  | Flag | Default | Meaning |
216
218
  | --- | --- | --- |
217
219
  | `--target <dir>` | `.roomyx/personas` | Where the library goes. |
220
+ | `--global` | off | Install for every project, into `~/.roomyx/personas`. |
218
221
  | `--force` | off | Replace the library, moving the existing directory aside as `.bak-<timestamp>`. |
219
222
 
220
223
  **Files that already exist are skipped, never overwritten.** They ship as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrciphersmith/roomyx",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
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"
@@ -101,7 +101,7 @@ When the owner says "save this idea" (or a candidate clearly survives enough rou
101
101
 
102
102
  ## Setup
103
103
 
104
- 1. Identify the persona profile files to use. **roomyx ships a library — install it with `roomyx personas` and it lands in `.roomyx/personas/`:** fifty numbered interview personas (ordinary people in ordinary jobs, one per file), plus `founders/`, `tech/` and `panel/` for founder, engineering and judging roles, plus `questionnaire-50.md`, a fifty-question interview script for use with any of them. Pick a subset that fits the room's goal — a room does not need fifty voices, it needs the right three to six. If the project keeps its own profiles instead, use those; each profile should be a neutral biography/expertise sheet with no pre-baked opinions or conclusions.
104
+ 1. Identify the persona profile files to use. **roomyx ships a library — install it with `roomyx personas`.** Look in `.roomyx/personas/` first and fall back to `~/.roomyx/personas/`; a project copy overrides the machine-wide one, the same order every runtime uses for skills. Either directory holds: fifty numbered interview personas (ordinary people in ordinary jobs, one per file), plus `founders/`, `tech/` and `panel/` for founder, engineering and judging roles, plus `questionnaire-50.md`, a fifty-question interview script for use with any of them. Pick a subset that fits the room's goal — a room does not need fifty voices, it needs the right three to six. If the project keeps its own profiles instead, use those; each profile should be a neutral biography/expertise sheet with no pre-baked opinions or conclusions.
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
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.
package/src/cli.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  import { existsSync, readFileSync } from "node:fs";
3
+ import { homedir } from "node:os";
3
4
  import { join, resolve } from "node:path";
4
5
  import { serve } from "./server/serve";
5
6
  import { createServerShutdown } from "./server/shutdown";
@@ -529,13 +530,22 @@ const COMMANDS: Record<string, Command> = {
529
530
  usage: "roomyx personas [flags]",
530
531
  summary: "install the bundled persona library into this project",
531
532
  notes:
532
- "Fifty interview personas, plus founder, technical and panel roles, plus\n a fifty-question interview questionnaire. A room is built out of these —\n the startup-room skill reads them from the directory below.\n\n Files that already exist are skipped, never overwritten: a persona is a\n file you are meant to edit.",
533
+ "Fifty interview personas, plus founder, technical and panel roles, plus\n a fifty-question interview questionnaire. A room is built out of these.\n\n The skill looks in .roomyx/personas first and falls back to\n ~/.roomyx/personas, so a project copy overrides the machine-wide one.\n\n Files that already exist are skipped, never overwritten: a persona is a\n file you are meant to edit.",
533
534
  flags: {
534
535
  target: { type: "string", describe: "Directory (default .roomyx/personas)" },
536
+ global: { type: "boolean", describe: "Install for every project, into ~/.roomyx/personas" },
535
537
  force: { type: "boolean", describe: "Replace the library, moving the existing directory aside first" },
536
538
  },
537
539
  run: async ({ flags }) => {
538
- const target = typeof flags.target === "string" ? resolve(flags.target) : defaultPersonasPath();
540
+ if (typeof flags.target === "string" && flags.global === true) {
541
+ throw new ArgError("Pass either --target or --global, not both — they name different directories.");
542
+ }
543
+ const target =
544
+ typeof flags.target === "string"
545
+ ? resolve(flags.target)
546
+ : flags.global === true
547
+ ? join(homedir(), ".roomyx", "personas")
548
+ : defaultPersonasPath();
539
549
  const result = installPersonas(bundledPersonasPath(), target, { force: flags.force === true });
540
550
 
541
551
  if (result.movedAside) console.log(`Moved the previous library to ${result.movedAside}`);
@@ -1,4 +1,5 @@
1
1
  import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
2
3
  import { join } from "node:path";
3
4
  import { SKILL_RUNTIMES } from "./skill-targets";
4
5
  import type { SkillRuntime } from "./skill-targets";
@@ -39,6 +40,7 @@ export interface PlanItem {
39
40
 
40
41
  export const GROUP_USER = "Skill — every project on this machine";
41
42
  export const GROUP_PROJECT = "Skill — this project only (travels with the repo)";
43
+ export const GROUP_PERSONAS = "Persona library — a room is cast from these";
42
44
  export const GROUP_EXTRAS = "Also";
43
45
 
44
46
  export interface PlanContext {
@@ -47,7 +49,7 @@ export interface PlanContext {
47
49
  personaFiles?: number;
48
50
  /** Injectable so the tests never look at the operator's real home directory. */
49
51
  exists?: (path: string) => boolean;
50
- /** Injectable for the same reason. */
52
+ /** Injectable so a test never writes into the operator's real home directory. */
51
53
  home?: string;
52
54
  }
53
55
 
@@ -85,24 +87,43 @@ export function buildPlan(context: PlanContext): PlanItem[] {
85
87
  });
86
88
  }
87
89
 
88
- const personasDir = join(cwd, ".roomyx", "personas");
89
- items.push({
90
- id: "personas",
91
- kind: "personas",
92
- group: GROUP_EXTRAS,
93
- label: "Persona library",
94
- path: personasDir,
95
- detail: personasDir,
96
- // A room is built out of these, and without them the skill has nothing to
97
- // cast. It lands in roomyx's own directory, so nobody is surprised to find
98
- // it, and existing files are never overwritten.
99
- selected: true,
100
- done: exists(personasDir)
101
- ? "already there — existing files are kept"
102
- : context.personaFiles === undefined
103
- ? undefined
104
- : `${context.personaFiles} files`,
105
- });
90
+ // Two scopes, the same shape as the skill rows above — and for the same
91
+ // reason. A copy in the project travels with the repository and is what a
92
+ // team shares; a copy under the home directory is there for every project on
93
+ // the machine, including throwaway ones. The skill prefers the project copy
94
+ // and falls back to the home one, which is the order every runtime already
95
+ // uses for skills.
96
+ const homeDir = context.home ?? homedir();
97
+ const personaScopes: [string, string, string, boolean][] = [
98
+ [
99
+ "personas:user",
100
+ "For every project",
101
+ join(homeDir, ".roomyx", "personas"),
102
+ // Not ticked by default. The project copy is the one the skill prefers and
103
+ // the one that travels with the repo; a second copy under the home
104
+ // directory is convenience, and 87 files appearing in a directory the
105
+ // operator did not know existed is the surprise the tick rule forbids.
106
+ false,
107
+ ],
108
+ ["personas:project", "In this project", join(cwd, ".roomyx", "personas"), true],
109
+ ];
110
+
111
+ for (const [id, label, path, ticked] of personaScopes) {
112
+ items.push({
113
+ id,
114
+ kind: "personas",
115
+ group: GROUP_PERSONAS,
116
+ label,
117
+ path,
118
+ detail: path,
119
+ selected: ticked && !exists(path),
120
+ done: exists(path)
121
+ ? "already there — existing files are kept"
122
+ : context.personaFiles === undefined
123
+ ? undefined
124
+ : `${context.personaFiles} files`,
125
+ });
126
+ }
106
127
 
107
128
  const logsDir = join(cwd, ".roomyx", "rooms", "logs");
108
129
  items.push({