Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
ci(release): adopt changesets and add nightly builds (#274)
Leob3739c685c2e
diff --git a/.changeset/README.md b/.changeset/README.mdnew file mode 100644index 000000000..71f775746--- /dev/null+++ b/.changeset/README.md@@ -0,0 +1,10 @@+# Changesets++Every pull request must commit a changeset. Run `pnpm changeset` for a user-visible change, choose+one package in the Akeru fixed release group, and describe the result in user-facing language. Run+`pnpm changeset --empty` for documentation, tests, refactors, or internal tooling that should not+ship a new product version.++Use `patch` for fixes and compatible refinements, `minor` for new compatible behavior, and `major`+for breaking changes. The four product packages are a fixed release group, so selecting one bumps+all four to the same version.diff --git a/.changeset/clean-release-train.md b/.changeset/clean-release-train.mdnew file mode 100644index 000000000..a845151cc--- /dev/null+++ b/.changeset/clean-release-train.md@@ -0,0 +1,2 @@+---+---diff --git a/.changeset/config.json b/.changeset/config.jsonnew file mode 100644index 000000000..8c6bea8c7--- /dev/null+++ b/.changeset/config.json@@ -0,0 +1,16 @@+{+ "$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",+ "changelog": [+ "@changesets/changelog-github",+ { "repo": "opencoredev/akeru-bot", "disableThanks": true }+ ],+ "commit": false,+ "fixed": [["akeru-bot", "@t3tools/contracts", "@t3tools/desktop", "@t3tools/web"]],+ "linked": [],+ "access": "restricted",+ "baseBranch": "main",+ "ignore": ["@t3tools/marketing", "@t3tools/mobile"],+ "updateInternalDependencies": "patch",+ "bumpVersionsWithWorkspaceProtocolOnly": true,+ "privatePackages": { "version": true, "tag": false }+}diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 67561c0ff..ce338ad6d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -6,6 +6,15 @@ on:pull_request:types: [opened, synchronize, reopened, ready_for_review]workflow_dispatch:+ inputs:+ expected_sha:+ description: Exact version-branch revision to validate+ required: true+ type: string+ expected_pr_number:+ description: Repository-owned Changesets pull request to validate+ required: true+ type: stringconcurrency:group: ci-${{ github.event.pull_request.number || github.ref }}@@ -20,6 +29,28 @@ jobs:steps:- name: Checkoutuses: actions/checkout@v6+ with:+ fetch-depth: 0+ ref: ${{ inputs.expected_sha || github.sha }}++ - name: Authorize version-branch dispatch+ if: ${{ github.event_name == 'workflow_dispatch' }}+ env:+ EXPECTED_SHA: ${{ inputs.expected_sha }}+ GH_TOKEN: ${{ github.token }}+ PR_NUMBER: ${{ inputs.expected_pr_number }}+ run: |+ test -n "$EXPECTED_SHA"+ test -n "$PR_NUMBER"+ head_ref="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.ref')"+ head_sha="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.sha')"+ head_repo="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.repo.full_name')"+ author="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.user.login')"+ test "$head_ref" = changeset-release/main+ test "$head_sha" = "$EXPECTED_SHA"+ test "$head_repo" = "$GITHUB_REPOSITORY"+ test "$author" = 'github-actions[bot]'+ test "$(git rev-parse HEAD)" = "$EXPECTED_SHA"- name: Reject repository-owned PR assetsrun: |@@ -42,6 +73,38 @@ jobs:- name: Install from the committed lockfilerun: vp install --frozen-lockfile+ - name: Protect stable release versions+ if: >-+ ${{ github.event_name == 'pull_request' &&+ !(github.head_ref == 'changeset-release/main' &&+ github.event.pull_request.head.repo.full_name == github.repository &&+ github.event.pull_request.user.login == 'github-actions[bot]') }}+ run: |+ changed=false+ for manifest in apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json; do+ base_version="$(git show "origin/main:$manifest" | node -e "let data=''; process.stdin.on('data', chunk => data += chunk).on('end', () => console.log(JSON.parse(data).version))")"+ head_version="$(node -p "require('./$manifest').version")"+ if test "$base_version" != "$head_version"; then+ printf '%s changes the stable version from %s to %s. Only the repository-owned Changesets version PR may change release versions.\n' "$manifest" "$base_version" "$head_version" >&2+ changed=true+ fi+ done+ test "$changed" = false++ - name: Require a changeset decision+ if: >-+ ${{ github.event_name == 'pull_request' &&+ !(github.head_ref == 'changeset-release/main' &&+ github.event.pull_request.head.repo.full_name == github.repository &&+ github.event.pull_request.user.login == 'github-actions[bot]') }}+ run: |+ changeset_files="$(git diff --name-only --diff-filter=A origin/main...HEAD -- '.changeset/*.md' ':!.changeset/README.md')"+ if test -z "$changeset_files"; then+ printf 'Add a release changeset with `pnpm changeset` or an explicit empty marker with `pnpm changeset --empty`.\n' >&2+ exit 1+ fi+ vp exec changeset status --since=origin/main+- name: Ensure Electron runtime is installedrun: vp run --filter @t3tools/desktop ensure:electrondiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 878ee14c3..6dfbd154b 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,8 +1,10 @@-# Tenki and GitHub-hosted runners build every stable asset before the final job creates the tag and release.+# Tenki and required native runners build stable and nightly desktop releases.-name: Stable release+name: Stable and nightly releaseson:+ schedule:+ - cron: "17 */3 * * *"workflow_dispatch:push:branches: [main]@@ -17,7 +19,7 @@ permissions:contents: writeconcurrency:- group: stable-release+ group: desktop-releasecancel-in-progress: falsejobs:@@ -29,6 +31,7 @@ jobs:publish: ${{ steps.version.outputs.publish }}version: ${{ steps.version.outputs.version }}tag: ${{ steps.version.outputs.tag }}+ channel: ${{ steps.version.outputs.channel }}steps:- name: Checkoutuses: actions/checkout@v6@@ -40,6 +43,9 @@ jobs:shell: bashenv:EVENT_NAME: ${{ github.event_name }}+ GH_TOKEN: ${{ github.token }}+ RUN_ID: ${{ github.run_id }}+ RUN_ATTEMPT: ${{ github.run_attempt }}run: |version="$(node -p "require('./apps/server/package.json').version")"if ! [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then@@ -53,6 +59,17 @@ jobs:exit 1fidone+ if test "$EVENT_NAME" = schedule; then+ latest_tag="$(gh release list --limit 100 --json tagName,isPrerelease,publishedAt --jq '[.[] | select(.isPrerelease and (.tagName | startswith("nightly-v")))] | sort_by(.publishedAt) | last | .tagName // ""')"+ previous_sha="-"+ if test -n "$latest_tag"; then+ git fetch --force origin "refs/tags/$latest_tag:refs/tags/$latest_tag"+ previous_sha="$(git rev-list -n 1 "$latest_tag")"+ fi+ node scripts/nightly-release.ts "$version" "$GITHUB_SHA" "$previous_sha" "$RUN_ID" "$RUN_ATTEMPT"+ printf 'channel=nightly\n' >> "$GITHUB_OUTPUT"+ exit 0+ fiif test "$EVENT_NAME" != workflow_dispatch; thenprevious_version="$(git show "HEAD^:apps/server/package.json" | node -e "let data=''; process.stdin.on('data', chunk => data += chunk).on('end', () => console.log(JSON.parse(data).version))")"for manifest in apps/desktop/package.json apps/web/package.json packages/contracts/package.json; do@@ -72,7 +89,7 @@ jobs:printf 'Stable tag v%s already exists.\n' "$version" >&2exit 1fi- printf 'publish=true\nversion=%s\ntag=v%s\n' "$version" "$version" >> "$GITHUB_OUTPUT"+ printf 'publish=true\nversion=%s\ntag=v%s\nchannel=stable\n' "$version" "$version" >> "$GITHUB_OUTPUT"- name: Setup Vite+if: steps.version.outputs.publish == 'true'@@ -97,6 +114,7 @@ jobs:timeout-minutes: 45env:RELEASE_VERSION: ${{ needs.preflight.outputs.version }}+ RELEASE_CHANNEL: ${{ needs.preflight.outputs.channel }}T3CODE_DESKTOP_UPDATE_REPOSITORY: opencoredev/akeru-botstrategy:fail-fast: false@@ -313,7 +331,7 @@ jobs:- name: Upload desktop assetsuses: actions/upload-artifact@v7with:- name: stable-${{ matrix.platform }}-${{ matrix.arch }}+ name: ${{ needs.preflight.outputs.channel }}-${{ matrix.platform }}-${{ matrix.arch }}path: |release/*!release/builder-debug.yml@@ -321,7 +339,7 @@ jobs:retention-days: 7release:- name: Publish stable release+ name: Publish releaseneeds: [preflight, desktop]if: needs.preflight.outputs.publish == 'true'runs-on: tenki-standard-small-2c-4g@@ -330,16 +348,22 @@ jobs:GH_TOKEN: ${{ github.token }}RELEASE_VERSION: ${{ needs.preflight.outputs.version }}RELEASE_TAG: ${{ needs.preflight.outputs.tag }}+ RELEASE_CHANNEL: ${{ needs.preflight.outputs.channel }}steps:- uses: actions/checkout@v6- uses: actions/download-artifact@v8with:- pattern: stable-*+ pattern: ${{ needs.preflight.outputs.channel }}-*path: releasemerge-multiple: true- name: Verify names and hashesrun: node scripts/verify-release-assets.ts release "$RELEASE_VERSION"- - name: Create stable tag and GitHub Release+ - name: Create stable GitHub Release+ if: env.RELEASE_CHANNEL == 'stable'run: gh release create "$RELEASE_TAG" release/* --target "$GITHUB_SHA" --title "Akeru Bot $RELEASE_TAG" --generate-notes+ - name: Create nightly GitHub Release+ if: env.RELEASE_CHANNEL == 'nightly'+ run: gh release create "$RELEASE_TAG" release/* --target "$GITHUB_SHA" --title "Akeru Bot nightly $RELEASE_VERSION" --prerelease --latest=false --generate-notes- name: Update the next version PR+ if: env.RELEASE_CHANNEL == 'stable'run: gh workflow run version-packages.yml --ref maindiff --git a/.github/workflows/version-packages.yml b/.github/workflows/version-packages.ymlindex b195f173c..616ee2e5c 100644--- a/.github/workflows/version-packages.yml+++ b/.github/workflows/version-packages.yml@@ -1,4 +1,4 @@-# Tegami keeps one reviewable version PR. Publishing starts only after that PR merges.+# Changesets keeps one reviewable version PR. Publishing starts only after that PR merges.name: Version packages@@ -34,8 +34,26 @@ jobs:cache: truerun-install: true- - name: Update version PR+ - name: Update Version Packages PR+ id: changesets+ uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0+ with:+ version: pnpm release:version+ commit: "chore(release): version packages"+ title: "chore(release): version packages"+ createGithubReleases: falseenv:- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: vp run release:version-pr++ - name: Run checks for the updated version branch+ if: steps.changesets.outputs.pullRequestNumber != ''+ env:+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ PR_NUMBER: ${{ steps.changesets.outputs.pullRequestNumber }}+ run: |+ head_ref="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.ref')"+ head_sha="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.sha')"+ head_repo="$(gh api "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" --jq '.head.repo.full_name')"+ test "$head_ref" = changeset-release/main+ test "$head_repo" = "$GITHUB_REPOSITORY"+ gh workflow run ci.yml --ref "$head_ref" -f expected_sha="$head_sha" -f expected_pr_number="$PR_NUMBER"diff --git a/.tegami/publish-lock.yaml b/.tegami/publish-lock.yamldeleted file mode 100644index 48f2784ec..000000000--- a/.tegami/publish-lock.yaml+++ /dev/null@@ -1,59 +0,0 @@-core:changelogs:- - content: "---\npackages:\n group:akeru:\n type: patch\n---\n\n### Changes\n\n- [#193](https://github.com/opencoredev/akeru-bot/pull/193) fix(marketing): connect Grok discovery pages to setup\n- [#194](https://github.com/opencoredev/akeru-bot/pull/194) feat(web): add Read aloud for stored bot replies\n- [#196](https://github.com/opencoredev/akeru-bot/pull/196) fix(marketing): recover downloads from stalled release requests\n- [#197](https://github.com/opencoredev/akeru-bot/pull/197) perf(server): yield between filtered workspace search pages\n- [#198](https://github.com/opencoredev/akeru-bot/pull/198) perf(protocol): make raw event retention opt-in\n- [#201](https://github.com/opencoredev/akeru-bot/pull/201) perf(server): acquire browser attachments only for consuming connectors\n- [#199](https://github.com/opencoredev/akeru-bot/pull/199) perf(server): index projected thread lookups\n- [#204](https://github.com/opencoredev/akeru-bot/pull/204) fix(server): prefer origin for project repository identity\n- [#205](https://github.com/opencoredev/akeru-bot/pull/205) fix(server): bound OpenCode CLI probes and serialize inventory\n- [#207](https://github.com/opencoredev/akeru-bot/pull/207) fix(server): stop Windows terminal processes when closing\n- [#211](https://github.com/opencoredev/akeru-bot/pull/211) fix(server): stop Windows terminal polling from spiking CPU\n- [#219](https://github.com/opencoredev/akeru-bot/pull/219) fix(web): stop highlighter freezes by using Oniguruma WASM\n- [#234](https://github.com/opencoredev/akeru-bot/pull/234) fix(mcp): allow text-only preview snapshots\n- [#236](https://github.com/opencoredev/akeru-bot/pull/236) fix(server): bound session listing and keep a full idle window after turns\n- [#238](https://github.com/opencoredev/akeru-bot/pull/238) fix(web): show bot and group message actions on touch\n- [#249](https://github.com/opencoredev/akeru-bot/pull/249) fix(server): skip disabled provider instances for text generation fallback\n- [#250](https://github.com/opencoredev/akeru-bot/pull/250) fix(server): preserve inline provider secrets on redacted saves\n- [#231](https://github.com/opencoredev/akeru-bot/pull/231) fix(web): copy text over plain HTTP\n- [#244](https://github.com/opencoredev/akeru-bot/pull/244) fix(server): stop overpricing cached Claude tokens\n- [#246](https://github.com/opencoredev/akeru-bot/pull/246) perf(web): stop rendering hidden terminals\n- [#233](https://github.com/opencoredev/akeru-bot/pull/233) fix(web): keep settings inputs focused during IME composition\n- [#206](https://github.com/opencoredev/akeru-bot/pull/206) perf(server): bound terminal history incrementally\n- [#255](https://github.com/opencoredev/akeru-bot/pull/255) perf(web): keep chat markdown mounted while text streams\n- [#230](https://github.com/opencoredev/akeru-bot/pull/230) perf(server): skip full thread loads on projection and ingestion\n- [#209](https://github.com/opencoredev/akeru-bot/pull/209) fix(codex): keep app-server protocol decode current\n- [#226](https://github.com/opencoredev/akeru-bot/pull/226) feat(server): report image dimensions with signed asset URLs\n- [#208](https://github.com/opencoredev/akeru-bot/pull/208) fix(server): isolate remote web session cookies\n- [#227](https://github.com/opencoredev/akeru-bot/pull/227) perf(client): keep latestTurn and checkpoint refs stable while streaming\n- [#164](https://github.com/opencoredev/akeru-bot/pull/164) feat(plugins): add local Executor MCP support\n- [#200](https://github.com/opencoredev/akeru-bot/pull/200) perf(server): share concurrent usage reads and pricing refreshes\n- [#202](https://github.com/opencoredev/akeru-bot/pull/202) fix(web): keep reply playback hooks stable during chat hydration\n- [#203](https://github.com/opencoredev/akeru-bot/pull/203) perf(logging): drain bounded asynchronous writes before desktop exit\n- [#210](https://github.com/opencoredev/akeru-bot/pull/210) fix(server): stop OpenCode child sessions and route their approvals\n- [#256](https://github.com/opencoredev/akeru-bot/pull/256) fix(web): make desktop onboarding resilient\n- [#257](https://github.com/opencoredev/akeru-bot/pull/257) fix(providers): hide disconnected providers\n- [#252](https://github.com/opencoredev/akeru-bot/pull/252) fix(server): auto-reply full-access OpenCode permission asks\n- [#212](https://github.com/opencoredev/akeru-bot/pull/212) fix(opencode): revert from the first removed assistant message\n- [#258](https://github.com/opencoredev/akeru-bot/pull/258) feat(web): add custom bot avatar colors\n- [#213](https://github.com/opencoredev/akeru-bot/pull/213) fix(mobile): preserve drafts after storage read failures\n- [#214](https://github.com/opencoredev/akeru-bot/pull/214) fix(grok): probe health with initialize and allow in-session model changes\n- [#224](https://github.com/opencoredev/akeru-bot/pull/224) fix(grok): encode session/cancel as a real notification and interrupt steers\n- [#228](https://github.com/opencoredev/akeru-bot/pull/228) fix(grok): map Always allow to allow_once when Grok omits allow_always\n- [#225](https://github.com/opencoredev/akeru-bot/pull/225) fix(grok): discover skills with grok inspect and fail workspace probes loudly\n- [#220](https://github.com/opencoredev/akeru-bot/pull/220) fix(server): capture complete turn checkpoints after edits finish\n- [#229](https://github.com/opencoredev/akeru-bot/pull/229) fix(server): keep attachments until commit and allow first-send retry\n- [#215](https://github.com/opencoredev/akeru-bot/pull/215) fix(ssh): keep managed remote server ownership through stop\n- [#216](https://github.com/opencoredev/akeru-bot/pull/216) perf(server): bound orchestration replay and slow-client live buffers\n- [#217](https://github.com/opencoredev/akeru-bot/pull/217) fix(desktop): separate LAN and Tailscale pairing endpoints\n- [#218](https://github.com/opencoredev/akeru-bot/pull/218) feat(web): complete live roster drag for bots and groups\n- [#221](https://github.com/opencoredev/akeru-bot/pull/221) fix(editors): open remote projects in Zed\n- [#222](https://github.com/opencoredev/akeru-bot/pull/222) feat(desktop): complete quit shortcut confirmation modes\n- [#223](https://github.com/opencoredev/akeru-bot/pull/223) fix(desktop): pin preview CDP debugger across webview teardown\n- [#232](https://github.com/opencoredev/akeru-bot/pull/232) fix(desktop): isolate preview shortcuts from the host\n- [#235](https://github.com/opencoredev/akeru-bot/pull/235) fix(desktop): enable context menus in the in-app browser\n- [#237](https://github.com/opencoredev/akeru-bot/pull/237) fix(claude): derive usage and name login or limit errors\n- [#239](https://github.com/opencoredev/akeru-bot/pull/239) perf(server): stream static files and cache hashed build assets\n- [#240](https://github.com/opencoredev/akeru-bot/pull/240) perf(server): drop transient native events from provider logs\n- [#241](https://github.com/opencoredev/akeru-bot/pull/241) fix(threads): keep completed questions closed across clients\n- [#242](https://github.com/opencoredev/akeru-bot/pull/242) perf(client): stop replaying terminal buffers on rollover\n- [#243](https://github.com/opencoredev/akeru-bot/pull/243) feat(web): add provider model bulk visibility toggle\n- [#245](https://github.com/opencoredev/akeru-bot/pull/245) fix: stop favicon requests for private chat-link hosts\n- [#247](https://github.com/opencoredev/akeru-bot/pull/247) fix(server): disable executable tools in Claude metadata generation\n- [#248](https://github.com/opencoredev/akeru-bot/pull/248) perf(web): avoid repeated terminal metadata scans\n- [#251](https://github.com/opencoredev/akeru-bot/pull/251) perf(server): index OpenCode text by message and drop unused tool parts\n- [#253](https://github.com/opencoredev/akeru-bot/pull/253) feat(shared): map text generation models by provider identity\n- [#254](https://github.com/opencoredev/akeru-bot/pull/254) fix(claude): run composer-picked skills as slash commands\n"- filename: stable-release.md- v: 0.0.0-core:packages:- - id: npm:@t3tools/monorepo- updated: false- - id: npm:@t3tools/oxlint-plugin-t3code- updated: false- - id: npm:@t3tools/scripts- updated: false- - id: npm:@t3tools/marketing- updated: false- - changelogIds:- - stable-release.md- id: npm:@t3tools/desktop- updated: true- - changelogIds:- - stable-release.md- id: npm:akeru-bot- updated: true- - changelogIds:- - stable-release.md- id: npm:@t3tools/web- updated: true- - id: npm:akeru-feedback- updated: false- - id: npm:@t3tools/client-runtime- updated: false- - changelogIds:- - stable-release.md- id: npm:@t3tools/contracts- updated: true- - id: npm:effect-acp- updated: false- - id: npm:effect-codex-app-server- updated: false- - id: npm:@t3tools/shared- updated: false- - id: npm:@t3tools/ssh- updated: false- - id: npm:@t3tools/tailscale- updated: false-npm:packages:- - id: npm:@t3tools/monorepo- - id: npm:@t3tools/oxlint-plugin-t3code- - id: npm:@t3tools/scripts- - id: npm:@t3tools/marketing- - id: npm:@t3tools/desktop- - id: npm:akeru-bot- - id: npm:@t3tools/web- - id: npm:akeru-feedback- - id: npm:@t3tools/client-runtime- - id: npm:@t3tools/contracts- - id: npm:effect-acp- - id: npm:effect-codex-app-server- - id: npm:@t3tools/shared- - id: npm:@t3tools/ssh- - id: npm:@t3tools/tailscalediff --git a/AGENTS.md b/AGENTS.mdindex d321c5096..b5901b84d 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -125,6 +125,11 @@ Choose meaningful test data. Use deterministic visual fixtures for repeatable UI## Pull requests- Never make a PR unless the developer explicitly asks you to do so.+- Every contributing change must include a Changesets decision. Run `pnpm changeset` and commit a+ user-facing summary for a shipped change (`patch` for fixes, `minor` for compatible features,+ `major` for breaking changes). Use `pnpm changeset --empty` for docs, tests, refactors, or+ internal-only tooling. Select one product package; the fixed group keeps all four versions in+ sync. The Version Packages PR is exempt because it consumes the pending changesets.- Merge pull requests only after the required `Repository checks` job passes. See [`docs/internals/ci.md`](docs/internals/ci.md) for CI behavior.- Conventional commit titles, plain language: `fix(web): new threads no longer spike CPU`.- Body: the problem in a sentence or two, then how you fixed it. End with the model and harness that did the work.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 28e8fcfec..8dbf5f549 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -52,6 +52,13 @@ If the change depends on motion, timing, transitions, or interaction details, inIf we have to guess what changed, we are much less likely to review it.+Every pull request must also record its release decision. Run `pnpm changeset`, select one of the+Akeru product packages, and write a short user-facing summary. Use `patch` for compatible fixes,+`minor` for compatible features, and `major` only for a breaking change. The product packages ship+as one fixed-version release train, so selecting one is enough. For documentation, tests,+refactors, and internal-only tooling, run `pnpm changeset --empty`. CI rejects pull requests that+omit this decision.+## Discuss Changes FirstIf you are thinking about a non-trivial change, start a discussion first. Issues are reserved for bug reports and the plugin and provider proposal forms.diff --git a/docs/internals/ci.md b/docs/internals/ci.mdindex 28f29bcfe..5503dd27f 100644--- a/docs/internals/ci.md+++ b/docs/internals/ci.md@@ -20,9 +20,12 @@ Issue-label, PR-vouch, and PR-size jobs also use Tenki Linux runners through GitThe repository ruleset requires the `Repository checks` result before a pull request canmerge. Direct pushes to `main` cannot bypass this gate. Release workflows start after the validatedrevision lands on `main`; version packaging is separate from pull-request CI. The version workflow-updates the pull request body after Tegami updates its branch, then dispatches CI for that branch.-This explicit dispatch is required because pushes made with the GitHub Actions token do not start-another pull-request workflow.+uses Changesets to maintain one rolling Version Packages pull request. CI also requires every+ordinary pull request to contain a real or empty changeset, so release intent cannot be lost after+merge. Changesets consumes those files in the version pull request and keeps the four product+package versions synchronized. Only the repository-owned Changesets branch and bot-authored pull+request can bypass the marker check or change those stable versions. Updates to that branch dispatch+CI against the exact pull request head SHA; empty-only changesets do not dispatch a version branch.[`.github/workflows/installer-tests.yml`](../../.github/workflows/installer-tests.yml) runs focusedWindows PowerShell 5.1 tests when the Windows installer changes. It checks checksum rejection,@@ -52,4 +55,10 @@ Unsigned macOS builds still replace Electron's linker-signed stub with a sealedand fail the release if `codesign --verify` fails or the identifier is not `dev.leodoes.akeru`.Complete credentials use the existing Developer ID, notarization, and Azure Trusted Signing paths.+The same workflow runs at minute 17 every three hours for nightly releases. It skips the build when+`main` still points at the commit from the latest successful nightly. Otherwise it builds the same+three desktop targets under a semver prerelease version and creates a GitHub prerelease that cannot+replace the latest stable release. Linux preflight, build, and publication jobs use Tenki; native+macOS and Windows builds remain on the required GitHub-hosted runners.+See the [release smoke runbook](../operations/release.md) for the exact validation path.diff --git a/docs/operations/release.md b/docs/operations/release.mdindex 4df3b6d11..f77934136 100644--- a/docs/operations/release.md+++ b/docs/operations/release.md@@ -1,10 +1,38 @@-# Release smoke runbook+# Release runbook> Do not publish a signed Akeru Bot build until qualified legal counsel approves the current Terms> of Use and Privacy Policy versions in `packages/contracts/src/settings.ts`.> For Akeru Bot maintainers.+## Pull requests and stable releases++Every ordinary pull request commits a release decision. Run `pnpm changeset` for a shipped change,+select one product package, choose `patch`, `minor`, or `major`, and write a concise user-facing+summary. Use `pnpm changeset --empty` for documentation, tests, refactors, and internal tooling.+The four product packages (`akeru-bot`, desktop, web, and contracts) are a fixed group and always+receive the same version. Packages without versions remain outside the release train.++After changes reach `main`, Changesets creates or refreshes one Version Packages pull request. It+combines the pending release levels, updates all four manifests and changelogs, and consumes the+changeset files. Merging this pull request is the deliberate stable release button. That merge+starts the native builds, verifies every artifact, creates the `vX.Y.Z` tag, and creates the stable+GitHub Release. Ordinary feature merges do not release immediately, and this flow does not publish+the `akeru-bot` npm package. CI rejects stable-version edits from every PR except the authenticated,+repository-owned Changesets PR.++## Nightly releases++GitHub Actions checks `main` at minute 17 every three hours. If `main` has not advanced since the+latest successful nightly, the workflow exits without building. Otherwise it creates a semver+prerelease version containing the workflow run, retry number, and commit SHA, then builds the same+macOS arm64, Windows x64, and Linux x64 desktop artifacts. The GitHub Release is marked as a+prerelease and `latest=false`, so installers and update checks that follow the latest stable release+do not switch to nightly builds. Nightlies neither edit committed package versions nor consume+stable changesets. A failed run creates no release; a rerun uses a new collision-safe version.++## Manual smoke build+`.github/workflows/release-smoke.yml` validates release inputs without publishing or releasinganything. Dispatch it from GitHub Actions with a version such as `0.0.0-smoke.0`.@@ -80,5 +108,5 @@ vp run --filter akeru-bot buildnode apps/server/scripts/cli.ts publish --dry-run --app-version 0.0.0-smoke.0 --verbose```-Do not use this smoke workflow as a release procedure. A publishing workflow must be designed and-reviewed separately before Akeru Bot ships a public release.+Do not use the smoke workflow as a release procedure. Merge the Version Packages pull request for+a stable release, or let the scheduled workflow create a nightly.diff --git a/package.json b/package.jsonindex eaba6868f..ea770c1e4 100644--- a/package.json+++ b/package.json@@ -45,9 +45,8 @@"dist:desktop:win:arm64": "node scripts/build-desktop-artifact.ts --platform win --target nsis --arch arm64","dist:desktop:win:x64": "node scripts/build-desktop-artifact.ts --platform win --target nsis --arch x64","release:smoke": "node scripts/release-smoke.ts",- "release:changelog": "node scripts/generate-release-changelog.ts",- "release:version-pr": "node scripts/update-version-pull-request.ts",- "tegami": "node scripts/tegami.ts",+ "changeset": "changeset",+ "release:version": "changeset version","release:verify": "node scripts/verify-release-candidate.ts","release:verify-assets": "node scripts/verify-release-assets.ts","clean": "rm -rf node_modules apps/*/node_modules packages/*/node_modules apps/*/dist apps/*/dist-electron packages/*/dist .vite-plus apps/*/.vite-plus packages/*/.vite-plus",@@ -55,11 +54,12 @@},"devDependencies": {"@babel/plugin-transform-react-jsx": "7.28.6",+ "@changesets/changelog-github": "0.5.2",+ "@changesets/cli": "2.29.7","@effect/tsgo": "catalog:","@oxlint/plugins": "^1.63.0","@types/node": "catalog:","@typescript/native-preview": "catalog:",- "tegami": "1.4.0","vite-plus": "catalog:"},"engines": {diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5d8d1f786..56fc14f3e 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -91,6 +91,12 @@ importers:'@babel/plugin-transform-react-jsx':specifier: 7.28.6version: 7.28.6(@babel/[email protected])+ '@changesets/changelog-github':+ specifier: 0.5.2+ version: 0.5.2+ '@changesets/cli':+ specifier: 2.29.7+ version: 2.29.7(@types/[email protected])'@effect/tsgo':specifier: 'catalog:'version: 0.13.2@@ -103,9 +109,6 @@ importers:'@typescript/native-preview':specifier: 'catalog:'version: 7.0.0-dev.20260604.1- tegami:- specifier: 1.4.0- version: 1.4.0vite-plus:specifier: 'catalog:'version: 0.2.2(@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])@@ -1312,6 +1315,7 @@ packages:'@anush008/[email protected]':resolution: {integrity: sha512-vbKFjlFM15Ljm6HMh2FSiyPq4236xHoe31XMveTMdwqowHf1/UCwySPT331wl/wRWpdHWdQ3eU5ENl5XbXnPQQ==}engines: {node: '>= 10'}+ deprecated: This package has been archived. Please use the official and updated "huggingface/tokenizers" package.'@appium/[email protected]':resolution: {integrity: sha512-9C2o9X/lBEDBUnKfAi3mRo9oG7Z03nmISLwsGkWxIWjMAvBdJD0RRSJMekWVKzfXN3byrI1WlCXTITzN4LAoLw==}@@ -2168,6 +2172,67 @@ packages:resolution: {integrity: sha512-CuNiSqg7+e1cO/GjffyMOm5Tt2jUF9CWHHnvQ/UkqvtkGfHdgwEC0wpmq7fkN3gxwpRnrAN0WzO3vREKmNolMQ==}engines: {node: '>=18'}+ '@changesets/[email protected]':+ resolution: {integrity: sha512-9qPCm/rLx/xoOFXIHGB229+4GOL76S4MC+7tyOuTsR6+1jYlfFDQORdvwR5hDA6y4FL2BPt3qpbcQIS+dW85LA==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-rSDcqdJ9KbVyjpBIuCidhvZNIiVt1XaIYp73ycVQRIA5n/j6wQaEk0ChRLMUQ1vkxZe51PTQ9OIhbg6HQMW45A==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-HeGeDl8HaIGj9fQHo/tv5XKQ2SNEi9+9yl1Bss1jttPqeiASRXhfi0A2wv8yFKCp07kR1gpOI5ge6+CWNm1jPw==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-R7RqWoaksyyKXbKXBTbT4REdy22yH81mcFK6sWtqSanxUCbUi9Uf+6aqxZtDQouIqPdem2W56CdxXgsxdq7FLQ==}+ hasBin: true++ '@changesets/[email protected]':+ resolution: {integrity: sha512-pf0bvD/v6WI2cRlZ6hzpjtZdSlXDXMAJ+Iz7xfFzV4ZxJ8OGGAON+1qYc99ZPrijnt4xp3VGG7eNvAOGS24V1Q==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-ZsS00x6WvmHq3sQv8oCMwL0f/z3wbXCVuSVTJwCnnmbC/iBdNJGFx1EcbMG4PC6sXRyH69liM4A2WKXzn/kRPg==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-+i67Bmhfj9V4KfDeS1+Tz3iF32btKZB2AAx+cYMqDSRFP7r3/ZdGbjCo+c6qkyViN9ygDuBjzageuPGJtKGe5A==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-2K5Om6CrMPm45rtvckfzWo7e9jOVCKLCnXia5eUPaURH7/LWzri7pK1TycdzAuAtehLkW7VPbWLCSExTHmiI6g==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-BXANzRFkX+XcC1q/d27NKvlJ1yf7PSAgi8JG6dt8EfbHFHi4neau7mufcSca5zRhwOL8j9s6EqsxmT+s+/E6Sw==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-OQtR36ZlnuTxKqoW4Sv6x5YIhOmClRd5pWsjZsddYxpWs517R0HkyiefQPIytCVh4ZcC5x9XaG8KTdd5iRQUfg==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-ZDmNc53+dXdWEv7fqIUSgRQOLYoUom5Z40gmLgmATmYR9NbL6FJJHwakcCpzaeCy+1D0m0n7mT4jj2B/MQPl7A==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-D1G4AUYGrBEk8vj8MGwf75k9GpN6XL3wg8i42P2jZZwFLXnlr2Pn7r9yuQNbaMCarP7ZQWNJbV6XLeysAIMhTA==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-qAK/WrqWLNCP22UDdBTMPH5f41elVDlsNyat180A33dWxuUDyNpg6fPi/FyTZwRriVjg0L8gnjJn2F9XAoF0qw==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-rKQcJ+o1nKNgeoYRHKOS07tAMNd3YSN0uHaJOZYjBAgxfV7TUE7JE+z4BzZdQwb5hKaYbayKN5KrYV7ODb2rAA==}++ '@changesets/[email protected]':+ resolution: {integrity: sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==}+'@chat-adapter/[email protected]':resolution: {integrity: sha512-9IS4HF0Jw+Ucsm3f7XaXGCGb22Swb/r6FGaHoSDYxOEraQ88pFH5S7xc8//C+pCnqhX7p8QwLB/dYaNxDnl9pw==}engines: {node: '>=20'}@@ -2202,10 +2267,6 @@ packages:resolution: {integrity: sha512-0Ty/1Gfm+Kb07sXcuESjyKfwEhSy4Ns1AgeEisHb/bDY5fWme0tTeTkU14T1Gmcs17YIjB/teiDe4uaCghbYqQ==}engines: {node: '>= 20.12.0'}- '@clack/[email protected]':- resolution: {integrity: sha512-/kr3UWNtdJfxZtPgDqUOmG2pvwlmcLGheex5yiZKdwbzZJxhV+HMNR9QNmyY5cGwTNV6LrR7Jtp+KjhUAP1qBQ==}- engines: {node: '>= 20.12.0'}-'@clack/[email protected]':resolution: {integrity: sha512-pMN5FcrEw9hUkZA4f+zLlzivQSeQf5dRGJjSUbvVYDLvpKCdQx5OaknvKzgbtXOizhP+SJJJjqEbOe55uKKfAw==}@@ -2213,10 +2274,6 @@ packages:resolution: {integrity: sha512-EYlRokl8szrP9Z25qT5aepMdBjzBvHF9ZEhzIiUBc9guz/T31EqRgvD0QSgZcpE93xiwrr+OkB4nz0BZyF6fSA==}engines: {node: '>= 20.12.0'}- '@clack/[email protected]':- resolution: {integrity: sha512-y7/yvZ2TPAnR9+jnc00klvNNLkJiXFFrQA/hlLCcxA9a2A4zQIOimyFQ9XfwYKiGD1fb5GY8vbKIIgO8d5Tb2A==}- engines: {node: '>= 20.12.0'}-'@cloudflare/[email protected]':resolution: {integrity: sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==}peerDependencies:@@ -3500,6 +3557,15 @@ packages:'@types/node':optional: true+ '@inquirer/[email protected]':+ resolution: {integrity: sha512-RWbSrDiYmO4LbejWY7ttpxczuwQyZLBUyygsA9Nsv95hpzUWwnNTVQmAq3xuh7vNwCp07UTmE5i11XAEExx4RA==}+ engines: {node: '>=18'}+ peerDependencies:+ '@types/node': 24.12.4+ peerDependenciesMeta:+ '@types/node':+ optional: true+'@inquirer/[email protected]':resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==}engines: {node: '>=18'}@@ -3731,6 +3797,12 @@ packages:resolution: {integrity: sha512-9QOtNffcOF/c1seMCDnjckb3R9WHcG34tky+FHpNKKCW0wc/scYLwMtO+ptyGUfMW0/b/n4qRiALlaFHc9Oj7Q==}engines: {node: '>= 10.0.0'}+ '@manypkg/[email protected]':+ resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==}++ '@manypkg/[email protected]':+ resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==}+'@mastra/[email protected]':resolution: {integrity: sha512-aOAuCqU3HN+/yh/APp9hW6BJF9zvxEaqsB9TAylnxObDPLLPY65OVqXTjj2bCqu4UCY+8Z8LO8FfdYag5fFxSw==}engines: {node: '>=22.13.0'}@@ -4951,9 +5023,6 @@ packages:'@types/react':optional: true- '@rainbowatcher/[email protected]':- resolution: {integrity: sha512-EdALJyTDcp2yOxeVw1OJevOF7NZrlWAbVEnOnQBV7YqycVCI0OcpDy6oLUa8vqSvv2F1RmXW7kz1kgYv2A5h/w==}-'@react-grab/[email protected]':resolution: {integrity: sha512-gMDYY2rw6OWajCcDlXSIgs2LC432YJXSb3Lm5yM187uhRgBYddoEVULi36h+IolX3r7jSb3ew7vn9FfI8NSo0A==}hasBin: true@@ -6861,6 +6930,10 @@ packages:resolution: {integrity: sha512-hCv9AqTQ8ycjpSd3upOJd7vFwW1JaoYQ7tpham03GJ1ca8/65rqn0RpaWpItOAd6ylW9wAw6luXYPJIyPFVOww==}+ resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==}engines: {node: '>=8'}@@ -6946,6 +7019,10 @@ packages:resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==}+ resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==}@@ -7163,6 +7240,10 @@ packages:resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}+ resolution: {integrity: sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-dq9AtApgg5PGFtBzPFSBl3HZQjHok5gaQCM6zh2Yk0aSmDCs1CbnVI8/HgASQkNKsWFpseIO9beg5xxpYhbIfA==}engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x || 26.x}@@ -7890,6 +7971,9 @@ packages:resolution: {integrity: sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==}+resolution: {integrity: sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==}@@ -8000,6 +8084,10 @@ packages:resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}+ resolution: {integrity: sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==}engines: {node: '>=8'}@@ -8034,6 +8122,10 @@ packages:resolution: {integrity: sha512-2xMCmOoMrdQIPHdsTawECdNPwlVFB9zGcz3kuhmBO6U3oU+UQjsue0i8ayLKpgBcm+hcXPMVSGUN9d+pvJ6+VQ==}+ resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-7xpNK0EiWjjDFp2nAhHXezE4OUWm7s1zhc/UXXN6hnFFU8dfoPHgV0Hx0RPiCa3ILRpdeh152icc68DGCyXYIw==}@@ -8095,6 +8187,10 @@ packages:resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==}engines: {node: '>=12'}+ resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-KZCpjRyu+oYHLj/UJogfFlOkWhHVkaEI2EOT1U3NDVXUzLoTyPjqwFxwOrlQxsY6jzRyxcz4EacqboGfhEeYrA==}hasBin: true@@ -8352,6 +8448,10 @@ packages:resolution: {integrity: sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==}engines: {node: '>=10.13.0'}+ resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==}+ engines: {node: '>=8.6'}+resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}engines: {node: '>=0.12'}@@ -8869,6 +8969,9 @@ packages:resolution: {integrity: sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==}+ resolution: {integrity: sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==}+resolution: {integrity: sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==}engines: {node: '>= 10.17.0'}@@ -8995,6 +9098,10 @@ packages:resolution: {integrity: sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==}engines: {node: '>=6'}+ resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==}engines: {node: '>=8'}@@ -9212,6 +9319,10 @@ packages:resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==}+ engines: {node: '>=10'}+resolution: {integrity: sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==}engines: {node: '>=18'}@@ -9391,6 +9502,10 @@ packages:resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}engines: {node: '>= 14'}+ resolution: {integrity: sha512-zPGsiS+dWoTZtZ4AtpA9Y+BdSFSNWvnouNlWNoUFyAM6xHOHmdCvqO3k8AIbdamCOv4gUFUVNPf6rJFfc4UiJw==}+ hasBin: true+resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}engines: {node: '>=18.18.0'}@@ -9609,10 +9724,18 @@ packages:resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}engines: {node: '>=18'}+ resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==}engines: {node: '>=8'}@@ -10166,6 +10289,10 @@ packages:resolution: {integrity: sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==}engines: {node: '>=6'}+ resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-J8xewKD/Gk22OZbhpOVSwcs60zhd95ESDwezOFuA3/099925PdHJ7OFHNTGtajL3AlZkykD32HykiMo+BIBI8A==}@@ -10191,6 +10318,9 @@ packages:resolution: {integrity: sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==}+ resolution: {integrity: sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==}+resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==}@@ -10696,6 +10826,10 @@ packages:react-dom:optional: true+ resolution: {integrity: sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ==}engines: {node: '>=10'}@@ -11053,6 +11187,9 @@ packages:resolution: {integrity: sha512-wrAwOeXp1RRMFfQY8Sy7VaGVmPocaLwSFOYCGKSyo8qmJ+/yaafCl5BCA1IQZWqFSRBrKDYFeR9d/VyQzfH/jg==}engines: {node: '>= 6.0'}+ resolution: {integrity: sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==}+resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}@@ -11090,6 +11227,10 @@ packages:resolution: {integrity: sha512-BZOr3nRQHOntUjTrH8+Lh54smKHoHyur8We1V8DSMVrl5A2malOOwuJRnKRDjSnkoeBh4at6BwEnb5I7Jl31wg==}engines: {node: '>=8'}+ resolution: {integrity: sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==}engines: {node: '>=4'}@@ -11110,6 +11251,14 @@ packages:resolution: {integrity: sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==}engines: {node: '>=6'}+ resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==}+ engines: {node: '>=8'}++ resolution: {integrity: sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-I4Prw6ivkd6p8PiYR1tXASOAOBzIJwu0TB7fqaX0c/8c3QAehNYmX57EijyGGGBt3c/BIowGwV03RVBtXvHEVg==}engines: {node: '>=18'}@@ -11153,6 +11302,9 @@ packages:resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==}+ resolution: {integrity: sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==}+resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==}@@ -11207,6 +11359,10 @@ packages:resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==}engines: {node: '>=4'}+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-cbrerZV+6rvdQrrD+iGMcZFEiiSrbv9Tfdkvnusy6y0x0GKBXREFg/Y65GhIfm0tnLntThhzCnfKwp1WRjeCyQ==}engines: {node: '>=14.0.0'}@@ -11243,6 +11399,10 @@ packages:resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==}+ resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}@@ -11330,6 +11490,10 @@ packages:resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==}engines: {node: '>=12'}+ resolution: {integrity: sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==}@@ -11460,6 +11624,11 @@ packages:deprecated: No longer maintained. Please contact the author of the relevant native addon; alternatives are available.hasBin: true+ resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==}+ engines: {node: '>=10.13.0'}+ hasBin: true+resolution: {integrity: sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==}engines: {node: '>=14'}@@ -11577,6 +11746,9 @@ packages:resolution: {integrity: sha512-O9gl3zCl5h5blw1KGUzQKhA5oUXSl8rwUIM5o0S3nCXMliSvy5Dzx7/DJcI+SwgICv+IneSZwhBh1oSyEHA71A==}engines: {node: '>=0.6'}+ resolution: {integrity: sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==}+resolution: {integrity: sha512-lT5yCqEBgfoMYpf3F2xQRK7zEr1rhIIZuceDK6+xRkJQ4NMbHTwXqk4NkwDwQMNqXgG9r9fyHnzwNVs6zV5KRw==}@@ -11854,6 +12026,10 @@ packages:resolution: {integrity: sha512-BNg9EN3DD3GsDXX7Aa8O4p92sryjkmzYYgmgTAc6CA4uGLEDzFfxOxugu21akOxpcXHiEgsYkC6nPsQvLLLmEg==}hasBin: true+ resolution: {integrity: sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==}+ engines: {node: '>=6'}+resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==}@@ -12329,6 +12505,10 @@ packages:resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}+ resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==}engines: {node: '>=20'}@@ -12388,6 +12568,9 @@ packages:resolution: {integrity: sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==}+ resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==}+resolution: {integrity: sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==}engines: {node: '>=6'}@@ -12516,6 +12699,10 @@ packages:resolution: {integrity: sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==}engines: {node: '>=0.10.0'}+ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}+ engines: {node: '>=4'}+resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}engines: {node: '>=18'}@@ -12624,9 +12811,6 @@ packages:resolution: {integrity: sha512-eYE6iEI62Ni1H8oIa7KlDU6uQBtqr4Eajni3wX7rpfXD8ysFx8z0+dri+KWEPWpBsxXfxu58x/0jvTVT1ekOSg==}- resolution: {integrity: sha512-QjoIJuAdsp+iAb1NT1CDn6zvxa7HqmEdJLN2BKW7LXZ8pbga/8tktcZr9bArw7KBdT5+Zj5Y9kreF3gjgrpfKQ==}-resolution: {integrity: sha512-C5tjlC/HCtVUOi3KWVokd4vHVViOmGjtLwIh4MuzPo/nMYTV/p1urt3RnMz2IWXDdKEGJH3k5+KPxtqRsUYGtg==}@@ -12634,6 +12818,10 @@ packages:resolution: {integrity: sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==}engines: {node: '>=6.0.0'}+ resolution: {integrity: sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==}engines: {node: '>=8'}@@ -15145,6 +15333,166 @@ snapshots:dependencies:fontkitten: 1.0.3+ '@changesets/[email protected]':+ dependencies:+ '@changesets/config': 3.1.4+ '@changesets/get-version-range-type': 0.4.0+ '@changesets/git': 3.0.4+ '@changesets/should-skip-package': 0.1.2+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3+ detect-indent: 6.1.0+ fs-extra: 7.0.1+ lodash.startcase: 4.4.0+ outdent: 0.5.0+ prettier: 2.8.8+ resolve-from: 5.0.0+ semver: 7.8.5++ '@changesets/[email protected]':+ dependencies:+ '@changesets/errors': 0.2.0+ '@changesets/get-dependents-graph': 2.1.4+ '@changesets/should-skip-package': 0.1.2+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3+ semver: 7.8.5++ '@changesets/[email protected]':+ dependencies:+ '@changesets/types': 6.1.0++ '@changesets/[email protected]':+ dependencies:+ '@changesets/get-github-info': 0.7.0+ '@changesets/types': 6.1.0+ dotenv: 8.6.0+ transitivePeerDependencies:+ - encoding++ '@changesets/[email protected](@types/[email protected])':+ dependencies:+ '@changesets/apply-release-plan': 7.1.1+ '@changesets/assemble-release-plan': 6.0.10+ '@changesets/changelog-git': 0.2.1+ '@changesets/config': 3.1.4+ '@changesets/errors': 0.2.0+ '@changesets/get-dependents-graph': 2.1.4+ '@changesets/get-release-plan': 4.0.16+ '@changesets/git': 3.0.4+ '@changesets/logger': 0.1.1+ '@changesets/pre': 2.0.2+ '@changesets/read': 0.6.7+ '@changesets/should-skip-package': 0.1.2+ '@changesets/types': 6.1.0+ '@changesets/write': 0.4.0+ '@inquirer/external-editor': 1.0.3(@types/[email protected])+ '@manypkg/get-packages': 1.1.3+ ansi-colors: 4.1.3+ ci-info: 3.9.0+ enquirer: 2.4.1+ fs-extra: 7.0.1+ mri: 1.2.0+ p-limit: 2.3.0+ package-manager-detector: 0.2.11+ picocolors: 1.1.1+ resolve-from: 5.0.0+ semver: 7.8.5+ spawndamnit: 3.0.1+ term-size: 2.2.1+ transitivePeerDependencies:+ - '@types/node'++ '@changesets/[email protected]':+ dependencies:+ '@changesets/errors': 0.2.0+ '@changesets/get-dependents-graph': 2.1.4+ '@changesets/logger': 0.1.1+ '@changesets/should-skip-package': 0.1.2+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3+ fs-extra: 7.0.1+ micromatch: 4.0.8++ '@changesets/[email protected]':+ dependencies:+ extendable-error: 0.1.7++ '@changesets/[email protected]':+ dependencies:+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3+ picocolors: 1.1.1+ semver: 7.8.5++ '@changesets/[email protected]':+ dependencies:+ dataloader: 1.4.0+ node-fetch: 2.7.0+ transitivePeerDependencies:+ - encoding++ '@changesets/[email protected]':+ dependencies:+ '@changesets/assemble-release-plan': 6.0.10+ '@changesets/config': 3.1.4+ '@changesets/pre': 2.0.2+ '@changesets/read': 0.6.7+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3++ '@changesets/[email protected]': {}++ '@changesets/[email protected]':+ dependencies:+ '@changesets/errors': 0.2.0+ '@manypkg/get-packages': 1.1.3+ is-subdir: 1.2.0+ micromatch: 4.0.8+ spawndamnit: 3.0.1++ '@changesets/[email protected]':+ dependencies:+ picocolors: 1.1.1++ '@changesets/[email protected]':+ dependencies:+ '@changesets/types': 6.1.0+ js-yaml: 4.2.0++ '@changesets/[email protected]':+ dependencies:+ '@changesets/errors': 0.2.0+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3+ fs-extra: 7.0.1++ '@changesets/[email protected]':+ dependencies:+ '@changesets/git': 3.0.4+ '@changesets/logger': 0.1.1+ '@changesets/parse': 0.4.3+ '@changesets/types': 6.1.0+ fs-extra: 7.0.1+ p-filter: 2.1.0+ picocolors: 1.1.1++ '@changesets/[email protected]':+ dependencies:+ '@changesets/types': 6.1.0+ '@manypkg/get-packages': 1.1.3++ '@changesets/[email protected]': {}++ '@changesets/[email protected]': {}++ '@changesets/[email protected]':+ dependencies:+ '@changesets/types': 6.1.0+ fs-extra: 7.0.1+ human-id: 4.2.1+ prettier: 2.8.8+'@chat-adapter/[email protected]([email protected]([email protected]))([email protected])([email protected])([email protected])':dependencies:@@ -15225,11 +15573,6 @@ snapshots:fast-wrap-ansi: 0.2.2sisteransi: 1.0.5- '@clack/[email protected]':- dependencies:- fast-wrap-ansi: 0.2.2- sisteransi: 1.0.5-'@clack/[email protected]':dependencies:'@clack/core': 0.5.0@@ -15243,13 +15586,6 @@ snapshots:fast-wrap-ansi: 0.2.2sisteransi: 1.0.5- '@clack/[email protected]':- dependencies:- '@clack/core': 1.4.3- fast-string-width: 3.0.2- fast-wrap-ansi: 0.2.2- sisteransi: 1.0.5-dependencies:unenv: 2.0.0-rc.24@@ -16805,6 +17141,13 @@ snapshots:optionalDependencies:'@types/node': 24.12.4+ '@inquirer/[email protected](@types/[email protected])':+ dependencies:+ chardet: 2.2.0+ iconv-lite: 0.7.2+ optionalDependencies:+ '@types/node': 24.12.4+'@inquirer/[email protected]': {}'@inquirer/[email protected](@types/[email protected])':@@ -17140,6 +17483,22 @@ snapshots:transitivePeerDependencies:- supports-color+ '@manypkg/[email protected]':+ dependencies:+ '@babel/runtime': 7.29.7+ '@types/node': 24.12.4+ find-up: 4.1.0+ fs-extra: 8.1.0++ '@manypkg/[email protected]':+ dependencies:+ '@babel/runtime': 7.29.7+ '@changesets/types': 4.1.0+ '@manypkg/find-root': 1.1.0+ fs-extra: 8.1.0+ globby: 11.1.0+ read-yaml-file: 1.1.0+'@mastra/[email protected](@mastra/[email protected](@bufbuild/[email protected])(@grpc/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])([email protected])':dependencies:'@mastra/core': 1.63.0(@bufbuild/[email protected])(@grpc/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])@@ -17239,10 +17598,10 @@ snapshots:lru-cache: 11.5.1p-map: 7.0.6p-retry: 7.1.1- picomatch: 4.0.4+ picomatch: 4.0.7posthog-node: 5.51.2tokenx: 1.6.0- ws: 8.21.0([email protected])([email protected])+ ws: 8.21.3([email protected])([email protected])xxhash-wasm: 1.1.0zod: 4.4.3transitivePeerDependencies:@@ -18705,8 +19064,6 @@ snapshots:'@types/react': 19.2.16optional: true- '@rainbowatcher/[email protected]': {}-'@react-grab/[email protected]':dependencies:agent-install: 0.0.5@@ -20605,6 +20962,8 @@ snapshots:+ [email protected]: {}+dependencies:type-fest: 0.21.3@@ -20733,6 +21092,8 @@ snapshots:optional: true+ [email protected]: {}+@@ -21104,6 +21465,10 @@ snapshots:+ dependencies:+ is-windows: 1.0.2+dependencies:bindings: 1.5.0@@ -21884,6 +22249,8 @@ snapshots:+ [email protected]: {}+@@ -21965,6 +22332,8 @@ snapshots:+ [email protected]: {}+@@ -21991,6 +22360,10 @@ snapshots:minimatch: 3.1.5p-limit: 3.1.0+ dependencies:+ path-type: 4.0.0+@@ -22072,6 +22445,8 @@ snapshots:+ [email protected]: {}+dependencies:'@drizzle-team/brocli': 0.12.0@@ -22292,6 +22667,11 @@ snapshots:graceful-fs: 4.2.11tapable: 2.3.3+ dependencies:+ ansi-colors: 4.1.3+ strip-ansi: 6.0.1+@@ -23127,6 +23507,8 @@ snapshots:+ [email protected]: {}+dependencies:debug: 4.4.3@@ -23288,6 +23670,11 @@ snapshots:dependencies:locate-path: 3.0.0+ dependencies:+ locate-path: 5.0.0+ path-exists: 4.0.0+@@ -23538,6 +23925,15 @@ snapshots:define-properties: 1.2.1gopd: 1.2.0+ dependencies:+ array-union: 2.1.0+ dir-glob: 3.0.1+ fast-glob: 3.3.3+ ignore: 5.3.2+ merge2: 1.4.1+ slash: 3.0.0+dependencies:base64-js: 1.5.1@@ -23818,6 +24214,8 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected]: {}+@@ -24006,8 +24404,14 @@ snapshots:+ dependencies:+ better-path-resolve: 1.0.0++ [email protected]: {}+dependencies:is-docker: 2.2.1@@ -24461,6 +24865,10 @@ snapshots:p-locate: 3.0.0path-exists: 3.0.0+ dependencies:+ p-locate: 4.1.0+@@ -24477,6 +24885,8 @@ snapshots:+ [email protected]: {}+@@ -25267,6 +25677,8 @@ snapshots:react: 19.2.6react-dom: 19.2.6([email protected])+ [email protected]: {}+@@ -25652,6 +26064,8 @@ snapshots:+ [email protected]: {}+[email protected]([email protected](@opentelemetry/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])):@@ -25714,6 +26128,10 @@ snapshots:+ dependencies:+ p-map: 2.1.0+@@ -25732,6 +26150,12 @@ snapshots:dependencies:p-limit: 2.3.0+ dependencies:+ p-limit: 2.3.0++ [email protected]: {}+@@ -25781,6 +26205,10 @@ snapshots:+ dependencies:+ quansync: 0.2.11+@@ -25838,6 +26266,8 @@ snapshots:+ [email protected]: {}+@@ -25864,6 +26294,8 @@ snapshots:+ [email protected]: {}+@@ -25950,6 +26382,8 @@ snapshots:+ [email protected]: {}+dependencies:split2: 4.2.0@@ -26102,6 +26536,8 @@ snapshots:tunnel-agent: 0.6.0optional: true+ [email protected]: {}+@@ -26232,6 +26668,8 @@ snapshots:es-define-property: 1.0.1side-channel: 1.1.1+ [email protected]: {}+@@ -26709,6 +27147,13 @@ snapshots:transitivePeerDependencies:- supports-color+ dependencies:+ graceful-fs: 4.2.11+ js-yaml: 3.15.1+ pify: 4.0.1+ strip-bom: 3.0.0+dependencies:core-util-is: 1.0.2@@ -27415,6 +27860,8 @@ snapshots:+ [email protected]: {}+dependencies:ansi-styles: 6.2.3@@ -27480,6 +27927,11 @@ snapshots:dependencies:memory-pager: 1.5.0+ dependencies:+ cross-spawn: 7.0.6+ signal-exit: 4.1.0+@@ -27600,6 +28052,8 @@ snapshots:+ [email protected]: {}+@@ -27758,15 +28212,6 @@ snapshots:- bare-abort-controller- react-native-b4a- dependencies:- '@clack/prompts': 1.7.0- '@rainbowatcher/toml-edit-js': 0.6.5- semver: 7.8.5- tinyexec: 1.2.4- tinyglobby: 0.2.17- yaml: 2.9.0-dependencies:async-exit-hook: 2.0.1@@ -27777,6 +28222,8 @@ snapshots:mkdirp: 0.5.6rimraf: 2.6.3+ [email protected]: {}+dependencies:ansi-escapes: 4.3.2diff --git a/scripts/ci-workflow-policy.test.ts b/scripts/ci-workflow-policy.test.tsindex 62c85f93f..e5c2b0b4a 100644--- a/scripts/ci-workflow-policy.test.ts+++ b/scripts/ci-workflow-policy.test.ts@@ -9,6 +9,8 @@ type Step = {readonly id?: string;readonly if?: string;readonly run?: string;+ readonly uses?: string;+ readonly with?: Readonly<Record<string, string | boolean>>;};type Job = {@@ -42,6 +44,20 @@ describe("CI workflow budget", () => {expect(ci.on.pull_request).toEqual({types: ["opened", "synchronize", "reopened", "ready_for_review"],});+ expect(ci.on.workflow_dispatch).toEqual({+ inputs: {+ expected_sha: {+ description: "Exact version-branch revision to validate",+ required: true,+ type: "string",+ },+ expected_pr_number: {+ description: "Repository-owned Changesets pull request to validate",+ required: true,+ type: "string",+ },+ },+ });expect(ci.on).not.toHaveProperty("push");expect(ci.on).not.toHaveProperty("merge_group");expect(ci.concurrency?.group).toBe("ci-${{ github.event.pull_request.number || github.ref }}");@@ -51,11 +67,44 @@ describe("CI workflow budget", () => {"${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.draft == false }}",);expect(ci.jobs.check?.["runs-on"]).toBe("tenki-standard-medium-4c-8g");+ expect(ci.jobs.check?.steps.find((step) => step.name === "Checkout")?.with?.ref).toBe(+ "${{ inputs.expected_sha || github.sha }}",+ );+ const dispatchAuthorization = ci.jobs.check?.steps.find(+ (step) => step.name === "Authorize version-branch dispatch",+ );+ expect(dispatchAuthorization?.if).toBe("${{ github.event_name == 'workflow_dispatch' }}");+ expect(dispatchAuthorization?.run).toContain(".head.ref");+ expect(dispatchAuthorization?.run).toContain(".head.sha");+ expect(dispatchAuthorization?.run).toContain(".head.repo.full_name");+ expect(dispatchAuthorization?.run).toContain(".user.login");+ expect(dispatchAuthorization?.run).toContain("github-actions[bot]");+ expect(dispatchAuthorization?.run).toContain('test "$(git rev-parse HEAD)" = "$EXPECTED_SHA"');++ const stableVersionGuard = ci.jobs.check?.steps.find(+ (step) => step.name === "Protect stable release versions",+ );+ const changesetGuard = ci.jobs.check?.steps.find(+ (step) => step.name === "Require a changeset decision",+ );+ for (const guard of [stableVersionGuard, changesetGuard]) {+ expect(guard?.if).toContain("github.head_ref == 'changeset-release/main'");+ expect(guard?.if).toContain(+ "github.event.pull_request.head.repo.full_name == github.repository",+ );+ expect(guard?.if).toContain("github.event.pull_request.user.login == 'github-actions[bot]'");+ }+ expect(stableVersionGuard?.run).toContain(+ "Only the repository-owned Changesets version PR may change release versions.",+ );+ expect(changesetGuard?.run).toContain("--diff-filter=A");+ expect(changesetGuard?.run).not.toContain("--diff-filter=ACMRT");for (const command of ["git ls-files .github/pr-assets","node scripts/check-public-dependencies.ts","vp install --frozen-lockfile",+ "vp exec changeset status --since=origin/main","vp run --filter @t3tools/desktop ensure:electron","node scripts/validate-plugin-catalog.ts","scripts/validate-plugin-catalog.test.ts",@@ -102,16 +151,20 @@ describe("CI workflow budget", () => {"pull-requests": "write",});expect(versionJob?.["runs-on"]).toBe("tenki-standard-medium-4c-8g");- expect(versionJob?.steps.find((step) => step.run)?.run).toBe("vp run release:version-pr");-- const updater = NodeFS.readFileSync(- new URL("../scripts/update-version-pull-request.ts", import.meta.url),- "utf8",+ const changesets = versionJob?.steps.find((step) => step.id === "changesets");+ expect(changesets?.uses).toContain("changesets/action@");+ expect(changesets?.with?.version).toBe("pnpm release:version");+ expect(changesets?.with?.createGithubReleases).toBe(false);+ const dispatch = versionJob?.steps.find(+ (step) => step.name === "Run checks for the updated version branch",);- expect(updater).toContain('"merge-base",');- expect(updater).toContain('"--is-ancestor",');- expect(updater).toContain('"pr",\n "edit",');- expect(updater).toContain('"workflow", "run", "ci.yml"');+ expect(dispatch?.if).toBe("steps.changesets.outputs.pullRequestNumber != ''");+ expect(dispatch?.if).not.toContain("hasChangesets");+ expect(dispatch?.run).toContain(".head.sha");+ expect(dispatch?.run).toContain(".head.repo.full_name");+ expect(dispatch?.run).toContain('test "$head_ref" = changeset-release/main');+ expect(dispatch?.run).toContain('-f expected_sha="$head_sha"');+ expect(dispatch?.run).toContain('-f expected_pr_number="$PR_NUMBER"');});it("uses 4-vCPU Linux runners in the manual release smoke workflow", () => {diff --git a/scripts/generate-release-changelog.test.ts b/scripts/generate-release-changelog.test.tsdeleted file mode 100644index 7ded19b73..000000000--- a/scripts/generate-release-changelog.test.ts+++ /dev/null@@ -1,40 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import { parseReleaseChanges, renderReleaseChangelog } from "./generate-release-changelog.ts";--describe("stable release changelog", () => {- it("lists each merged pull request once and ignores non-PR commits", () => {- const changes = parseReleaseChanges(- [- "feat(server): add durable bots (#81)",- "t3 checkpoint ref=hidden",- "fix(release): verify assets (#92)",- "fix(release): duplicate merge record (#92)",- ].join("\n"),- );-- expect(changes).toEqual([- {- number: 81,- title: "feat(server): add durable bots",- },- {- number: 92,- title: "fix(release): verify assets",- },- ]);-- const changelog = renderReleaseChangelog(changes);- expect(changelog.match(/pull\/81/g)).toHaveLength(1);- expect(changelog.match(/pull\/92/g)).toHaveLength(1);- expect(changelog).not.toContain("checkpoint");- expect(changelog).toContain("group:akeru:");- });-- it("uses one stable patch bump for the Akeru release group", () => {- const changelog = renderReleaseChangelog([{ number: 81, title: "feat: add durable bots" }]);-- expect(changelog).toContain("packages:\n group:akeru:\n type: patch");- expect(changelog).toContain("[#81](https://github.com/opencoredev/akeru-bot/pull/81)");- });-});diff --git a/scripts/generate-release-changelog.ts b/scripts/generate-release-changelog.tsdeleted file mode 100644index a00ae9aa8..000000000--- a/scripts/generate-release-changelog.ts+++ /dev/null@@ -1,138 +0,0 @@-// @effect-diagnostics nodeBuiltinImport:off globalConsole:off - Release automation runs before an Effect runtime exists.-import * as NodeChildProcess from "node:child_process";-import * as NodeFSP from "node:fs/promises";--export interface ReleaseChange {- number: number;- title: string;-}--const stableTag = /^v\d+\.\d+\.\d+$/;-const pullRequestCommit = /^(?<title>.+) \(#(?<number>\d+)\)$/;-const releaseManifests = [- "apps/server/package.json",- "apps/desktop/package.json",- "apps/web/package.json",- "packages/contracts/package.json",-] as const;--export function parseReleaseChanges(log: string): ReleaseChange[] {- const seen = new Set<number>();- return log- .trim()- .split("\n")- .filter(Boolean)- .flatMap((subject) => {- const match = subject.match(pullRequestCommit);- if (!match?.groups) return [];- const { number: rawNumber, title } = match.groups;- if (!rawNumber || !title) return [];- const number = Number(rawNumber);- if (seen.has(number)) return [];- seen.add(number);-- return [- {- number,- title,- },- ];- });-}--export function renderReleaseChangelog(changes: ReleaseChange[]): string {- const entries = changes.map(- ({ number, title }) =>- `- [#${number}](https://github.com/opencoredev/akeru-bot/pull/${number}) ${title}`,- );-- return [- "---",- "packages:",- " group:akeru:",- " type: patch",- "---",- "",- "### Changes",- "",- ...entries,- "",- ].join("\n");-}--function git(...args: string[]): string {- return NodeChildProcess.execFileSync("git", args, { encoding: "utf8" }).trim();-}--function latestStableTag(): string | undefined {- return git(- "for-each-ref",- "--merged=HEAD",- "--sort=-creatordate",- "--format=%(refname:short)",- "refs/tags",- )- .split("\n")- .find((tag) => stableTag.test(tag));-}--function packageVersion(ref: string, path: string): string | undefined {- try {- const manifest = JSON.parse(git("show", `${ref}:${path}`)) as {- version?: unknown;- };- return typeof manifest.version === "string" ? manifest.version : undefined;- } catch {- return undefined;- }-}--function isVersionRelease(ref: string): boolean {- const before = releaseManifests.map((path) => packageVersion(`${ref}^`, path));- const after = releaseManifests.map((path) => packageVersion(ref, path));- return (- before.every(Boolean) &&- after.every(Boolean) &&- new Set(before).size === 1 &&- new Set(after).size === 1 &&- before[0] !== after[0]- );-}--export function headIsVersionRelease(): boolean {- return isVersionRelease("HEAD");-}--function latestVersionReleaseCommit(): string | undefined {- return git("log", "--first-parent", "--format=%H", "--", ...releaseManifests)- .split("\n")- .find(isVersionRelease);-}--export function readReleaseChanges(): ReleaseChange[] {- const boundary = latestStableTag() ?? latestVersionReleaseCommit();- const range = boundary ? [`${boundary}..HEAD`] : [];- const log = git("log", "--first-parent", "--format=%s", ...range);- return parseReleaseChanges(log).toReversed();-}--async function main(): Promise<void> {- if (!process.argv.includes("--force") && headIsVersionRelease()) {- console.log("The version PR merge does not need another version PR.");- return;- }-- const changes = readReleaseChanges();- if (changes.length === 0) {- console.log("No merged pull requests need a release changelog.");- return;- }-- await NodeFSP.mkdir(".tegami", { recursive: true });- await NodeFSP.writeFile(".tegami/stable-release.md", renderReleaseChangelog(changes));- console.log(`Added ${changes.length} merged pull requests to the release changelog.`);-}--if (import.meta.main) {- await main();-}diff --git a/scripts/nightly-release.test.ts b/scripts/nightly-release.test.tsnew file mode 100644index 000000000..23fd20ee5--- /dev/null+++ b/scripts/nightly-release.test.ts@@ -0,0 +1,49 @@+import { describe, expect, it } from "vite-plus/test";++import { planNightlyRelease } from "./nightly-release.ts";++const base = {+ stableVersion: "1.2.3",+ headSha: "abcdef1234567890abcdef1234567890abcdef12",+ runId: "12345",+ runAttempt: "2",+} as const;++describe("nightly release planning", () => {+ it("creates a collision-safe semver version and separate nightly tag", () => {+ expect(planNightlyRelease(base)).toEqual({+ publish: true,+ version: "1.2.3-nightly.12345.2.gabcdef123456",+ tag: "nightly-v1.2.3-nightly.12345.2.gabcdef123456",+ });+ });++ it("is idempotent after the same commit was released successfully", () => {+ expect(planNightlyRelease({ ...base, previousSha: base.headSha })).toEqual({+ publish: false,+ });+ });++ it("releases a newer main commit and rejects a rewritten history", () => {+ expect(+ planNightlyRelease({ ...base, previousSha: "1234567890abcdef", previousIsAncestor: true }),+ ).toMatchObject({ publish: true });+ expect(() =>+ planNightlyRelease({+ ...base,+ previousSha: "1234567890abcdef",+ previousIsAncestor: false,+ }),+ ).toThrow("not an ancestor");+ });++ it("rejects invalid stable versions and run identities", () => {+ expect(() => planNightlyRelease({ ...base, stableVersion: "1.2.3-beta.1" })).toThrow(+ "Stable release version is invalid",+ );+ expect(() => planNightlyRelease({ ...base, stableVersion: "1.02.3" })).toThrow(+ "Stable release version is invalid",+ );+ expect(() => planNightlyRelease({ ...base, runId: "run-1" })).toThrow("must be numeric");+ });+});diff --git a/scripts/nightly-release.ts b/scripts/nightly-release.tsnew file mode 100644index 000000000..5d4f77cbf--- /dev/null+++ b/scripts/nightly-release.ts@@ -0,0 +1,73 @@+// @effect-diagnostics nodeBuiltinImport:off globalConsole:off - Release selection runs before an Effect runtime exists.+import * as NodeChildProcess from "node:child_process";+import * as NodeFS from "node:fs";+import * as NodeURL from "node:url";++export interface NightlyReleasePlan {+ readonly publish: boolean;+ readonly version?: string;+ readonly tag?: string;+}++export interface NightlyReleaseInput {+ readonly stableVersion: string;+ readonly headSha: string;+ readonly previousSha?: string;+ readonly runId: string;+ readonly runAttempt: string;+ readonly previousIsAncestor?: boolean;+}++export function planNightlyRelease(input: NightlyReleaseInput): NightlyReleasePlan {+ if (!/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/u.test(input.stableVersion)) {+ throw new Error(`Stable release version is invalid: ${input.stableVersion}.`);+ }+ if (!/^[0-9a-f]{7,40}$/u.test(input.headSha)) {+ throw new Error(`Nightly head SHA is invalid: ${input.headSha}.`);+ }+ if (!/^\d+$/u.test(input.runId) || !/^\d+$/u.test(input.runAttempt)) {+ throw new Error("Nightly run identity must be numeric.");+ }+ if (input.previousSha === input.headSha) return { publish: false };+ if (input.previousSha && input.previousIsAncestor === false) {+ throw new Error("The latest successful nightly is not an ancestor of main.");+ }++ const version = `${input.stableVersion}-nightly.${input.runId}.${input.runAttempt}.g${input.headSha.slice(0, 12)}`;+ return { publish: true, version, tag: `nightly-v${version}` };+}++function gitIsAncestor(previousSha: string, headSha: string): boolean {+ return (+ NodeChildProcess.spawnSync("git", ["merge-base", "--is-ancestor", previousSha, headSha])+ .status === 0+ );+}++function main(): void {+ const [stableVersion, headSha, previousShaArgument, runId, runAttempt] = process.argv.slice(2);+ if (!stableVersion || !headSha || !runId || !runAttempt) {+ throw new Error(+ "Usage: node scripts/nightly-release.ts <stable-version> <head-sha> <previous-sha|-> <run-id> <run-attempt>",+ );+ }+ const previousSha =+ previousShaArgument && previousShaArgument !== "-" ? previousShaArgument : undefined;+ const plan = planNightlyRelease({+ stableVersion,+ headSha,+ runId,+ runAttempt,+ ...(previousSha+ ? { previousSha, previousIsAncestor: gitIsAncestor(previousSha, headSha) }+ : {}),+ });+ const output = [`publish=${String(plan.publish)}`];+ if (plan.version && plan.tag) output.push(`version=${plan.version}`, `tag=${plan.tag}`);+ const rendered = `${output.join("\n")}\n`;+ const outputPath = process.env.GITHUB_OUTPUT;+ if (outputPath) NodeFS.appendFileSync(outputPath, rendered);+ else process.stdout.write(rendered);+}++if (import.meta.url === NodeURL.pathToFileURL(process.argv[1] ?? "").href) main();diff --git a/scripts/release-smoke.ts b/scripts/release-smoke.tsindex 7c0f002e5..0173d678a 100644--- a/scripts/release-smoke.ts+++ b/scripts/release-smoke.ts@@ -128,8 +128,12 @@ for (const [needle, label] of [assertContains(releaseWorkflow, "tag=v%s\\n", "Stable release workflow does not use a vX.Y.Z tag.");for (const [needle, label] of [["branches: [main]", "main branch trigger"],- ["vp run release:version-pr", "version pull request command"],- ["actions: write", "CI dispatch permission"],+ ["changesets/action@", "Changesets GitHub Action"],+ ["version: pnpm release:version", "Changesets version command"],+ [+ 'gh workflow run ci.yml --ref "$head_ref" -f expected_sha="$head_sha"',+ "version branch CI dispatch",+ ],["contents: write", "version branch permission"],["pull-requests: write", "version pull request permission"],] as const) {@@ -140,6 +144,14 @@ assertOmits("gh release create","Version packages workflow publishes before its pull request merges",);+for (const [needle, label] of [+ ['cron: "17 */3 * * *"', "three-hour nightly schedule"],+ ["scripts/nightly-release.ts", "nightly release selection"],+ ["--prerelease --latest=false", "non-latest nightly release"],+ ["runs-on: tenki-standard-small-2c-4g", "Tenki release control plane"],+] as const) {+ assertContains(releaseWorkflow, needle, `Release workflow is missing ${label}.`);+}assertContains(releaseWorkflow,"APPLE_API_KEY: ${{ runner.temp }}/notarytool-api-key.p8",diff --git a/scripts/tegami.test.ts b/scripts/tegami.test.tsdeleted file mode 100644index f580eb6d7..000000000--- a/scripts/tegami.test.ts+++ /dev/null@@ -1,27 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import desktopPackage from "../apps/desktop/package.json" with { type: "json" };-import serverPackage from "../apps/server/package.json" with { type: "json" };-import webPackage from "../apps/web/package.json" with { type: "json" };-import contractsPackage from "../packages/contracts/package.json" with { type: "json" };-import { releasePackageNames } from "./tegami.ts";--describe("Tegami release packages", () => {- it("keeps every release package on one stable version", () => {- expect(releasePackageNames).toEqual([- "akeru-bot",- "@t3tools/contracts",- "@t3tools/desktop",- "@t3tools/web",- ]);-- const versions = [- serverPackage.version,- contractsPackage.version,- desktopPackage.version,- webPackage.version,- ];- expect(new Set(versions).size).toBe(1);- expect(versions.every((version) => /^\d+\.\d+\.\d+$/.test(version))).toBe(true);- });-});diff --git a/scripts/tegami.ts b/scripts/tegami.tsdeleted file mode 100644index a9b8312e5..000000000--- a/scripts/tegami.ts+++ /dev/null@@ -1,45 +0,0 @@-import { runCli } from "tegami/cli";-import { tegami } from "tegami";-import { github } from "tegami/plugins/github";--export const releasePackageNames = [- "akeru-bot",- "@t3tools/contracts",- "@t3tools/desktop",- "@t3tools/web",-] as const;--export const release = tegami({- ignore: ["@t3tools/mobile"],- npm: {- bumpDep: () => false,- updateLockFile: false,- },- groups: {- akeru: {- syncBump: true,- syncGitTag: true,- },- },- packages: {- "akeru-bot": { group: "akeru" },- "@t3tools/contracts": { group: "akeru" },- "@t3tools/desktop": { group: "akeru" },- "@t3tools/web": { group: "akeru" },- },- plugins: [- github({- repo: "opencoredev/akeru-bot",- release: false,- createTags: false,- versionPr: {- base: "main",- branch: "tegami/version-packages",- },- }),- ],-});--if (import.meta.main) {- await runCli(release);-}diff --git a/scripts/update-version-pull-request.test.ts b/scripts/update-version-pull-request.test.tsdeleted file mode 100644index 36062c679..000000000--- a/scripts/update-version-pull-request.test.ts+++ /dev/null@@ -1,63 +0,0 @@-import { describe, expect, it } from "vite-plus/test";--import {- isRecoverableVersionRequestFailure,- nextPatchVersion,- renderVersionPullRequestBody,- stableReleaseIsPublished,- stableReleaseTag,-} from "./update-version-pull-request.ts";--describe("version pull request automation", () => {- it("renders every merged pull request in the next patch release", () => {- const body = renderVersionPullRequestBody("0.0.38", [- { number: 141, title: "fix(web): mute routine notices" },- { number: 163, title: "feat(marketing): add Grok search pages" },- ]);-- expect(body).toContain("Prepare Akeru Bot v0.0.39.");- expect(body).toContain("[#141](https://github.com/opencoredev/akeru-bot/pull/141)");- expect(body).toContain("[#163](https://github.com/opencoredev/akeru-bot/pull/163)");- expect(body).toContain("`akeru-bot`: `0.0.38` → `0.0.39`");- });-- it("increments only published stable patch versions", () => {- expect(stableReleaseTag("1.2.9")).toBe("v1.2.9");- expect(stableReleaseIsPublished("1.2.9", ["v1.2.8", "v1.2.9"])).toBe(true);- expect(stableReleaseIsPublished("1.2.9", ["v1.2.8"])).toBe(false);- expect(nextPatchVersion("1.2.9")).toBe("1.2.10");- expect(() => stableReleaseTag("1.2.3-beta.1")).toThrow("Stable release version is invalid");- expect(() => nextPatchVersion("1.2.3-beta.1")).toThrow("Stable release version is invalid");- });-- it("recovers only from version pull request creation conflicts", () => {- expect(- isRecoverableVersionRequestFailure(- 'Plugin "github:version-request" failed:\nA pull request already exists',- ),- ).toBe(true);- // Tegami's boxed CLI output wraps the message across bordered lines.- expect(- isRecoverableVersionRequestFailure(- [- "◇ Error ──────────────────────────────╮",- "│ │",- '│ Plugin "github:version-request" failed during applyCliDraft: │',- '│ Failed to create the version pull request: {"message":"Validation │',- '│ Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A │',- "│ pull request already exists for │",- "│ opencoredev:tegami/version-packages. │",- "├──────────────────────────────────────╯",- ].join("\n"),- ),- ).toBe(true);- expect(- isRecoverableVersionRequestFailure(- 'Plugin "github:version-request" failed: GitHub Actions is not permitted to create or approve pull requests',- ),- ).toBe(true);- expect(isRecoverableVersionRequestFailure("Tegami failed to push the version branch")).toBe(- false,- );- });-});diff --git a/scripts/update-version-pull-request.ts b/scripts/update-version-pull-request.tsdeleted file mode 100644index d2aba8ad8..000000000--- a/scripts/update-version-pull-request.ts+++ /dev/null@@ -1,221 +0,0 @@-// @effect-diagnostics nodeBuiltinImport:off globalConsole:off - Release automation runs before an Effect runtime exists.-import * as NodeChildProcess from "node:child_process";-import * as NodeFS from "node:fs";-import * as NodeOS from "node:os";-import * as NodePath from "node:path";-import * as NodeURL from "node:url";--import {- headIsVersionRelease,- readReleaseChanges,- type ReleaseChange,-} from "./generate-release-changelog.ts";--const repository = "opencoredev/akeru-bot";-const versionBranch = "tegami/version-packages";-const versionTitle = "Version Packages";--interface CommandResult {- readonly status: number;- readonly output: string;-}--function run(command: string, args: ReadonlyArray<string>): CommandResult {- const result = NodeChildProcess.spawnSync(command, args, {- encoding: "utf8",- env: process.env,- });- const output = `${result.stdout ?? ""}${result.stderr ?? ""}`;- process.stdout.write(output);- return { status: result.status ?? 1, output };-}--function runOrThrow(command: string, args: ReadonlyArray<string>): string {- const result = NodeChildProcess.spawnSync(command, args, {- encoding: "utf8",- env: process.env,- });- if (result.status !== 0) {- throw new Error(- `${command} ${args.join(" ")} failed with code ${result.status ?? 1}:\n${result.stderr || result.stdout}`,- );- }- return result.stdout.trim();-}--export function stableReleaseTag(version: string): string {- if (!/^\d+\.\d+\.\d+$/u.test(version)) {- throw new Error(`Stable release version is invalid: ${version}.`);- }- return `v${version}`;-}--export function nextPatchVersion(version: string): string {- const match = /^(\d+)\.(\d+)\.(\d+)$/u.exec(version);- if (!match) throw new Error(`Stable release version is invalid: ${version}.`);- const [, major, minor, patch] = match;- return `${major}.${minor}.${Number(patch) + 1}`;-}--export function renderVersionPullRequestBody(- currentVersion: string,- changes: ReadonlyArray<ReleaseChange>,-): string {- const nextVersion = nextPatchVersion(currentVersion);- const entries = changes.map(- ({ number, title }) =>- `- [#${number}](https://github.com/opencoredev/akeru-bot/pull/${number}) ${title}`,- );-- return [- "## Summary",- "",- `Prepare Akeru Bot v${nextVersion}.`,- "",- "## Changes",- "",- ...entries,- "",- "## Packages",- "",- `- \`@t3tools/desktop\`: \`${currentVersion}\` → \`${nextVersion}\``,- `- \`akeru-bot\`: \`${currentVersion}\` → \`${nextVersion}\``,- `- \`@t3tools/web\`: \`${currentVersion}\` → \`${nextVersion}\``,- `- \`@t3tools/contracts\`: \`${currentVersion}\` → \`${nextVersion}\``,- "",- ].join("\n");-}--export function isRecoverableVersionRequestFailure(output: string): boolean {- // Tegami wraps errors in a box whose border characters split words across- // lines, so strip the decoration before collapsing whitespace.- const normalized = output.replace(/[│├┤╮╯╭╰─◇└┌]/gu, " ").replace(/\s+/gu, " ");- return (- normalized.includes('Plugin "github:version-request" failed') &&- (normalized.includes("A pull request already exists") ||- normalized.includes("GitHub Actions is not permitted to create or approve pull requests"))- );-}--function readCurrentVersion(): string {- const manifest = JSON.parse(NodeFS.readFileSync("apps/server/package.json", "utf8")) as {- readonly version?: unknown;- };- if (typeof manifest.version !== "string") {- throw new Error("apps/server/package.json does not contain a version.");- }- return manifest.version;-}--function findVersionPullRequest(): number | undefined {- const value = runOrThrow("gh", [- "pr",- "list",- "--repo",- repository,- "--state",- "open",- "--head",- versionBranch,- "--json",- "number",- "--jq",- ".[0].number // empty",- ]);- if (value === "") return undefined;- const number = Number(value);- if (!Number.isSafeInteger(number)) {- throw new Error(`GitHub returned an invalid version pull request number: ${value}.`);- }- return number;-}--export function stableReleaseIsPublished(version: string, tags: ReadonlyArray<string>): boolean {- return tags.includes(stableReleaseTag(version));-}--function currentStableReleaseIsPublished(version: string): boolean {- const tag = stableReleaseTag(version);- const result = NodeChildProcess.spawnSync("git", ["tag", "--list", tag], {- encoding: "utf8",- });- return result.status === 0 && stableReleaseIsPublished(version, result.stdout.trim().split("\n"));-}--function verifyVersionBranchIncludesMain(mainSha: string): void {- runOrThrow("git", [- "fetch",- "origin",- `refs/heads/${versionBranch}:refs/remotes/origin/${versionBranch}`,- ]);- runOrThrow("git", [- "merge-base",- "--is-ancestor",- mainSha,- `refs/remotes/origin/${versionBranch}`,- ]);-}--function main(): void {- if (headIsVersionRelease()) {- console.log("The version pull request merge does not need another version pull request.");- return;- }-- const mainSha = process.env.GITHUB_SHA;- if (!mainSha) throw new Error("GITHUB_SHA is required.");-- const currentVersion = readCurrentVersion();- if (!currentStableReleaseIsPublished(currentVersion)) {- console.log(`Stable release ${stableReleaseTag(currentVersion)} is still pending.`);- return;- }-- const changes = readReleaseChanges();- if (changes.length === 0) {- console.log("No merged pull requests need a version pull request.");- return;- }-- const body = renderVersionPullRequestBody(currentVersion, changes);- const bodyPath = NodePath.join(- process.env.RUNNER_TEMP ?? NodeOS.tmpdir(),- "akeru-version-pull-request.md",- );- NodeFS.writeFileSync(bodyPath, body);-- const changelog = run("vp", ["run", "release:changelog"]);- if (changelog.status !== 0) {- throw new Error("Failed to generate the stable release changelog.");- }-- const tegami = run("vp", ["run", "tegami", "version", "--no-checks"]);- const pullRequest = findVersionPullRequest();- if (!pullRequest) {- throw new Error(- tegami.status === 0- ? "Tegami completed without an open version pull request."- : `Tegami failed before it created the version pull request:\n${tegami.output}`,- );- }- if (tegami.status !== 0 && !isRecoverableVersionRequestFailure(tegami.output)) {- throw new Error(`Tegami failed while updating the version pull request:\n${tegami.output}`);- }-- verifyVersionBranchIncludesMain(mainSha);- runOrThrow("gh", [- "pr",- "edit",- String(pullRequest),- "--repo",- repository,- "--title",- versionTitle,- "--body-file",- bodyPath,- ]);- runOrThrow("gh", ["workflow", "run", "ci.yml", "--repo", repository, "--ref", versionBranch]);- console.log(`Updated version pull request #${pullRequest} and started Repository checks.`);-}--if (import.meta.url === NodeURL.pathToFileURL(process.argv[1] ?? "").href) main();