@releasekit/notes 0.34.0 → 0.35.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.
@@ -456,6 +456,12 @@ var StandingPrConfigSchema = z.object({
456
456
  )
457
457
  }).optional().describe(
458
458
  "Restrict who can steer the standing PR \u2014 its selection checkboxes, release labels, and merge. Omit to allow anyone with the GitHub permission GitHub itself requires for each action (today\u2019s behavior)."
459
+ ),
460
+ primaryPackages: z.array(z.string()).default([]).describe(
461
+ "Packages that drive releases \u2014 rendered as parent rows in the standing-PR selection list, with their coupled group-mates and changed prerequisites nested beneath, so one parent toggle holds back the whole release unit. Glob patterns or exact names. Empty (default) \u2192 flat per-package list (current behavior)."
462
+ ),
463
+ selection: z.enum(["streamlined", "granular"]).default("streamlined").describe(
464
+ "How the selection list renders when primaryPackages is set. streamlined: one checkbox per primary, coupled members shown read-only in a collapsed pane, and a held-back primary cascades to its unit. granular: every package keeps its own checkbox, nested under its primary, with no cascade. No effect when primaryPackages is empty."
459
465
  )
460
466
  });
461
467
  var CIConfigSchema = z.object({
@@ -470,7 +476,7 @@ var CIConfigSchema = z.object({
470
476
  z.object({
471
477
  enabled: z.boolean().default(true).describe("Whether PR preview comments are posted."),
472
478
  refreshAfterRelease: z.boolean().default(false).describe(
473
- 'After a release completes, replay the preview comment on still-open feeder PRs so their "what would release" estimate is not left stale against the moved baseline. Cosmetic and best-effort \u2014 a failure here never fails the release. Requires the refresh-after-release step in your release workflow.'
479
+ 'After a release completes, replay the preview comment on still-open feeder PRs so their "what would release" estimate is not left stale against the moved baseline. Cosmetic and best-effort \u2014 a failure here never fails the release. Driven automatically in-process after a successful release (both the direct and standing-PR publish paths); the standalone `refresh-after-release` command also performs it for setups that run it as a separate step.'
474
480
  )
475
481
  })
476
482
  ]).default(true).transform(
@@ -966,6 +972,27 @@ var GitHubForge = class {
966
972
  async mergePullRequest(prNumber, method) {
967
973
  await this.octokit.rest.pulls.merge({ ...this.base, pull_number: prNumber, merge_method: method });
968
974
  }
975
+ async createIssue(issue) {
976
+ const { data } = await this.octokit.rest.issues.create({ ...this.base, ...issue });
977
+ return { number: data.number, url: data.html_url };
978
+ }
979
+ async updateIssue(issueNumber, changes) {
980
+ await this.octokit.rest.issues.update({ ...this.base, issue_number: issueNumber, ...changes });
981
+ }
982
+ async findOpenIssueByLabel(label) {
983
+ const iterator = this.octokit.paginate.iterator(this.octokit.rest.issues.listForRepo, {
984
+ ...this.base,
985
+ state: "open",
986
+ labels: label,
987
+ per_page: 100
988
+ });
989
+ for await (const response of iterator) {
990
+ for (const issue of response.data) {
991
+ if (!issue.pull_request) return { number: issue.number, url: issue.html_url };
992
+ }
993
+ }
994
+ return null;
995
+ }
969
996
  async getActorPermission(username) {
970
997
  try {
971
998
  const { data } = await this.octokit.rest.repos.getCollaboratorPermissionLevel({ ...this.base, username });
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createNotesCommand
4
- } from "./chunk-4G6BQOIR.js";
4
+ } from "./chunk-AWGBVBT2.js";
5
5
  import {
6
6
  readPackageVersion
7
7
  } from "./chunk-IC4SXXRM.js";
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  runPipeline,
19
19
  saveAuth,
20
20
  versionOutputToChangelogInput
21
- } from "./chunk-4G6BQOIR.js";
21
+ } from "./chunk-AWGBVBT2.js";
22
22
  import {
23
23
  aggregateToRoot,
24
24
  detectMonorepo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "Release notes and changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -47,31 +47,31 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@anthropic-ai/sdk": "^0.105.0",
50
+ "@anthropic-ai/sdk": "^0.106.0",
51
51
  "@octokit/rest": "^22.0.1",
52
52
  "chalk": "^5.6.2",
53
53
  "commander": "^14.0.3",
54
54
  "ejs": "^4.0.1",
55
55
  "handlebars": "^4.7.9",
56
56
  "jsonc-parser": "^3.3.1",
57
- "liquidjs": "^10.27.0",
57
+ "liquidjs": "^10.27.1",
58
58
  "minimatch": "^10.0.0",
59
- "openai": "^6.44.0",
59
+ "openai": "^6.45.0",
60
60
  "smol-toml": "^1.7.0",
61
61
  "yaml": "^2.9.0",
62
62
  "zod": "^4.4.3"
63
63
  },
64
64
  "devDependencies": {
65
- "@biomejs/biome": "^2.5.0",
65
+ "@biomejs/biome": "^2.5.1",
66
66
  "@types/ejs": "^3.1.5",
67
67
  "@types/node": "^22.20.0",
68
68
  "@vitest/coverage-v8": "^4.1.9",
69
69
  "tsup": "^8.5.1",
70
70
  "typescript": "^5.9.3",
71
71
  "vitest": "^4.1.9",
72
- "@releasekit/config": "0.0.0",
73
- "@releasekit/forge": "0.0.0",
74
72
  "@releasekit/core": "0.0.0",
73
+ "@releasekit/forge": "0.0.0",
74
+ "@releasekit/config": "0.0.0",
75
75
  "@releasekit/git": "0.0.0"
76
76
  },
77
77
  "engines": {