@theholocron/cli 5.0.0-alpha.582 → 5.0.0-alpha.584

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
@@ -68,6 +68,23 @@ workflow's own options; nothing from a different workflow is ever shown:
68
68
  ? One-time password (2FA), if npm requires it for this publish: › ***
69
69
  ```
70
70
 
71
+ **`--initial` with a stage-only token.** With `HOLOCRON_NPM_TOKEN` (or bare `NPM_TOKEN`) set, `publish package --initial`
72
+ runs no `npm login` and publishes nothing: it stages each new package with `npm stage publish` (npm 11.15 or later; an
73
+ older npm stops the command with the version it needs) and prints one `npm stage approve <id>` line per package. You
74
+ approve each, which asks for 2FA (`--otp <code>` can give the code), or use the package's Staged Packages tab on
75
+ npmjs.com. The token is a stage-only granular token made on npmjs.com (`@theholocron` scope, 2FA bypass off, a short
76
+ expiry); it is read through `resolveValue()` (so a 1Password Environment can hold it), handed to `npm` in the child's
77
+ environment for that run only, never written to an `.npmrc` and never printed. `npm whoami` runs first, so an expired
78
+ token is reported as such (E401). With no token the command behaves as before (web login, direct publish).
79
+
80
+ **`publish approve`** approves what `--initial` staged: `holocron publish approve [--otp <code>] [--yes] [--dry-run]`
81
+ runs `npm stage list`, keeps the pending stages (any status but approved, rejected, published, cancelled or expired) of
82
+ this repository's packages (`--group`, `--exclude-group` and `--package` narrow them as for `publish package`), prints
83
+ one row each, asks once (`--yes` skips it; without a terminal it is required), then runs `npm stage approve <id>` for
84
+ each, with `--otp` when given and otherwise letting npm ask. It uses your own npm login, never `HOLOCRON_NPM_TOKEN`; a
85
+ failed approval is a row and the next still runs, with a non-zero exit. It never stages, publishes or logs in, and
86
+ `--dry-run` approves nothing.
87
+
71
88
  Each workflow's label ends with its real flag in parentheses when it has
72
89
  one, and a longer caveat ("use only for a package's very first publish")
73
90
  shows as helper text under the highlighted choice rather than bloating the
@@ -770,6 +787,10 @@ Capability surface behind it (all optional, so providers without the concept omi
770
787
  - `Notifications.roleMembers(role)`, `addRoleMember(role, memberId)`, `removeRoleMember(role, memberId)`.
771
788
  - `Notifications.checkDelivery({ channel, name, category?, text })`: posts through a channel's webhook, reads the post back and removes it, and says which step fails.
772
789
  - `Notifications.signIn()` returning `{ authorizeUrl, complete }`: the provider-neutral shape of "prove which account you own".
790
+ - `Notifications.sendWithId(channel, message)`, `findMessage(channel, marker)`, `startThread(message, name)`,
791
+ `postToThread(threadId, lines)` and `readThread(threadId)`: post a message and get it back as a `NotificationsPostedMessage`
792
+ (`id`, `channelId`, `threadId?`), find an earlier post by a marker in its text, start a thread on it, and write and read
793
+ the thread. Looking up and then posting is not atomic; a caller serialises its own runs.
773
794
  - `Notifications.ensureApplication` returns `{ updated, todo? }`; each `todo` is a step only a person can do (a portal setting
774
795
  the API ignores) and is reported as a failure until done.
775
796
 
@@ -823,6 +844,16 @@ See the [command pages](https://theholocron.dev/holocron/commands/setup-notifica
823
844
  provider, a throwing provider is a failing row and the others still run, `--dry-run` calls none, and there is no
824
845
  confirmation (like `setup`). Run it with `--cwd <app>` for an app's own config.
825
846
 
847
+ ## Announcing releases
848
+
849
+ - **`holocron sync releases --from <sha> --to <sha> [--tag <tag>] [--channel releases] [--yes]`** — posts one message
850
+ in `#releases` for the public packages whose `version` differs between the two commits (private packages and apps left
851
+ out), ending with a `-# release [<id>]` marker, and a thread on it with a line per package. Idempotent: a rerun finds
852
+ the message by its marker, starts a thread only if it has none and posts only the missing lines. `--dry-run` prints
853
+ the post. Needs a `notifications` provider with `sendWithId`, `findMessage`, `startThread`, `postToThread` and
854
+ `readThread` (Discord); the release workflow's `announce` job runs it. See the
855
+ [command page](../../docs/src/content/docs/commands/sync-releases.mdx).
856
+
826
857
  ## Syncing issues
827
858
 
828
859
  - **`holocron sync issues --from <a> --to <b> [--since <time>] [--yes]`** — one direction of an issue sync between two