From 1b22c2ad2a5bffd1e6effbbbb4657912ec543fab Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 11:34:53 +0200 Subject: [PATCH 1/6] feat: add changesets release flow Port the markdown-regex versioning loop onto npm and GitHub Packages: changeset fragments, a Version packages PR, tag, GitHub Release, then the existing publish workflow. --- .changeset/README.md | 9 ++ .changeset/config.json | 11 ++ .github/workflows/add-bot-changeset.yml | 64 ++++++++++++ .github/workflows/add-changeset.yml | 119 +++++++++++++++++++++ .github/workflows/changesets.yml | 64 ++++++++++++ scripts/add-bot-changeset.sh | 132 ++++++++++++++++++++++++ 6 files changed, 399 insertions(+) create mode 100644 .changeset/README.md create mode 100644 .changeset/config.json create mode 100644 .github/workflows/add-bot-changeset.yml create mode 100644 .github/workflows/add-changeset.yml create mode 100644 .github/workflows/changesets.yml create mode 100644 scripts/add-bot-changeset.sh diff --git a/.changeset/README.md b/.changeset/README.md new file mode 100644 index 0000000..a0e1f94 --- /dev/null +++ b/.changeset/README.md @@ -0,0 +1,9 @@ +# Changesets + +This repo uses [Changesets](https://github.com/changesets/changesets) for versioning and publishing. + +- Config: `config.json`. One public package, `@llazyemail/template-runtime-display`. +- Add a fragment: `npm run changeset` (or the **Add changeset** GitHub Action). Renovate and Dependabot dependency PRs get a patch fragment automatically from `add-bot-changeset.yml`. +- On push to `main`, `changesets.yml` opens a **Version packages** PR while fragments are pending. +- When that PR merges (no fragments left), the same workflow runs `changeset git-tag`, pushes the `@llazyemail/template-runtime-display@` tag, creates the GitHub Release from `CHANGELOG.md`, and dispatches `publish.yml` for that tag. +- `publish.yml` does the actual `npm publish` to GitHub Packages. Releases created by `GITHUB_TOKEN` do not fire `release: published`, which is why the workflow is dispatched explicitly. diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..2be13d4 --- /dev/null +++ b/.changeset/config.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", + "changelog": "@changesets/cli/changelog", + "commit": false, + "fixed": [], + "linked": [], + "access": "public", + "baseBranch": "main", + "updateInternalDependencies": "patch", + "ignore": [] +} diff --git a/.github/workflows/add-bot-changeset.yml b/.github/workflows/add-bot-changeset.yml new file mode 100644 index 0000000..6f89389 --- /dev/null +++ b/.github/workflows/add-bot-changeset.yml @@ -0,0 +1,64 @@ +# Add a patch changeset to Renovate / Dependabot dependency PRs so +# changesets.yml can open a Version packages PR when they merge. +# Tooling-only PRs (packageManager bumps, GitHub Actions) are skipped. +# If Renovate later rebases and drops the file, this workflow writes it again. + +name: Add changeset for bot dependency PRs + +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + paths: + - "package.json" + - "package-lock.json" + +permissions: + contents: write + pull-requests: write + +concurrency: + group: add-bot-changeset-${{ github.event.pull_request.head.ref }} + cancel-in-progress: true + +jobs: + add-changeset: + name: Add patch changeset + if: > + github.event.pull_request.head.repo.full_name == github.repository && + ( + github.event.pull_request.user.login == 'renovate[bot]' || + github.event.pull_request.user.login == 'dependabot[bot]' + ) + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ github.head_ref }} + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Fetch the PR base + run: git fetch origin "${{ github.base_ref }}" --depth=1 + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Write and commit a patch changeset if needed + env: + BASE_REF: origin/${{ github.base_ref }} + TITLE: ${{ github.event.pull_request.title }} + PR_NUMBER: ${{ github.event.pull_request.number }} + COMMIT: "1" + run: bash scripts/add-bot-changeset.sh + + - name: Push + run: | + remote_ref="origin/${{ github.head_ref }}" + if git rev-parse "$remote_ref" >/dev/null 2>&1 && [ "$(git rev-parse HEAD)" = "$(git rev-parse "$remote_ref")" ]; then + echo "No new commit to push." + else + git push origin "HEAD:${{ github.head_ref }}" + fi diff --git a/.github/workflows/add-changeset.yml b/.github/workflows/add-changeset.yml new file mode 100644 index 0000000..7ba5129 --- /dev/null +++ b/.github/workflows/add-changeset.yml @@ -0,0 +1,119 @@ +# Add a Changeset from the Actions UI. +# +# Writes a changeset, commits it, and opens a pull request. +# Merging that PR triggers "Version packages", which opens the Version PR. +# Merging the Version Packages PR tags the release, creates the GitHub Release, +# and dispatches publish.yml (GitHub Packages). + +name: Add changeset + +on: + workflow_dispatch: + inputs: + bump: + description: Semver bump + required: true + type: choice + options: + - patch + - minor + - major + default: minor + summary: + description: User-facing summary (one or more lines) + required: true + type: string + branch_prefix: + description: Branch name prefix + required: false + type: string + default: changeset + +permissions: + contents: write + pull-requests: write + +concurrency: + group: add-changeset + cancel-in-progress: false + +jobs: + add-changeset: + name: Create changeset PR + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Configure git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Write changeset file + id: changeset + env: + BUMP: ${{ inputs.bump }} + SUMMARY: ${{ inputs.summary }} + run: | + set -euo pipefail + mkdir -p .changeset + id=$(date -u +%Y%m%d%H%M%S)-${BUMP} + file=".changeset/${id}.md" + { + echo "---" + echo "\"@llazyemail/template-runtime-display\": ${BUMP}" + echo "---" + echo "" + printf '%s\n' "$SUMMARY" + echo "" + } > "$file" + echo "file=$file" >> "$GITHUB_OUTPUT" + echo "id=$id" >> "$GITHUB_OUTPUT" + echo "Wrote $file:" + cat "$file" + + - name: Commit and open pull request + env: + BUMP: ${{ inputs.bump }} + SUMMARY: ${{ inputs.summary }} + BRANCH_PREFIX: ${{ inputs.branch_prefix }} + FILE: ${{ steps.changeset.outputs.file }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + set -euo pipefail + branch="${BRANCH_PREFIX}/${BUMP}-$(date -u +%Y%m%d%H%M%S)" + git checkout -b "$branch" + git add "$FILE" + git commit -m "chore: add ${BUMP} changeset + + ${SUMMARY}" + git push -u origin "$branch" + + pr_url=$(gh pr create \ + --title "chore: add ${BUMP} changeset" \ + --body "$(cat <> "$GITHUB_STEP_SUMMARY" diff --git a/scripts/add-bot-changeset.sh b/scripts/add-bot-changeset.sh new file mode 100644 index 0000000..bb02645 --- /dev/null +++ b/scripts/add-bot-changeset.sh @@ -0,0 +1,132 @@ +#!/usr/bin/env bash +# Add a patch changeset for a Renovate or Dependabot dependency PR when +# the branch does not already have one. Exit 0 when there is nothing to do. +set -euo pipefail + +BASE_REF="${BASE_REF:-origin/main}" +TITLE="${TITLE:-Dependency update}" +PR_NUMBER="${PR_NUMBER:-}" +COMMIT="${COMMIT:-0}" +PACKAGE="@llazyemail/template-runtime-display" + +if ! git rev-parse --verify "$BASE_REF" >/dev/null 2>&1; then + echo "Base ref $BASE_REF is missing; fetch it first." >&2 + exit 1 +fi + +# New changeset fragments on this branch (ignore the folder docs / config). +existing="$(git diff --name-only --diff-filter=A "${BASE_REF}...HEAD" -- .changeset \ + | grep -E '\.md$' \ + | grep -vE '(^|/)README\.md$' \ + || true)" +if [ -n "$existing" ]; then + echo "PR already has a changeset:" + printf '%s\n' "$existing" + exit 0 +fi + +changed="$(git diff --name-only "${BASE_REF}...HEAD")" +if ! printf '%s\n' "$changed" | grep -qE '(^|/)package\.json$|(^|/)package-lock\.json$'; then + echo "No package.json or package-lock.json changes; skipping." + exit 0 +fi + +# Skip packageManager-only PRs. Lockfile-only dependency bumps still get a changeset. +only_package_manager="$(python3 - "$BASE_REF" << 'PY' +import json, subprocess, sys + +base = sys.argv[1] +names = subprocess.check_output( + ["git", "diff", "--name-only", f"{base}...HEAD"], text=True +).splitlines() + +pkg_files = [n for n in names if n.endswith("package.json")] +lock_files = [n for n in names if n.endswith("package-lock.json")] +dep_keys = { + "dependencies", + "devDependencies", + "peerDependencies", + "optionalDependencies", + "overrides", +} + +def parse(path, ref): + try: + raw = subprocess.check_output(["git", "show", f"{ref}:{path}"], text=True) + except subprocess.CalledProcessError: + return {} + return json.loads(raw) + +dep_changed = False +only_pm = True +saw_pkg = False +for path in pkg_files: + saw_pkg = True + old = parse(path, base) + new = parse(path, "HEAD") + keys = set(old) | set(new) + for key in keys: + if old.get(key) == new.get(key): + continue + if key == "packageManager": + continue + if key in dep_keys: + dep_changed = True + only_pm = False + else: + only_pm = False + +if not saw_pkg and lock_files: + only_pm = False + dep_changed = True + +print("yes" if (saw_pkg and only_pm and not dep_changed) else "no") +PY +)" + +if [ "$only_package_manager" = "yes" ]; then + echo "Only packageManager changed; skipping changeset." + exit 0 +fi + +mkdir -p .changeset +if [ -n "$PR_NUMBER" ]; then + id="renovate-pr-${PR_NUMBER}" + summary="${TITLE} (#${PR_NUMBER})" +else + id="renovate-$(date -u +%Y%m%d%H%M%S)" + summary="$TITLE" +fi +file=".changeset/${id}.md" + +if [ -e "$file" ]; then + echo "$file already exists; skipping." + exit 0 +fi + +{ + echo "---" + echo "\"${PACKAGE}\", patch" + echo "---" + echo "" + printf '%s\n' "$summary" + echo "" +} > "$file" + +echo "Wrote $file:" +cat "$file" + +if [ "$COMMIT" != "1" ]; then + exit 0 +fi + +git add "$file" +if git diff --cached --quiet; then + echo "Nothing to commit." + exit 0 +fi + +git commit -m "chore: add patch changeset for dependency update + +${summary}" +echo "Committed $file" From 41d449e6ffb0fb2531de207c31d6a628912d1136 Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 11:35:10 +0200 Subject: [PATCH 2/6] chore: wire changeset scripts and document the release loop --- .github/workflows/publish.yml | 7 +++++-- package.json | 6 +++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5dd385d..cd4c17f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,10 @@ # Publish @llazyemail/template-runtime-display to GitHub Packages. # -# Runs when a GitHub Release is published, and when someone starts the -# workflow by hand. A manual run publishes unless "Pack only" is checked. +# Runs when a GitHub Release is published, when Version packages dispatches +# this workflow for a new tag, and when someone starts the workflow by hand. +# A manual run publishes unless "Pack only" is checked. +# Releases created with GITHUB_TOKEN do not fire release: published, so +# changesets.yml dispatches this workflow for the tag. # GITHUB_TOKEN is provided by Actions. The package scope must stay @llazyemail. name: Publish to GitHub Packages diff --git a/package.json b/package.json index 831e212..c62312e 100644 --- a/package.json +++ b/package.json @@ -111,12 +111,16 @@ "check": "npm run format:check && npm run lint && npm run typecheck && npm run build && npm test && npm run smoke && npm run publint", "prepublishOnly": "npm run check", "demo": "npm run build && node dist/cli.js dev examples/inspect-demo.mjs", - "inspect": "node dist/cli.js inspect" + "inspect": "node dist/cli.js inspect", + "changeset": "changeset", + "version-packages": "changeset version", + "release": "changeset publish" }, "engines": { "node": ">=24" }, "devDependencies": { + "@changesets/cli": "^3.0.3", "@eslint/js": "^10.0.1", "@types/node": "^26.6.3", "@vitest/coverage-v8": "^5.0.1", From 64d347772f25c36f72d255a91db7b147d780f94b Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 11:35:39 +0200 Subject: [PATCH 3/6] docs: describe the changesets release loop in AGENTS.md --- AGENTS.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 9ba62eb..74b7295 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,8 +30,12 @@ npm run generate # build, render a letter, print explain(), write generate npm run publint # export and types check; requires dist/ npm run smoke # load the ESM, CJS, and IIFE builds; requires dist/ npm run check # format, lint, typecheck, build, test, smoke, publint +npm run changeset # write a .changeset fragment (or use the Add changeset workflow) +npm run version-packages # consume fragments; usually via changesets.yml on main ``` +Renovate and Dependabot PRs that change `package.json` or `package-lock.json` get a patch changeset from `add-bot-changeset.yml`. Do not add one by hand unless the workflow skipped the PR (`packageManager` bumps and GitHub Actions-only updates are skipped on purpose). + ## Hard rules for AI agents These two rules are non-negotiable. Fail the task if either is skipped. @@ -92,8 +96,13 @@ test/polish.test.ts inspector sections, trace JSON, --json, /trace.json, wit test/cli.test.ts CLI, child process and dev server spec (fixtures in test/fixtures) test/write.test.ts writes a rendered letter through markup-generator and reads it back scripts/generate.mjs prints explain() and writes generated/letter.html +scripts/add-bot-changeset.sh patch fragment for Renovate / Dependabot PRs +.changeset/ changeset fragments and config .github/workflows/ci.yml -.github/workflows/publish.yml GitHub Packages on release, or a manual run +.github/workflows/add-changeset.yml manual fragment PR +.github/workflows/add-bot-changeset.yml patch fragment on bot dependency PRs +.github/workflows/changesets.yml Version packages PR, then tag + Release +.github/workflows/publish.yml GitHub Packages on release, dispatch, or a manual run llms.txt short index for agents llms-full.txt runtime contract and fragment props tsup.config.ts ESM + CJS + IIFE, dts, sourcemaps @@ -177,5 +186,5 @@ Use it to render a whole HTML email, to run a batch of templates that share one - Node: `engines.node` is `>=24`. CI runs on Node 24 and newer (currently 24 and 26). - Do not lower coverage thresholds or `noUncheckedIndexedAccess`. - Docs: extend or annotate outdated guidance; do not delete existing docs content. -- Release: GitHub Release (or manual `publish.yml`) publishes to GitHub Packages under `@llazyemail`. -- Workflows that run `npm ci` (CI, ESLint, Generate, Publish) configure `https://npm.pkg.github.com` for the `@llazyemail` scope and pass `NODE_AUTH_TOKEN: secrets.GITHUB_TOKEN` with `packages: read`. Keep that in any new workflow that installs dependencies. +- Release: add a changeset (`npm run changeset` or the Add changeset workflow). Push to `main` opens a Version packages PR. Merging that PR tags `@llazyemail/template-runtime-display@`, creates the GitHub Release, and dispatches `publish.yml` to GitHub Packages under `@llazyemail`. +- Workflows that run `npm ci` (CI, ESLint, Generate, Publish, Version packages) configure `https://npm.pkg.github.com` for the `@llazyemail` scope and pass `NODE_AUTH_TOKEN: secrets.GITHUB_TOKEN` with `packages: read`. Keep that in any new workflow that installs dependencies. From 3d32fac4e05a98b41ab0f7e17f88ed2c37ac0082 Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 09:36:06 +0000 Subject: [PATCH 4/6] chore: lock @changesets/cli Add the lockfile entries for the changesets release scripts. --- package-lock.json | 512 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 443 insertions(+), 69 deletions(-) diff --git a/package-lock.json b/package-lock.json index 33efdaa..6b028bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "template-runtime-display": "dist/cli.js" }, "devDependencies": { + "@changesets/cli": "^3.0.3", "@eslint/js": "^10.0.1", "@types/node": "^26.6.3", "@vitest/coverage-v8": "^5.0.1", @@ -116,6 +117,281 @@ "keyv": "^5.6.0" } }, + "node_modules/@changesets/apply-release-plan": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@changesets/apply-release-plan/-/apply-release-plan-8.2.0.tgz", + "integrity": "sha512-ZtItaDXkswepcTn4U8smOs66iRvsIzqhTLAe3YmMA7rgmqr2DYsIFk83PZP8mbjGRtDQS8FQLskYwle17VLA7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/config": "^4.1.0", + "@changesets/format": "^0.1.3", + "@changesets/git": "^4.0.2", + "@changesets/should-skip-package": "^1.0.1", + "@changesets/types": "^7.1.0", + "import-meta-resolve": "^4.2.0", + "jsonc-parser": "^3.3.1", + "semver": "^7.8.1" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/assemble-release-plan": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@changesets/assemble-release-plan/-/assemble-release-plan-7.1.0.tgz", + "integrity": "sha512-n76HJimMhHsB2ILp4yom0teNOtBBhU1qu5z/ni0+TdB52Ogkh1i1xnBfGPQv2Kd3b6TrPfvzg1M+Wg8Sdh7AgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/errors": "^1.0.0", + "@changesets/get-dependents-graph": "^3.0.1", + "@changesets/should-skip-package": "^1.0.1", + "@changesets/types": "^7.1.0", + "semver": "^7.8.1" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/changelog-git": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@changesets/changelog-git/-/changelog-git-1.0.1.tgz", + "integrity": "sha512-FdS99KzRb4fVUCeMcXcIyUCa6wkUHVyIqFEd1joVERZ+dOVHV77Aq4owRKnfb5LDJ1Ank1ZY+9b0qJG6jGHDIg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/types": "^7.1.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/cli": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@changesets/cli/-/cli-3.1.0.tgz", + "integrity": "sha512-5kiOk7//PkF2M0kdSR/cAlGVSCRH7BGTLjoR3KL/AVUw5/mnT0xFsCh1atajczKbup8tKDnG4UIW2ZpFHn62fw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/apply-release-plan": "^8.2.0", + "@changesets/assemble-release-plan": "^7.1.0", + "@changesets/changelog-git": "^1.0.1", + "@changesets/config": "^4.1.0", + "@changesets/errors": "^1.0.0", + "@changesets/get-dependents-graph": "^3.0.1", + "@changesets/git": "^4.0.2", + "@changesets/pre": "^3.0.1", + "@changesets/read": "^1.1.0", + "@changesets/should-skip-package": "^1.0.1", + "@changesets/types": "^7.1.0", + "@changesets/write": "^1.1.0", + "@clack/prompts": "^1.8.1", + "@manypkg/get-packages": "^3.1.0", + "@pnpm/deps.graph-sequencer": "^1100.0.1", + "cac": "^7.0.0", + "import-meta-resolve": "^4.2.0", + "launch-editor": "^2.14.2", + "package-manager-detector": "^1.6.0", + "semver": "^7.8.1", + "tinyexec": "^1.3.1" + }, + "bin": { + "changeset": "bin.js" + }, + "engines": { + "node": "^22.11 || ^24 || >=26", + "npm": ">=10.9.0", + "pnpm": ">=10.0.0", + "yarn": ">=4.5.2" + } + }, + "node_modules/@changesets/config": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@changesets/config/-/config-4.1.0.tgz", + "integrity": "sha512-uS45o0lR2ZcfTIIzFkYJbcYnftXgBuGMcqAf7oQhw+6MUvKh2BkP/Ohqjm01ewmxuCPAtaPjO1w8blyGqVPeEw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/get-dependents-graph": "^3.0.1", + "@changesets/should-skip-package": "^1.0.1", + "@changesets/types": "^7.1.0", + "@manypkg/get-packages": "^3.1.0", + "picomatch": "^4.0.7" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/errors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@changesets/errors/-/errors-1.0.0.tgz", + "integrity": "sha512-ElN/mEzn6zmETgjwf5MclCMa9ef59sAR0lfO8VSYIsiRvbC2FbLB/92EoYw10Sl0kGixxHFiJZUSv7dA+YpR8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/format": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@changesets/format/-/format-0.1.3.tgz", + "integrity": "sha512-zTZrJbfY81+/MsXsey6i3jQjpApz4PqRQ+nouHGDJhCa5sKCExwR9mZFQ/67lMsqZDNy2G2v3wTbzOmZ56EtaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "package-manager-detector": "^1.8.0", + "tinyexec": "^1.3.1" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/get-dependents-graph": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@changesets/get-dependents-graph/-/get-dependents-graph-3.0.1.tgz", + "integrity": "sha512-aQRU6496Fr+oqs1YuPUvCI8IxLksbsNuPCil6D3KyObYNiDh1TH9vGde3KZw+rfseLEJcmFlx6UsOcxi4ZUx2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/types": "^7.1.0", + "semver": "^7.8.1" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/git": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/@changesets/git/-/git-4.0.2.tgz", + "integrity": "sha512-xvmmbY4+qI3VnbBKbMEUECpiIKN6DL1HSDRQgTpm/yyZIuqDrhktSAWfdFwIitPD5psTZG44tNxNUnebkqjIOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/errors": "^1.0.0", + "@changesets/types": "^7.1.0", + "@manypkg/get-packages": "^3.1.0", + "picomatch": "^4.0.7", + "tinyexec": "^1.3.1" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/parse": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@changesets/parse/-/parse-1.1.0.tgz", + "integrity": "sha512-1c3Y1Xjw3z+DZrHuzV6qZjZE1GnyWswOkVWzhB0MkyY6s/WZb7HdckmMMvrFXVj0Fx7gwFsPyZDHa1Gsag+2EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/types": "^7.1.0", + "yaml": "^2.9.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/pre": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@changesets/pre/-/pre-3.0.1.tgz", + "integrity": "sha512-4LXYgB0jPeL/NRLzuDDFW+cTrPmr+9HJM0bV9baRlDvoy5Lt+dTxArg9SMfqeKkWKNMxDNg2RcZI2vw4BJAJLw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/errors": "^1.0.0", + "@changesets/types": "^7.1.0", + "@manypkg/get-packages": "^3.1.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/read": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@changesets/read/-/read-1.1.0.tgz", + "integrity": "sha512-kIvkNosIN/qsv63ik9nlL0tr15faYbQFY/qPG73RpOfhvXQ3E/xdqzvtRQXEtNp0G5JW8KOV+1p7M/xT8fFf1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/git": "^4.0.2", + "@changesets/parse": "^1.1.0", + "@changesets/types": "^7.1.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/should-skip-package": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@changesets/should-skip-package/-/should-skip-package-1.0.1.tgz", + "integrity": "sha512-dWyV0BrdwMYEhUYOa/qqjiXak/G/YKNJJj9bJQXFW9mwar0edWf/IZUmNpFqjKB/lEopbepvrQkXdR6Gx0jgWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/types": "^7.1.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/types": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@changesets/types/-/types-7.1.0.tgz", + "integrity": "sha512-UmpOTft7EIMCJRpLy5oy8rLNXdyhTBMMOaNi5t4B/2zEiluyys3pKc1jBXDE22SXmmwMgKtJ/m2qxgD/w1iJJA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@changesets/write": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@changesets/write/-/write-1.1.0.tgz", + "integrity": "sha512-kB0RCF6bybhXpkCi9Gc9gGksYRN/txIrTt6zJwMxhlcr1lCdZvhJz7QaMVLDaLPHBn+Jnr0CPivPPHfez5kLDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@changesets/format": "^0.1.3", + "@changesets/types": "^7.1.0", + "human-id": "^4.2.2", + "yaml": "^2.9.0" + }, + "engines": { + "node": "^22.11 || ^24 || >=26" + } + }, + "node_modules/@clack/core": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.6.0.tgz", + "integrity": "sha512-4GZynIB2IIe431odxesswvWTCP6orvqd6e2b07b3VFWBQRqUqIHc/EPIZwFoKS692QBp+ooPuXKaJV8g4kXuYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" + } + }, + "node_modules/@clack/prompts": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.9.0.tgz", + "integrity": "sha512-tEj8X2No2A1c9NDnZECxiiJ8TP3vmFlN9tLlLeSaMqVW4tUmVG2R4qpv/eP4zymWxnymYLkLcIYVV0VcWj3RCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@clack/core": "1.6.0", + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^2.0.0" + }, + "engines": { + "node": ">= 20.12.0" + } + }, "node_modules/@emnapi/core": { "version": "2.0.0-beta.2", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", @@ -868,6 +1144,48 @@ "node": ">=22" } }, + "node_modules/@manypkg/find-root": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@manypkg/find-root/-/find-root-3.1.0.tgz", + "integrity": "sha512-BcSqCyKhBVZ5YkSzOiheMCV41kqAFptW6xGqYSTjkVTl9XQpr+pqHhwgGCOHQtjDCv7Is6EFyA14Sm5GVbVABA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@manypkg/tools": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@manypkg/get-packages": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@manypkg/get-packages/-/get-packages-3.1.0.tgz", + "integrity": "sha512-0TbBVyvPrP7xGYBI/cP8UP+yl/z+HtbTttAD7FMAJgn/kXOTwh5/60TsqP9ZYY710forNfyV0N8P/IE/ujGZJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@manypkg/find-root": "^3.1.0", + "@manypkg/tools": "^2.1.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/@manypkg/tools": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@manypkg/tools/-/tools-2.1.2.tgz", + "integrity": "sha512-6QEf6yqFbETdwGITKq57aYoPfX/3K8XFNwsAlx0C1M7o8cb79sv1M3w+tWuWvIcSbNqrLF7OD7YpZMVVz335hQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "jju": "^1.4.0", + "tinyglobby": "^0.2.13", + "yaml": "^2.9.0" + }, + "engines": { + "node": ">=20.0.0" + } + }, "node_modules/@napi-rs/lzma-linux-x64-gnu": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@napi-rs/lzma-linux-x64-gnu/-/lzma-linux-x64-gnu-1.5.1.tgz", @@ -919,6 +1237,19 @@ "url": "https://github.com/sponsors/oxc-project" } }, + "node_modules/@pnpm/deps.graph-sequencer": { + "version": "1100.0.1", + "resolved": "https://registry.npmjs.org/@pnpm/deps.graph-sequencer/-/deps.graph-sequencer-1100.0.1.tgz", + "integrity": "sha512-pOr5+q1fLYKwFN3LAJuGZEnfXDcQ73zqgDHMtGy+K+uIoUqyY+6MeDCWFwfu+4EFuq76I5EPFofoNAI+Bmmq4A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=22.13" + }, + "funding": { + "url": "https://opencollective.com/pnpm" + } + }, "node_modules/@publint/pack": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/@publint/pack/-/pack-0.1.7.tgz", @@ -1051,9 +1382,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1072,9 +1400,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1093,9 +1418,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1114,9 +1436,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1135,9 +1454,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1156,9 +1472,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1343,9 +1656,6 @@ "arm" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1360,9 +1670,6 @@ "arm" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1377,9 +1684,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1394,9 +1698,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1411,9 +1712,6 @@ "loong64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1428,9 +1726,6 @@ "loong64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1445,9 +1740,6 @@ "ppc64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1462,9 +1754,6 @@ "ppc64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1479,9 +1768,6 @@ "riscv64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1496,9 +1782,6 @@ "riscv64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -1513,9 +1796,6 @@ "s390x" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1530,9 +1810,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT", "optional": true, "os": [ @@ -1547,9 +1824,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT", "optional": true, "os": [ @@ -2584,6 +2858,33 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-string-truncated-width": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", + "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-string-width": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz", + "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-truncated-width": "^3.0.2" + } + }, + "node_modules/fast-wrap-ansi": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz", + "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -2724,6 +3025,16 @@ "dev": true, "license": "MIT" }, + "node_modules/human-id": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/human-id/-/human-id-4.2.2.tgz", + "integrity": "sha512-Z+8unD6em/MJwyrkWQ2M3wygRGI1+MztbutiNwk1DCuEPXOZRWGjtcMPZYP1exY9iNZMhd7ZOSMQSo9WYtiQRw==", + "dev": true, + "license": "MIT", + "bin": { + "human-id": "dist/cli.js" + } + }, "node_modules/ignore": { "version": "5.3.2", "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", @@ -2734,6 +3045,17 @@ "node": ">= 4" } }, + "node_modules/import-meta-resolve": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", + "integrity": "sha512-Iqv2fzaTQN28s/FwZAoFq0ZSs/7hMAHJVX+w8PZl3cY19Pxk6jFFalxQoIfW2826i/fDLXv8IiEZRIT0lDuWcg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -2784,6 +3106,13 @@ "dev": true, "license": "ISC" }, + "node_modules/jju": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/jju/-/jju-1.4.0.tgz", + "integrity": "sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==", + "dev": true, + "license": "MIT" + }, "node_modules/joycon": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", @@ -2829,6 +3158,13 @@ "dev": true, "license": "MIT" }, + "node_modules/jsonc-parser": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", + "dev": true, + "license": "MIT" + }, "node_modules/keyv": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/keyv/-/keyv-5.6.0.tgz", @@ -2849,6 +3185,17 @@ "node": ">=0.10.0" } }, + "node_modules/launch-editor": { + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/launch-editor/-/launch-editor-2.14.2.tgz", + "integrity": "sha512-NHJEb30MGBCkmZXLZwz25t37QR4aY03ZzPYUJXOJaOa92uWwExI9SBQUuIznBYc1xkD7cJNGX7oc3Nl3sq2kQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.1.1", + "shell-quote": "^1.10.0" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", @@ -3012,9 +3359,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3037,9 +3381,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3062,9 +3403,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3087,9 +3425,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MPL-2.0", "optional": true, "os": [ @@ -3788,6 +4123,29 @@ "node": ">=8" } }, + "node_modules/shell-quote": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz", + "integrity": "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sisteransi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-2.0.0.tgz", + "integrity": "sha512-2WCqLdt12eN6ehLI50S2/ZxoowXU3DD1KVPRyVP0WEsFahrGZZmCdq1K59qjJljMRIDTwx1D9YaRK+hDneBUMg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=20" + } + }, "node_modules/source-map-js": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", @@ -4307,6 +4665,22 @@ "node": ">=0.10.0" } }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", From 1a7c2a90540c1039e18ee40f7e9db13f0caa3518 Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 09:36:10 +0000 Subject: [PATCH 5/6] chore: mark add-bot-changeset.sh executable --- scripts/add-bot-changeset.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 scripts/add-bot-changeset.sh diff --git a/scripts/add-bot-changeset.sh b/scripts/add-bot-changeset.sh old mode 100644 new mode 100755 From 7d7354b65cdaf4befd63086da8cd2fb4968307c3 Mon Sep 17 00:00:00 2001 From: Arthur Tkachenko Date: Sun, 29 Nov 2026 09:47:45 +0000 Subject: [PATCH 6/6] style: format add-bot-changeset workflow Prettier failed CI on the folded if condition. --- .github/workflows/add-bot-changeset.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/add-bot-changeset.yml b/.github/workflows/add-bot-changeset.yml index 6f89389..4d6c9de 100644 --- a/.github/workflows/add-bot-changeset.yml +++ b/.github/workflows/add-bot-changeset.yml @@ -9,8 +9,8 @@ on: pull_request: types: [opened, synchronize, reopened, ready_for_review] paths: - - "package.json" - - "package-lock.json" + - 'package.json' + - 'package-lock.json' permissions: contents: write @@ -51,7 +51,7 @@ jobs: BASE_REF: origin/${{ github.base_ref }} TITLE: ${{ github.event.pull_request.title }} PR_NUMBER: ${{ github.event.pull_request.number }} - COMMIT: "1" + COMMIT: '1' run: bash scripts/add-bot-changeset.sh - name: Push