@icebreakers/monorepo 6.3.2 → 6.4.0

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.
Files changed (27) hide show
  1. package/dist/{baseline-DcdCYIZ_.mjs → baseline-BahTYIy-.mjs} +1 -1
  2. package/dist/{catalog-D2AINq9Q.mjs → catalog-CXITrKhb.mjs} +3 -3
  3. package/dist/cli.mjs +118 -65
  4. package/dist/{commands-C-Epftob.mjs → commands-1ApnhvJF.mjs} +9264 -8177
  5. package/dist/{config-Cq6mvrR_.mjs → config-BmK7bacv.mjs} +3 -3
  6. package/dist/{create-flow-CwhV6HGt.mjs → create-flow-B2sFa_5j.mjs} +3 -3
  7. package/dist/{deps-DI4i5rGv.mjs → deps-BbkQSTqk.mjs} +3 -3
  8. package/dist/{execute-CbG7_PX2.mjs → execute-0NGtp4hR.mjs} +2 -2
  9. package/dist/{execute-GGmuyJ7i.mjs → execute-BdnLU2-t.mjs} +2 -2
  10. package/dist/{format-1YqyTR6b.mjs → format-BcU-hzT_.mjs} +1 -1
  11. package/dist/index.d.mts +253 -88
  12. package/dist/index.mjs +10 -10
  13. package/dist/{inputs-JSfXePTy.mjs → inputs-DCMUM9kz.mjs} +1 -1
  14. package/dist/{npm-BKpeG7BG.mjs → npm-DB-0FHcW.mjs} +1 -1
  15. package/dist/{plan-Cw4YMgeP.mjs → plan-C47MSubl.mjs} +1 -1
  16. package/dist/{run-iA8cKHQQ.mjs → run-5IdtzJJR.mjs} +4 -4
  17. package/dist/{save-DT4WOFrK.mjs → save-cKCfFQrh.mjs} +3 -3
  18. package/dist/{scan-uLFN5vFP.mjs → scan-Diyd5MkZ.mjs} +2 -2
  19. package/dist/{template-drift-rhs1O3_F.mjs → template-drift-C8gMh7d5.mjs} +16 -3
  20. package/dist/tooling-entry.mjs +2 -2
  21. package/dist/{transaction-cclHjAvr.mjs → transaction-B33_Cacq.mjs} +2 -2
  22. package/dist/{tsconfig-gjLATvL9.mjs → tsconfig-B32VPzfD.mjs} +1 -1
  23. package/dist/{vitest-Dd3jZFGV.mjs → vitest-HFe4zq1M.mjs} +1 -1
  24. package/dist/{workspace-tasks-bczz1Msx.mjs → workspace-tasks-xyIJwdmH.mjs} +5 -5
  25. package/package.json +2 -2
  26. package/resources/skills/repoctl/SKILL.md +8 -0
  27. package/resources/skills/repoctl/references/commands.md +30 -2
@@ -1,3 +1,3 @@
1
- import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-gjLATvL9.mjs";
2
- import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-Dd3jZFGV.mjs";
1
+ import { i as loadMonorepoToolingConfig, n as defineTsconfigConfig, t as createMonorepoTsconfig } from "./tsconfig-B32VPzfD.mjs";
2
+ import { a as createMonorepoCommitlintConfig, c as defineCommitlintConfig, i as defineVitestProjectConfig, l as defineEslintConfig, n as createMonorepoVitestProjectConfig, o as createMonorepoEslintConfig, r as defineVitestConfig, s as createMonorepoStylelintConfig, t as createMonorepoVitestConfig, u as defineStylelintConfig } from "./vitest-HFe4zq1M.mjs";
3
3
  export { createMonorepoCommitlintConfig, createMonorepoEslintConfig, createMonorepoStylelintConfig, createMonorepoTsconfig, createMonorepoVitestConfig, createMonorepoVitestProjectConfig, defineCommitlintConfig, defineEslintConfig, defineStylelintConfig, defineTsconfigConfig, defineVitestConfig, defineVitestProjectConfig, loadMonorepoToolingConfig };
@@ -1,5 +1,5 @@
1
- import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-bczz1Msx.mjs";
2
- import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-uLFN5vFP.mjs";
1
+ import { St as localize, at as record, ot as safeFile, pt as stageFileTransaction, rt as hash, st as updateManifest } from "./workspace-tasks-xyIJwdmH.mjs";
2
+ import { a as dependencySections, i as rangesOverlap, n as equivalentRanges, o as matchGroup, r as parseSpecifier } from "./scan-Diyd5MkZ.mjs";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/commands/deps/report.ts
5
5
  function classify(group) {
@@ -931,7 +931,7 @@ function mergeConfigValues(layers, replaceObject) {
931
931
  //#endregion
932
932
  //#region package.json
933
933
  var name = "@icebreakers/monorepo";
934
- var version = "6.3.2";
934
+ var version = "6.4.0";
935
935
  var engines = { "node": "^22.23.4 || ^24.22.1 || >=26.12.1" };
936
936
  var package_default = {
937
937
  name,
@@ -1,4 +1,4 @@
1
- import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-gjLATvL9.mjs";
1
+ import { a as loadToolingSection, o as resolveConfigInput, r as isDefineConfigWrapper } from "./tsconfig-B32VPzfD.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import process from "node:process";
4
4
  import fs from "node:fs";
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-gjLATvL9.mjs";
2
+ import { N as ConfigValidationError, f as loadMonorepoConfigDetails, j as version, u as getRepoctlConfigCandidates } from "./tsconfig-B32VPzfD.mjs";
3
3
  import { createRequire } from "node:module";
4
4
  import gitUrlParse from "git-url-parse";
5
5
  import { simpleGit } from "simple-git";
@@ -1986,16 +1986,16 @@ var knip_exports = /* @__PURE__ */ __exportAll({
1986
1986
  saveKnipBaseline: () => saveKnipBaseline
1987
1987
  });
1988
1988
  async function planKnipCheck(cwd, options = {}) {
1989
- return (await import("./plan-Cw4YMgeP.mjs")).planKnipCheck(cwd, options);
1989
+ return (await import("./plan-C47MSubl.mjs")).planKnipCheck(cwd, options);
1990
1990
  }
1991
1991
  async function runKnipCheck(cwd, options = {}) {
1992
- return (await import("./run-iA8cKHQQ.mjs")).runKnipCheck(cwd, options);
1992
+ return (await import("./run-5IdtzJJR.mjs")).runKnipCheck(cwd, options);
1993
1993
  }
1994
1994
  async function getKnipConfigurationSuggestions(cwd) {
1995
- return (await import("./config-Cq6mvrR_.mjs")).getKnipConfigurationSuggestions(cwd);
1995
+ return (await import("./config-BmK7bacv.mjs")).getKnipConfigurationSuggestions(cwd);
1996
1996
  }
1997
1997
  async function saveKnipBaseline(cwd, report, file) {
1998
- return (await import("./save-DT4WOFrK.mjs")).saveKnipBaseline(cwd, report, file);
1998
+ return (await import("./save-cKCfFQrh.mjs")).saveKnipBaseline(cwd, report, file);
1999
1999
  }
2000
2000
  //#endregion
2001
2001
  //#region src/commands/env-cache/config.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo",
3
3
  "type": "module",
4
- "version": "6.3.2",
4
+ "version": "6.4.0",
5
5
  "description": "Core engine and programmatic APIs for repoctl",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -91,7 +91,7 @@
91
91
  "@babel/parser": "^7.29.9",
92
92
  "@icebreakers/commitlint-config": "4.1.5",
93
93
  "@icebreakers/eslint-config": "8.0.12",
94
- "@icebreakers/monorepo-templates": "3.1.4",
94
+ "@icebreakers/monorepo-templates": "3.2.0",
95
95
  "@icebreakers/stylelint-config": "5.1.5",
96
96
  "@npmcli/config": "10.14.0",
97
97
  "@pnpm/find-workspace-dir": "^1000.1.5",
@@ -56,6 +56,14 @@ pnpm exec repo doctor
56
56
  pnpm exec repo check
57
57
  ```
58
58
 
59
+ ## Preview publication and npm trusted publishing
60
+
61
+ Upgrade to an official npm release of repoctl containing bootstrap, then preview and apply `repo upgrade`. Review and merge `release.yml` before dispatching; both `bootstrap-publish` and `bootstrap-verify` must pin `REPOCTL_BOOTSTRAP_TOOL_VERSION` to the exact published tool version. A source checkout, linked CLI or copied workflow cannot supply an unreleased tool to these isolated jobs.
62
+
63
+ Use the managed `release.yml` workflow's `mode=bootstrap` to publish one public workspace package with an explicit prerelease version and a preview tag (default `alpha`). The workflow's `dry-run` previews first. Inside its frozen GitHub context, `repo release bootstrap --package <exact-name> --version <prerelease> --dry-run --json` exposes the plan; without `--dry-run`, the default stage prepares checked artifacts and does not upload. Each package reuses the same workflow and its own npm Trusted Publisher configuration. Keep the formal package versions, intents and ledger unchanged.
64
+
65
+ `oidc-audit` checks exchange permission; it does not satisfy npm's first successful publish deadline. Recover an accepted upload with `verify-run-id` and its original artifacts, never by rebuilding, uploading again or increasing the version. Read `references/commands.md` before dispatching publication or changing trust settings.
66
+
59
67
  ## Do not
60
68
 
61
69
  - Do not add packages by copying folders.
@@ -186,14 +186,42 @@ Usage:
186
186
  - `pnpm exec repo release ci --mode publish`
187
187
  - `pnpm exec repo release ci --mode publish-unpublished --package <name> --version <version>`
188
188
  - `pnpm exec repo release ci --mode oidc-audit`
189
+ - `pnpm exec repo release ci --mode oidc-audit --package <exact-public-name>`
189
190
 
190
191
  The command uses `GITHUB_TOKEN`, `GITHUB_REPOSITORY`, `GITHUB_API_URL`, and
191
192
  `GITHUB_SHA` to upsert the Release PR, package tags, and GitHub Releases. It
192
193
  consumes `pnpm-publish-summary.json` and is safe to retry.
193
194
 
194
- `oidc-audit` independently checks every versioned public child package using the current GitHub-hosted job's OIDC identity and the official npm registry. It returns safe JSON (`schemaVersion: 1`) with allowlisted identity fields, per-package HTTP status/message and aggregate success. The CLI fails if any exchange fails, but still checks all packages. It does not load release configuration, consume intents, execute quality scripts/hooks, publish, or create tags/Releases. Recovery flags (`source-sha`, `dry-run`, `package`, `version`) are incompatible. The managed workflow has a separate read-only audit job with Node.js 24.22.1, `id-token: write` and installation lifecycle scripts disabled; generated projects need only installed repoctl, while the source workspace builds its tooling closure.
195
+ `oidc-audit` independently checks every versioned public child package using the current GitHub-hosted job's OIDC identity and the official npm registry. Optional `--package <exact-public-name>` (or the workflow's `package` input) selects one package; omit it to audit all public packages. It returns safe JSON (`schemaVersion: 1`) with allowlisted identity fields, per-package HTTP status/message and aggregate success. The CLI fails if any exchange fails, but still checks every selected package. It does not load release configuration, consume intents, execute quality scripts/hooks, publish, or create tags/Releases. Recovery flags (`source-sha`, `dry-run`, `version`) are incompatible. The managed workflow has a separate read-only audit job with Node.js 24.22.1, `id-token: write` and installation lifecycle scripts disabled; generated projects need only installed repoctl, while the source workspace builds its tooling closure.
195
196
 
196
- Use `auditReleaseOidc({ cwd, env?, fetch? })` for the same programmatic report. JWTs, request tokens and exchange tokens are never included or saved. A 404 alone cannot identify expired trust: check npm package settings and repository/workflow/environment matching. If npm explicitly says `Expired`, delete/recreate the configuration and perform the first successful publish within 48 hours under [npm's policy](https://github.blog/changelog/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire/). A successful exchange does not complete that initial publish validation; auditing immediately before publishing narrows that gap.
197
+ Use `auditReleaseOidc({ cwd, packageNames?, env?, fetch? })` for the same programmatic report. JWTs, request tokens and exchange tokens are never included or saved. A 404 alone cannot identify expired trust: check npm package settings and repository/workflow/environment matching. If npm explicitly says `Expired`, delete/recreate the configuration and perform the first successful publish within 48 hours under [npm's policy](https://github.blog/changelog/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire/). A successful exchange does not complete that initial publish validation; auditing immediately before publishing narrows that gap.
198
+
199
+ ## release bootstrap
200
+
201
+ Purpose: publish one real preview through managed `release.yml`, including the first publish required by a new npm Trusted Publisher. The same entrypoint supports new and previously published packages. Only the official npm registry is supported.
202
+
203
+ ```bash
204
+ pnpm exec repo release bootstrap --package @acme/new-library --version 0.1.0-alpha.0 --tag alpha --dry-run --json
205
+ gh workflow run release.yml --ref main -f mode=bootstrap -f package=@acme/new-library -f version=0.1.0-alpha.0 -f tag=alpha -F dry-run=true
206
+ ```
207
+
208
+ Use the actual default branch instead of `main`. The CLI example runs within a frozen GitHub context with a clean checkout at the source commit and matching identity. Dispatch the workflow's dry run from a normal local terminal. The CLI defaults to the `prepare` stage; without `--dry-run`, it builds and checks artifacts without uploading. Remove `dry-run=true` from the workflow dispatch for a real publication. A package selector must be an exact public workspace package name; the version must be an explicit SemVer prerelease. The tag defaults to `alpha`; stable release-line tags and repoctl's reserved nightly/PR snapshot tags are rejected. Do not use this command for a formal release.
209
+
210
+ Preparation archives the frozen default-branch source, changes the preview version only in isolation, builds the dependency closure and checks one tarball. Required internal runtime dependencies must already be available from npm; the publisher never expands the upload to other packages. Formal versions, intents, changelogs, ledger and Git tags stay unchanged, and formal finalize hooks do not run.
211
+
212
+ The workflow separates read-only preparation from the OIDC publisher. Publication first audits trust, then uploads the original checked tarball with provenance. Confirmation checks the version, integrity, preview tag and stable tags; isolated consumption checks public entries, types and npm signatures. npm's initial `latest` promotion from a placeholder to the first real prerelease is recorded separately; an existing stable release must never move.
213
+
214
+ If upload was accepted but confirmation or consumer verification failed, keep the original run and artifact, then dispatch:
215
+
216
+ ```bash
217
+ gh workflow run release.yml --ref main -f mode=bootstrap -f package=@acme/new-library -f version=0.1.0-alpha.0 -f tag=alpha -f verify-run-id=123456789
218
+ ```
219
+
220
+ Recovery restores the original immutable artifact and evidence and repeats only confirmation and consumer checks, without OIDC, a rebuild or an upload. It retains the original failure and later verification results. Never bump the version or repeat an accepted upload as recovery.
221
+
222
+ CLI stages are `--stage prepare|publish|verify`; `--verify-run-id` always selects verification. Package, version and tag must match the original artifact in recovery. `--output` selects the artifact directory and `--out` adds a JSON report file. `--run-id` / `--run-attempt` bind the preparation run. Public APIs are `createBootstrapPlan`, `prepareBootstrap`, `publishBootstrap`, `verifyBootstrapPublication` and `releaseBootstrap`, with public `BootstrapOptions`, `BootstrapSource`, `BootstrapPlan`, `BootstrapManifest` and `BootstrapReport` types. API options use `packageName` instead of the CLI's `--package`.
223
+
224
+ Create the package and its Trusted Publisher through npm's normal flow. `Pending` means the configuration still needs a successful publish before the npm page's deadline; `Expired` requires deleting and recreating it. An audit only proves credential exchange. A successful publish validates only the matching repository, workflow and environment configuration, so publishing through another workflow cannot validate `release.yml`. No long-lived npm token is needed.
197
225
 
198
226
  ## workspace upgrade (alias: ws up)
199
227