@theholocron/cli 5.0.0-alpha.575 โ†’ 5.0.0-alpha.576

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 CHANGED
@@ -707,7 +707,7 @@ commands and the config are provider-neutral; Discord is the first provider.
707
707
  | `holocron new server --name <n> --owner <id>` | Creates the server the layout describes, writes its id into the config, applies the layout, invites the owner, waits for them to join and hands the server over (`--resume` finishes an interrupted hand-over; `--force` allows a second server) |
708
708
  | `holocron link account` | Links your account on the provider to your GitHub account by signing in with the provider (OAuth, nothing secret kept) |
709
709
  | `holocron sync roles` | Makes who holds a role match a GitHub team, through the links file (`--keep` only adds; `--provider` picks one) |
710
- | `holocron reconcile project [board]` | Sets item statuses where a rule says so: an open blocker means `blocked`, no blocker left means `planned`, closed means `done`, and, from the pull requests that close the item, an open one means `active` and a green `ci / Required checks` means `review` (a failure moves `review` back; GitHub reads them through `closedByPullRequestsReferences`) (status only; `--dry-run` previews; an open item with no status is reported). Runs hourly from `platform.projectReconcile.yml`, which `setup` writes when `providers.projects` declares boards |
710
+ | `holocron reconcile project [board]` | Sets item statuses where a rule says so: an open blocker means `blocked`, no blocker left means `planned`, closed means `done`, and, from the pull requests that close the item, an open one means `active` and green required checks mean `review` (a failure moves `review` back; GitHub reads them through `closedByPullRequestsReferences`) (status only; `--dry-run` previews; an open item with no status is reported). Runs hourly from `platform.projectReconcile.yml`, which `setup` writes when `providers.projects` declares boards |
711
711
  | `holocron reconcile ci [pull-request] [--max-age <minutes>] [--shadow] [--dry-run]` | Makes `ci / Required checks` say what the checks on each open pull request call for (spec `process-sentinel-posts-ci`): reads the head commit's check runs and statuses through `source` and posts the verdict with astromech's `postAggregate()`. A check missing or wrong for longer than `--max-age` (default 10) is a failing row, because a webhook was missed. Posts the real check only where `ci.aggregate` is `sentinel` (under `actions` it does nothing; `--shadow` repairs Sentinel's shadow check) and leaves a commit alone where the Actions job already posts it. The manual recovery path and, run every 15 minutes by the `reconcile-ci` task, the sweep |
712
712
  | `holocron doctor notifications [--built-only] [--deliver] [--post]` | Step by step: does the server match the layout, do the secrets exist, and does a person (not the bot) own it. A full run also leaves one `๐Ÿงช test:` post in the layout's `testChannel`; `--built-only` posts nothing; `--deliver` posts to every channel and removes each post; `--post [channel]` posts the result as the bot (the failures, or only the summary when none fail). It also reads the Checkly feed (webhook, alert channel, subscriptions), the Comlink relay (Worker, route, bindings, the tracker's integration and rule) and the Notifications workflow (the file, and the secrets it reads), posting nothing, so `--built-only` keeps those steps. The `bot-permissions` row compares what the bot's roles hold server-wide with the permissions it needs (`ServerInspection` `botPermissions`; the owner and Administrator hold all, channel overwrites are left to the forum row) and, when some are missing, fails naming them in plain words with the invite link that asks for them again (not a credential); it is skipped, with the reason, when the roles could not be read |
713
713
  | `holocron doctor ci` | Has the repo moved to the flat task vocabulary? One row each for the `tasks:` entries (a deprecated alias, with the id that replaces it), the generated callers (file, workflow and job name equal the task id), the `ci` aggregate's `expected` list (no id missing or stale) and where the callers point (`theholocron/.github` or holocron `ci-v1`). Read-only, no provider needed; exits 1 on a failure. `--shadow [--limit n]` adds a `shadow` row that compares Sentinel's `ci / Required checks (sentinel)` with the Actions `ci / Required checks` on the newest open and merged pull requests (through `source`): a decided pull request where they differ fails the row, and 20 consecutive that agree pass it (SPEC-0099). The ruleset's checks are `doctor repo`'s |
@@ -805,7 +805,7 @@ See the [command pages](https://theholocron.dev/holocron/commands/setup-notifica
805
805
  - **`holocron start agent [--dry-run] -- <command> [args...]`** โ€” starts an agent's program in the foreground with the credentials of the `agent` Environment and nothing else (spec `tech-agent-secrets`, #2711): the Service Account's token is read from an owner-only file (`~/.config/holocron/agent.token`, or `HOLOCRON_AGENT_TOKEN_FILE`), used for one in-memory read of `<org/repo> - agent`, and never given to the program, which gets that Environment's variables and `HOLOCRON_ENVIRONMENT=agent`. See `docs/src/content/docs/commands/start-agent.mdx`.
806
806
  - **`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`.
807
807
  - **Area labels** (`repo.labels`, spec `tech-github-area-labels`, #2430 part 2). `repo.labels.areas` (name to folder patterns, `!` excludes) and `repo.labels.scopes` (title scope to area), `kinds` and `fallbackKinds` (kind label to issue Type, for the `issue-types` backfill, #2495) and `repos` (`owner/name` list) are checked when the config loads (`validateRepoLabels()`, a `ConfigError` naming `repo.labels.areas.<name>`). `holocron setup` makes the declared `area:<name>` labels through the optional `Source.ensureLabels()` (create only, `--dry-run` writes nothing; they are never in `CANONICAL_LABELS` or `STALE_LABELS`), and `doctor repo` has a `repo-area-labels` row. The one mapping is exported from `@theholocron/cli` for Sentinel and the backfill probe: `areaLabelsForFiles(files, areas)`, `areaLabelsForTitle(title, scopes)`, `areaForScope(scope, scopes)`, `titleScopes(title)`, `pathMatches(path, pattern)`, `areaLabelDefs(areas)` and `AREA_PREFIX`.
808
- - **`holocron close work <issue> [--wait [--timeout <minutes>]] [--abandon] [--keep-worktree] [--pr <number>] [--dry-run] [--yes]`** โ€” the end of a piece of work (spec `tool-work-commands`, part 6). It never merges. For an open pull request it reads the `ci / Required checks` aggregate through the optional `Source.getPullRequestChecks` (with `--wait`, polling until green or red or `--timeout` minutes, default 30), stops on anything but green naming the failing checks, and on green asks, marks the pull request ready (`Source.markReady`), adds the area labels through `update work` and takes closed blockers off the issue. Run again after the merge it removes the worktree and the local branch (never forced; `--keep-worktree` leaves them) and checks the remote branch is gone. `--abandon` always asks, stops when the branch holds unpushed commits, closes the pull request, withdraws the spec's post (`sync specs --withdraw`), removes the worktree and branch and asks whether to close the issue as not planned. `--dry-run` writes nothing, local git included.
808
+ - **`holocron close work <issue> [--wait [--timeout <minutes>]] [--abandon] [--keep-worktree] [--pr <number>] [--dry-run] [--yes]`** โ€” the end of a piece of work (spec `tool-work-commands`, part 6). It never merges. For an open pull request it asks whether the required checks are green through the optional `Source.getPullRequestChecks` (with `--wait`, polling until green or red or `--timeout` minutes, default 30): the `ci / Required checks` aggregate where the repo posts one, and where `ci.aggregate` is `none` each required check itself (the list is the live ruleset's required contexts, else the config's; an optional check never blocks and a failure of one is listed; a required check that has not posted keeps the wait going until the timeout), stops on anything but green naming the failing checks, and on green asks, marks the pull request ready (`Source.markReady`), adds the area labels through `update work` and takes closed blockers off the issue. Run again after the merge it removes the worktree and the local branch (never forced; `--keep-worktree` leaves them) and checks the remote branch is gone. `--abandon` always asks, stops when the branch holds unpushed commits, closes the pull request, withdraws the spec's post (`sync specs --withdraw`), removes the worktree and branch and asks whether to close the issue as not planned. `--dry-run` writes nothing, local git included.
809
809
 
810
810
  ## Syncing tooling
811
811