@catalyst-cloud/cli 0.16.35 → 0.16.36

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
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.16.36
4
+
5
+ `catalyst setup --only codex-attribution` turns on Codex attribution on a machine that is already set up, without running the other setup steps. It adds the codex function to `~/.zshrc` and `~/.bashrc`, and on a Mac the login agent. Before it first changes an rc file, it keeps a byte-for-byte copy beside it, ending in `.before-codex-attribution`, and never overwrites an earlier copy. Running it again changes nothing. `--dry-run` shows exactly what it would add and changes nothing, and `--json` prints the result as one document.
6
+
7
+ A scheduled `catalyst runner update` now sends the report of its previous run, as 0.16.34 described. Before, the report was dropped on the scheduled run, so nothing reached Catalyst. An applying `catalyst update` sends it too. `--check` still sends nothing.
8
+
3
9
  ## 0.16.35
4
10
 
5
11
  On a self-hosted machine set up before 0.16.33, the runner update agent kept running the CLI it was installed with, and that CLI could not update itself. The daily job installed newer versions into its own folder, but the agent never ran them. Installing this release globally (`npm install -g @catalyst-cloud/cli`) now points that agent at the newly installed copy. It only ever moves the agent to a newer catalyst, and keeps the agent's runner folder and PATH. It saves the previous agent file beside it, as `<file>.before-0.16.35`, so you can roll back. On a Mac it waits for an update already in progress to finish. An agent file you cannot change is left alone. Each outcome is written to the runner's `update.log`, and a failed attempt puts the agent back exactly as it was. The install itself never fails because of this. To turn it off, set `CATALYST_NO_AGENT_REPOINT=1`.
package/README.md CHANGED
@@ -144,7 +144,7 @@ When Codex is on this computer (a `codex` command on your PATH, or `Codex.app` i
144
144
 
145
145
  On a Mac, setup also installs the `dev.catalystcloud.codex-attribution` LaunchAgent. It runs `catalyst codex-env --apply` when you log in, and again whenever Codex signs in to another account in its default home, so apps you start from the Dock or Finder, the Codex desktop app included, carry the same attributes. An app that is already open keeps the environment it started with. It picks up a change the next time it starts. On Linux, setup adds the shell function only. Without Codex, setup adds nothing and says it skipped this. Run `catalyst setup` again after you install Codex to add it.
146
146
 
147
- `catalyst status` ends with one line that says whether this is installed, which coding account the Codex home resolves to, and how old the cached account list is. `catalyst setup --no-shell-hook` skips all of it. `catalyst setup --remove-codex-attribution` removes it and runs nothing else. Each file goes back to exactly what it was before the block was added, the LaunchAgent is unloaded and deleted, and the two attributes it set (the coding account and the machine name) are taken back out of the launch environment. Attributes you set there yourself are kept. A fake HOME gets none of this.
147
+ `catalyst status` ends with one line that says whether this is installed, which coding account the Codex home resolves to, and how old the cached account list is. `catalyst setup --no-shell-hook` skips all of it. On a machine that is already set up, `catalyst setup --only codex-attribution` adds just this and runs no other step. Before it first changes `~/.zshrc` or `~/.bashrc`, it keeps a copy of the file beside it, ending in `.before-codex-attribution`. Run again, it reports each file as unchanged. With `--dry-run` it prints the exact block each file would get and the LaunchAgent file, and changes nothing. `catalyst setup --remove-codex-attribution` removes it and runs nothing else. Each file goes back to exactly what it was before the block was added, the LaunchAgent is unloaded and deleted, and the two attributes it set (the coding account and the machine name) are taken back out of the launch environment. Attributes you set there yourself are kept. A fake HOME gets none of this.
148
148
 
149
149
  ### Headless setup (CI, image builds, agent VMs)
150
150
 
package/dist/args.js CHANGED
@@ -103,7 +103,7 @@ export const FLAG_TABLES = {
103
103
  value: true,
104
104
  help: "resume at a verified onboarding step",
105
105
  },
106
- only: { value: true, help: "run only the named onboarding step" },
106
+ only: { value: true, help: "run only the named onboarding step; codex-attribution adds only the Codex launch hooks, with no other step" },
107
107
  yes: { value: false, help: "accept the plan's default choices" },
108
108
  "dry-run": {
109
109
  value: false,
@@ -607,7 +607,7 @@ export const VERB_USAGE = {
607
607
  update: "update [--check] [--project <absolute path>] [--dir <runner directory>] | update sdk --project <absolute path> | update policy [<component> on|off] | update policy sdk on|off --project <absolute path> | update policy windows <HH:MM,...>|default [--time-zone <zone>] [--json] (components: runner, supervisor, watchdog, cli, skills-cloud, skills-dev, replica)",
608
608
  setup: "setup [onboard options] (sets up Catalyst step by step; same as catalyst onboard) | setup --engine <file> --engine-sha256 <hex> [-- <install options>] (run by install.sh; install.sh --help lists the options)",
609
609
  login: "login [--base-url <url>] [--start-replica] (keyless; or --key <personal-key> / CATALYST_CLOUD_TOKEN)",
610
- onboard: "onboard [--team <ID|key>] [--repo <owner/name>]... [--coding-account <slot>] [--resume-from <step>] [--only <step>] [--local-sync] [--remove-local-data] [--runner|--no-runner] [--no-shell-hook] [--no-color] [--yes] [--dry-run] [--json] | onboard --remove-codex-attribution [--json] | onboard --headless [--key-file <path>] [--team ...] [--repo ...]... [--coding-account ...] [--runner yes|no] [--remove-local-data] [--json]",
610
+ onboard: "onboard [--team <ID|key>] [--repo <owner/name>]... [--coding-account <slot>] [--resume-from <step>] [--only <step>] [--local-sync] [--remove-local-data] [--runner|--no-runner] [--no-shell-hook] [--no-color] [--yes] [--dry-run] [--json] | onboard --only codex-attribution [--dry-run] [--json] | onboard --remove-codex-attribution [--json] | onboard --headless [--key-file <path>] [--team ...] [--repo ...]... [--coding-account ...] [--runner yes|no] [--remove-local-data] [--json]",
611
611
  install: "install [--skills-dir <dir>] [--force]",
612
612
  status: "status",
613
613
  notice: "notice",
package/dist/cli.js CHANGED
@@ -51,7 +51,7 @@ import { cmdRepo } from "./repo.js";
51
51
  import { cmdLease, cmdWork } from "./lease.js";
52
52
  import { cmdLegacy } from "./legacy.js";
53
53
  import { cmdCodexEnv } from "./codex-env.js";
54
- import { codexAttributionAfterSetup, codexAttributionStatusLine, removeCodexAttribution, } from "./codex-attribution.js";
54
+ import { codexAttributionAfterSetup, codexAttributionStatusLine, onlyCodexAttribution, removeCodexAttribution, } from "./codex-attribution.js";
55
55
  import { cmdIdentity } from "./identity.js";
56
56
  import { cmdMessages } from "./messages.js";
57
57
  import { cmdConnections } from "./connections.js";
@@ -88,6 +88,7 @@ export function usageText() {
88
88
  " catalyst join ... (deprecated alias of login; removed in the next minor version)",
89
89
  " catalyst install [--skills-dir <dir>] [--force] (repair path; your agent's own command installs the skills)",
90
90
  " catalyst onboard [--resume-from <step>] [--only <step>] [--runner|--no-runner] [--no-shell-hook] [--yes] [--dry-run] [--json]",
91
+ " catalyst setup --only codex-attribution [--dry-run] [--json] (add only the Codex launch hook and login agent, keeping a copy of each rc file it changes)",
91
92
  " catalyst setup --remove-codex-attribution (take out the Codex launch hook and login agent setup added)",
92
93
  ` catalyst ${SETUP_USAGE}`,
93
94
  " catalyst status | notice | me | ready | accounts",
@@ -307,6 +308,19 @@ export async function main(argv, ctx = defaultCtx(), deps = {}) {
307
308
  ctx.stdout(line);
308
309
  return removal.ok ? 0 : 1;
309
310
  }
311
+ // CTC-6993: the Codex launch hooks alone, on an install that is already set up.
312
+ if (args.flags.only === "codex-attribution") {
313
+ if (args.flags["no-shell-hook"] === true)
314
+ throw new UsageError("--only codex-attribution adds the Codex launch hooks; --no-shell-hook says not to");
315
+ deps.setupUi?.dispose();
316
+ const only = onlyCodexAttribution(ctx, deps.codexAttribution, { dryRun: args.flags["dry-run"] === true });
317
+ if (args.json)
318
+ ctx.stdout(JSON.stringify({ ok: only.ok, dryRun: only.dryRun, files: only.files, backups: only.backups, agent: only.agent }));
319
+ else
320
+ for (const line of only.lines)
321
+ ctx.stdout(line);
322
+ return only.ok ? 0 : 1;
323
+ }
310
324
  // Headless runs drop the terminal UI, browser sign-in and every browser action (CTC-4633).
311
325
  const runOnboard = async (args, ctx, headless) => {
312
326
  let ui = headless ? undefined : deps.setupUi;
@@ -223,44 +223,48 @@ function rcTarget(path, home) {
223
223
  return { kind: "file", target, mode: stat.mode & 0o7777 };
224
224
  }
225
225
  const message = (err) => err instanceof Error ? err.message : String(err);
226
- /** One file: add the block, replace it in place (a second copy is dropped), or leave the file alone.
227
- * Null when the file does not exist and setup has no reason to create it. */
228
- export function installShellHook(file, home, ops = defaultFileOps) {
226
+ export function planShellHook(file, home) {
229
227
  const where = rcTarget(file.path, home);
230
228
  if (where.kind === "skip")
231
- return { path: file.path, state: "skipped", why: where.why };
229
+ return { outcome: { path: file.path, state: "skipped", why: where.why } };
232
230
  if (where.kind === "missing") {
233
231
  if (!file.wanted)
234
232
  return null;
235
- writeRcAtomic(file.path, codexBlock({ created: true }), 0o644, ops);
236
- return { path: file.path, state: "added" };
233
+ const block = codexBlock({ created: true });
234
+ return {
235
+ outcome: { path: file.path, state: "added" },
236
+ write: { target: file.path, data: Buffer.from(block, "latin1"), mode: 0o644, block, existed: false },
237
+ };
237
238
  }
238
239
  const before = readFileSync(where.target, "latin1");
239
240
  const blocks = findBlocks(before);
240
241
  if (blocks === "malformed")
241
242
  return {
242
- path: file.path,
243
- state: "skipped",
244
- why: `it has a "${BLOCK_BEGIN}" or "${BLOCK_END}" line without its partner; fix or delete that line, then run catalyst setup again`,
243
+ outcome: {
244
+ path: file.path,
245
+ state: "skipped",
246
+ why: `it has a "${BLOCK_BEGIN}" or "${BLOCK_END}" line without its partner; fix or delete that line, then run catalyst setup again`,
247
+ },
245
248
  };
246
249
  if (definesCodex(outsideBlocks(before, blocks)))
247
250
  return {
248
- path: file.path,
249
- state: "skipped",
250
- why: "it already defines codex itself, as a function or an alias. To use the hook, remove that definition and run catalyst setup again",
251
+ outcome: {
252
+ path: file.path,
253
+ state: "skipped",
254
+ why: "it already defines codex itself, as a function or an alias. To use the hook, remove that definition and run catalyst setup again",
255
+ },
251
256
  };
252
257
  let after;
258
+ let block;
253
259
  const first = blocks[0];
254
260
  if (first === undefined) {
255
- after =
256
- before === "" || before.endsWith("\n")
257
- ? before + codexBlock()
258
- : `${before}\n${codexBlock({ newlineAdded: true })}`;
261
+ const appended = before === "" || before.endsWith("\n");
262
+ block = codexBlock(appended ? {} : { newlineAdded: true });
263
+ after = appended ? before + block : `${before}\n${block}`;
259
264
  }
260
265
  else {
261
- after =
262
- before.slice(0, first.start) +
263
- codexBlock({ created: first.created, newlineAdded: first.newlineAdded });
266
+ block = codexBlock({ created: first.created, newlineAdded: first.newlineAdded });
267
+ after = before.slice(0, first.start) + block;
264
268
  let cursor = first.end;
265
269
  for (const b of blocks.slice(1)) {
266
270
  after += before.slice(cursor, b.start);
@@ -269,9 +273,21 @@ export function installShellHook(file, home, ops = defaultFileOps) {
269
273
  after += before.slice(cursor);
270
274
  }
271
275
  if (after === before)
272
- return { path: file.path, state: "unchanged" };
273
- writeRcAtomic(where.target, Buffer.from(after, "latin1"), where.mode, ops);
274
- return { path: file.path, state: first === undefined ? "added" : "replaced" };
276
+ return { outcome: { path: file.path, state: "unchanged" } };
277
+ return {
278
+ outcome: { path: file.path, state: first === undefined ? "added" : "replaced" },
279
+ write: { target: where.target, data: Buffer.from(after, "latin1"), mode: where.mode, block, existed: true },
280
+ };
281
+ }
282
+ /** One file: add the block, replace it in place (a second copy is dropped), or leave the file alone.
283
+ * Null when the file does not exist and setup has no reason to create it. */
284
+ export function installShellHook(file, home, ops = defaultFileOps) {
285
+ const plan = planShellHook(file, home);
286
+ if (plan === null)
287
+ return null;
288
+ if (plan.write)
289
+ writeRcAtomic(plan.write.target, plan.write.data, plan.write.mode, ops);
290
+ return plan.outcome;
275
291
  }
276
292
  /** One file: take every block out. Null when the file has none. */
277
293
  export function removeShellHook(path, home, ops = defaultFileOps) {
@@ -623,8 +639,128 @@ export function setupCodexAttribution(ctx, deps = {}) {
623
639
  lines.push(`Setup could not load the ${CODEX_ATTRIBUTION_LABEL} LaunchAgent (${agent.detail}), so apps started from the Dock do not name their coding account. Run catalyst setup again in Terminal on this Mac's desktop.`);
624
640
  return lines;
625
641
  }
642
+ /** The copy `--only codex-attribution` keeps of an rc file before it first changes it. */
643
+ export const RC_BACKUP_SUFFIX = ".before-codex-attribution";
644
+ /** `catalyst setup --only codex-attribution`: the hooks setup adds after a full run, and nothing else.
645
+ * Before it first changes an existing rc file it keeps a byte-for-byte copy beside it, and an earlier
646
+ * copy is never overwritten, so the copy is what the file was before any hook. `dryRun` writes
647
+ * nothing and prints the exact block each file would get and the exact agent file. */
648
+ export function onlyCodexAttribution(ctx, deps = {}, options = {}) {
649
+ const dryRun = options.dryRun === true;
650
+ const result = {
651
+ ok: true,
652
+ dryRun,
653
+ files: [],
654
+ backups: [],
655
+ agent: { state: "other_home" },
656
+ lines: [],
657
+ };
658
+ if (!ownsHome(ctx.home, deps)) {
659
+ result.ok = false;
660
+ result.lines.push(`HOME (${ctx.home}) is not this account's home folder, so the Codex launch hooks were left alone. Run it as the account that uses Codex.`);
661
+ return result;
662
+ }
663
+ if (codexPresence(ctx, deps) === null) {
664
+ result.agent = { state: "codex_absent" };
665
+ result.lines.push(CODEX_ABSENT_LINE);
666
+ return result;
667
+ }
668
+ const ops = fileOps(deps);
669
+ const verb = { added: "add", replaced: "replace" };
670
+ for (const file of shellRcFiles(ctx)) {
671
+ let plan;
672
+ try {
673
+ plan = planShellHook(file, ctx.home);
674
+ }
675
+ catch (err) {
676
+ plan = { outcome: { path: file.path, state: "skipped", why: `it could not be read (${message(err)})` } };
677
+ }
678
+ if (plan === null)
679
+ continue;
680
+ const name = tilde(file.path, ctx.home);
681
+ const write = plan.write;
682
+ if (write === undefined) {
683
+ result.files.push(plan.outcome);
684
+ if (plan.outcome.state === "unchanged")
685
+ result.lines.push(`${name} already has the Codex launch hook (unchanged).`);
686
+ else if (plan.outcome.state === "skipped")
687
+ result.lines.push(`Left ${name} without the Codex launch hook: ${plan.outcome.why}.`);
688
+ continue;
689
+ }
690
+ const state = plan.outcome.state === "replaced" ? "replaced" : "added";
691
+ const backup = `${write.target}${RC_BACKUP_SUFFIX}`;
692
+ if (dryRun) {
693
+ result.files.push(plan.outcome);
694
+ result.lines.push(write.existed
695
+ ? `Would ${verb[state]} this block in ${name}, after keeping a copy of the file as ${tilde(backup, ctx.home)}${existsSync(backup) ? " (an earlier copy is already there and would be kept)" : ""}:`
696
+ : `Would create ${name} with this block:`, ...write.block.replace(/\n$/, "").split("\n"));
697
+ continue;
698
+ }
699
+ try {
700
+ if (write.existed) {
701
+ if (existsSync(backup))
702
+ result.backups.push({ path: write.target, backup, kept: "earlier" });
703
+ else {
704
+ writeRcAtomic(backup, readFileSync(write.target), write.mode, ops);
705
+ result.backups.push({ path: write.target, backup, kept: "new" });
706
+ }
707
+ }
708
+ writeRcAtomic(write.target, write.data, write.mode, ops);
709
+ }
710
+ catch (err) {
711
+ result.ok = false;
712
+ const outcome = { path: file.path, state: "skipped", why: `it could not be written (${message(err)})` };
713
+ result.files.push(outcome);
714
+ result.lines.push(`Left ${name} without the Codex launch hook: ${outcome.why}.`);
715
+ continue;
716
+ }
717
+ result.files.push(plan.outcome);
718
+ const kept = result.backups.find((b) => b.path === write.target);
719
+ result.lines.push(`Codex launches from a terminal name their coding account: the codex function is in ${name} (${state}).` +
720
+ (kept === undefined
721
+ ? ""
722
+ : kept.kept === "new"
723
+ ? ` The file as it was is kept at ${tilde(kept.backup, ctx.home)}.`
724
+ : ` An earlier copy of the file is kept at ${tilde(kept.backup, ctx.home)}.`));
725
+ }
726
+ if (result.files.length === 0)
727
+ result.lines.push("No shell rc file got the Codex launch hook: there is no ~/.zshrc or ~/.bashrc, and your login shell is neither zsh nor bash.");
728
+ const d = resolved(ctx, deps);
729
+ if (d.platform !== "darwin") {
730
+ result.agent = { state: "not_macos" };
731
+ if (dryRun)
732
+ result.lines.push("Dry run: nothing was changed.");
733
+ return result;
734
+ }
735
+ if (dryRun) {
736
+ const path = codexAgentPlistPath(ctx.home);
737
+ const text = codexAgentPlist({ cli: d.cli, path: d.path, home: ctx.home });
738
+ const loaded = d.run("launchctl", ["print", `gui/${d.uid}/${CODEX_ATTRIBUTION_LABEL}`]).status === 0;
739
+ if (readOr(path) === text && loaded) {
740
+ result.agent = { state: "unchanged", path };
741
+ result.lines.push(`The ${CODEX_ATTRIBUTION_LABEL} LaunchAgent is loaded and unchanged.`);
742
+ }
743
+ else {
744
+ result.agent = { state: "would_load", path };
745
+ result.lines.push(`Would write ${tilde(path, ctx.home)} and load it:`, ...text.replace(/\n$/, "").split("\n"));
746
+ }
747
+ result.lines.push("Dry run: nothing was changed.");
748
+ return result;
749
+ }
750
+ const agent = installCodexAgent(ctx, deps);
751
+ result.agent = agent;
752
+ if (agent.state === "loaded")
753
+ result.lines.push(`Codex launches from the Dock name their coding account: the ${CODEX_ATTRIBUTION_LABEL} LaunchAgent is loaded. A Codex app that is already open picks this up the next time it starts.`);
754
+ else if (agent.state === "unchanged")
755
+ result.lines.push(`The ${CODEX_ATTRIBUTION_LABEL} LaunchAgent is loaded and unchanged.`);
756
+ else if (agent.state === "failed") {
757
+ result.ok = false;
758
+ result.lines.push(`Setup could not load the ${CODEX_ATTRIBUTION_LABEL} LaunchAgent (${agent.detail}), so apps started from the Dock do not name their coding account. Run catalyst setup --only codex-attribution again in Terminal on this Mac's desktop.`);
759
+ }
760
+ return result;
761
+ }
626
762
  /** What a full setup run adds after its steps, done or waiting. A dry run, a run scoped with
627
- * --only and --no-shell-hook add nothing. With --json the lines go to stderr, so stdout keeps its one
763
+ * --only and --no-shell-hook add nothing (`--only codex-attribution` is its own path, above). With --json the lines go to stderr, so stdout keeps its one
628
764
  * document. */
629
765
  export function codexAttributionAfterSetup(args, ctx, deps = {}) {
630
766
  if (args.flags["dry-run"] === true ||
package/dist/update.js CHANGED
@@ -12,7 +12,7 @@
12
12
  // CLI, SDK and image versions retain their no-downgrade policies. Each adapter verifies its own
13
13
  // installed state, while this coordinator keeps one approval read and rechecks component holds.
14
14
  import { compareVersions, hostApproval, readApprovalCache, readMemberApproval, supportedReleaseLine, writeApprovalCache, } from "./approved-release.js";
15
- import { loadConfig } from "./config.js";
15
+ import { loadConfig, readManifest } from "./config.js";
16
16
  import { applyCliUpdate } from "./update-cli.js";
17
17
  import { readInventory } from "./update-inventory.js";
18
18
  import { restartPending, restartReplica } from "./update-replica.js";
@@ -22,7 +22,7 @@ import { onboardStatePath, readOnboardJournal } from "./onboard.js";
22
22
  import { effectivePolicy, projectIdentityHolds, readUpdatePolicy, UPDATE_COMPONENTS, withMigratedHolds, } from "./update-policy.js";
23
23
  import { applySdkUpdate, inspectSdkProject } from "./update-sdk.js";
24
24
  import { DEFAULT_WINDOW_TIMES } from "./update-windows.js";
25
- import { decideRelease, isRecord, parseDesiredRelease, RELEASE_COMPONENTS, runRunnerUpdate, } from "./runner-update.js";
25
+ import { decideRelease, isRecord, parseDesiredRelease, readReleaseState, RELEASE_COMPONENTS, runRunnerUpdate, updateReport, } from "./runner-update.js";
26
26
  export const COMPONENT_LABELS = {
27
27
  runner: "Runner",
28
28
  supervisor: "Supervisor",
@@ -51,18 +51,20 @@ function dailyUpdateOff(ctx) {
51
51
  export function readEffectivePolicy(ctx) {
52
52
  return withMigratedHolds(readUpdatePolicy(ctx.home), dailyUpdateOff(ctx));
53
53
  }
54
- /** An engine whose desired-release read happens once per pass, however many readers ask. */
54
+ /** An engine whose desired-release read happens once per pass, however many readers ask. The first
55
+ * reader's update report rides that one read, so the cloud hears the previous run's outcome
56
+ * (CTC-6999: the report was dropped here, and no scheduled run ever sent one). */
55
57
  export function sharedReleaseRead(engine) {
56
58
  const reads = new Map();
57
- const read = (dir, signal) => {
59
+ const read = (dir, signal, report) => {
58
60
  let pending = reads.get(dir);
59
61
  if (!pending) {
60
- pending = engine.desiredRelease(dir, signal);
62
+ pending = engine.desiredRelease(dir, signal, report);
61
63
  reads.set(dir, pending);
62
64
  }
63
65
  return pending;
64
66
  };
65
- return { ...engine, desiredRelease: read, read: (dir) => read(dir) };
67
+ return { ...engine, desiredRelease: read, read: (dir, report) => read(dir, undefined, report) };
66
68
  }
67
69
  function imageApproval(read) {
68
70
  const decision = decideRelease(null, read);
@@ -285,7 +287,8 @@ export async function runUpdate(ctx, options) {
285
287
  let images = null;
286
288
  if (inventory.images.installed) {
287
289
  engine = sharedReleaseRead(options.engine());
288
- const read = await engine.read(options.imagesDir);
290
+ // An apply reports the previous run's outcome on its read, as `runner update` does; a check never does.
291
+ const read = await engine.read(options.imagesDir, options.mode === "apply" ? updateReport(readReleaseState(options.imagesDir), readManifest().version) : undefined);
289
292
  images = imageApproval(read);
290
293
  approval = hostApproval(read);
291
294
  // The runner's own read failed (Docker stopped, say): a signed-in CLI can still ask the member
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalyst-cloud/cli",
3
- "version": "0.16.35",
3
+ "version": "0.16.36",
4
4
  "description": "Set up Catalyst Cloud, check your tickets and manage your account from the command line.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — written in this repository for customer accounts -->
8
8
 
9
9
  # Onboard me
10
10
 
@@ -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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — 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?", "what machines do we have?", "how much capacity do we have?", "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.16.35 — written in this repository for customer accounts -->
7
+ <!-- vendored-from: @catalyst-cloud/catalyst-skills@0.16.36 — written in this repository for customer accounts -->
8
8
 
9
9
  # What's happening
10
10