@theholocron/cli 5.0.0-alpha.506 → 5.0.0-alpha.507
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/README.md +3 -3
- package/dist/cli.mjs +465 -79
- package/dist/cli.mjs.map +1 -1
- package/dist/{index-_Md7AlPB.d.mts → index-D_e9vKTW.d.mts} +102 -6
- package/dist/index.d.mts +2 -2
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/presets.d.mts +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -691,7 +691,7 @@ commands and the config are provider-neutral; Discord is the first provider.
|
|
|
691
691
|
|
|
692
692
|
Channels fed by another service are declared with `feeds` on the channel: `{ name: "uptime", webhook: true, feeds: { monitoring: true } }` (the object form `{ name?, webhook?, avatar?, alerts? }` overrides the alert channel's name, default `Message to #<channel>`, the dedicated webhook's name, default the provider's, and gives that webhook a picture, a file path or `https://` URL, or `{ url, image }` (the URL is tried first, the file in the repo is the fallback), else the provider's own icon (`Monitoring.icon`, a URL and an embedded `data:` image; Checkly provides one), else the layout's `webhookAvatar`). A channel's own `webhook.avatar` and the layout's `webhookAvatar` take the same forms, a path or `https://` URL, or `{ url, image }` (the URL first, the file in the repo as the fallback); a relative path is read from the repository root. `setup` gives the channel a dedicated webhook and hands its URL straight to the `monitoring` provider through `Monitoring.ensureAlertChannel({ name, format: "discord", url? })`, which finds an alert channel of that name or creates one and subscribes every check; the URL is never stored as a secret. It needs a `monitoring` provider that implements `ensureAlertChannel` (Checkly does). `alerts: { failure?, recovery?, degraded?, sslExpiry?, sslExpiryThreshold? }` (`MonitoringAlertSettings`, passed as `ensureAlertChannel({ ..., alerts })`) sets what the alert channel alerts about: a new channel defaults to failure, recovery and degraded on and `sslExpiry` off, and on an existing channel a setting left out is left alone. A check in the `monitoring` provider's `checks` can route itself with `alertChannels: ["Message to #uptime"]` (`MonitoringCheckInput.alertChannels`, the alert channel names): it is then subscribed to those channels only, and a name no feed declares is refused by `setup`. `inspectAlertChannel` returns the channel's `alerts` and the `misrouted` checks that `doctor notifications` reports. Two feeds may not share an alert channel name, and a feed's webhook may not share the channel's own webhook name (compared without regard to case).
|
|
693
693
|
|
|
694
|
-
Channels fed by the error tracker add `feeds: { errors: true }` and a layout `relay: { host, zone?, script?, code? }`: `setup` makes a dedicated webhook, points `host` at the Comlink Worker (a proxied DNS record via `dns`), and deploys it via `workers.deployScript` with the webhook URL as `COMLINK_<SOURCE>_WEBHOOK`. The URL never leaves the Worker's secret; other secrets on the script are kept. With `relay.errors: { projects, integration?, rule?, frequency? }` it also ensures the tracker's integration and alert rule (`errors.ensureRelay`) and deploys the Worker with the integration's signing secret. Needs `errors`, `workers` and `dns`; only one channel may be fed.
|
|
694
|
+
Channels fed by the error tracker add `feeds: { errors: true }` and a layout `relay: { host, zone?, script?, code? }`: `setup` makes a dedicated webhook, points `host` at the Comlink Worker (a proxied DNS record via `dns`), and deploys it via `workers.deployScript` with the webhook URL as `COMLINK_<SOURCE>_WEBHOOK`. The URL never leaves the Worker's secret; other secrets on the script are kept. A service other than the error tracker is declared in `relay.sources: { <id>: { capability, name?, events?, scope?, options? } }` and carried by a channel with `feeds.relay.<id>`: `setup` asks the provider of `capability` to make the vendor's webhook (optional `ensureRelaySource`, found again by its URL, never deleted), hands the Worker `COMLINK_<ID>_SECRET` (when the provider made or chose a secret) and `COMLINK_<ID>_WEBHOOK` in the same deploy, and `doctor notifications` adds a `relay-source:<id>` row (optional `inspectRelaySource`). With `relay.errors: { projects, integration?, rule?, frequency? }` it also ensures the tracker's integration and alert rule (`errors.ensureRelay`) and deploys the Worker with the integration's signing secret. Needs `errors`, `workers` and `dns`; only one channel may be fed.
|
|
695
695
|
|
|
696
696
|
`holocron sync secrets --env <environment> --worker <script>` also sets every key of the vault environment on a deployed Worker as a secret, through the optional `Workers.setSecret(script, name, value)` (write-only; the Cloudflare plugin implements it). The Worker must already exist. Sync only adds and updates: it never removes a binding, because a Worker also holds secrets that are not in the vault (for Comlink, the `COMLINK_<SOURCE>_WEBHOOK` that `setup notifications` sets), so a key deleted from the vault must be deleted from the Worker separately. Keys are written one at a time and each is reported; if one fails, the exit code is 1 and re-running finishes the rest, since every write is idempotent.
|
|
697
697
|
|
|
@@ -756,9 +756,9 @@ See the [command pages](https://theholocron.dev/holocron/commands/setup-notifica
|
|
|
756
756
|
`--dry-run` or `--yes` (without a terminal it refuses instead) and does not look for a duplicate. The field flags (`Issues.create`'s
|
|
757
757
|
`IssueFields`: Type, Priority, Effort, the dates, parent, blockers) are checked first, a field the tracker refuses is listed and never loses the issue,
|
|
758
758
|
`--project` puts the issue on a board `providers.projects.boards` declares, and `--area` adds `area:<name>` from `repo.labels.areas` (`RepoLabels`).
|
|
759
|
-
- **`holocron update issue <key> [--title <text>] [--body <text> | --body-file <path|->] [--state open|closed] [--add-label <name>]... [--remove-label <name>]... [--assignee <login>]... [--milestone <value>] [--unblock <key>]... [--clear <field>]...` plus the `new issue` field flags `[--dry-run] [--yes]`** — changes an issue through the
|
|
759
|
+
- **`holocron update issue <key> [--title <text>] [--body <text> | --body-file <path|->] [--state open|closed [--state-reason completed|not_planned]] [--add-label <name>]... [--remove-label <name>]... [--assignee <login>]... [--milestone <value>] [--unblock <key>]... [--clear <field>]...` plus the `new issue` field flags `[--dry-run] [--yes]`** — changes an issue through the
|
|
760
760
|
optional `Issues.update(key, IssuePatch)`: only what is named is touched, nothing is cleared unless `--clear` names it, what is already as asked is not written, and what the tracker cannot hold is listed as not carried across.
|
|
761
|
-
It edits the tracker's issue only (not a pull request or the board's status).
|
|
761
|
+
It edits the tracker's issue only (not a pull request or the board's status). `--state-reason completed|not_planned` (with `--state closed` only; a failing row otherwise) carries `IssuePatch.stateReason`: GitHub closes as completed or not planned, Linear ignores it.
|
|
762
762
|
- **`holocron new work <title> [--spec [name]] [--effort high|medium|low] [--assignee <login>]...` plus every `new issue` flag `[--dry-run] [--yes]`** — files the issue with all its fields (it calls `runIssueCreate()`, so the fields, `--project`, `--area`, the confirmation and `--dry-run` are `new issue`'s) and, with `--spec`, writes the draft spec stub `.notes/<name>.spec.md` from it (`runIdeasPromote()`, the `new spec` path; the name defaults to `tech-<title>`). The assignee defaults to the GitHub login in git's config (`github.user`, else a `users.noreply.github.com` email; never the token's identity), `--assignee` overrides it, and with no login the issue is filed unassigned and a row says so. Effort is asked on a terminal when `--effort` is absent (not with `--yes` or `--dry-run`); an agent passes it. It makes no branch and no commit: the last line names `holocron start work <key> --spec <path>`, which makes the spec the first commit. The spec's name and path are checked before the issue is filed.
|
|
763
763
|
- **`holocron start work <issue> [--name <slug>] [--title <text>] [--base <branch>] [--no-worktree] [--worktree-path <path>] [--spec <file>] [--one-pr] [--type bug|feature|task] [--effort high|medium|low] [--assignee <login>]... [--project <board>] [--no-pr] [--dry-run] [--yes]`** — starts a piece of work (spec `tool-work-commands`, #2429, part 3): reads the issue, sets its start date (and Effort), makes the branch `<type>/<issue>-<slug>` and a worktree under `.claude/worktrees/<name>`, makes the first commit (the spec file, or an empty commit titled like the pull request), pushes, and opens a draft pull request linked to the issue (`Closes`, or `Refs` for a spec-only pull request). It asks first unless `--dry-run` or `--yes`; `--dry-run` runs only the reads and writes nothing, local version control included. Run again, it carries on from the first undone step. The board status is left to the open pull request. See `docs/src/content/docs/commands/start-work.mdx`.
|
|
764
764
|
- **`holocron update work <issue> [--title <text>] [--issue-title <text>] [--label <name>]... [--remove-label <name>]... [--assignee <login>]... [--milestone <title>] [--unblock <key>]... [--pr <number>] [--start [--name <slug>] [--base <branch>] [--spec <file>] [--one-pr]] [--status <status> [--force] [--board <name>]]` plus the `update issue` field flags `[--dry-run] [--yes]`** — keeps the issue, its pull request and the board in step (spec `tool-work-commands`, part 5). It finds the open pull request by its `<type>/<issue>-<slug>` branch (or `--pr`), updates the issue through `Issues.update` and the pull request's title, labels, assignees, milestone and board through `Source.updatePullRequest`, and adds the `area:<name>` labels the pull request's changed folders earn (`repo.labels.areas`; `Source.listPullRequestFiles`) to both, never removing a label. `--start` runs `start work` first. `--status` is last and refuses In Review, Blocked and Done without `--force` (the board's automation owns them); any hand-set status is temporary. Asks once first unless `--dry-run` or `--yes`.
|