@catalyst-cloud/cli 0.13.0 → 0.13.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 +6 -0
- package/README.md +26 -29
- package/dist/args.js +16 -0
- package/dist/ask.js +30 -18
- package/dist/capabilities.js +5 -0
- package/dist/cli.js +18 -5
- package/dist/environment.js +1 -1
- package/dist/legacy.js +224 -0
- package/dist/project.js +129 -0
- package/dist/release.js +1 -1
- package/dist/repo.js +297 -0
- package/dist/runtime-verb.js +1 -1
- package/dist/secret.js +1 -1
- package/dist/skill-shape.js +21 -13
- package/dist/skills.js +44 -4
- package/dist/transport.js +26 -1
- package/package.json +5 -4
- package/skills/catalyst-github/SKILL.md +7 -7
- package/skills/catalyst-github/references/is-it-mergeable.md +8 -2
- package/skills/catalyst-github/references/what-a-pr-accumulates.md +3 -3
- package/skills/catalyst-github/scripts/is-it-mergeable.mjs +3 -3
- package/skills/catalyst-github/scripts/lib/cli.mjs +9 -7
- package/skills/catalyst-github/scripts/lib/credential.mjs +2 -2
- package/skills/catalyst-github/scripts/read-pr.mjs +2 -2
- package/skills/catalyst-linear/SKILL.md +17 -19
- package/skills/catalyst-linear/agents/openai.yaml +1 -1
- package/skills/catalyst-linear/agents/portability.yaml +1 -1
- package/skills/catalyst-linear/references/reading-a-ticket.md +9 -26
- package/skills/catalyst-linear/references/what-a-ticket-accumulates.md +2 -2
- package/skills/catalyst-linear/references/writing-to-linear.md +7 -9
- package/skills/catalyst-linear/scripts/comment.mjs +1 -1
- package/skills/catalyst-linear/scripts/create-ticket.mjs +1 -1
- package/skills/catalyst-linear/scripts/label.mjs +1 -1
- package/skills/catalyst-linear/scripts/lib/cli.mjs +9 -7
- package/skills/catalyst-linear/scripts/lib/credential.mjs +2 -2
- package/skills/catalyst-linear/scripts/move.mjs +1 -1
- package/skills/catalyst-linear/scripts/read-ticket.mjs +1 -1
- package/skills/catalyst-linear/scripts/search.mjs +1 -1
- package/skills/catalyst-onboard/SKILL.md +37 -57
- package/skills/catalyst-onboard/agents/openai.yaml +2 -2
- package/skills/catalyst-onboard/agents/portability.yaml +1 -1
- package/skills/catalyst-onboard/references/connecting-this-machine.md +35 -0
- package/skills/catalyst-onboard/references/declaring-a-repository.md +7 -17
- package/skills/catalyst-onboard/references/local-sync.md +19 -7
- package/skills/catalyst-onboard/references/reading-ready.md +79 -0
- package/skills/catalyst-onboard/references/replacing-a-credential.md +8 -33
- package/skills/catalyst-onboard/references/repository-agent-setup.md +23 -0
- package/skills/catalyst-onboard/references/skill-sources.md +13 -19
- package/skills/catalyst-onboard/references/the-one-path.md +18 -74
- package/skills/catalyst-onboard/references/what-a-phase-needs.md +21 -28
- package/skills/catalyst-onboard/references/what-the-browser-owns.md +20 -37
- package/skills/{catalyst-setup → catalyst-onboard}/scripts/check.mjs +10 -9
- package/skills/catalyst-onboard/scripts/lib/cli.mjs +6 -4
- package/skills/catalyst-onboard/scripts/lib/credential.mjs +2 -2
- package/skills/catalyst-onboard/scripts/where-am-i.mjs +60 -4
- package/skills/run-this-project/SKILL.md +23 -25
- package/skills/run-this-project/agents/openai.yaml +1 -1
- package/skills/run-this-project/agents/portability.yaml +1 -1
- package/skills/run-this-project/references/making-work-ready.md +20 -37
- package/skills/run-this-project/references/reacting-to-events.md +25 -48
- package/skills/run-this-project/references/stalls-and-escalation.md +20 -42
- package/skills/run-this-project/scripts/lib/cli.mjs +7 -5
- package/skills/run-this-project/scripts/lib/credential.mjs +2 -2
- package/skills/run-this-project/scripts/scope-status.mjs +0 -0
- package/skills/run-this-project/scripts/watch-scope.mjs +1 -1
- package/skills/unstick/SKILL.md +12 -12
- package/skills/unstick/agents/openai.yaml +1 -1
- package/skills/unstick/agents/portability.yaml +1 -1
- package/skills/unstick/references/playbook.md +13 -13
- package/skills/unstick/scripts/lib/cli.mjs +6 -4
- package/skills/unstick/scripts/lib/credential.mjs +2 -2
- package/skills/unstick/scripts/unstick.mjs +1 -1
- package/skills/what-needs-me/SKILL.md +12 -14
- package/skills/what-needs-me/agents/openai.yaml +2 -2
- package/skills/what-needs-me/agents/portability.yaml +1 -1
- package/skills/what-needs-me/references/raising-a-decision.md +8 -16
- package/skills/what-needs-me/references/reading-the-inbox.md +6 -13
- package/skills/what-needs-me/references/settling-an-answer.md +6 -12
- package/skills/what-needs-me/scripts/inbox.mjs +14 -13
- package/skills/what-needs-me/scripts/lib/cli.mjs +6 -4
- package/skills/what-needs-me/scripts/lib/credential.mjs +2 -2
- package/skills/what-needs-me/scripts/raise.mjs +1 -1
- package/skills/what-needs-me/scripts/settle.mjs +1 -1
- package/skills/what-this-repo-needs/SKILL.md +10 -19
- package/skills/what-this-repo-needs/references/what-each-group-means.md +14 -44
- package/skills/what-this-repo-needs/scripts/check.mjs +2 -2
- package/skills/what-this-repo-needs/scripts/inventory.mjs +2 -2
- package/skills/what-this-repo-needs/scripts/lib/cli.mjs +11 -9
- package/skills/what-this-repo-needs/scripts/lib/credential.mjs +2 -2
- package/skills/whats-happening/SKILL.md +27 -21
- package/skills/whats-happening/agents/openai.yaml +1 -1
- package/skills/whats-happening/references/coding-accounts.md +24 -0
- package/skills/whats-happening/references/routing-work.md +11 -29
- package/skills/whats-happening/references/settings-and-where-they-live.md +20 -0
- package/skills/whats-happening/references/stages-and-mapping.md +25 -0
- package/skills/whats-happening/references/status-reply.md +21 -23
- package/skills/whats-happening/references/the-ladder.md +30 -0
- package/skills/whats-happening/references/what-runs-next.md +32 -0
- package/skills/whats-happening/references/when-a-phase-fails.md +27 -0
- package/skills/whats-happening/references/why-is-it-stuck.md +30 -44
- package/skills/whats-happening/scripts/explain.mjs +1 -1
- package/skills/whats-happening/scripts/lib/cli.mjs +7 -5
- package/skills/whats-happening/scripts/lib/credential.mjs +2 -2
- package/skills/{how-catalyst-works → whats-happening}/scripts/show-my-map.mjs +18 -32
- package/skills/whats-happening/scripts/snapshot.mjs +10 -6
- package/skills/catalyst-onboard/references/choosing-a-coding-account.md +0 -52
- package/skills/catalyst-onboard/references/who-fixes-what.md +0 -64
- package/skills/catalyst-setup/SKILL.md +0 -36
- package/skills/catalyst-setup/agents/openai.yaml +0 -6
- package/skills/catalyst-setup/agents/portability.yaml +0 -4
- package/skills/catalyst-setup/references/what-each-check-means.md +0 -88
- package/skills/catalyst-setup/scripts/lib/cli.mjs +0 -103
- package/skills/catalyst-setup/scripts/lib/credential.mjs +0 -29
- package/skills/catalyst-setup/scripts/replica-status.mjs +0 -46
- package/skills/connect-me/SKILL.md +0 -63
- package/skills/connect-me/agents/openai.yaml +0 -6
- package/skills/connect-me/agents/portability.yaml +0 -5
- package/skills/connect-me/references/keeping-the-replica-running.md +0 -88
- package/skills/connect-me/scripts/lib/cli.mjs +0 -185
- package/skills/connect-me/scripts/lib/credential.mjs +0 -29
- package/skills/connect-me/scripts/verify-connection.mjs +0 -68
- package/skills/how-catalyst-works/SKILL.md +0 -45
- package/skills/how-catalyst-works/agents/openai.yaml +0 -6
- package/skills/how-catalyst-works/agents/portability.yaml +0 -4
- package/skills/how-catalyst-works/references/coding-accounts.md +0 -51
- package/skills/how-catalyst-works/references/settings-and-where-they-live.md +0 -20
- package/skills/how-catalyst-works/references/stages-and-mapping.md +0 -56
- package/skills/how-catalyst-works/references/the-ladder.md +0 -41
- package/skills/how-catalyst-works/references/what-catalyst-is.md +0 -30
- package/skills/how-catalyst-works/references/what-runs-next.md +0 -95
- package/skills/how-catalyst-works/references/when-a-phase-fails.md +0 -57
- package/skills/how-catalyst-works/scripts/explain-ticket.mjs +0 -41
- package/skills/how-catalyst-works/scripts/lib/cli.mjs +0 -164
- package/skills/how-catalyst-works/scripts/lib/credential.mjs +0 -29
- package/skills/how-catalyst-works/scripts/whats-running.mjs +0 -65
- package/skills/whats-happening/references/reading-the-board.md +0 -43
- package/skills/whats-happening/references/reprioritising.md +0 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
The Cloud pack now has eight skills. catalyst-onboard includes connection and setup, and whats-happening includes the guide to how Catalyst works. The guides use the catalyst command and call a tenant your cloud account. They explain asks, holds and the 48-hour fallback from the running code. Install and refresh remove retired Cloud-pack skills that carry the pack's provenance.
|
|
6
|
+
|
|
7
|
+
The CLI adds project wip-limit get and set, repo agents-block and agent-setup, and legacy. These commands inspect or change a project's WIP limit, check or install repository agent guidance, and find old local runtime files. Legacy cleanup requires consent. The CLI now depends on SDK 0.13.1.
|
|
8
|
+
|
|
3
9
|
## 0.13.0
|
|
4
10
|
|
|
5
11
|
Catalyst's released pieces now share one version line, 0.13: `@catalyst-cloud/cli` and the deprecated `@catalyst-cloud/catalyst-skills` name, these skills, `@catalyst-cloud/sdk`, the installer, and the schema, replicate and read-model libraries. A CLI on 0.13.x belongs with a cloud whose tenant contract names `releaseLine` 0.13. The CLI moves from 0.9 straight to 0.13 and runs on `@catalyst-cloud/sdk` 0.13. The tenant contract keeps its own version, which tracks the document's shape.
|
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ curl -fsSL https://staging.catalystcloud.dev/install.sh | sh
|
|
|
12
12
|
|
|
13
13
|
The installer puts the CLI and both skill packs on this machine and connects it with one browser approval. It ends by printing the next step. Then open a new session of your coding agent in any directory and type `/catalyst-onboard` (`$catalyst-onboard` in Codex). The onboarding skill reads where this machine stands and walks you through the rest one step at a time. It asks before it writes anything to your machine. Everything else on this page is the reference it follows.
|
|
14
14
|
|
|
15
|
-
This repository supplies skills for setting up and operating
|
|
15
|
+
This repository supplies skills for setting up and operating your Catalyst Cloud account. A coding workstation also uses [`coalesce-labs/catalyst-dev-skills`](https://github.com/coalesce-labs/catalyst-dev-skills) for research, planning, implementation, review, and shipping.
|
|
16
16
|
|
|
17
17
|
Or by hand. One command, for every coding agent on the machine:
|
|
18
18
|
|
|
@@ -64,7 +64,7 @@ npx skills@latest add coalesce-labs/catalyst-cloud-skills
|
|
|
64
64
|
Without `--all` the installer asks which skills to take and which agents to install them on.
|
|
65
65
|
</details>
|
|
66
66
|
|
|
67
|
-
### Then connect to your
|
|
67
|
+
### Then connect to your cloud account
|
|
68
68
|
|
|
69
69
|
The skills call one CLI, and the CLI holds your credential. Install it once and connect this machine — the keyless way logs you in as yourself, with nothing to mint or paste:
|
|
70
70
|
|
|
@@ -84,46 +84,46 @@ CATALYST_CLOUD_TOKEN=<your-personal-key> catalyst login
|
|
|
84
84
|
|
|
85
85
|
`--key <your-personal-key>` is the third form, for a script.
|
|
86
86
|
|
|
87
|
-
After a
|
|
87
|
+
After a workspace owner connects your cloud account's Linear workspace, connect your personal Linear account. Connect your personal GitHub account only after the workspace's GitHub App is installed and its repository is registered. These personal grants are separate from the workspace's Linear connection and GitHub App installation. Your agent can start each connection and check whether it landed, but you approve each one in your browser:
|
|
88
88
|
|
|
89
89
|
```sh
|
|
90
90
|
catalyst connections personal linear start
|
|
91
91
|
catalyst connections personal linear status
|
|
92
|
-
# First install the
|
|
92
|
+
# First install the workspace's GitHub App and register its repository in Settings.
|
|
93
93
|
catalyst connections personal github start
|
|
94
94
|
catalyst connections personal github status
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
Each `start` prints a short-lived URL and attempts to open your browser. On a remote machine, open the printed URL on your own device. `status --json` gives the same result to an agent; `start --wait 60` waits up to one minute for approval. A connected result is the proof that the grant landed. If a provider reports unavailable, retry status later rather than starting a second approval.
|
|
98
98
|
|
|
99
|
-
The `catalyst-onboard` skill checks both grants before taking you through the rest of
|
|
99
|
+
The `catalyst-onboard` skill checks both grants before taking you through the rest of setup and the first ticket.
|
|
100
100
|
|
|
101
101
|
The command is `catalyst`. `catalyst-skills` still works as a deprecated alias, and `@catalyst-cloud/catalyst-skills` is the deprecated package name that forwards to this one.
|
|
102
102
|
|
|
103
103
|
## What this is
|
|
104
104
|
|
|
105
|
-
A set of skills that let your coding agent run your own Catalyst Cloud
|
|
105
|
+
A set of skills that let your coding agent run your own Catalyst Cloud account (https://staging.catalystcloud.dev) from your seat: what is happening, what needs you, and what to do about it. They read your account through the Catalyst Cloud SDK, write to it through the account's agent proxy, and never compose a URL or run a tool of their own; every read, write and subscription is a `catalyst` verb with `--help`. Every skill is plain Markdown under `skills/<name>/SKILL.md` in this repository, and your own login — a keyless device-code session, or a personal key — is the only credential. Your agent acts as you: the asks it raises and the comments it posts carry your name, and "what needs me" means you.
|
|
106
106
|
|
|
107
107
|
## What connecting does
|
|
108
108
|
|
|
109
|
-
`login` does three things: it calls `GET /api/v1/me` with your credential, which discovers your
|
|
109
|
+
`login` does three things: it calls `GET /api/v1/me` with your credential, which discovers your cloud account and who you are from the credential alone; it writes `~/.config/catalyst-cloud/customer.json` with file mode `0600`, holding your credential (a keyless login session, or a personal key), who you are (id, label, role, your Linear user id) and the absolute path of the CLI so every skill script can spawn the same binary; and it fetches your account's contract (`GET /api/v1/agent/contract`) and caches it at `~/.config/catalyst-cloud/contract.json` with its ETag, so stage names and ids, label ids, the ask template, thresholds and the route table come from your account, live, and no skill restates them.
|
|
110
110
|
|
|
111
111
|
A keyless session's access token is short-lived and rotates on its own: every request refreshes it within a minute of expiry and rewrites the config atomically, so you stay connected for months without logging in again. You only log in again if the session is revoked or you have been away long enough to lapse — then one clear line tells you to run `login`.
|
|
112
112
|
|
|
113
|
-
`login` does not install skills; the install command above did that. Re-running `login` after a key rotation, or to switch rails, rewrites the config. `catalyst status` prints which
|
|
113
|
+
`login` does not install skills; the install command above did that. Re-running `login` after a key rotation, or to switch rails, rewrites the config. `catalyst status` prints which cloud account this machine is connected to and as whom, `catalyst ready` prints one READY or NOT READY verdict with the fix for each failure and who can apply it, and `catalyst --version` prints the package version and its pinned contract range.
|
|
114
114
|
|
|
115
|
-
The setup skill Catalyst seeds into your repository ends by pointing at this same command. That served skill lives in the Catalyst Cloud application, not here; this is the only connect step a customer runs.
|
|
115
|
+
The setup skill Catalyst seeds into your repository ends by pointing at this same command. That served skill lives in the Catalyst Cloud application, not here; this is the only connect step a customer runs. Your cloud account's **account key** (Settings → Account keys, admin-minted) is a different credential — for a host or daemon that runs unattended — and is not what a person connects their own agent with: it would strip your name from everything your agent writes, and `login` says so if you use one.
|
|
116
116
|
|
|
117
117
|
## Requirements
|
|
118
118
|
|
|
119
119
|
- Node 22.15 or newer (Node 26 works), or bun 1.4 or newer. The bundle uses Node's built-in SQLite module (and, on bun, bun's own `node:sqlite`) for the optional local replica, so there is no native dependency to build; if `better-sqlite3` resolves on the machine it is used instead. `catalyst ready` names the exact reason when the runtime is too old, and `catalyst runtime install` installs a pinned Node under this CLI's own cache — without touching your machine's default Node — if you would rather not upgrade it.
|
|
120
|
-
- Your personal key, minted by you at Settings → API keys. The key is the only
|
|
120
|
+
- Your personal key, minted by you at Settings → API keys. The key is the only account selector: you never type an account id. If your Linear identity is not matched yet, `login` says so; you match it yourself with `catalyst identity linear set` (an identity someone else already claims needs an admin at Settings → Members), and until then "what needs me" shows everyone's asks.
|
|
121
121
|
- An agent that discovers skills. Claude Code loads the plugin; Codex, Cursor, OpenCode and the rest read the `skills/<name>/SKILL.md` files the `npx skills` installer writes.
|
|
122
122
|
- Bun is optional, only if you prefer `bunx` over `npx` — bun 1.4 or newer, which is when `node:sqlite` arrives; older bun cannot run this CLI at all.
|
|
123
123
|
|
|
124
124
|
## First use
|
|
125
125
|
|
|
126
|
-
Open a new session and ask about your own
|
|
126
|
+
Open a new session and ask about your own cloud account. The skills read the config `login` wrote. For example:
|
|
127
127
|
|
|
128
128
|
- What's happening? Where are we, why is that stuck, what closed, what's next?
|
|
129
129
|
- What needs me?
|
|
@@ -140,47 +140,44 @@ Nothing, by default. After `login`, every read, write, ask and explanation goes
|
|
|
140
140
|
| --- | --- | --- | --- |
|
|
141
141
|
| none | every read, write, ask and explain | `customer.json` and `contract.json` | the default after login |
|
|
142
142
|
| `catalyst replica start` | local SQL, cheap repeated reads, and local event `tail`, `wait-for`, and `query` | one SQLite file plus a bounded event cache under `$XDG_STATE_HOME/catalyst/events/` (fallback `~/.local/state/catalyst/events/`) | one long-running process; foreground by default, `--detach` writes a pidfile beside the database and returns; `login --start-replica` does the same at the end of login |
|
|
143
|
-
| `catalyst watch` | a project owner reacting to its scope | one cursor file (`~/.config/catalyst-cloud/watch-cursor.json`) stamped with the
|
|
143
|
+
| `catalyst watch` | a project owner reacting to its scope | one cursor file (`~/.config/catalyst-cloud/watch-cursor.json`) stamped with the account | lives inside the session that armed it; exits with it |
|
|
144
144
|
|
|
145
145
|
The check every skill runs first is `catalyst replica status`, which needs no network: is the pidfile's process alive, is the writer-lock heartbeat younger than the staleness threshold, and is the cursor non-empty. It exits `0` for fresh, `1` for present but stale, `2` for not connected, `3` for absent, and prints one line either way (`--json` for scripts). A fresh replica is used; anything else falls back to the API and the skill says so in its answer. A skill never refuses to work because the replica is down and never silently reads a stale one. `replica status --probe` compares the local cursor against the cloud's head for the honest "how far behind" number; that is the only form that touches the network. `catalyst replica stop` stops a detached writer.
|
|
146
146
|
|
|
147
|
-
`catalyst events status --probe` checks the event cache's own cursor and compares it with the cloud head; `replica status --probe` checks the separate entity-replica cursor. A fresh replica does not prove event freshness. `events tail` follows new cached events, `events wait-for --ticket ... --timeout ...` performs a bounded wait, and `events query` reads retained history. Those three commands only read the cache; `events status --probe` makes the cloud comparison. The replica process is the single writer and reports an event-sync failure without terminating a healthy entity replica. The event cache keeps closed daily segments for at most seven days or 256 MiB per
|
|
147
|
+
`catalyst events status --probe` checks the event cache's own cursor and compares it with the cloud head; `replica status --probe` checks the separate entity-replica cursor. A fresh replica does not prove event freshness. `events tail` follows new cached events, `events wait-for --ticket ... --timeout ...` performs a bounded wait, and `events query` reads retained history. Those three commands only read the cache; `events status --probe` makes the cloud comparison. The replica process is the single writer and reports an event-sync failure without terminating a healthy entity replica. The event cache keeps closed daily segments for at most seven days or 256 MiB per account and reports an explicit gap when a requested sequence has retired.
|
|
148
148
|
|
|
149
|
-
The replica is a Node process, not a service: the supported path is the plain command, and `skills/
|
|
149
|
+
The replica is a Node process, not a service: the supported path is the plain command, and `skills/catalyst-onboard/references/local-sync.md` gives launchd and systemd examples for people who want the writer to survive a reboot.
|
|
150
150
|
|
|
151
151
|
## The skills
|
|
152
152
|
|
|
153
153
|
| skill | what the person says | what it does | file |
|
|
154
154
|
| --- | --- | --- | --- |
|
|
155
|
-
| `catalyst-onboard` | "Set me up.
|
|
156
|
-
| `whats-happening` | "What's happening?
|
|
157
|
-
| `what-needs-me` | "What needs me? What am I blocking?" | The human's decision inbox, ranked by
|
|
158
|
-
| `run-this-project` | "Run this project for me. Own it until it closes." | Single-threaded owner of one project: subscribes to the
|
|
159
|
-
| `catalyst-setup` | "Am I set up? What is missing?" | Machine readiness plus tenant readiness from the contract's per-team checks, in one verdict: what passes, what is blocked, what is merely waiting, and who can click what. Reports; never repairs. | [`SKILL.md`](skills/catalyst-setup/SKILL.md) |
|
|
155
|
+
| `catalyst-onboard` | "Set me up. I just signed up. Am I set up? What is missing? Log me in." | Walks you from nothing to your first ticket running, one step at a time: connect this machine, connect the workspace and your personal provider accounts, map one project, register one repository, then watch a card move. Afterwards it answers "am I set up?" with one READY or NOT READY verdict and who can fix each failure, logs a machine in again, and checks the optional local replica. Hands over browser consent and settings steps without claiming they happened until a status check confirms them. | [`SKILL.md`](skills/catalyst-onboard/SKILL.md) |
|
|
156
|
+
| `whats-happening` | "What's happening? Why is that stuck? How does this work? How does it prioritise?" | The desk for your account: reads the contract, what is running and queued, the eligibility explainer, the coding accounts and the open asks, and answers in one reply with ticket ids. Carries the facts behind the answers: the ladder, the stage map, failures, parks and holds, the queue order and every reason a ticket is excluded. Routes work to a project owner and decisions to `what-needs-me`. | [`SKILL.md`](skills/whats-happening/SKILL.md) |
|
|
157
|
+
| `what-needs-me` | "What needs me? What am I blocking?" | The human's decision inbox, ranked by how much open work each ask holds, and the one way an agent raises a decision on their behalf: files an ask through the cloud's ask route with the account's own template and records the answer so the held work releases. | [`SKILL.md`](skills/what-needs-me/SKILL.md) |
|
|
158
|
+
| `run-this-project` | "Run this project for me. Own it until it closes." | Single-threaded owner of one project: subscribes to the account's event stream for its scope, 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. Never polls. | [`SKILL.md`](skills/run-this-project/SKILL.md) |
|
|
160
159
|
| `catalyst-linear` | "Show me the ticket, the history, what Catalyst wrote on it." | Reads a ticket with its comments, relations, labels, linked pull requests and agent sessions inline, from the replica when fresh and the API otherwise, always naming the source; writes comments, card moves, labels and new tickets as the app actor; knows what a ticket accumulates as Catalyst works it. | [`SKILL.md`](skills/catalyst-linear/SKILL.md) |
|
|
161
160
|
| `catalyst-github` | "Show me the PR, the checks, the review, the queue." | A ticket's pull request with its checks, reviews and review threads; whether it is mergeable under the repository's policy; what a PR accumulates as the ticket moves (the branch, the draft, the rewrite, the force-pushes, the labels, the queue). | [`SKILL.md`](skills/catalyst-github/SKILL.md) |
|
|
162
|
-
| `how-catalyst-works` | "How does this work? Why did it do that? How does it prioritise?" | The execution model as references loaded on demand: the eight-phase ladder, the eleven board slots and this team's live stage map, what happens when a phase fails, how the queue is ordered and routed, every exclusion reason, and the coding-account model. Scripts explain one ticket's eligibility in plain English. | [`SKILL.md`](skills/how-catalyst-works/SKILL.md) |
|
|
163
161
|
| `unstick` | "Why is this parked? Unpark it. Get things flowing again." | Reads why a ticket is not running and every park or hold on it, decides whether the recorded cause is fixed, previews the release and releases it the right way from your own login — or one failure class across a team — and raises an ask only for what a person has to do. | [`SKILL.md`](skills/unstick/SKILL.md) |
|
|
164
|
-
| `connect-me` | "Connect this machine to my tenant." | Connects the machine to the tenant with your own personal key, caches the tenant contract, verifies, and offers to start the replica. | [`SKILL.md`](skills/connect-me/SKILL.md) |
|
|
165
162
|
| `what-this-repo-needs` | "What env vars does this repo need? What does catalyst.env.json mean?" | Scans a repository offline — no login, no network — and lists the environment variable names it needs, grouped build/test, deploy-only and bindings, each with where it was found, what uses it, and where a local value would come from. Never reads or prints a value. Also validates a `catalyst.env.json` file with the same rules the cloud applies. | [`SKILL.md`](skills/what-this-repo-needs/SKILL.md) |
|
|
166
163
|
|
|
167
|
-
Some of these only read
|
|
164
|
+
Some of these only read, and some write: a comment, a card move, an ask, a release. Your agent may pick any of them from what you ask. Picking a skill is not permission to write: each write goes through your own login, spends the daily write budget your account sets, and is recorded against your name, and the skills preview first where the product offers a preview (a release's dry run, a stage mapping's plan). Each skill's `agents/portability.yaml` says whether it writes. Every skill declares `allowed-tools` scoped to this package's own binary, so none of them needs a blanket shell grant.
|
|
168
165
|
|
|
169
166
|
## What a key cannot see yet
|
|
170
167
|
|
|
171
|
-
Your personal key reads everything the skills need — tickets, pull requests, the eligibility explainer, the dispatch queue, fleet activity, per-ticket execution history (`catalyst explain --history <ticket>`: phase attempts, remediation rounds, park state) and coding-account status (`catalyst accounts`: provider, declared and observed state, window usage, walls, quarantine — never a credential; enrolling or pausing one is `<your cloud>/settings/coding-accounts`). It also releases a parked or held ticket once its cause is fixed: `catalyst release <ticket> --because <what changed>` (the `unstick` skill runs it), recorded against your name and shown in the ticket's history. And it declares what your containers need: `catalyst environment` reads the
|
|
168
|
+
Your personal key reads everything the skills need — tickets, pull requests, the eligibility explainer, the dispatch queue, fleet activity, per-ticket execution history (`catalyst explain --history <ticket>`: phase attempts, remediation rounds, park state) and coding-account status (`catalyst accounts`: provider, declared and observed state, window usage, walls, quarantine — never a credential; enrolling or pausing one is `<your cloud>/settings/coding-accounts`). It also releases a parked or held ticket once its cause is fixed: `catalyst release <ticket> --because <what changed>` (the `unstick` skill runs it), recorded against your name and shown in the ticket's history. And it declares what your containers need: `catalyst environment` reads the account-wide declaration, `environment propose --file <path> --approve` proposes and approves it in one compare-and-set, and the values behind the names stay in the cloud — reading needs any active seat, proposing and approving need an admin or owner one. An admin or owner can put a repository's values in from the terminal. `catalyst secret import .env --repo owner/name` stores every name in the file and lists the declared names that still have no value. `catalyst secret set NAME --repo owner/name --command 'op read op://Vault/item/field'` runs the command on your machine and stores its output; with no `--command` it reads the value from stdin, or asks for it without echoing. No value is ever printed, and the cloud's audit records the command, not its output. That is the account's own declaration — a repository's own `.catalyst/catalyst.toml`, which `catalyst-onboard` already reports on, is a separate thing. `catalyst env inventory` lists the environment variable names a repository needs — never a value — and `env check` validates a `catalyst.env.json` file offline; neither needs a login (the `what-this-repo-needs` skill walks through both). Two things it cannot do, and the skills say so by name rather than guess:
|
|
172
169
|
|
|
173
170
|
- Read pull-request labels or the reviewer's reaction. The mirror does not carry them; GitHub's own page does.
|
|
174
171
|
- Compute a flow number — cycle time, throughput, or how long pull requests have been open. Nothing serves those yet, so say they are not computed rather than counting something else and calling it that.
|
|
175
172
|
|
|
176
173
|
## Versions and origins
|
|
177
174
|
|
|
178
|
-
The package pins the
|
|
175
|
+
The package pins the contract range `1.x || 2.x`, recorded in `package.json` under `catalystCloud.tenantContractRange`, and reports it in `--version`, `status` and `login`. An account whose contract version falls outside that range is refused with one line naming both versions; update the bundle. Every skill carries a `vendored-from:` line naming this package as its origin, and that line now also carries the version it was vendored at; all of them are written in this repository for customer accounts.
|
|
179
176
|
|
|
180
177
|
## What it writes on your machine
|
|
181
178
|
|
|
182
179
|
- `~/.config/catalyst-cloud/customer.json`, written with mode `0600`, holding your personal key, who you are, and the CLI path.
|
|
183
|
-
- `~/.config/catalyst-cloud/contract.json`,
|
|
180
|
+
- `~/.config/catalyst-cloud/contract.json`, your account's cached contract.
|
|
184
181
|
- `~/.config/catalyst-cloud/published.json`, the cached answer to "what is the newest release" — no credential in it.
|
|
185
182
|
- Only if you start them: `~/.config/catalyst-cloud/replica.db` with its `.pid`, `.writer.lock` and `.writer.state` sidecars, `$XDG_STATE_HOME/catalyst/events/<tenant>/backbone/` (or the home-directory fallback) with bounded daily event segments, and `~/.config/catalyst-cloud/watch-cursor.json`.
|
|
186
183
|
|
|
@@ -200,7 +197,7 @@ A `customer.json` written by an older bundle is still read unchanged; it gains t
|
|
|
200
197
|
|
|
201
198
|
## Uninstalling
|
|
202
199
|
|
|
203
|
-
Remove the skills the way you installed them: `/plugin uninstall catalyst@catalyst-cloud` in Claude Code, or delete the skill directories (`catalyst-github`, `catalyst-linear`, `catalyst-onboard`, `
|
|
200
|
+
Remove the skills the way you installed them: `/plugin uninstall catalyst@catalyst-cloud` in Claude Code, or delete the skill directories (`catalyst-github`, `catalyst-linear`, `catalyst-onboard`, `run-this-project`, `unstick`, `what-needs-me`, `what-this-repo-needs`, `whats-happening`) from wherever `npx skills add` wrote them. Skills an earlier release shipped (`catalyst-setup`, `connect-me`, `how-catalyst-works`) go the same way; the CLI removes its own stamped copies of them when it installs or refreshes skills. Then remove what the CLI wrote:
|
|
204
201
|
|
|
205
202
|
```sh
|
|
206
203
|
catalyst replica stop
|
|
@@ -213,10 +210,10 @@ npm uninstall -g @catalyst-cloud/cli
|
|
|
213
210
|
## If login fails
|
|
214
211
|
|
|
215
212
|
- `catalyst: GET /me failed (401): credential not accepted — mint a personal key at Settings → API keys and log in again` — the key is stale, mistyped or revoked. Mint a new one, then run `login` again.
|
|
216
|
-
- `catalyst: GET /me failed (403): account-not-operational` —
|
|
213
|
+
- `catalyst: GET /me failed (403): account-not-operational` — your cloud account is suspended. This is a conversation with your account's admin, not a local fix.
|
|
217
214
|
- `catalyst: could not reach <url>: <detail>` — the machine cannot reach the cloud. The URL is named in the message; check `CATALYST_CLOUD_BASE_URL` or `--base-url`.
|
|
218
|
-
- A line naming two contract versions after `Connected to` —
|
|
219
|
-
- `[catalyst] GET /api/v1/agent/contract refused (403): this cloud is older than the bundle …` on stderr — the cloud has not yet deployed personal-key access to the contract. Update the cloud, or connect with
|
|
215
|
+
- A line naming two contract versions after `Connected to` — your account serves a contract outside this bundle's `1.x || 2.x` range. The config is written; update the bundle before using the other skills.
|
|
216
|
+
- `[catalyst] GET /api/v1/agent/contract refused (403): this cloud is older than the bundle …` on stderr — the cloud has not yet deployed personal-key access to the contract. Update the cloud, or connect with your account key until it has.
|
|
220
217
|
|
|
221
218
|
## License
|
|
222
219
|
|
package/dist/args.js
CHANGED
|
@@ -136,6 +136,19 @@ export const FLAG_TABLES = {
|
|
|
136
136
|
},
|
|
137
137
|
identity: {},
|
|
138
138
|
capabilities: {},
|
|
139
|
+
project: {
|
|
140
|
+
team: { value: true, help: "the project's team key (default: the only mapped project)" },
|
|
141
|
+
},
|
|
142
|
+
legacy: {
|
|
143
|
+
remove: { value: false, help: "remove what was found, after one question (or --yes)" },
|
|
144
|
+
data: { value: false, help: "with --remove: delete the old runtime's data folders too" },
|
|
145
|
+
yes: { value: false, help: "with --remove: answer the question yes (a run with no terminal only reports otherwise)" },
|
|
146
|
+
},
|
|
147
|
+
repo: {
|
|
148
|
+
write: { value: false, help: "agents-block: write or update the block in AGENTS.md (working tree only)" },
|
|
149
|
+
apply: { value: false, help: "agent-setup: perform the portable-layout plan in the working tree" },
|
|
150
|
+
"with-check": { value: false, help: "agent-setup: also write scripts/agents-md-check.mjs, a CI check for the layout" },
|
|
151
|
+
},
|
|
139
152
|
connections: {
|
|
140
153
|
wait: { value: true, help: "start: wait up to this many seconds for browser approval (0-600)" },
|
|
141
154
|
},
|
|
@@ -175,6 +188,9 @@ export const VERB_USAGE = {
|
|
|
175
188
|
secret: "secret set <NAME> --repo <owner/name> [--command '<cmd>'] [--json] (value from --command, stdin, or a hidden prompt) | secret import <file> --repo <owner/name> [--rotate NAME]... [--json]",
|
|
176
189
|
identity: "identity linear <status|options|set> [<linearUserId>] [--json]",
|
|
177
190
|
capabilities: "capabilities [--json]",
|
|
191
|
+
project: "project wip-limit <get|set <n>|set default> [--team K] [--json]",
|
|
192
|
+
repo: "repo <agents-block <path> [--write]|agent-setup <path> [--apply] [--with-check]> [--json]",
|
|
193
|
+
legacy: "legacy [--remove [--data] [--yes]] [--json]",
|
|
178
194
|
connections: "connections personal <linear|github> <start|status> [--wait <seconds>] [--json]",
|
|
179
195
|
release: "release <ticket> --because <what changed> [--retry-unchanged] [--dry-run] [--json] | release --class <failure-class> --team <K> --because <what changed> [--retry-unchanged] [--dry-run] [--limit N] [--json]",
|
|
180
196
|
};
|
package/dist/ask.js
CHANGED
|
@@ -86,8 +86,9 @@ export function inboxScope(cfg, anyone) {
|
|
|
86
86
|
return { kind: "unmatched", label: cfg.user.label };
|
|
87
87
|
return { kind: "mine", linearUserId: cfg.user.linearUserId, label: cfg.user.label };
|
|
88
88
|
}
|
|
89
|
-
/** Rank open asks
|
|
90
|
-
*
|
|
89
|
+
/** Rank open asks the way the cloud's own Waiting-on-me feed does: the most open tickets blocked
|
|
90
|
+
* first, then the oldest ask first, then the identifier. `score` is the count of open tickets the
|
|
91
|
+
* ask blocks. Priority is not a weight here, and age only breaks a tie. */
|
|
91
92
|
export function rankAsks(issues, doc, openState) {
|
|
92
93
|
const askIds = new Set();
|
|
93
94
|
for (const team of doc.teams)
|
|
@@ -103,11 +104,18 @@ export function rankAsks(issues, doc, openState) {
|
|
|
103
104
|
for (const i of issues)
|
|
104
105
|
if (typeof i.identifier === "string")
|
|
105
106
|
byIdentifier.set(i.identifier, i);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
// The cloud's age key: created, else updated; an ask with neither sorts after every dated one.
|
|
108
|
+
const ageKey = (issue) => {
|
|
109
|
+
for (const k of ["created_at", "updated_at"]) {
|
|
110
|
+
const v = issue[k];
|
|
111
|
+
if (typeof v === "number" && Number.isFinite(v))
|
|
112
|
+
return v;
|
|
113
|
+
if (typeof v === "string" && Number.isFinite(Date.parse(v)))
|
|
114
|
+
return Date.parse(v);
|
|
115
|
+
}
|
|
116
|
+
return Number.POSITIVE_INFINITY;
|
|
109
117
|
};
|
|
110
|
-
const
|
|
118
|
+
const ranked = [];
|
|
111
119
|
for (const issue of issues) {
|
|
112
120
|
if (!isAsk(issue) || !openState(issue))
|
|
113
121
|
continue;
|
|
@@ -119,16 +127,20 @@ export function rankAsks(issues, doc, openState) {
|
|
|
119
127
|
const t = byIdentifier.get(id);
|
|
120
128
|
return !t || openState(t);
|
|
121
129
|
});
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
ranked.push({
|
|
131
|
+
age: ageKey(issue),
|
|
132
|
+
ask: {
|
|
133
|
+
identifier: String(issue.identifier),
|
|
134
|
+
title: String(issue.title ?? ""),
|
|
135
|
+
state: String(issue.state ?? ""),
|
|
136
|
+
blocks: blocked,
|
|
137
|
+
score: blocked.length,
|
|
138
|
+
assigneeId: typeof issue.assignee_id === "string" && issue.assignee_id !== "" ? issue.assignee_id : null,
|
|
139
|
+
},
|
|
129
140
|
});
|
|
130
141
|
}
|
|
131
|
-
|
|
142
|
+
ranked.sort((a, b) => b.ask.score - a.ask.score || (a.age === b.age ? 0 : a.age < b.age ? -1 : 1) || a.ask.identifier.localeCompare(b.ask.identifier));
|
|
143
|
+
return ranked.map((r) => r.ask);
|
|
132
144
|
}
|
|
133
145
|
async function list(args, ctx, doc, api, cfg) {
|
|
134
146
|
// ⛔ THE INBOX IS THE WHOLE SCOPE, NOT A PAGE. The mirror caps every page at 500 rows regardless of
|
|
@@ -146,16 +158,16 @@ async function list(args, ctx, doc, api, cfg) {
|
|
|
146
158
|
return 0;
|
|
147
159
|
}
|
|
148
160
|
if (scope.kind === "unmatched") {
|
|
149
|
-
ctx.stderr(`[catalyst] your Linear identity is not matched yet (
|
|
161
|
+
ctx.stderr(`[catalyst] your Linear identity is not matched yet (match it with: catalyst identity linear options, then catalyst identity linear set <linearUserId>), so this is every open ask, not only yours`);
|
|
150
162
|
}
|
|
151
163
|
else if (scope.kind === "no-person") {
|
|
152
|
-
ctx.stderr(`[catalyst] connected with
|
|
164
|
+
ctx.stderr(`[catalyst] connected with your cloud account's shared key, which names no person — this is every open ask; log in with your personal key to see only yours`);
|
|
153
165
|
}
|
|
154
166
|
if (ranked.length === 0) {
|
|
155
|
-
ctx.stdout(scope.kind === "mine" ? `no open asks assigned to ${scope.label} (${all.length} open in
|
|
167
|
+
ctx.stdout(scope.kind === "mine" ? `no open asks assigned to ${scope.label} (${all.length} open in your cloud account — add --anyone to see them)` : "no open asks");
|
|
156
168
|
return 0;
|
|
157
169
|
}
|
|
158
170
|
for (const a of ranked)
|
|
159
|
-
ctx.stdout(`${a.identifier} holds ${a.blocks.length} ticket${a.blocks.length === 1 ? "" : "s"}
|
|
171
|
+
ctx.stdout(`${a.identifier} holds ${a.blocks.length} ticket${a.blocks.length === 1 ? "" : "s"}${a.blocks.length ? `: ${a.blocks.join(", ")}` : ""} ${a.title}`);
|
|
160
172
|
return 0;
|
|
161
173
|
}
|
package/dist/capabilities.js
CHANGED
|
@@ -19,6 +19,11 @@ export const CAPABILITIES = [
|
|
|
19
19
|
{ verb: "team adopt", does: "create Catalyst's stages in a Linear team, from a preview the person approves", needs: "admin", routes: [agent("POST", "team-workflow/adopt")], since: "0.9.5" },
|
|
20
20
|
{ verb: "team migrate", does: "move tickets between stages, from a preview the person approves", needs: "admin", routes: [agent("POST", "team-workflow/migrate")], since: "0.9.5" },
|
|
21
21
|
{ verb: "team checklist", does: "print what adopting the workflow would do to a team", needs: "admin", routes: [agent("GET", "team-workflow")], since: "0.9.5" },
|
|
22
|
+
{ verb: "project wip-limit get", does: "read a project's new-start WIP limit, where it comes from, and its work in progress now", needs: "member", routes: [agent("GET", "team-wip-limit")], since: "0.13.1" },
|
|
23
|
+
{ verb: "project wip-limit set", does: "set a project's new-start WIP limit (0 to 9999, or back to the workspace default)", needs: "admin", routes: [agent("POST", "team-wip-limit")], since: "0.13.1" },
|
|
24
|
+
{ verb: "repo agents-block", does: "add or refresh the one Catalyst block in a checkout's AGENTS.md, in the working tree, for the person to commit and open as a pull request", needs: "member", routes: [], since: "0.13.1" },
|
|
25
|
+
{ verb: "repo agent-setup", does: "read a checkout's agent setup (AGENTS.md, CLAUDE.md, .agents and .claude skills and rules) and, on request, make it portable in the working tree", needs: "member", routes: [], since: "0.13.1" },
|
|
26
|
+
{ verb: "legacy", does: "find leftovers of the old local Catalyst runtime on this machine and, on a yes, remove them through their own tools", needs: "member", routes: [], since: "0.13.1" },
|
|
22
27
|
{ verb: "environment read", does: "read the workspace-wide environment declaration", needs: "member", routes: [agent("GET", "account-environment")], since: "0.8.0" },
|
|
23
28
|
{ verb: "environment propose", does: "propose the workspace-wide environment declaration (names only)", needs: "admin", routes: [agent("POST", "account-environment/propose")], since: "0.8.0" },
|
|
24
29
|
{ verb: "environment approve", does: "approve the workspace-wide environment declaration", needs: "admin", routes: [agent("POST", "account-environment/approve")], since: "0.8.0" },
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// cli.ts — the `catalyst
|
|
1
|
+
// cli.ts — the `catalyst` dispatcher (npm: @catalyst-cloud/cli). Verbs live in
|
|
2
2
|
// their own modules; this file keeps every export the 0.1 tests and the bin import.
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import { parseArgs, positionals, verbHelp } from "./args.js";
|
|
@@ -27,6 +27,9 @@ import { cmdEnv } from "./env.js";
|
|
|
27
27
|
import { cmdSecret } from "./secret.js";
|
|
28
28
|
import { cmdTeam } from "./team.js";
|
|
29
29
|
import { cmdCapabilities } from "./capabilities.js";
|
|
30
|
+
import { cmdProject } from "./project.js";
|
|
31
|
+
import { cmdRepo } from "./repo.js";
|
|
32
|
+
import { cmdLegacy } from "./legacy.js";
|
|
30
33
|
import { cmdIdentity } from "./identity.js";
|
|
31
34
|
import { cmdConnections } from "./connections.js";
|
|
32
35
|
export { CONFIG_MODE, DEFAULT_BASE_URL, FIRST_STAMPED_VERSION, LEGACY_PACKAGE_NAME, PACKAGE_NAME, PROVENANCE_MARKER, CliError, MeError, UsageError, configPathFor, contractPathFor, defaultCtx, defaultReplicaDbFor, defaultSkillsDirFor, fetchMe, formatMode, installedBundleVersion, installSkills, loadConfig, modernCliPath, normalizeBaseUrl, parseArgs, parseChangelogEntry, parseProvenanceVersion, readChangelog, readManifest, resolveSkillsDir, saveConfig, skillsSourceDir, updateNoticeLine, writeConfig, };
|
|
@@ -34,9 +37,6 @@ export const CUSTOMER_SKILLS = [
|
|
|
34
37
|
"catalyst-github",
|
|
35
38
|
"catalyst-linear",
|
|
36
39
|
"catalyst-onboard",
|
|
37
|
-
"catalyst-setup",
|
|
38
|
-
"connect-me",
|
|
39
|
-
"how-catalyst-works",
|
|
40
40
|
"run-this-project",
|
|
41
41
|
"unstick",
|
|
42
42
|
"what-needs-me",
|
|
@@ -74,6 +74,9 @@ export function usageText() {
|
|
|
74
74
|
" catalyst secret set <NAME> --repo <owner/name> [--command '<cmd>'] | secret import <file> --repo <owner/name>",
|
|
75
75
|
" catalyst team <list|check|map|adopt|migrate|checklist> ...",
|
|
76
76
|
" catalyst capabilities [--json] (what this CLI can do, the role each verb needs, and whether this cloud serves it)",
|
|
77
|
+
" catalyst project wip-limit <get|set <n>|set default> [--team K] (a project's new-start WIP limit; members read, owners and admins set)",
|
|
78
|
+
" catalyst repo <agents-block <path> [--write]|agent-setup <path> [--apply] [--with-check]> (a checkout's AGENTS.md block and portable agent layout; working tree only)",
|
|
79
|
+
" catalyst legacy [--remove [--data] [--yes]] (leftovers of the old local Catalyst runtime: list them; remove them only on a yes)",
|
|
77
80
|
" catalyst identity linear <status|options|set> [<linearUserId>] [--json]",
|
|
78
81
|
" catalyst connections personal <linear|github> <start|status> [--wait <seconds>] [--json]",
|
|
79
82
|
"",
|
|
@@ -168,6 +171,8 @@ function maybePrintUpdateNotice(args, ctx) {
|
|
|
168
171
|
}
|
|
169
172
|
if (refreshed.installed.length > 0)
|
|
170
173
|
say(`[catalyst] refreshed ${refreshed.installed.join(", ")} at ${skillsDir} to ${manifest.version}`);
|
|
174
|
+
if (refreshed.removed.length > 0)
|
|
175
|
+
say(`[catalyst] removed retired skills ${refreshed.removed.join(", ")} from ${skillsDir}; their work moved into the skills this bundle ships`);
|
|
171
176
|
for (const s of refreshed.skipped) {
|
|
172
177
|
say(`[catalyst] left "${s.name}" alone: ${skillsDir}/${s.name} was not installed by this package (catalyst install --force to replace)`);
|
|
173
178
|
}
|
|
@@ -256,6 +261,12 @@ export async function main(argv, ctx = defaultCtx(), deps = {}) {
|
|
|
256
261
|
return await cmdTeam(args, ctx, deps.team);
|
|
257
262
|
case "capabilities":
|
|
258
263
|
return await cmdCapabilities(args, ctx);
|
|
264
|
+
case "project":
|
|
265
|
+
return await cmdProject(args, ctx);
|
|
266
|
+
case "repo":
|
|
267
|
+
return await cmdRepo(args, ctx);
|
|
268
|
+
case "legacy":
|
|
269
|
+
return await cmdLegacy(args, ctx, deps.legacy ?? {});
|
|
259
270
|
case "identity":
|
|
260
271
|
return await cmdIdentity(args, ctx, deps.identity ?? {});
|
|
261
272
|
case "connections":
|
|
@@ -283,7 +294,7 @@ export async function main(argv, ctx = defaultCtx(), deps = {}) {
|
|
|
283
294
|
throw err;
|
|
284
295
|
}
|
|
285
296
|
}
|
|
286
|
-
const VERB_HELP_KNOWN = Object.fromEntries(["login", "join", "install", "status", "notice", "me", "contract", "query", "replica", "runtime", "events", "explain", "running", "queue", "watch", "write", "ask", "ready", "accounts", "release", "secret", "env", "environment", "connections", "identity", "mcp", "team", "capabilities"].map((v) => [v, true]));
|
|
297
|
+
const VERB_HELP_KNOWN = Object.fromEntries(["login", "join", "install", "status", "notice", "me", "contract", "query", "replica", "runtime", "events", "explain", "running", "queue", "watch", "write", "ask", "ready", "accounts", "release", "secret", "env", "environment", "connections", "identity", "mcp", "team", "capabilities", "project", "repo", "legacy"].map((v) => [v, true]));
|
|
287
298
|
async function cmdLogin(args, ctx, deps) {
|
|
288
299
|
const manifest = readManifest();
|
|
289
300
|
const key = (args.key ?? ctx.env.CATALYST_CLOUD_TOKEN ?? "").trim();
|
|
@@ -376,6 +387,8 @@ function cmdInstall(args, ctx) {
|
|
|
376
387
|
for (const s of result.skipped) {
|
|
377
388
|
ctx.stdout(`Skipped "${s.name}": ${skillsDir}/${s.name} exists and was not installed by this package (use --force to replace)`);
|
|
378
389
|
}
|
|
390
|
+
if (result.removed.length > 0)
|
|
391
|
+
ctx.stdout(`Removed retired skills from ${skillsDir}: ${result.removed.join(", ")}`);
|
|
379
392
|
return 0;
|
|
380
393
|
}
|
|
381
394
|
function cmdStatus(ctx) {
|
package/dist/environment.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// environment.ts — `catalyst
|
|
1
|
+
// environment.ts — `catalyst environment`: the tenant-scope environment declaration, through
|
|
2
2
|
// the contract's account-environment routes. This is the ONE setup write a person's own key can
|
|
3
3
|
// perform: the cloud has admitted it since the routes shipped, and until this verb existed nothing
|
|
4
4
|
// could call it, so every setup action was a settings page.
|