@theholocron/cli 5.0.0-alpha.452 → 5.0.0-alpha.453

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
@@ -111,7 +111,7 @@ Every command is tagged with how much of a repo it needs:
111
111
  | ------------ | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
112
112
  | `global` | the CLI binary alone | `version`, `clone`, `new repo` / `plugin` / `token` / `github-app`, `upgrade …`, `check token` / `resolved`, `remove token` / `skill`, `list tokens` / `skills`, `publish …`, `install skills`, `update skills`, `run lint commit-msg` |
113
113
  | `repo-aware` | `./holocron.config`, walking up from cwd, no plugins | `run`, `run ci`, `show config`, `sync readme`, `deploy on-release` |
114
- | `workspace` | the `@theholocron/holocron-plugin-*` packages resolvable | `doctor`, `setup`, `sync`, `cleanup branches`, `sync secrets`, `deploy`, `sync github`, `sync issues`, `sync ideas`, `sync tooling`, `export requests` |
114
+ | `workspace` | the `@theholocron/holocron-plugin-*` packages resolvable | `doctor`, `setup`, `sync`, `cleanup branches`, `sync secrets`, `deploy`, `sync github`, `sync issues`, `sync ideas`, `sync tooling`, `export requests`, `upload coverage` |
115
115
 
116
116
  A `workspace` command run from a bare global install (no plugins next to the
117
117
  CLI) fails with one actionable line — install the plugins as devDependencies or
@@ -324,7 +324,7 @@ manifest, not a hand-maintained array:
324
324
 
325
325
  In the repo that holds the reusable workflows (holocron itself) the list is `ci / Required checks` and `DCO`. That is the aggregate
326
326
  check (`ci/workflows/ci.yml`, written by `setup` / `sync` as `.github/workflows/ci.ci.yml`): it waits on
327
- every `{ required: true }` task, the hand-written checks in `extraRequiredChecks` and its `codecov/*` statuses, and its
327
+ every `{ required: true }` task, the hand-written checks in `extraRequiredChecks` and the coverage statuses (the `coverage` provider's required ones, `Coverage.statusContexts()`; `codecov/*` by default when none is loaded), and its
328
328
  job summary lists each of them with a link, failing ones first. `DCO` stays its own required context. In any other
329
329
  repo, which has no `ci` caller yet, the list is:
330
330
 
@@ -352,7 +352,7 @@ The generated ruleset also sets `require_extra_approval_for_unattributed_changes
352
352
  false` — with `required_approving_review_count: 0` and a single maintainer, the
353
353
  GitHub default (`true`) is an unsatisfiable block on any PR with an
354
354
  unverified/unattributed commit. Repository-admin bypass still covers the real
355
- risk. And the `codecov.yml` `holocron setup` writes carries `if_not_found:
355
+ risk. And the `codecov.yml` `holocron setup` writes (made by the `coverage` provider, not by the CLI) carries `if_not_found:
356
356
  success` on every status default, so an infra-only PR (dep bump, config,
357
357
  lockfile — no coverable change) passes instead of hanging on a `codecov/*`
358
358
  required check that never posts. It also ignores `**/*.mdx`, so a docs-only PR that
@@ -411,6 +411,16 @@ past false positive can't permanently block future commits) and sets
411
411
  setup --hooks` / `--no-hooks` override per run. Bypass one push with `git push
412
412
  --no-verify`; bypass one commit with `git commit --no-verify`.
413
413
 
414
+ ### Claude Code settings
415
+
416
+ ```ts
417
+ agent: ["claude", { dcg: true }],
418
+ ```
419
+
420
+ Opt-in, in the same form a provider takes: `agent` is a name, or a name with its options. With `dcg: true`, `holocron setup` and `holocron sync` merge a `PreToolUse` hook for Bash calls into `.claude/settings.json`, so the [destructive command guard](/holocron/skills/destructive-command-guard/) (`dcg`) checks each command before Claude Code runs it. The file already there is read and merged, so a repo's own `permissions` and hooks stay, and a second run changes nothing. A file that is not valid JSON, or whose `hooks` is not an object, fails the step and is left as it is. `holocron probe generated check` fails when the hook is missing. A repo that sets nothing gets no file.
421
+
422
+ Each machine needs the `dcg` binary on its `PATH`. It is not in Homebrew; `./.humans/setup.sh` checks for it in a repo that wires it in and prints the install command, and `./.humans/setup.sh doctor` fails when it is missing.
423
+
414
424
  ### Task scripts
415
425
 
416
426
  `holocron sync` reconciles `package.json#scripts` from the `tasks` manifest
@@ -807,6 +817,7 @@ holocron export tokens # tokens as NAME=value lines in a private .cr
807
817
  holocron export tokens --only HOLOCRON_SENTRY_TOKEN # one token, to the clipboard
808
818
  holocron export requests --dry-run # convert the repo's request collections for each tooling provider that can export, writing nothing
809
819
  holocron export requests --to bruno --yes # write requests/.export/bruno/ (ignored by version control; never inside the source folder)
820
+ holocron upload coverage --uploads '[{"flag":"utils","files":"utils/*/coverage/lcov.info"}]' --allow-empty # upload the coverage reports, one flag per group, through the coverage provider (Codecov: the job's OIDC token, no stored token)
810
821
  holocron export tokens --blank --vendor-names --file --only VERCEL_TOKEN --only HOLOCRON_RELEASE_TOKEN # the stored ones filled, the rest empty
811
822
  holocron new github-app --name "My App - dev" --webhook-url https://<tunnel>/api/webhook --manifest apps/sentinel/github-app.manifest.json # a GitHub App from a manifest (the flow is in @theholocron/dagobah); its id, key and webhook secret to a private .credentials
812
823
  holocron new tunnel --name sentinel-dev --hostname sentinel-dev.example.dev --port 3000 --run # a named tunnel with a stable hostname to a local port
@@ -942,7 +953,7 @@ the local override exists to exempt.
942
953
  - `src/commands/` — `setup`, `sync`, `doctor`, `deploy`,
943
954
  `check monitor`, `list secrets`, `new secret`, `sync secrets`, `publish package`,
944
955
  `publish bump-versions`, `publish tag`, `sync github`, `upgrade node`,
945
- `upgrade deps`, `new plugin`, `check token`, `export tokens`, `export requests`, `setup notifications`,
956
+ `upgrade deps`, `new plugin`, `check token`, `export tokens`, `export requests`, `upload coverage`, `setup notifications`,
946
957
  `new channel`, `link account`,
947
958
  `sync roles`, `doctor ci`, `doctor dns`, `doctor environments`, `doctor monitoring`, `doctor notifications`, `doctor project`, `doctor repo`, `doctor secrets`
948
959
  `sync roles`, `reconcile project`, `doctor ci`, `doctor dns`, `doctor environments`, `doctor monitoring`, `doctor notifications`, `doctor repo`, `doctor secrets`