@catalyst-cloud/cli 0.14.10 → 0.15.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +41 -0
  3. package/dist/args.js +34 -2
  4. package/dist/capabilities.js +2 -1
  5. package/dist/cli-update-notice.js +76 -0
  6. package/dist/cli.js +263 -101
  7. package/dist/oauth.js +48 -18
  8. package/dist/onboard-accounts.js +34 -5
  9. package/dist/onboard-automation-management.js +27 -9
  10. package/dist/onboard-capacity.js +10 -1
  11. package/dist/onboard-existing.js +132 -31
  12. package/dist/onboard-github.js +171 -6
  13. package/dist/onboard-headless.js +647 -0
  14. package/dist/onboard-interrupts.js +41 -0
  15. package/dist/onboard-next.js +215 -0
  16. package/dist/onboard-permissions.js +100 -0
  17. package/dist/onboard-personal.js +46 -10
  18. package/dist/onboard-runner-cloud.js +213 -0
  19. package/dist/onboard-runner-egress.js +67 -0
  20. package/dist/onboard-runner.js +780 -0
  21. package/dist/onboard-runtime.js +48 -8
  22. package/dist/onboard-standalone-copy.js +110 -0
  23. package/dist/onboard-team-create.js +267 -0
  24. package/dist/onboard-ui.js +623 -29
  25. package/dist/onboard-workflow.js +311 -168
  26. package/dist/onboard-workspace.js +52 -5
  27. package/dist/onboard.js +359 -212
  28. package/dist/setup-events.js +100 -0
  29. package/dist/setup-onboard-copy.js +438 -0
  30. package/dist/setup-prompt-frame.js +94 -0
  31. package/dist/setup-prompts.js +108 -0
  32. package/dist/setup-render.js +339 -0
  33. package/dist/setup-signin.js +187 -0
  34. package/dist/setup.js +426 -0
  35. package/package.json +7 -3
  36. package/skills/catalyst-github/SKILL.md +1 -1
  37. package/skills/catalyst-linear/SKILL.md +1 -1
  38. package/skills/catalyst-onboard/SKILL.md +3 -2
  39. package/skills/run-this-project/SKILL.md +1 -1
  40. package/skills/unstick/SKILL.md +1 -1
  41. package/skills/what-needs-me/SKILL.md +1 -1
  42. package/skills/what-this-repo-needs/SKILL.md +1 -1
  43. package/skills/whats-happening/SKILL.md +1 -1
  44. package/vendor/README.md +4 -0
  45. package/vendor/self-host/compose.yaml +110 -0
  46. package/vendor/self-host/linux-session-egress/catalyst-session-egress-attest.service +14 -0
  47. package/vendor/self-host/linux-session-egress/catalyst-session-egress-attest.timer +10 -0
  48. package/vendor/self-host/linux-session-egress/catalyst-session-egress.service +19 -0
  49. package/vendor/self-host/linux-session-egress/session-egress.py +291 -0
  50. package/vendor/self-host/provenance.json +11 -0
package/dist/setup.js ADDED
@@ -0,0 +1,426 @@
1
+ // setup.ts — CTC-4625: `catalyst setup`, what a person sees while Catalyst installs.
2
+ //
3
+ // install.sh is a small POSIX bootstrap: it checks for Node, npm, git and a coding agent, gets
4
+ // this command, and runs `catalyst setup --engine <file> --engine-sha256 <digest> -- <its args>`.
5
+ // The engine is the served install script's step bodies. It runs unchanged in behaviour, with
6
+ // CATALYST_INSTALL_UI=events: it keeps the lock, the last-run.json receipt, resume, the flags and
7
+ // the exit codes, and instead of drawing anything it reports on fd 4 (see setup-events.ts). This
8
+ // command draws those reports, asks the questions, and runs the sign-in itself.
9
+ //
10
+ // fd 3 the --json document, forwarded to stdout unchanged (one document)
11
+ // fd 4 the engine's events
12
+ // fd 5 this command's answers, one line per question or sign-in
13
+ import { spawn } from "node:child_process";
14
+ import { createHash } from "node:crypto";
15
+ import { mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
16
+ import { constants, tmpdir } from "node:os";
17
+ import { join } from "node:path";
18
+ import { Readable, Writable } from "node:stream";
19
+ import { VERB_USAGE } from "./args.js";
20
+ import { plainSetupLine, SetupEventStream, } from "./setup-events.js";
21
+ import { createSetupRenderer, } from "./setup-render.js";
22
+ const MACHINE_TITLES = {
23
+ 1: "Install the catalyst command",
24
+ 2: "Add the Catalyst skills",
25
+ 3: "Set up folders",
26
+ 4: "Sign in to Catalyst",
27
+ 5: "Local sync",
28
+ 6: "Schedule the daily update",
29
+ };
30
+ const EXIT_STOPPED = 10;
31
+ /** How long the engine's pipes may take to drain after it exits. */
32
+ const PIPE_DRAIN_MS = 2000;
33
+ /** Flags the engine reads a value after, so a value is never mistaken for --json or --yes. */
34
+ const VALUED = new Set([
35
+ "--scope",
36
+ "--prefix",
37
+ "--repo-root",
38
+ "--worktrees-root",
39
+ "--thoughts-repo",
40
+ "--housekeeping",
41
+ "--login-timeout",
42
+ "--replica-db",
43
+ "--profile",
44
+ ]);
45
+ export const SETUP_USAGE = VERB_USAGE.setup ?? "setup";
46
+ function parseSetupArgv(argv) {
47
+ let engine = "";
48
+ let sha256 = "";
49
+ let i = 0;
50
+ for (; i < argv.length; i++) {
51
+ const a = argv[i] ?? "";
52
+ if (a === "--") {
53
+ i++;
54
+ break;
55
+ }
56
+ if (a === "--engine" || a === "--engine-sha256") {
57
+ const value = argv[++i];
58
+ if (value === undefined)
59
+ return `${a} needs a value`;
60
+ if (a === "--engine")
61
+ engine = value;
62
+ else
63
+ sha256 = value;
64
+ continue;
65
+ }
66
+ break;
67
+ }
68
+ if (!engine || !sha256)
69
+ return "--engine and --engine-sha256 are required";
70
+ if (!/^[0-9a-f]{64}$/.test(sha256))
71
+ return "--engine-sha256 must be 64 lowercase hex characters";
72
+ return { engine, sha256, args: argv.slice(i) };
73
+ }
74
+ /** Which of the engine's own flags were given, read the way its parser reads them. */
75
+ export function engineFlags(args) {
76
+ const seen = { json: false, yes: false, verbose: false, localSync: false };
77
+ for (let i = 0; i < args.length; i++) {
78
+ const a = args[i] ?? "";
79
+ if (VALUED.has(a)) {
80
+ i++;
81
+ continue;
82
+ }
83
+ if (a === "--json")
84
+ seen.json = true;
85
+ if (a === "--yes")
86
+ seen.yes = true;
87
+ if (a === "--verbose")
88
+ seen.verbose = true;
89
+ if (a === "--with-replica")
90
+ seen.localSync = true;
91
+ }
92
+ return seen;
93
+ }
94
+ /** The plan's steps: number and title on one line, what it does indented below, a blank line between. */
95
+ function planRenderer(r) {
96
+ let open = false;
97
+ let hidden = false;
98
+ return {
99
+ plan(number, title, text) {
100
+ hidden = number === 5 || number === 7;
101
+ if (hidden)
102
+ return;
103
+ if (open)
104
+ r.blank();
105
+ open = true;
106
+ r.plan(number >= 8 ? number - 2 : number === 6 ? 5 : number, title, text);
107
+ },
108
+ more(text) {
109
+ if (!hidden)
110
+ r.line(` ${text}`);
111
+ },
112
+ close() {
113
+ open = false;
114
+ },
115
+ };
116
+ }
117
+ /** A stop before the engine ran: the person's line, and under --json the one document anyway. */
118
+ function stopBeforeEngine(deps, ctx, json, message) {
119
+ createSetupRenderer(deps.stderr, ctx.env).line(`catalyst setup: ${message}`);
120
+ if (json)
121
+ deps.writeJson(`${JSON.stringify({
122
+ schema: "catalyst-install-last-run/1",
123
+ state: "stopped",
124
+ exitCode: EXIT_STOPPED,
125
+ message,
126
+ fix: "run the install command again",
127
+ steps: [],
128
+ }, null, 2)}\n`);
129
+ return EXIT_STOPPED;
130
+ }
131
+ /** A shell reports a child killed by a signal as 128 plus its number; so does this command. */
132
+ function exitCodeOf(status, signal) {
133
+ if (status !== null)
134
+ return status;
135
+ return signal ? 128 + (constants.signals[signal] ?? 0) : EXIT_STOPPED;
136
+ }
137
+ export async function cmdSetup(argv, ctx, deps) {
138
+ const parsed = parseSetupArgv(argv);
139
+ if (typeof parsed === "string")
140
+ return stopBeforeEngine(deps, ctx, argv.includes("--json"), `${parsed}. Usage: catalyst ${SETUP_USAGE}`);
141
+ const flags = engineFlags(parsed.args);
142
+ let body;
143
+ try {
144
+ body = readFileSync(parsed.engine);
145
+ }
146
+ catch (error) {
147
+ return stopBeforeEngine(deps, ctx, flags.json, `the setup engine ${parsed.engine} could not be read (${error instanceof Error ? error.message : String(error)}). Nothing was changed.`);
148
+ }
149
+ if (createHash("sha256").update(body).digest("hex") !== parsed.sha256)
150
+ return stopBeforeEngine(deps, ctx, flags.json, "the setup engine did not match the digest install.sh expected. Nothing was run, and nothing was changed.");
151
+ // The engine runs from a private copy of the bytes just checked, so the file it was given cannot
152
+ // change between the check and the run.
153
+ const own = mkdtempSync(join(tmpdir(), "catalyst-setup-engine-"));
154
+ try {
155
+ const engine = join(own, "engine.sh");
156
+ writeFileSync(engine, body, { mode: 0o600 });
157
+ return await runEngine(engine, parsed.args, flags, ctx, deps);
158
+ }
159
+ finally {
160
+ rmSync(own, { recursive: true, force: true });
161
+ }
162
+ }
163
+ async function runEngine(engine, args, flags, ctx, deps) {
164
+ const errors = createSetupRenderer(deps.stderr, ctx.env);
165
+ const human = flags.json ? deps.stderr : deps.stdout;
166
+ const r = createSetupRenderer(human, flags.json ? { ...ctx.env, NO_COLOR: "1" } : ctx.env);
167
+ const plan = planRenderer(r);
168
+ // Aborts once the engine has exited: a question or sign-in still open then has nobody to answer.
169
+ const gone = new AbortController();
170
+ // The sign-in in progress, if any; Ctrl-C stops only that one.
171
+ let signinStop = null;
172
+ const child = spawn("/bin/sh", [engine, ...args], {
173
+ stdio: ["ignore", "pipe", "pipe", "pipe", "pipe", "pipe"],
174
+ env: {
175
+ ...ctx.env,
176
+ CATALYST_INSTALL_UI: "events",
177
+ CATALYST_INSTALL_INTERACTIVE: deps.interactive && !flags.yes ? "1" : "0",
178
+ },
179
+ });
180
+ // Node types `stdio` as a five-slot tuple; fds 3 to 5 exist because the spawn above asked for them.
181
+ const pipes = child.stdio;
182
+ const jsonPipe = pipes[3];
183
+ const eventPipe = pipes[4];
184
+ const answers = pipes[5];
185
+ if (!(jsonPipe instanceof Readable) ||
186
+ !(eventPipe instanceof Readable) ||
187
+ !(answers instanceof Writable)) {
188
+ child.kill("SIGTERM");
189
+ return stopBeforeEngine(deps, ctx, flags.json, "the setup engine's pipes could not be opened. Nothing was changed.");
190
+ }
191
+ answers.on("error", () => {
192
+ // The engine stopped before reading its answer; its exit code says why.
193
+ });
194
+ const answer = (line) => {
195
+ if (!answers.destroyed)
196
+ answers.write(`${line}\n`);
197
+ };
198
+ let spin = null;
199
+ const spinner = () => deps.spinner?.(r, flags.json ? "stderr" : "stdout") ?? null;
200
+ const stopSpin = () => {
201
+ spin?.stop();
202
+ spin = null;
203
+ };
204
+ const changes = [];
205
+ const deferredEnding = [];
206
+ let current = null;
207
+ let queue = Promise.resolve();
208
+ const handle = async (event) => {
209
+ if (event.kind !== "begin")
210
+ stopSpin();
211
+ if (event.kind !== "plan" && event.kind !== "more")
212
+ plan.close();
213
+ switch (event.kind) {
214
+ case "line":
215
+ if (/^(Details:|Full log:)\s+/.test(event.text))
216
+ flags.logPath = event.text.replace(/^(Details:|Full log:)\s+/, "");
217
+ if (deps.onboard && /^(Next:|Details:|Full log:)\s+/.test(event.text)) {
218
+ deferredEnding.push(event);
219
+ return;
220
+ }
221
+ if (event.text === "")
222
+ r.blank();
223
+ else if (!deps.onboard ||
224
+ !/^(Next:|Details:|Full log:|This computer is ready)/.test(event.text)) {
225
+ if (event.text === "Catalyst setup")
226
+ r.intro(event.text);
227
+ else
228
+ r.line(event.text);
229
+ }
230
+ return;
231
+ case "row":
232
+ r.line(` ${event.label.padEnd(18)} ${event.value}`);
233
+ return;
234
+ case "heading":
235
+ if (deps.onboard && ["What’s left", "What's left"].includes(event.text)) {
236
+ deferredEnding.push(event);
237
+ return;
238
+ }
239
+ if (!deps.onboard ||
240
+ !["What’s left", "What\'s left"].includes(event.text))
241
+ r.heading(event.text === "Setting up" ? "This computer" : event.text);
242
+ return;
243
+ case "plan":
244
+ plan.plan(event.number, event.title, event.text);
245
+ return;
246
+ case "more":
247
+ plan.more(event.text);
248
+ return;
249
+ case "begin":
250
+ stopSpin();
251
+ current = event;
252
+ if (event.number !== 7)
253
+ r.begin(event.number === 6 ? 5 : event.number === 5 ? 0 : event.number, MACHINE_TITLES[event.number] ?? event.title);
254
+ return;
255
+ case "step":
256
+ if (event.number !== 7)
257
+ r.step(event.mark === "act" && event.number === 6 ? "skip" : event.mark, event.number === 6 ? 5 : event.number === 5 ? 0 : event.number, MACHINE_TITLES[event.number] ?? event.title, event.outcome);
258
+ else if (event.mark === "fail")
259
+ r.step("fail", 0, "This computer", event.outcome);
260
+ current = null;
261
+ return;
262
+ case "detail":
263
+ if (current || flags.verbose)
264
+ r.detail(event.text);
265
+ return;
266
+ case "change":
267
+ changes.push(event.text);
268
+ return;
269
+ case "changes-end":
270
+ if (flags.verbose)
271
+ for (const text of changes.splice(0))
272
+ r.line(text);
273
+ return;
274
+ case "verdict":
275
+ if (!event.ok || !deps.onboard) {
276
+ r.heading(event.ok ? "Setup complete" : "Not ready for work yet");
277
+ r.line(event.text);
278
+ }
279
+ return;
280
+ case "stop": {
281
+ const block = createSetupRenderer(deps.stderr, ctx.env);
282
+ block.line(block.bold(event.header));
283
+ block.line(` What happened: ${event.what}`);
284
+ block.line(` Already done: ${event.done}`);
285
+ block.line(` To fix: ${event.fix}`);
286
+ block.line(` Log: ${event.log}`);
287
+ // An agent greps this line and runs it as is, so it is never wrapped.
288
+ deps.stderr.write(`resume: ${event.resume}\n`);
289
+ return;
290
+ }
291
+ case "ask": {
292
+ if (!(deps.interactive && !flags.yes && deps.ask)) {
293
+ answer(event.fallback);
294
+ return;
295
+ }
296
+ const reply = await deps.ask(event, r, gone.signal);
297
+ if (reply === null) {
298
+ // Ctrl-C at a prompt arrives as a cancelled question (the prompt holds the terminal in
299
+ // raw mode). The engine stops the way it stops on Ctrl-C: record, block, exit 10.
300
+ child.kill("SIGINT");
301
+ answer(event.id === "continue" ? "n" : "");
302
+ return;
303
+ }
304
+ if (event.id === "replica")
305
+ flags.localSync = /^y(es)?$/i.test(reply);
306
+ answer(reply);
307
+ return;
308
+ }
309
+ case "signin": {
310
+ // The sign-in is the one step a person does: it gets its own line before the code.
311
+ r.update("waiting for you");
312
+ if (!deps.signin) {
313
+ answer("failed");
314
+ return;
315
+ }
316
+ const stop = new AbortController();
317
+ signinStop = stop;
318
+ try {
319
+ answer(await deps.signin(event.timeoutSeconds, r, AbortSignal.any([stop.signal, gone.signal]), spinner));
320
+ }
321
+ finally {
322
+ signinStop = null;
323
+ }
324
+ return;
325
+ }
326
+ case "note":
327
+ if (flags.verbose)
328
+ r.line(r.dim(event.text));
329
+ return;
330
+ }
331
+ };
332
+ // Events are handled one at a time, in order: a question holds the lines after it until answered.
333
+ // A handler that fails still answers, so the engine is never left waiting on fd 5.
334
+ const enqueue = (event) => {
335
+ queue = queue
336
+ .then(() => handle(event))
337
+ .catch((error) => {
338
+ stopSpin();
339
+ errors.line(`catalyst setup: ${error instanceof Error ? error.message : String(error)}`);
340
+ if (event.kind === "ask")
341
+ answer(event.fallback);
342
+ if (event.kind === "signin")
343
+ answer("failed");
344
+ });
345
+ };
346
+ const events = new SetupEventStream(enqueue);
347
+ const passThrough = new SetupEventStream(enqueue, plainSetupLine);
348
+ eventPipe
349
+ .setEncoding("utf8")
350
+ .on("data", (chunk) => events.push(chunk));
351
+ let machineJson = "";
352
+ jsonPipe.setEncoding("utf8").on("data", (chunk) => {
353
+ if (deps.onboard)
354
+ machineJson += chunk;
355
+ else
356
+ deps.writeJson(chunk);
357
+ });
358
+ // Anything the engine prints outside the protocol is still shown, never lost.
359
+ for (const stream of [child.stdout, child.stderr])
360
+ stream
361
+ ?.setEncoding("utf8")
362
+ .on("data", (chunk) => passThrough.push(chunk));
363
+ // Ctrl-C reaches the engine too (same process group), and it records and stops on its own. This
364
+ // command only stops a sign-in in progress, and on a second Ctrl-C stops an engine still going.
365
+ let interrupts = 0;
366
+ const onInterrupt = () => {
367
+ interrupts += 1;
368
+ signinStop?.abort();
369
+ if (interrupts > 1)
370
+ child.kill("SIGTERM");
371
+ };
372
+ process.on("SIGINT", onInterrupt);
373
+ child.on("exit", () => gone.abort());
374
+ const closed = new Promise((resolve) => child.on("close", () => resolve()));
375
+ try {
376
+ const code = await new Promise((resolve) => {
377
+ child.on("error", (error) => {
378
+ errors.line(`catalyst setup: the setup engine could not start (${error.message}).`);
379
+ resolve(EXIT_STOPPED);
380
+ });
381
+ child.on("exit", (status, signal) => resolve(exitCodeOf(status, signal)));
382
+ });
383
+ // The engine is done; its last lines may still be in the pipes. A background child it started
384
+ // can hold them open for good, so wait for them briefly, not until that child exits.
385
+ await Promise.race([
386
+ closed,
387
+ new Promise((resolve) => setTimeout(resolve, PIPE_DRAIN_MS).unref()),
388
+ ]);
389
+ for (const pipe of [eventPipe, jsonPipe, child.stdout, child.stderr])
390
+ pipe?.destroy();
391
+ events.end();
392
+ passThrough.end();
393
+ await queue;
394
+ stopSpin();
395
+ if (code === 0 &&
396
+ deps.onboard &&
397
+ !args.some((a) => ["--dry-run", "--help", "-h"].includes(a))) {
398
+ try {
399
+ return await deps.onboard(r, flags);
400
+ }
401
+ catch {
402
+ errors.line("catalyst setup: onboarding could not finish. Run catalyst onboard to try again.");
403
+ if (flags.json)
404
+ deps.writeJson(`${JSON.stringify({ schema: "catalyst-install-last-run/1", state: "failed", exitCode: 10, steps: [] })}\n`);
405
+ return 10;
406
+ }
407
+ }
408
+ // A failed, declined or dry-run engine never enters onboarding. Preserve its actual
409
+ // repair guidance; successful continuation owns the sole final screen instead.
410
+ for (const event of deferredEnding) {
411
+ if (event.kind === "heading")
412
+ r.heading(event.text);
413
+ else if (event.text.startsWith("Next:"))
414
+ r.outro(event.text);
415
+ else
416
+ r.line(event.text);
417
+ }
418
+ if (machineJson)
419
+ deps.writeJson(machineJson);
420
+ return code;
421
+ }
422
+ finally {
423
+ r.dispose();
424
+ process.off("SIGINT", onInterrupt);
425
+ }
426
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalyst-cloud/cli",
3
- "version": "0.14.10",
3
+ "version": "0.15.0",
4
4
  "description": "Customer skill bundle for Catalyst Cloud, named from the executive's seat \u2014 get set up, see what is happening, see what needs you, run a project, unstick what is stuck \u2014 plus the catalyst CLI that reads through the Catalyst Cloud SDK, writes through the agent proxy, and connects your machine to your cloud account with one command. The skills directory is the roster; this line never counts it.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,15 +47,19 @@
47
47
  "evals": "node scripts/run-evals.mjs",
48
48
  "paths:check": "node scripts/vendor-paths.mjs --check",
49
49
  "prose:check": "node scripts/check-public-prose.mjs",
50
- "settings:check": "node scripts/vendor-settings.mjs --check"
50
+ "settings:check": "node scripts/vendor-settings.mjs --check",
51
+ "self-host:check": "node scripts/vendor-self-host.mjs --check"
51
52
  },
52
53
  "dependencies": {
53
- "@catalyst-cloud/sdk": "^0.13.1",
54
+ "@catalyst-cloud/sdk": "0.14.1",
54
55
  "@clack/prompts": "1.8.1",
56
+ "fast-string-width": "3.0.2",
57
+ "fast-wrap-ansi": "0.2.2",
55
58
  "smol-toml": "^1.7.1",
56
59
  "yaml": "^2.9.0"
57
60
  },
58
61
  "devDependencies": {
62
+ "@catalyst-cloud/schema": "0.13.1",
59
63
  "@types/node": "^26.3.0",
60
64
  "@vitest/coverage-v8": "^4.1.11",
61
65
  "typescript": "^7.0.2",
@@ -4,7 +4,7 @@ description: >-
4
4
  Catalyst's GitHub: show a ticket's pull request with its checks, reviews and review threads, say whether it is mergeable under this repository's policy, and explain what a PR accumulates as the ticket moves (the branch, the draft, the rewrite, the force-pushes, the labels, the queue). Use when someone asks "show me the PR", "what are the checks saying", "why hasn't it merged", "what does the queue need", "what does that label mean", or wants the branch and merge conventions Catalyst follows.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # Catalyst's GitHub
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  Catalyst's view of Linear on the customer's own cloud account. Reads a ticket with its comments, relations, labels, linked pull requests and agent sessions inline, from the cloud API by default, with local replica reads available as an explicit opt-in, always naming the source; searches tickets, PRs, projects and initiatives; writes comments, card moves, labels and new tickets through the account's agent proxy as the app actor, with every route, stage id, label id and marker read from the account's contract. Knows what a ticket accumulates as Catalyst works it (phase-outcome comments, the document per phase, the agent session, the labels, the single blocks relation, the bookkeeping marker, the eyes acknowledgement). Use when a person says "show me the ticket", "what did Catalyst write on it", "comment on it", "move it", "label it" or "file a ticket". Not for raising a decision for a human (what-needs-me) and not for pull requests (catalyst-github).
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # Catalyst Linear
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  Set up Catalyst Cloud and say whether setup is working. Walks a person from nothing to their first ticket running, one step at a time: the coding account, the project, the integrations and connected accounts, each repository's settings file, then one real ticket moving. Also logs this machine in, reads the readiness verdict with who can fix each failure, and checks the optional local replica. Use when someone says "set me up", "onboard me", "I just signed up", "get me started", "what do I do first", "log me in", "which account is this machine on", "am I set up", "what is missing", "why does nothing happen" or "is the replica running", when a login expired, or when a skill script exits 2 saying this machine is not connected. Does every step a key can do through the catalyst CLI, hands over the exact page for the steps only a browser can do, and never claims a step it did not watch succeed.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # Onboard me
10
10
 
@@ -20,7 +20,7 @@ Guide setup through the same `catalyst onboard` flow that the installer runs. Th
20
20
 
21
21
  Use cloud reads for ordinary workstation setup checks. Offer local sync for local SQL or sustained local reads inside the plan review. Local sync does not promise offline browsing. It is optional; do not make an absent replica a setup failure. Browser approval belongs to the person. Missing bearer capabilities stay unfinished; never call a session-only route from the CLI or invent a command.
22
22
 
23
- Choose an existing Linear team explicitly in the command's team picker or with `catalyst onboard --team <team ID or unique key>`. Unattended setup does not pick the first team, even when only one is visible. Resume rechecks the saved selection; final readiness reads only that team. A team used to verify the workspace grant is not a project selection. Setup does not create a Linear team. Native sign-in waits for up to ten minutes across all device-code rounds; a timeout saves progress for the next run.
23
+ Choose an existing Linear team explicitly in the command's team picker or with `catalyst onboard --team <team ID or unique key>`. Unattended setup does not pick the first team, even when only one is visible. Resume rechecks the saved selection; final readiness reads only that team. A team used to verify the workspace grant is not a project selection. Setup creates a Linear team only when the cloud advertises it, which is off until approved. The picker then ends with "Create a new Linear team…", which asks for a name and an editable key, creates the team as the person (owner or admin only) and sets up Catalyst's workflow on it. A definite taken key is asked again before a new team is created. An unconfirmed result keeps its key for recovery and asks you to check Linear before another creation. If Linear refuses the person, setup says why and returns to the picker. If the workflow step fails, setup names the created team and the `catalyst team adopt <KEY>` retry. For an owner or admin selecting an existing team, the workflow step shows that team's adopt plan (the stages and labels it creates or keeps) and asks before applying it. `--yes` applies that previewed plan without asking, so use it only when the person has accepted the plan. Native sign-in waits for up to ten minutes across all device-code rounds; a timeout saves progress for the next run.
24
24
 
25
25
  Default invited-member setup handles personal accounts and leaves workspace administration to an owner or admin. It does not ask the team or repository questions. A member can explicitly request an existing-team selection with `--team` or `--only linear.team`; that request only reads and verifies the selection.
26
26
 
@@ -70,5 +70,6 @@ Scripts are run, never read; each prints `--help`.
70
70
  - **Previews before project writes.** `team map`, `team adopt` and `team migrate` preview; pass `--yes --plan-hash` only after the person approves that exact plan.
71
71
  - **The plan explains changes before they happen.** The onboarding command owns that review. In the older manual path, say what you will write and where before asking for its approval.
72
72
  - **Local sync is opt-in.** Every skill works through the API without it; a started process is not proof of freshness.
73
+ - **Running work on this machine is opt-in.** In a terminal the command asks once, default no. Unattended, pass `--runner` only when the person asked for this machine to run Catalyst's work, and `--no-runner` to skip without asking. It needs Docker and an owner or admin. Its waits name who acts: an organization key file from an owner or admin (`CATALYST_RUNNER_ORG_KEY_FILE`), or images and team admission from Catalyst support. Relay that ask; never sign in to a registry or edit the runner's files yourself.
73
74
  - **Stop at a wall.** A suspended workspace, an inactive seat, an owner or admin needed where the person is neither, a blocked command: say what you found and who can act, then stop. An older cloud is not a broken command. A person with no account joins one by invitation from its admin.
74
75
  - **Write like a capable colleague:** plain words, short sentences, warm and unhurried.
@@ -4,7 +4,7 @@ description: >-
4
4
  Own one Catalyst Cloud project end to end until it closes. Use when the person says "run this project for me", "own this until it ships", "keep this moving", or hands you a project id or a set of tickets to drive. Subscribes to the account's event stream for the scope through the catalyst CLI, reacts to each change in the same turn, makes tickets ready and moves them to dispatch, parks what should stop, chases stalls, escalates inward, and keeps one status summary current. Writes to Linear as the app actor; never polls.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # Run this project
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  Get a stuck Catalyst Cloud ticket moving again. Use when the person asks "why is this parked and can you release it?", "unpark this", "get things flowing again", "the outage is over, retry what failed", or hands you a ticket that is not moving. Reads why nothing runs and what holds the ticket through the catalyst CLI, decides whether the recorded cause is fixed, previews the release, releases every governor holding the ticket the right way (or one failure class across a team), and raises an ask only for what a person has to do. Never releases a cause it cannot show changed without saying so.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # Unstick
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  The human's decision inbox on Catalyst Cloud, and the one way an agent raises a decision on their behalf. Use when the person asks "what needs me?", "what am I blocking?", or when active work is gated on a choice only they can make. Lists open asks ranked by how much open work each one holds, files an ask through the cloud's ask route with the account's own template, and records the answer so the held work releases. Never answers as the human, never duplicates an open ask.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # What needs me
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  What environment variable names does this repository need, and where does each one come from? Scans the repository offline (no login, no network) and lists the names in three groups (build/test, deploy-only, bindings), each with where it was found, what uses it, and where a local value would come from. Never reads a value or prints one. Also checks the environment variable table in `.catalyst/catalyst.toml` offline. Use when someone asks "what does catalyst.env.json mean", "what env vars does this repo need", "why does the container need this", or before reviewing or writing the declaration.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # What this repository needs
10
10
 
@@ -4,7 +4,7 @@ description: >-
4
4
  Use for "what's happening?", "where are we?", "why is that stuck?", "what closed?", "what's next?", "how does this work?", "why did it do that?", "how does it prioritise?" and "what does this setting do, where is it set?" in Catalyst Cloud, or asks for something to be done rather than known. Reads the contract via catalyst CLI. Read-only: route work/decisions, never answer as the human.
5
5
  allowed-tools: Bash(catalyst:*) Bash(npx -p @catalyst-cloud/cli catalyst:*)
6
6
  ---
7
- <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.14.10 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.15.0 — written in this repository for customer accounts -->
8
8
 
9
9
  # What's happening
10
10
 
package/vendor/README.md CHANGED
@@ -7,3 +7,7 @@ Run `CATALYST_PATHS_SOURCE=/path/to/catalyst-cloud node scripts/vendor-paths.mjs
7
7
  Replica selection is `--db` where accepted, `CATALYST_REPLICA_DB`, then the machine manifest's `replicaDb`. Before a machine manifest exists, the CLI retains its saved customer.json path or legacy default. A manifest without replicaDb leaves replication optional and unconfigured. A malformed or missing explicit manifest fails instead of selecting another database.
8
8
 
9
9
  The reader derives the lock from the selected database on each status check. No existing database is copied, moved, opened for writing, or reseeded by path resolution. Setup must import a discovered populated replica into the manifest before activating it. This PR does not install a manifest or start a writer.
10
+
11
+ # Self-hosted runner Compose file
12
+
13
+ `self-host/compose.yaml` is catalyst-cloud's `deploy/self-host/compose.yaml` at the commit in `self-host/provenance.json`, byte for byte. `catalyst onboard` copies it to this machine when a person chooses to run Catalyst's work here, because the source repository is private. Run `CATALYST_SELF_HOST_SOURCE=/path/to/catalyst-cloud node scripts/vendor-self-host.mjs` after moving the commit in that script. `npm run self-host:check` validates the file against the recorded hash.