@theholocron/cli 5.0.0-alpha.582 → 5.0.0-alpha.583
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 +23 -0
- package/dist/cli.mjs +661 -60
- package/dist/cli.mjs.map +1 -1
- package/dist/{index-bvis4CUm.d.mts → index-B5wGOshm.d.mts} +40 -2
- 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 +7 -7
package/README.md
CHANGED
|
@@ -68,6 +68,15 @@ 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
|
+
|
|
71
80
|
Each workflow's label ends with its real flag in parentheses when it has
|
|
72
81
|
one, and a longer caveat ("use only for a package's very first publish")
|
|
73
82
|
shows as helper text under the highlighted choice rather than bloating the
|
|
@@ -770,6 +779,10 @@ Capability surface behind it (all optional, so providers without the concept omi
|
|
|
770
779
|
- `Notifications.roleMembers(role)`, `addRoleMember(role, memberId)`, `removeRoleMember(role, memberId)`.
|
|
771
780
|
- `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
781
|
- `Notifications.signIn()` returning `{ authorizeUrl, complete }`: the provider-neutral shape of "prove which account you own".
|
|
782
|
+
- `Notifications.sendWithId(channel, message)`, `findMessage(channel, marker)`, `startThread(message, name)`,
|
|
783
|
+
`postToThread(threadId, lines)` and `readThread(threadId)`: post a message and get it back as a `NotificationsPostedMessage`
|
|
784
|
+
(`id`, `channelId`, `threadId?`), find an earlier post by a marker in its text, start a thread on it, and write and read
|
|
785
|
+
the thread. Looking up and then posting is not atomic; a caller serialises its own runs.
|
|
773
786
|
- `Notifications.ensureApplication` returns `{ updated, todo? }`; each `todo` is a step only a person can do (a portal setting
|
|
774
787
|
the API ignores) and is reported as a failure until done.
|
|
775
788
|
|
|
@@ -823,6 +836,16 @@ See the [command pages](https://theholocron.dev/holocron/commands/setup-notifica
|
|
|
823
836
|
provider, a throwing provider is a failing row and the others still run, `--dry-run` calls none, and there is no
|
|
824
837
|
confirmation (like `setup`). Run it with `--cwd <app>` for an app's own config.
|
|
825
838
|
|
|
839
|
+
## Announcing releases
|
|
840
|
+
|
|
841
|
+
- **`holocron sync releases --from <sha> --to <sha> [--tag <tag>] [--channel releases] [--yes]`** — posts one message
|
|
842
|
+
in `#releases` for the public packages whose `version` differs between the two commits (private packages and apps left
|
|
843
|
+
out), ending with a `-# release [<id>]` marker, and a thread on it with a line per package. Idempotent: a rerun finds
|
|
844
|
+
the message by its marker, starts a thread only if it has none and posts only the missing lines. `--dry-run` prints
|
|
845
|
+
the post. Needs a `notifications` provider with `sendWithId`, `findMessage`, `startThread`, `postToThread` and
|
|
846
|
+
`readThread` (Discord); the release workflow's `announce` job runs it. See the
|
|
847
|
+
[command page](../../docs/src/content/docs/commands/sync-releases.mdx).
|
|
848
|
+
|
|
826
849
|
## Syncing issues
|
|
827
850
|
|
|
828
851
|
- **`holocron sync issues --from <a> --to <b> [--since <time>] [--yes]`** — one direction of an issue sync between two
|