@theholocron/cli 5.0.0-alpha.566 → 5.0.0-alpha.568
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 -1
- package/dist/cli.mjs +1310 -680
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-DsyeF_Sy.mjs → config-system-jSUaJQA4.mjs} +18 -5
- package/dist/{index-DUmkzXYB.d.mts → index-ms_9es37.d.mts} +8 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/plugin/capabilities.d.mts +1 -1
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -717,6 +717,7 @@ commands and the config are provider-neutral; Discord is the first provider.
|
|
|
717
717
|
| `holocron doctor wiki` | Does the wiki the config declares exist, and does it match the sources? Rows: `organization is set` (`fern/fern.config.json` against the declared `fernOrg`), `docs site is declared` (the `instances:` url and `custom-domain` of `fern/docs.yml`), `docs site answers` and `custom domain answers` (one unauthenticated GET each: a 404 or 5xx fails, a 401/403 passes as restricted, no answer is a skip), `navigation pages exist` (every `path:` of the navigation is on disk), an `info` row for pages under `docs/wiki` the navigation leaves out, and `published pages` (the site's sitemap lists at least as many pages as the navigation; fewer fails and names the wiki workflow). Reads through the optional `Wiki.inspect()`; never publishes, writes or sends a token. A provider that cannot inspect, or a site that cannot be reached, is a skip. Read-only |
|
|
718
718
|
| `holocron doctor errors` | Does the error tracker have the organization, projects, keys and alert rules the config relies on? Rows: `organization exists`, and for each project a notifications layout's `relay.errors.projects` declares, `project <slug> exists` (a 404 fails), `project <slug> has a key` (a client key, so an SDK has a DSN; none fails) and `project <slug> has an alert rule` (at least one enabled rule watches its issues; none fails). The Comlink relay's integration and rule stay in `doctor notifications`. Reads through the optional `Errors.inspect()` and returns counts only, never a DSN or key. A missing token or `org`, or alert rules the token cannot read, is a skip. Read-only |
|
|
719
719
|
| `holocron doctor workers` | Do the Workers and deployment projects the config declares exist, route and deploy healthily? Declared Workers are the relay Worker of a notifications layout that feeds an error tracker and the reverse proxy of a wiki with a custom domain. Rows per Worker: `<name> Worker is deployed and routed` (the script exists with a route for its host), `has its bindings` (by name, a value is never read) and `latest deployment is healthy` (the newest deployment serves all traffic). Rows per deployment project (the preview project, else one named like the repo): `<project> project exists`, `has its custom domain` (when one is declared) and `latest deployment is healthy` (the newest production deployment is ready; one that errored fails, one still building is information). Reads through the optional `Workers.inspectScript` / `latestDeployment` / `proxyScriptName` and `Deployment.listProjects` / `listDomains` / `latestDeployment`; never deploys or prints a token. A missing token, a 401 or 403, or a provider that cannot read it is a skip. Read-only |
|
|
720
|
+
| `holocron doctor agent` | Is the agent setup safe and complete? The Service Account's token file (private, the user's, in a private directory; a machine with none is a skip, not a failure), `op` installed, that the token reads the `agent` Environment and **cannot** read `local`, `dev`, `ci`, `prod` or `preview`, and the agent tokens the plugins declare that the Environment does not hold yet, with where each is made and what it needs. Names, modes and counts only |
|
|
720
721
|
| `holocron doctor environments` | Do the deployment environments exist? The ones `repo.environments` declares (their reviewers, wait timer and self-review rule are compared too) plus every environment `repo.secrets.environments` names; none declared is an ok. One row. A missing one fails; an extra one is never a problem; no provider with some expected is a skip |
|
|
721
722
|
| `holocron doctor project [--post [channel]]` | Does each board `providers.projects.boards` declares exist and match its template? One row per board, status list, field, view and automation rule; the board's extras and the items `reconcile project` would fix (no status, closed but not done, open blocker but not blocked, blocked without a blocker) are `info` rows, never a failure. A template file that does not read fails, naming the file. Read-only; `--post` shares the failing rows through the `notifications` bot. |
|
|
722
723
|
| `holocron doctor repo` | Do the repository settings `setup` writes match the config? One row per group the config declares: description and homepage, default branch and merge settings, topics, custom properties, team access, branch protection (and, for `strict`, a `repo-ci-pin` row comparing the App `ci / Required checks` is pinned to with the opt-in `ci.pin`; skipped, saying the option is off, when unset); labels and security settings are always checked, plus a `repo-area-labels` row when `repo.labels.areas` is declared (a declared area with no `area:<name>` label fails; an undeclared `area:` label is an `info` note). Read-only. Reads through optional `Source` methods (`getRepoInfo`, `getProperties`, `listLabels`, `listTeamAccess`, `getRulesetDetail`, `getSecurity`); a group that cannot be read is a skip, not a failure |
|
|
@@ -800,6 +801,7 @@ See the [command pages](https://theholocron.dev/holocron/commands/setup-notifica
|
|
|
800
801
|
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.
|
|
801
802
|
- **`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.
|
|
802
803
|
- **`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`.
|
|
804
|
+
- **`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`.
|
|
803
805
|
- **`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`.
|
|
804
806
|
- **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`.
|
|
805
807
|
- **`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.
|
|
@@ -1048,7 +1050,7 @@ the local override exists to exempt.
|
|
|
1048
1050
|
`publish bump-versions`, `publish tag`, `sync github`, `upgrade node`,
|
|
1049
1051
|
`upgrade deps`, `new plugin`, `check token`, `export tokens`, `export requests`, `open requests`, `upload coverage`, `setup notifications`,
|
|
1050
1052
|
`new channel`, `link account`,
|
|
1051
|
-
`sync roles`, `doctor ci`, `doctor dns`, `doctor environments`, `doctor monitoring`, `doctor notifications`, `doctor project`, `doctor repo`, `doctor secrets`
|
|
1053
|
+
`sync roles`, `doctor agent`, `doctor ci`, `doctor dns`, `doctor environments`, `doctor monitoring`, `doctor notifications`, `doctor project`, `doctor repo`, `doctor secrets`
|
|
1052
1054
|
`sync roles`, `reconcile project`, `doctor ci`, `doctor dns`, `doctor environments`, `doctor monitoring`, `doctor notifications`, `doctor repo`, `doctor secrets`
|
|
1053
1055
|
- `src/commands/deep-checks/` — `DEEP_CHECKS`, the registry every `doctor <capability>` is
|
|
1054
1056
|
listed in; the shared row renderer and `declaredVsActual` helper are in `@theholocron/kyber/ui`
|