@buffcore/cli 0.0.0-stage → 0.8.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2656 -0
- package/LICENSE +202 -0
- package/NOTICE +4 -0
- package/README.md +8 -2
- package/assets/fonts/Inter-LICENSE.txt +92 -0
- package/assets/fonts/InterVariable.woff2 +0 -0
- package/assets/fonts/JetBrainsMono-LICENSE.txt +93 -0
- package/assets/fonts/JetBrainsMono.woff2 +0 -0
- package/bin/ape.mjs +15 -0
- package/dist/bundled.d.ts +16 -0
- package/dist/bundled.js +30 -0
- package/dist/commands/agents/container.d.ts +16 -0
- package/dist/commands/agents/container.js +117 -0
- package/dist/commands/agents/files.d.ts +29 -0
- package/dist/commands/agents/files.js +130 -0
- package/dist/commands/agents/floors.d.ts +9 -0
- package/dist/commands/agents/floors.js +44 -0
- package/dist/commands/agents/held.d.ts +14 -0
- package/dist/commands/agents/held.js +85 -0
- package/dist/commands/agents/index.d.ts +16 -0
- package/dist/commands/agents/index.js +126 -0
- package/dist/commands/agents/patterns.d.ts +18 -0
- package/dist/commands/agents/patterns.js +51 -0
- package/dist/commands/agents/run.d.ts +27 -0
- package/dist/commands/agents/run.js +89 -0
- package/dist/commands/agents-file.d.ts +38 -0
- package/dist/commands/agents-file.js +210 -0
- package/dist/commands/agents-main-file.d.ts +4 -0
- package/dist/commands/agents-main-file.js +38 -0
- package/dist/commands/approval-rules.d.ts +10 -0
- package/dist/commands/approval-rules.en.d.ts +10 -0
- package/dist/commands/approval-rules.en.js +10 -0
- package/dist/commands/approval-rules.es.d.ts +10 -0
- package/dist/commands/approval-rules.es.js +10 -0
- package/dist/commands/approval-rules.js +86 -0
- package/dist/commands/backup-migrations.d.ts +18 -0
- package/dist/commands/backup-migrations.en.d.ts +9 -0
- package/dist/commands/backup-migrations.en.js +9 -0
- package/dist/commands/backup-migrations.js +189 -0
- package/dist/commands/backup.d.ts +56 -0
- package/dist/commands/backup.js +179 -0
- package/dist/commands/boundaries.d.ts +72 -0
- package/dist/commands/boundaries.en.d.ts +3 -0
- package/dist/commands/boundaries.en.js +3 -0
- package/dist/commands/boundaries.es.json +3 -0
- package/dist/commands/boundaries.js +185 -0
- package/dist/commands/build/android.d.ts +40 -0
- package/dist/commands/build/android.js +151 -0
- package/dist/commands/build/index.d.ts +43 -0
- package/dist/commands/build/index.js +84 -0
- package/dist/commands/build/ios.d.ts +17 -0
- package/dist/commands/build/ios.js +66 -0
- package/dist/commands/build/mac.d.ts +9 -0
- package/dist/commands/build/mac.js +49 -0
- package/dist/commands/build/platform-gate.d.ts +8 -0
- package/dist/commands/build/platform-gate.js +23 -0
- package/dist/commands/build/runner.d.ts +20 -0
- package/dist/commands/build/runner.js +22 -0
- package/dist/commands/build/scan.d.ts +8 -0
- package/dist/commands/build/scan.js +50 -0
- package/dist/commands/build/server-text.d.ts +1 -0
- package/dist/commands/build/server-text.en.d.ts +18 -0
- package/dist/commands/build/server-text.en.js +19 -0
- package/dist/commands/build/server-text.js +22 -0
- package/dist/commands/build/server.d.ts +34 -0
- package/dist/commands/build/server.js +81 -0
- package/dist/commands/build/target.d.ts +32 -0
- package/dist/commands/build/target.js +53 -0
- package/dist/commands/build/web.d.ts +10 -0
- package/dist/commands/build/web.js +60 -0
- package/dist/commands/catalog-files.d.ts +24 -0
- package/dist/commands/catalog-files.js +73 -0
- package/dist/commands/change-checks.d.ts +11 -0
- package/dist/commands/change-checks.js +34 -0
- package/dist/commands/change-clash.d.ts +8 -0
- package/dist/commands/change-clash.js +15 -0
- package/dist/commands/change-facts.d.ts +28 -0
- package/dist/commands/change-facts.js +116 -0
- package/dist/commands/change-file.d.ts +48 -0
- package/dist/commands/change-file.js +111 -0
- package/dist/commands/change-from-error.d.ts +29 -0
- package/dist/commands/change-from-error.js +84 -0
- package/dist/commands/change-merge-after.d.ts +10 -0
- package/dist/commands/change-merge-after.js +31 -0
- package/dist/commands/change-merge-clean.d.ts +38 -0
- package/dist/commands/change-merge-clean.js +143 -0
- package/dist/commands/change-merge-command.d.ts +2 -0
- package/dist/commands/change-merge-command.js +23 -0
- package/dist/commands/change-merge-current.d.ts +15 -0
- package/dist/commands/change-merge-current.js +52 -0
- package/dist/commands/change-merge-delegate.d.ts +14 -0
- package/dist/commands/change-merge-delegate.js +66 -0
- package/dist/commands/change-merge-failure.d.ts +53 -0
- package/dist/commands/change-merge-failure.js +161 -0
- package/dist/commands/change-merge-killed.d.ts +11 -0
- package/dist/commands/change-merge-killed.js +20 -0
- package/dist/commands/change-merge-lock.d.ts +39 -0
- package/dist/commands/change-merge-lock.js +167 -0
- package/dist/commands/change-merge-log.d.ts +23 -0
- package/dist/commands/change-merge-log.js +48 -0
- package/dist/commands/change-merge-main.d.ts +141 -0
- package/dist/commands/change-merge-main.js +53 -0
- package/dist/commands/change-merge-protected.d.ts +11 -0
- package/dist/commands/change-merge-protected.js +80 -0
- package/dist/commands/change-merge-records.d.ts +11 -0
- package/dist/commands/change-merge-records.js +60 -0
- package/dist/commands/change-merge-redact.d.ts +37 -0
- package/dist/commands/change-merge-redact.js +164 -0
- package/dist/commands/change-merge-remove.d.ts +16 -0
- package/dist/commands/change-merge-remove.js +27 -0
- package/dist/commands/change-merge-serial.d.ts +7 -0
- package/dist/commands/change-merge-serial.js +58 -0
- package/dist/commands/change-merge-temporary.d.ts +23 -0
- package/dist/commands/change-merge-temporary.js +226 -0
- package/dist/commands/change-merge-turbo.d.ts +6 -0
- package/dist/commands/change-merge-turbo.js +27 -0
- package/dist/commands/change-merge.d.ts +116 -0
- package/dist/commands/change-merge.en.d.ts +58 -0
- package/dist/commands/change-merge.en.js +124 -0
- package/dist/commands/change-merge.js +192 -0
- package/dist/commands/change-migrations.d.ts +5 -0
- package/dist/commands/change-migrations.js +140 -0
- package/dist/commands/change-refactor.d.ts +10 -0
- package/dist/commands/change-refactor.js +84 -0
- package/dist/commands/change-screens.d.ts +29 -0
- package/dist/commands/change-screens.js +90 -0
- package/dist/commands/change-trailers.d.ts +30 -0
- package/dist/commands/change-trailers.en.d.ts +12 -0
- package/dist/commands/change-trailers.en.js +12 -0
- package/dist/commands/change-trailers.js +124 -0
- package/dist/commands/change.d.ts +82 -0
- package/dist/commands/change.js +195 -0
- package/dist/commands/check-boundaries.d.ts +25 -0
- package/dist/commands/check-boundaries.js +156 -0
- package/dist/commands/check-places.d.ts +3 -0
- package/dist/commands/check-places.js +29 -0
- package/dist/commands/check-public.d.ts +5 -0
- package/dist/commands/check-public.js +49 -0
- package/dist/commands/check-secrets.d.ts +31 -0
- package/dist/commands/check-secrets.js +109 -0
- package/dist/commands/check.d.ts +3 -0
- package/dist/commands/check.js +31 -0
- package/dist/commands/compatible-catalog-plan.d.ts +12 -0
- package/dist/commands/compatible-catalog-plan.js +27 -0
- package/dist/commands/compatible-catalogs.d.ts +6 -0
- package/dist/commands/compatible-catalogs.js +32 -0
- package/dist/commands/compatible-checks.d.ts +26 -0
- package/dist/commands/compatible-checks.js +158 -0
- package/dist/commands/compatible-child.d.ts +1 -0
- package/dist/commands/compatible-child.js +44 -0
- package/dist/commands/compatible-data.d.ts +144 -0
- package/dist/commands/compatible-data.js +84 -0
- package/dist/commands/compatible-extract.d.ts +21 -0
- package/dist/commands/compatible-extract.js +92 -0
- package/dist/commands/compatible-files.d.ts +2 -0
- package/dist/commands/compatible-files.js +9 -0
- package/dist/commands/compatible-intake.d.ts +8 -0
- package/dist/commands/compatible-intake.js +3 -0
- package/dist/commands/compatible-manifest.d.ts +4 -0
- package/dist/commands/compatible-manifest.js +76 -0
- package/dist/commands/compatible-packages.d.ts +10 -0
- package/dist/commands/compatible-packages.js +25 -0
- package/dist/commands/compatible-snapshot.d.ts +29 -0
- package/dist/commands/compatible-snapshot.js +43 -0
- package/dist/commands/compatible-values.d.ts +22 -0
- package/dist/commands/compatible-values.js +107 -0
- package/dist/commands/compatible.d.ts +26 -0
- package/dist/commands/compatible.en.d.ts +29 -0
- package/dist/commands/compatible.en.js +29 -0
- package/dist/commands/compatible.es.json +29 -0
- package/dist/commands/compatible.js +206 -0
- package/dist/commands/coverage.d.ts +16 -0
- package/dist/commands/coverage.js +50 -0
- package/dist/commands/create-block.d.ts +19 -0
- package/dist/commands/create-block.js +59 -0
- package/dist/commands/create-steps.d.ts +13 -0
- package/dist/commands/create-steps.en.d.ts +27 -0
- package/dist/commands/create-steps.en.js +28 -0
- package/dist/commands/create-steps.js +134 -0
- package/dist/commands/create-template.d.ts +5 -0
- package/dist/commands/create-template.js +50 -0
- package/dist/commands/create.d.ts +31 -0
- package/dist/commands/create.en.d.ts +7 -0
- package/dist/commands/create.en.js +7 -0
- package/dist/commands/create.es.d.ts +7 -0
- package/dist/commands/create.es.js +7 -0
- package/dist/commands/create.js +214 -0
- package/dist/commands/db.d.ts +7 -0
- package/dist/commands/db.js +51 -0
- package/dist/commands/design/check.d.ts +17 -0
- package/dist/commands/design/check.js +220 -0
- package/dist/commands/design/diff.d.ts +43 -0
- package/dist/commands/design/diff.js +101 -0
- package/dist/commands/design/index.d.ts +3 -0
- package/dist/commands/design/index.js +19 -0
- package/dist/commands/design/reach.d.ts +4 -0
- package/dist/commands/design/reach.js +61 -0
- package/dist/commands/design/rules.d.ts +20 -0
- package/dist/commands/design/rules.js +108 -0
- package/dist/commands/design/sources.d.ts +33 -0
- package/dist/commands/design/sources.js +132 -0
- package/dist/commands/design/state.d.ts +22 -0
- package/dist/commands/design/state.js +56 -0
- package/dist/commands/design/tells-text.d.ts +2 -0
- package/dist/commands/design/tells-text.js +26 -0
- package/dist/commands/design/tells.d.ts +11 -0
- package/dist/commands/design/tells.en.d.ts +11 -0
- package/dist/commands/design/tells.en.js +11 -0
- package/dist/commands/design/tells.es.d.ts +2 -0
- package/dist/commands/design/tells.es.js +11 -0
- package/dist/commands/design/tells.js +219 -0
- package/dist/commands/design/theme-sources.d.ts +6 -0
- package/dist/commands/design/theme-sources.js +68 -0
- package/dist/commands/dev-expo-cache.d.ts +8 -0
- package/dist/commands/dev-expo-cache.js +26 -0
- package/dist/commands/dev-output.d.ts +3 -0
- package/dist/commands/dev-output.js +71 -0
- package/dist/commands/dev-ready.d.ts +4 -0
- package/dist/commands/dev-ready.js +47 -0
- package/dist/commands/dev.d.ts +56 -0
- package/dist/commands/dev.js +244 -0
- package/dist/commands/extension/add-source.d.ts +22 -0
- package/dist/commands/extension/add-source.js +76 -0
- package/dist/commands/extension/add.d.ts +9 -0
- package/dist/commands/extension/add.js +201 -0
- package/dist/commands/extension/catalog-cache.d.ts +32 -0
- package/dist/commands/extension/catalog-cache.js +73 -0
- package/dist/commands/extension/catalog-commands.d.ts +23 -0
- package/dist/commands/extension/catalog-commands.js +96 -0
- package/dist/commands/extension/catalog-installed.d.ts +41 -0
- package/dist/commands/extension/catalog-installed.js +162 -0
- package/dist/commands/extension/catalog.d.ts +64 -0
- package/dist/commands/extension/catalog.js +146 -0
- package/dist/commands/extension/config-text.d.ts +20 -0
- package/dist/commands/extension/config-text.js +123 -0
- package/dist/commands/extension/config-tokens.d.ts +9 -0
- package/dist/commands/extension/config-tokens.js +51 -0
- package/dist/commands/extension/export.d.ts +9 -0
- package/dist/commands/extension/export.js +26 -0
- package/dist/commands/extension/generate.d.ts +14 -0
- package/dist/commands/extension/generate.js +106 -0
- package/dist/commands/extension/grant-check.d.ts +20 -0
- package/dist/commands/extension/grant-check.js +27 -0
- package/dist/commands/extension/grants.d.ts +9 -0
- package/dist/commands/extension/grants.js +79 -0
- package/dist/commands/extension/index.d.ts +3 -0
- package/dist/commands/extension/index.js +38 -0
- package/dist/commands/extension/install.en.d.ts +13 -0
- package/dist/commands/extension/install.en.js +13 -0
- package/dist/commands/extension/install.es.d.ts +13 -0
- package/dist/commands/extension/install.es.js +13 -0
- package/dist/commands/extension/places-approval.d.ts +71 -0
- package/dist/commands/extension/places-approval.js +179 -0
- package/dist/commands/extension/places-messages.d.ts +2 -0
- package/dist/commands/extension/places-messages.js +5 -0
- package/dist/commands/extension/places-terminal.d.ts +13 -0
- package/dist/commands/extension/places-terminal.js +65 -0
- package/dist/commands/extension/places.en.d.ts +26 -0
- package/dist/commands/extension/places.en.js +24 -0
- package/dist/commands/extension/places.es.d.ts +26 -0
- package/dist/commands/extension/places.es.js +24 -0
- package/dist/commands/extension/preflight.d.ts +7 -0
- package/dist/commands/extension/preflight.en.d.ts +3 -0
- package/dist/commands/extension/preflight.en.js +3 -0
- package/dist/commands/extension/preflight.es.json +3 -0
- package/dist/commands/extension/preflight.js +72 -0
- package/dist/commands/extension/remove.d.ts +11 -0
- package/dist/commands/extension/remove.js +73 -0
- package/dist/commands/extension/steps.d.ts +50 -0
- package/dist/commands/extension/steps.en.d.ts +8 -0
- package/dist/commands/extension/steps.en.js +9 -0
- package/dist/commands/extension/steps.js +196 -0
- package/dist/commands/extension/surfaces.d.ts +27 -0
- package/dist/commands/extension/surfaces.js +50 -0
- package/dist/commands/features.d.ts +7 -0
- package/dist/commands/features.js +53 -0
- package/dist/commands/generated-file.d.ts +2 -0
- package/dist/commands/generated-file.js +9 -0
- package/dist/commands/i18n-extensions.d.ts +12 -0
- package/dist/commands/i18n-extensions.js +73 -0
- package/dist/commands/i18n-screens.d.ts +16 -0
- package/dist/commands/i18n-screens.js +138 -0
- package/dist/commands/i18n-translate.d.ts +90 -0
- package/dist/commands/i18n-translate.js +156 -0
- package/dist/commands/i18n.d.ts +18 -0
- package/dist/commands/i18n.js +62 -0
- package/dist/commands/intake-text.d.ts +4 -0
- package/dist/commands/intake-text.js +16 -0
- package/dist/commands/intake.d.ts +14 -0
- package/dist/commands/intake.en.d.ts +11 -0
- package/dist/commands/intake.en.js +11 -0
- package/dist/commands/intake.es.d.ts +2 -0
- package/dist/commands/intake.es.js +11 -0
- package/dist/commands/intake.js +61 -0
- package/dist/commands/intl-locales.d.ts +12 -0
- package/dist/commands/intl-locales.en.d.ts +9 -0
- package/dist/commands/intl-locales.en.js +9 -0
- package/dist/commands/intl-locales.es.d.ts +2 -0
- package/dist/commands/intl-locales.es.js +9 -0
- package/dist/commands/intl-locales.js +103 -0
- package/dist/commands/inventory-files.d.ts +27 -0
- package/dist/commands/inventory-files.js +98 -0
- package/dist/commands/inventory-screens.d.ts +17 -0
- package/dist/commands/inventory-screens.js +82 -0
- package/dist/commands/inventory.d.ts +163 -0
- package/dist/commands/inventory.js +223 -0
- package/dist/commands/jobs.d.ts +27 -0
- package/dist/commands/jobs.js +68 -0
- package/dist/commands/json.d.ts +10 -0
- package/dist/commands/json.js +24 -0
- package/dist/commands/link.d.ts +13 -0
- package/dist/commands/link.en.d.ts +3 -0
- package/dist/commands/link.en.js +3 -0
- package/dist/commands/link.es.d.ts +3 -0
- package/dist/commands/link.es.js +3 -0
- package/dist/commands/link.js +96 -0
- package/dist/commands/main-ref.d.ts +4 -0
- package/dist/commands/main-ref.js +18 -0
- package/dist/commands/mcp-commands.d.ts +19 -0
- package/dist/commands/mcp-commands.js +136 -0
- package/dist/commands/mcp-database.d.ts +11 -0
- package/dist/commands/mcp-database.js +39 -0
- package/dist/commands/mcp-docs.d.ts +2 -0
- package/dist/commands/mcp-docs.js +113 -0
- package/dist/commands/mcp-tests.d.ts +6 -0
- package/dist/commands/mcp-tests.js +28 -0
- package/dist/commands/mcp.d.ts +10 -0
- package/dist/commands/mcp.en.d.ts +3 -0
- package/dist/commands/mcp.en.js +3 -0
- package/dist/commands/mcp.es.d.ts +3 -0
- package/dist/commands/mcp.es.js +3 -0
- package/dist/commands/mcp.js +116 -0
- package/dist/commands/merge-check.d.ts +21 -0
- package/dist/commands/merge-check.js +82 -0
- package/dist/commands/merge-install-links.d.ts +12 -0
- package/dist/commands/merge-install-links.js +118 -0
- package/dist/commands/merge-install-packages.d.ts +21 -0
- package/dist/commands/merge-install-packages.js +75 -0
- package/dist/commands/merge-install-patches.d.ts +8 -0
- package/dist/commands/merge-install-patches.js +37 -0
- package/dist/commands/merge-install-rules.d.ts +38 -0
- package/dist/commands/merge-install-rules.js +288 -0
- package/dist/commands/merge-install-settings.d.ts +18 -0
- package/dist/commands/merge-install-settings.js +55 -0
- package/dist/commands/merge-install.d.ts +46 -0
- package/dist/commands/merge-install.js +125 -0
- package/dist/commands/migrate-check.d.ts +35 -0
- package/dist/commands/migrate-check.js +142 -0
- package/dist/commands/migrate-create-database.d.ts +5 -0
- package/dist/commands/migrate-create-database.js +104 -0
- package/dist/commands/migrate-create-messages.d.ts +10 -0
- package/dist/commands/migrate-create-messages.js +33 -0
- package/dist/commands/migrate-create-protocol.d.ts +91 -0
- package/dist/commands/migrate-create-protocol.js +34 -0
- package/dist/commands/migrate-create.d.ts +1 -0
- package/dist/commands/migrate-create.en.d.ts +17 -0
- package/dist/commands/migrate-create.en.js +17 -0
- package/dist/commands/migrate-create.es.d.ts +2 -0
- package/dist/commands/migrate-create.es.js +17 -0
- package/dist/commands/migrate-create.js +101 -0
- package/dist/commands/migrate-status.d.ts +2 -0
- package/dist/commands/migrate-status.en.d.ts +8 -0
- package/dist/commands/migrate-status.en.js +14 -0
- package/dist/commands/migrate-status.js +30 -0
- package/dist/commands/migration-removals.d.ts +29 -0
- package/dist/commands/migration-removals.js +130 -0
- package/dist/commands/owner.d.ts +21 -0
- package/dist/commands/owner.en.d.ts +8 -0
- package/dist/commands/owner.en.js +9 -0
- package/dist/commands/owner.js +79 -0
- package/dist/commands/parse-change-trailers.d.ts +3 -0
- package/dist/commands/parse-change-trailers.js +13 -0
- package/dist/commands/pg-tools.d.ts +24 -0
- package/dist/commands/pg-tools.js +133 -0
- package/dist/commands/phone-peers.d.ts +16 -0
- package/dist/commands/phone-peers.en.d.ts +3 -0
- package/dist/commands/phone-peers.en.js +3 -0
- package/dist/commands/phone-peers.es.d.ts +2 -0
- package/dist/commands/phone-peers.es.js +3 -0
- package/dist/commands/phone-peers.js +72 -0
- package/dist/commands/platforms-list.d.ts +11 -0
- package/dist/commands/platforms-list.js +80 -0
- package/dist/commands/platforms.d.ts +28 -0
- package/dist/commands/platforms.en.d.ts +20 -0
- package/dist/commands/platforms.en.js +21 -0
- package/dist/commands/platforms.js +118 -0
- package/dist/commands/prototype/access-denied.d.ts +2 -0
- package/dist/commands/prototype/access-denied.js +11 -0
- package/dist/commands/prototype/approval-contract.d.ts +136 -0
- package/dist/commands/prototype/approval-contract.js +10 -0
- package/dist/commands/prototype/browser.d.ts +56 -0
- package/dist/commands/prototype/browser.js +230 -0
- package/dist/commands/prototype/checks.d.ts +67 -0
- package/dist/commands/prototype/checks.js +134 -0
- package/dist/commands/prototype/commit-model.d.ts +22 -0
- package/dist/commands/prototype/commit-model.js +40 -0
- package/dist/commands/prototype/compare-failure.d.ts +16 -0
- package/dist/commands/prototype/compare-failure.js +33 -0
- package/dist/commands/prototype/compare.d.ts +25 -0
- package/dist/commands/prototype/compare.js +72 -0
- package/dist/commands/prototype/data-history.d.ts +8 -0
- package/dist/commands/prototype/data-history.js +175 -0
- package/dist/commands/prototype/data-model.d.ts +48 -0
- package/dist/commands/prototype/data-model.js +135 -0
- package/dist/commands/prototype/data.d.ts +34 -0
- package/dist/commands/prototype/data.js +128 -0
- package/dist/commands/prototype/drawn-text.js +88 -0
- package/dist/commands/prototype/export.d.ts +28 -0
- package/dist/commands/prototype/export.js +101 -0
- package/dist/commands/prototype/final-approval-grant.d.ts +43 -0
- package/dist/commands/prototype/final-approval-grant.js +171 -0
- package/dist/commands/prototype/final-approval-read.d.ts +9 -0
- package/dist/commands/prototype/final-approval-read.js +186 -0
- package/dist/commands/prototype/final-approval-write.d.ts +6 -0
- package/dist/commands/prototype/final-approval-write.js +108 -0
- package/dist/commands/prototype/final-approval.d.ts +11 -0
- package/dist/commands/prototype/final-approval.js +186 -0
- package/dist/commands/prototype/font-samples.d.ts +18 -0
- package/dist/commands/prototype/font-samples.js +81 -0
- package/dist/commands/prototype/fonts.d.ts +4 -0
- package/dist/commands/prototype/fonts.js +121 -0
- package/dist/commands/prototype/full-shot.d.ts +23 -0
- package/dist/commands/prototype/full-shot.js +57 -0
- package/dist/commands/prototype/index.d.ts +3 -0
- package/dist/commands/prototype/index.js +34 -0
- package/dist/commands/prototype/legacy-versions.d.ts +3 -0
- package/dist/commands/prototype/legacy-versions.js +20 -0
- package/dist/commands/prototype/load-failure.d.ts +7 -0
- package/dist/commands/prototype/load-failure.js +99 -0
- package/dist/commands/prototype/load-location.d.ts +13 -0
- package/dist/commands/prototype/load-location.js +64 -0
- package/dist/commands/prototype/load-versions.d.ts +3 -0
- package/dist/commands/prototype/load-versions.js +26 -0
- package/dist/commands/prototype/measure.d.ts +3 -0
- package/dist/commands/prototype/measure.js +112 -0
- package/dist/commands/prototype/merge-approval.d.ts +24 -0
- package/dist/commands/prototype/merge-approval.js +29 -0
- package/dist/commands/prototype/messages.d.ts +5 -0
- package/dist/commands/prototype/messages.en.d.ts +167 -0
- package/dist/commands/prototype/messages.en.js +168 -0
- package/dist/commands/prototype/messages.js +174 -0
- package/dist/commands/prototype/milestone-blobs.d.ts +8 -0
- package/dist/commands/prototype/milestone-blobs.js +53 -0
- package/dist/commands/prototype/milestone-data.d.ts +10 -0
- package/dist/commands/prototype/milestone-data.js +50 -0
- package/dist/commands/prototype/milestone-git.d.ts +9 -0
- package/dist/commands/prototype/milestone-git.js +59 -0
- package/dist/commands/prototype/milestone-hidden.d.ts +3 -0
- package/dist/commands/prototype/milestone-hidden.js +42 -0
- package/dist/commands/prototype/milestone-history.d.ts +8 -0
- package/dist/commands/prototype/milestone-history.js +80 -0
- package/dist/commands/prototype/milestone-inputs.d.ts +39 -0
- package/dist/commands/prototype/milestone-inputs.js +200 -0
- package/dist/commands/prototype/milestone-key.d.ts +10 -0
- package/dist/commands/prototype/milestone-key.js +75 -0
- package/dist/commands/prototype/milestone-lockfile.d.ts +8 -0
- package/dist/commands/prototype/milestone-lockfile.js +55 -0
- package/dist/commands/prototype/milestone-manifests.d.ts +13 -0
- package/dist/commands/prototype/milestone-manifests.js +122 -0
- package/dist/commands/prototype/milestone-membership.d.ts +49 -0
- package/dist/commands/prototype/milestone-membership.js +168 -0
- package/dist/commands/prototype/milestone-packages.d.ts +14 -0
- package/dist/commands/prototype/milestone-packages.js +63 -0
- package/dist/commands/prototype/milestone-policy.d.ts +26 -0
- package/dist/commands/prototype/milestone-policy.js +110 -0
- package/dist/commands/prototype/milestone-references.d.ts +33 -0
- package/dist/commands/prototype/milestone-references.js +173 -0
- package/dist/commands/prototype/milestone-source-tree.d.ts +10 -0
- package/dist/commands/prototype/milestone-source-tree.js +75 -0
- package/dist/commands/prototype/milestone-source.d.ts +36 -0
- package/dist/commands/prototype/milestone-source.js +136 -0
- package/dist/commands/prototype/milestone-stock.d.ts +46 -0
- package/dist/commands/prototype/milestone-stock.js +99 -0
- package/dist/commands/prototype/milestone-stock.json +156 -0
- package/dist/commands/prototype/milestone-tokens-jsx.d.ts +2 -0
- package/dist/commands/prototype/milestone-tokens-jsx.js +96 -0
- package/dist/commands/prototype/milestone-tokens.d.ts +48 -0
- package/dist/commands/prototype/milestone-tokens.js +283 -0
- package/dist/commands/prototype/milestone-trees.d.ts +8 -0
- package/dist/commands/prototype/milestone-trees.js +55 -0
- package/dist/commands/prototype/milestone-versions.d.ts +66 -0
- package/dist/commands/prototype/milestone-versions.js +82 -0
- package/dist/commands/prototype/module-errors.d.ts +9 -0
- package/dist/commands/prototype/module-errors.js +103 -0
- package/dist/commands/prototype/own-scenes.d.ts +11 -0
- package/dist/commands/prototype/own-scenes.js +38 -0
- package/dist/commands/prototype/pick-version.d.ts +4 -0
- package/dist/commands/prototype/pick-version.js +23 -0
- package/dist/commands/prototype/readable.d.ts +63 -0
- package/dist/commands/prototype/readable.js +68 -0
- package/dist/commands/prototype/record-checkout.d.ts +17 -0
- package/dist/commands/prototype/record-checkout.js +91 -0
- package/dist/commands/prototype/record-look-child.d.ts +1 -0
- package/dist/commands/prototype/record-look-child.js +64 -0
- package/dist/commands/prototype/record-look-copy.d.ts +30 -0
- package/dist/commands/prototype/record-look-copy.js +234 -0
- package/dist/commands/prototype/record-look-paths.d.ts +1 -0
- package/dist/commands/prototype/record-look-paths.js +28 -0
- package/dist/commands/prototype/record-look-read.d.ts +28 -0
- package/dist/commands/prototype/record-look-read.js +85 -0
- package/dist/commands/prototype/record-look.d.ts +20 -0
- package/dist/commands/prototype/record-look.js +73 -0
- package/dist/commands/prototype/record-paths.d.ts +16 -0
- package/dist/commands/prototype/record-paths.js +38 -0
- package/dist/commands/prototype/report.d.ts +109 -0
- package/dist/commands/prototype/report.js +82 -0
- package/dist/commands/prototype/resolve-versions.d.ts +19 -0
- package/dist/commands/prototype/resolve-versions.js +16 -0
- package/dist/commands/prototype/review-snapshot.d.ts +40 -0
- package/dist/commands/prototype/review-snapshot.js +90 -0
- package/dist/commands/prototype/sample-data.d.ts +3 -0
- package/dist/commands/prototype/sample-data.js +29 -0
- package/dist/commands/prototype/scene-errors.d.ts +20 -0
- package/dist/commands/prototype/scene-errors.js +21 -0
- package/dist/commands/prototype/scene-load.d.ts +13 -0
- package/dist/commands/prototype/scene-load.js +109 -0
- package/dist/commands/prototype/scene-render.d.ts +16 -0
- package/dist/commands/prototype/scene-render.js +193 -0
- package/dist/commands/prototype/scene-selection.d.ts +10 -0
- package/dist/commands/prototype/scene-selection.js +36 -0
- package/dist/commands/prototype/scene.d.ts +69 -0
- package/dist/commands/prototype/scene.js +104 -0
- package/dist/commands/prototype/snapshot-ancestor.d.ts +11 -0
- package/dist/commands/prototype/snapshot-ancestor.js +82 -0
- package/dist/commands/prototype/snapshot-bundle.d.ts +44 -0
- package/dist/commands/prototype/snapshot-bundle.js +112 -0
- package/dist/commands/prototype/snapshot-catalog.d.ts +5 -0
- package/dist/commands/prototype/snapshot-catalog.js +24 -0
- package/dist/commands/prototype/snapshot-checkout.d.ts +15 -0
- package/dist/commands/prototype/snapshot-checkout.js +116 -0
- package/dist/commands/prototype/snapshot-command.d.ts +17 -0
- package/dist/commands/prototype/snapshot-command.js +191 -0
- package/dist/commands/prototype/snapshot-completion.d.ts +49 -0
- package/dist/commands/prototype/snapshot-completion.js +99 -0
- package/dist/commands/prototype/snapshot-dependencies.d.ts +9 -0
- package/dist/commands/prototype/snapshot-dependencies.js +152 -0
- package/dist/commands/prototype/snapshot-env.d.ts +27 -0
- package/dist/commands/prototype/snapshot-env.js +80 -0
- package/dist/commands/prototype/snapshot-hashes.d.ts +4 -0
- package/dist/commands/prototype/snapshot-hashes.js +27 -0
- package/dist/commands/prototype/snapshot-identical.d.ts +9 -0
- package/dist/commands/prototype/snapshot-identical.js +64 -0
- package/dist/commands/prototype/snapshot-inputs.d.ts +11 -0
- package/dist/commands/prototype/snapshot-inputs.js +215 -0
- package/dist/commands/prototype/snapshot-owners.d.ts +25 -0
- package/dist/commands/prototype/snapshot-owners.js +87 -0
- package/dist/commands/prototype/snapshot-pace.d.ts +27 -0
- package/dist/commands/prototype/snapshot-pace.js +58 -0
- package/dist/commands/prototype/snapshot-progress.d.ts +21 -0
- package/dist/commands/prototype/snapshot-progress.js +217 -0
- package/dist/commands/prototype/snapshot-recovery.d.ts +33 -0
- package/dist/commands/prototype/snapshot-recovery.js +146 -0
- package/dist/commands/prototype/snapshot-refused.d.ts +11 -0
- package/dist/commands/prototype/snapshot-refused.js +17 -0
- package/dist/commands/prototype/snapshot-report.d.ts +8 -0
- package/dist/commands/prototype/snapshot-report.js +153 -0
- package/dist/commands/prototype/snapshot-requests.d.ts +9 -0
- package/dist/commands/prototype/snapshot-requests.js +62 -0
- package/dist/commands/prototype/snapshot-reuse.d.ts +55 -0
- package/dist/commands/prototype/snapshot-reuse.js +105 -0
- package/dist/commands/prototype/snapshot-runner.d.ts +11 -0
- package/dist/commands/prototype/snapshot-runner.js +169 -0
- package/dist/commands/prototype/snapshot-servers.d.ts +32 -0
- package/dist/commands/prototype/snapshot-servers.js +195 -0
- package/dist/commands/prototype/snapshot-setup.d.ts +41 -0
- package/dist/commands/prototype/snapshot-setup.js +121 -0
- package/dist/commands/prototype/snapshot-shared-shots.d.ts +15 -0
- package/dist/commands/prototype/snapshot-shared-shots.js +147 -0
- package/dist/commands/prototype/snapshot-shots.d.ts +16 -0
- package/dist/commands/prototype/snapshot-shots.js +77 -0
- package/dist/commands/prototype/snapshot-signals.d.ts +5 -0
- package/dist/commands/prototype/snapshot-signals.js +25 -0
- package/dist/commands/prototype/snapshot-slots.d.ts +16 -0
- package/dist/commands/prototype/snapshot-slots.js +58 -0
- package/dist/commands/prototype/snapshot-storage.d.ts +17 -0
- package/dist/commands/prototype/snapshot-storage.js +251 -0
- package/dist/commands/prototype/snapshot-themes.d.ts +11 -0
- package/dist/commands/prototype/snapshot-themes.js +15 -0
- package/dist/commands/prototype/snapshot-trust.d.ts +9 -0
- package/dist/commands/prototype/snapshot-trust.js +34 -0
- package/dist/commands/prototype/snapshot.d.ts +89 -0
- package/dist/commands/prototype/snapshot.js +127 -0
- package/dist/commands/prototype/supersede.d.ts +26 -0
- package/dist/commands/prototype/supersede.js +69 -0
- package/dist/commands/prototype/validation.d.ts +4 -0
- package/dist/commands/prototype/validation.js +19 -0
- package/dist/commands/prototype/version-commands.d.ts +11 -0
- package/dist/commands/prototype/version-commands.js +159 -0
- package/dist/commands/prototype/version-snapshot.d.ts +14 -0
- package/dist/commands/prototype/version-snapshot.js +41 -0
- package/dist/commands/prototype/versions.d.ts +125 -0
- package/dist/commands/prototype/versions.js +203 -0
- package/dist/commands/remove-links.d.ts +8 -0
- package/dist/commands/remove-links.js +52 -0
- package/dist/commands/review.d.ts +34 -0
- package/dist/commands/review.js +65 -0
- package/dist/commands/safe-git.d.ts +39 -0
- package/dist/commands/safe-git.js +85 -0
- package/dist/commands/server/approval.d.ts +25 -0
- package/dist/commands/server/approval.js +78 -0
- package/dist/commands/server/bucket.d.ts +11 -0
- package/dist/commands/server/bucket.js +30 -0
- package/dist/commands/server/build.d.ts +66 -0
- package/dist/commands/server/build.js +130 -0
- package/dist/commands/server/caddyfile.d.ts +15 -0
- package/dist/commands/server/caddyfile.js +124 -0
- package/dist/commands/server/deploy-chain.d.ts +5 -0
- package/dist/commands/server/deploy-chain.en.d.ts +6 -0
- package/dist/commands/server/deploy-chain.en.js +6 -0
- package/dist/commands/server/deploy-chain.js +54 -0
- package/dist/commands/server/deploy-checks.d.ts +19 -0
- package/dist/commands/server/deploy-checks.js +93 -0
- package/dist/commands/server/deploy-local.d.ts +15 -0
- package/dist/commands/server/deploy-local.js +45 -0
- package/dist/commands/server/deploy-output.d.ts +5 -0
- package/dist/commands/server/deploy-output.js +30 -0
- package/dist/commands/server/deploy-result.d.ts +45 -0
- package/dist/commands/server/deploy-result.js +97 -0
- package/dist/commands/server/deploy-script.d.ts +81 -0
- package/dist/commands/server/deploy-script.js +233 -0
- package/dist/commands/server/deploy-warnings.d.ts +11 -0
- package/dist/commands/server/deploy-warnings.js +26 -0
- package/dist/commands/server/deploy.d.ts +41 -0
- package/dist/commands/server/deploy.js +179 -0
- package/dist/commands/server/files.d.ts +78 -0
- package/dist/commands/server/files.js +196 -0
- package/dist/commands/server/image-check.d.ts +21 -0
- package/dist/commands/server/image-check.js +60 -0
- package/dist/commands/server/image-id.d.ts +10 -0
- package/dist/commands/server/image-id.js +71 -0
- package/dist/commands/server/image.d.ts +54 -0
- package/dist/commands/server/image.js +92 -0
- package/dist/commands/server/index.d.ts +3 -0
- package/dist/commands/server/index.js +36 -0
- package/dist/commands/server/revoke-intake.d.ts +17 -0
- package/dist/commands/server/revoke-intake.en.d.ts +9 -0
- package/dist/commands/server/revoke-intake.en.js +9 -0
- package/dist/commands/server/revoke-intake.es.d.ts +2 -0
- package/dist/commands/server/revoke-intake.es.js +9 -0
- package/dist/commands/server/revoke-intake.js +52 -0
- package/dist/commands/server/script.d.ts +18 -0
- package/dist/commands/server/script.js +129 -0
- package/dist/commands/server/setup.d.ts +85 -0
- package/dist/commands/server/setup.js +217 -0
- package/dist/commands/server/ssh.d.ts +30 -0
- package/dist/commands/server/ssh.js +71 -0
- package/dist/commands/services/compose-up.d.ts +2 -0
- package/dist/commands/services/compose-up.js +30 -0
- package/dist/commands/services/compose.d.ts +21 -0
- package/dist/commands/services/compose.js +75 -0
- package/dist/commands/services/index.d.ts +12 -0
- package/dist/commands/services/index.js +40 -0
- package/dist/commands/services/list.d.ts +32 -0
- package/dist/commands/services/list.js +58 -0
- package/dist/commands/services/postgres-probe.d.ts +1 -0
- package/dist/commands/services/postgres-probe.js +9 -0
- package/dist/commands/services/probes.d.ts +4 -0
- package/dist/commands/services/probes.js +51 -0
- package/dist/commands/services/reachability.d.ts +4 -0
- package/dist/commands/services/reachability.en.d.ts +3 -0
- package/dist/commands/services/reachability.en.js +3 -0
- package/dist/commands/services/reachability.es.json +3 -0
- package/dist/commands/services/reachability.js +63 -0
- package/dist/commands/services/volumes.d.ts +4 -0
- package/dist/commands/services/volumes.js +126 -0
- package/dist/commands/shown-files.d.ts +7 -0
- package/dist/commands/shown-files.js +14 -0
- package/dist/commands/size.d.ts +17 -0
- package/dist/commands/size.js +58 -0
- package/dist/commands/skills-list.d.ts +26 -0
- package/dist/commands/skills-list.js +86 -0
- package/dist/commands/stop.d.ts +67 -0
- package/dist/commands/stop.js +209 -0
- package/dist/commands/store-id.d.ts +11 -0
- package/dist/commands/store-id.js +53 -0
- package/dist/commands/turn.d.ts +34 -0
- package/dist/commands/turn.en.d.ts +11 -0
- package/dist/commands/turn.en.js +11 -0
- package/dist/commands/turn.js +107 -0
- package/dist/commands/ui/access.d.ts +6 -0
- package/dist/commands/ui/access.js +11 -0
- package/dist/commands/ui/agent-check-route.d.ts +3 -0
- package/dist/commands/ui/agent-check-route.js +20 -0
- package/dist/commands/ui/agent-discovery.d.ts +3 -0
- package/dist/commands/ui/agent-discovery.js +28 -0
- package/dist/commands/ui/agents-route.d.ts +3 -0
- package/dist/commands/ui/agents-route.js +57 -0
- package/dist/commands/ui/app-icon-route.d.ts +4 -0
- package/dist/commands/ui/app-icon-route.js +128 -0
- package/dist/commands/ui/app-icon.d.ts +24 -0
- package/dist/commands/ui/app-icon.en.d.ts +7 -0
- package/dist/commands/ui/app-icon.en.js +7 -0
- package/dist/commands/ui/app-icon.es.d.ts +7 -0
- package/dist/commands/ui/app-icon.es.js +7 -0
- package/dist/commands/ui/app-icon.js +77 -0
- package/dist/commands/ui/app-probe.d.ts +6 -0
- package/dist/commands/ui/app-probe.js +97 -0
- package/dist/commands/ui/approval-artifact.d.ts +15 -0
- package/dist/commands/ui/approval-artifact.js +202 -0
- package/dist/commands/ui/approval-authority.d.ts +88 -0
- package/dist/commands/ui/approval-authority.en.d.ts +5 -0
- package/dist/commands/ui/approval-authority.en.js +5 -0
- package/dist/commands/ui/approval-authority.es.d.ts +5 -0
- package/dist/commands/ui/approval-authority.es.js +5 -0
- package/dist/commands/ui/approval-authority.js +157 -0
- package/dist/commands/ui/approve-evidence.d.ts +9 -0
- package/dist/commands/ui/approve-evidence.js +55 -0
- package/dist/commands/ui/approve.d.ts +2 -0
- package/dist/commands/ui/approve.en.d.ts +18 -0
- package/dist/commands/ui/approve.en.js +18 -0
- package/dist/commands/ui/approve.es.d.ts +18 -0
- package/dist/commands/ui/approve.es.js +18 -0
- package/dist/commands/ui/approve.js +87 -0
- package/dist/commands/ui/authority-git.d.ts +6 -0
- package/dist/commands/ui/authority-git.js +7 -0
- package/dist/commands/ui/autopilot-declarations.d.ts +6 -0
- package/dist/commands/ui/autopilot-declarations.js +25 -0
- package/dist/commands/ui/autopilot-facts.d.ts +3 -0
- package/dist/commands/ui/autopilot-facts.js +57 -0
- package/dist/commands/ui/autopilot-links.d.ts +3 -0
- package/dist/commands/ui/autopilot-links.js +37 -0
- package/dist/commands/ui/autopilot-loop.d.ts +13 -0
- package/dist/commands/ui/autopilot-loop.js +202 -0
- package/dist/commands/ui/autopilot-main-dirty.d.ts +11 -0
- package/dist/commands/ui/autopilot-main-dirty.js +34 -0
- package/dist/commands/ui/autopilot-merge.d.ts +7 -0
- package/dist/commands/ui/autopilot-merge.js +197 -0
- package/dist/commands/ui/autopilot-person.d.ts +18 -0
- package/dist/commands/ui/autopilot-person.js +33 -0
- package/dist/commands/ui/autopilot-protection.d.ts +8 -0
- package/dist/commands/ui/autopilot-protection.js +170 -0
- package/dist/commands/ui/autopilot-records.d.ts +123 -0
- package/dist/commands/ui/autopilot-records.js +228 -0
- package/dist/commands/ui/autopilot.d.ts +13 -0
- package/dist/commands/ui/autopilot.en.d.ts +39 -0
- package/dist/commands/ui/autopilot.en.js +39 -0
- package/dist/commands/ui/autopilot.es.d.ts +39 -0
- package/dist/commands/ui/autopilot.es.js +39 -0
- package/dist/commands/ui/autopilot.js +118 -0
- package/dist/commands/ui/bounded-text.d.ts +4 -0
- package/dist/commands/ui/bounded-text.js +28 -0
- package/dist/commands/ui/brand-approval.d.ts +23 -0
- package/dist/commands/ui/brand-approval.js +90 -0
- package/dist/commands/ui/catch-up.d.ts +5 -0
- package/dist/commands/ui/catch-up.en.d.ts +4 -0
- package/dist/commands/ui/catch-up.en.js +4 -0
- package/dist/commands/ui/catch-up.es.d.ts +4 -0
- package/dist/commands/ui/catch-up.es.js +4 -0
- package/dist/commands/ui/catch-up.js +65 -0
- package/dist/commands/ui/chat/agent-process.d.ts +18 -0
- package/dist/commands/ui/chat/agent-process.js +73 -0
- package/dist/commands/ui/chat/attachments.d.ts +22 -0
- package/dist/commands/ui/chat/attachments.js +69 -0
- package/dist/commands/ui/chat/auto-choice.d.ts +14 -0
- package/dist/commands/ui/chat/auto-choice.en.d.ts +13 -0
- package/dist/commands/ui/chat/auto-choice.en.js +13 -0
- package/dist/commands/ui/chat/auto-choice.es.d.ts +13 -0
- package/dist/commands/ui/chat/auto-choice.es.js +13 -0
- package/dist/commands/ui/chat/auto-choice.js +93 -0
- package/dist/commands/ui/chat/change-save-turn.d.ts +10 -0
- package/dist/commands/ui/chat/change-save-turn.js +33 -0
- package/dist/commands/ui/chat/choice-lines.d.ts +5 -0
- package/dist/commands/ui/chat/choice-lines.js +25 -0
- package/dist/commands/ui/chat/choice-reply.d.ts +3 -0
- package/dist/commands/ui/chat/choice-reply.js +108 -0
- package/dist/commands/ui/chat/claude-task-output.d.ts +5 -0
- package/dist/commands/ui/chat/claude-task-output.js +37 -0
- package/dist/commands/ui/chat/codex-examples.d.ts +9 -0
- package/dist/commands/ui/chat/codex-examples.js +97 -0
- package/dist/commands/ui/chat/codex-idle.d.ts +51 -0
- package/dist/commands/ui/chat/codex-idle.js +84 -0
- package/dist/commands/ui/chat/codex-overrides.d.ts +5 -0
- package/dist/commands/ui/chat/codex-overrides.js +29 -0
- package/dist/commands/ui/chat/codex-settings.d.ts +7 -0
- package/dist/commands/ui/chat/codex-settings.js +57 -0
- package/dist/commands/ui/chat/coding-approval.d.ts +14 -0
- package/dist/commands/ui/chat/coding-approval.js +87 -0
- package/dist/commands/ui/chat/defs.d.ts +22 -0
- package/dist/commands/ui/chat/defs.js +97 -0
- package/dist/commands/ui/chat/detail.d.ts +10 -0
- package/dist/commands/ui/chat/detail.js +44 -0
- package/dist/commands/ui/chat/failure.d.ts +4 -0
- package/dist/commands/ui/chat/failure.js +198 -0
- package/dist/commands/ui/chat/find.d.ts +4 -0
- package/dist/commands/ui/chat/find.js +112 -0
- package/dist/commands/ui/chat/held-merges.d.ts +33 -0
- package/dist/commands/ui/chat/held-merges.js +212 -0
- package/dist/commands/ui/chat/install.d.ts +26 -0
- package/dist/commands/ui/chat/install.js +107 -0
- package/dist/commands/ui/chat/launch-ids.d.ts +7 -0
- package/dist/commands/ui/chat/launch-ids.js +40 -0
- package/dist/commands/ui/chat/launch-input.d.ts +22 -0
- package/dist/commands/ui/chat/launch-input.js +80 -0
- package/dist/commands/ui/chat/linked.d.ts +3 -0
- package/dist/commands/ui/chat/linked.js +85 -0
- package/dist/commands/ui/chat/migration-file-worker.d.ts +1 -0
- package/dist/commands/ui/chat/migration-file-worker.js +38 -0
- package/dist/commands/ui/chat/migration-file.d.ts +11 -0
- package/dist/commands/ui/chat/migration-file.js +38 -0
- package/dist/commands/ui/chat/migration-turn.d.ts +24 -0
- package/dist/commands/ui/chat/migration-turn.js +103 -0
- package/dist/commands/ui/chat/migration-worktree.d.ts +3 -0
- package/dist/commands/ui/chat/migration-worktree.js +56 -0
- package/dist/commands/ui/chat/orphans.d.ts +19 -0
- package/dist/commands/ui/chat/orphans.js +185 -0
- package/dist/commands/ui/chat/parse-claude.d.ts +9 -0
- package/dist/commands/ui/chat/parse-claude.js +148 -0
- package/dist/commands/ui/chat/parse-codex.d.ts +3 -0
- package/dist/commands/ui/chat/parse-codex.js +65 -0
- package/dist/commands/ui/chat/parse-opencode.d.ts +2 -0
- package/dist/commands/ui/chat/parse-opencode.js +42 -0
- package/dist/commands/ui/chat/permissions.d.ts +33 -0
- package/dist/commands/ui/chat/permissions.js +275 -0
- package/dist/commands/ui/chat/person.d.ts +28 -0
- package/dist/commands/ui/chat/person.js +42 -0
- package/dist/commands/ui/chat/planning.d.ts +2 -0
- package/dist/commands/ui/chat/planning.js +36 -0
- package/dist/commands/ui/chat/process-facts.d.ts +42 -0
- package/dist/commands/ui/chat/process-facts.js +194 -0
- package/dist/commands/ui/chat/process.d.ts +7 -0
- package/dist/commands/ui/chat/process.js +220 -0
- package/dist/commands/ui/chat/prompt.d.ts +37 -0
- package/dist/commands/ui/chat/prompt.en.d.ts +67 -0
- package/dist/commands/ui/chat/prompt.en.js +67 -0
- package/dist/commands/ui/chat/prompt.es.d.ts +67 -0
- package/dist/commands/ui/chat/prompt.es.js +67 -0
- package/dist/commands/ui/chat/prompt.js +200 -0
- package/dist/commands/ui/chat/read-target.d.ts +8 -0
- package/dist/commands/ui/chat/read-target.js +93 -0
- package/dist/commands/ui/chat/recorded-turn.d.ts +13 -0
- package/dist/commands/ui/chat/recorded-turn.js +56 -0
- package/dist/commands/ui/chat/resume-failure.d.ts +10 -0
- package/dist/commands/ui/chat/resume-failure.js +65 -0
- package/dist/commands/ui/chat/retry-start.d.ts +9 -0
- package/dist/commands/ui/chat/retry-start.js +20 -0
- package/dist/commands/ui/chat/routes.d.ts +4 -0
- package/dist/commands/ui/chat/routes.js +117 -0
- package/dist/commands/ui/chat/shims.d.ts +8 -0
- package/dist/commands/ui/chat/shims.js +44 -0
- package/dist/commands/ui/chat/shutdown.d.ts +22 -0
- package/dist/commands/ui/chat/shutdown.js +52 -0
- package/dist/commands/ui/chat/step-context.d.ts +3 -0
- package/dist/commands/ui/chat/step-context.en.d.ts +15 -0
- package/dist/commands/ui/chat/step-context.en.js +15 -0
- package/dist/commands/ui/chat/step-context.es.d.ts +15 -0
- package/dist/commands/ui/chat/step-context.es.js +15 -0
- package/dist/commands/ui/chat/step-context.js +74 -0
- package/dist/commands/ui/chat/store.d.ts +32 -0
- package/dist/commands/ui/chat/store.js +228 -0
- package/dist/commands/ui/chat/stream-text.d.ts +4 -0
- package/dist/commands/ui/chat/stream-text.js +17 -0
- package/dist/commands/ui/chat/stream.d.ts +18 -0
- package/dist/commands/ui/chat/stream.en.d.ts +20 -0
- package/dist/commands/ui/chat/stream.en.js +20 -0
- package/dist/commands/ui/chat/stream.es.d.ts +20 -0
- package/dist/commands/ui/chat/stream.es.js +20 -0
- package/dist/commands/ui/chat/stream.js +255 -0
- package/dist/commands/ui/chat/studio-lock.d.ts +45 -0
- package/dist/commands/ui/chat/studio-lock.js +226 -0
- package/dist/commands/ui/chat/studio-session.d.ts +9 -0
- package/dist/commands/ui/chat/studio-session.js +48 -0
- package/dist/commands/ui/chat/summaries.d.ts +20 -0
- package/dist/commands/ui/chat/summaries.js +79 -0
- package/dist/commands/ui/chat/supported-choices.d.ts +34 -0
- package/dist/commands/ui/chat/supported-choices.js +63 -0
- package/dist/commands/ui/chat/turn-fact.d.ts +47 -0
- package/dist/commands/ui/chat/turn-fact.js +50 -0
- package/dist/commands/ui/chat/turn-input.d.ts +20 -0
- package/dist/commands/ui/chat/turn-input.js +83 -0
- package/dist/commands/ui/chat/turn-overrides.d.ts +15 -0
- package/dist/commands/ui/chat/turn-overrides.en.d.ts +8 -0
- package/dist/commands/ui/chat/turn-overrides.en.js +8 -0
- package/dist/commands/ui/chat/turn-overrides.es.d.ts +8 -0
- package/dist/commands/ui/chat/turn-overrides.es.js +8 -0
- package/dist/commands/ui/chat/turn-overrides.js +70 -0
- package/dist/commands/ui/chat/turn-owner.d.ts +34 -0
- package/dist/commands/ui/chat/turn-owner.js +54 -0
- package/dist/commands/ui/chat/turn-reserve.d.ts +4 -0
- package/dist/commands/ui/chat/turn-reserve.js +42 -0
- package/dist/commands/ui/chat/turn-selection.d.ts +15 -0
- package/dist/commands/ui/chat/turn-selection.js +52 -0
- package/dist/commands/ui/chat/turn-state.d.ts +46 -0
- package/dist/commands/ui/chat/turn-state.js +18 -0
- package/dist/commands/ui/chat/turn.d.ts +37 -0
- package/dist/commands/ui/chat/turn.js +268 -0
- package/dist/commands/ui/chat/unsent.d.ts +4 -0
- package/dist/commands/ui/chat/unsent.js +26 -0
- package/dist/commands/ui/chat/verification.d.ts +12 -0
- package/dist/commands/ui/chat/verification.js +76 -0
- package/dist/commands/ui/chat/worktree.d.ts +22 -0
- package/dist/commands/ui/chat/worktree.js +139 -0
- package/dist/commands/ui/code.d.ts +17 -0
- package/dist/commands/ui/code.js +60 -0
- package/dist/commands/ui/command-environment.d.ts +16 -0
- package/dist/commands/ui/command-environment.en.d.ts +30 -0
- package/dist/commands/ui/command-environment.en.js +37 -0
- package/dist/commands/ui/command-environment.es.d.ts +28 -0
- package/dist/commands/ui/command-environment.es.js +28 -0
- package/dist/commands/ui/command-environment.js +130 -0
- package/dist/commands/ui/command-output.d.ts +16 -0
- package/dist/commands/ui/command-output.js +142 -0
- package/dist/commands/ui/commands.d.ts +45 -0
- package/dist/commands/ui/commands.en.d.ts +48 -0
- package/dist/commands/ui/commands.en.js +48 -0
- package/dist/commands/ui/commands.es.d.ts +48 -0
- package/dist/commands/ui/commands.es.js +48 -0
- package/dist/commands/ui/commands.js +197 -0
- package/dist/commands/ui/comments.d.ts +3 -0
- package/dist/commands/ui/comments.en.d.ts +3 -0
- package/dist/commands/ui/comments.en.js +3 -0
- package/dist/commands/ui/comments.es.d.ts +3 -0
- package/dist/commands/ui/comments.es.js +3 -0
- package/dist/commands/ui/comments.js +71 -0
- package/dist/commands/ui/compare-failure-result.d.ts +26 -0
- package/dist/commands/ui/compare-failure-result.js +22 -0
- package/dist/commands/ui/deferred-checks.d.ts +6 -0
- package/dist/commands/ui/deferred-checks.js +57 -0
- package/dist/commands/ui/deploy-run.d.ts +12 -0
- package/dist/commands/ui/deploy-run.js +92 -0
- package/dist/commands/ui/fonts.d.ts +7 -0
- package/dist/commands/ui/fonts.js +44 -0
- package/dist/commands/ui/git-replay.d.ts +13 -0
- package/dist/commands/ui/git-replay.js +68 -0
- package/dist/commands/ui/guard.d.ts +6 -0
- package/dist/commands/ui/guard.js +20 -0
- package/dist/commands/ui/host-call.d.ts +2 -0
- package/dist/commands/ui/host-call.js +31 -0
- package/dist/commands/ui/host-record.d.ts +28 -0
- package/dist/commands/ui/host-record.js +27 -0
- package/dist/commands/ui/host-save.d.ts +75 -0
- package/dist/commands/ui/host-save.en.d.ts +10 -0
- package/dist/commands/ui/host-save.en.js +10 -0
- package/dist/commands/ui/host-save.es.d.ts +10 -0
- package/dist/commands/ui/host-save.es.js +10 -0
- package/dist/commands/ui/host-save.js +194 -0
- package/dist/commands/ui/host.d.ts +31 -0
- package/dist/commands/ui/host.en.d.ts +9 -0
- package/dist/commands/ui/host.en.js +9 -0
- package/dist/commands/ui/host.es.d.ts +9 -0
- package/dist/commands/ui/host.es.js +9 -0
- package/dist/commands/ui/host.js +102 -0
- package/dist/commands/ui/index.d.ts +10 -0
- package/dist/commands/ui/index.en.d.ts +12 -0
- package/dist/commands/ui/index.en.js +12 -0
- package/dist/commands/ui/index.es.d.ts +12 -0
- package/dist/commands/ui/index.es.js +12 -0
- package/dist/commands/ui/index.js +118 -0
- package/dist/commands/ui/level-route.d.ts +3 -0
- package/dist/commands/ui/level-route.js +44 -0
- package/dist/commands/ui/log-file.d.ts +9 -0
- package/dist/commands/ui/log-file.js +60 -0
- package/dist/commands/ui/loop-approve.d.ts +165 -0
- package/dist/commands/ui/loop-approve.js +124 -0
- package/dist/commands/ui/merge-authority.d.ts +77 -0
- package/dist/commands/ui/merge-authority.en.d.ts +18 -0
- package/dist/commands/ui/merge-authority.en.js +18 -0
- package/dist/commands/ui/merge-authority.es.d.ts +18 -0
- package/dist/commands/ui/merge-authority.es.js +18 -0
- package/dist/commands/ui/merge-authority.js +155 -0
- package/dist/commands/ui/merge-check.d.ts +5 -0
- package/dist/commands/ui/merge-check.js +51 -0
- package/dist/commands/ui/merge-delegation.d.ts +18 -0
- package/dist/commands/ui/merge-delegation.js +174 -0
- package/dist/commands/ui/merge-events.d.ts +11 -0
- package/dist/commands/ui/merge-events.js +27 -0
- package/dist/commands/ui/merge-heads.d.ts +2 -0
- package/dist/commands/ui/merge-heads.js +17 -0
- package/dist/commands/ui/merge-hold.d.ts +33 -0
- package/dist/commands/ui/merge-hold.js +181 -0
- package/dist/commands/ui/merge-observed.d.ts +15 -0
- package/dist/commands/ui/merge-observed.js +60 -0
- package/dist/commands/ui/merge-preview-route.d.ts +3 -0
- package/dist/commands/ui/merge-preview-route.js +51 -0
- package/dist/commands/ui/merge-preview.d.ts +3 -0
- package/dist/commands/ui/merge-preview.js +116 -0
- package/dist/commands/ui/merge-publish-host.d.ts +17 -0
- package/dist/commands/ui/merge-publish-host.js +74 -0
- package/dist/commands/ui/merge-record.d.ts +39 -0
- package/dist/commands/ui/merge-record.js +138 -0
- package/dist/commands/ui/merge-route.d.ts +18 -0
- package/dist/commands/ui/merge-route.js +112 -0
- package/dist/commands/ui/merge-state.d.ts +17 -0
- package/dist/commands/ui/merge-state.js +115 -0
- package/dist/commands/ui/merged-branches.d.ts +3 -0
- package/dist/commands/ui/merged-branches.js +22 -0
- package/dist/commands/ui/outside-route.d.ts +2 -0
- package/dist/commands/ui/outside-route.js +14 -0
- package/dist/commands/ui/outside.d.ts +59 -0
- package/dist/commands/ui/outside.js +61 -0
- package/dist/commands/ui/page-session.d.ts +2 -0
- package/dist/commands/ui/page-session.js +33 -0
- package/dist/commands/ui/page.d.ts +17 -0
- package/dist/commands/ui/page.js +65 -0
- package/dist/commands/ui/places-approval.d.ts +5 -0
- package/dist/commands/ui/places-approval.js +65 -0
- package/dist/commands/ui/places-branch-save.d.ts +21 -0
- package/dist/commands/ui/places-branch-save.js +124 -0
- package/dist/commands/ui/places-change-approval.d.ts +2 -0
- package/dist/commands/ui/places-change-approval.js +116 -0
- package/dist/commands/ui/places-change.d.ts +86 -0
- package/dist/commands/ui/places-change.js +152 -0
- package/dist/commands/ui/plan-artifact.d.ts +2 -0
- package/dist/commands/ui/plan-artifact.js +45 -0
- package/dist/commands/ui/plan-details.d.ts +32 -0
- package/dist/commands/ui/plan-details.js +182 -0
- package/dist/commands/ui/plan-files.d.ts +29 -0
- package/dist/commands/ui/plan-files.js +230 -0
- package/dist/commands/ui/plan-history.d.ts +9 -0
- package/dist/commands/ui/plan-history.js +117 -0
- package/dist/commands/ui/plan-journeys.d.ts +2 -0
- package/dist/commands/ui/plan-journeys.js +108 -0
- package/dist/commands/ui/plan-limits.d.ts +9 -0
- package/dist/commands/ui/plan-limits.js +18 -0
- package/dist/commands/ui/plan-not.d.ts +4 -0
- package/dist/commands/ui/plan-not.js +18 -0
- package/dist/commands/ui/plan-structure.d.ts +26 -0
- package/dist/commands/ui/plan-structure.en.d.ts +20 -0
- package/dist/commands/ui/plan-structure.en.js +20 -0
- package/dist/commands/ui/plan-structure.es.d.ts +20 -0
- package/dist/commands/ui/plan-structure.es.js +20 -0
- package/dist/commands/ui/plan-structure.js +162 -0
- package/dist/commands/ui/platform-commands.d.ts +3 -0
- package/dist/commands/ui/platform-commands.js +15 -0
- package/dist/commands/ui/platforms-read.d.ts +5 -0
- package/dist/commands/ui/platforms-read.js +76 -0
- package/dist/commands/ui/post-merge.d.ts +13 -0
- package/dist/commands/ui/post-merge.js +213 -0
- package/dist/commands/ui/product-plan.d.ts +3 -0
- package/dist/commands/ui/product-plan.js +35 -0
- package/dist/commands/ui/prototype-approval-artifact.d.ts +3 -0
- package/dist/commands/ui/prototype-approval-artifact.js +39 -0
- package/dist/commands/ui/prototype-checkout.d.ts +43 -0
- package/dist/commands/ui/prototype-checkout.js +82 -0
- package/dist/commands/ui/prototype-main.d.ts +104 -0
- package/dist/commands/ui/prototype-main.js +55 -0
- package/dist/commands/ui/prototype-origin.d.ts +8 -0
- package/dist/commands/ui/prototype-origin.js +61 -0
- package/dist/commands/ui/prototype-review.d.ts +37 -0
- package/dist/commands/ui/prototype-review.js +129 -0
- package/dist/commands/ui/prototype-save-files.d.ts +4 -0
- package/dist/commands/ui/prototype-save-files.js +16 -0
- package/dist/commands/ui/prototype-scenes-child.d.ts +1 -0
- package/dist/commands/ui/prototype-scenes-child.js +24 -0
- package/dist/commands/ui/prototype-scenes-read.d.ts +14 -0
- package/dist/commands/ui/prototype-scenes-read.js +82 -0
- package/dist/commands/ui/prototype-scenes-route.d.ts +3 -0
- package/dist/commands/ui/prototype-scenes-route.js +14 -0
- package/dist/commands/ui/prototype-snapshot-session.d.ts +127 -0
- package/dist/commands/ui/prototype-snapshot-session.js +205 -0
- package/dist/commands/ui/prototype-snapshot.d.ts +8 -0
- package/dist/commands/ui/prototype-snapshot.js +77 -0
- package/dist/commands/ui/public-shell.d.ts +1 -0
- package/dist/commands/ui/public-shell.js +70 -0
- package/dist/commands/ui/redacted-stream.d.ts +19 -0
- package/dist/commands/ui/redacted-stream.js +90 -0
- package/dist/commands/ui/release-approval.d.ts +7 -0
- package/dist/commands/ui/release-approval.en.d.ts +8 -0
- package/dist/commands/ui/release-approval.en.js +8 -0
- package/dist/commands/ui/release-approval.es.d.ts +8 -0
- package/dist/commands/ui/release-approval.es.js +8 -0
- package/dist/commands/ui/release-approval.js +103 -0
- package/dist/commands/ui/release-fact.d.ts +30 -0
- package/dist/commands/ui/release-fact.js +71 -0
- package/dist/commands/ui/routes.d.ts +55 -0
- package/dist/commands/ui/routes.js +41 -0
- package/dist/commands/ui/run-route.d.ts +4 -0
- package/dist/commands/ui/run-route.js +106 -0
- package/dist/commands/ui/runner.d.ts +42 -0
- package/dist/commands/ui/runner.js +174 -0
- package/dist/commands/ui/save-body.d.ts +21 -0
- package/dist/commands/ui/save-body.js +31 -0
- package/dist/commands/ui/save-build-completion.d.ts +7 -0
- package/dist/commands/ui/save-build-completion.js +88 -0
- package/dist/commands/ui/save-change-step.d.ts +58 -0
- package/dist/commands/ui/save-change-step.js +105 -0
- package/dist/commands/ui/save-change.d.ts +29 -0
- package/dist/commands/ui/save-change.js +109 -0
- package/dist/commands/ui/save-commit.d.ts +52 -0
- package/dist/commands/ui/save-commit.js +219 -0
- package/dist/commands/ui/save-failure.d.ts +54 -0
- package/dist/commands/ui/save-failure.js +85 -0
- package/dist/commands/ui/save-files.d.ts +15 -0
- package/dist/commands/ui/save-files.js +78 -0
- package/dist/commands/ui/save-git.d.ts +11 -0
- package/dist/commands/ui/save-git.js +66 -0
- package/dist/commands/ui/save-guard.d.ts +10 -0
- package/dist/commands/ui/save-guard.js +30 -0
- package/dist/commands/ui/save-hooks.d.ts +11 -0
- package/dist/commands/ui/save-hooks.js +99 -0
- package/dist/commands/ui/save-index-lock.d.ts +5 -0
- package/dist/commands/ui/save-index-lock.js +26 -0
- package/dist/commands/ui/save-linked-snapshot.d.ts +23 -0
- package/dist/commands/ui/save-linked-snapshot.js +185 -0
- package/dist/commands/ui/save-messages.d.ts +4 -0
- package/dist/commands/ui/save-messages.js +7 -0
- package/dist/commands/ui/save-ownership.d.ts +6 -0
- package/dist/commands/ui/save-ownership.js +33 -0
- package/dist/commands/ui/save-paths.d.ts +9 -0
- package/dist/commands/ui/save-paths.js +56 -0
- package/dist/commands/ui/save-protection.d.ts +10 -0
- package/dist/commands/ui/save-protection.js +22 -0
- package/dist/commands/ui/save-publish.d.ts +30 -0
- package/dist/commands/ui/save-publish.js +137 -0
- package/dist/commands/ui/save-record.d.ts +8 -0
- package/dist/commands/ui/save-record.js +46 -0
- package/dist/commands/ui/save-route.d.ts +23 -0
- package/dist/commands/ui/save-route.en.d.ts +36 -0
- package/dist/commands/ui/save-route.en.js +36 -0
- package/dist/commands/ui/save-route.es.d.ts +36 -0
- package/dist/commands/ui/save-route.es.js +36 -0
- package/dist/commands/ui/save-route.js +208 -0
- package/dist/commands/ui/save-tree.d.ts +10 -0
- package/dist/commands/ui/save-tree.js +55 -0
- package/dist/commands/ui/server-core.d.ts +14 -0
- package/dist/commands/ui/server-core.js +62 -0
- package/dist/commands/ui/server-options.d.ts +3 -0
- package/dist/commands/ui/server-options.js +25 -0
- package/dist/commands/ui/server-request.d.ts +10 -0
- package/dist/commands/ui/server-request.js +44 -0
- package/dist/commands/ui/server.d.ts +84 -0
- package/dist/commands/ui/server.js +173 -0
- package/dist/commands/ui/shell-check.d.ts +19 -0
- package/dist/commands/ui/shell-check.js +48 -0
- package/dist/commands/ui/snapshot-check-diagnostics.d.ts +5 -0
- package/dist/commands/ui/snapshot-check-diagnostics.js +88 -0
- package/dist/commands/ui/snapshot-compare.d.ts +5 -0
- package/dist/commands/ui/snapshot-compare.js +14 -0
- package/dist/commands/ui/snapshot-diagnostics-command.d.ts +59 -0
- package/dist/commands/ui/snapshot-diagnostics-command.js +171 -0
- package/dist/commands/ui/snapshot-diagnostics-evidence.d.ts +17 -0
- package/dist/commands/ui/snapshot-diagnostics-evidence.js +108 -0
- package/dist/commands/ui/snapshot-diagnostics.d.ts +40 -0
- package/dist/commands/ui/snapshot-diagnostics.js +168 -0
- package/dist/commands/ui/snapshot-evidence.d.ts +35 -0
- package/dist/commands/ui/snapshot-evidence.js +100 -0
- package/dist/commands/ui/snapshot-location.d.ts +7 -0
- package/dist/commands/ui/snapshot-location.js +84 -0
- package/dist/commands/ui/snapshot-lock.d.ts +10 -0
- package/dist/commands/ui/snapshot-lock.js +125 -0
- package/dist/commands/ui/snapshot-log.d.ts +23 -0
- package/dist/commands/ui/snapshot-log.js +83 -0
- package/dist/commands/ui/snapshot-normalize.d.ts +4 -0
- package/dist/commands/ui/snapshot-normalize.js +30 -0
- package/dist/commands/ui/snapshot-problems.d.ts +29 -0
- package/dist/commands/ui/snapshot-problems.js +177 -0
- package/dist/commands/ui/snapshot-progress.d.ts +6 -0
- package/dist/commands/ui/snapshot-progress.js +27 -0
- package/dist/commands/ui/snapshot-redaction.d.ts +13 -0
- package/dist/commands/ui/snapshot-redaction.js +76 -0
- package/dist/commands/ui/snapshot-refusal.d.ts +5 -0
- package/dist/commands/ui/snapshot-refusal.js +9 -0
- package/dist/commands/ui/snapshot-target-async.d.ts +8 -0
- package/dist/commands/ui/snapshot-target-async.js +40 -0
- package/dist/commands/ui/snapshot-tokens.d.ts +2 -0
- package/dist/commands/ui/snapshot-tokens.js +39 -0
- package/dist/commands/ui/snapshot-view.d.ts +35 -0
- package/dist/commands/ui/snapshot-view.js +103 -0
- package/dist/commands/ui/stack.d.ts +66 -0
- package/dist/commands/ui/stack.en.d.ts +3 -0
- package/dist/commands/ui/stack.en.js +3 -0
- package/dist/commands/ui/stack.es.d.ts +3 -0
- package/dist/commands/ui/stack.es.js +3 -0
- package/dist/commands/ui/stack.js +230 -0
- package/dist/commands/ui/studio-facts.d.ts +97 -0
- package/dist/commands/ui/studio-facts.js +245 -0
- package/dist/commands/ui/studio-messages.d.ts +2 -0
- package/dist/commands/ui/studio-messages.js +5 -0
- package/dist/commands/ui/studio-routes.d.ts +30 -0
- package/dist/commands/ui/studio-routes.js +114 -0
- package/dist/commands/ui/studio-slow.d.ts +39 -0
- package/dist/commands/ui/studio-slow.js +56 -0
- package/dist/commands/ui/studio-state.d.ts +368 -0
- package/dist/commands/ui/studio-state.js +163 -0
- package/dist/commands/ui/studio-versions.d.ts +91 -0
- package/dist/commands/ui/studio-versions.js +40 -0
- package/dist/commands/ui/studio.en.d.ts +10 -0
- package/dist/commands/ui/studio.en.js +10 -0
- package/dist/commands/ui/studio.es.d.ts +10 -0
- package/dist/commands/ui/studio.es.js +10 -0
- package/dist/commands/ui/worktree-environment.d.ts +15 -0
- package/dist/commands/ui/worktree-environment.js +45 -0
- package/dist/commands/ui/worktrees.d.ts +9 -0
- package/dist/commands/ui/worktrees.js +152 -0
- package/dist/commands/upgrade-files.d.ts +42 -0
- package/dist/commands/upgrade-files.js +142 -0
- package/dist/commands/upgrade-notes.d.ts +34 -0
- package/dist/commands/upgrade-notes.js +239 -0
- package/dist/commands/upgrade-skills.d.ts +15 -0
- package/dist/commands/upgrade-skills.js +68 -0
- package/dist/commands/upgrade.d.ts +36 -0
- package/dist/commands/upgrade.en.d.ts +8 -0
- package/dist/commands/upgrade.en.js +8 -0
- package/dist/commands/upgrade.es.d.ts +8 -0
- package/dist/commands/upgrade.es.js +8 -0
- package/dist/commands/upgrade.js +212 -0
- package/dist/commands/uploads-orphans.d.ts +15 -0
- package/dist/commands/uploads-orphans.en.d.ts +13 -0
- package/dist/commands/uploads-orphans.en.js +14 -0
- package/dist/commands/uploads-orphans.js +89 -0
- package/dist/commands/who-difference.d.ts +2 -0
- package/dist/commands/who-difference.js +47 -0
- package/dist/commands/who.d.ts +46 -0
- package/dist/commands/who.en.d.ts +29 -0
- package/dist/commands/who.en.js +30 -0
- package/dist/commands/who.js +135 -0
- package/dist/commands/worktree-git-trust.d.ts +23 -0
- package/dist/commands/worktree-git-trust.js +55 -0
- package/dist/fixtures/chat/claude.jsonl +5 -0
- package/dist/fixtures/chat/codex-windows-refusal.txt +2 -0
- package/dist/fixtures/chat/codex.jsonl +8 -0
- package/dist/fixtures/chat/opencode.jsonl +6 -0
- package/dist/fixtures/chat/u11-windows-lines.jsonl +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +224 -0
- package/dist/project.d.ts +46 -0
- package/dist/project.js +101 -0
- package/dist/ui/page.js +341 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +3 -0
- package/docs/EXTENSIONS.md +468 -0
- package/docs/PROCESS.md +169 -0
- package/docs/PROTOTYPE.md +308 -0
- package/docs/WORKBENCH.md +1022 -0
- package/package.json +67 -3
- package/skills/ape-add-ai-purpose/SKILL.md +29 -0
- package/skills/ape-add-event/SKILL.md +13 -0
- package/skills/ape-add-extension/SKILL.md +42 -0
- package/skills/ape-add-feature/SKILL.md +21 -0
- package/skills/ape-add-generator/SKILL.md +21 -0
- package/skills/ape-add-module/SKILL.md +33 -0
- package/skills/ape-add-route/SKILL.md +72 -0
- package/skills/ape-add-service/SKILL.md +53 -0
- package/skills/ape-add-translations/SKILL.md +33 -0
- package/skills/ape-admin-screen/SKILL.md +17 -0
- package/skills/ape-app-screen/SKILL.md +17 -0
- package/skills/ape-critique/SKILL.md +211 -0
- package/skills/ape-deploy/SKILL.md +62 -0
- package/skills/ape-design-system/SKILL.md +77 -0
- package/skills/ape-design-system/references/directions/bold-playful.md +66 -0
- package/skills/ape-design-system/references/directions/clear-calm.md +64 -0
- package/skills/ape-design-system/references/directions/editorial-considered.md +64 -0
- package/skills/ape-design-system/references/directions/technical-precise.md +64 -0
- package/skills/ape-design-system/references/directions/warm-human.md +65 -0
- package/skills/ape-migration/SKILL.md +21 -0
- package/skills/ape-plan-change/SKILL.md +143 -0
- package/skills/ape-prototype/SKILL.md +53 -0
- package/skills/ape-request/SKILL.md +20 -0
- package/skills/ape-upgrade/SKILL.md +12 -0
- package/templates/example/apps/admin/src/TasksScreen.tsx +74 -0
- package/templates/example/apps/admin/src/i18n/en.ts +10 -0
- package/templates/example/apps/admin/src/i18n/es.json +8 -0
- package/templates/example/apps/admin/src/main.tsx +70 -0
- package/templates/example/apps/admin/src/views.test.tsx +49 -0
- package/templates/example/apps/api/src/app.ts +19 -0
- package/templates/example/apps/api/src/modules/tasks/contract.ts +47 -0
- package/templates/example/apps/api/src/modules/tasks/entity.ts +21 -0
- package/templates/example/apps/api/src/modules/tasks/manifest.ts +29 -0
- package/templates/example/apps/api/src/modules/tasks/migrations/0001-init.ts +8 -0
- package/templates/example/apps/api/src/modules/tasks/migrations/index.ts +4 -0
- package/templates/example/apps/api/src/modules/tasks/routes.ts +33 -0
- package/templates/example/apps/api/src/modules/tasks/tasks.test.ts +50 -0
- package/templates/example/apps/app/src/app/index.tsx +15 -0
- package/templates/example/apps/app/src/app/tasks.tsx +29 -0
- package/templates/example/apps/app/src/i18n/en.ts +32 -0
- package/templates/example/apps/app/src/i18n/es.json +31 -0
- package/templates/example/apps/app/src/screens/HomeView.test.tsx +23 -0
- package/templates/example/apps/app/src/screens/HomeView.tsx +39 -0
- package/templates/example/apps/app/src/screens/TasksView.test.tsx +52 -0
- package/templates/example/apps/app/src/screens/TasksView.tsx +69 -0
- package/templates/extension/README.md +13 -0
- package/templates/extension/package.json +51 -0
- package/templates/extension/src/admin/i18n/en.ts +5 -0
- package/templates/extension/src/admin/i18n/es.json +5 -0
- package/templates/extension/src/admin/index.ts +7 -0
- package/templates/extension/src/admin/{{Key}}View.tsx +21 -0
- package/templates/extension/src/app/i18n/en.ts +4 -0
- package/templates/extension/src/app/i18n/es.json +4 -0
- package/templates/extension/src/app/index.ts +7 -0
- package/templates/extension/src/app/{{Key}}View.tsx +22 -0
- package/templates/extension/src/contract.ts +27 -0
- package/templates/extension/src/entity.ts +12 -0
- package/templates/extension/src/locales/en.ts +5 -0
- package/templates/extension/src/locales/es.json +5 -0
- package/templates/extension/src/migrations/0001-init.ts +8 -0
- package/templates/extension/src/migrations/index.ts +3 -0
- package/templates/extension/src/privacy.ts +20 -0
- package/templates/extension/src/routes.ts +28 -0
- package/templates/extension/src/server.ts +25 -0
- package/templates/extension/src/views.test.tsx +44 -0
- package/templates/extension/src/{{key}}.test.ts +118 -0
- package/templates/extension/tsconfig.json +5 -0
- package/templates/extension/vitest.config.ts +10 -0
- package/templates/product/.claude/hooks/format.mjs +22 -0
- package/templates/product/.claude/launch.json +11 -0
- package/templates/product/.claude/settings.json +33 -0
- package/templates/product/.codex/config.toml +27 -0
- package/templates/product/.dockerignore +10 -0
- package/templates/product/.env.example +41 -0
- package/templates/product/.gitattributes +6 -0
- package/templates/product/.githooks/commit-msg +16 -0
- package/templates/product/.githooks/pre-commit +4 -0
- package/templates/product/.githooks/pre-merge-commit +4 -0
- package/templates/product/.github/CODEOWNERS +23 -0
- package/templates/product/.github/workflows/ci.yml +43 -0
- package/templates/product/.mcp.json +8 -0
- package/templates/product/AGENTS.md +35 -0
- package/templates/product/CLAUDE.md +1 -0
- package/templates/product/README.md +37 -0
- package/templates/product/_biome.json +70 -0
- package/templates/product/apps/admin/index.html +13 -0
- package/templates/product/apps/admin/package.json +35 -0
- package/templates/product/apps/admin/src/extensions.gen.ts +5 -0
- package/templates/product/apps/admin/src/fonts.ts +14 -0
- package/templates/product/apps/admin/src/i18n/en.ts +2 -0
- package/templates/product/apps/admin/src/i18n/es.json +1 -0
- package/templates/product/apps/admin/src/main.tsx +53 -0
- package/templates/product/apps/admin/src/prototype/index.test.tsx +23 -0
- package/templates/product/apps/admin/src/prototype/index.tsx +18 -0
- package/templates/product/apps/admin/src/prototype/views.ts +4 -0
- package/templates/product/apps/admin/src/views.test.tsx +10 -0
- package/templates/product/apps/admin/tsconfig.json +5 -0
- package/templates/product/apps/admin/vite.config.ts +15 -0
- package/templates/product/apps/admin/vitest.config.ts +7 -0
- package/templates/product/apps/api/package.json +20 -0
- package/templates/product/apps/api/src/app.test.ts +22 -0
- package/templates/product/apps/api/src/app.ts +13 -0
- package/templates/product/apps/api/src/extensions.gen.ts +5 -0
- package/templates/product/apps/api/src/server.ts +7 -0
- package/templates/product/apps/api/src/worker.ts +7 -0
- package/templates/product/apps/api/tsconfig.json +1 -0
- package/templates/product/apps/api/vitest.config.ts +13 -0
- package/templates/product/apps/app/app.json +22 -0
- package/templates/product/apps/app/assets/fonts/IBMPlexMono.ttf +0 -0
- package/templates/product/apps/app/assets/fonts/Nunito.ttf +0 -0
- package/templates/product/apps/app/assets/fonts/PublicSans.ttf +0 -0
- package/templates/product/apps/app/babel.config.cjs +16 -0
- package/templates/product/apps/app/index.ts +3 -0
- package/templates/product/apps/app/metro.config.cjs +179 -0
- package/templates/product/apps/app/package.json +66 -0
- package/templates/product/apps/app/public/assets/assets/fonts/IBMPlexMono-LICENSE.txt +93 -0
- package/templates/product/apps/app/public/assets/assets/fonts/Nunito-LICENSE.txt +93 -0
- package/templates/product/apps/app/public/assets/assets/fonts/PublicSans-LICENSE.txt +93 -0
- package/templates/product/apps/app/src/app/_layout.tsx +12 -0
- package/templates/product/apps/app/src/app/_scene.tsx +8 -0
- package/templates/product/apps/app/src/app/index.tsx +9 -0
- package/templates/product/apps/app/src/app/prototype.tsx +9 -0
- package/templates/product/apps/app/src/app/settings.tsx +8 -0
- package/templates/product/apps/app/src/extensions.gen.ts +5 -0
- package/templates/product/apps/app/src/fonts.ts +8 -0
- package/templates/product/apps/app/src/i18n/activity.en.ts +18 -0
- package/templates/product/apps/app/src/i18n/activity.es.json +17 -0
- package/templates/product/apps/app/src/i18n/en.ts +24 -0
- package/templates/product/apps/app/src/i18n/es.json +23 -0
- package/templates/product/apps/app/src/i18n/intl-locales.gen.ts +24 -0
- package/templates/product/apps/app/src/prototype/ActivityView.test.tsx +53 -0
- package/templates/product/apps/app/src/prototype/ActivityView.tsx +62 -0
- package/templates/product/apps/app/src/prototype/home-route.test.tsx +29 -0
- package/templates/product/apps/app/src/prototype/home-route.tsx +23 -0
- package/templates/product/apps/app/src/prototype/scene.tsx +28 -0
- package/templates/product/apps/app/src/prototype/theme-text.tsx +14 -0
- package/templates/product/apps/app/src/prototype/views.ts +7 -0
- package/templates/product/apps/app/src/screens/HomeView.test.tsx +20 -0
- package/templates/product/apps/app/src/screens/HomeView.tsx +25 -0
- package/templates/product/apps/app/src/shell.ts +19 -0
- package/templates/product/apps/app/src/themes.ts +5 -0
- package/templates/product/apps/app/tsconfig.json +5 -0
- package/templates/product/apps/app/vitest.config.mts +9 -0
- package/templates/product/buffcore.config.ts +44 -0
- package/templates/product/design/DESIGN.md +82 -0
- package/templates/product/design/components/.gitkeep +0 -0
- package/templates/product/design/manifest.json +9 -0
- package/templates/product/design/showcase.ts +94 -0
- package/templates/product/design/theme.ts +22 -0
- package/templates/product/gitignore +31 -0
- package/templates/product/infra/agent/Dockerfile +10 -0
- package/templates/product/infra/agent/compose.yml +36 -0
- package/templates/product/infra/agent/proxy.mjs +41 -0
- package/templates/product/infra/docker/compose.yml +49 -0
- package/templates/product/opencode.json +27 -0
- package/templates/product/package.json +49 -0
- package/templates/product/plan/agents.md +23 -0
- package/templates/product/plan/approvals.md +9 -0
- package/templates/product/plan/brief.md +63 -0
- package/templates/product/plan/changes/.gitkeep +0 -0
- package/templates/product/plan/journeys.md +44 -0
- package/templates/product/plan/not-this.md +6 -0
- package/templates/product/plan/roadmap.md +13 -0
- package/templates/product/plan/structure.md +8 -0
- package/templates/product/pnpm-workspace.yaml +3 -0
- package/templates/product/prototype/data/activity.ts +17 -0
- package/templates/product/prototype/data/member.ts +25 -0
- package/templates/product/prototype/home.tsx +121 -0
- package/templates/product/prototype/invariants.test.ts +60 -0
- package/templates/product/prototype/journeys.ts +78 -0
- package/templates/product/prototype/number-copy.test.ts +70 -0
- package/templates/product/prototype/scenes.ts +84 -0
- package/templates/product/prototype/seeds.ts +48 -0
- package/templates/product/prototype/store.ts +81 -0
- package/templates/product/prototype/view-data.ts +29 -0
- package/templates/product/scripts/bootstrap-lock.mjs +162 -0
- package/templates/product/scripts/bootstrap-lock.words.mjs +27 -0
- package/templates/product/scripts/check-secrets.mjs +26 -0
- package/templates/product/tsconfig.base.json +21 -0
- package/templates/product/turbo.json +46 -0
- package/templates/product/vitest.shared.ts +34 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,2656 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
One section per release (a git tag). **Upgrade notes** list anything that breaks a product, in groups, each a bold `**Upgrade notes** (every product):` line in the subsection of its change. A group about a feature names it in backticks (``**Upgrade notes** (`ai`):``), and `ape upgrade` shows it only to products that have the feature on; any other group is for every product.
|
|
4
|
+
|
|
5
|
+
## Unreleased
|
|
6
|
+
|
|
7
|
+
## v0.8.40 (2026-12-01)
|
|
8
|
+
|
|
9
|
+
- **What 0.8.40 holds:** `ape add` and `ape remove` work in CI. No upgrade notes: nothing changes for an existing product.
|
|
10
|
+
|
|
11
|
+
- **Known issues:** those of 0.8.38.
|
|
12
|
+
|
|
13
|
+
- `ape add` and `ape remove` run `pnpm install --no-frozen-lockfile`. Both change `package.json`, so the lockfile must change too; where `CI` is set, pnpm refused with `ERR_PNPM_OUTDATED_LOCKFILE` and the add was put back.
|
|
14
|
+
|
|
15
|
+
## v0.8.39 (2026-11-30)
|
|
16
|
+
|
|
17
|
+
- **What 0.8.39 holds:** a new example app, the one the tutorial makes, passes its first full prototype snapshot. No upgrade notes: nothing changes for an existing product.
|
|
18
|
+
|
|
19
|
+
- **Known issues:** those of 0.8.38.
|
|
20
|
+
|
|
21
|
+
- `ape create --example` keeps the theme-color strings the prototype's theme-text scene uses, in English and Spanish. A new example app's first full prototype snapshot no longer fails its text check (the pseudo-locale showed the keys untranslated). A product made with `--example` on 0.8.38 can add `prototype.themeText.title` and `prototype.themeText.sample` to `apps/app/src/i18n/en.ts` and `es.json`.
|
|
22
|
+
|
|
23
|
+
## v0.8.38 (2026-11-30)
|
|
24
|
+
|
|
25
|
+
- **What 0.8.38 holds:** the docs a newcomer opens first (the index, getting started, the tutorial) call the product BuffApe, and two package READMEs lose a link to an unpublished page. No upgrade notes: nothing changes in how a product builds or runs.
|
|
26
|
+
|
|
27
|
+
- **Known issues:** those of 0.8.37.
|
|
28
|
+
|
|
29
|
+
- The docs index, the getting-started guide and the tutorial call the product BuffApe. The `payments` and `affiliates` READMEs no longer link to a page that isn't published.
|
|
30
|
+
## v0.8.37 (2026-11-30)
|
|
31
|
+
|
|
32
|
+
- **What 0.8.37 holds:** the open-source product is called BuffApe, at `github.com/buffape/buffape`, and the stock toolchain test passes in a clone with only part of the release history. No upgrade notes: nothing changes in how a product builds or runs.
|
|
33
|
+
|
|
34
|
+
- **Known issues:** those of 0.8.36, except the stock toolchain test in a partial clone, which is fixed.
|
|
35
|
+
|
|
36
|
+
- The open-source product is called BuffApe, and its repository is `buffape/buffape`: every package's README, NOTICE and repository link say so. The packages keep their `@buffcore/*` names.
|
|
37
|
+
- The stock toolchain list records the release tags it was made from. A clone that holds only some of them, like the public repository, checks that every entry it can regenerate is listed, instead of failing the full comparison.
|
|
38
|
+
|
|
39
|
+
## v0.8.36 (2026-11-30)
|
|
40
|
+
|
|
41
|
+
- **What 0.8.36 holds:** BuffCore is open source under Apache-2.0, and the docs are ready for someone new: a getting-started guide, a tutorial that builds a first feature from the brief to a deploy, and a docs index. The docs' worked example is a small tutoring app. No upgrade notes: nothing changes in how a product builds or runs.
|
|
42
|
+
|
|
43
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot, merge and temporary-folder cleanup tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs were green for 0.8.34. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can hit it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can connect to the development database on loopback with the compose login; it holds development data only (F64b). (15) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (16) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (17) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (18) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (19) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (20) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save. (21) The F98 sentence changes only what the agent is told: the denial words it gets back are Claude Code's own. (22) GATE: a later change to `.gitattributes` merge drivers can change how an old merge reads (re-run the check after one), and an own edit followed by its own revert still blocks. (23) SNAP: failed-run logs pile in `.ape/logs` until a pass of the same runner, and `scrubPaths` leaves the tail of an unquoted path with a space. (24) F97: Start can submit a Prototype source held through the Checking window (the server re-checks it), and the autopilot, merge-hold, evidence and worktree facts of /api/studio still read Git synchronously. (25) F99: outside the preview pane each navigation pays the silent switched attempt again (about 11 s, only when an app listens on one hostname spelling), and the switched-to-given retry fires on any failed frame. (26) F105: the throttled or sleeping studio tab was proven with a test clock only (no real Chrome run), and a preview that failed during a short outage may still need Retry when the app comes back. (27) F108: a report of the studio staying silent until you navigate was not reproduced; the returning-tab fix covers panes that only fire focus. (28) F104: no passkey can be added in development on the `127.0.0.1` default (browsers refuse an IP address for passkeys); set the three addresses to `localhost` names where you need them. (29) F116: the preview's recovery was proven with test browsers and clocks, not a real desktop preview pane, and a report of a preview that never answered with a `localhost` setup is not proven fixed. A live app that stalls for more than 30 s can get a fresh frame: the journey and step stay, what was typed in the app does not. (30) F113a and F111: on a very busy computer the single retry of a crashed or timed-out scene may not be enough (take it again with `--scene`), and the studio's snapshot review does not show that a scene was retried (`report.json` and `--json` do). (31) F110: a page or browser crash during the overlay check is reported as a render failure, and an app frame inside a scene that answers after more than 250 ms is not checked for an overlay. (32) F115a: a diagnostic that hides a path can leave the last words of a folder name that has a dot and then a space. (33) The studio's new look does not yet cover the Devices QR panel, Releases, Live, Extensions, the Brief questions, the save step and the run sheets, and the three brand directions wrap two and one at the studio's usual width. (34) If `seedAccount` runs for a person whose sign-up is still in progress, the person can end up with two primary memberships. (35) The auth plugin startup check misses schema-qualified references to the `users` table and defaults supplied as functions. (36) Switching a studio job's agent clears an effort override even when the new agent supports it. A poll that started before an install check can briefly hide a just-installed agent. (37) Inside a Codex turn, `ape change --check` in a nested workspace gets the outer workspace's example settings. A Git refusal while resolving the snapshot lock prints the generic diagnostic. On Windows, stop the turn if Codex setup stalls after the first command request, when the startup timeout has ended. When only `.env.example` is declared, other `*.example` files are also hidden from the turn. (38) The service preflight reports Postgres unreachable when `PGSSLMODE=verify-full` and the private CA is trusted only through `NODE_OPTIONS=--use-openssl-ca`. (39) `useCan()` answers whether a member holds an action's right. A route may still refuse the request based on its inputs. See [IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#rights-in-an-account-w9).
|
|
44
|
+
|
|
45
|
+
- **The license is Apache-2.0** (it was `BUSL-1.1`). Every package ships `LICENSE` and `NOTICE` ("Copyright © 2026 BuffApe"), names its repository, homepage and issue tracker, and publishes with public access. Nothing changes in how a product builds or runs.
|
|
46
|
+
- New `docs/GETTING_STARTED.md` and `docs/TUTORIAL.md`; `docs/README.md` is the docs index, and `llms.txt` lists the public pages only.
|
|
47
|
+
- Contributions are signed off under the Developer Certificate of Origin (`git commit -s`); CONTRIBUTING says how.
|
|
48
|
+
- `pnpm lint`'s package check requires the license, `LICENSE`, `NOTICE`, a README and the repository fields in every package.
|
|
49
|
+
|
|
50
|
+
## v0.8.35 (2026-11-29)
|
|
51
|
+
|
|
52
|
+
- **What 0.8.35 holds:** Seeds can create a named person, an account and a teammate. A product can run its own flow steps for one account, and its app screens can ask whether a member may take one of its actions. Studio job assignments keep settings the new agent supports. Studio Codex turns read declared example settings, trust only their worktree and stop a silent startup. `ape dev` and `ape change --check` name the development service that fails to answer. Metro skips `coverage/` and `.ape/`. Extension errors name the route and the rule it missed. See the upgrade notes below.
|
|
53
|
+
|
|
54
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot, merge and temporary-folder cleanup tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs were green for 0.8.34. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can hit it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can connect to the development database on loopback with the compose login; it holds development data only (F64b). (15) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (16) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (17) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (18) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (19) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (20) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save. (21) The F98 sentence changes only what the agent is told: the denial words it gets back are Claude Code's own. (22) GATE: a later change to `.gitattributes` merge drivers can change how an old merge reads (re-run the check after one), and an own edit followed by its own revert still blocks. (23) SNAP: failed-run logs pile in `.ape/logs` until a pass of the same runner, and `scrubPaths` leaves the tail of an unquoted path with a space. (24) F97: Start can submit a Prototype source held through the Checking window (the server re-checks it), and the autopilot, merge-hold, evidence and worktree facts of /api/studio still read Git synchronously. (25) F99: outside the preview pane each navigation pays the silent switched attempt again (about 11 s, only when an app listens on one hostname spelling), and the switched-to-given retry fires on any failed frame. (26) F105: the throttled or sleeping studio tab was proven with a test clock only (no real Chrome run), and a preview that failed during a short outage may still need Retry when the app comes back. (27) F108: a report of the studio staying silent until you navigate was not reproduced; the returning-tab fix covers panes that only fire focus. (28) F104: no passkey can be added in development on the `127.0.0.1` default (browsers refuse an IP address for passkeys); set the three addresses to `localhost` names where you need them. (29) F116: the preview's recovery was proven with test browsers and clocks, not a real desktop preview pane, and a report of a preview that never answered with a `localhost` setup is not proven fixed. A live app that stalls for more than 30 s can get a fresh frame: the journey and step stay, what was typed in the app does not. (30) F113a and F111: on a very busy computer the single retry of a crashed or timed-out scene may not be enough (take it again with `--scene`), and the studio's snapshot review does not show that a scene was retried (`report.json` and `--json` do). (31) F110: a page or browser crash during the overlay check is reported as a render failure, and an app frame inside a scene that answers after more than 250 ms is not checked for an overlay. (32) F115a: a diagnostic that hides a path can leave the last words of a folder name that has a dot and then a space. (33) The studio's new look does not yet cover the Devices QR panel, Releases, Live, Extensions, the Brief questions, the save step and the run sheets, and the three brand directions wrap two and one at the studio's usual width. (34) If `seedAccount` runs for a person whose sign-up is still in progress, the person can end up with two primary memberships. (35) The auth plugin startup check misses schema-qualified references to the `users` table and defaults supplied as functions. (36) Switching a studio job's agent clears an effort override even when the new agent supports it. A poll that started before an install check can briefly hide a just-installed agent. (37) Inside a Codex turn, `ape change --check` in a nested workspace gets the outer workspace's example settings. A Git refusal while resolving the snapshot lock prints the generic diagnostic. On Windows, stop the turn if Codex setup stalls after the first command request, when the startup timeout has ended. When only `.env.example` is declared, other `*.example` files are also hidden from the turn. (38) The service preflight reports Postgres unreachable when `PGSSLMODE=verify-full` and the private CA is trusted only through `NODE_OPTIONS=--use-openssl-ca`. (39) `useCan()` answers whether a member holds an action's right. A route may still refuse the request based on its inputs. See [IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#rights-in-an-account-w9).
|
|
55
|
+
|
|
56
|
+
- Development and staging seeds can create named people, an account with a primary Owner, and teammates with configured roles without sending email.
|
|
57
|
+
- Changing a studio job’s agent keeps inherited model and effort settings only when the new agent supports them. Retrying the assignment leaves the saved settings as they are.
|
|
58
|
+
- `ape who` shows the model the studio will pass, or the agent’s default.
|
|
59
|
+
- The Agents page explains when model and effort changes take effect.
|
|
60
|
+
- The studio rechecks agent availability when choosing an assignment or starting a turn.
|
|
61
|
+
- A stalled install check ends so you can check again or change an assignment.
|
|
62
|
+
- The Agents page shows the latest availability reply from a check or poll.
|
|
63
|
+
- The coding request button briefly shows “Request sent” after the studio accepts the request.
|
|
64
|
+
- A failed coding request shows the error and keeps the draft for retrying.
|
|
65
|
+
- Product server code can run declared flow steps as the product for one account, including mail and notifications.
|
|
66
|
+
- Sign-up subscribers receive the original request ID and actor.
|
|
67
|
+
- A studio Codex coding turn trusts its own change worktree for Git, including when Ape checks the change.
|
|
68
|
+
- Studio Codex coding turns use clean copies of committed example settings declared in the product's agent rules. Originals and their NTFS streams stay denied. Copies exclude files inside `.env` and `.env.*` folders. Test helpers use the copy for the nearest pnpm workspace.
|
|
69
|
+
- Windows studio Codex turns bound the deny-read scan.
|
|
70
|
+
- Windows studio Codex turns run commands without loading a login shell.
|
|
71
|
+
- The studio reports a possible Windows Codex setup wait after 30 seconds and stops a silent startup after 10 minutes. The cutoff ends when Codex requests its first command.
|
|
72
|
+
- Prototype checks name the denied operation and give the terminal command to retry when they cannot read sample data, access Git metadata, start Chromium, or open a local port. A snapshot tries the other slot if access to the first is denied.
|
|
73
|
+
- The generated development Compose file gives Postgres, Redis and RustFS a restart policy of `unless-stopped`.
|
|
74
|
+
- `ape change --check` and `ape dev` probe configured development services with the product's clients and name the first one that fails to answer.
|
|
75
|
+
- `ape dev` handles large Compose build logs and shows the end of Docker's output when Compose fails and the configured stores answer.
|
|
76
|
+
- The generated Metro config excludes `coverage/` and `.ape/` below the workspaces Metro watches. The playground keeps snapshot fingerprints for its app scenes.
|
|
77
|
+
- Extension startup reports the route and failed offer rule on one line per extension.
|
|
78
|
+
- Overview shows Off, long console pages grow, and the console header uses the display name. Studio preserves the preview journey and step and checks the development level again after a wait. Android builds recover an interrupted package store. The first Android build after upgrading downloads packages again.
|
|
79
|
+
- Signed-in app screens check the server's route access for declared core and product actions, including account invitations and parts named by the screen. Switching accounts refreshes the hints.
|
|
80
|
+
|
|
81
|
+
**Upgrade notes** (every product):
|
|
82
|
+
run `pnpm ape agents write` and commit the regenerated settings on main for Codex example copies. Tests using BuffCore's test helpers read the copy automatically. Tests that open example files directly can resolve them from `APE_CODEX_EXAMPLES` when the studio sets it.
|
|
83
|
+
|
|
84
|
+
**Upgrade notes** (every product):
|
|
85
|
+
Identity checks auth plugins at startup. BuffCore reserves the `sign_in_method` user column and the `seed` plugin ID, provider ID, contribution key and user field default.
|
|
86
|
+
|
|
87
|
+
**Upgrade notes** (every product):
|
|
88
|
+
`OverviewView` from `@buffcore/admin-shell/prototype` accepts optional `disabledServices` with each service’s `key` and `name`.
|
|
89
|
+
|
|
90
|
+
**Upgrade notes** (every product):
|
|
91
|
+
Custom studio clients must send one `{ role, agent }` assignment per `POST /api/agents`. Send development level changes to `/api/level`.
|
|
92
|
+
|
|
93
|
+
**Upgrade notes** (every product):
|
|
94
|
+
In `infra/docker/compose.yml`, add `restart: unless-stopped` to each of the `postgres`, `redis` and `rustfs` services. Rerun `pnpm services:up` to apply the policy.
|
|
95
|
+
|
|
96
|
+
**Upgrade notes** (every product):
|
|
97
|
+
In `apps/app/metro.config.cjs`, add the scoped `coverage/` and `.ape/` block list from `node_modules/@buffcore/cli/templates/product/apps/app/metro.config.cjs` after the watch folders are set. Keep any existing block list entries and restart Metro.
|
|
98
|
+
|
|
99
|
+
**Upgrade notes** (every product):
|
|
100
|
+
Offered extension writes named `send` or `send_*` now require `carries`. Use `carries: []` for routes without sensitive input or output.
|
|
101
|
+
|
|
102
|
+
## v0.8.34 (2026-11-27)
|
|
103
|
+
|
|
104
|
+
- **What 0.8.34 holds:** the studio takes its design's look (colors, fonts, frame, places and a shorter Brand and Brief; product consoles draw as before); a snapshot draws every scene, retries a timed-out or failed one once, names what could not load and leaves Expo's development overlays out of app pictures; `ape prototype version` records several changes from one snapshot; a refused Merge change names the failing tasks and keeps a redacted log; and the Prototype preview recovers a frame that missed its deadline or was waiting to be painted, with a `localhost` studio origin read as `127.0.0.1`. See the upgrade note below.
|
|
105
|
+
|
|
106
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot, merge and temporary-folder cleanup tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can hit it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can connect to the development database on loopback with the compose login; it holds development data only (F64b). (15) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (16) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (17) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (18) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (19) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (20) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save. (21) The F98 sentence changes only what the agent is told: the denial words it gets back are Claude Code's own. (22) GATE: a later change to `.gitattributes` merge drivers can change how an old merge reads (re-run the check after one), and an own edit followed by its own revert still blocks. (23) SNAP: failed-run logs pile in `.ape/logs` until a pass of the same runner, and `scrubPaths` leaves the tail of an unquoted path with a space. (24) F97: Start can submit a Prototype source held through the Checking window (the server re-checks it), and the autopilot, merge-hold, evidence and worktree facts of /api/studio still read Git synchronously. (25) F99: outside the preview pane each navigation pays the silent switched attempt again (about 11 s, only when an app listens on one hostname spelling), and the switched-to-given retry fires on any failed frame. (26) F105: the throttled or sleeping studio tab was proven with a test clock only (no real Chrome run), and a preview that failed during a short outage may still need Retry when the app comes back. (27) F108: a report of the studio staying silent until you navigate was not reproduced; the returning-tab fix covers panes that only fire focus. (28) F104: no passkey can be added in development on the `127.0.0.1` default (browsers refuse an IP address for passkeys); set the three addresses to `localhost` names where you need them. (29) F116: the preview's recovery was proven with test browsers and clocks, not a real desktop preview pane, and a report of a preview that never answered with a `localhost` setup is not proven fixed. A live app that stalls for more than 30 s can get a fresh frame: the journey and step stay, what was typed in the app does not. (30) F113a and F111: on a very busy computer the single retry of a crashed or timed-out scene may not be enough (take it again with `--scene`), and the studio's snapshot review does not show that a scene was retried (`report.json` and `--json` do). (31) F110: a page or browser crash during the overlay check is reported as a render failure, and an app frame inside a scene that answers after more than 250 ms is not checked for an overlay. (32) F115a: a diagnostic that hides a path can leave the last words of a folder name that has a dot and then a space. (33) The studio's new look does not yet cover the Devices QR panel, Releases, Live, Extensions, the Brief questions, the save step and the run sheets, and the three brand directions wrap two and one at the studio's usual width.
|
|
107
|
+
|
|
108
|
+
- The studio's Prototype preview answers without waiting for paint once the page is mounted; a late mount can recover after the deadline.
|
|
109
|
+
- A Prototype preview that misses its deadline recovers when its app answers late; with a confirmed running app, a silent document gets one fresh frame per show, including one bounded retry without a visibility event.
|
|
110
|
+
- An explicit `EXPO_PUBLIC_STUDIO_ORIGIN` using `localhost` is normalized to the local studio's `127.0.0.1` address with the same scheme and port.
|
|
111
|
+
- Prototype snapshots omit Expo's development toast and refresh indicator from pictures and drawn checks, and check every look for full Expo or Vite error inspectors. Live previews keep their overlays.
|
|
112
|
+
- Prototype HTTP failures and page exceptions name their known source and first error line in the terminal, `--json` and `report.json`. HTTP load failures use `loadFailures`/`loadFailure`; page exceptions use neutral `scriptErrors`/`scriptError` source details without repeating the scene name, including failures in dynamically imported prototype code. Existing render and retry messages stay unchanged. Diagnostics keep bare package subpaths and error text after hidden paths (including scoped package paths), fully hide dotted folder names with spaces, redact secrets, and reread bounded bodies only from the run's own loopback surfaces. Passing scenes make no extra requests.
|
|
113
|
+
- The studio's places follow its design: each page's small line above the title in mono capitals, a muted lead, selected tabs in strong words over the yellow line, panels and cards on the card surface with a 16 px head, 24 px status badges, medium-weight buttons, and segmented choices on one track (Work's views and lanes, the prototype's versions). Work's waiting items are yellow-edged chips that wrap, its versions are pills with a status mark, and its board sits on one raised card with hairline lanes, its five stages sharing the width so every count shows (a phone lists each lane's cards in one column, under every stage's count), and a card's reason wraps inside the card; Agents' jobs are rows split by hairlines. Only the studio's frame turns this on (`StudioLook`); a product console draws exactly as before. `Panel` gains `flush`: the body has no padding, for rows that draw their own.
|
|
114
|
+
- Prototype snapshots retry a timed-out scene once with twice the time, and a scene whose page threw or logged an error once in a fresh page (the run and `report.json` mark both), and keep drawing all scenes after a scene fails or a check finds a problem. `--scene` can complete a matching failed report from the terminal. The default opens up to four pages according to cores and free memory, or up to two when drawing admin scenes.
|
|
115
|
+
- `ape prototype version` takes several changes at once (`version C-012 C-013 --why "..."`): one snapshot is checked and derived once, all are recorded or none, and `--json` answers a `records` list (one change still answers `record`). Recording changes one after another from the same snapshot no longer needs a commit between them.
|
|
116
|
+
- A Merge change refused by its checks names the failing turbo tasks (`package#task`) when turbo reported them, and keeps the failing check's whole output, redacted, in `.ape/logs/merge-failed-<change>.log` in the main checkout (CLI, `--json` and the studio's notice name it). `ape change --check --json` now writes a `[ape check N] $ command` line on stderr before each check.
|
|
117
|
+
- A prototype scene that frames an app scene from another origin below the fold no longer stalls until it times out: Chromium paints no frame there, so the wait for a paint now ends after a second.
|
|
118
|
+
- The studio's Brand and Brief read shorter: every direction card shows its name, four colors, one sample line and the first sentence of its voice cut to two lines, with the whole voice behind "More about this voice"; corners are named in words (square, slightly rounded, rounded, very rounded, round buttons), the number staying in the theme and the Brand detail; the Warm and human voice says "never sugary". The Brief opens on a summary (what it is, who uses it, the kind, the first must-have) with each section folded under a one-line preview, the product's words unchanged. A direction's `corners` text became `radius`, a number.
|
|
119
|
+
- The studio's frame follows its design: the rail's current place on the selected fill in strong words, counts as filled yellow circles, 28 px step pips, the default agent in a bordered card; a 56 px top bar with the project behind a divider, the branch on a quiet mono chip, the level as an outlined control and plain 40 px icon buttons; the agent panel on the raised surface with the agent's words on a card. `IconButton` gains `quiet`: pressed keeps the plain look while `aria-pressed` still says it is on.
|
|
120
|
+
- The studio takes its design's look: its colors, Inter and JetBrains Mono (now shipped with `ape ui`, which loaded no fonts before, and with the playground), 15 px interface text with three weights, 8 px controls and 12 px cards, a 56 px top bar, a 264 px rail, a 384 px agent panel, and its motion and shadows. The studio's theme follows its design exactly and sets two checks aside with the new `allow` field: its control edges and its status words (the focus ring, every other word and the contrast mode stay checked); its small controls are 36 px. Products keep every check and 44 px targets. `setAsideWords(theme, mode)` names the colors the rendered-text check skips.
|
|
121
|
+
|
|
122
|
+
**Upgrade notes** (every product):
|
|
123
|
+
Nothing to do for `ape dev` and `ape ui`. If your app's own `metro.config.cjs` predates this release and you start Expo another way with `EXPO_PUBLIC_STUDIO_ORIGIN` set to `localhost`, write `127.0.0.1` there. With the new config a `localhost` studio origin means `127.0.0.1`, so a studio you serve at `localhost` yourself must be opened at `127.0.0.1`.
|
|
124
|
+
|
|
125
|
+
## v0.8.33 (2026-11-26)
|
|
126
|
+
|
|
127
|
+
- **What 0.8.33 holds:** Prototype's preview keeps a playing app through slow reads, missed probes, a hidden pane and a studio tab that was throttled or asleep; the studio reads a returning tab at once and its Hold Autopilot merges switch follows the server's answer; Prototype's first read of the saved source is faster and waits instead of failing; development defaults to `127.0.0.1` with either loopback spelling accepted; Android no longer crashes on screens that format lists or relative times; `ape check` names the phone build dependencies an app cannot find, and new products carry them; and a sign-in whose person no longer exists is treated as signed out. See the upgrade note below.
|
|
128
|
+
|
|
129
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (18) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (19) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (20) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (21) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save. (22) The F98 sentence changes only what the agent is told: the denial words it gets back are Claude Code's own. (23) GATE: a later change to `.gitattributes` merge drivers can change how an old merge reads (re-run the check after one), and an own edit followed by its own revert still blocks. (24) SNAP: failed-run logs pile in `.ape/logs` until a pass of the same runner, and `scrubPaths` leaves the tail of an unquoted path with a space. (25) F97: Start can submit a Prototype source held through the Checking window (the server re-checks it), and the autopilot, merge-hold, evidence and worktree facts of /api/studio still read Git synchronously. (26) F99: outside the preview pane each navigation pays the silent switched attempt again (about 11 s, only when an app listens on one hostname spelling), and the switched-to-given retry fires on any failed frame. (27) F105: the throttled or sleeping tab was proven with a test clock only (no real Chrome run), and a preview frame that failed during an outage shorter than about 20 s no longer retries by itself when the app comes back. (28) F108: a report of the studio staying silent until you navigate was not reproduced; the returning-tab fix covers panes that only fire focus. (29) F104: no passkey can be added in development on the `127.0.0.1` default (browsers refuse an IP address for passkeys); set the three addresses to `localhost` names where you need them.
|
|
130
|
+
|
|
131
|
+
- The studio's Prototype preview keeps a playing app when the studio's own tab was throttled or asleep (a deadline seen more than about a second late starts the window again once per heartbeat instead of failing), and says "Your app is not running" only when the app has not answered lately, not after one missed probe.
|
|
132
|
+
- The studio no longer says it "has not answered" after a tab or pane was hidden: coming back (visible or focused) reads at once and the silence is counted from the return, not from the hidden time; a read that really fails still says so.
|
|
133
|
+
- The "Hold Autopilot merges" switch follows the server's answer as soon as it comes, without a reload; an older poll cannot flip it back, and a failed save says so.
|
|
134
|
+
- Products that set nothing now use `127.0.0.1` in development. The admin console listens there by default, and the API accepts credentialed requests from either loopback spelling of its configured app and admin origins. In development a passkey cannot be added in the admin console on the `127.0.0.1` default (browsers refuse an IP address for passkeys); a product that needs passkeys in development sets `APE_APP_URL`, `APE_ADMIN_URL` and `APE_API_URL` to `localhost` addresses, which are kept as given.
|
|
135
|
+
- New products carry the two phone-app libraries Test devices needs, so a fresh product builds for a phone without an install step.
|
|
136
|
+
- Prototype's first read of the saved source is faster and no longer says "could not be read" while Git is only slow: the replay of the saved result takes four rounds of at most four Git processes (it took one round per command, nine in a measured product), and until a change has been answered once the panel keeps waiting, saying Checking after ten seconds, up to three minutes (a rejected or failed read still says so at once).
|
|
137
|
+
- `ape check` and Test devices name the phone build dependencies a product's app cannot find (`expo-web-browser`, `react-native-webview`) and give the `npx expo install` command before a phone build starts; a bare `ape check` now runs this check instead of printing the list of checks (`ape check --help` still lists them).
|
|
138
|
+
- Android no longer crashes on screens that format lists or relative times: the native app loads the Intl pieces its engine lacks, only those, and only for the product's languages, before it shows a screen (it waits at most 8 s).
|
|
139
|
+
- Native app bundles ship Intl data for the product's configured languages and their fallbacks (see the upgrade note below).
|
|
140
|
+
- A web-only product no longer needs the native Intl step: `ape i18n check` skips the locale-loaders check and `ape i18n generate` writes empty loaders (no FormatJS packages needed) when `platforms` lists neither `ios` nor `android`; and `ape i18n` messages follow `LC_ALL`/`LANG` like the other `ape` words.
|
|
141
|
+
- The studio's dev probes recognize app, console and API listeners on either IPv4 or IPv6 loopback, whichever spelling the development URL uses.
|
|
142
|
+
- Slow or failed saved-source reads leave the app preview open and show unavailable controls for source-dependent actions.
|
|
143
|
+
- Studio polling and hiding the preview pane keep the same playing journey and step. The frame's heartbeat decides when an open preview loses its connection.
|
|
144
|
+
- The chat panel renders only while shown and starts with the latest 200 messages. Show earlier loads another 200.
|
|
145
|
+
- If the preview's switched loopback address times out without an answer, subsequent journeys use the original address. A frame that answered and later lost its heartbeat keeps its address.
|
|
146
|
+
- **Fixed:** a sign-in whose person no longer exists (for example after a reset development database while the browser still holds its cookie) is treated as signed out: `GET /v1/me` and every other route that needs a sign-in answer 401 and the app returns to sign-in (`GET /v1/me` answered 500).
|
|
147
|
+
|
|
148
|
+
**Upgrade notes** (every product):
|
|
149
|
+
Install the app's pinned locale-data dependencies with `pnpm --dir apps/app add -E @formatjs/intl-displaynames@8.0.4 @formatjs/intl-listformat@9.1.1 @formatjs/intl-pluralrules@7.1.1 @formatjs/intl-relativetimeformat@13.0.4`, then run `pnpm ape i18n generate`. In `apps/app/src/shell.ts`, add `import { intlLoaders } from './i18n/intl-locales.gen.ts';` and pass `intlLoaders,` in the `createAppShell` config. Direct callers use `ensureIntl(locales, intlLoaders)`. Without the `shell.ts` edit a native product logs one warning naming the missing locales and keeps the old behaviour (an engine without the Intl APIs still fails at `formatList`). A phone product whose app lacks them also runs `npx expo install expo-web-browser react-native-webview` in `apps/app`.
|
|
150
|
+
Known limits: the throttled or sleeping studio tab was proven with a test clock only, not a real Chrome; and a preview frame that failed during an outage shorter than about 20 s no longer retries by itself when the app comes back.
|
|
151
|
+
|
|
152
|
+
## v0.8.32 (2026-11-25)
|
|
153
|
+
|
|
154
|
+
- **What 0.8.32 holds:** Prototype and the studio read calmer under slow reads (the studio keeps the last confirmed development level and Prototype source, shows Checking after ten seconds and clears them after three minutes; a saved level never stays shown as in effect; a first read that fails says the studio isn't answering at once; the Prototype poll no longer blocks the server on Git, which was the cause of the slow /api/studio); a failed snapshot names its cause and keeps its log, draws the scenes the change touched first, gives each scene 120 seconds and keeps Take offered through one missed probe; the Prototype preview plays up to 128 journeys, every refused hello names the check that refused it, a hidden pane retries when shown, the preview frames the app at the studio page's own loopback hostname as a precaution (then once at the address as given), and the app's web code no longer crashes on a blocked browser store; `ape prototype data --check` blocks on sample files the change's own commits touched; and a studio agent is told that Claude Code's own denial text means the step refused the call, not run, nobody asked. Upgrade `@buffcore/app-shell` and `@buffcore/admin-shell` together (see the upgrade note below).
|
|
155
|
+
|
|
156
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (18) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (19) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (20) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (21) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save. (22) The F98 sentence changes only what the agent is told: the denial words it gets back are Claude Code's own. (23) GATE: a later change to `.gitattributes` merge drivers can change how an old merge reads (re-run the check after one), and an own edit followed by its own revert still blocks. (24) SNAP: failed-run logs pile in `.ape/logs` until a pass of the same runner, and `scrubPaths` leaves the tail of an unquoted path with a space. (25) F97: Start can submit a Prototype source held through the Checking window (the server re-checks it), and the autopilot, merge-hold, evidence and worktree facts of /api/studio still read Git synchronously. (26) F99: outside the preview pane each navigation pays the silent switched attempt again (about 11 s, only when an app listens on one hostname spelling), and the switched-to-given retry fires on any failed frame.
|
|
157
|
+
|
|
158
|
+
- The studio keeps the last confirmed development level and Prototype source through missed reads, shows Checking after ten seconds, and clears the held facts after three minutes without an answer (the Prototype page then says how many minutes its saved source has gone unread). A saved level never stays shown as in effect: it is dropped when the save starts and again when it is answered, and returns only from a read that began after the answer.
|
|
159
|
+
- Studio pages show Loading before the first answer. A first read that fails (an error, a refusal by the network or ten seconds without an answer) says the studio isn't answering at once, and the Prototype page says the same for its saved source. The Brief waits for its plan before showing fields or save instructions, for three minutes at most.
|
|
160
|
+
- Prototype's saved-source poll reads the checkout, the saved result and the record proof without blocking other studio requests; its source and status are read from the same HEAD, which is read again after the status and retried once, and a record still checks the source again.
|
|
161
|
+
|
|
162
|
+
- The studio's Prototype preview plays an app with many journeys: the limit is now 128 journeys and 65,536 characters of reply (it was 32 and 16,384, and an app above it left the preview at "Loading your app…" with no word). A journey with a bad key, a repeated key, no title or too many steps is left out and the studio names it and why, while the others still play; a reply over the size limit or with a broken shape, and a hello that gets no reply, now show a plain sentence instead of a silent wait; a pane that was hidden when the studio asked answers when it is shown, and the studio's waits no longer run out while its page is hidden. An app that answers from `localhost` for a `127.0.0.1` address (or the reverse, or `[::1]`) on the same port now plays in the preview, where its hello was dropped without a word; a hello from any other address or port is refused with a sentence naming both addresses. As a precaution (it is not a proven cause of any failure), the studio frames an app given as `localhost` (or `127.0.0.1`) at its own page's loopback name so the frame is on the page's own site, and if that first frame stays silent it asks once more with the address as given; the "open in its own tab" link keeps the address as given. A refused hello now says which check refused it (shape, origin, an address of `null`, another page load, or not exactly one port).
|
|
163
|
+
|
|
164
|
+
**Upgrade notes** (every product):
|
|
165
|
+
Upgrade `@buffcore/app-shell` and `@buffcore/admin-shell` together (the same-hostname framing is a precaution, not a fix for a known cause); an older studio still refuses an app that lists more than 32 journeys, and an older app is read as before.
|
|
166
|
+
- The app's web code can no longer crash on a blocked or full browser store: every read and write of local or session storage (the device grant, the preferences, the fake push token) goes through one small guard, so a store that throws a `SecurityError` or `QuotaExceededError` reads as empty and keeps nothing, and clearing the device grant no longer rejects.
|
|
167
|
+
- A failed studio snapshot keeps what its run printed in `.ape/logs/snapshot-failed-<runner>.log` (for main's snapshot, `snapshot-failed-snapshot.log`): redacted, the run's own root shown as a relative path and any other absolute path hidden (a quoted path and a network path included; a path with a space is only hidden when quoted or when it is the run's own root, so its tail can stay), written and removed only when no link lies on its way, and removed only by a passing run of the same runner. When the run has no problem to list, the studio shows one finding at that file naming the cause (exit code or signal, the time limit, the output limit, or that no result was written) instead of "failed before any problems could be listed"; when it lists problems of its own, those are the cause and the file is only where the whole output went (no extra finding, so the count is the run's own). The studio's run also draws the scenes the change touched first (`ape prototype snapshot --own-first`; the report keeps its order, and by hand the order is unchanged).
|
|
168
|
+
- The studio's Take snapshot gives each scene 120 seconds to draw (the command's own default stays 30), Take stays offered for 20 seconds after one missed probe of the app so it no longer flips between ready and unavailable (the page still shows the probe's own answer, a click probes again, and `stack.appRecent` carries the kept answer), and a server-wait retry keeps the run's scene limit.
|
|
169
|
+
- A studio turn's agent is told that Claude Code's own "Permission to use X has been denied" or "you haven't granted it yet" tool result means the step refused the call before it ran (not run, nobody will be asked), because the studio cannot change those words; the agent now says refused, not held for approval. A call that ran and failed, a person's decline or a rule's block keep their own cause, which the agent reports as it is.
|
|
170
|
+
- `ape prototype data --check` blocks on any sample file the change's own commits touched after its approval (even if main made the same edit) and lists files that arrived through history shared with main on one line; a detached checkout is unknown.
|
|
171
|
+
|
|
172
|
+
## v0.8.31 (2026-11-25)
|
|
173
|
+
|
|
174
|
+
- **What 0.8.31 holds:** a fresh product opens on the studio's one-question start (its idea goes to the Brief chat), and Setup's Where it runs, Brand's app icon and the Brief's Not this project use the real facts and commands; the studio reads calmer (one header row with the level as a quiet chip, a settings gear, a rail of places, and a read-only Board view on Work) and its header level no longer flips between a level and "Not confirmed": after one slow or failed read the level and the unsaved files keep their last good value for 30 seconds and a saved level shows at once; and a studio agent is told that a call its step does not allow is refused in that step, not held for approval.
|
|
175
|
+
|
|
176
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (18) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (19) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (20) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (21) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save.
|
|
177
|
+
|
|
178
|
+
- A fresh product opens on the studio's start page and sends its idea to the Brief chat. Setup shows where the product runs and can switch phone builds on or off, Brand lets you upload or ask for an app icon, and the Brief shows what the project will never do.
|
|
179
|
+
- A studio turn's coding agent is now told that a call its step does not allow is refused in that step (not run, nobody asked), so it no longer tells the person the call was held for approval.
|
|
180
|
+
|
|
181
|
+
- The studio reads calmer: one header row (the product, the development level as a quiet chip, a settings gear holding the level, this computer's pages and Help); the rail lists the product's places or the loop's step names, with the default agent at its foot; an unavailable control keeps a small "why" beside it instead of a row of explanation. Agents lists each agent with its state, and How to install or How to sign in opens a short sheet ending in Check again. Plan is one milestone list with the current one open and "4 of 7 done" counts; an empty plan names its next step. Work gains a read-only Board view: a column per state, a swim lane per milestone or journey, one column at a time on a phone.
|
|
182
|
+
|
|
183
|
+
- The studio header's development level no longer flips between a level and "Not confirmed" from one page load to the next: after one failed or slow read the level (and the unsaved files) keep their last good value for 30 seconds, then show unknown; the work, merges and release proof still show unknown at once. A level change or a save made in the studio drops the held level and unsaved files (a merge drops both, the end of a turn only the unsaved files), so the header never shows the old level after such a change; a change made outside the studio shows within a refresh, or within 30 seconds when reads are slow; a failed read of the level shows unknown, not Guide.
|
|
184
|
+
|
|
185
|
+
## v0.8.30 (2026-11-25)
|
|
186
|
+
|
|
187
|
+
- **What 0.8.30 holds:** the studio answers within a budget however many worktrees, branches and chats a product has (`GET /api/studio` reads a cache that one background refresh fills; a fact that cannot be read keeps its last good value and shows as unknown, never healthy); a product's `platforms` list decides what is made and built (`ape enable|disable ios|android`, `ape create --platforms`; a store build with a `com.example.` store ID is refused); the one-question start, Where it runs, the app icon and Not this project are drawn in the studio (wired in the next release unless its section says otherwise); a host can draw at the end of Setup and above the Issues lists and can register read-only outside items; Record and Approve share one rule for what may change after a snapshot (names with leading whitespace and hidden submodule changes are refused); and the template's Expo pins agree with their peers again (**upgrade note:** raise `expo-constants` to 57.0.25 and `@expo/metro-runtime` to 57.0.19; and a store build needs a real store ID, see Unreleased below).
|
|
188
|
+
|
|
189
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (18) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (19) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded. (20) The studio's cached state shows work built in a merged worktree after a 2 minute re-read, the merge and prototype-on-main caches share one eight-entry limit so many hosted viewers can miss them, and the first read after a start can wait about 6 s (F93b). (21) The icon read trusts its cache only for a file older than 2 s; the hosted save is asked once, at Brand's Save.
|
|
190
|
+
|
|
191
|
+
- Record accepts the same record-only commits as Approve between a snapshot's source and HEAD (version records, plan change files, `design/approval.json`, `plan/approvals.md`), so a second change can be recorded after the first was recorded and approved without reverting by hand; it now names up to three changed files when a code change makes the snapshot stale. The rule and its git read live once, in `prototype/record-paths.ts`: a changed name is read exactly (leading whitespace included), and a submodule's pointer change always counts, whatever `ignore` says.
|
|
192
|
+
- The studio answers within a budget however many worktrees, branches and chats a product has: `GET /api/studio` reads a cache one background refresh fills (the request never waits for Git, a worktree already merged into main costs none, a chat file is read only when it changed), and a fact that cannot be read, or is old, is shown as unknown (never as its last healthy answer) and listed in `stale` in the state.
|
|
193
|
+
- Hosted workbenches can register outside issue topics and changes for an authenticated read, with explicit unknown status when a source cannot be read.
|
|
194
|
+
|
|
195
|
+
- A host can draw its own elements at the end of Setup (`setup.end`) and above the Issues lists (`issues.top`), as module sources too; nothing changes for a host that registers none. `issues.source` and `work.changes` are versioned now as data places a host does not draw into (`DrawPlaceId` leaves them out).
|
|
196
|
+
- The studio's start page, drawn (not wired yet): one idea field with the name and involvement as chips, replacing the drawn Fresh and New project pages; Setup's Where it runs (Web, iOS, Android switches with the store ID sheet), Brand's app icon card and the Brief's Not this project card are drawn too, as the playground's `studio-start-*` scenes.
|
|
197
|
+
- The studio can take and show the brand's app icon: `POST /api/brand/icon` writes `design/app-icon.png` into the working copy (a PNG of exactly 1024 by 1024, at most 1 MB, nothing through a link; written whole or not at all, and the hosted save question comes once, at Brand's Save), `GET /api/brand/icon` returns it, and the studio state lists it as `appIcon`; Brand's Save carries the file with the rest of `design/`.
|
|
198
|
+
|
|
199
|
+
- A fresh product's phone app installs under strict peers again: the template pins `expo-constants` 57.0.25 and `@expo/metro-runtime` 57.0.19, which `@expo/router-server` 57.0.16 (brought by `expo` 57.0.27) asks for; a test checks the template's Expo pins against their peers.
|
|
200
|
+
|
|
201
|
+
**Upgrade notes** (every product):
|
|
202
|
+
Raise `expo-constants` to 57.0.25 and `@expo/metro-runtime` to 57.0.19 in `apps/app/package.json`, then install.
|
|
203
|
+
|
|
204
|
+
- A product's `platforms` list now decides what is made and built. `ape create <name> --platforms web[,ios][,android]` starts with only those (the default stays all three; `--json` gains `platforms`). New `ape enable ios|android --id <reverse.domain.id>` and `ape disable ios|android` (`--json`, `--force`) list or unlist a phone app and set its store ID in `apps/app/app.json`, the only place it lives (a real ID changes only with `--force`; `web` cannot be turned off). `ape build ios|android` refuses a platform the product does not list, and a store build whose ID is still the `com.example.` placeholder (iOS except `--builder mac --simulator`; Android when `APE_ANDROID_KEYSTORE` is set). `defineProduct` now requires `web` in `platforms` (it only required one platform). `ape enable <feature>` is unchanged.
|
|
205
|
+
|
|
206
|
+
**Upgrade notes** (every product):
|
|
207
|
+
A product that makes a store build (`ape build ios`, or `ape build android` with `APE_ANDROID_KEYSTORE`) while its store ID in `apps/app/app.json` still starts with `com.example.` must first run `ape enable ios --id <reverse.domain.id>` (or `android`): the ID cannot change after the first store release. A `buffcore.config.ts` that lists `web` (every product made by `ape create` does) needs nothing else; one without `web` now fails to load until `'web'` is listed.
|
|
208
|
+
|
|
209
|
+
- The studio knows what the product will not do and where it runs: `plan/not-this.md` (new in a new product, one bullet per line) reaches every planning chat, and the studio state lists the phone platforms and store IDs with `ape enable` and `ape disable` as run ids. Nothing breaks: a product without the file reads none.
|
|
210
|
+
|
|
211
|
+
## v0.8.29 (2026-11-25)
|
|
212
|
+
|
|
213
|
+
- **What 0.8.29 holds:** a person's message is no longer lost when a studio turn starts slowly (every Claude turn reads its message as one stream-json line, and a turn the agent never read says "Your message wasn't sent. Send it again." and gives the words back); a job queued from an account-bound extension handler carries that account (run `ape migrate` first: `kernel/0003-job-account`); orphaned private upload originals are counted daily and listed or removed only by a person with `ape uploads orphans`; and test databases are named and aged by the real clock, so a product test that fakes `Date` keeps its database.
|
|
214
|
+
|
|
215
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time. (18) The unsent notice is for Claude's CLI only; the words the composer gets back are the stored message, including the transcript prefix, and attached images are not restored. (19) The test databases' first cleanup of a run still ages a shared-database schema by its name alone, with no connection check; fake `Date` only after `@buffcore/db/testing` has loaded.
|
|
216
|
+
|
|
217
|
+
- A job queued from inside an extension handler bound to an account now carries that account (the new `buffcore_jobs.account_id` column, migration `kernel/0003-job-account`, never taken from the job's payload): the job's handler is bound to it, so `storeUpload` in a job refuses any other account; a job queued with no bound account is unchanged.
|
|
218
|
+
|
|
219
|
+
**Upgrade notes** (every product):
|
|
220
|
+
Run `ape migrate` (`kernel/0003-job-account`, an added column) before restarting the API and the worker.
|
|
221
|
+
|
|
222
|
+
- The daily retention job counts the private upload originals that have no row (a handler rolled back after `storeUpload`) and are older than 30 s plus one hour, and logs one line when there are any; it removes nothing. `ape uploads orphans` lists them (id, age, size, total), and `ape uploads orphans --remove` deletes exactly that list after checking each original once more, refusing when the uploads table is empty but the bucket holds originals.
|
|
223
|
+
- A person’s message is no longer lost when a studio turn starts slowly: the studio sends every Claude turn (start and resume) as a stream-json message, so the CLI’s 3-second wait for plain stdin cannot end the turn before the words arrive. A turn that ends before the agent read the message now says "Your message wasn’t sent. Send it again." (an optional `unsent` flag on that line of the chat record; older records read as before) and the composer gives the words back.
|
|
224
|
+
- Test databases are named and aged by the real clock read when `@buffcore/db/testing` loads, so a product test that fakes `Date` keeps its database and another run's cleanup no longer drops it mid-suite; the cleanup also never drops a database that has a connection ([docs/TESTING.md](docs/TESTING.md)).
|
|
225
|
+
|
|
226
|
+
## v0.8.28 (2026-11-23)
|
|
227
|
+
|
|
228
|
+
- **What 0.8.28 holds:** the studio takes and saves a change's prototype snapshot in the change's own checkout, with its own servers, beside main's, and `ape prototype snapshot` there starts its own servers and never uses main's (the fingerprint is now v3); a snapshot checks what needs no page first, stops starting scenes at the first problem, takes `--pages` and refuses to start when the computer is short of memory; Approve no longer calls a version stale because of later snapshots, records or plan files; a studio turn whose process check was slow is retried once, and `ape turn wait` and the Work card report how a turn ended; extensions can keep received files as private uploads (`storeUpload`) and run `onInboundMail` as themselves; members can set up their own email domains; a catch-up merge is no longer held for a protected path whose result is the branch's own; prototype snapshots reuse eligible scenes from an ancestor commit; and the prototype guidance now says to snapshot the scenes you touch and take one full snapshot when the change is done.
|
|
229
|
+
|
|
230
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (4) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (5) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (7) The MCP tool list can still offer a tool that a member's grant will be refused. (8) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (9) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (10) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (11) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (12) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (13) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (14) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b). (15) A snapshot that is stopped at its first problem lists only the scenes it started: a stopped whole run drops the others from its report, and a stopped `--scene` run drops the entries of scenes it never started. (16) The studio's snapshot door and `/api/run` can use the same runner id `snapshot:<change>`; a scene drawn without an API is labelled in the Prototype panel but not yet in the approval view. (17) A studio turn left running by a studio that died is reported failed with the studio's interrupted sentence, but carries no end time.
|
|
231
|
+
|
|
232
|
+
- The prototype guidance (the `ape-prototype` and `ape-design-system` skills, the five design directions, `docs/PROTOTYPE.md`) now says: snapshot the scenes you touch while working, and take one full snapshot, which copies every scene whose inputs did not change, when the change is done, before a milestone's approval and before a release.
|
|
233
|
+
|
|
234
|
+
- `ape prototype snapshot` checks what needs no page first (the theme checks), stops starting new scenes at the first scene with a problem (the report lists the scenes that started and the run names that scene; a failed theme check ends the run before drawing and says to fix the theme and snapshot again to see each scene's findings), takes `--pages <n>` (1 to 4; the default stays two, one when free memory is low), and refuses to start when the computer has under 1.5 GB of free memory.
|
|
235
|
+
|
|
236
|
+
- Studio Approve no longer calls a version's snapshot stale because a later snapshot, a version record or a plan change file was committed (Record's Save these files included). It refuses, naming what differs, when snapshot files wait uncommitted, the recorded report, data or design differs, or any other file in the repository changed since the version's source commit (so a BuffCore upgrade's `package.json` or lockfile change makes pending versions stale: take a new snapshot). An unexpected error is logged and answered as itself, not as stale.
|
|
237
|
+
|
|
238
|
+
**Upgrade notes** (every product):
|
|
239
|
+
A version awaiting approval whose source commit is older than this upgrade reads stale, because the upgrade changes `package.json` and the lockfile: take a new snapshot of it. The first snapshot also redraws every scene once (see the snapshot note below).
|
|
240
|
+
|
|
241
|
+
- The studio takes and saves a change's snapshot in its own worktree: Take snapshot is enabled for a change in its own checkout (its own servers, no stack of main's needed, one run per change beside main's), Save commits only the three files of that run on the change's branch after rechecking them against the run's proof and the screenshots' hashes, and a scene drawn on the stand-in API is labelled "drawn without an API". Record stays on main.
|
|
242
|
+
|
|
243
|
+
- `ape prototype snapshot` in a linked worktree (a change's own checkout) starts its own admin and app servers on ports the system gives that run, with a stand-in where the API would be, and an environment built only from the tracked `.env.example`; it never uses main's servers, does not read the root `.env` (a surface folder's own gitignored `.env*` files are still loaded by Vite and Expo, and their public values are part of the fingerprint), and refuses `--remake`. Its report says `api: "stand-in"`, and a scene that calls the API is drawn without one and never reused. The snapshot fingerprint no longer includes the servers' addresses or the root `.env` file. A snapshot stopped by Ctrl+C, a closed terminal or a catchable stop takes its servers down with it. **Known limit:** on macOS and Linux a hard kill of the snapshot (SIGKILL, which the studio's Stop sends to the snapshot process only) leaves its servers running, about 2 GB: find them with `lsof -a -d cwd -c node` (their working folder is the worktree's `admin` or `app` folder) and `kill` them; on Windows the stop takes the whole tree. Git failing inside a checkout now stops the snapshot with a sentence instead of reading main's `.env`; the ports are checked again just before `report.json` is written; a product with one surface starts only that one.
|
|
244
|
+
|
|
245
|
+
**Upgrade notes** (every product):
|
|
246
|
+
The first snapshot after upgrading redraws every scene once: the fingerprint changed (`snapshot-inputs-v3`), so scenes saved by an earlier version are not reused. Nothing else to do.
|
|
247
|
+
|
|
248
|
+
- A studio turn that dies before the agent starts is no longer lost to a slow process check: the check waits out a slow query or a short-lived helper process (still only a proven process), the turn is run again once by itself, and a stopped turn shows its reason and Retry on the Work card and under Waiting on you. `ape turn wait <chat|change>` waits for a turn's end and reports how it ended (if the studio died mid-turn and its agent is gone, it reports failed at once, "the studio stopped before this turn finished", with the agent's last message: the same outcome the studio's recovery writes, so the answer does not depend on timing. The studio's chat view and the change's card read it the same way, with Retry. This is read from the recorded studio and agent on each call, so nothing is written or signalled, and a turn whose liveness cannot be proven, such as a lock or record from another host, boot or pid namespace, still reads running, with a reason saying it could not be checked). A change on Work now reads Building only while a turn runs; after a finished turn it reads Turn finished (a deliberate change), and Retry is offered only to people who may build.
|
|
249
|
+
|
|
250
|
+
- Studio chats carry a `turn` fact read from the stored record (running, or ended as finished, stopped or failed, with its reason and last message), so the panel never shows Working for an ended turn; the panel and the page say the studio isn't answering only after several reads in a row fail.
|
|
251
|
+
|
|
252
|
+
- Extensions can keep received files as private account uploads when granted the file kinds (`storeUpload`, `uploads` in the grant and manifest). Also changed: an extension's `onInboundMail` handler now runs as that extension (its `outbound(ctx)`, actions and webhooks work there); the uploads worker reports a processor failure as the upload reference only, never the processor's own message, which can quote the file; and `ape extensions check` checks the grants against the manifests.
|
|
253
|
+
|
|
254
|
+
- A catch-up (main merged into a change's branch) is no longer held by the pre-merge-commit hook for a protected path whose result is the branch's own version, or main's version when the incoming head is main; a result matching neither parent is still held, and the change's own merge into main still holds its protected edits. A catch-up from `origin/main` or a stale local main is judged as before (not part of this change).
|
|
255
|
+
|
|
256
|
+
- Signed-in members can set up, check and remove email domains for their own account (`createMemberDomainIdentity`, `checkMemberDomainIdentity`, `removeMemberDomainIdentity`); a verified domain is never removed. A member's domain claim that is not verified within 72 hours is removed and stops blocking other accounts; the new `notification_domain_claims` table (a migration) holds when each claim was made, and goes with an account's export and deletion. An abandoned claim lasts at most 72 hours; one account deliberately claiming again can still hold a domain, and the Owner can remove it.
|
|
257
|
+
|
|
258
|
+
- Prototype snapshots reuse eligible scenes and verified screenshots from a committed ancestor, with each reused scene labelled for approval. The CLI now depends on esbuild 0.28.2 at runtime to fingerprint surface inputs.
|
|
259
|
+
- Studio Work shows prototype versions awaiting approval under Waiting on you, with approval on the change card. Known issue: Work can still show Done when it cannot distinguish a save on main from a branch merge.
|
|
260
|
+
- Studio Work lets a person mark a change built when its approved prototype commit is already on main.
|
|
261
|
+
- Studio Work lets a person approve an extension's requested places in one click and records the approval on that change's branch.
|
|
262
|
+
- Added the `pnpm verify:template` tooling command to test a created product's app and admin with Payments and packed BuffCore packages. It reports test file counts and preserves the test result if temporary files cannot be removed.
|
|
263
|
+
- `ape migrate status` reports applied migrations missing from the code and shows how to recover.
|
|
264
|
+
- Merge, Catch up and `ape change --check` refuse new migrations that reuse a module's migration number on main under a different name.
|
|
265
|
+
|
|
266
|
+
## v0.8.27 (2026-11-22)
|
|
267
|
+
|
|
268
|
+
- **What 0.8.27 holds:** a person can hold Autopilot's merges from the studio (the hold sits in the repository's git folder; a person's own merge and `ape change merge` are never blocked), and the Work page previews a merge before it happens: the files it brings, how far the branch is behind main, whether it merges cleanly and which checks run (F64c). Hosted merges now finish through one shared publication guard (see the upgrade notes). Autopilot names the unsaved files in main's checkout, waits up to 30 seconds for them to be saved and then asks the person once, instead of refusing without a name (F70). A coding turn can create a migration with `pnpm ape migrate create` while the product's `.env` stays sealed (F64b). Prototype data checks excuse a sample file that another merged change edited (F71).
|
|
269
|
+
|
|
270
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (8) The MCP tool list can still offer a tool that a member's grant will be refused. (9) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (10) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (11) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (12) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (13) The merge hold stops Autopilot only: a shell script that a coding turn is allowed to run outside a filesystem sandbox can still write the hold file, and a hold that arrives while Autopilot removes a finished change's checkout can leave a merge commit that no branch reaches (F64c). (14) Autopilot's check for unsaved files in main's checkout reads status just before it moves main: a file saved in the few milliseconds between that read and the move can end up under the moved main; a main checkout registered twice with `git worktree add --force`, a checkout reached through a junction spelling, and a second studio process on the same repository are not covered, and a change a person merges by hand while it waits can still show one "needs your OK" line (F70). (15) A coding turn can reach the development database on loopback with the compose login; it holds development data only (F64b).
|
|
271
|
+
|
|
272
|
+
- Autopilot names unsaved files in main’s checkout and waits for them to be saved before merging.
|
|
273
|
+
|
|
274
|
+
- Studio can hold and resume Autopilot merges while people continue to merge by hand.
|
|
275
|
+
|
|
276
|
+
- Studio Work previews the file count, distance from main, mergeability, and declared checks before a merge.
|
|
277
|
+
|
|
278
|
+
- Hosted Autopilot merges use the shared publication guard. BuffCore reserves `autopilot_merge_held` and `merge_publication_lock` for its own refusals.
|
|
279
|
+
|
|
280
|
+
**Upgrade notes** (every product):
|
|
281
|
+
Hosted merge integrations must pass their final write to `HostMergeInput.publish(write)`, including queued writes. Replace the former `canPublish` check with this call. Hosted Autopilot accepts a success only after guarded publication.
|
|
282
|
+
|
|
283
|
+
- Studio coding turns can generate migrations in their change’s worktree with `pnpm ape migrate create` while the product’s `.env` stays sealed.
|
|
284
|
+
- `ape migrate create` refuses to overwrite an existing migration file and escapes `\` and `${` in generated files.
|
|
285
|
+
- Prototype data checks excuse additions from other changes already merged into the branch when they edited existing, self-contained sample files. JSON adds an `excused` array.
|
|
286
|
+
|
|
287
|
+
## v0.8.26 (2026-11-21)
|
|
288
|
+
|
|
289
|
+
- **What 0.8.26 holds:** the Work page reads its states from main: a change is Done when main holds a commit with its `Change:` trailer (or a commit named by an optional `doneIn` header), even after its branch is deleted; Next up needs every dependency Done and an approved prototype, and Later applies only to a later-milestone change whose own dependencies are not Done (F69). A snapshot that loses a server names it, its exit code and the scene, and `ape dev` logs why a server exited (F68a). A full snapshot keeps its finished scenes and a rerun on the same checkout continues from the failed one; a changed checkout starts over (F68b). Autopilot and the studio save a turn's files with Change and Task trailers inside the change's own worktree (F65a-2). No upgrade notes: nothing a product depends on changed.
|
|
290
|
+
|
|
291
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (8) The MCP tool list can still offer a tool that a member's grant will be refused. (9) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (10) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (11) A resumed full snapshot does not notice a change to an ignored fixture file that a scene uses: take it again with `--remake`; edits hidden with `git update-index --assume-unchanged` are not seen by the studio's snapshot evidence (F68b). (12) Work built in several saves directly on main reads Done after its first save that carries the `Change:` trailer (F69). (13) A coding turn's `ape migrate create` still cannot read the database URL, so the migration is written by hand (F64b). (14) Autopilot refuses a merge while main's checkout has unsaved files without naming them (F70).
|
|
292
|
+
|
|
293
|
+
- Full prototype snapshots keep finished scenes after an interruption and continue when run again on the same checkout with the same inputs (F68b).
|
|
294
|
+
|
|
295
|
+
- Studio Work follows main's history for Done and shows Next up when dependencies and prototype requirements are met. Plan facts keep the same shape and older clients can still read them.
|
|
296
|
+
|
|
297
|
+
- Studio reports unsaved files after coding turns and saves them in Autopilot when checks pass. Studio saves on change branches carry `Change:` and `Task:` trailers.
|
|
298
|
+
|
|
299
|
+
- Snapshots wait up to 30 seconds for a server that refuses a connection, then name the server, scene and known exit status. `ape dev` reports each supervised process exit with its recent redacted output.
|
|
300
|
+
|
|
301
|
+
## v0.8.25 (2026-11-21)
|
|
302
|
+
|
|
303
|
+
- **What 0.8.25 holds:** the studio's Work page at scale: a plain List that fits one screen, By milestone and By journey views, done and later work folded, blocked rows naming what they wait for, and the view, groups, filters and scroll kept when a change is opened. The former By agent grouping is no longer offered (F67). The Prototype page explains when an answering app refuses its frame (F66). Autopilot names unsaved files, an empty change or work already on main (F65a-1). Claude coding turns run their checks in the foreground (F64a). A member can accept a part offer or withdraw a consent while another account is selected (F63c). The Git merge hook uses the exact local `main` tip (F50). No upgrade notes: nothing a product depends on changed.
|
|
304
|
+
|
|
305
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (8) The MCP tool list can still offer a tool that a member's grant will be refused. (9) Some lookups of `main` outside the merge door still use the branch name, and the merge hook reads the agents list from the working copy (F50 follow-ups). (10) The Prototype page's app probe gives up after 500 ms on a slow answer and does not offer the Dev server button when an explicit origin causes the refusal (F66). (11) A full snapshot that fails part-way starts again from the first scene.
|
|
306
|
+
|
|
307
|
+
- **Studio Work page at scale (F67).** Work opens in List and can switch to By milestone or By journey. Done and later work fold away, and blocked rows name what they wait for. Opening a change keeps the Work view, open groups, filters, and scroll position for the return.
|
|
308
|
+
|
|
309
|
+
- Autopilot distinguishes unsaved files and changes with no saved work from changes already on main.
|
|
310
|
+
- Terminal `ape dev` lets the local Studio show the prototype. The Prototype page explains when an answering app refuses its frame and offers the app in its own tab. Studio redirects `localhost` to `127.0.0.1`. An `EXPO_PUBLIC_STUDIO_ORIGIN` set by the shell or a dotenv file takes precedence over the Studio origin (F66).
|
|
311
|
+
|
|
312
|
+
- **Studio coding checks (F64a).** Claude coding turns use foreground checks and can read their own background output, and Studio explains refused calls with the next step.
|
|
313
|
+
- **Acting account follow-ups (F63c).** Members can accept a part offer into an account they own, and withdraw a consent in an account they belong to, while another account is selected. A route flagged `person: true` receives the caller with no acting account (`callerAccountId` returns the default there). Memberships with the same creation time are ordered by ID.
|
|
314
|
+
|
|
315
|
+
- The Git merge hook compares protected paths in the staged result with the receiving branch, using the exact local `main` tip when that tip is among the incoming heads. With an agents list, `ape agents held` outside a merge requires an explicit base. New Studio catch-up merge subjects start with `Merge commit '<oid>'` (F50).
|
|
316
|
+
|
|
317
|
+
## v0.8.24 (2026-11-21)
|
|
318
|
+
|
|
319
|
+
- **What 0.8.24 holds:** a member can choose which account to act for on each request with the `X-Account-Id` header, the SDK's `accountId` option or the app shell's `useAccountSwitch()` (F63a). **Read the upgrade notes of that entry before you update:** a member's API key or MCP grant bound to an account other than the member's primary account now meets the route's right in that account, so a member who is not its Owner or its only member gets 403 on an implicit account route unless a role names the route's key in `accountRoles`. Routes about the signed-in person carry the new `person: true` flag, so switching account never refuses them.
|
|
320
|
+
|
|
321
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory. (8) Withdrawing a consent record can be refused for a member who has a non-default account selected and holds no right to that route there; select the default account first. (9) The MCP tool list can still offer a tool that a member's grant will be refused.
|
|
322
|
+
|
|
323
|
+
- **Acting account (F63a).** A member can choose which account to act for on each request. Route keys declared in account-role presets appear in `identity.list_rights` and `/v1/me`'s `can`, and count in invitation and role-edit checks. A member's key and MCP client meet the same account right check as a session. Routes about the signed-in person can opt in to `person: true`.
|
|
324
|
+
|
|
325
|
+
**Upgrade notes** (every product):
|
|
326
|
+
Clients opt in through `createClient({ accountId })` or the app shell's `useAccountSwitch()`. A member acting for an account other than their default needs the route's right for an implicit account call, including through a member key or MCP grant (a member key bound to an account other than the member's current primary account is checked the same way). Declare the route keys a role may use in `accountRoles`; Owners and a member alone in an account hold every right. Public and person routes skip that check. Routes with `:accountId` ignore the header. Replay keys for implicit member writes now include the account, including the default for members of several accounts. `can(ctx, key)` can answer true for a whole-account route even for a member with one account.
|
|
327
|
+
|
|
328
|
+
## v0.8.23 (2026-11-21)
|
|
329
|
+
|
|
330
|
+
- **What 0.8.23 holds:** a product's tests stay under stock Postgres's connection limit, so a product with many database-backed packages passes `pnpm verify` and the upgrade's test run without lowering concurrency by hand (F62). **Read the upgrade notes of that entry before you update:** the first upgrade from 0.8.22 runs its tests with the old CLI. The studio's Prototype page keeps its preview state across layout changes and returns focus to the control that opened a panel (SSA-2). A snapshot stops when the checkout changes during the run and names a kept scene's problem (F52b, F52c). App `Text` and `TextField` gain product color tokens, tabular figures and quiet and pill variants (F51). `ape design check` gives capped advisory hints for repeated UI patterns, narrow layouts and theme fonts without a loading source (F49f).
|
|
331
|
+
|
|
332
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`, and some Autopilot and merge tests) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
333
|
+
|
|
334
|
+
- **Parallel product tests (F62).** The update reduces test app connection usage and caps Turbo test packages for the starter and for legacy Turbo scripts run by `ape upgrade`.
|
|
335
|
+
|
|
336
|
+
**Upgrade notes** (every product):
|
|
337
|
+
Products with many database-backed packages on stock Postgres must copy the template's `test`, `coverage` and `verify` scripts into the root `package.json` and its `maxWorkers` export into `vitest.shared.ts`. Copy the `maxWorkers` import and setting from `apps/api/vitest.config.ts` and the extension template's `vitest.config.ts` into the corresponding configs for the API and database-backed packages. `ape upgrade` leaves those files as written. The old `pnpm verify` still runs uncapped Turbo and can exhaust Postgres connections. Other behavior is unaffected.
|
|
338
|
+
|
|
339
|
+
The first upgrade from 0.8.22 to 0.8.23 runs its post-install tests with the old, uncapped CLI. Copy the template settings before upgrading, or run `pnpm test` with the copied settings after installation.
|
|
340
|
+
|
|
341
|
+
- **Studio Prototype follow-ups (SSA-2).** The preview keeps its state when Studio changes layout, panels return focus to the control that opened them, failed checks link to Snapshot problems, and the phone draws the preview without a desktop border and shows the approval reason below the buttons.
|
|
342
|
+
- **Snapshot checkout changes (F52b).** A merge or checkout during the run stops it. Editing files during it does not. In `--json`, `diagnostics.sentence` is `prototype.checkoutChanged` when the checkout changes.
|
|
343
|
+
- **Kept scene problems (F52c).** A filtered snapshot names a kept scene and file when it has a problem. In `--json`, `diagnostics.sentence` is `ui.snapshot.failed.keptScene` when the snapshot names a kept scene.
|
|
344
|
+
- **Text and field options (F51).** App `Text` reads product color tokens and supports tabular figures, app `TextField` adds quiet and pill variants, and the snapshot explains how to fix small touch targets.
|
|
345
|
+
|
|
346
|
+
**Upgrade notes** (every product):
|
|
347
|
+
This change is additive and requires no updates. To opt in, extend `ThemeTokenNames` with the type of your `tokenNames` map and pass it with the matching values to `extendTheme`. Use `tabular` on `Text` and `variant="quiet"` or `variant="pill"` on `TextField`.
|
|
348
|
+
- `ape design check` gives capped advisory hints for repeated UI patterns, narrow desktop layouts and theme fonts without a loading source (F49f).
|
|
349
|
+
|
|
350
|
+
## v0.8.22 (2026-11-21)
|
|
351
|
+
|
|
352
|
+
- **What 0.8.22 holds:** extensions that act for a member and a product's own screens, in a release of many small changes. **Read the upgrade notes of the extension-migrations entry (F55) and of the theme-fonts entry (F49a) before you update.** A registered extension job can run a declared, opted-in action as the member who turned it on, with typed stops and an audit row that names the flow (F53a), and `EXTENSIONS.md` now ships with the CLI (F53c). Migration records name the package that applied them and a clash is refused with the one-time rename SQL; `ape add` and `ape remove` rebuild the generated lists from the config text (F55). A product's app screen can start a hosted checkout (F56). Bulk and marketing mail can carry the one-click unsubscribe headers (F60). A signed-in member can ask for the accept link of an invitation, resend it with a fresh token and change a pending invitation's role or rights (F61). The app template bundles and loads its theme fonts, and the prototype's font check only advises (F49a). The shared UI gains three icons, a mono text option, a full-width action, a transparent page and a card surface token (F59). The starter's tests get 60 seconds and `pnpm verify` reports every failing package (F58a). A studio chat follow-up whose saved session cannot be resumed gets one fresh attempt when nothing was done (F57). The planning brief asks what the product replaces (F48), `ape-critique` scores the look first (F49g), local Autopilot merges only after a saved successful turn (47a, 47b) and `ape upgrade` rechecks places (46b).
|
|
353
|
+
|
|
354
|
+
- **Known issues:** (1) On Windows a few cli tests (the shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests time out on a busy computer; Linux runs are green. `create-extension.test.ts` needs the dev Postgres and Redis. (2) A direct `ape migrate` can commit earlier migration sets before it reaches a recorded package clash in a later set (F55). (3) A studio chat retry waits 100 ms for the streams to drain, so output that arrives later is dropped and the turn is not retried (F57). (4) The font check can still warn on screen-reader-only text, opacity filters and some traditional system stacks, and it never fails a snapshot (F49a). (5) A server-rendered frame shows the page colour until hydration when a transparent page is used (F59). (6) The invitation resend limit counts per client address, so a team behind one address can reach it (F61). (7) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
355
|
+
|
|
356
|
+
- **Theme fonts in the app (F49a).** The app template bundles and loads its theme fonts on web and native, including on prototype routes. Prototype pages can draw with system fonts if loading fails or takes more than 15 seconds. Expo exports include the three bundled fonts' OFL notices.
|
|
357
|
+
|
|
358
|
+
The font check only advises, using fonts the page already drew with. Each scene gives up on advice after a shared 850 ms allowance.
|
|
359
|
+
|
|
360
|
+
**Upgrade notes** (every product):
|
|
361
|
+
|
|
362
|
+
In `apps/app`, copy the template's `src/fonts.ts`, `assets/fonts/` and `public/assets/assets/fonts/`, or create your own map using `import type { Fonts } from '@buffcore/app-shell';` and the family names in `design/theme.ts`. The template declares `expo-font` `57.0.4` in `apps/app/package.json`.
|
|
363
|
+
|
|
364
|
+
Use these imports in `apps/app/src/shell.ts`.
|
|
365
|
+
|
|
366
|
+
```ts
|
|
367
|
+
import { createAppShell } from '@buffcore/app-shell';
|
|
368
|
+
import { fonts } from './fonts.ts';
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
Add `fonts,` to the existing `createAppShell({ ... })` config and export `PrototypeFonts` with `export const { AppShell, api, PrototypeFonts } = createAppShell(...)`. `createAppShell` now returns a `PrototypeFonts` member. Add it to typed mocks of the return value.
|
|
372
|
+
|
|
373
|
+
In `apps/app/src/app/_layout.tsx`, update the imports and use the font wrapper in the development branch.
|
|
374
|
+
|
|
375
|
+
```tsx
|
|
376
|
+
import { Stack, usePathname } from 'expo-router';
|
|
377
|
+
import { AppShell, PrototypeFonts } from '../shell.ts';
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
```tsx
|
|
381
|
+
const pathname = usePathname();
|
|
382
|
+
const stack = <Stack screenOptions={{ headerShown: false }} />;
|
|
383
|
+
if (__DEV__ && (pathname === '/_scene' || pathname === '/prototype'))
|
|
384
|
+
return <PrototypeFonts>{stack}</PrototypeFonts>;
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
Snapshots give an advisory font hint when Chromium appears to draw a declared family with a fallback. Hints print in the terminal and appear in the optional `hints` list in `report.json`. They leave the snapshot's status and problem count unchanged. Declare a CSS generic first in a family stack to use system fonts on purpose.
|
|
388
|
+
|
|
389
|
+
Use `import { cssFontFamily, isSystemFont } from '@buffcore/tokens';` to format a single family in custom CSS or recognize CSS generic keywords. `cssFontFamily` emits generic keywords as written and quotes named families, escaping quotes and backslashes. `toCss` applies the same formatting to theme stacks. Update assertions or parsing that expect quoted generics.
|
|
390
|
+
|
|
391
|
+
Pass a single family name or generic keyword to `face` from `@buffcore/ui`. On web it applies `cssFontFamily` before appending `system-ui, sans-serif`. On native, `system-ui` maps to `System` on iOS and `sans-serif` on Android. `monospace` and `ui-monospace` map to `Menlo` on iOS and `monospace` on Android.
|
|
392
|
+
- **Product tests on busy computers (F58a).** The starter API gives tests and hooks 60 seconds. `pnpm verify` lets Turbo continue after a package fails and returns a failing status.
|
|
393
|
+
|
|
394
|
+
**Upgrade notes** (every product):
|
|
395
|
+
Copy the `testTimeout: 60_000` and `hookTimeout: 60_000` settings in `apps/api/vitest.config.ts` and the `verify` script line with `--continue` in `package.json` from the product template. Existing products work without these changes. `ape upgrade` leaves both settings and the script as they are.
|
|
396
|
+
- **One-click unsubscribe (F60).** Bulk and marketing mail can opt in to the RFC 8058 headers in SES, Resend and SMTP: an HTTPS URL of at most 900 characters without control characters or malformed percent escapes. The development outbox lists the headers when present.
|
|
397
|
+
|
|
398
|
+
**Upgrade notes** (every product):
|
|
399
|
+
`OutgoingMail.listUnsubscribe` is optional and additive. Products with a custom sender must pass it through to their provider to support these headers. Otherwise, no changes are required.
|
|
400
|
+
|
|
401
|
+
- **Studio chat recovery (F57).** A Claude resume that exits normally can get one fresh attempt for the original message once both streams drain and close. A missing-marker error must be the only failure, and startup output must arrive before the error and exit. The saved session changes only after success.
|
|
402
|
+
|
|
403
|
+
**Upgrade notes** (every product):
|
|
404
|
+
No changes are required.
|
|
405
|
+
- **Account invitations (F61).** A signed-in member can request a one-time response link when inviting or resending. Resending rotates the token and renews the original validity window. The inviter or an account Owner with the revoke right can change a pending grant within their own rights.
|
|
406
|
+
|
|
407
|
+
- The response link also goes in the invitation email. The HTTP resend route allows 10 requests per client IP every 10 minutes.
|
|
408
|
+
- **Known limit.** When an Owner's `approve` rule holds an invitation with `link: true`, the approved run's answer is discarded. After approval, resend with `link: true`. The inviter gets a fresh link if the resend runs immediately.
|
|
409
|
+
|
|
410
|
+
**Upgrade notes** (every product):
|
|
411
|
+
A custom invitation screen can send `link: true` and use `POST …/invites/:inviteId/resend` and `POST …/invites/:inviteId/change`. Create and resend issue fresh tokens on each call, even with a repeated idempotency key. `onMembershipChanged` adds the `resend_invite` and `change_invite` steps. `memberContacts` adds `userId` to the contact read. Run `ape migrate` to add `identity/0007-invite-validity`. Existing invitations keep their expiry and derive their original validity on their first resend.
|
|
412
|
+
- **Shared UI options (F59).** The app adds `inbox`, `broadcast` and `grid` icons and `Text mono`. App and console `ActionBar` and `Page` add `fullWidth` and `transparent` respectively.
|
|
413
|
+
|
|
414
|
+
**Upgrade notes** (every product):
|
|
415
|
+
The default look stays the same. A custom theme can set the new optional `surface-card` color per mode for BigChoice and SettingRow at rest, Banner, and tinted Chip. The existing border tokens still set the edges.
|
|
416
|
+
|
|
417
|
+
- **Extension migrations and generated lists (F55).** `ape add` and `ape remove` rebuild the generated lists from the config text and apply pending migrations using the new lists. Both accept `--no-migrate`.
|
|
418
|
+
`@buffcore/db` adds `checkDeclaredMigrations`, `MigrationClash`, and `migrationPackages` to its exports.
|
|
419
|
+
|
|
420
|
+
**Upgrade notes** (every product):
|
|
421
|
+
`ape migrate` adds a nullable `package` column to the migration records. A deploy refuses a detected clash before starting the release. If the same extension keeps its key under a new package name, run `update app_migrations set package = '<new>' where module = '<key>' and package = '<old>'` once on the database before its next deploy. For BuffCore scope, use `buffcore_migrations`. The refusal names the old package first and gives the statement to run. For two different extensions, remove one of the packages.
|
|
422
|
+
|
|
423
|
+
- Records from before this release keep `NULL` in `package` and still count as applied for any package, so those migrations can still skip silently.
|
|
424
|
+
- The config reader refuses a regex literal, division, an interpolated template, a generic call with a comma, or a wrapper named anything other than `defineProduct`.
|
|
425
|
+
- **Checkout from an app screen (F56).** An account member with checkout rights can open hosted checkout for a configured plan and choose an allowed app return path. The paid-line event now identifies the account directly. `ape manifest` lists extension offers alongside machine access.
|
|
426
|
+
|
|
427
|
+
- **Known limit.** `payments.start_checkout` has no route-level rate limit. Each successful call creates a provider session.
|
|
428
|
+
- **Known limit.** A trailing slash in `APE_APP_URL` produces `//path` on the same host.
|
|
429
|
+
|
|
430
|
+
**Upgrade notes** (every product):
|
|
431
|
+
`payments.line_paid` adds `props.accountId` alongside `props.lineId` and the other existing fields. `payments.returnPaths` defaults to `['/payments']`. List any other paths the app sends as `returnTo`. To call the new `payments.start_checkout` offer, a calling extension needs its usual installation grant and declares the key in `uses`. Checkout carries no sensitive kinds, so the caller needs no additional `reads` grant. Products that do not call checkout need no changes. Checkout still accepts both body shapes, now with strict item fields. Successful checkout starts create fresh session URLs without caching them for idempotency replay.
|
|
432
|
+
|
|
433
|
+
**Known limit.** `payments.start_checkout` is high-risk and always-human. With Automation enabled, an Owner's `approve` rule for people holds the call. The approved run does not return the hosted URL to the member, and a retry is held again. Leave checkout without an `approve` rule for people in this release.
|
|
434
|
+
|
|
435
|
+
- **Plan around the person's day (F48).** The brief asks what it replaces, the owner confirms the agent's read-back before planning or writing journeys, and each journey starts with a moment in the person's day. The studio suggests adding a Read-back section to older briefs that lack one; the suggestion checks only the brief's parsed section titles.
|
|
436
|
+
|
|
437
|
+
**Upgrade notes** (every product):
|
|
438
|
+
Existing briefs still work. You can copy the replacement prompt and the Read-back section into `plan/brief.md`.
|
|
439
|
+
- **Look first in `ape-critique` (F49g).** Compare the 1440 px and 390 px snapshots with the references and approved comp before reading the design contract. The report now has seven scores, and long rows at 390 px lower the hierarchy score.
|
|
440
|
+
|
|
441
|
+
**Upgrade notes** (every product):
|
|
442
|
+
Existing six-dimension `design/critique.md` reports stay valid alongside the new seven-dimension format.
|
|
443
|
+
- **Extension guide (F53c).** `EXTENSIONS.md` now ships with the CLI and explains how jobs and flows act for an account.
|
|
444
|
+
|
|
445
|
+
**Upgrade notes** (every product):
|
|
446
|
+
No changes are required.
|
|
447
|
+
|
|
448
|
+
- **Local Autopilot merge timing (47a).** Autopilot waits for a saved successful end of a coding, tests or fixes turn before merging locally. It rechecks the branch tip and checked commit, removes the temporary checkout, then updates main only if the branch tip and main still match. A failed checkout removal holds the merge, and a later merge can recover a dead owner's checkout.
|
|
449
|
+
|
|
450
|
+
**Upgrade notes** (every product): a validation turn by itself no longer starts a local automatic merge.
|
|
451
|
+
|
|
452
|
+
- **Local Autopilot merge subject (47b).** Local automatic merge commits use the change ID and up to 100 characters of the title on one line, such as `Merge C-001: Add notes`. A missing title leaves just the ID after `Merge`.
|
|
453
|
+
|
|
454
|
+
**Upgrade notes** (every product): tools that parse local automatic merge subjects should use the change ID in the new subject.
|
|
455
|
+
|
|
456
|
+
- **Places during upgrades (46b).** `ape upgrade` rechecks places, reports the approved and waiting counts, and leaves approvals to a person. Text and `--json` both say when waiting places stopped the upgrade and when to rerun it.
|
|
457
|
+
|
|
458
|
+
**Upgrade notes** (every product): start with the 0.8.20 CLI or later. When an upgrade stops for pending places, review them with `ape extension approve-places`, then rerun the upgrade.
|
|
459
|
+
|
|
460
|
+
- **Jobs acting for an account member (F53a).** A registered extension job can run a declared, opted-in action using the membership and rights of the person who turned the run on. Each step meets the action's rules and records its outcome in the audit log.
|
|
461
|
+
|
|
462
|
+
**Upgrade notes** (every product):
|
|
463
|
+
Every `onMembershipChanged` notice with a `userId` now also carries `memberId`. Pending invite creation and revocation have no member ID. `set_rights` notifies for the edited member inside the write. `save_role` and `remove_role` notify inside the write for each member who holds or has a grant for that role. Moving a part sends `remove_part_rights` once per member whose explicit rights on the part are cleared. A throwing listener now fails and rolls back these writes. Check any listener that acts on `remove_part_rights`.
|
|
464
|
+
Pass a stable `stepId` to `runAsFlowMember`. The flow, run, activation and step IDs must be UUIDs or short codes. Flow audit rows keep UUID references. For automatic rows, the route must have one path parameter, validated, named `id` or ending in `Id`; with two or more, no reference is kept. The audit records each stop reason once per member, run and step. An ask-first step holds without an approval snapshot or automatic resume. The person performs the action at its usual door.
|
|
465
|
+
|
|
466
|
+
## v0.8.21 (2026-11-20)
|
|
467
|
+
|
|
468
|
+
- **What 0.8.21 holds:** all of 0.8.20 and one fix. **0.8.20 was tagged but not published:** the release check, which makes a product from the packages as a stranger would and runs its tests, found that a new product's app tests could not load once Payments was added (S21A, below). A pushed tag is never moved, so 0.8.20 stays tagged and unpublished and 0.8.21 holds everything in its section too (the mailbox connector, the Studio's simpler Prototype page, comparisons that say what to do next, one linked model for new products, and colors that follow the theme's mode). **Read the upgrade notes of 0.8.20 (the Studio Prototype entry and the theme fix) as well as this release's before you update from 0.8.19.** Known issues: those of 0.8.20 below.
|
|
469
|
+
|
|
470
|
+
- **Fixed (S21A): a newly created product's app tests load from the published packages.** With Payments added, the app's prototype tests (the Activity example) stopped with "Unexpected token 'typeof'": the app shell's polyfill for native random values requires React Native itself, which a published package reaches without the test setup's alias. `viewTests` (`@buffcore/ui/vitest`) now supplies jsdom stand-ins for `react-native-get-random-values`, `expo-font`, `expo-localization` and `expo-secure-store`, so the stand-ins no longer live in the app shell's own test setup; a test that mocks one of them still wins. A test loads a published-shaped package that imports them.
|
|
471
|
+
|
|
472
|
+
**Upgrade notes** (every product): none to do; updating `@buffcore/ui` is enough. The stand-ins are in-memory and replace the Expo modules in views' tests only; a product's own mocks still override them.
|
|
473
|
+
|
|
474
|
+
## v0.8.20 (2026-11-20)
|
|
475
|
+
|
|
476
|
+
- **What 0.8.20 holds:** the mailbox connector, the Studio's simpler Prototype page, and the theme fix for light and dark inks. **Mailboxes:** a connected mailbox is read over IMAP and answered over SMTP through one narrow connector (`mailboxes`, off until turned on), behind the address guard (R3a, R3b, R3d, R3e). **Studio:** the Prototype step is the app, filling the step, with a journey picker, Back and Next, Preview options and a slim version and check bar (SS-A). **Prototype:** comparisons say what to do next (N45), and new products start from one linked model (44a, 45c, 45d). **Themes:** colors follow the theme's mode, never the browser's scheme (F52a). **Read the upgrade notes of the Studio Prototype entry (SS-A) and of the theme fix before you update.** Not in this release: the question gate that holds a version until a prototype's questions are answered, and the Studio's reply when main moves during a Git step.
|
|
477
|
+
|
|
478
|
+
- **Known issues:** (1) The Studio Prototype entry's own known limits (focus, resizing across the phone breakpoint, the failed-check bar, a brief desktop border at 390 px) are fixed in the next release. (2) A mailbox hook's database statements keep their locks until they end, and a running hook holds read locks on the tables it touches for up to about a minute; a write to one of those tables can wait that long. (3) A merge's done-when checks still run the branch's own scripts on this computer, and the agents' container still mounts the product's `.git` writable (planned: SP29 half A and SP30). (4) The SES certificate address is fetched once per message with no limit per source (SES-2b). (5) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`, the second-signature case in `ui-approve` and the catch-up cases in `ui-prototype-save`) fail or time out on a busy machine and pass alone; Linux runs are green. (6) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
479
|
+
|
|
480
|
+
- **Studio Prototype (SS-A).** The app fills the step, with a keyboard-accessible journey picker, a translated step caption with Back and Next over the preview, and device, sample data and sign-in help in Preview options. When a control becomes unavailable, keyboard focus moves to the next available control or the Prototype heading. A slim bar shows the versions and check status, opens Compare, and explains an unavailable approval on the button. The agent panel folds technical references under Details and uses an outlined Send button.
|
|
481
|
+
|
|
482
|
+
**Known limits** (fixed in the next release): focus is lost when a resize crosses the phone breakpoint while it is in the journey picker, Sign-in help, Compare or on the Preview options opener; crossing the breakpoint while typing in the preview reloads it and loses the text; the bar for a failed check has no "See the problem" action yet; and at 390 px the preview briefly shows the desktop device border while Studio starts.
|
|
483
|
+
|
|
484
|
+
**Upgrade notes** (every product): Update the app shell and Studio together for Back and Next in the Studio preview. Older app shells keep their in-app player. A product may pass `previewStates` to `PrototypeHomeRoute` to match Full, Empty, Loading and Could not load to existing named seeds, and supply a translated `role` on each journey.
|
|
485
|
+
|
|
486
|
+
- **Fixed: Mailbox replies and disconnects (R3e).** A mailbox hook can send from or disconnect its own mailbox, and a disconnect returns without waiting for a running hook. A stopped or timed-out hook cannot write through its old database connection.
|
|
487
|
+
|
|
488
|
+
- **Mailbox hand-off (R3d).** Inbound mailbox hooks have the full 30-second hook budget while the worker renews the lease. A failed hand-off after the hook runs counts toward the five-attempt limit, so a later write failure can no longer keep the reader from reaching subsequent mail.
|
|
489
|
+
|
|
490
|
+
- **Prototype comparison explains what to do next (N45).** The CLI and Studio identify the version or checkout with a snapshot problem, distinguish Git read failures, and point to the recorded versions when the cause is unexpected. Studio suggests retrying after a timeout and shows how to run the same comparison in a terminal when its output is cut off.
|
|
491
|
+
|
|
492
|
+
**Upgrade notes** (every product): Additive. `ape prototype compare --json` includes `diagnostics.version` when a snapshot problem belongs to a recorded version.
|
|
493
|
+
|
|
494
|
+
- **Connected mailbox reading (R3b-b).** ImapFlow `2.10.2` verifies login and opens the configured folder read-only. The worker resumes from its committed UID, checks quiet connections every 60 seconds, and reports open, retrying and limited connections. A database lease guards each reader. SMTP send requires verified authentication and closes its socket before returning. A failed FETCH leaves its cursor in place. Confirmed oversized messages are skipped, and a failed inbound hook gives up after five tries.
|
|
495
|
+
|
|
496
|
+
**Upgrade notes** (`mailboxes`): additive. Run the mailbox migration before starting the worker. `connectMailbox` now verifies IMAP credentials and folder access when an IMAP side is supplied. `mailboxCounts().connected` counts live IMAP readers. Inbound hooks handling `InboundMail.service` exhaustively can now receive `mailbox`. Mailbox reasons include `retrying` and `uid_validity`.
|
|
497
|
+
|
|
498
|
+
- **Mailbox connector recheck.** Connect commits independently in a short READ COMMITTED transaction and bounds account and limit lock waits. SMTP verification requires a 235 AUTH reply and has a 20-second deadline. List and counts return closed refusals for malformed account filters or database failures, and send stops reading references as soon as they exceed the byte limit.
|
|
499
|
+
|
|
500
|
+
- **Mailboxes and address guard (R3b-a fixes).** Mailbox connect authenticates SMTP and closes its socket before saving to a live account. Credentials stay out of the caller's entity manager, returned settings are detached, and a 4xx authentication reply leaves the mailbox available for retry. Sends count caller-supplied headers toward the byte limit, malformed IDs and headers get closed refusals, and Operations Status requires a connected check before showing healthy. The address guards return closed refusals when options are omitted.
|
|
501
|
+
|
|
502
|
+
- **Mailboxes (R3b-a, additive; off until `mailboxes` is turned on):** a new feature and module, `mailboxes`, holds connected mailboxes on a narrow connector, so an extension never opens a socket. `@buffcore/modules/mailboxes` exports `connectMailbox`, `disconnectMailbox`, `listMailboxes`, `sendFromMailbox` and `mailboxCounts`: plain functions an extension calls in its own handler, with no routes (so no key or agent has a door to them). A mailbox has an IMAP side, an SMTP side or both; its host is checked by the address guard on every connect and every send, the connection goes to the one checked IP with the typed name only as the TLS name, on ports 143 and 993 (IMAP) or 25, 465 and 587 (SMTP), `tls` or `starttls` only and certificates always verified. The login is an encrypted column, never returned by any function, event, log line, error or status line, deleted on disconnect and with the account (the privacy hook; the export lists the mailbox without the secret). A caller is a member of the owning account or an operator, never a key, an agent or a preview. Refusals are one of ten closed reasons with fixed English and Spanish sentences. One send is one connection, closed after it, From always the mailbox's own address. Limits are settings: `settings.mailboxes.perAccount` (5), `total` (200), `maxMailBytes` (25 MB). Events `mailbox_connected` and `mailbox_disconnected` (the side and the account), one Operations › Status line, and `mailboxCounts` for a product to meter. Also in `@buffcore/server`: the address guard's `resolveGuarded`, `AddressRefused`, `connectOptions` and the types are now exported, `validateHeaders` and `BARE_ADDRESS` too; the guard's `ports` option is now required (a missing or empty list refuses every port) and `guardRedirect`'s options are required, and a hop count or limit must be a non-negative safe integer. Reading mail (the IMAP connection) comes next.
|
|
503
|
+
|
|
504
|
+
**Upgrade notes** (every product): additive. A new feature `mailboxes` (off), a new module with one table, `mailbox_connection` (a migration runs when the feature is on), two events and one status line, all absent until the feature is on. The address guard was not used before this release, so a change of its `ports` option breaks no product.
|
|
505
|
+
|
|
506
|
+
- **Server: the address guard (additive).** `resolveGuarded(host, port, options)` in `@buffcore/server` (`address-guard.ts`, with `address-ranges.ts` and `address-redirect.ts`) checks a host a person typed and returns a `connectTo` for the caller to use as is: the one checked IP, its family and port, the typed name for the TLS name (`servername`) and the `Host` header. It looks the name up once, within a time limit, and refuses when any answer is private, loopback, link-local, unique-local, carrier-grade NAT, multicast, unspecified, a documentation or protocol range, a cloud metadata address, or an IPv4 carried in an IPv6 form (mapped, compatible, NAT64, 6to4, Teredo, ISATAP), or an IPv6 address outside the pinned global unicast allocations; when the text is a numeric spelling of an address (decimal, octal, hex, short), a zone id, a trailing dot, or a name that means this machine; or when the caller's port list is malformed or omits the port. A malformed DNS answer refuses the whole lookup. `guardRedirect(location, currentUrl, options)` runs the same guard on a `Location` header before the caller follows it (only `http` and `https`, `allowHttp: true` required for a downgrade, with a hop limit). The raw header must be free of whitespace and controls, and the current URL must be free of credentials. A refusal is an `AddressRefused` with one reason from a closed set and one fixed English and Spanish sentence in the core catalog (`core.addressGuard.*`), never the resolver's text or an address. **Upgrade notes:** custom resolvers for this unreleased API must return a matching numeric `family` with each `address`. The default resolver already supplies it.
|
|
507
|
+
|
|
508
|
+
- **New product prototypes start from one linked model (44a, 45c, 45d).** The Activity example adds `prototype/data/activity.ts`, `prototype/view-data.ts`, `apps/app/src/i18n/activity.en.ts` and `activity.es.json`, `ActivityView.tsx` and `ActivityView.test.tsx` under `apps/app/src/prototype/`, plus `prototype/invariants.test.ts` and `prototype/number-copy.test.ts`. Tests replay every journey step and catch opt-out violations, a balance that differs from its history, and counts or money amounts typed into scenes or catalogs. The viewer translates scene titles with `prototype.<scene-key>.title` when the catalog supplies it. The studio fits three journey buttons in one desktop row.
|
|
509
|
+
|
|
510
|
+
**Upgrade notes** (every product): Additive. The starter files apply to new products, and the viewer keeps each scene's supplied title as a fallback. `ape upgrade` refreshes the prototype and critique skills. Existing products can copy the linked model and invariant tests from the template.
|
|
511
|
+
|
|
512
|
+
### Fixed
|
|
513
|
+
|
|
514
|
+
- a dark scene in a light browser (and the reverse) drew the primary Button and the toast's action in the wrong ink; colors now follow the theme's mode only.
|
|
515
|
+
|
|
516
|
+
**Upgrade notes** (every product):
|
|
517
|
+
If the app's Babel config is the untouched old stock file, copy the new template's config exactly. For a customized config, add `packages/ui/` and `packages/app-shell/` to `autoProcessPaths` and keep `@buffcore/`. This keeps a dark scene in a light browser from drawing the wrong ink in an unminified export. Re-run `ape prototype snapshot`.
|
|
518
|
+
|
|
519
|
+
## v0.8.19 (2026-11-19)
|
|
520
|
+
|
|
521
|
+
- **What 0.8.19 holds:** email, the prototype's evidence and the milestone approval's scan. **Notifications:** Amazon SES as an email service with a per-mail `from` and a display name (`fromName`), SES's delivery events at `POST /v1/webhooks/ses`, a tenant per account with domain identities (SES-1 to SES-3, R1), and inbound email, the seam a product's extension answers (`POST /v1/inbound/ses` and `POST /v1/inbound/post`, R2). **Prototype and studio:** a snapshot is the whole page and scenes that look exactly alike are a problem (44b); a version records only a finished snapshot, and a snapshot's leftovers no longer fail it (42e, 42f); `ape prototype compare` takes `v4` and names why it cannot run (45b); Take snapshot no longer waits for the preview's handshake (42b, 42c); the Build page, a merge whose check was killed and a merge whose app imports a sibling package say or do the right thing; a Build turn can check the sample data and run `pnpm coverage`. **Milestone approvals:** the backend-only scan reads the product template's own toolchain configs by exact bytes and refuses more of what it cannot decide (AP1.2, A1 NICE). **Tooling:** `ape i18n check` reads every message as the runtime does. **Read the upgrade notes of the SES entries (SES-2, SES-3) and of the shots entry (44b) before you update.** Not in this release: the address guard and the mailbox connector (R3), the studio's simpler first page, and the container's own git store (SP29 half A, SP30).
|
|
522
|
+
|
|
523
|
+
- **Known issues:** (1) A merge's done-when checks still run the branch's own scripts on this computer, and the agents' container still mounts the product's `.git` writable, so a hook or script in a change can still move main (planned: SP29 half A and SP30). (2) The SES certificate address is fetched once per message with no limit per source; send SES's events only from an SNS topic you control, and do not rely on SES bounces and complaints in production until the per-source budget (SES-2b) ships. (3) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests (the 30-second ones in `ui-approval-authority-use.test.ts`, `unavailable-browser.test.tsx`) can time out on a busy machine and pass alone; `create-extension.test.ts` needs the dev Postgres; Linux runs are green. (4) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
524
|
+
|
|
525
|
+
- **`ape prototype compare` accepts `v4` and names why it cannot run (fix):** the version arguments were read as plain numbers, so `compare C-012 v4` and `compare C-012 v2 v4` (as `ape prototype versions` prints them) failed as "Comparison failed; try comparing again."; `4` and `v4` both work now, and an unchanged pair says so. A comparison that cannot run gives one fixed sentence (en, es) for its cause (not a version, no such version, a recorded snapshot missing or changed, no readable snapshot in the checkout, Git unreadable, or unexpected), and `--json` gives it as `reason`, success shape unchanged.
|
|
526
|
+
|
|
527
|
+
**Upgrade notes** (every product): additive; an unexpected fault no longer reads "Comparison failed; try comparing again.", and `SafeDiagnostics.sentence` gains the `ui.compare.*` causes.
|
|
528
|
+
|
|
529
|
+
- **Shots are the whole page, and scenes that look exactly alike are a problem (44b):** a scene's screenshot is now the page's full scrolled height, not the first screen, so what a flow pushes below the fold is in the picture. A shot is cut at 8 000 CSS pixels (`MAX_SHOT_HEIGHT`); the report's scene lists the looks cut in a new optional `cut`, and `ape prototype snapshot` (and its `--json`) names them as a note that never fails the run. A screen whose content scrolls inside a fixed-height frame (every app screen in `AppFrame`) is shown whole too: the window is made as much taller as the tallest scroller holds beyond it, for the shot only, so a small list that overflows a little makes its shot a little taller. Not covered: sideways scrolling, a scroller inside an iframe, and a list that draws only the rows in view. A snapshot also checks, in each theme and mode, that no two different scenes have byte-identical shots: a new `identical` check, listed as a problem (CLI, `--json`, the studio), English and Spanish.
|
|
530
|
+
|
|
531
|
+
**Upgrade notes** (every product): shots are the full height of the screen (capped at 8 000 px), so they are taller and a snapshot takes a little longer; a run that finds two different scenes with identical shots lists them as a problem, which blocks recording the version until the scenes differ or one is removed. `PROTOTYPE_CHECKS` gains `identical`; `report.json` scenes gain an optional `cut`; the `--json` result gains an optional `cut` (scene keys). Reports already committed stay valid; their shots are made again taller with `--remake`.
|
|
532
|
+
|
|
533
|
+
- **Fix, a version records only a snapshot that finished, and a snapshot's leftovers no longer fail it (42e, 42f):** (1) A full snapshot that had published its whole report and 0 problems could still end "Snapshot failed before any problems could be listed", with a stale `<commit>.run-...` folder left behind: removing a stale run folder failed (Windows holds a file, EPERM under load) and that failure replaced the run's own result, in the run's cleanup and again in the studio's. Removing leftovers is now best-effort (the next recovery retries; the folder is git-ignored and never read), so a run that published is a pass. (2) `ape prototype version`, the studio's Record and Autopilot's record now refuse, in plain words ("The last snapshot of this commit did not finish: take it again"; English and Spanish), a committed report that lists a scene twice, lists a scene with no screenshots, or sits in a folder named for another commit. (3) `ape prototype version` and Autopilot's record no longer stop with "a prototype version needs an unchanged checkout" for the untracked `prototype/snapshots/<commit>/` folders a `--scene` snapshot leaves: they are set aside the way a merge sets them aside (never a person's files, never a tracked change); the studio's Record still refuses a source it cannot prove. (4) A run folder a program holds open no longer breaks every snapshot after it: a dev server's file watcher can hold `<commit>.run-<id>.<pid>` on Windows, which failed the restore or removal at the start of the next run and the run's own publish; recovery now never fails or blocks a run (it leaves that folder, names it once in a plain sentence, English and Spanish), and the final publish rename is retried briefly (5 tries, 150 ms apart) and then fails saying which folder is held. Exclude `prototype/snapshots/*.run-*` (the run folders, `<commit>.run-<id>.<pid>`) from the dev server's file watcher. (5) A `--scene` run now always says so in its report (`scene`) unless it completes an earlier report of every scene, so `--scene '*'` on its own is a partial snapshot and cannot be recorded. A report with no scenes, a scene with no shots, scenes other than the commit's `prototype/scenes.ts`, a folder that is not exactly the name `report.commit` gives, or a truncated `report.json` is refused with the same plain sentence.
|
|
534
|
+
|
|
535
|
+
**Upgrade notes** (every product): version now refuses an unfinished report; a report older than this that is complete (every scene with screenshots, the commit's own scenes, in a folder named by its commit, `scene` absent) records as before, and one that is not (for example a `--scene '*'` run written before this) needs the snapshot taken again. No change to the report's format.
|
|
536
|
+
|
|
537
|
+
- **Fix, the Prototype step's Take snapshot no longer waits for the preview's handshake, and its review is not remounted (42c, 42b):** Take snapshot stayed disabled with "The app did not load here" whenever the preview iframe's handshake failed or had not answered (an app that answered in 0.05 s but speaks no handshake, or a slow one), although a snapshot does not use that preview. It is now held only for what is known: the app is not running, or the project has no prototype app. A handshake that has not answered, timed out or failed, or a home read that is loading or failed, no longer blocks it; the unavailable card says the app did not load here and that a snapshot does not need the preview. Also, the review beside the app (the saved-file list, "I reviewed this file set", "Save this reviewed set") is now a sibling of the app's tree: when the app's state flipped between polls (starting, running) it was torn down and rebuilt, so its list reloaded and its elements went stale; it now stays while the file set is unchanged (a changed set still asks again). The cause of the reset in the reported run was not reproduced beyond this remount; a save's fingerprint changing under the person's hands is left as it was. English and Spanish.
|
|
538
|
+
|
|
539
|
+
**Upgrade notes** (every product): none. `PrototypeApp`'s `reviewPanel` callback gains a second argument (`snapshotOk`); the studio's own page no longer passes it.
|
|
540
|
+
|
|
541
|
+
- **Milestone approvals, a stricter backend-only check (A1 NICE; additive hardening):** the scan that decides whether an edit after a milestone approval is backend-only now also follows a JSON data file's relative-path strings into the repository, CSS `@plugin`, `@config`, `@reference`, `@source` and `url()` in any letter case, treats a `file:` URL, an `eval` or `Function` used as a value, a function's `.constructor`, `importScripts`, a timer given a string, a worker from a variable and the `module` builtin as forms it cannot follow, no longer lets `var require` stand for a file's own `require`, reads a plain builtin name (`events`) as a package when one of that name is installed, reads a bundler, transpiler or CSS configuration in a folder above the product as an input, and, when a scan reaches more than 5,000 files, says so (with the limit) instead of the generic sentence. The caps and the grant rules are unchanged.
|
|
542
|
+
|
|
543
|
+
**Upgrade notes** (every product): a product with a milestone approval whose protected files use these forms may now see its approval stay blocked, or an edit count as a design edit, where it was reused before: a protected JSON file naming a file or folder that a backend edit touches, a configuration file such as `postcss.config.js` or `babel.config.js` in a parent folder of the product, a stylesheet using one of the at-rules above, or a script using one of the forms above. Take a new snapshot and approve again, as before; nothing else changes.
|
|
544
|
+
|
|
545
|
+
- **`ape i18n check` reads every message as the runtime does (tooling; additive):** each message of every catalog, in English and in each other language, is parsed with the options `t()` uses (angle brackets are plain text, as in i18next-icu) and formatted once with a dummy value for each argument, so a message `t()` would throw on is an `invalid` line with the runtime's own error; the pseudo-locales (`en-XA`, `ar-XB`) read messages the same way, so text like `https://<this server>/` renders in every language. One test over every shipped catalog (`packages/cli/src/i18n-shipped.test.ts`) runs the same check.
|
|
546
|
+
|
|
547
|
+
**Upgrade notes** (every product): a translation’s `<b>` shows literally (no rich-text tags: nothing in BuffCore passes tag values); otherwise none for products unless their own messages have unbalanced braces, a plural with no `other`, or a format the runtime cannot build; those now fail `ape i18n check`. The command line's own messages are checked too, and one (`ape change merge`'s hold on a main with no readable `buffcore.config.ts`) had braces ICU read as an argument; they are now quoted, with the same visible words.
|
|
548
|
+
|
|
549
|
+
- **Notifications (SES-1): Amazon SES as an email service, and a per-mail `from`.** Admin › Services lists a new email service, `ses` (region, access key ID, secret access key, an optional configuration set and the from address). BuffCore calls SES API v2 through its own outbound helper and signs each call itself (SigV4, no SDK); the secret access key is a secret field. Every call is one try (SES has no idempotency key, and the send job marks an email failed when a provider refuses it, so a throttled email is not sent again by itself), redirects are refused and an answer is capped at 64 KB (1 MB for the domain list). SES's refusals show as a few fixed sentences with the AWS request ID, never SES's own text: an unverified sender, an unverified recipient (SES's sandbox), a pause, throttling, bad keys or clock. A display name with non-ASCII characters is sent as RFC 2047 encoded-words. The access key needs the IAM actions `ses:SendEmail` and, to send as an address on another domain, `ses:ListEmailIdentities`. `OutgoingMail.from` is one bare address to send this email as, set by a product's own code and never from an end user's text: SES allows the service's own address or one on a domain SES lists as verified (read at most once a minute, and only for a domain other than the service's own; if the list cannot be read the email is refused, with SES's reason), and Resend and SMTP allow only the service's own address. `sendMail` also refuses CR, LF and NUL in `to`, `from`, `fromName` and `subject`, and NUL (as well as CR and LF) in `replyTo` and the threading headers. `notify()` cannot carry `from` yet: a product passes it by calling `sendMail` itself. `app.http` gains an optional `maxBytes`. Bounces, complaints, tenants and domain identities come in later slices.
|
|
550
|
+
|
|
551
|
+
**Upgrade notes** (every product): additive. `Environment.email` (the Admin environment route) can now be `'ses'`; a product's own code that switches over it should handle it. `OutgoingMail.from` is new and optional; a mail without it is unchanged. `@buffcore/server` also exports `domainOfAddress` and `fromFor`, and `HttpRequest.maxBytes`. A product that already passes a value that has CR, LF or NUL in `to`, `subject`, `replyTo` or a threading header gets a refusal instead of a header (it never worked safely).
|
|
552
|
+
|
|
553
|
+
- **Notifications (SES-2): Amazon SES's delivery events, `POST /v1/webhooks/ses`.** Amazon SNS posts SES's events to this address; set it as the endpoint of an SNS topic that SES publishes to, and put the topic's ARN in the new optional `topicArn` field of the `ses` service in Admin › Services. While the service is off or has no topic ARN the route answers 404 and reads nothing. A message is acted on only after its SNS signature (SignatureVersion 1 or 2) is checked: the certificate address must be `https://sns.<region>.amazonaws.com/SimpleNotificationService-….pem` (`.amazonaws.com.cn` for a China topic) on the topic's own region and is never trusted for anything else, the certificate is fetched through BuffCore's own outbound (16 KB, 5 s, no redirect, kept 6 hours), the topic must be the configured one and the message no older than an hour. A refusal is always the same 401 sentence; a certificate that could not be fetched is a 503 so SNS sends the message again; the body is capped at 256 KB. A subscription confirmation is followed only after the signature passes and only at SNS's own host for that topic. A delivery marks a sent email row delivered, a bounce marks a sent or delivered row bounced with the reason `bounce:permanent`, `bounce:transient` or `bounce:undetermined` (as Resend's events do; there is no new status; every row with that message ID), a complaint leaves the row as it is, and each also records one event about that row naming its account: `email_delivered`, `email_bounced` (prop `kind`), `email_complained`, declared by `notifications` (an event is recorded only for a message that matches a row; the SNS message ID is the event's ID, so a message delivered twice records and queues once). Known limit: an attacker who knows the topic ARN can keep the certificate's first fetch after a restart from succeeding for as long as a flood of forged messages lasts, so real messages wait (503) until it stops; the cheapest fix, a per-source budget or a certificate kept across restarts, is not built. Other SES events (a paused tenant among them: its name comes with slice 3, tenants) are acknowledged and ignored. The access key needs no new permission.
|
|
554
|
+
|
|
555
|
+
**Upgrade notes** (every product): additive. The `ses` service gains the optional field `topicArn`; nothing changes until it is set. Three new event names (`email_delivered`, `email_bounced`, `email_complained`) join the declared events; a product may subscribe to them with a job's `on`.
|
|
556
|
+
|
|
557
|
+
- **Notifications (SES-3): a tenant per account at Amazon SES, the account on delivery events, and domain identities.** `OutgoingMail.account` is new: an account's ID (a lower-case UUID; any other value is refused before a provider), and `notify()` now sets it from the delivery row's account, so a member's email is sent for their account (an operator's has none). On the `ses` service, a mail with an account makes the account's own SES tenant on its first send (remembered ten minutes), associates the service's configuration set and from domain with it, names the tenant on the send, and tags the send `bc-account`, so SES's tenant-level pausing and reputation stay per account; if the tenant cannot be made, the mail is refused with a plain sentence and is not sent. Resend and SMTP carry `account` and ignore it. SES's delivery events now name the account for a mail with no delivery row too, when its `bc-account` tag is on the event (the row's account wins). `createDomainIdentity(ctx, account, domain, { mailFrom? })`, `checkDomainIdentity(ctx, account, domain)` and `removeDomainIdentity(ctx, account, domain)` (from `@buffcore/modules/notifications`) are an Owner's actions in the console's context (anyone else gets `forbidden`; a create and a remove are audited): they set up a domain at SES for an account (Easy DKIM, an optional custom MAIL FROM label) and return the DNS records to show as plain data (the DKIM CNAMEs, and the MAIL FROM MX and SPF TXT when asked; not the domain's own receiving MX, because inbound mail is a later slice and publishing it would move the domain's existing mail to SES), report `pending`, `verified` or `failed` with what is missing, and remove an identity that is not yet verified. At most 20 domains per account; a domain that is the same as, under or above one of another account's, or of the service's own domain, is refused; a verified domain is sendable within a minute. A SES quota (`LimitExceededException`) now has its own sentence instead of reading as throttling. A paused-tenant event is not handled yet (SES's event name is not known with confidence) and stays ignored.
|
|
558
|
+
|
|
559
|
+
**Upgrade notes** (every product): additive in code, with two changes of shape a subscriber can see. (1) `email_delivered`, `email_bounced` and `email_complained` gain the prop `account` (a UUID: the account the mail was sent for), and an event about a mail that has no delivery row has no subject (`subject: null` in the delivery to a subscriber), so a subscriber must read the account from `props.account`, not from a subject; a subscriber that assumed a `notification` subject should handle `null`. (2) `notify()` passes the row's account to `sendMail`, so a `sendMail` hook or email provider of your own now sees `mail.account` on member emails. `OutgoingMail.account` is optional and a mail without it is unchanged; `@buffcore/server` exports `ACCOUNT_ID`. The `ses` service needs more IAM actions only for the new parts: `ses:CreateTenant`, `ses:GetTenant`, `ses:CreateTenantResourceAssociation` for a mail with an account (and the from address's exact domain verified as a domain identity at SES, not only the address: an address identity, or a from on an unverified subdomain, is refused), and `ses:CreateEmailIdentity`, `ses:GetEmailIdentity`, `ses:DeleteEmailIdentity`, `ses:PutEmailIdentityMailFromAttributes`, `ses:ListTenantResources` for the identity functions (Admin › Services shows the list). To have events name their account, publish the events through the service's configuration set (an event destination to the SNS topic): the `bc-account` message tag then reaches each event in `mail.tags`; SES's older identity notifications carry no tags, so those events name an account only through a delivery row. A product should pass `from` only for a domain `checkDomainIdentity` has reported for that account. A staging copy on the same AWS account and region shares the tenant names (`bc-<uuid>`) of the accounts it shares with production: use another AWS account or region. The tenant calls follow SES's tenant management API; the first live run is the check.
|
|
560
|
+
|
|
561
|
+
- **A product's agent can read the process docs, and a prototype answers a person's questions (words; 42a, 42-docs):** `@buffcore/cli` now ships `docs/PROCESS.md`, `docs/PROTOTYPE.md` and `docs/WORKBENCH.md` (copied from BuffCore's `docs/` by the build; a link to a document the package does not ship, such as a decision record or the roadmap, is plain text there), so an agent finds the stages, the prototype commands and the studio's levels (You drive, Review, Lead, Autopilot, and what Autopilot does) in `node_modules/@buffcore/cli/docs/`; the product `AGENTS.md` template names them in one line. The studio's design and validation turns (Brand, Prototype) may run `pnpm ape i18n check` (read-only, as Build turns already could), and a prototype turn's translations are checked without waiting for the person. The `ape-prototype`, `ape-critique` and `ape-plan-change` skills add the questions pass: for each screen a change adds or changes, the agent names the element that answers four questions (who enters or is reached, and can they be seen by name; from what data, and how it is kept up to date; what it costs; what each control does; "does not apply" with a reason is allowed); the critique gets a sixth dimension, "how it works is visible", and is run by a fresh agent after a passing full snapshot and before a version is recorded; the change-file sample gets a section "What the person using it will ask". Words only: nothing blocks a version yet.
|
|
562
|
+
|
|
563
|
+
**Upgrade notes** (every product): additive. New files in the package (`docs/`). The template text reaches new products only (`ape upgrade` does not rewrite a product's `AGENTS.md`); an existing product can add the one line. `ape upgrade` refreshes the skills as before; a change file needs no new section to pass `ape change` (the body is free text).
|
|
564
|
+
|
|
565
|
+
- **Fix, a merge whose app imports a sibling package (41a):** the studio's Merge refused a change that touched no package with "Cannot find package '@scope/name'" when a workspace app (`apps/api`, say) imports a sibling workspace package: the merged commit's checks run in a temporary checkout that had no `node_modules` of its own, and only the product root's was found by walking up, so the app's own links were missing. When the lockfile is main's, the checkout now gets `node_modules` links to main's installed packages (a link to one of main's workspace packages points at the checkout's copy, so a check reads the merged code); no package manager runs (between half a second and two seconds for 25 workspace projects), nothing is made unless every project folder is the checkout's own (a project that is a link leaves the old behaviour), nothing is written into main's folders, and removal takes the links as themselves. The merge's failure text also no longer hides a package name because of the environment: the values a script's package manager exports from the committed `package.json` (`npm_package_*`, such as `npm_package_type=module`, except `npm_package_config_*`, which can come from an `.npmrc` or the environment) and its lifecycle names (`npm_node_execpath`, `npm_execpath`) are public, as `npm_lifecycle_event` and `npm_command` already were, so `module` no longer turns `@scope/modules` into `@scope/[redacted]s`. `npm_package_config_*` and `npm_config_*` values, which can hold a registry token, and every `.env` value stay hidden as before. A project path with `..` or an absolute path, and a link at the product's own folder inside the repository, now also leave the links out.
|
|
566
|
+
|
|
567
|
+
**Upgrade notes** (every product): additive. A merge that passed before passes now. A merged checkout of a product with a pnpm workspace now holds `node_modules` folders and links (they are removed with it, and ignored by Git as a product's own `node_modules` is).
|
|
568
|
+
|
|
569
|
+
- **A Build turn can check the sample data:** the studio's coding, tests and fixes turns may run `pnpm ape prototype data` (`--check --change <id>`, the same grant design and validation turns already had), so a Build turn compares the sample data with the approved version itself instead of waiting for the person. A coding turn's instructions name it.
|
|
570
|
+
|
|
571
|
+
**Upgrade notes** (every product): additive.
|
|
572
|
+
|
|
573
|
+
- **Fix, a merge whose check was killed says so, and a refusal survives a reloaded page:** a studio Merge could end with no word after about 18 minutes: a check killed by a signal (out of memory, a person) read "exit code ?", a killed `ape change --check` read "could not start", and the answer went to the connection of a page that had reloaded. Now a stopped check reads "The failing check: <step> was stopped (SIGKILL) after N minutes" (the whole run: "The checks were stopped ..."), English and Spanish; a refused merge is kept as one line in the studio's local record (replaced by the next merge, removed by one that goes through) and a reloaded page shows it on the merge card; a merge whose studio stopped reads "ended without an answer (the studio stopped). Merge again." until the branch gets a new commit or main holds its head, and the merge lock a dead studio left is taken over by the next merge (the lock now names its owner process); a closed connection no longer stops a merge (only the studio closing does) and a second Merge click for a change that is merging starts no second merge.
|
|
574
|
+
|
|
575
|
+
**Upgrade notes** (every product): additive. `failure` gains optional `signal` (SIGKILL, SIGTERM, SIGINT, SIGHUP, SIGSEGV, SIGABRT or `other`) and `seconds`; `ape change --check --json` checks gain optional `signal` and `seconds`, only on a check a signal stopped (a shell that reports 128+n for a child killed by signal n reads as that signal, so a check that itself exits 137 reads as killed); the studio's local merge record (in `.git/ape-autopilot`) gains a `local` list that an older ape reads as an unknown record, so update every ape that shares the checkout together. `UiRequest` gains `stop`. `.git/ape-merge.lock` now holds the change id on its first line and the owner (process id, wall-clock start time, computer, platform and, on Linux, pid namespace, start ticks and boot id) as JSON on the second. An older ape tests the whole text against a change id, so it reads such a lock as no merge in progress (the studio shows no "merging") while its own refusal on a held lock still works; a newer ape takes over a lock only when its owner is on the same computer, platform and pid namespace and is proven gone, and a lock with the id alone (an older ape's, or a release's) is never taken over.
|
|
576
|
+
|
|
577
|
+
- **Milestone approvals, the stock toolchain (AP1.2):** the backend-only check reads the product template's own vite, vitest, Babel and Metro configs, its format hook and its lockfile script when their bytes and path are exactly what a release's template wrote, and models the Metro config's resolver (its singleton packages also resolve from the app's folder; every file under the app's folder counts). The scan now finds imports with a small tokenizer instead of a pattern, so a commented-out import or export no longer counts, and a file it cannot tokenize for certain (an HTML-like comment among them), or one that uses `require` or `import` other than as a literal import, is refused; file kinds ignore letter case. A refusal names each file that blocked the scan and why (it reads the disk, it names a path outside the repository, or the scan cannot read it or what it names), in English and Spanish; a missing file, a package folder or a path out of the repository that a protected file names is now refused by name instead of "unavailable". Before, every product made from the template was unavailable there. Additive.
|
|
578
|
+
|
|
579
|
+
**Upgrade notes** (every product): these files count as stock, at these paths only: `.claude/hooks/format.mjs`, `scripts/bootstrap-lock.mjs`, `apps/admin/vite.config.ts`, `apps/admin/vitest.config.ts`, `apps/api/vitest.config.ts`, `apps/app/babel.config.cjs` (or `.js`), `apps/app/metro.config.cjs` (or `.js`) and `apps/app/vitest.config.mts`, each as some release's template wrote it, with LF endings. A product that edited one of them, or keeps its own bundler or test config, is still refused there by name and takes a new snapshot after backend edits; nothing else to do. The `prototype.inputsResolver` refusal's values gain `disk`, `outside` and `unread` (quoted names, or `none`); `file` stays the first file named.
|
|
580
|
+
|
|
581
|
+
- **Studio Build page: three wrong things fixed, no change of look.** A merged change is Done and takes its checks from main's own proof, so it no longer shows a red "Checks failed" from its old branch run or from a missing proof (red shows only while main's checks fail now); a change in Building no longer says "Not started" (only a change nobody has started does); and a prototype version that waits for the person's approval is listed under "Waiting on you" with its own Approve, the same button and route as the Prototype step. Only prototype-version approvals are on the Work page so far; brand and places (extension and permission) approvals stay in their own steps, and the Build page redraw brings them in. An agent's reply sends a chat message only and records no approval; a test now holds that.
|
|
582
|
+
|
|
583
|
+
**Upgrade notes** (every product): none break. The studio reads main's proof from `state.release`; an older server without it shows no checks on merged changes.
|
|
584
|
+
|
|
585
|
+
- **Notifications (R1): a display name per email.** `OutgoingMail.fromName` is the name one email shows as its sender, for a product that sends for many businesses; the email service's verified address stays exactly as it is, whichever service is on (Resend or SMTP). BuffCore cleans the name (control characters and line breaks become spaces, runs of spaces collapse), refuses an empty one or one over 78 characters, and quotes it, so a name can never end the header, add a header or change the address; `sendMail` refuses a bad name before any service, outbox or development file sees it.
|
|
586
|
+
|
|
587
|
+
**Upgrade notes** (every product): additive. A mail without `fromName` is unchanged (the same request to Resend, the same message to SMTP). Pass plain text; do not quote or encode the name yourself. `@buffcore/server` also exports `cleanFromName`, `fromAddress` and `fromHeader` for a service that builds a From value.
|
|
588
|
+
|
|
589
|
+
- **A Build turn can run `pnpm coverage`:** the studio's coding, tests and fixes turns may now run a product's `pnpm coverage` script (the same grant as `pnpm test`, in the change's worktree) and the exact `pnpm ape coverage`, which prints each package's coverage from the last test run, so the agent sees the table without it being cut from a long test output and can raise the floors the definition of done asks for. A coding turn's instructions say to run `pnpm test`, then `pnpm ape coverage`. Planning, design and validation turns do not get it.
|
|
590
|
+
|
|
591
|
+
**Upgrade notes** (every product): additive. A Build turn can now run `pnpm coverage` and `pnpm ape coverage`.
|
|
592
|
+
|
|
593
|
+
- **Notifications (R2): inbound email, the seam, `POST /v1/inbound/ses` and `POST /v1/inbound/post`.** A new Admin › Services channel, `inbound`, holds one service with one source on at a time: Amazon SES receiving through an SNS topic (verified exactly as SES's events are; mail SES stores in S3 instead of sending its content is refused, not fetched), or a relay you run (an email worker or a small script; a provider that posts JSON or form data is not supported) that posts the raw message to a web address, proved by a shared secret in the `x-inbound-secret` header (never the address, compared in constant time before the body is read; the envelope recipients and the provider's spam and virus verdicts travel in `x-inbound-to`, `x-inbound-spam` and `x-inbound-virus`). Bodies are capped at 10 MB, headers are read from a size-capped block (Message-ID, In-Reply-To and References only; no MIME decoding), a mail with no usable Message-ID gets one made from its bytes, and a byte-identical repeat (same source, Message-ID, bytes and recipients; the Message-ID alone is the sender's to choose) is dropped before anything runs. The proof is checked after the server's rate limit and before the body is read, so refused proofs are throttled too. A proved mail is handed once to the new hook `onInboundMail` (`@buffcore/modules/notifications`; an extension answers it with `onInboundMail.add` in `contributes`): `{ service, envelopeTo, messageId, inReplyTo?, references?, verdicts, receivedAt, raw }`, where `raw` is a `SensitiveBytes` that prints, serializes and logs as `[redacted]`. The claim of the mail, the hook's own writes (it runs on `ctx.em`) and the event commit together or not at all; a hook that throws or runs past 30 seconds rolls back and answers 503 so the provider retries, up to 5 tries; at most 4 hooks run at a time. BuffCore keeps only a hash of the source, the Message-ID, the bytes and the recipients for 7 days (table `notification_inbound`), never the mail, and writes `inbound_mail_received` and `inbound_mail_refused` events with closed properties (never an address, subject or body). `receiveRawMail(t, raw, options)` in `@buffcore/modules/testing` posts a raw mail in a product's tests. Not built yet: SES mail stored in S3, the providers' own signatures and payload formats, a configurable size ceiling, keeping the original for a while, and a `.eml` drop in development.
|
|
594
|
+
|
|
595
|
+
**Upgrade notes** (every product): additive. `ServiceChannel` and the services contract's `SERVICE_CHANNELS` gain `'inbound'` (a product that switches over a channel should handle it); the `notifications` module gains the table `notification_inbound` (migration `0003-inbound`, with its `down`) and the service `inbound`. Nothing is received until the service is turned on, and a product with no extension answering `onInboundMail` is unchanged. The new routes answer 404 while the service is off.
|
|
596
|
+
|
|
597
|
+
## v0.8.18 (2026-11-18)
|
|
598
|
+
|
|
599
|
+
- **What 0.8.18 holds:** the safe-git, approval and merge fixes found since 0.8.17. **Read the upgrade notes of the hooks entry (SP29, half B) and of the safe-install entry (SP41) before you update.** ape's git in a change's worktree, a merge's checkout and the studio's reads now runs none of that checkout's hooks, no signing program, no global attributes file and none of the caller's `GIT_*` settings, through one helper that a test keeps (a product's own `pre-merge-commit`, `post-merge` and the rest no longer run on ape's merges, and ape's merge commits are unsigned), and the studio's Save runs the product's hooks only while the hooks folder matches the last commit (SP29). A merge whose branch changes the lockfile now installs it safely in the temporary checkout before the checks (frozen, offline, scripts off, nothing outside the checkout, a closed `.npmrc` list); a new registry package, a tarball or a git dependency is not installed automatically and the merge points at a terminal (SP41). A merge refused because the checks failed on the merged commit says which step stopped, its exit code and a bounded, redacted tail, and a missing package gets its own hint (SP35). A snapshot records whether it was taken over unsaved work, and Record re-derives the look from a clean copy of the commit (SP24). The newest saved prototype version can be approved over an earlier approval; it replaces the earlier one only when its approval is complete (SP25). A completed milestone approval keeps the build grant for backend-only edits, decided from the approved commit's protected inputs; anything the scan reaches outside the product or cannot read asks for a fresh snapshot (A1). Not in this release: the container's own git store and the checks' run in a container (SP29 half A, SP30), and stock toolchain configs in the milestone scan (A1b).
|
|
600
|
+
|
|
601
|
+
- **Known issues:** (1) A merge's done-when checks still run the branch's own scripts on this computer, and the agents' container still mounts the product's `.git` writable, so a hook or script in a change can still move main; the protected-path hold and the helper stop ape's own git from running them, not a branch that moves main by itself (planned: SP29 half A and SP30). (2) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests, such as the 30-second ones in `ui-approval-authority-use.test.ts`, can time out on a busy machine; Linux runs are green. (3) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
602
|
+
|
|
603
|
+
- **Fix, a merge refused on the merged commit's checks says why (SP35):** the studio's Merge and `ape change merge` refused with "The change checks failed on the merged commit" and nothing else, even when the same checks passed on the branch. The merged commit's checks run in a temporary checkout of Git alone, inside the product's `.git`, so Node finds main's installed packages in the folders above it: they fail there when main's packages do not fit the merged commit (a package the branch added, a workspace package's own `node_modules`, or a main that is not installed), and the checker's own error was thrown away. A refusal now says why: `reason: "checks"` carries a new `failure` object (`kind`: `check`, `start`, `timeout` or `changed`; the failing check's `name` and `exitCode`; and `tail`, the last lines of its output). `tail` is the one free-text field of a merge result: at most 30 lines of 300 characters and 4 KB, redacted as plain text, as written (no percent-decoding), with the settings the checks and the primary checkout hold and with the repository's free-text scrubber (keys, tokens, credentials in URLs; it now also covers Basic credentials, Google and AWS key ids, private key blocks and prefixed names such as `DB_PASSWORD=`), control characters removed, and shown nowhere else (no state, run record, chat or Autopilot message; if the settings cannot be read, no output is shown). The CLI shows all of it under "What failed:"; the studio's notice shows the fixed sentence and the last line (at most 160 characters), and the route's answer carries the whole `failure.tail`. A checker that could not start because a bare package name is missing says, in a fixed sentence, that the merged commit needs a package main does not have, and that a person can merge it at a terminal with git, then run `pnpm install`. The merge does not install anything in the temporary checkout (a safe install is a later change). No limit of 30 s applies to the checks. A refusal came after about 30 seconds in a report; a checker that fails to start explains a fast refusal like that, which is likely but not proven.
|
|
604
|
+
|
|
605
|
+
**Upgrade notes** (every product): additive. A refused merge's JSON gains an optional `failure` object, and `detail` can include the last line of the output; `MergeTools.check` gains an optional fifth argument, `failed`. A merge that passed before passes now.
|
|
606
|
+
|
|
607
|
+
- **Fix, merge protection (hooks):** ape's git in a change's worktree (creating it, its status and authority reads, a catch-up), in the merge's own checkout and in the studio's reads of the product folder (the snapshot report's status, loop approvals) now runs none of that checkout's hooks, no signing program, no global attributes file, no fsmonitor or untracked cache, no `diff.relative`, and none of the caller's `GIT_*` settings, through one helper (on Windows its hooks path is a full path under Node's own executable, never `/dev/null`, which Git for Windows reads on the current drive); a test scans every package's source for git named in code outside its lists (a pattern scan over a small lexer's code and strings, not a proof). A branch's own `post-merge`, `pre-merge-commit` or `post-index-change` hook could move main during a catch-up, a merge or a prototype read before. Main moves only by a compare-and-swap from the commit the checks read, and a main that moved during the merge fails it as moved, never as busy or uncommitted work. The Save stops before any hook runs, naming the files, when a hook-named file at the top of the folder `core.hooksPath` names in the product's checkout, or a committed file in it, differs from the last commit (a fresh hash, never git's stat cache). **Not closed yet:** ape's git still reads the repository's own `.git/config`, so a filter, merge driver or `core.worktree` an agent writes there still runs in ape's merges and catch-ups; an agent that can write `.git` (the agents' container mounts it writable) can move main before a merge; until then a container run can also make code run on this computer, outside the container (`ape agents run`'s own plain `git status` runs a hook it left in the working tree; the person's own git and editor run the fsmonitor and hooks `.git/config` names), so `hidden` is no limit either, not only the history; a change's done-when checks still run on this computer and can move main; and the Save's check does not cover `.git/hooks`, a hooks folder outside the checkout, a new helper a committed hook sources, the scripts the hooks run from the working tree, or a write after the check. These close with a git store of each change's own and contained checks (WORKBENCH.md, AI_NATIVE.md).
|
|
608
|
+
|
|
609
|
+
**Upgrade notes** (every product): A product's own git hooks no longer run on ape's merges, catch-ups, change worktrees or the studio's reads: `pre-merge-commit` (`ape agents held`, now asked by the merge itself), `post-merge`, `post-checkout`, `post-index-change` and the rest. A product that relied on one there moves that work into a change's done-when checks. A merge made with git itself runs every hook as before.
|
|
610
|
+
|
|
611
|
+
ape's merge and catch-up commits are now unsigned even when the person's config asks for signing (`commit.gpgSign`): a git host that requires signed commits on main refuses them, so merge such a product with git itself or let the host take ape's merges unsigned. Merges and catch-ups no longer read the global attributes file (`core.attributesFile`); the repository's own `.gitattributes` still applies.
|
|
612
|
+
|
|
613
|
+
The studio's Save runs the product's commit and reference hooks only while the folder `core.hooksPath` names matches the last commit. It stops, naming the files ("commit or discard them, then save again"), when a hook-named file at that folder's top is changed, deleted, new or ignored, or a committed file in it (a helper) changed or is gone; other files there are ignored. Husky 6–8 (`core.hooksPath=.husky`, its hooks committed, its `_/` ignored) saves as before; the `_/husky.sh` each hook sources is not checked. Husky 9 (`core.hooksPath=.husky/_`, a folder of generated, ignored hook-named files) stops every Save: point `core.hooksPath` at a committed folder (`ape create` uses `.githooks`). Hooks in `.git/hooks` (no `core.hooksPath`) are not checked and run as before. The Save's staging no longer runs a `post-index-change` hook, and it and the hooks' own git run without the global attributes file and with signing by config off (the Save still signs with `-S` when the person's config asks). A `GIT_CONFIG_GLOBAL`, or any `GIT_*` variable, set in ape's environment no longer reaches the Save's git, its config reads included.
|
|
614
|
+
|
|
615
|
+
- **Fix, a merge installs a changed lockfile safely (SP41):** a change whose branch added a package (its lockfile or workspace list changed) could not merge from the studio or `ape change merge`: the merged commit's checks found only main's packages. When the merged commit's `pnpm-lock.yaml` or `pnpm-workspace.yaml` differs from main's, the merge now installs it in its temporary checkout first: `pnpm install --offline --frozen-lockfile --ignore-scripts --ignore-pnpmfile`, from this computer's store only, with the lockfile's folder as pnpm's project (`--dir`) and only workspace, for at most 10 minutes (the merge's stop ends it); an unchanged lockfile installs nothing and adds no time. Before pnpm runs, the merge refuses a `link:`, `file:` or `portal:` path, a `directory`, an importer or a workspace pattern that leaves the temporary checkout (by its words or its real path), except a `link:` main's lockfile has to the same folder (an `ape link` product keeps merging, its links pointed at main's folder); a commit that tracks a `node_modules` path; a dependency name that is not a plain name; any package that is neither a registry package exactly as main's lockfile has it (same entry, by integrity) nor a workspace, `link:` or `file:` folder inside the temporary checkout with a plain `package.json` (never `package.yaml` or `package.json5`) whose commands are plain names (`bin` as a string or an object; `directories.bin` refuses), so a new registry package, a tarball, or a git or URL package is not installed automatically; a `.npmrc` key off a closed list (no folder, store, registry, shell, hook or node version); a `pnpm-workspace.yaml` key but `packages`, `catalog` and `catalogs`; a root `package.json` `pnpm`, `packageManager` or `devEngines` field that is not main's; a patch file (`patchedDependencies` in the lockfile or any package's `package.json`) that is not main's byte for byte, is missing or a link, or names a path with `..`, an absolute, drive or home path, or a quoted name (each path read as pnpm reads it); and a lockfile with no plain `package.json` beside it (pnpm would otherwise take main's, above the temporary checkout). Each refusal has a fixed sentence and a closed `failure.kind`: `installRefused` (`failure.name` `link`, `setting`, `patch`, `manifest` or `package`, the last with the first package that refused as the bounded, redacted tail), `install` (pnpm's error line as the tail) or `installTimeout`. Removing the temporary checkout, or a change worktree, now removes every link and junction in it as itself first, so a deletion never follows one out of the checkout (a branch's `link:../../../x` emptied the folder it named), and a temporary checkout that cannot be removed refuses in a fixed sentence instead of "Git or a hook held the merge". The install runs nothing the branch controls; the branch's code still runs on this computer in its done-when checks.
|
|
616
|
+
|
|
617
|
+
**Upgrade notes** (every product): additive. Merges of a product whose branch changes the lockfile now run an offline frozen install in the merge's temporary checkout; a package missing from this computer's store refuses with a fixed sentence (`failure.kind: "install"`). `failure.kind` gains `install`, `installRefused` and `installTimeout`; `MergeTools` gains an optional `signal`. A product whose `.npmrc` carries a key off the list, a `pnpm-workspace.yaml` with other settings, or a patch the branch changed, has a lockfile-changing merge refused: merge it at a terminal with git. A branch that adds a registry package, or moves one to another version, is refused the same way (`failure.name: "package"`): a new registry package is not installed automatically, because its commands live in a tarball ape does not read; a workspace or `link:` package added inside the checkout still installs.
|
|
618
|
+
|
|
619
|
+
- **Milestone approvals, the contract (AP1.2a.1):** the CLI library gains one approval service for milestone prototypes (prepare, then a synchronous final check right before an effect), its source rules (which edits keep a completed approval: backend, test and docs work; which need a new snapshot: prototype, design, app, config or unknown inputs, and any backend file a prototype, style, page, tsconfig or package manifest reaches, platform files such as `.web.ts` included; it reads only the file kinds it understands, so a preprocessor style, MDX, a framework component, a bundler, Babel or CSS pipeline configuration, a remapping tsconfig or an import form it cannot follow blocks by name instead of passing as backend) and new policy sentences in English and Spanish. A signature it accepts is the signer's own, in the record's one written form; a merge also needs the repository's merge rule where it has one; a change whose milestone header was removed keeps that approval as history only. A studio state row may carry an optional `milestone` key; older rows still parse. Nothing calls the service yet: every command and studio door behaves as before, and keyed changes are still refused. Additive; nothing to upgrade.
|
|
620
|
+
|
|
621
|
+
- **Fix, the studio's Prototype approval (SP25):** a change whose earlier prototype version is approved can approve its newest saved version in the studio (and with `ape prototype approve`, which then means the latest), under the same approval rule and rights as a first approval. The earlier approval stays in force until the new version's signatures hold under the rule (the card says "v4 waits for 1 more signature; v2 stays approved."); the completing signature replaces it in one write, and the replaced approval is kept in the record's new `superseded` list. An agent or Autopilot still cannot replace a person's approval (it hears "Only a person can replace that approval."), an older version cannot either, and the card says so in one fixed sentence instead of showing no button. With a host approval authority, the newest version whose host grant holds under the rule stands, except that a person's approval (any person's signature) gives way only to a grant people alone signed, and Autopilot holds that step for a person. Work and the coding refusal now say why coding waits once a newer version is recorded ("A newer version (v4) is recorded and waits for approval.", with "1 of 2 signed" once someone signed); what is allowed is unchanged, and the earlier approval stays in force for a merge in the checkout only (a host-approved merge needs the newest snapshot approved, as before). A round whose rule window closed shows no Approve and says so. The studio says "Signature recorded" for a signature that waits for others, and the commit of a partial newer-version signature names that version. `@buffcore/contracts/approvals` adds `signaturesMissing` and `signatureCount`. Additive.
|
|
622
|
+
- **Fix, the Prototype step's older-version sentence (SP25 follow-up):** the card no longer tells a person to select an older saved version to approve it. Beside an approved change it says, for any older version, "This is an older version, kept as history. The newest version is v3; the approved version is v1." (English and Spanish). The closed-window sentence now says only that the window for the newest version closed and the approved one stays approved (what holds under that round's own rule, with no promise about the next). A hosted Work page counts the newest version's signatures ("1 of 2 signed") as the hosted coding refusal does. Local Autopilot now stops, saying only a person can replace a person's approval, before it snapshots or records a version it could not approve (as hosted Autopilot did). Words and display only; no approval rule changed.
|
|
623
|
+
|
|
624
|
+
**Upgrade notes** (every product): additive. `prototype/versions/<change>.json` may now hold `pending` (a newer version's partial signatures) and `superseded` (replaced approvals). Readers that parse it with `prototypeVersionsSchema` from an older BuffCore ignore both and keep reading `approved`, which is still the approval in force; an older `ape` that rewrites the record (recording a version) drops them, so upgrade every checkout that records versions together.
|
|
625
|
+
|
|
626
|
+
- **Prototype (SP24):** a snapshot says whether it was taken over unsaved work, and Record refuses one that was, or one whose look is not the commit's. Before, a snapshot taken over unsaved edits could be saved on its own, the edits set aside, and recorded and approved: the screenshots then showed a look no commit holds. Now `report.json` carries `dirty` (anything uncommitted in the repository, as `git status` lists it, except the untracked files in this product's own `prototype/snapshots/`; asked again once the scenes are drawn), and Record refuses a report that says `true` or says nothing (an older ape). Record also derives the design hash and the sample data model again from a clean copy of the commit: its own bytes, written from git without filters, never the working tree, workspace packages included (a `node_modules` entry that links to a folder of the repository points at the copy's folder, and a module the child's own thread loads from the real checkout is refused; a Worker thread's loads are not seen); anything else under `node_modules` is linked in and trusted as installed, whoever wrote it. A commit whose paths are not the same files on every disk (two that differ only in case or Unicode form, a folder included, or a name with a character Windows reserves, a trailing dot or space, or a short-name alias that Windows reads as another file, such as `notes.ts::$DATA`) is refused on every platform, and each file of the copy is created once. The commit's theme and sample-data code run there in a separate process, not a sandbox: it has the person's own rights (no Node permission flags), so it can write wherever they can, the installed packages through the `node_modules` link included, and a process it starts can outlive it. A difference, a derivation that fails or runs over a minute, or a commit over 50,000 files or 1 GiB is refused with one sentence in English and Spanish. A snapshot over unsaved work is still welcome for looking (the studio's Take snapshot works as before); take it again after Save to record. Approve refuses only a version whose report says `dirty: true`; versions recorded earlier stay approved. Not proved: Record does not draw the screens again (screenshots made on purpose from unsaved screen code under a hand-written report are not caught), nor does it see files read with `fs` outside the copy (the real checkout included), the network, the environment or the clock, what the installed packages do, or committed code that deliberately answers Record differently.
|
|
627
|
+
|
|
628
|
+
**Upgrade notes** (every product): `report.json` gains the boolean `dirty`. A snapshot taken before the upgrade has none and cannot record: take every scene again (after saving your work) before the next `ape prototype version` or Record. Sample data must read only committed files and give the same values every time it is read (no dates from the clock, no random values): Record derives the model from a clean copy of the commit and refuses a difference. Versions already recorded and approved are untouched.
|
|
629
|
+
|
|
630
|
+
## v0.8.17 (2026-11-18)
|
|
631
|
+
|
|
632
|
+
- **What 0.8.17 holds:** merge safety and the first fixes for a change with no screens. **Read the upgrade notes of the merge-protection entry (SP22) before you update:** every merge (the Merge button, Autopilot, a host's, `ape change merge`) now holds a change that touches a protected path from your committed `buffcore.config.ts`, read as text, so a config not written as `export default { … }` or `defineProduct({ … })` with a plain `agents.protected` list (a `satisfies`, a variable) can no longer merge through ape until it is rewritten, and in a plain clone (where `ape create`'s `core.hooksPath` never ran) every change to a protected path, such as a dependency change in `/package.json`, is held for a person to merge with Git (SP22). A change with no screens (`noScreens: true` in its committed header) is coded without a prototype approval, and Autopilot's automatic save of anything that changes that waits for a person (SP14). The merge no longer stops on the studio's own untracked snapshot folders (SP16); a coding turn's instructions name the commands its rules allow and it may show its own change (SP28); and `ape upgrade` prints 0.8.16's optional `turbo.json` step (SP18). Not in this release: the container's git store and the checks' run in a container (SP29, SP30), milestone approvals in the studio (AP1.2), superseding an approved prototype version, and Record's re-derivation of the look (SP24).
|
|
633
|
+
|
|
634
|
+
- **Known issues:** (1) A merge's done-when checks still run the branch's own scripts on this computer, and the agents' container still mounts the product's `.git` writable, so a hook or script in a change can still move main; the protected-path hold stops a protected change from reaching main through ape, not a branch that moves main by itself (planned: SP29 and SP30). (2) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests can time out on a busy machine; Linux runs are green. (3) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
635
|
+
|
|
636
|
+
- **Fix, merge protection:** every merge (the studio's Merge button, Autopilot, a host-delegated merge, `ape change merge`) now asks the protected-path decision itself, before any of the branch's checks or hooks run and again on the commit main would take: a change that touches a protected path or lowers a coverage floor is held, by the list in main's committed `buffcore.config.ts` (read as text, from the repository's top, whatever the diff settings), never by the branch's copy of the list or its `pre-merge-commit` hook, which stays a second guard. A branch that rewrote that hook could merge a protected change before. The refusal names at most ten paths, without control or format characters, and a check that moves main is reported as main having moved.
|
|
637
|
+
|
|
638
|
+
**Upgrade notes** (every product): A protected-path change that merged through ape only because its branch rewrote or removed the hook is now held: review it and merge it with Git yourself. In a checkout where the hook never ran (`ape create` sets `core.hooksPath`; a plain clone does not), every change to a path the list protects, such as a dependency change in `/package.json`, is now held too, and ape has no approve step for it yet: a person merges it with Git. A product whose committed `buffcore.config.ts` is missing, or is not written as `export default { … }` or `export default defineProduct({ … })` with `agents.protected` as a plain list of quoted paths (a `satisfies`, a variable or a separate `export default config` all count), can no longer merge through ape until main's copy is written that way; with no `agents.protected`, the config and the files ape writes stay held.
|
|
639
|
+
|
|
640
|
+
- **Fix, the studio's Build step (SP28):** a coding, tests or fixes turn can also run exact `pnpm ape change <id>` for its own change, and its instructions name the commands it may run (with Claude Code: `pnpm test`, `pnpm typecheck`, `pnpm lint`, `pnpm verify`, `pnpm ape migrate create` and the rest of its list, which the turn already had on Windows and POSIX), so a refused `pnpm exec vitest` or `biome --write` no longer reads as "every pnpm command is blocked". `pnpm ape add` stays the person's decision, and the turn says so in one fixed sentence. The `ape-add-feature` and `ape-prototype` skills say `pnpm test` and `pnpm lint` (and the format hook), never direct `vitest` or `biome --write`. Additive; nothing breaks.
|
|
641
|
+
|
|
642
|
+
- **`ape upgrade` and the changelog (SP18):** the notes `ape upgrade` prints for v0.8.16 now include the optional `turbo.json` inputs step for existing products (the starter's SP9 change), which was only in a changelog bullet. A test now keeps every changelog bullet that asks existing products for a step covered by an `**Upgrade notes**` group of its release (older releases named in the test are exempt).
|
|
643
|
+
|
|
644
|
+
- **Studio (SP16):** a merge no longer stops on the untracked files in the snapshot folders (`prototype/snapshots/<commit>/`, any commit-named folder in the product root) that the Prototype save leaves behind on purpose, for the Merge button, `ape change merge` and Autopilot, and the snapshot that follows still runs. Any other untracked file, any tracked change, and any file reached through a link or Windows junction (each file's real path must be its own place in the checkout, which also covers a junction whose target is a volume path) still stop it. A platform that writes a delegated merge must keep Git's refusal to overwrite an untracked file when it does.
|
|
645
|
+
|
|
646
|
+
- **Studio (SP14):** a change with no screens (an extension or a backend change, never a design change) is coded with no prototype approval. Its header says `noScreens: true`, committed on main (an unsaved edit or a header on a change branch does not count, and a change that already has prototype versions keeps the gate); Work then shows it ready to code, and the server's coding approval accepts it. Any other header keeps the prototype gate. Merging it still waits for the merge approval the product's merge rule and the hosted mode ask for, which today read prototype signatures; that is planned to change, together with merge-side trust (a coding branch adding the line to another change, or adding screens to a no-screens change). Autopilot's automatic save of a step that changes whether a change needs its prototype (the line, a second file for the change, or its prototype versions, read by the same reader on the exact tree it would commit) is held for a person.
|
|
647
|
+
|
|
648
|
+
**Upgrade notes** (every product): additive. `noScreens: true` is a new optional change-header field (and an optional `noScreens` on the studio's plan facts); a change without it behaves exactly as before.
|
|
649
|
+
|
|
650
|
+
## v0.8.16 (2026-11-18)
|
|
651
|
+
|
|
652
|
+
- **What 0.8.16 holds:** the studio's Saved source and build-loop fixes found by a product's first builds. Saved source reads the new commit after a reviewed save without a page reload and shows fixed read-failure sentences (SP7); the app's Chip takes its colors from the theme at render, so a solid chip stays readable in dark and high-contrast modes (SP8); the starter's `turbo.json` counts `design/`, `prototype/` and the root `buffcore.config.ts` as inputs, so a theme or prototype edit is never reported "cached" with nothing checked (SP9); Brand and Prototype turns can also run `pnpm lint`, `pnpm ape size` (SP6) and the no-cache `pnpm run test --force` and `pnpm run typecheck --force` (SP11); and AP1.1's milestone approval library, which no door uses yet. Not in this release: milestone approvals in the studio (AP1.2), the guarded public-page fetch, and the fixes for a change with no screens, a merge held by a protected file and old snapshot folders at merge, which are planned for 0.8.17.
|
|
653
|
+
|
|
654
|
+
- **Known issues:** (1) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests can time out on a busy machine; Linux runs are green. (2) The cli typecheck (`tsc`) peaks at about 2.9 GB of memory.
|
|
655
|
+
|
|
656
|
+
- The studio refreshes Saved source after a reviewed save without a page reload, shows loading while a newer read is pending, and uses fixed English and Spanish read-failure sentences instead of “Unknown” or raw errors.
|
|
657
|
+
|
|
658
|
+
- **Fix, the app's Chip:** its colors are drawn from the theme at render, not in its stylesheet, so a solid chip's label always uses the on-solid color. On the web, Unistyles gives styles that come out the same in the first theme one shared class, and a theme whose ink and on-solid colors match in light (a dark-text-on-yellow brand) left the solid chip reading the ink on the solid fill in dark and high-contrast modes, which failed the `design-ui-chip` scene's contrast check. The Unistyles stand-in for tests records the styles a stylesheet produced. Nothing breaks.
|
|
659
|
+
|
|
660
|
+
- **Starter (SP9):** the starter's `turbo.json` counts `design/`, `prototype/` and the root `buffcore.config.ts` as inputs of `typecheck`, `test` and `build`, so a theme or prototype edit no longer leaves `pnpm verify` or a build reporting "cached" with nothing checked or rebuilt. Upgrade note, existing products (nothing breaks if you skip it): in your `turbo.json`, give each of `typecheck`, `test` and `build` an `inputs` list that keeps `$TURBO_DEFAULT$` and adds `$TURBO_ROOT$/design/**`, `$TURBO_ROOT$/prototype/**` and `$TURBO_ROOT$/buffcore.config.ts`; `typecheck` and `build` also add `$TURBO_ROOT$/tsconfig.base.json`, and `test` keeps its `$TURBO_ROOT$/vitest.shared.ts`. Leave each task's `outputs`, `env` and `dependsOn` as they are.
|
|
661
|
+
|
|
662
|
+
**Upgrade notes** (every product): optional, and nothing breaks if you skip it. Existing products can make the same change by hand in `turbo.json`: give each of `typecheck`, `test` and `build` an `inputs` list that keeps `$TURBO_DEFAULT$` and adds `$TURBO_ROOT$/design/**`, `$TURBO_ROOT$/prototype/**` and `$TURBO_ROOT$/buffcore.config.ts`; `typecheck` and `build` also add `$TURBO_ROOT$/tsconfig.base.json`, and `test` keeps its `$TURBO_ROOT$/vitest.shared.ts`. Leave each task's `outputs`, `env` and `dependsOn` as they are. Until you do, a theme or prototype edit can still make `pnpm verify` or a build report "cached" with nothing checked.
|
|
663
|
+
|
|
664
|
+
- **Studio (SP6):** Brand and Prototype turns can also run exact `pnpm lint` when declared and `pnpm ape size` when the product declares `ape` or has the installed CLI binary, and ask for their results before finishing.
|
|
665
|
+
|
|
666
|
+
- **Studio (SP11):** when the product's `test` or `typecheck` script is exactly `turbo run <task>`, Brand and Prototype turns can also run `pnpm run test --force` and `pnpm run typecheck --force` (the same check with Turbo's cache off; `pnpm test --force` is rejected by pnpm); the turn is told to use them when a result says cached. Any other argument is still refused.
|
|
667
|
+
|
|
668
|
+
- AP1.1 adds milestone approval schemas, source-derived membership, history and a pure resolver library. Approval readers refuse exact milestone keys and malformed key-like values; milestone versions arrive with AP1.2. Legacy roadmap headings retain their behavior. Hosted coding reads only the requested change's record, so a corrupt unrelated record no longer blocks it.
|
|
669
|
+
|
|
670
|
+
**Upgrade notes** (every product): The milestone schemas in `@buffcore/contracts/approvals` are additive. Until AP1.2, exact `M-NNN` keys and malformed key-like values (starting with `m-`, ignoring case and leading whitespace) refuse approval. All other roadmap headings and malformed non-key headers keep their legacy behavior. Pinned reads additionally refuse tracked symlink change files; live reads follow readable symlinks. Pinned reads preserve spaces in product folder names and accept SHA-256 tree IDs. Existing records and signatures are preserved. Studio, CLI and MCP version rows add an optional `approvalRefusal` string; older consumers keep working. Comparison diagnostics add the closed `prototype.milestonePending` sentence key.
|
|
671
|
+
|
|
672
|
+
## v0.8.15 (2026-11-17)
|
|
673
|
+
|
|
674
|
+
- **What 0.8.15 holds:** the speed release for the studio's build loop, with the safe-diagnostics and prototype-embedding work that came before it. Brand and Prototype turns can run the product's own test and typecheck scripts (SP1); a scene that throws or never renders stops the snapshot at a limit with its error, and `--scene` may be given several times (SP2); the Prototype save lists and ticks every safe file the turn changed (SP3); `phone` and `zap` icons (SP4); a resumed Claude turn that cannot continue starts once as a fresh session (SP5); a failed snapshot shows only safe diagnostics (FS1); the prototype's header and chrome use fixed slots so Play stays on the first screen (PR1); a model and an effort per task on Auto, recognised and recorded per launch (M14b.1, MF1); Structure joins product planning (SA1); the studio opens the prototype home first, offers its journeys, and refuses unexpected hosts and origins; overlapping secrets are redacted whole. Not in this release: milestone approvals (AP1.1 and AP1.2) and the guarded public-page fetch, which are planned for 0.8.16 and after.
|
|
675
|
+
|
|
676
|
+
- **Known issues:** (1) On Windows, a few cli tests (the three shim tests in `ui-chat-process.test.ts`) fail, and several load-sensitive tests can time out on a busy machine; Linux runs are green. (2) Older Codex builds (before about 0.167) refuse a fixed effort of `max`; the turn stops with the generic "The agent stopped" message.
|
|
677
|
+
|
|
678
|
+
- **Studio (SP1):** Brand and Prototype turns can run the product's declared test and typecheck scripts and supported `doneWhen` scripts, with short instructions to report results or why a check could not run in chat; supported adapters grant exact verification commands without extra arguments.
|
|
679
|
+
- Prototype snapshots stop throwing or stalled scenes at a 30-second render deadline (`--scene-timeout <seconds>`), keep other scenes' results, and publish page errors through safe diagnostics; repeated or comma-separated `--scene` patterns select their union once in scene order, and unmatched patterns are named.
|
|
680
|
+
|
|
681
|
+
**Upgrade notes** (every product): Nothing breaks. One-pattern `scene` metadata remains a string; several patterns use an array in CLI JSON and partial `report.json`. Studio snapshot requests add optional `scenes: string[]`; MCP snapshot `scene` accepts a string or string array. Snapshot problems add the `render` check. A render failure exits 1 using the existing failure JSON; an unmatched pattern exits 2. Slow scenes can raise the default 30-second limit with `--scene-timeout`.
|
|
682
|
+
- Prototype saves start with all safe changed files selected, including sources and deletions; the review shows file status and pages large file sets before the person confirms.
|
|
683
|
+
|
|
684
|
+
- **UI:** add `phone` (handset) and `zap` (lightning bolt) icons, with English and Spanish labels in the design showcase.
|
|
685
|
+
- Studio automatically starts a fresh agent session once when Claude cannot resume because its deferred tool marker is missing, keeping chat history and recording a plain note.
|
|
686
|
+
|
|
687
|
+
- **Studio (FS1):** snapshot, comparison, prerequisite, merge-check and lock diagnostics become typed findings at capture; raw output never enters runs, state, progress, replies or Autopilot messages. CLI snapshot and compare errors in text and JSON also use captured diagnostics; failed snapshot metadata and resolved paths are redacted, and path prefixes after punctuation are hidden; progress prints only scene counts. One pipeline strips default-ignorables, selectors, fillers and controls, then normalizes Unicode and encodings before hiding whole overlapping or wrapped secrets, validating paths and messages, and capping findings at 20. Successful comparison data keeps its fields; change checks keep individually redacted, validated tails, command names and deferred-snapshot notices; merge-lock refusals name the product lock and distinguish a deploying release. Generated English and Spanish notices stay readable. Existing optional `problems`, `problemCount` and translated `output` fields remain additive; saved snapshot evidence now holds typed diagnostics, while legacy diagnostic text is discarded on read.
|
|
688
|
+
|
|
689
|
+
**Upgrade notes** (every product): snapshot, compare and check results from `Runner.all()` or `runPrototypeSnapshot()` now carry `diagnostics`, and `Runner.listedOutput()` is removed; use the workbench exports `runView()` or `visibleRuns()` for the existing display fields. HTTP reply fields remain unchanged. CLI snapshot and compare failure JSON adds `diagnostics`, `problems`, `problemCount` and `output`; its `error` is a translated sentence without exception text. Snapshot text failures list only safe findings or that sentence.
|
|
690
|
+
|
|
691
|
+
- Prototype's desktop header, notices and app chrome use fixed text slots with full-label titles, keeping Play on the first screen across locales and font widths.
|
|
692
|
+
|
|
693
|
+
- Generated products pass their own Biome formatting and declare bootstrap locale inputs for Turbo.
|
|
694
|
+
|
|
695
|
+
- Studio accepts canonical loopback Host headers on default ports, refuses repeated Host headers, and refreshes the prototype's trusted origin whenever its listener is rebound.
|
|
696
|
+
|
|
697
|
+
- Prototype liveness binds each hello to its own document port and fresh studio nonce, so a replacement cannot replay a stored challenge; the studio canonicalizes its listener origin, including default ports.
|
|
698
|
+
|
|
699
|
+
- Studio opens the product's prototype home first, offers its executable journeys, and explains unavailable preview and review controls.
|
|
700
|
+
|
|
701
|
+
**Upgrade notes** (every product): the existing home exports still work. To enable embedded journey discovery in an older generated product, copy the new template's development Metro configuration and its `/prototype` framing header. Start the dev server through the studio's existing Dev server Start: `ape ui` passes its actual listener origin through internal `EXPO_PUBLIC_STUDIO_ORIGIN`; the console address grants no trust. Missing launch context offers the app's own tab. Static preview hosts must supply the route-specific header before embedding is supported.
|
|
702
|
+
|
|
703
|
+
- Prototype preview requires a current document hello, journey reply and heartbeat before enabling controls, preserves the console viewer's App preview, and rejects studio addresses that include paths.
|
|
704
|
+
- Prototype reloads recheck each document with a fresh challenge and watchdog; home URL aliases keep the studio's framing protection, with uncertain paths refused.
|
|
705
|
+
- Prototype embedding accepts only exact canonical studio origins; Play and Take snapshot expire after ten seconds without a current document heartbeat, including replacements that never finish loading.
|
|
706
|
+
- **Agents (M14b.1 recognition):** Auto reports use `ape-choice: turn=<launch-id> model=<identifier> effort=<value>` with a private per-launch id supplied separately from the placeholder shape. Only this turn's own top-level assistant reports with that id and supported values count, including deliberate reports in fences or quotes; conflicting reports stay unreported. After recognition, launch ids are scrubbed from stored replies, history, logs, errors and studio responses, including JSON-escaped and embedded ids from earlier launches. Completed Codex items are deduplicated, and invalid optional selection metadata is discarded when reading saved chats.
|
|
707
|
+
|
|
708
|
+
- **Agents (M14b.1):** adapter/version facts explain supported choices; explicit Auto adds per-task choice instructions and each chat launch stores requested, selected or unreported model and effort independently. Unset fields are called the agent's default.
|
|
709
|
+
|
|
710
|
+
**Upgrade notes** (every product): chat messages add optional `turn` selection records; old messages still parse and read as unreported. No contract fields are required for existing clients. An omitted model or effort keeps the CLI default; explicit `auto` now asks the main agent to choose per task and report it. Unknown Codex versions refuse fixed `max` until its version is known; older-than-0.167 refusal is unchanged.
|
|
711
|
+
|
|
712
|
+
- **Agents (MF1):** the product template explains model and effort; `ape who` compares exact file bytes independently of the index (only CRLF and LF count as equal), sharing one committed read between settings and the notice, warns for differing files up to 1 MiB or a file on each side of that limit, stays quiet for absent files, non-files or two oversized files, never mistakes Git diagnostics for file size, and labels its JSON sources; its MCP description names model and effort, Auto accepts any case, and the studio refuses effort `max` on Codex older than 0.167 with an update-or-change-effort message before launch (an audit-reported cutoff, not a confirmed first supported version).
|
|
713
|
+
|
|
714
|
+
- Structure planning checks LF, CRLF and CR lines separately, refuses hidden separators, keeps corrections visible for long cells, and checks screen-key shape until screens exist; invalid files cannot be saved by Autopilot.
|
|
715
|
+
|
|
716
|
+
- Product planning adds Structure between Journeys and Prototype, a reviewed `plan/structure.md` save, a starter file and first-screen validation.
|
|
717
|
+
**Upgrade notes** (every product): Nothing breaks; the new step, optional plan facts and saved Autopilot step name are additive. Autopilot saves valid Structure drafts like other plan steps, without an approval or signature, and asks for help with the reader's words when a draft is invalid. Products without the file keep working and review a draft before their next affected prototype.
|
|
718
|
+
|
|
719
|
+
- Build logs, service test failures and SMTP errors merge overlapping or adjacent secrets into one `[secret]` marker; log secrets split on CR/LF and SMTP passwords are scrubbed before and after whitespace normalization. Build-log limit: a secret straddling a 64 KB line with no newline can show; no build prints those.
|
|
720
|
+
- Command output hides every overlapping or adjacent secret span, including UTF-8 secrets split across streamed or JSON output chunks.
|
|
721
|
+
|
|
722
|
+
## v0.8.14 (2026-11-16)
|
|
723
|
+
|
|
724
|
+
- **What 0.8.14 holds:** the first changes a product built on BuffCore asked for, and the studio's small fixes. A model and an effort per work in `plan/agents.md`, Auto by default, taken only from main's committed file (M14a); a Build board card selects its change and a prototype approval's commit names the change and version (R15); the redactor sorts its secrets longest first and ignores whitespace-only ones (RD1); the snapshot card shows progress and its result (SM3); `ape upgrade` says which notices are expected (SM2); the Dev server page's stray separator is gone (SM1). No upgrade notes: every change is additive.
|
|
725
|
+
|
|
726
|
+
- **Known issues:** (1) Two secrets that overlap in command output (the end of one is the start of the next) leave most of one visible, in both the streamed and the whole-string redaction; a whole secret never shows. The fix comes first in 0.8.15. (2) Older Codex builds (before about 0.167) refuse a fixed effort of `max`; the turn stops with the generic "The agent stopped" message. (3) A product audit saw the snapshot page change about a minute after the report was written; it was not reproduced, and the result line now shows as soon as the run ends.
|
|
727
|
+
|
|
728
|
+
- **Upgrade (SM2):** After a successful install, `ape upgrade` explains in English and Spanish that missing-peer warnings for optional peers and Expo's update notice are known and need no action, that any other warning or error needs a look, and that checked failures stop the upgrade and are reported.
|
|
729
|
+
- **Studio (R15a):** clicking a Build board card selects its change without triggering selection from its other controls; the existing select button has an English and Spanish accessible name and keeps its keyboard behavior.
|
|
730
|
+
- **Studio (R15b):** prototype approval commits name the change and approved version (`prototype: approve C-006 v2`); places approvals use `plan: approve the places`, with the previous prototype message kept when its metadata cannot be read.
|
|
731
|
+
- **Agents (M14a):** `plan/agents.md` supports a model and effort per work, defaulting to Auto; `ape who` reports them, Claude and Codex apply fixed overrides on new and resumed turns, and other agents explain unsupported overrides. A model applies only to the agent main assigns it to; turns and `ape who` explain when a fixed model is ignored. Unset and `auto` choices produce no model notice.
|
|
732
|
+
- **Studio (SM3):** Prototype snapshots show completed scenes while running and the passing scene count before the separate save-files instruction, using the existing polling.
|
|
733
|
+
- A secret that is the start of another secret no longer leaves the longer one's tail visible in command output; whitespace-only values are never treated as secrets.
|
|
734
|
+
- **Studio (SM1):** Dev server addresses show a separator only when their process details are non-empty.
|
|
735
|
+
|
|
736
|
+
## v0.8.13 (2026-11-15)
|
|
737
|
+
|
|
738
|
+
- **What 0.8.13 holds:** the studio's save, snapshot and first-run hardening. A save runs the product's own `pre-commit` and `commit-msg` hooks and moves main only to the reviewed tree (HS2); every step, Prototype included, shows its file list, saved state and approval gate from one decision, partial saves restore Save this step, and Autopilot's stop names the files that block a record (SV1a, SV1b). A full snapshot replaces the previous one only when it finishes, and an interrupted publication recovers the newest finished one without losing or resurrecting the wrong files (SN1). Plan approvals need a person's signature (PA1); an admitted local tab keeps its session (SS1); refused sibling folders explain the setting to add (AF2); `pnpm dev` prints one `Ready:` line (ST3); `ape upgrade` starts the product's services before migrating (UP1); the studio's polling waits for each answer and backs off (PL1); dev server addresses are links and Prototype offers Open the prototype (LK1).
|
|
739
|
+
|
|
740
|
+
- **Known issues:** (1) A secret-named file inside a step's folder that a save leaves out reads as clean (a fresh page behaves the same); the review card does not name protected or secret step files. (2) Brand and Prototype saves start with the approval records ticked. (3) Autopilot's prototype approval needs a clean checkout, so an untracked personal file stops it (now naming the file); a narrower rule is a later decision. (4) The output redactor's result depends on the order of its values: callers sort longest first, and the sort moves inside it in the next release. (5) A snapshot run whose process stops refreshing its folder for ten minutes counts as abandoned.
|
|
741
|
+
|
|
742
|
+
- **Studio (SV1b):** every step shares the reviewed file selection, with all proposed files in a collapsed, scrollable list, step-owned defaults and earlier untracked snapshots marked and unticked; saves name their step and file count, and refresh the real index before post-commit checks to avoid temporary staged deletions.
|
|
743
|
+
Saves omit and refuse protected paths from the committed policy (with no `agents.protected`, the config and the files ape writes stay protected), recognize step paths regardless of case, keep clean steps available beside other unsaved steps, and retain step-owned defaults on Autopilot.
|
|
744
|
+
A step stays unsaved while its own files are, also after a partial save (which restores Save this step), or while the review reports protected or secret step edits; an empty review offers Reload file list. A failed review or save keeps the person's selection. The fingerprint includes the step, so a set reviewed for one step never confirms another. Record lists saved and left-out files in the same collapsed list, and a version refused for an uncommitted checkout names the files to save or set aside, in Record and in Autopilot's stop.
|
|
745
|
+
**Upgrade notes** (every product): `/api/save` now previews Brief, Plan and Journeys too. Clients must submit their selected `files`, review the returned `fingerprint`, then send both to confirm; changed source or selection returns a fresh preview. Defaults select each step's artifacts rather than all planning files. Build and Release use the same reviewed endpoint when called; their files are explicitly selected.
|
|
746
|
+
`HostSaveInput.step` (a host's `save` callback) also carries `build` and `release`; a host that checks the step should accept them. A product whose committed `agents.protected` is not a plain list of quoted paths (a variable, a spread) cannot save from the studio until it writes the list out. Record and Autopilot's prototype approval still need an unchanged checkout: files a save leaves unticked (personal files, earlier snapshots) must be saved or set aside first.
|
|
747
|
+
- **Snapshot output (SN1):** Safe partial lines appear promptly, and exit, timeout and stop reasons follow the drained, redacted child output. Empty redaction values are ignored.
|
|
748
|
+
|
|
749
|
+
- **Snapshots (SN1):** A full snapshot replaces the previous snapshot only after all files finish; unfinished runs keep it intact. Interrupted publication recovers the newest complete backup for every commit before cleanup and never replaces an existing complete snapshot, including on studio state reads. A one-minute folder heartbeat protects long CLI runs; PID protection expires after ten missed beats, and finished runs clear the timer and release ownership. A failed restore reports its error without deleting backups. The studio explains failures in the page and log and has a named 30-minute timeout. Selecting another change no longer aborts a run, and a second start is refused while one is active.
|
|
750
|
+
- **Studio (LK1):** Dev server addresses open in a new tab, and Prototype offers “Open the prototype” while the app is running.
|
|
751
|
+
- **Studio (PL1):** studio, chat and snapshot polling waits for each answer, slows while idle, backs off on failures, times out after 10 seconds and pauses in hidden tabs; snapshot rechecks discard proof invalidated by changed facts, chats refresh immediately after Send, and the composer explains connection trouble and refused sends beside Send.
|
|
752
|
+
|
|
753
|
+
- **Upgrade (UP1):** `ape upgrade` starts the product's services before migrating when it has a `services:up` script, and explains how to recover when startup or migration fails.
|
|
754
|
+
|
|
755
|
+
- **Studio (HS2):** A save runs the product's `pre-commit` and `commit-msg` hooks on its own index in the product's repository and moves main only to the reviewed tree, by compare-and-swap from the expected HEAD; a hook that changes the staged tree or refuses leaves main as it was, which closes 0.8.12's pre-commit-hook limit. A hook that edits only working files lets main move to the reviewed tree and the reply asks for review of the remaining changes. `commit-msg` receives Git's own message path; whitespace is cleaned as with `git commit -m`, comment lines stay, and an empty message is refused. Refusals show recovery file lists, reference-hook output and a Git version requirement when needed. `post-commit` runs after main moves; `prepare-commit-msg` is not run.
|
|
756
|
+
**Upgrade notes** (every product): saving from the studio needs Git 2.36 or later. A product whose `prepare-commit-msg` hook edits messages gets studio commits without that edit; move such a step to `commit-msg`.
|
|
757
|
+
- **Studio (SV1a):** only an unfinished, available rail step gets a Next accessible name and tooltip in English and Spanish; an approved Prototype is complete even when the rail stage stays there.
|
|
758
|
+
- **Studio (SV1a):** Brand labels the base preset separately from the chosen DESIGN.md direction.
|
|
759
|
+
- **Studio (SV1a):** every step uses Save this step (Guardar este paso), including Prototype’s help text and playground drawing.
|
|
760
|
+
|
|
761
|
+
- **Studio (AF2):** refused reads of a verified sibling folder offer a copyable settings snippet, explain read and change access, and keep retry and continue controls enabled; first-plan and new-product guidance explain the same manual setup in English and Spanish.
|
|
762
|
+
- **Studio (SS1):** An admitted local tab keeps its session through reloads and navigation, removes the token from its address, and needs admission again after a server restart; fresh tabs still need the printed code or address. A local request that carries a different Origin is refused.
|
|
763
|
+
- **Approvals (PA1):** plan approvals require a person's signature; agent-signed plan records are refused.
|
|
764
|
+
|
|
765
|
+
**Upgrade notes** (every product): an agent-signed `plan` approval no longer parses or holds. Nothing signs a `plan` record for an agent (the assistant's approved plans are signed for a person; the studio and Autopilot have no plan-signing path), so no stored record needs a change; replace any manually supplied agent-signed plan record with a person's approval.
|
|
766
|
+
- **Studio (PA1):** Brand and Prototype seals name who can approve at the current development level in English and Spanish, including the playground drawings; money, approval waits and level-change explanations name their limits plainly.
|
|
767
|
+
- **Development (ST3):** `pnpm dev` prints one `Ready: <url>` line once its processes have started and its servers answer.
|
|
768
|
+
|
|
769
|
+
## v0.8.12 (2026-11-14)
|
|
770
|
+
|
|
771
|
+
- **What 0.8.12 holds:** the hosted studio's controls and the sixth approval. A host can launch each agent turn itself and gets the agent's environment (HL1, HL2), show its own level read-only (HV1) and be asked about the exact bytes before any save reaches main (HS1); the admin home can name a product section (HM1) and every module action has a plain title (AT1). People's data going to a new place needs a person's approval, recorded in `plan/places.json` and checked by `ape check places` (EX2). A coding turn cannot loosen its own sandbox or write another change's worktree or the approval record (FU67, FU69, FU71, FU72); the merge gate reads the approval from main's record (FU70). The studio's first run reads as one product: one name, its port listed, steps that fit at laptop and phone width, plain empty, error and loading states, collapsed explanations, a neutral card when the agent carried on past a refusal, and words that hold at every development level (ST1, WS1, WS2); Record version is enabled once the snapshot files are saved (SR1). `search_docs` reads only the product's own docs and what its installed `@buffcore` release ships (SD1, SD2).
|
|
772
|
+
|
|
773
|
+
- **Known issues:** (1) A product pre-commit hook that rewrites the approved `plan/agents.md` can land bytes the host did not approve; the next release validates the finished commit before main moves. (2) A product's own Git filter on `plan/agents.md` runs when the level is saved, and the save refuses, committing nothing, whenever the bytes it would commit differ from what the host approved. (3) `search_docs` reads only an installed `@buffcore` copy, so a product that links BuffCore from a folder outside itself gets no BuffCore docs. (4) The typed `yes` that approves a place at a terminal is a person's confirmation; what stops a coding agent from approving one is that changes to `plan/places.json` wait for a person at merge.
|
|
774
|
+
|
|
775
|
+
- **Extensions (EX2):** new destinations for people's data need a person's approval per extension/host in `plan/places.json`; terminal add/upgrade prompts and the guarded studio door share the approval action, and build checks refuse missing approvals or explain rule mismatches. Chats cannot edit the record and ordinary plan saves exclude it; the places door authorizes its prepared bytes through the host's `save` authority and commits them itself. Merge holds cover product prefixes and case aliases, and linked record paths refuse. The approvals contract counts places quorum across commits on the same fingerprint, like brand; each signature's `commit` is audit metadata. `ape extension approve-places` exits 1 while any place remains unapproved. Non-TTY `ape add` without `--yes` again refuses before installing; a failed places prompt restores its prior grant and API dependency before screen dependencies or generated lists are written. The studio extends only committed places history, refuses pending edits, and checks prepared bytes before every places commit, with or without a host save authority.
|
|
776
|
+
|
|
777
|
+
**Upgrade notes** (every product): approve existing granted places once with `ape extension approve-places` in a person's terminal and commit `plan/places.json`, or use the studio's places door, which now makes its own commit on main. Ordinary plan Save no longer commits this record. The approvals contract now treats places commits as audit fields, so distinct people's signatures can complete a rule after earlier signatures were committed. Add `/plan/places.json` to `agents.protected`; for a product below the repository root add its repository-relative path too (for example `/apps/playground/plan/places.json`), run `pnpm ape agents write`, and commit the regenerated files. Replace linked approval paths with ordinary files and directories. Hosts using `save` must handle `places-approval`; a host's rule does not replace the product's own build rule. Flags and CI cannot answer the terminal prompt, and the command now exits 1 while approvals are missing. Before using the studio, commit intentional edits to plan/places.json from a terminal, or review and restore them; the studio no longer includes pending edits in its approval commit.
|
|
778
|
+
- **Studio (WS1):** Composer, prototype recording, saving, merging, Brand and Prototype approval words hold at every development level; an empty Prototype step has no lone separator and explains that adding a change in Plan unlocks snapshots, and the level-save docs describe host-gated staging failures and approved-byte checks.
|
|
779
|
+
- **Studio (WS2):** Why unavailable? and Live and learn explanations start collapsed and remain readable by keyboard.
|
|
780
|
+
- **Studio (WS2):** A refused command in a normally completed turn gets a neutral notice without recovery buttons; unresolved or stopped turns keep their recovery notice.
|
|
781
|
+
- **Studio (WS2):** Chat context, long words and code wrap inside their column at desktop and phone widths, keeping Send and Stop visible.
|
|
782
|
+
- **Studio (WS2):** Narrow panes contain their scrolling and open at the top when selected, keeping Page, The loop and Agent tabs visible.
|
|
783
|
+
- **Studio (WS2):** Empty Brand previews say screens appear when the app responds and point to Dev server to start it.
|
|
784
|
+
- **Studio (WS2):** Brand voice lists render separate accessible list items from the design contract.
|
|
785
|
+
|
|
786
|
+
- **Studio (SR1):** Record version becomes available only after saving the snapshot files, using the CLI's shared source check on the server; unsaved artifacts keep Save available and Record disabled; missing or changed saved artifacts require a fresh snapshot, and both the studio and `ape prototype version` refuse source files renamed into the product's snapshot folder. The source check compares the snapshot's tree with HEAD, so editing then restoring source stays recordable.
|
|
787
|
+
|
|
788
|
+
**Upgrade notes** (hosts reading `POST /api/prototype/snapshot`): the reply adds optional `recordable`; enable Record only when it is `true`. Replies from older servers still parse, with Record disabled when the field is missing. `source.commit` always names the current HEAD; `proof.commit` may name its snapshot source ancestor.
|
|
789
|
+
- **Studio (ST1):** The page title, help, startup text, templates and skills use one name: studio (estudio in Spanish).
|
|
790
|
+
- **Create (ST1):** The closing port list and product README include the studio's computed API-plus-10 port.
|
|
791
|
+
- **Studio (ST1):** Prototype file paths and report rows wrap inside the page at desktop and phone widths; wide tables keep their own scroll box and previews stack when narrow.
|
|
792
|
+
- **Studio (ST1):** A fresh Prototype source says nothing is recorded yet, and a failed read shows the server's reason.
|
|
793
|
+
- **Studio (ST1):** Build's Changes card says when there are no changes yet.
|
|
794
|
+
- **Studio (ST1):** The highlighted step number and `aria-current="step"` follow the current page.
|
|
795
|
+
- **Studio (ST1):** Pending step data shows the existing loading state.
|
|
796
|
+
|
|
797
|
+
**Upgrade notes** (snapshot API readers): `POST /api/prototype/snapshot` now answers a read with no selected change with `{ status: 'empty', change: '' }`; a source read failure answers with `{ status: 'unavailable', change, reason }`. Both are HTTP 200 and carry no source or proof. Other snapshot replies keep their existing form. `ape create --json` adds `ports.studio`.
|
|
798
|
+
|
|
799
|
+
- **Upgrade notes** (every product): **CLI (SD1, SD2):** `search_docs` searches only the product's docs and skills and Markdown shipped by installed `@buffcore/*` packages inside its folder, including its `apps/*` and `packages/*` workspace installs; results no longer include a sibling checkout or grandparent docs, and each `file:line: text` hit now adds `[product]` or `[@buffcore/<pkg>@<version>]` before the text.
|
|
800
|
+
|
|
801
|
+
- **Studio (HS1):** A save that initially has nothing to change still asks the host before committing a concurrent edit; the host is always asked about the bytes Git commits (after `core.autocrlf`); Record keeps translated refusal reasons.
|
|
802
|
+
|
|
803
|
+
- **Studio (HS1):** Hosts can gate every workbench save, including Autopilot, generated records and level changes, through an optional bounded `save` authority using the verified viewer; refusal or waiting leaves files and commits untouched. Refusals show the host's reason code, and local checks and unchanged saves skip the host; Brand approval records use `brand-approval`.
|
|
804
|
+
- **Studio (HV1):** hosts can set `createUiServer({ level: { source: 'host', where } })` to show the committed development level and its commit read-only, name where to change it in English and Spanish, and refuse `POST /api/level`, a generic save that changes the level or a merge whose checked tree changes `plan/agents.md` (including a host-delegated merge) with `level_elsewhere`; agent choices preserve the file's level, and workbenches without the option (including a blank `where`) are unchanged.
|
|
805
|
+
- **Studio (FU73):** Saving a folder replaced by a file treats its former children as absent on every platform.
|
|
806
|
+
- **Studio (FU73):** A refused prototype approval keeps the working record when HEAD already holds the approved bytes.
|
|
807
|
+
- **Studio (FU73):** Save replies cap only the product-local staged summary at ten paths and count the rest; saved and recovery lists name every path, including hook-added paths without calling them saved. A terminal commit would apply any staged deletions too; a plain save also reports when its index cannot be read.
|
|
808
|
+
- **Studio (HL2):** Agent turn specs carry OpenCode's permission config in optional `env`, so host launchers receive the same guarded-path denies and contained MCP setting as the default launcher.
|
|
809
|
+
|
|
810
|
+
**Upgrade notes** (hosts using `ChatEngineOptions.start`): additive `CommandSpec.env`. A host written against HL1 earlier in 0.8.12 must pass `spec.env` to its child alongside its own environment, so OpenCode keeps BuffCore's permission config. `spec.env`'s keys override the host's own; a host that sets its own `OPENCODE_CONFIG_CONTENT` must merge it so BuffCore's `permission` and `mcp.ape` entries win. Existing default launchers need no changes.
|
|
811
|
+
|
|
812
|
+
- **Studio (FU72):** OpenCode's edit tools now deny writes to `prototype/versions/` in every turn, and to `.ape/worktrees/` in planning, design and validation turns; coding, tests and fixes keep writing their own worktree. Its wildcard covers nested folders too. These denies cover OpenCode's edit tools only: its turns have no command list, so any shell command, or a product's own agent-level OpenCode permissions, can still write these paths. Codex checks its settings against the local `refs/heads/main` branch with a two-second timeout and no lazy fetch; a failed or timed-out read refuses the turn.
|
|
813
|
+
- **Actions (AT1):** Every registered BuffCore module action has a plain English and Spanish title in Rules, approvals and the activity record.
|
|
814
|
+
- **Admin shell (HM1):** `createAdmin({ home })` also accepts a product section key, leading the rail and opening its first permitted screen while keeping Overview at `/overview`; keys naming both a section and an extension are refused.
|
|
815
|
+
- **Studio (HL1):** hosts can launch each guarded agent turn with its chat, agent, purpose and frozen sender, including an optional opaque host subject, to supply their own containment and credentials; child output is recorded normally.
|
|
816
|
+
- **Studio (FU35b):** once a save's commit exists, the real Git index follows it by one rule: a path with nothing staged, or staged exactly as reviewed, follows the commit; any other staging stays. The save's commit is the one on HEAD whose first parent is where the save started, so a post-commit hook that stages a file into the studio's index no longer stops a plain save. When HEAD is anything else (a hook committed on top of the save's commit, or moved HEAD), the save says its commit could not be confirmed, moves nothing and names the step to finish: `git reset HEAD --` with the saved paths (it changes only staging), then reload and save again if the file list still shows them; for a prototype approval, `git checkout HEAD --` with the record's path, and approve again if the record does not show the approval. A commit another tool makes on that HEAD while a check runs is reported like the save's own: never saved, and only staging equal to the review follows it.
|
|
817
|
+
- **Studio (FU69):** Claude's file tools (Edit, Write, MultiEdit, NotebookEdit) cannot write `prototype/versions/`, the approval record `requireCodingApproval` reads, in any turn, and Codex's sandbox holds the product's copy read-only. Planning, design and validation turns also cannot edit a change's worktree under `.ape/worktrees/`; coding, tests and fixes turns keep writing their own. Not covered: commands that run code a turn wrote (`pnpm test`, `pnpm ape prototype data`). A Codex design turn can no longer run `pnpm ape prototype version`; recording a version is the studio's Record button.
|
|
818
|
+
- **Studio (FU67):** Tests and fixes chats for a change, which write in the change's worktree like coding chats, now need the approved current prototype version too, checked before the branch, worktree or install is created and again on every resumed turn; a refusal shows its own sentence in the chat (also on a takeover), and with a change selected Work reuses the page's one loop chat and shows its history instead of opening one per change.
|
|
819
|
+
- **Snapshot (FU68):** `ape prototype snapshot` opens at most two scene pages at once (was four) and, when a script or module of a page fails to load (a busy dev server dropping requests, `ERR_INSUFFICIENT_RESOURCES`), ends the wait at once and loads that page again once before the scene's own retry; a second failure is reported as before. No upgrade notes.
|
|
820
|
+
- **Studio (FU71):** Codex coding, tests and fixes turns compare only the worktree's repository-root `.codex/config.toml` with main's committed file, refusing a difference or a failed read; starts and resumes pass `--ignore-rules`, so user and project execpolicy `.rules` files are not loaded. The refusal says to restore the file from main at the change's repository root, or delete it if main has none, or use Claude Code. Claude Code and OpenCode have no config comparison. No upgrade notes.
|
|
821
|
+
- **Studio (FU70):** Every merge door (`ape change merge`, the studio's Merge, delegated merges and Autopilot) refuses a branch that adds, edits or deletes another change's `prototype/versions/<change>.json` (checked on the merged files against main's commit, so a case-folded path does not get past it), and a branch that changes any path with `~` followed by a digit in a name, anywhere in the repository, because on Windows such a name can stand for another one (`PROTOT~1` for `prototype`). A change whose worktree is a studio coding checkout (its real path, as Git lists it, is under a `.ape/worktrees` folder) may not add or change `approved` in its own record beyond main's copy, with or without a `merge` rule (versions and snapshots may be added). When a `merge` rule is set in `plan/approvals.md` and no `approval` adapter decides, the approval of such a change is read from main's committed `prototype/versions/<change>.json`; for a person's own checkout the branch's own record is read, as before. The merge's own Git reads, the `merge` rule's included, ignore `refs/replace` (a host `approval` adapter's reads are not changed here). What this binds: what Claude's file tools let a coding turn write, and Codex's sandbox while it cannot write the repository's `.git` folder (not verified here; a sandbox that lets a turn commit can, and is not bound). What it does not bind: code a turn wrote and then ran outside a sandbox (a Claude coding turn may run `pnpm test`, and `git commit` runs the `.githooks` it may edit), OpenCode's open shell, and a studio that mounts the repository read-write. Those can change Git's record of where the worktree is, and can commit to main too. A team that needs approvals agents cannot forge uses an `approval` adapter on a host, which still decides for its merges.
|
|
822
|
+
|
|
823
|
+
**Upgrade notes** (every product): a merge is now refused when the branch edits another change's prototype record, and, for a change built in `.ape/worktrees`, when its own record changes `approved`; approve on main (the studio's approve button does) and commit it there. A person's own linked checkout (outside any `.ape/worktrees` folder) still records and approves on its branch. A branch that changes a path with `~` followed by a digit in a name (such as `PROTOT~1` or `logo~2x.png`) is refused too: rename it; and for approvals agents cannot forge, set an `approval` adapter on a host.
|
|
824
|
+
|
|
825
|
+
## v0.8.11 (2026-11-13)
|
|
826
|
+
|
|
827
|
+
- **What 0.8.11 holds:** the studio's wiring. Development levels decide what the studio shows and does (FU36); Snapshot, Record and Save run as one reviewed path on main with bounded runs (FU37, FU35); Work, Release and Agents say what blocks a change and what to do (FU39, FU41, FU43); the studio hands a merge to the host (MG14); a refused agent call is explained in the chat (FU40); Choose for me, Brand, Prototype, Journeys, the phone and tablet layouts and the console previews are drawn and honest (FU32, FU33, FU34, FU38, FU42, FU47, FU48, FU49, DS14d, SH14d).
|
|
828
|
+
|
|
829
|
+
- **Known issues (the studio):** (1) FU35: a post-commit hook that stages a file or commits on top of the save's commit makes the save report that its commit could not be confirmed (the message names the one step to finish); 0.8.12 (FU35b) saves plainly through the first and, for the second, moves nothing and names the exact step. (2) FU36: when the read right after a refused save fails and main has already moved, the refusal can end at the next read, so its reason is gone while the level stays unsaved and Save works again. (3) FU37: a change kept in its own checkout is never saved or recorded by a studio; its sheet says why and, outside the studio's coding checkout, gives the terminal steps, which need that folder's own settings. A viewer who is not the seat's own person cannot take snapshots or record versions and reads a general "could not be read" reason. (4) The registry warning below.
|
|
830
|
+
|
|
831
|
+
- **Studio (FU37):** Take snapshot generates review files in the selected change's checkout, with prerequisites, Stop, failed-scene retry and bounded runs (15 minutes and 2 MiB of output unless `snapshotLimits` says otherwise); closing the server stops a running snapshot at once. Record follows the reviewed save, also when a poll read overlaps the recheck (the newest read answers; a newer invalid read still blocks), and requires unchanged passing proof of that change, saved source and checkout at the server and at the version write. The studio saves and records only on main, so a change kept in its own checkout offers no Save, Take or Record and the server refuses its prototype save and recording (the save request gains an optional `change`); the panel and the refusals say why instead. For the studio's coding checkout (under `.ape/worktrees`), the change is being built there from its prototype approved on main, so there is nothing to record or save. For any other checkout, they give the terminal steps there (commit, `pnpm ape prototype snapshot`, commit the snapshot folder, `pnpm ape prototype version <change> --why "…"`), naming the folder only from another studio, and say that the folder needs its own settings (`.env`, with its own port block) and its own `pnpm ape dev` running before the snapshot can work. The failed-snapshot list shows only the structured problems, with singular and plural counts, and saved path names show invisible characters as escapes. A refused snapshot read puts no banner on the page, and a viewer who is not the seat's own person never asks for one.
|
|
832
|
+
|
|
833
|
+
**Upgrade notes** (hosts using `createUiServer`): `snapshotLimits` and the save request's `change` are additive. Behaviour: `POST /api/prototype/snapshot` is own-only (`build` and `viewer.own: true`), and `/api/run`'s `version:<change>` now needs this server's own passing snapshot proof, so a hosted viewer who is not the seat's own person can no longer record a version from the studio (before, `build` was enough); the seat's person records it. See [the hosted rights](docs/WORKBENCH.md#behind-a-hosts-sign-in).
|
|
834
|
+
|
|
835
|
+
- **Studio (MG14):** Hosts can delegate both studio merge paths with `merge`. Exact checked heads and measured results go to the host when a merge is requested, and `merge` may be called again for the same change and head: on the next merge after a refusal or after main is rewound (the person's Merge, or Autopilot after a later turn), and for a person's explicit Merge on a wait past the bound (once per bound); failures never fall back locally. A queued merge (`pending`) is resolved by observation: reads and polls never ask the host again, and when main holds the head it records the merge, runs the exact-main post-merge Snapshot and ends the wait. The wait survives restarts, holds the Merge button and Autopilot, and shows when it was asked. The merge notice is derived on every read from the saved record and Git, never stored. A host fast-forward to the supplied head saves its revert command when one is known to undo exactly that change (`git revert <commit>`, `git revert <base>..<head>` for several commits, or `git revert -m 2 <head>` when the head is the studio's catch-up merge); otherwise no command is saved and Autopilot asks the person. A wait main already satisfies shows as merged for every reader, a waiting change holds only its own Merge (not the lock), and an outcome notice stays until a newer one arrives. A waiting merge can be asked again once it has waited longer than the ask's timeout plus the 12 s closing wait: its card then offers Merge again (the wait line keeps its time), and one explicit click asks the host the same head once more and refreshes the wait, so a second click inside the bound is held again; a restart and a second server on the same repository behave the same, because the saved wait and its time decide, and so does a server killed after it saved its ask. A server killed while it holds the merge lock leaves `.git/ape-merge.lock`: the card keeps showing the change as merging with no Merge, and a click is refused naming that file; the person deletes it (as for any stopped merge), and then Merge works again. Under the merge lock every ask also checks that main does not already hold the head; if it does, it neither asks nor writes (202), and the next read records or shows the merge. If a refusal cannot be recorded, the person sees a record failure and the wait stays on file; it can be asked again once it is that old. A state read whose Git calls fail while a wait or an outcome is on file shows Work as unknown, never a quiet change with Merge offered.
|
|
836
|
+
|
|
837
|
+
**Upgrade notes** (hosts using `createUiServer`): `merge` and `mergeTimeoutMs` are additive; delegation requires `signIn` and the sending viewer's build right. The default bound is 5 seconds; overrides must be integers from 1 to 30,000 ms. The host must make each change/head idempotent, support cancellation safely, and bring completed merges into this repository's main ref (the studio observes it). `merge` may be called again for the same change and head: on the next merge after a refusal or after main is rewound (the person's Merge, or Autopilot after a later turn), and for a person's explicit Merge on a wait past the bound (once per bound); keep it idempotent. Receipts are display text only. Terminal/MCP merges outside this server keep local behavior. `StudioState.work` gains the optional `merges` list (each entry: `change`, `head`, `kind` of `waiting`, `merged` or `refused`, `at`, `detail`, and `again: true` on a wait old enough to be asked again); `@buffcore/contracts/workbench` gains `revertCommand` and `ObservedMerge`, and an Autopilot merge choice's `revert` may now also be `git revert <commit>`, `git revert <base>..<head>` or `git revert -m 2 <head>` (`revertCommand` may return undefined; `ObservedMerge` gains optional `merges` and `second`). The ignored per-product Autopilot record gains optional `outcomes`, and an older numeric pending `revision` is read as its string. An older BuffCore cannot read the new record format (an object instead of a list once a merge is delegated), so do not downgrade past it. See [the host merge contract](docs/WORKBENCH.md#host-merge-authority).
|
|
838
|
+
|
|
839
|
+
- **Known issue (registries):** some self-hosted package registries drop `peerDependenciesMeta` from the package data they serve, so pnpm warns about missing optional peers (the Claude SDK, Firebase, `expo-web-browser`, `react-native-webview` and the like) on a resolving install. The warning is harmless, and public npm keeps the field. A product that wants it gone can mark those peers optional in its own `package.json`, for example `"pnpm": { "packageExtensions": { "@buffcore/app-shell": { "peerDependenciesMeta": { "firebase": { "optional": true } } } } }`.
|
|
840
|
+
- **Studio (FU43):** Agents distinguishes a missing CLI from a reported desktop app, explains Windows administrator setup and the WSL alternative, and rechecks availability without losing saved choices; desktop detection remains unknown.
|
|
841
|
+
- **Addition:** `POST /api/agents/check` (right `read:agents`, an empty body) reads the existing CLI probes again and replies `{ found: [{ id, state, version? }] }` without writing saved choices; concurrent requests for a studio share the probe already running, and a new one starts only after it settles. No upgrade note is needed.
|
|
842
|
+
- **Studio (FU39):** Work explains the selected change’s prototype prerequisites, opens its Prototype step, and keeps coding unavailable until its current artifact is approved; the server rechecks that approval immediately before launch, changing selection cancels stale requests, and a failed studio read keeps coding blocked until fresh facts return.
|
|
843
|
+
- **Studio (FU41):** Release lists every prerequisite with its status, shows failed proof first, requires a fresh destination and address review after edits, and shows main's check proof, bound to its commit, from the studio's state. Approve and release enables only once every row passes (or reads "not required" for a main with no prototype scenes) and the person has reviewed the form; unknown, stale or failed proof keeps it blocked. The server's release path keeps its own refusal.
|
|
844
|
+
**Upgrade notes** (every product): additive only. `StudioState` gains an optional `release` field (`{ commit, required, state }`, state one of passed, failed, running or unknown), read-only and filled from the existing post-merge snapshot evidence. An older server without the field shows the checks as unknown and points to `ape deploy`; nothing else changes for existing consumers.
|
|
845
|
+
- **Studio (FU35):** Brand and Prototype save exact reviewed file sets, exclude secrets and linked paths, bind staging to the review, preserve other work, and offer snapshots only for stale version proof. After snapshots, Record reviews new files; large file lists and submodule updates save accurately. After the commit, the studio compares its tree with the reviewed tree: if a repository check (a pre-commit hook, say) changed it, or the comparison could not be made, the save reports the commit, never says saved, and the person reloads the file list and saves afresh before Record or approval; a prototype approval needs a plain saved reply. Errors after a commit report that it was made, and a commit that is not a plain save still moves the real Git index to it (for the paths it changed, never over the person's own staging, including staging made while a check ran; staging that is exactly what was reviewed, when a check then changed the file, restored it to its old content, or deleted or renamed a new one, follows the commit (the save's own commit only: its first parent is the HEAD before the save and its tree is the one the save committed, whatever message a hook gave it; any other commit that appears, another tool's, never moves staging it did not touch, and one that is not a child of that HEAD, from an undo, an amend or a rebase, is not followed at all); in a product in a subfolder and for paths outside it; if Git cannot move the index, the detail names the `git reset` to run, in the product's folder, and says so when the changed paths could not be listed), so Reload shows nothing left to save instead of the committed files as deletions. **Known limit:** a post-commit hook that stages a file or commits on top of the save's commit makes the save report that its commit could not be confirmed; the message names the one step to finish (in the product's folder, `git log -1 --stat`, then `git reset HEAD --` with the saved paths if they are in that commit but still show as staged), and says that committing from a terminal before that step would undo the save. **Upgrade note:** the save reply gains an optional `changed` list (paths); nothing needs upgrading.
|
|
846
|
+
- **Studio (FU36):** Development levels explain their choices and whole-file save scope, preserve uncertainty through lost replies, retries and stale save confirmations, report committed saves with failed index cleanup, require settings rights to change levels, and describe approvals without inventing a signer or authority: an unconfirmed level never says "You approve", a refused upgrade is never shown in effect (its draft stays in the file and another save can commit it), the rail and the level sheet say "A person approves" because the server needs the right or named people, not the viewer, the top bar shows the level in effect or marks the selection unconfirmed, a viewer without the approve right reads "Person only" on Brand and Prototype only where a person approves (never at Autopilot or an unknown level), the saved and in-effect levels are the server's (main's committed level and the effective level, reported in the studio's state and read together without blocking the server; a server that does not report them, a viewer without read:agents and a failed read all read as not confirmed, the Brief page too, and a reset of main shows at the next read), a level button stays focusable while a save is in flight, and Retry hands focus to the chosen level, so Escape still closes the sheet, the last save's answer (refused or partial, with the server's own words under the sheet's status and a cue on the top bar) lasts until the next save or until a successful read shows main moved on from it (a refusal once main holds the choice or leaves the level it held beside the refusal, a partial save once main no longer holds the choice; the working copy and a failed read never end it, and when the read right after a refused save fails, the refusal is measured from the last level the page read, so a commit in between ends it at the next read), the top bar's level button is named by what it shows, so a screen reader hears the level and the cue, no level is selected from the working copy alone, the timing line compares the choice with the saved level by one autonomy order (lead, guide, review, auto): at or below it applies at once, above it waits for a commit, and it says the saved level stays in effect only while it is, the Brief page names no level and no approver it cannot back (at Autopilot it names release, money, data and plan as waiting for a person), and the rail legend reads "Always a person".
|
|
847
|
+
**Upgrade notes** (every product): additive only. `StudioState` gains optional `committedLevel` and `effectiveLevel` (each one of auto, guide, review or lead), filled from main's committed `plan/agents.md` and the effective level the studio already uses (a missing or damaged file reads as guide). An older server without them shows the saved and in-effect levels as not confirmed; `@buffcore/contracts/workbench` also exports `AUTONOMY` (the one autonomy order), `limitedLevel` and the `Level` type; nothing else changes for existing consumers.
|
|
848
|
+
- **Studio (FU47):** Unavailable project switching, Help, Live, Agent chats and policy switches explain their limits through accessible, start-aligned reasons (in the collapsed rail the reason is read by assistive technology only; `Tabs` gains an optional `describedBy`); Live says it is not built, the agent policies stay read only and say what is really enforced (cross-validation only warns when one agent codes and validates, and the default agent's takeover is built in), and missing release rights stay distinct from unknown setup.
|
|
849
|
+
- **Studio (FU32):** Choose for me on an open question sends an ordinary planning-chat message with the sender's own authority; it does not change an approval level or give permission for later choices or actions.
|
|
850
|
+
- **Studio (FU38):** Console previews use the project's first console scene at its console server, explain missing scenes, loading and unreachable previews, verify the scene rendered before offering its viewer, and preserve the selected app frame when switching surfaces.
|
|
851
|
+
- **Addition:** `GET /api/prototype/scenes` reads only scene identities on mount or Retry in a fresh child, coalesced per studio, with a five-second timeout and 128 KiB output cap. State polls never execute project scene code. A failed or timed-out read stays unreachable with a translated reason. The runtime signals readiness after the view commits inside its Suspense and error boundaries; existing product views need no changes and no extra DOM is rendered.
|
|
852
|
+
- **Admin (FU48):** Tabs and Work sort headings have larger wrapping touch targets; tabs support arrow, Home and End navigation, and disabled labels stay readable in dark mode.
|
|
853
|
+
|
|
854
|
+
- **Studio (FU49):** Tablet app and console previews offer portrait and landscape, retain orientation across scenes and device changes without moving the journey step, and fit the studio width. The optional `DeviceFrame.orientation` selects the studio's 768 × 1024 or 1024 × 768 tablet viewport; omitted, existing frame sizes stay unchanged.
|
|
855
|
+
|
|
856
|
+
- **Studio (FU42):** Brand's save warning stacks its action and wraps long file paths at phone width.
|
|
857
|
+
|
|
858
|
+
- **Studio (FU40):** When the agent is refused a call, the chat says which call and why it did not complete, with two ordinary messages sent as you: "Ask the agent to try again" (reads and commands only) and "Continue without it", which says the call was skipped. The notice hides private files and settings and never retries them; a target too long to show whole is cut with "…", and one the CLI already redacted shows its mark (`[redacted]`, `[email]` and the like); neither is retried, and the notice says the call was shortened or redacted. The studio grants nothing, runs nothing and adds no route.
|
|
859
|
+
|
|
860
|
+
- **Studio (FU34):** Saved change details include goal, scope, screens, data and checks; journeys show their base, alternate and failure paths, and end state, with missing sections named and omitted; bounded previews explicitly say when text, lists or journey details continue in the source file. Saved details use the same Markdown rules as the neighbouring plan readers, with Unicode-safe bounds; repeated sections combine in file order.
|
|
861
|
+
|
|
862
|
+
**Upgrade notes** (every product): additive only. `PlanFacts` gains optional change fields (`goal`, `scope`, `screens`, `data`, `checks`) and a bounded optional `details` list on each journey group, with fixed per-name fields (`base`, `alternate`, `failure`, `branches`, `end`). Optional `truncated` flags on changes and journey details and `detailsTruncated` on journey groups identify partial previews. Existing fields and consumers are unaffected; old payloads still parse and absent sections stay absent. Combined branches and failures stay together when saved that way.
|
|
863
|
+
|
|
864
|
+
- **Studio (FU33):** Agent replies display headings and readable tables; wide tables scroll inside full-width reply cards with visible edges. A table that is oversized, ragged or past a reply's budget (40 tables, 3,000 cells) shows every source character as plain text, without formatting or active links, and malformed Markdown no longer causes quadratic rendering work.
|
|
865
|
+
- **Admin shell (DS14d):** adds `Disclosure`, a controlled or uncontrolled summary button with accessible detail, directional chevrons and seven playground scenes for visual approval.
|
|
866
|
+
- **Playground (DS14d):** aligns the list's show-more disclosure with its bullet gutter in both reading directions.
|
|
867
|
+
- **Admin shell (SH14d, drawn):** Sheet bodies scroll within the viewport while the title and footer stay in view; playground scenes show long, short and focused content for approval with DS14d.
|
|
868
|
+
- **Studio (FU61):** Legacy approval decisions take no rules, including previously saved ones, keeping private reasons out of held calls; existing open holds keep Approvals available to their recorded approver roles until closed. Invalid service decision notes return `validation_failed` (400).
|
|
869
|
+
|
|
870
|
+
**Upgrade notes** (`automation`): a rule an Owner saved on `automation.approve_draft` or `automation.reject_draft` is now ignored, so those two decisions are no longer held for approval, and the rules screen no longer lists them. It stops without a message and needs no migration. Who may decide a draft is unchanged. Holds already open keep Approvals available to their recorded approver roles until they close. An invalid `decisionNote` on a decision is `validation_failed` (400).
|
|
871
|
+
|
|
872
|
+
- **Studio (FU31):** each chat turn starts with the current and next loop step and the saved brief sections, milestones and journeys (bounded; unknown when missing or unfinished).
|
|
873
|
+
- **Admin shell (E14):** Approvals accept product evidence panels by action key and an optional plain-text Reason on approve or decline; authorized opened history shows it, and a failed action restores the prior reason.
|
|
874
|
+
|
|
875
|
+
**Upgrade notes** (`automation`): additive only. `createAdmin`/admin context accept optional `approvalEvidence` components using the exported `ApprovalEvidenceProps`; approval and legacy draft decisions accept optional `decisionNote` (trimmed, at most 1,000 characters), returned only by the authorized opened Draft, never DraftRow. Existing calls, including bodyless rejects, keep working.
|
|
876
|
+
|
|
877
|
+
- **Studio (FU60):** Approval git checks, including prototype snapshot reads, time out safely without lazy fetch; snapshot gates inspect only their definition paths, preserve Unicode evidence directories, and hide padded and trimmed private check settings only when each form has at least six characters.
|
|
878
|
+
- **Studio (FU51):** The Brand card shows the applied standalone DESIGN.md direction name and voice, keeps the preset as its base, and no longer offers the applied direction as a change; prose-only direction sections and absent voice keep the existing fallback.
|
|
879
|
+
- **CLI (FU44):** `ape create` prints usable next steps before the source reveal, with no placeholder install commands.
|
|
880
|
+
- **CLI (FU45):** The first bootstrap of a new product saves only its new lockfile, a git hook cannot widen that commit, and the template's scripts pass the product's own Biome.
|
|
881
|
+
- **Studio (FU46):** The planning page's save feedback belongs to the step that saved: a result no longer shows on another step.
|
|
882
|
+
- **Studio (FU57):** A failed host part names itself in its own card, while the studio and other parts keep working.
|
|
883
|
+
- **Admin shell (FU58):** Environment names storage checks, missing pages show one heading, retryable jobs show their future drop date, the sign-in page shows the product's name, and phone controls have 44 px targets while desktop sizes stay unchanged.
|
|
884
|
+
- **Addition:** a product may pass `displayName` in the admin's `product` info (optional, added to `ProductInfo`) so the sign-in page shows its name instead of its key; without it the key is shown as before. This needs no upgrade note.
|
|
885
|
+
- **Admin shell (FU56):** Find opens from the header or Ctrl/Cmd+K, filters permitted pages by translated page and section labels locally, and supports keyboard, mouse and touch navigation.
|
|
886
|
+
- **Admin shell (FU54):** At phone width, navigation opens in a drawer over the full-width page; backdrop, Escape and navigation close it and return focus to the menu toggle.
|
|
887
|
+
- **Admin shell (FU55):** A focus-visible English and Spanish skip link is the first Tab stop and moves focus to the main content.
|
|
888
|
+
- **Admin shell (FU53):** Clicking or tapping a button's icon works across the menu toggle, rail navigation, operator menu and appearance controls, including at phone width.
|
|
889
|
+
- **Studio (FU29 fix round):** Coding permissions allow only the current change in either check argument order; each failed check retains its own redacted output tail, using FU28's isolated checker and post-merge snapshot gate. Closing a studio releases its merge reporter.
|
|
890
|
+
|
|
891
|
+
- **Contracts and server (E14C):** Additive: clients may omit `body` when its schema accepts `undefined`, and the server accepts that missing body; required bodies still receive the same validation error.
|
|
892
|
+
|
|
893
|
+
- **Studio (H14):** Hosts may supply trusted same-origin modules at machine, agents and usage places through `createUiServer({ signIn, hostParts })`; modules receive only the validated viewer and clean up on identity changes or sign-out. Failed actions keep modules mounted; only failed state reads remove them. Failure scenes use the adapter's own note, and synthetic host copy stays in the playground. Existing React parts keep their contract.
|
|
894
|
+
- **Studio (FU29):** Autopilot reports failed check commands and their last output lines, Work keeps the Checks failed state, merge checks clean their generated snapshot JSONs on either outcome, and coding permissions accept either order of the change id and `--check`.
|
|
895
|
+
|
|
896
|
+
- **Studio (A14, BuffApe's request):** a hosted studio can make its host the approval authority with one optional `approval` function on `createUiServer`. It's asked at approval and again at every use, bounded to 5 seconds, and refused on any failure. With it set, that server's gates use only its answer. Without it, nothing changes.
|
|
897
|
+
Hosts may return `approval_elsewhere` to direct approval to the product's own console.
|
|
898
|
+
|
|
899
|
+
**Upgrade notes** (hosts using `createUiServer`): `approval` is optional and additive. With it set, `signIn` is required. Approvals made outside that server (terminal, MCP) follow local rules, and a host must not trust them for anything that leaves the machine. Approval's git reads (the prototype snapshot's included) now time out after 2 seconds with lazy fetch off, and a hung git refuses the approval instead of waiting (FU60).
|
|
900
|
+
|
|
901
|
+
- **Services (VR14):** secret settings can name a host value with a strict `{ ref: "host/key" }`. The typed composition resolver supplies it once per action, with a five-second deadline, a 64 KB limit, no retry and no fallback. Push broadcasts resolve before any target sends; stored literals stay exact. Provider failures safely withhold their reason, failed resolutions replace older successful service tests, and unauthenticated webhooks reveal no field. Resolved values stay out of stored settings, replies, logs, exports and backups.
|
|
902
|
+
|
|
903
|
+
**Upgrade notes** (every product): `setServiceFields.body.fields` accepts `ServiceSetting` (`string | SecretReference`); only declared secret fields accept references. A secret reply may include `external: true`, with `value: null` as before. Set optional `resolveSecret: ResolveSecret` on the `Composition` passed to both `startApi` and `startWorker`, directly or through `defineApp`; both starters forward it to `createApp`. The resolver returns a nonempty string or `null`, bound to the product and environment. Its purpose is a label, not caller identity. Reference keys with controls or newlines and answers larger than 65,536 UTF-8 bytes are refused. Existing literals need no change. Web push references require their matching public key. Product providers use `referenceFailure` to withhold potentially secret-bearing failures; see MODULES.md.
|
|
904
|
+
|
|
905
|
+
## v0.8.10 (2026-11-11)
|
|
906
|
+
|
|
907
|
+
- **What 0.8.10 holds:** the studio's merge gate. A change's checks get the product's own environment in their worktree, and release needs a passing Snapshot recorded for the exact commit (FU28). The brand card shows the product's own title and voice (FU30).
|
|
908
|
+
|
|
909
|
+
- **Studio (FU28):** Linked-worktree checks receive only tracked example settings, with translated notices explaining their environment and file access; output keeps values shorter than six characters readable. Deferred snapshot commands keep their shell meaning and run on main after merge. Release approval and deployment require a passing, canonical version 1 Snapshot record for main's exact HEAD; missing, damaged, failed or stale evidence closes release. One process-owned Snapshot lock and atomic evidence in the canonical Git common directory cover path aliases, separate Git directories and linked worktrees; validation output stays in ignored Git storage. There is no owed list or revert detection.
|
|
910
|
+
|
|
911
|
+
**Upgrade notes** (every product): Products with a committed prototype definition must run a full studio Snapshot on current main before release; old gate records no longer count. Workbench `Start` callbacks must handle `CommandSpec.program: 'shell'` (`args[0]` is the declared command), forward `environment`, and set `APE_SNAPSHOT_VALIDATION_COMMIT` from `validationCommit` for validation children. The built-in runner does this.
|
|
912
|
+
|
|
913
|
+
- **Studio (FU30):** The brand card uses the product's title and DESIGN.md voice, omits an absent voice, and names the preset only as its base beneath the title.
|
|
914
|
+
|
|
915
|
+
## v0.8.9 (2026-11-07)
|
|
916
|
+
|
|
917
|
+
- **What 0.8.9 holds:** the 0.8.8 re-audit's five P0s. The studio's loop now runs from a new plan to Start the build with no restart and no workaround.
|
|
918
|
+
- The studio learns a plan written after it started (FU22). The brand approval signs the product's own theme, and a person sees the colors they sign (FU23). Autopilot approves the prototype the page shows, after a fresh snapshot (FU24). A prototype approval is on main before Start the build (FU25). A change reads Done only once its own commits are on main (FU26).
|
|
919
|
+
- Also: `ape upgrade` reads every upgrade note (FU21), and two admin-shell tests stop racing under load (FU27).
|
|
920
|
+
|
|
921
|
+
- **Studio (FU24):** Autopilot approves the prototype of the change the Prototype page shows, after a fresh full snapshot passes in that run. An unknown or ambiguous change, dev servers that are down, or a failed snapshot asks the sender, with the reason. Stop cancels a pending snapshot. An ordinary Stop keeps the runner's default signal.
|
|
922
|
+
|
|
923
|
+
- **Studio (FU25):** Prototype approvals save only their record on main in the approver’s name, preserving agent attribution; a failed save restores the record, and Start the build asks to approve again when main lacks it.
|
|
924
|
+
|
|
925
|
+
- **Studio (FU26):** Work marks a change done only when its branch tip entered main through a merge; fresh branches and hand fast-forwards stay started.
|
|
926
|
+
|
|
927
|
+
- **Studio (FU22):** runs learn changes and seed scenarios added after startup, refreshing the plan once for an unknown id without restarting `ape ui`; hosted studios re-ask their own plan function.
|
|
928
|
+
|
|
929
|
+
- **CLI (FU21):** `ape upgrade` reads indented and bulleted upgrade notes with their feature scopes, stopping before the surrounding list resumes; a test guards every release's scoped notes against unread formats.
|
|
930
|
+
|
|
931
|
+
- **Studio (FU23):** Brand approvals sign the product's own theme: its resolved `design/theme.ts` tokens, the source text of `theme.ts` and the files it imports inside `design/`, and `design/DESIGN.md`. Editing any of them voids the approval, and the card says why.
|
|
932
|
+
- The card and the previews show the product's current colors without a restart. The theme is resolved once per source change, never per poll. The card names its base ("from Neutral").
|
|
933
|
+
- Approve is refused when the colors the card showed are no longer current: "The colors changed. Look again, then approve."
|
|
934
|
+
- Plan facts add the optional fields `brandChanged`, `themeColors` and `themeFingerprint`.
|
|
935
|
+
|
|
936
|
+
**Upgrade notes** (every product): the brand approve body (`brandApprovalBody`) now requires `fingerprint`, the `themeFingerprint` the card showed. A product or host that posts brand approvals itself must send it; without it, or with a stale one, the request is refused with nothing written. Brands approved before 0.8.9 no longer hold: approve them again.
|
|
937
|
+
|
|
938
|
+
## v0.8.8 (2026-11-07)
|
|
939
|
+
|
|
940
|
+
- **What 0.8.8 holds:** the studio's UX audit, built as drawn and approved.
|
|
941
|
+
- The chat: the composer keeps your words and says why a send waits (U1). Its lines show Markdown, one quiet line per tool call, refused calls and the time a turn took (U11), and Stop, a stuck turn, failures with Details and a queued message work as drawn (U12).
|
|
942
|
+
- The pages: steps say only what is true (U3), the dev server and previews (U5), plain words after a restart (U8), Save this step on your click (U10), the plan files read as written (U4), Brief, Plan and Journeys (U13), and Brand and Prototype (U14).
|
|
943
|
+
- Turns outlive the studio, with one studio per product (U2). A linked product reads its BuffCore (U16). Agents say what they can do here (U6). There are `ape ui --lang` (U17), 44 px controls (U15) and a one-time code for an old tab (U18).
|
|
944
|
+
- The four automation levels (U19): at Autopilot the studio takes the loop's pre-production choices for you, marked as the agent's, and ships stay yours.
|
|
945
|
+
- Also: `ape add` puts the dependency back when its install fails (BR61, BuffApe's request), `ape create` checks its port block (FU16), `change trailers` without `origin/main` (FU17), the Dev server's process names (FU18), the doors check's structured keys (D14, BuffApe's request), and Biome skipping the CLI tests' throwaway folders (FU19).
|
|
946
|
+
|
|
947
|
+
- **Extensions (D14, BuffApe's request):** `ape check compatible --json` lists the doors check's findings as `doorProblems`, each action key with its problem code. A host no longer parses the text. The text output is unchanged, and the field is additive and absent when the check is `not yet`.
|
|
948
|
+
|
|
949
|
+
- **Studio (U19):** Autopilot saves completed pre-production steps, approves brands and prototype versions as the agent for the sender, and merges finished changes through the person's existing checks and rights. Choices can be changed and reopen in the next session with their screen; automatic merges show a copyable revert command. Pending level downgrades apply immediately; upgrades wait for the person's level-only Studio Save commit on main. Unknown identity, settings, policy or checks ask the person. Automatic merges hold settings, protected paths and their rename, case and link aliases. Release, money, business-plan and named-person approvals require the person; Autopilot never deploys. Every agent's file tools deny edits to `plan/agents.md`; coding, tests and fixes may still commit inside their change worktrees.
|
|
950
|
+
|
|
951
|
+
**Upgrade notes** (every product): preserve optional signature `agent` and display the agent's choice for `by`, saying "for you" only for a matching viewer. Use `approvalHolds` rather than counting signatures; agent-marked release and money records are invalid, and business plans reject agent signatures. Existing signatures without `agent` still parse.
|
|
952
|
+
- **Contracts (`approvals.ts`, U19):** additive `isAgentChoice` identifies replaceable unruled all-agent studio choices; a person's own approvals stay immutable.
|
|
953
|
+
- **Contracts (`workbench-autopilot.ts`, U19):** additive choice schemas carry step, agent, person, time, commit, optional prototype version/screen and an automatic merge's exact revert command.
|
|
954
|
+
- **Contracts (`workbench-work.ts`, U19):** optional `work.autopilot` preserves those facts across studio sessions; older producers and stored facts still parse.
|
|
955
|
+
- **Contracts (`workbench.ts`, U19):** exports the choice schemas and types.
|
|
956
|
+
|
|
957
|
+
**Upgrade notes** (every product): tolerate optional work facts. Revert text is for a person to copy, with no new action endpoint.
|
|
958
|
+
|
|
959
|
+
- Studio approved Auto brand choices explain why they are locked; comment Send and comparison Close explain their own disabled states. Brand and Prototype use the approved D2 English and Spanish copy.
|
|
960
|
+
|
|
961
|
+
- Studio Brand and Prototype follow the approved D2 design: save before signing, approval details, file previews and action feedback, a full-width canvas toolbar, and contained page scrolling.
|
|
962
|
+
|
|
963
|
+
- **Studio (U12 fixes):** Stop aborts on unmount and ignores late completions; its failure notice survives successful polling. Queued text sends only after the same turn ends successfully, and drafts survive a studio remount in memory with dispatch cancelled. Answer in chat selects the phone's Agent tab before focusing its composer. Sending's regression test controls polling with fake timers.
|
|
964
|
+
|
|
965
|
+
- **Studio (U12 follow-up):** Answer in chat focuses the Brief's composer with its question without sending. Manual chat and studio refreshes now share polling's abort signal, so unmounting cancels pending reads and prevents later refreshes. Stop confirmation survives the initial history arriving.
|
|
966
|
+
|
|
967
|
+
- **Studio (U12, D1):** Working has elapsed time and Stop; an unknown agent requires an explicit Clear this turn confirmation. Chat marks Sending until storage, queues one message with Enter while a turn runs, and retains drafts after failures or navigation. Failures expose Details and retry; permission notices offer retry or continuing without the read; unready agents explain why Send waits and offer Agents. Built control scenes carry their samples in props.
|
|
968
|
+
- **Workbench (U16, UX-006):** linked products' Claude and Codex file tools can read their BuffCore checkout's `packages/` folder, with edits, comments and secret reads denied. Claude uses a Read rule; Codex scans existing secrets, including dot-folders, once per launch. Invalid, network or mixed-checkout links add no access. The turn prompt names the real checkout path because Claude refuses reads through the product's links. `ape link` recommends a separate BuffCore checkout or worktree because product commands can change its packages; file-tool permissions do not contain commands. OpenCode's config integration remains pending.
|
|
969
|
+
|
|
970
|
+
- **Workbench (U6 fixes):** allowed CLI rate-limit events no longer turn unrelated failures into rate-limit sentences or supply their reset time. Past reset timestamps remain as reported by the CLI. The footer marks a saved Codex default that needs setup, and the Windows setup link opens separately with the studio's outside-link protection.
|
|
971
|
+
|
|
972
|
+
- **Workbench (U6, UX-022/043/048):** Windows Codex discovery adds the `setup` state until its configuration confirms an elevated sandbox; Agents explains that setup and WSL, keeps saved choices with a note, and excludes unconfigured Codex from new assignments. State readers must handle the additive `setup` value. Agent rate-limit failures show a supplied reset time in the studio's language. A view test proves every work select already has its work's accessible name.
|
|
973
|
+
|
|
974
|
+
- Studio planning can save when the file preview is unavailable; text questions wait for the person's answer, writing indicators follow the running step, hosted previews use the viewer, and planning scenes retain their approved data in snapshot props.
|
|
975
|
+
|
|
976
|
+
- Studio Brief, Plan and Journeys use the approved planning pages: Save this step names its files and saved commit, waits for writing, and gates the next step; open questions answer in chat, changes open read only, and empty Journeys starts with “Write the journeys”. Optional plan facts add change file/steps/done and the exact unsaved planning files; older producers remain valid.
|
|
977
|
+
|
|
978
|
+
- **Studio (U11 scenes):** built panel scenes carry their sample lines in props so the pseudo-language check recognizes their data. The permission notice adds the approved instruction before its JSON in English and Spanish.
|
|
979
|
+
|
|
980
|
+
- **Studio (U11 fixes):** CLI refusal marks use refusal facts, so ordinary command output and file permission errors do not get a lock or increase the refused-call count. Claude permission notices name an absolute folder. A file-change call keeps one tool line even when it finishes after another message.
|
|
981
|
+
Windows PowerShell and the other CLI shell names show their command; file paths preserve ordinary long names, stay relative inside the product and absolute outside, and permission notices use the requested file's true directory while masking known token formats.
|
|
982
|
+
Only turns that launch an agent get an end caption; a refusal before launch keeps its own final sentence.
|
|
983
|
+
|
|
984
|
+
- **Studio (U11, D1; UX-006/011/012/013/014/015/033/035/050/045):** agent Markdown renders in its bubble; tool calls use translated quiet lines, relative paths, commands, folded reads and refusal marks. Claude Code's refused reads outside the product name the setting to change outside the studio; the studio grants nothing. Each turn ends with studio-measured time and refused-call counts. Chat follows new lines until the person scrolls up, keeps authors and personal line breaks, and shows the same-agent warning as a notice. Chat messages add optional `tool`, `permission` and `end` facts; older stored chats need no migration. Internal tool events add optional `id`, `verb`, `targets`, `refused`, plus a `refused` event identifying its call.
|
|
985
|
+
|
|
986
|
+
**Upgrade notes** (hosts using `ChatEngine`): await `engine.ready` before serving the studio, keep one engine per product per process, and call `engine.shutdown()` to release its owner lock. The `lock` option is no longer accepted; ownership bypasses live only in test code.
|
|
987
|
+
|
|
988
|
+
- **Studio (UX-007, ownership):** one studio owns each product through `.ape/studio.json`; another live studio is refused before chat recovery, and a proven stale owner is replaced atomically. Unknown ownership names the manual way out: close the other studio, then delete that file.
|
|
989
|
+
|
|
990
|
+
- **Studio (UX-007, Windows shims):** known npm shims launch their target directly. Other shims record the real agent child and its wrapper separately, so a wrapper dying in a studio crash does not hide a surviving agent or free its working tree. Stop and recovery re-prove each process before stopping its tree.
|
|
991
|
+
|
|
992
|
+
- **Studio (UX-007):** turns record their process identity under `.ape/chats/`. Restarting after a crash stops a proven orphan's process tree; asynchronous queries use Windows CIM dates, Linux boot IDs and macOS UTC start times. Unknown facts or temporary read errors keep the tree reserved until a successful retry; the studio then names the chat that holds it, and the way out is to close that agent and delete its `.ape/chats/<id>/process.json`. Damaged JSON or process fields hold the tree until that same manual cleanup or an eligible confirmed Stop; stopping during launch prevents an agent starting after Stop or shutdown.
|
|
993
|
+
- **Studio (FU20):** an interrupted send keeps its sentence ("The studio isn't answering. Is ape ui still running?") under the chat until a later send to it succeeds, instead of vanishing at the next poll. The composer test that failed under load now passes at any polling speed.
|
|
994
|
+
- **Studio (U18, UX-021b):** each local `ape ui` start prints a one-use code for an old tab to exchange for the new run's token, within five minutes. Five wrong tries disable it until restart; the terminal announces use or disablement. The exchange requires a same-origin JSON POST, remains behind the local Host guard, and is absent in hosted mode. Only a local-token 403 offers the approved code field; rights and hosted refusals do not. The code stays in memory and the terminal, never in files, child environments, API answers or browser storage. The workbench contract adds `/api/code`, its body and token reply schemas, and a `local-token` refusal reason; existing token-bearing addresses keep working.
|
|
995
|
+
- **Workbench (U4, UX-016/017/018/036/041):** planning pages read brief Markdown as plain words and lists, keep wrapped items together, show journey steps and agent display names, and use neutral B2B wording in English and Spanish. Plan facts accept optional `journeys[].steps`, keyed by journey name; older facts need no changes.
|
|
996
|
+
|
|
997
|
+
- **Studio (U17):** `ape ui --lang en|es` chooses the local studio and terminal language; without it, the browser and terminal environment keep their choices. The page sets `<html lang>` to its studio language. Hosts may pass `locale` to `mountStudio` or set their page's language when using the bundled entry.
|
|
998
|
+
|
|
999
|
+
- **Themes (U15, UX-047):** small controls in Neutral and Soft now use the theme's touch target (44 px), including the studio and console's small buttons, icon buttons, selects and switches. Scene markup and behavior stay the same.
|
|
1000
|
+
|
|
1001
|
+
**Upgrade notes** (every product): dense screens that inherit `control-sm` grow from 36 px on Neutral or 40 px on Soft to 44 px. To keep the earlier size, set `size: { 'control-sm': 36 }` (Neutral) or `size: { 'control-sm': 40 }` (Soft) in your own `extendTheme` definition. Existing product overrides keep their values; app buttons still enforce the theme's touch target.
|
|
1002
|
+
|
|
1003
|
+
- **Workbench (U8, UX-021):** a tab the studio no longer accepts says why (usually a restart of `pnpm ape ui`) and what to do: open the address it printed last, or run it again. A session that survives a restart is a design decision still open: a reusable token on disk could be read by the agents, which run as the same user.
|
|
1004
|
+
|
|
1005
|
+
- **CLI (BR61):** a failed `ape add` install restores the API's package.json and lockfile, reports pnpm's own error, and puts the dependency back when a successful install leaves no package folder.
|
|
1006
|
+
|
|
1007
|
+
- **CLI (UX-051):** `ape create` prints ports without grouping in every language and shows a plain source-link command for an ordinary sibling checkout; other layouts and shell-special paths keep the portable command that pins the exact checkout.
|
|
1008
|
+
|
|
1009
|
+
- **CLI (FU16):** `ape create` checks all six template ports before writing, picks the first free block from 44 to 64 by default, and refuses an occupied explicit `--block` with its taken ports and a free-block suggestion when available. This also applies to `--here` and extension starts; JSON includes the selected block and RustFS port.
|
|
1010
|
+
|
|
1011
|
+
- **Changes (FU17):** `pnpm ape change trailers` with no range checks since `origin/main`, or since `main` in a product without a remote, where before it failed on a bad revision. With neither, it says to name a range.
|
|
1012
|
+
|
|
1013
|
+
- **Workbench (FU18):** the Dev server page names the app, the admin console and the API, in English and Spanish, where it showed their string keys (`workbench.stack.app`).
|
|
1014
|
+
|
|
1015
|
+
- **Studio (U1):** drafts survive refused sends, Send waits during the open chat's turn, and messages echo immediately without doubling after polling. The composer grows with its text, names where files are written in English and Spanish, and keeps busy notices inside the frame until the chat stops. Page addresses (`#/plan`) survive reloads; a first visit opens the rail's current step. Shared `TextArea` gains opt-in `autoGrow`; its default stays unchanged.
|
|
1016
|
+
|
|
1017
|
+
- **Workbench (U3):** a step's Next waits for its loop turn to succeed; stopped and failed turns keep their step current. Brand's Start from this one starts a turn to apply the direction, and Approve waits until the optional `plan.theme` fact read from `design/theme.ts` matches it. The rail includes all eight steps; Build opens Work.
|
|
1018
|
+
|
|
1019
|
+
- **Workbench (U5, UX-020/029/049):** Dev server recognizes servers left from an earlier start and stops them through this checkout's `ape stop`; held ports and port clashes name the ports and ask to stop the earlier servers first. Previews wait for the app to answer before loading. Docker reports the product's Compose containers, with Unknown on failed reads; migrations and sample data without a studio result say “Not run from the studio”. The stack contract adds optional `earlierStart`, per-server `answers` and `docker` facts; existing stack states stay compatible.
|
|
1020
|
+
|
|
1021
|
+
- **Workbench (U10):** saving a loop step commits its files on main with product hooks. Planning saves own `plan/`, apart from what the planning turn can't write; Brand and Prototype show all non-ignored changes outside `.ape/` and require a matching preview before saving. Record version saves first and waits when saving is refused. A commit whose index refresh fails is still reported, with how to recover. Git stops after ten minutes for a commit and its hooks, two for anything else. Save notices are translated, with correct singular and plural forms. Hosted saves name the viewer; agents gain no save or commit permission.
|
|
1022
|
+
|
|
1023
|
+
## v0.8.7 (2026-11-06)
|
|
1024
|
+
|
|
1025
|
+
- **What 0.8.7 holds:** the generated egress proxy no longer crashes when a refused client resets (BR60, BuffApe's urgent request; every product with `infra/agent/` runs `pnpm ape agents write`). The studio's Brand step shows its previews and voices, and a step stays current while its turn runs (SW3, two reported defects, proven with real turns on Windows). The studio's served controls work, with a person's signed release before a deploy (SW2). A fixes turn can merge main, and a change's worktree installs its packages from this computer's store before its first turn (FU14). Machines' routine reports skip the automatic audit row (BR51), and test helpers take the storage bucket like the other services (BR59).
|
|
1026
|
+
|
|
1027
|
+
- **Agents (BR60, BuffApe's request):** the allowlist proxy that `ape agents write` generates (`infra/agent/proxy.mjs`) outlives a client that resets, whether refused or mid-tunnel: the reset ends only that one connection. Before, a refused client's `ECONNRESET` crashed the proxy and dropped every connection through it, a streaming chat turn included.
|
|
1028
|
+
|
|
1029
|
+
**Upgrade notes** (every product with `infra/agent/`): run `pnpm ape agents write` and commit the new `infra/agent/proxy.mjs`; until then `pnpm lint` (`ape agents check`) names it. The next `pnpm ape agents run` starts the proxy with it; a proxy kept running elsewhere needs a restart to load it.
|
|
1030
|
+
|
|
1031
|
+
- **Workbench (SW3):** Brand cards show the starter directions' names, voices and sample lines in English and Spanish on the app's preview scene. The rail keeps a loop step current and un-checked while its turn runs.
|
|
1032
|
+
- **App shell (SW3):** `/_scene` without a key (or with an empty key) shows the app's preview scene: its first product scene, else the template's home, else its first app scene outside the design showcase.
|
|
1033
|
+
|
|
1034
|
+
- **Workbench (FU14):** Claude Code coding, tests and fixes chats allow exactly `git merge main` in Bash and PowerShell, so a conflicted catch-up's fixes chat can resolve the merge. Flags and other refs don't match; a chain runs only when every part is allowed, so `git merge main; git push` is refused.
|
|
1035
|
+
- **Workbench (FU14):** a change's worktree installs the product's packages from this computer's store (`pnpm install --offline --frozen-lockfile --ignore-scripts --ignore-pnpmfile`, with a turn's environment) before its first turn, so the turn's own commit passes the product's hooks. pnpm downloads nothing and runs no scripts; a store missing a package stops the turn with a message naming the install, and an unfinished install is tried again.
|
|
1036
|
+
|
|
1037
|
+
- **Audit (BR51):** routes may mark routine reports `audit: 'none-for-machines'` to omit successful automatic machine audit rows. People's calls keep their audit behavior; refused or failed calls and explicit audit entries stay recorded. Start refuses the mark on actions or routes carrying sensitive kinds; `ape manifest` lists it.
|
|
1038
|
+
|
|
1039
|
+
- **Fixes (BR59, test bucket):** `testEnv` takes `APE_S3_BUCKET` the same way as the other test services: the environment, the repository's `.env`, then `.env.example`, with `buffcore` only inside BuffCore's repository. A product's test app no longer looks for a `buffcore` bucket on its own storage, so `/health` no longer reads storage down. The template's API test checks it.
|
|
1040
|
+
|
|
1041
|
+
**Upgrade notes** (every product): set `APE_S3_BUCKET` to the product's own bucket (the one `ape migrate` makes) in its environment, `.env` or `.env.example`; new products already name it in `.env.example`. Without it, the tests stop at once naming the setting.
|
|
1042
|
+
|
|
1043
|
+
- **Studio (SW2):** release signs the current commit before deploying; catch-up merges main into a clean change and opens fixes after an aborted conflict. Work groups by milestone or agent and can start the second clash chat. Agents shows each CLI's terminal sign-in and install instructions.
|
|
1044
|
+
|
|
1045
|
+
**Upgrade notes** (every product): studio deploys now require a person's release signature for the current commit. Products using `plan/approvals.md` may add a `release` rule naming the people allowed to sign; without a release rule the single-person default applies. A new commit needs a new signature. Hosted signers still need `approve:release`.
|
|
1046
|
+
|
|
1047
|
+
The signature guards the studio's Release button and deploy API. Terminal `ape deploy` and an MCP client's `server_deploy` (after its own confirmation) do not need it. A signature has no destination or use limit and holds for that commit until the next commit. Studio deploy holds the shared merge lock until its run ends. Catch-up conflict filenames appear only in the studio's quoted, capped refusal; the fixes chat receives a fixed instruction.
|
|
1048
|
+
|
|
1049
|
+
## v0.8.6 (2026-11-06)
|
|
1050
|
+
|
|
1051
|
+
- **What 0.8.6 holds:** the hosted studio is private by default (BR56a), and in the same release no studio agent reads or writes others' comments (FU13), proven with real Claude Code turns on Windows. Payments' subscriptions hold several prices with quantities (BR54), and test helpers never fall back to BuffCore's dev services inside a product (BR58).
|
|
1052
|
+
|
|
1053
|
+
- **Security (BR56a):** the hosted studio is private by default. Additive `viewer.own` and `read:chats`, `read:agents`, `read:runs` rights let hosts name who reads private fields. A host naming neither keeps writes as before while reviewers now see only readable fields; a host that gives a reviewer `rights: 'all'` gives them the three read rights too, though never what only the seat's person reads. Reviewer comments live in `.ape/comments/` and never enter chat prompts, including legacy chat messages with `by`.
|
|
1054
|
+
|
|
1055
|
+
**Upgrade notes** (every product): a studio host sets `viewer.own: true` for the seat's own person, or grants the named read rights for others. Reviewer comments use `POST /api/comments { page, change?, text }`; `POST /api/chats/:id/comments` is now own-only and still requires `comment`. Local `ape ui` keeps all reads and writes.
|
|
1056
|
+
|
|
1057
|
+
- **Security (FU13):** every studio chat turn denies reads and writes of others' comments in `.ape/comments/` through Claude Code, Codex and OpenCode's file tools, including planning, loop and resumed turns. Codex preserves design and validation's read-only entries and the product's workspace deny table. In OpenCode, these denies bind its read and edit tools; its shell remains open, as before.
|
|
1058
|
+
|
|
1059
|
+
- **Payments (BR54):** a subscription can hold a base plan and add-ons, each with a quantity. Checkout also takes `{ items }`; `change_items` changes them through Stripe for the account's Owner or a role with the right, and `payments.item_changed` records each reported difference.
|
|
1060
|
+
|
|
1061
|
+
**Upgrade notes** (`payments`): run migration `0003-subscription-items` to add the `items` column. Subscription reads gain `items`, with legacy rows read as one item of quantity 1 until Stripe reports them again. Checkout also takes `{ items }`; today's `{ plan }` and `plan` reads keep working. A product that builds typed `Billing` or `Subscription` data itself (prototype data, test fixtures) adds `items`, for example `[{ plan, quantity: 1 }]`. Once any plan has `quantity` or `addOn`, Stripe's portal no longer switches plans (switching goes through `change_items`, where the rules hold); it keeps the card, cancelling and receipts. A subscription edited in Stripe's dashboard against the rules is recorded as reported and shown on Operations › Status (`payments.items`), never corrected.
|
|
1062
|
+
|
|
1063
|
+
- **Fixes (BR58, test services):** `createTestDatabase` and `testEnv` use the environment, repository `.env`, then `.env.example`; only BuffCore uses its dev defaults. Missing settings fail by name. A first-call sweep clears only BuffCore's exact timestamped test names older than a day and idle legacy names; other names stay and failed drops are skipped.
|
|
1064
|
+
|
|
1065
|
+
**Upgrade notes** (every product): tests use the product's services or fail naming the setting. Products relying on BuffCore's dev services must set `DATABASE_URL` and `REDIS_URL` in the environment or `.env`; `testEnv` also needs RustFS settings there or in `.env.example`.
|
|
1066
|
+
|
|
1067
|
+
## v0.8.5 (2026-11-05)
|
|
1068
|
+
|
|
1069
|
+
- **Proven with real turns before release (SW1c):**
|
|
1070
|
+
- On Windows, Claude Code 2.1.318 runs a planning turn's `pnpm ape change` through PowerShell, and refuses compound, piped and chained PowerShell commands under planning's rules.
|
|
1071
|
+
- On Ubuntu 24.04, Codex 0.166's sandbox refusal gets its own sentence.
|
|
1072
|
+
- The stranger test passes with the strict peer install (BR57).
|
|
1073
|
+
|
|
1074
|
+
- **Fixes (SW1c):** Claude Code's studio command rules cover PowerShell as well as Bash; planning and loop prompts and the planning skill explain their two allowed commands and reading product files. Codex sandbox failures name the elevated Windows setup or WSL, and explain Linux user-namespace refusals, in English and Spanish; Details keeps the original CLI text with existing redaction.
|
|
1075
|
+
|
|
1076
|
+
- **Fixes (BR57, required peers):** every published package declares the required peers of its own dependencies:
|
|
1077
|
+
- identity's Better Auth helpers;
|
|
1078
|
+
- server's OpenAPI types;
|
|
1079
|
+
- the Anthropic SDK that the agent SDK needs.
|
|
1080
|
+
|
|
1081
|
+
So nothing rests on hoisting once `auto-install-peers=false`. i18n and sdk mark React optional, since only their `./react` entries use it, so a server tree holds no React. New products declare React Native's Metro config peer (`@react-native/metro-config` 0.86.3). A workspace test checks the declarations offline, and the stranger test's install is strict about peers.
|
|
1082
|
+
|
|
1083
|
+
**Upgrade notes** (every product): remove any of `@better-auth/utils`, `@better-fetch/fetch`, `better-call`, `jose`, `nanostores`, `openapi-types` and `@anthropic-ai/sdk` that you declared only for BuffCore. A product with an app adds `@react-native/metro-config` 0.86.3 to the dev dependencies of each package that has `react-native` (in the template: the root, `apps/admin` and `apps/app`). Then run `pnpm install`.
|
|
1084
|
+
|
|
1085
|
+
## v0.8.4 (2026-11-05)
|
|
1086
|
+
|
|
1087
|
+
- **What 0.8.4 proves, and what waits on real turns (SW1b-1).**
|
|
1088
|
+
- **Proven by tests:**
|
|
1089
|
+
- uncontained studio planning and loop turns run only in Claude Code;
|
|
1090
|
+
- they pre-approve only `pnpm ape change` and `pnpm ape change new`, so `pnpm ape deploy` is never approved;
|
|
1091
|
+
- they edit only under `plan/`, never `plan/agents.md`;
|
|
1092
|
+
- a product can't make the studio contained.
|
|
1093
|
+
- **Proven on a Windows PC:** with the product's deny-read rules loaded, Codex 0.166 refuses to start in its unelevated sandbox, and the studio names that refusal in one sentence.
|
|
1094
|
+
- **Still to prove with real turns (any findings go into 0.8.5):**
|
|
1095
|
+
- Claude Code writing `plan/brief.md` on Windows and on Linux;
|
|
1096
|
+
- Codex writing it on Linux;
|
|
1097
|
+
- a real Claude Code turn refusing `pnpm ape deploy`;
|
|
1098
|
+
- no `ape mcp` process during a turn;
|
|
1099
|
+
- `change_check` asking a person first.
|
|
1100
|
+
- **Codex on Windows** stays a documented limit (for now, Claude Code runs there). It can be set up two ways: Codex's elevated sandbox (a one-time admin setup), or Codex inside WSL.
|
|
1101
|
+
|
|
1102
|
+
- **Fixes (SW1b-1):** only Claude Code takes uncontained studio planning and loop turns, with dontAsk, session settings disabling hooks, scoped plan edits excluding agent settings, nested Claude folders, node_modules and Biome configuration, and only the two change commands pre-approved. A `.claude` folder anywhere under `plan/` refuses the turn with its path. Codex and OpenCode are refused for these works; Codex's unused planning folder overlay is removed. Other works keep their existing permissions: Codex trusts the canonical turn folder, retains the product's profile and network-off default, and disables its `ape` MCP server; Claude uses acceptEdits and all its turns exclude ambient MCP servers. Planning's `doneWhen` commands run later under a coding turn or the person, and coding worktrees use their committed agent settings. Design, validation and coding run editable code with the person's privileges; user-level allow rules still apply. Claude desktop discovery and platform installer hints work; failures explain known causes, redact and cap chat-message `detail` at 4,000 characters, and retain at most 64 KB of stderr/stdout diagnostics in memory. `change_check` is destructive and carries `anthropic/requiresUserInteraction` metadata for explicit approval. `ape agents run` is the contained path.
|
|
1103
|
+
|
|
1104
|
+
- **Fixes (SW1b-1c):** a host can assert `createUiServer({ contained: true })` only for its own isolated machine. The server carries this fact to turns and the studio state's new optional `contained` field, enabling every ready agent for every work and its Agents-page choices. Product inputs and local `ape ui` cannot enable it; uncontained planning stays Claude-only. Contained OpenCode retains explicit read denies with auto approval and disables its `ape` MCP server through a runtime config overlay. No agent bypass flags or protected container changes.
|
|
1105
|
+
|
|
1106
|
+
- **Fixes (SW1b-2):** Enter sends studio chat (Shift+Enter adds a newline; input composition never sends), empty loop steps wait without saved or authored claims, rail buttons have accessible names, and `ape create` makes the first commit with the person's Git identity or explains how to make it. Markdown, agent readiness and failure Details have drawn-only review scenes pending approval.
|
|
1107
|
+
|
|
1108
|
+
- **Security (BR53):** `ape check compatible` extracts candidate manifests and catalogs in a child with a minimal environment, a 30-second limit and a 1 MiB data cap; the parent validates the data and writes every verdict, ignoring candidate output. JSON adds `extraction: { exit, code, signal, sha256 }`, including the canonical manifest's SHA-256. Unavailable callbacks or schemas interrupting a contract stage are problems that refuse installation and signing; only skipped settings validation remains `not yet`. Grant and mark validation stay under the kernel contract; `ape add` and catalog signing use the same checks.
|
|
1109
|
+
Host context and all text inputs are captured before extraction; candidate writes cannot change their verdict. Entity marks, notification templates and settings-derived events survive extraction. Already composed packages load normally as trusted product code, including named exports; skipped-only reports omit `extraction`.
|
|
1110
|
+
|
|
1111
|
+
- **Security (BR53b):** live-value diagnostics quote every candidate-written name, showing control characters and Unicode line separators as `\u{…}` so they cannot forge report lines or terminal controls. CLI tests exclude every throwaway product's dot folder.
|
|
1112
|
+
|
|
1113
|
+
- **Fixes (BR53b):** live-value compatibility problems name the package, registry and entry or manifest stage and index, and field. Interrupted extension checks retain earlier problems and independent sensitive-data findings before the live-value problem; refused candidates remain refused.
|
|
1114
|
+
|
|
1115
|
+
- **Fixes (FU12, peer installation):** `ape create` writes `auto-install-peers=false` for every product, including products created from a checkout. Installs use the dependencies each surface declares, even when a registry drops optional-peer metadata.
|
|
1116
|
+
|
|
1117
|
+
- **Fixes (FU12):** app-shell and ui declare their app runtime peers optional, so adding payments, waitlist, feedback or affiliates to a server product does not auto-install React Native through their optional app entries. New products pin `expo-constants` 57.0.23, `@expo/metro-runtime` 57.0.18 and `@expo/log-box` 57.0.5 to satisfy Expo's peers.
|
|
1118
|
+
|
|
1119
|
+
**Upgrade notes** (every product): set `auto-install-peers=false` in the product's pnpm settings (`.npmrc` for the template's pnpm 9), then run `pnpm install`; it removes React Native from a server-only tree and stale BuffCore peers. Declare any peers the app needs in its own package rather than enabling peer auto-installation.
|
|
1120
|
+
|
|
1121
|
+
## v0.8.3 (2026-11-05)
|
|
1122
|
+
|
|
1123
|
+
Published to the lab registry from `631b1471` (tag `v0.8.3`).
|
|
1124
|
+
|
|
1125
|
+
- **Fixes (SW1):** the studio's loop steps send their exact button words through the destination page's chat, including starting a build for the approved change. Prototype device and journey choices work; served controls without an implementation are disabled. The admin shell's `Tabs` takes `disabled` (the design system's disabled state), and its `onChange` is optional.
|
|
1126
|
+
|
|
1127
|
+
- **Affiliates server (AFF1):** optional `@buffcore/affiliates` requires payments' paid lines and defaults to silent mode. Tagged links, signed 90-day cookies, attribution once at sign-up, published term snapshots, net commission/refund ledger, Owner-only monthly statements and manual payout review, plus privacy export/deletion. Identity adds the transactional `onSignup` hook; products register `affiliateRedirects` in their HTTP plugin for browser redirects. No affiliate screens, announcements or automated payments. The playground composes it, silent, and registers its link redirect in its own module (`modules/links`).
|
|
1128
|
+
|
|
1129
|
+
### Changed
|
|
1130
|
+
|
|
1131
|
+
- **Empty memberships (BR52, `identity`):** `leavePart` and `removePartRights` end a non-primary membership left with no role or rights. Their existing audit row and transactional `onMembershipChanged` notification include `ended: true`, and the person can be invited again.
|
|
1132
|
+
|
|
1133
|
+
**Upgrade notes** (`identity`): products that ended empty memberships themselves on `leave_part` or `remove_part_rights` can drop that code; `MembershipChange.ended` says when identity did it. An empty membership left by an earlier release stays until an account Owner removes it (`removeMember`).
|
|
1134
|
+
|
|
1135
|
+
## v0.8.2 (2026-11-05)
|
|
1136
|
+
|
|
1137
|
+
- **Paid bill lines (AFF0, `payments`):** invoices, renewals and one-off Checkout record typed lines that share only collected net, with tax separate and zero shares skipped. System events report paid lines and signed refund deltas; refunds and lost disputes split pro rata and failed refunds emit corrections. `paidLinesOf` and `paidLineOf` expose account-owned lines, included in privacy export and deletion. The additive server API `ModuleManifest.eventsFromSettings` derives declarations once at composition from validated settings (`ResolvedComposition.moduleEvents` holds each package's events, and `ape manifest` lists them); paid events declare configured types, while refund consumers read the original type from the line.
|
|
1138
|
+
|
|
1139
|
+
- **Fixes (FU11, 0.8.2):** `ape add` accepts BuffCore's own registry packages at the product's installed release without requiring published tests, packs from the repository root so npm reads its registry configuration, and unpacks with relative paths so GNU tar works on Windows.
|
|
1140
|
+
|
|
1141
|
+
- **Standalone skills pack (LK4):** five skills in `skills-pack/` cover planning, prototyping, building, verifying and shipping in any project, with optional BuffCore commands; install from the repository once it is public.
|
|
1142
|
+
|
|
1143
|
+
- **Launch kit (LK3):** adds the `create-buffcore` launcher for launch-day publication; `ape create` ends with the MCP/plugin offer and includes `agents` in its JSON result.
|
|
1144
|
+
|
|
1145
|
+
- **Claude Code plugin (LK2):** the `buffcore` marketplace plugin carries product skills and the product's `ape mcp`; install from the repository once public. The CLI's bundled skills now also exclude the repository-only `coordinate` skill.
|
|
1146
|
+
|
|
1147
|
+
**Upgrade notes** (`payments`): run `payments/0002-paid-lines`; optional `payments.lineTypes` maps Stripe lookup keys to types, defaulting to `plan`. `PaymentProvider` implementations supply invoice lines, invoice `amountPaid` and charged `tax`, payment dates, Checkout's invoice ID and cumulative refund/lost-dispute totals. `payments.line_refunded` carries `lineId`, signed net `amount` and `currency`; resolve the type with `paidLineOf(em, lineId)`. Existing static server event declarations keep working.
|
|
1148
|
+
|
|
1149
|
+
## v0.8.1 (2026-11-05)
|
|
1150
|
+
|
|
1151
|
+
- **Trusted proxies (BR49, v0.8.1):** products can name proxy IP addresses and CIDRs in `trustedProxies`; loopback stays trusted, unsafe values are refused, and limits, sign-in records and realtime upgrades use the resolved client address.
|
|
1152
|
+
|
|
1153
|
+
- **Test profile isolation (FU10, 0.8.1):** member profile reads, updates, new profile deletion requests and device access exclude test profiles, including legacy rows attached to an account. Account exports and deletion still cover every profile in the account; pending profile deletions and their cancellation still work.
|
|
1154
|
+
|
|
1155
|
+
- **Tests on shared stores (BR44):** the test kit falls back to a throwaway schema when Postgres refuses database creation, keeps Redis test prefixes beneath the product's prefix, and cleans up recorded keys without keyspace commands. Private stores keep using throwaway databases; no new setting is needed.
|
|
1156
|
+
|
|
1157
|
+
- **Server intake cleanup (FU8, 0.8.1):** `ape intake orphans` lists removed extensions' keys not yet revoked (expired keys count too); `ape intake revoke <extension>` explicitly revokes them as the system, each audited, refusing composed extensions and unknown names. `ape server revoke-intake <extension> <destination>` runs it in the running release image and explains a busy deploy lock. Deploy only warns after a healthy release: its check has a two-minute limit and never revokes or fails the deploy; JSON/MCP `warnings` carry extension/count pairs or `{ kind: 'intake-unchecked' }` with manual-check guidance when the result is unknown. Machine records stay out of human output, and connect loads only for intake actions.
|
|
1158
|
+
|
|
1159
|
+
- **Git hooks run on Linux and macOS (item 29):** BuffCore's `.githooks/pre-commit` and the product template's `commit-msg` and `pre-commit` are stored executable, so git no longer skips them there.
|
|
1160
|
+
|
|
1161
|
+
- **Phone layouts (LOOK, BR45):** an unsaved admin rail starts collapsed below 640 CSS px; saved choices still win and resizing leaves the choice alone. The studio's prototype Journeys column fills the page at phone width and keeps its desktop cap. The playground adds `rail-phone-unsaved`.
|
|
1162
|
+
|
|
1163
|
+
**Upgrade notes** (every product): `testEnv()` now reads `APE_REDIS_PREFIX`; product tests that build an app directly from it must use an isolated test prefix beneath the product's prefix, as the harness does. A test kit's explicit prefix is now the parent of its random test prefix; use the returned `app.keyPrefix` for key and channel assertions. `createTestApp({ env: { DATABASE_URL } })` names the server on which the harness creates its throwaway database or schema. New `@buffcore/server/testing` exports are `trackTestRedis`, `testRedisKeys` and `clearTestRedis`. On a shared server, `citext` and `pg_trgm` must already be in `public`, or the database role must be able to create them there; setup refuses an existing extension in another schema and names that schema in its error.
|
|
1164
|
+
|
|
1165
|
+
**Upgrade notes** (every product): Products behind a reverse proxy on another machine set `trustedProxies: ['<proxy IP or CIDR>']` in `buffcore.config.ts` so each client has its own address limits. Local proxies keep working without a change.
|
|
1166
|
+
|
|
1167
|
+
- Trusted proxy ranges must be IPv4 `/8` or narrower, or IPv6 `/32` or narrower; replace any wider range with the addresses or networks of the actual proxies.
|
|
1168
|
+
|
|
1169
|
+
**Upgrade notes** (`profiles`, FU10): `seedProfile` now refuses `isTest: true` with a non-null `accountId`; use `accountId: null` for synthetic test profiles. `findProfiles` and `listProfiles` with an `accountId` now exclude test profiles. Previews now show only accountless test profiles; operator creation remains available. Pending profile deletion emails and report replies retain the profile's name, including for legacy test profiles in an account. Additive `PrivacySubjectDef.name(ctx, id)` separates names from eligibility for new deletion requests; definitions without it retain their `alone.find` fallback.
|
|
1170
|
+
|
|
1171
|
+
## v0.8.0 (2026-11-04)
|
|
1172
|
+
|
|
1173
|
+
- **Release fixes:** the packages build again. Two exported values name their types for declaration output, and the studio's `fullscreen.ts` is `fsViews.ts`, so it no longer collides with `FullScreen.tsx` on case-insensitive disks. A new product's `apps/app/package.json` ends with one newline, so the product's first `pnpm lint` passes. The founder tests get 30 s to boot their app. Published from `2d1d13e2`.
|
|
1174
|
+
|
|
1175
|
+
- **Founder example (AO6):** the playground's intake form and synthetic members demonstrate an assistant campaign approved once and an outside MCP SDK client's email action held in Approvals. Discovery reports personal email consent, the send checks it again and respects preferences, and fixture tests cover the recipients and audit. A standalone eval can use a live model with explicit opt-in; both modes keep email in a synthetic test outbox. Run instructions are in FEATURES.md's assistant section.
|
|
1176
|
+
|
|
1177
|
+
- **Profiles closed to extensions (FU4):** `ape check boundaries` and `ape check compatible` refuse extension imports of `listProfiles`, `findProfiles`, `seedProfile` and `PROFILES_SQL` from `@buffcore/modules/profiles`, which bypass the extension's `reads` grant.
|
|
1178
|
+
|
|
1179
|
+
- **Plans approved once (AO5):** operators turn an assistant draft into a plan, edit a step through labelled fields (the raw input behind Advanced) or remove it, and approve once, with no confirm step. Steps run in order as that operator through the action pipeline, checked again before each (reach, rights, data class, `allowOut`), stop on failure or lost reach, and audit each outcome in a whole sentence. Always-human and held actions wait in Approvals before Go on; retries never repeat an attempted step. A step’s time stays within the ask’s 30 days, and plans still running or waiting stay until they end. The asker can stop an approved plan: a running action finishes, a held call is withdrawn (Approvals shows it declined), and later steps stay unrun. Recipient counts make no consent claim, and costs stay unknown without measured or declared data. An operator’s export holds their plan facts (approval IDs and times, each step’s action and state), never inputs.
|
|
1180
|
+
|
|
1181
|
+
- **Settings responses at machine doors (FU7):** at start, profiles refuses any composed package’s `mcp` route whose response schema contains a `settings` key unless `carries` includes the configured profile settings kind. Nested responses count; closed routes and unmarked settings are unchanged.
|
|
1182
|
+
|
|
1183
|
+
- **Public HTTPS webhooks (FU6):** `sendWebhook` refuses a plain-HTTP URL outside development before queueing (`validation_failed`, the reason in `details.url`). Each delivery resolves and checks its destination, then connects only to the checked public addresses (falling back within that set) with the original Host, TLS name and certificate verification, on any HTTPS port. Non-public destinations are permanent delivery refusals, logged with a safe reason and the hostname only; a DNS failure is retried. Development alone allows HTTP to `localhost` and `127.0.0.1`. `HttpRequest.address` (one IP or several) adds address pinning to `@buffcore/server`; existing callers keep working.
|
|
1184
|
+
|
|
1185
|
+
- **Extension removal (FU5):** `ape remove` revokes the extension's intake keys in the development database before removing its grant and dependencies, auditing each revocation; re-adding it restores no key there. A server's intake keys stay in its own database until a server removal path exists; connect refuses them while the extension isn't composed. Cleanup also applies to cloud-added extensions removed by `ape export`. Additive helper: `revokeExtensionIntakeKeys(ctx, extension)` from `@buffcore/modules/connect`, which `ape remove` and `ape export` call as the system (no Owner check), with the feature on or off.
|
|
1186
|
+
|
|
1187
|
+
- **Profile settings' sensitive kind (FU3):** optional `ProfilesConfig.settingsKind` marks the whole settings value on `Profile` and `PROFILES_SQL` rows, and settings-bearing profile routes declare it in `carries`. Logs and error reports redact settings; exports keep them, deletion removes them and named reads stay audited. The playground uses `content`.
|
|
1188
|
+
|
|
1189
|
+
- **Extension intake keys and signed deliveries (SE3):** `createIntakeKey` / `revokeIntakeKey` scope product-held or account-held machine keys to one extension's `intake: true` routes, listed by `ape check compatible`. `sendWebhook` queues encrypted requests, signs Standard Webhooks deliveries through the extension's allowed hosts, retries with queue backoff and records metadata only. Only a console Owner (no machine door, no preview, two-step sign-in done) creates, lists (`listIntakeKeys`) or revokes intake keys; the scope is the kernel field `Actor.intakeOf`, checked against the action's module by every door (`runAction`, `can`, `reachableRoutes`), and part moves leave intake keys alone. Webhook secrets decode to 24 to 64 bytes; deliveries refuse redirects (`HttpRequest.redirect: 'error'`) and their records go after 30 days. `@buffcore/server` exports `checkAccess` and `signWebhook`; `RouteDef.intake` marks receiving routes. Rotating `APE_ENCRYPTION_KEY` makes queued deliveries unreadable, and they fail as any delivery does.
|
|
1190
|
+
|
|
1191
|
+
- **The studio’s drawn answers (D6):** a host’s viewer sees an action they lack the right for greyed, naming the right it needs, and a reviewer sees only review and comment; the composer attaches an image or a voice note; an approval by a rule shows who signed and who is still to, by its deadline, without the single-signer badge; a prototype comment keeps its screen, journey step and area in the comment card, said in plain words with the raw fields behind "Change". No upgrade steps.
|
|
1192
|
+
|
|
1193
|
+
- **Transactional notifications (OB4):** `notify` writes deliveries and send jobs through `ctx.em`, and flushes it: changes the caller hasn’t flushed yet are written at the `notify` call, even if the handler throws afterwards (a request’s `ctx.em` has no transaction); failed jobs roll both back, including `direct` sends deferred until commit. A kind's `text` accepts separate `push` and `inApp` renderers in each recipient's language; a single renderer still serves both, and code that calls a kind’s `text` directly handles both forms. The existing `NotificationKindDef` from `@buffcore/server` accepts both shapes additively; products need no import change.
|
|
1194
|
+
- **Profile reads and seeds (OB4):** `FoundProfile` includes a deep copy of settings; `listProfiles` filters by account, test status and live status without IDs. `PROFILES_SQL.live` adds display name, settings and test status; `.all` keeps profiles awaiting deletion. `seedProfile(em, input, app)` creates or updates synthetic seed data using the app's settings schema and display prefix. Seeds refuse ownership/test mismatches and require a live account for new profiles unless they are accountless tests. SQL display names retain their contact redaction. These exports are additive.
|
|
1195
|
+
- **Session-list SQL reads (OB4):** realtime sessions expose ID, profile ID and outcome; the new log relation exposes session ID, sequence, time and message kind only. AI calls add ID, token counts, fallback status and checks. Turn words, payloads and AI inputs remain private; products keep session-specific fields in their own tables and call metadata in `refs`.
|
|
1196
|
+
- **TimeSelect range (OB4):** optional inclusive `min` and `max` (`HH:MM`) restrict the sheet's choices while preserving its step grid. Unpadded hours work; an out-of-range stored value stays visible with no choice selected, and reversed bounds offer no choices. Existing controls keep the full day.
|
|
1197
|
+
|
|
1198
|
+
- **Move a part to another account (BR48):** an account Owner offers one movable part by email; the recipient accepts once into a different account they own. The part's `moveTo`, each module's `onMovePart` answer and source-right removal run in one transaction; pending source invitations naming the part are revoked. Acceptance is audited in both accounts and calls `onPartMoved`; connect revokes the part's machine keys, each audited in the old account naming the move. Person-only offer/revoke/accept functions and routes, `emailSent: boolean` on offer responses, the `partOfferLink` hook for a product's accept page, the new `identity.list_part_offers` right (in every account's rights list and the MCP tools) for a read-only listing without contacts or credentials, English/Spanish email and errors, privacy lifecycle and the playground note are included. Profile notes and profile images cannot move; a member note takes its image upload only when no other note uses it. Additive APIs: optional `PartDef.checkMove(ctx, id)` and uploads' `moveUpload(em, id, fromAccountId, toAccountId)` (profile uploads are refused) and `findUpload(em, id, { lock: true })` for transactional attachment checks.
|
|
1199
|
+
|
|
1200
|
+
- **In-app assistant (AO4):** the optional `assistant` feature gives operators a read-only agent and a checked, non-executing plan draft. Reads and steps must fit both the personal purpose class and `connect.allowOut`; asks remain private to their asker, expire after 30 days and export only the question and metadata.
|
|
1201
|
+
|
|
1202
|
+
- **Account invitations (BR47):** identity invites a person by email with an optional account role and rights on one registered part; signed-in acceptance checks the email and consumes the expiring token (at most 30 days) once, keeping the person's own account. An inviter gives only what they hold there, Owner only from an Owner, and is checked again at acceptance, so an inviter who left or lost a right brings nobody in; `set_rights` follows the same rule and changes only someone holding no more than the caller (an Owner only by an Owner, and the role of the person whose own account it is only by them), and `save_role` and `remove_role` change a role only for someone holding all it gives, before and after. Shared functions and routes also revoke, leave and remove memberships or part rights, with audit and `onMembershipChanged`. Part managers cannot remove an Owner's rights or anyone's greater rights; accounts keep their last Owner, and nobody removes a person from the account they signed up with (`own_account`). The email is `@buffcore/emails`' `accountInvite`, in the person's language or the product's first, sent once the invitation is written (`emailSent: false` reports a failed delivery while the invite stays pending and revocable), with the product's accept page and the token after `#` when it answers `inviteLink`. Someone with single rights only hears nothing about the whole account (replies about a profile, the PIN, privacy emails, the playground's note notices), and a call they asked for no longer runs once they hold no role there. Invitations go 30 days after they are accepted, revoked or expire, and with a deleted person. Who can do what names a person with single rights only "No account role" (scene `rights-people-invited`). The app's whole-account export requests, downloads and deletion requests are account-Owner-only, and export-ready emails go only to account Owners; members may still delete one profile. The console Owner's audited privacy door is unchanged. Migration `identity/0005-account-invites` adds `account_invites`.
|
|
1203
|
+
|
|
1204
|
+
- **Codex chat images (FU2):** image arguments are relative to the turn's working folder, so commas in a product's path cannot split them into other files. A remaining comma refuses the turn with a system message. Windows shim checks still require generated paths under the canonical product root and refuse junctions; Claude Code and OpenCode keep their existing paths. No upgrade steps are needed.
|
|
1205
|
+
- **Sturdier full snapshots (FU1):** `ape prototype snapshot` warms each used surface first (two fresh tries, never failing the run), opens half the machine's cores of pages at once (at most four), relaunches Chromium after every 40 scenes, and retries a scene once in a fresh page when its page didn't load or went away during a check; findings are never retried and reports keep their format. On the four-core lab VM a full run still stops at the first scene after a relaunch: the next step is to warm again after each relaunch.
|
|
1206
|
+
|
|
1207
|
+
- **Conversation inbox kinds (SE1):** extensions can declare `conversation: { messages, reply, holds }` on an inbox kind, read their messages through the audited item route, and call inbox's new `askForDraft` / `onMessage` hook to request an AI-drafted reply through their own offered action. `automation.draft_conversation` shares the `support.draft_reply` class setting, respects agent rules and sensitive kinds, and proposes replies in AI drafts with a cited playbook rule. **Upgrade notes:** additive inbox exports and optional `InboxItem.conversation`; existing products need no changes. Products enabling conversation drafts must add the new purpose's starting profile, fixtures and replay test set. Messages remain in the extension's tables; no screens or migrations change.
|
|
1208
|
+
- **Conversation email threads (SE2):** `OutgoingMail` accepts optional `replyTo` (one bare address), `inReplyTo` and oldest-first `references` Message-IDs, carried by Resend, SMTP, the test outbox and development files; a mail's reply address overrides SMTP's service default. `sendMail` rejects CR/LF, invalid reply addresses and malformed Message-IDs before calling a provider. Additive fields; existing sends need no changes.
|
|
1209
|
+
- **An extension's own product (SE4b):** `ape create <name> --standalone` implies `--extension`, makes a product shell composing only BuffCore and the extension, and refuses `--example`. Its console sets the new optional `createAdmin({ home: '<extension-key>' })`: the extension's first section leads, with Overview still reachable at `/overview`; a missing key or first section without screens keeps the usual Overview start. The app keeps its approved template home until the extension's screen is approved and wired. **Upgrade notes:** additive option; existing products and `--extension` output are unchanged.
|
|
1210
|
+
|
|
1211
|
+
- **An extension project (SE4a):** `ape create <name> --extension` adds a generic extension package to its first sample product, with the same grant and generated imports as `ape add`, two prototype views with English and Spanish catalogs, and tests for its action, read, event, privacy and migration round-trip. It also works with `--example`; help and `--json` identify the extension. Existing products need no changes.
|
|
1212
|
+
|
|
1213
|
+
- **Approvals by a rule (BR35d):** optional `plan/approvals.md` rules require one, two distinct people, or a majority by a deadline. Brand and prototype records retain the first rule and every signature, including host-supplied role membership; every kind reads committed main's policy, and a malformed policy or a rule for a kind not enforced yet (only brand, prototype and merge are) fails closed; signatures count when dated by the deadline, so an approval that held keeps holding; data checks, the studio and `--json` see an approval only once it holds, and a new version drops a partial one; a named merge rule gates merging on the change's prototype signatures. Additive `ruleSchema`, `approvalHolds`, optional approval `rule` and signature `role` in `@buffcore/contracts/approvals`; records without a rule retain BR27 behavior. Existing products need no changes; the signature progress screen remains pending.
|
|
1214
|
+
|
|
1215
|
+
- **The staff screen fits a phone:** its console button reads "Open the console" ("Abrir la consola"), so Sign out stays on screen at phone width in every language.
|
|
1216
|
+
|
|
1217
|
+
- **Studio host places (BR35b):** `mountStudio` accepts optional ordered `parts`, with host badges, page/tab navigation and full-screen replacement. The seventeen place families are versioned by `PLACE_VERSIONS` and typed by `PlaceId` in `@buffcore/contracts/workbench`; `HostPart` and `HostParts` are exported by `@buffcore/admin-shell/workbench`. Empty registrations preserve the studio. This is additive; existing hosts need no changes.
|
|
1218
|
+
|
|
1219
|
+
- **A host's workbench sign-in (BR35a):** additive `@buffcore/cli/workbench` exports: `createUiServer`, `listenLocal`, `coreRoutes`, `Stack`, `Runner`, `ChatEngine`, `studioRoutes`, `chatRoutes`, `studioState`, `pageScript`, `readProductPlan`, and types `Plan`, `UiServerOptions`, `SignIn`, `UiIdentity`, `UiRoute`, `UiRequest`, `UiAnswer`, `Start`, `ChatEngineOptions`, `Viewer`, `Machine`, `Right`; plus `@buffcore/contracts/workbench` viewer, machine and nine-right schemas. A host signs in every API request; missing sign-in is 401 and missing rights are 403 with the required right. State carries the current viewer and machine; approvals and merges name the viewer. Every hosted POST requires its own Origin and a declared right; deploy needs `approve:release`, server setup `settings`. A comment-only chat endpoint stores named notes without starting agents, and prompts preserve their authors. Viewer emails optionally identify merge commits, falling back to Git's email. Local identity tolerates containers without a user entry. Local loopback and token access keep every right. No screen changes or upgrade steps for existing consumers.
|
|
1220
|
+
|
|
1221
|
+
- **Chat attachments, server only** (BR35c): send requests accept up to eight images or transcripts through the additive `attachmentSchema` and optional `attachments` field. Images have generated local filenames and reach Claude Code as stream-json blocks, Codex through `--image`, and OpenCode through `--file`; unsupported CLIs get an honest system message. Transcripts are quoted as the person's words. Invalid attachments return 400 before writes; only image sends get a larger body limit. Existing text clients need no upgrade; the composer awaits the owner's look.
|
|
1222
|
+
|
|
1223
|
+
- **The studio is `ape ui` (BR28g):** Devices runs the existing web, Android and iOS builds; Release keeps the destination form and runs deploy; Releases and Setup run backup test and list. Unmeasured device, release and setup state stays Unknown. Work cards use the plan's change titles and milestone lanes. Navigation shows built places only. The fifth and last old workbench prototype and its scenes are retired.
|
|
1224
|
+
|
|
1225
|
+
- **The change chain in CI and deploy (AO7):** `ape change --check` resolves its id from a `change/C-012-…` branch and skips other branches; `ape change trailers [range] [--json]` checks each non-merge commit against the hook's Change and Task rule (default `origin/main..HEAD`). New products' CI runs both checks on change branches. Before building, `ape deploy` refuses tracked changes, checks trailers on change branches merged since the server's deployed commit and runs the product's `pnpm lint`, refusing with exit 2 on failure; `--local` retains its signed approval check. **Upgrade notes:** existing products should add those CI steps with full git history and the change branch checked out. Deploy checks each change branch's own non-merge commits through its named merge on main's first-parent history; direct commits on main pass. A first deploy checks no history but still runs lint. CI's change check uses `--base origin/main`; detached CI needs `GITHUB_HEAD_REF` or `GITHUB_REF_NAME`. Deploy reads the running API's existing 12-character hexadecimal `APE_RELEASE` and expands it locally with `git rev-parse --verify`; a release not in this clone prints one line and checks trailers as a first deploy, still running lint. The trailer check follows named `--no-ff` change merges; fast-forward, squash and rebase merges, or deploying straight from a change branch, are not checked.
|
|
1226
|
+
|
|
1227
|
+
**Upgrade notes** (every product): replace `mountWorkbench` with `mountStudio` from `@buffcore/admin-shell/workbench` (`{ token }`; the studio measures its own width). `WorkbenchApp`, `WorkbenchPage`, `WorkbenchView` and `serverCommands` are removed; use `StudioApp`, `StudioRoot` and `StudioFrame` for the studio. Run `ape ui` instead of `ape ui --studio`; `--studio` is accepted for one release as a no-op with a notice. `ape server setup` remains a terminal command.
|
|
1228
|
+
|
|
1229
|
+
- **One merge at a time (BR28f):** `ape change merge <id> [--json]` and the studio's token-guarded `POST /api/merge` check the change before and after a temporary `--no-ff` merge, keep hooks running, and advance `main` only with a checked commit. A product-wide Git lock reports the active change; dirty checkouts, conflicts, failing checks and held hooks refuse. `POST /api/worktree { change, action: 'remove' }` removes only clean, merged worktrees. Nothing pushes. MCP is closed (`closedBecause`: merging is a person's act); existing consumers need no upgrade.
|
|
1230
|
+
|
|
1231
|
+
- **Migration rehearsal (BR35f):** `ape backup test --migrations` checks the newest backup in a scratch database, runs the checked-out release's pending migrations there, reports only passed or failed, elapsed milliseconds and row counts per table, and drops the copy. Uploads and live volumes stay untouched; `--json` prints `{ ok, ms, counts }`, with `counts: null` and exit 1 on any failure, including cleanup. The copy is named `<live>_rehearsal_<random>`, its connection must answer that name before any migration runs, the next run sweeps leftovers, and a failed cleanup names the copy left behind (`leftover` in JSON). Plain `ape backup test` and its JSON remain unchanged.
|
|
1232
|
+
|
|
1233
|
+
- **Studio prototype versions (BR28c):** the Prototype page reads BR27's versions of the open change, records the person's approval once, compares saved screen, data and design changes, and sends screen, journey-step and area comments to the design agent's chat. Record version stays an explicit action after the agent's commit. Changed or unavailable snapshot fingerprints refuse approval with an explanation. The existing studio approval route adds the `prototype` kind; existing brand requests keep working.
|
|
1234
|
+
- **Product discovery (AO3):** `connect.describe_product` lists installed packages, described actions and reads, extension offers/uses and sending capabilities; `connect.list_reachable` reads a member's explicitly mapped channel consent behind People's Owner role, without addresses or consent evidence. Both are MCP tools, and `describe_product` is an agent tool too (a read behind roles never is: an agent has none); consent writes stay human-only. `discoveryChannels` maps product consent kinds and extension send actions, and `actionTools` now accepts offered reads without roles through the same pipeline and data limits. **Upgrade notes:** additive contracts, registry and consent-read export; existing products need no changes. To report agreed channels, map them to the product's consent kinds (see `docs/CONNECT.md`).
|
|
1235
|
+
|
|
1236
|
+
- **Extensions use each other by key (AO2):** optional `offers` and `uses` on `defineExtension`, with `offered`, `useAction` and `Used` exported by `@buffcore/server`. Calls retain the caller's actor, rights, rules and audit; missing packages or offers return a clear result, and carried kinds outside the caller's grant are refused. Start checks reject invalid offers and uses of an extension's own prefix. Installs remain independent. **Upgrade notes:** these declarations and exports are additive; existing extensions need no changes.
|
|
1237
|
+
|
|
1238
|
+
- **The Work page** (BR28e): `ape ui --studio` connects Work to change worktrees: ahead/behind, merge safety, paths, uncommitted file counts and shared screen/table/service warnings. Git older than 2.38 reports unknown merge safety. The optional `work` facts extend the studio API; existing consumers need no upgrade.
|
|
1239
|
+
|
|
1240
|
+
- **Studio loop fixes (BR28b):** fresh branches stay started; unreadable plan files no longer interrupt polling. Brand approval accepts only shipped directions, records `<theme-key>:<design-token-hash>` as its fingerprint, and asks for a first commit when needed. Milestone keys and the Auto brand choice now follow the real data.
|
|
1241
|
+
|
|
1242
|
+
- **Studio loop files (BR28b):** `ape ui --studio` reads the product's brief, roadmap, changes and journeys, follows their loop step, and records a person's brand approval in `design/approval.json`. Studio facts add an optional `plan` field; existing clients need no changes.
|
|
1243
|
+
|
|
1244
|
+
- **The studio's agent panel and Agents page** (BR28d): page chats send and poll replies through the existing local chat engine; agent assignments and the default edit `plan/agents.md` while preserving its notes. The panel shows takeover messages and warns when coding and validation use the same agent. Ready CLIs say “Signed in” without inferring a plan or key. The studio state adds optional chat summaries and the token-guarded `POST /api/agents` accepts the existing agents-file schema; existing clients need no upgrade.
|
|
1245
|
+
|
|
1246
|
+
- **Chat engine, server only** (BR31b): additive `@buffcore/contracts/workbench` chat schemas and `/api/chats` routes persist local conversations, run the person's Claude Code, Codex or OpenCode with prompts on stdin, resume sessions, stop process trees, and retry a signed-out assignment once with the default agent. Change coding, tests and fixes use a shared worktree per change; other chats use the product root, with one turn per tree. Chat POSTs require the workbench's own Origin as well as its run token. No chat screen yet; recorded CLI fixtures and local flag confirmation remain a person's rollout check. A turn runs the person's own CLI, found outside the product, with ape ui's environment minus BuffCore's, the product's `.env` names and pnpm's run variables; Ctrl+C or closing the terminal stops running turns.
|
|
1247
|
+
|
|
1248
|
+
- `ape ui --studio` serves the approved studio frame with real product, branch, agent and stack state, level settings in `plan/agents.md`, and Dev server controls for the stack, migrations and seeds. Plain `ape ui` keeps its existing page. The workbench export adds `mountStudio`, its state mappers and `studioTheme`; the playground reuses the same unchanged precision theme. No product upgrade is required.
|
|
1249
|
+
|
|
1250
|
+
- **BuffCore compatible (AO8):** `ape check compatible [<dir>] [--json]` shares the kernel, AI-door, boundary, data, catalog and test-declaration checks with `ape add` before installation and `ape catalog sign --check <dir>…` before signing; product CI and shipped-extension CI run the same suite. Unsupported checks report `not yet` without blocking CI, installation or signing; JSON separates `ok` (no problems) from `complete` (no pending checks).
|
|
1251
|
+
|
|
1252
|
+
**Upgrade notes** (every product): extensions now need to pass this suite before `ape add` changes dependencies or grants, including test files and a `test` script in the inspected package; packed releases must load using dependencies already available to the product. Compatibility CI checks repository source packages and lists dependencies as skipped. The dedicated data check stays `not yet`; grant validation belongs to the kernel contract. `ape add` reports packing/unpacking failures without a stack and exits 2 before installing anything.
|
|
1253
|
+
|
|
1254
|
+
- **Prototype snapshot freshness (BR27):** recording a version refuses partial reports and sources with non-snapshot changes since the snapshot. Versions name the snapshot's real source commit; data checks and comparisons locate its committed report by fingerprint. Record writes use a temporary file and rename, with no crash-surviving lock.
|
|
1255
|
+
|
|
1256
|
+
- **Prototype versions and one approval per change** (BR27): `ape prototype version`, `approve`, `versions` and `compare` share `prototype/versions/<change>.json` in the product repository. Versions name commits and fingerprint the report, data and design; approval records the person's git identity, time, commit and fingerprint once. MCP adds `prototype_version`, `prototype_versions` and `prototype_compare`; approval is terminal/workbench only. `@buffcore/contracts/approvals` exports the shared record schemas.
|
|
1257
|
+
|
|
1258
|
+
- **Who does what** (BR31a): additive `@buffcore/contracts/workbench` agent schemas, `plan/agents.md` in new products, and `ape who [work] --json` (MCP: `agents_who`) share work assignments, default takeovers and a same-agent validation warning. CLI detection uses version/status commands without reading sign-in files; unsupported agents stay `soon`. Existing products can add the template's settings file; without it, `who` reports the template default (Claude, guide) with `configured: false`.
|
|
1259
|
+
|
|
1260
|
+
- **Build the server image without shipping it** (BuffApe's request; BR46): `ape build server [--platform <os/arch>] [--json]` builds HEAD through the same image builder as `ape deploy`, tagging the product and each container with a Dockerfile by the full commit SHA. It prints their local Docker image IDs for signed approvals and sends nothing; run that image later with `ape deploy --local`. Docker unavailable, no product or uncommitted tracked changes refuse with exit 2; build failures exit 1. Default platform: `linux/amd64`. `--json` prints one line on success (`ok: true`), refusal and failure (`{ ok: false, error }`); the image ID is the config digest on either Docker image store.
|
|
1261
|
+
|
|
1262
|
+
- **Starter publication and executable hooks (AO9 fixes):** the starter is `@buffcore/create` (`npm create @buffcore@latest <name>`), so publication uses the configured `@buffcore` registry before the public release. The unscoped `npm create buffcore` comes at the public release. `ape create` sets every template hook to mode `0755`, including existing hooks preserved by `--here`; new products run their Git checks on Linux and macOS.
|
|
1263
|
+
|
|
1264
|
+
- **Agent-startable products (AO9):** `npm create @buffcore@latest <name> -- --json` runs `ape create` with the same arguments; creation returns one JSON line with the absolute path, ports and ordered next commands (exit 0 created, 1 refused, 2 could not run). The README, docs home and `llms.txt` open with the same startup commands; agents add npm's `--yes` to skip its package-install confirmation. **Upgrade notes:** creation now refuses an existing destination unless `--here` is explicit, and accepts only port blocks 10–64 (higher blocks exceed TCP's port range). `ape owner add` without a terminal now requires `--password-stdin` rather than reading input implicitly; passwords stay on standard input. `ape add` without a terminal requires `--yes` before any installation. Missing input flags exit 2. Human-readable creation steps are separate commands, including a source-checkout link that sets its own checkout path.
|
|
1265
|
+
|
|
1266
|
+
**Upgrade notes** (every product): replace `ape prototype data --against <commit> [--check]` with `ape prototype data --change <id> [--check]` (MCP `prototype_data`: `change` replaces `against`). Record and approve a version for that change first; without an approved version the command exits 2. Commit `prototype/versions/<change>.json` with each record update. Versions and approval now belong to the repository, reversing W3's cloud ownership.
|
|
1267
|
+
|
|
1268
|
+
**Upgrade notes** (every product): the studio drawing replaces the four drawn-only workbench prototypes. `WorkbenchPreview`, `WorkbenchChats`, `WorkbenchSimple`, `WorkbenchFull`, `SimpleEditorial` and their prototype-only types leave `@buffcore/admin-shell/prototype`; remove those imports and use the studio views from `@buffcore/admin-shell/workbench` for prototype scenes. The real `ape ui` page is unchanged.
|
|
1269
|
+
|
|
1270
|
+
**Upgrade notes** (every product): `ape deploy --local` approvals name the image's config digest. Regenerate approvals made from a containerd manifest/index digest using `ape build server --json`; existing approvals naming config digests remain valid. `ape deploy`'s `--json` `image` field is that digest too (on a containerd-store server it was the manifest digest).
|
|
1271
|
+
|
|
1272
|
+
The process, the design-system contract, the critique, and the prototype loop design-complete: how a product is made, made explicit and made one app.
|
|
1273
|
+
|
|
1274
|
+
- **Every route has an AI door (AO1):** `RouteDef.closedBecause` records why a route stays closed to machines and agents. `aiDoorProblems` from `@buffcore/server` reports missing or thin descriptions, missing doors and routes that declare both. BuffCore, its extensions, the playground and the template are checked; MCP and agent tools use the route's description.
|
|
1275
|
+
|
|
1276
|
+
**Upgrade notes** (every product): Give every product and extension route an English `description` (one to three sentences, at least 40 characters, explaining the outcome, input, answer and when to use it) and either `mcp: true` or a short `closedBecause` reason, never both. Until AO8's compatibility check runs in products, MCP and agent tools fall back to the route's method and path when its description is missing. AO8's check will refuse routes without the required metadata; this slice does not offer any additional route to machines.
|
|
1277
|
+
|
|
1278
|
+
- **The workbench drawn, first half: the frame and the loop** (BuffApe's workbench request, BC-D39; batch 3): `@buffcore/admin-shell/workbench` exports `StudioFrame` (the top bar with "You’re on" Auto, Guide, Review and Lead; the rail as the loop’s eight steps and then the product’s places, the always-yours approvals sealed; the agent’s panel; one column of tabs on a phone), the loop’s pages (fresh product, new project, agents, brief, plan, brand, journeys, the prototype with versions, comments, compare, data states and lanes, and the full-screen prototype that plans a change) as `StudioLoop`, and `studioCatalog` (English and Spanish). Playground scenes `studio-fresh` to `studio-fs-change` draw Notes through them, with the real app and console inside; nothing is wired. Drawing only: no upgrade notes.
|
|
1279
|
+
- **Phone width: `DataList` stacks, the `neutral` theme is back, and a check catches clipping** (BuffApe's request; batch 2). Below 480 px of its own width (`STACK_BELOW`) a `DataList` makes each row a card (the first cell its title, a labelled line per other column, `end` columns keeping their weight, sorting as a select above); `narrow="scroll"` keeps the table, scrolling inside its panel. The top bar keeps its right-hand controls together at the end, also when a phone wraps them, and the operator menu opens against the bar and stays inside the screen. `ape prototype snapshot` gains `clipped`: in every mode, a box past the screen's inline edges or its clipping parent's, with no scrolling ancestor, is a problem naming the scene, mode and element (`PROTOTYPE_CHECKS` adds `'clipped'`; a product's `report.json` may now carry it). The `neutral` starter theme is what products had before the precision look (cool greys, a slate brand, Public Sans); the precision look is the playground's own theme, made from `neutral` with `extendTheme`. No tagged release carried the change, so there are no upgrade notes.
|
|
1280
|
+
- **A status check may answer one line per item** (BuffApe's request): `check(ctx)` may return a list of `CheckItem`s (`{ key, name, state, value?, lastSeenAt?, screen? }`, `@buffcore/contracts/ops`) for things that come and go at run time (machines, devices); Status shows a line for each, keyed `<check key>.<item key>`, worst first, at most `ITEMS_SHOWN` (50), then "and N more" with the worst state of the rest. A late, throwing or malformed answer (duplicate item keys included) is one Unknown line under the check's own name; an empty list is one Off line. Additive: a check that answers one result works as before. The playground's Notes adds "AI purposes": a line per notes AI purpose called in the last 15 minutes, with its calls and failures.
|
|
1281
|
+
- **An SMTP email provider beside Resend, and one email service on at a time** (BuffApe's request; batch 3). The service `smtp` in Admin › Services sends through any mail server with Nodemailer (a new dependency of `@buffcore/modules`): host, port, security (`tls` from the start, `starttls` required, or `none`, which production refuses at turning on, testing and every send), user and password (both or neither), from and an optional reply-to. Its test sends to the Owner running it, and a failure shows the server's reply code and text, never the password or an address. A send keeps the queue ID from the server's reply, else the Message-ID, which is made from the send job's key so a retry carries the same one. SMTP reports no deliveries or bounces, so its rows stay sent, as its note under its name says. `ONE_SERVICE_CHANNELS` (`['email']`, `@buffcore/server`): turning on a second email service now answers 409 `channel_taken` naming the one that's on, and its page says to turn that one off first. A `ServiceDef` may declare a `note`, a field's `choices` (a select; `ServiceRow.note` and `ServiceFieldRow.choices` in the list) and `refuse(fields, env)`, a reason key that turning on, testing and saving while on answer as 409 `service_refused` (`{ service, reason }`) and that fails a send. Environment's `email` may be `smtp`. Additive: a product with Resend on sees no change.
|
|
1282
|
+
- **The process** ([docs/PROCESS.md](docs/PROCESS.md)): idea and brief → user journeys → style, voice and design system → working prototype → build. The brief, the journeys, the design system and the prototype in the repository are the source of truth; BuffCore ships the loop, and a cloud layer adds collaboration and threads on top. The template gains `plan/brief.md` and `plan/journeys.md`; the skills name each stage.
|
|
1283
|
+
- **A design system has a written contract**: `design/DESIGN.md` (direction; voice, tone and character; color roles; typography; components; layout; motion; depth; do's and don'ts; the agent guide) and `design/manifest.json` (schema, the product's id, source, the declared files). `ape design check` now reads both, fails on a missing section or a bad manifest, and includes them in its file list; the hash still covers the tokens and components. Five original directions ship in the `ape-design-system` skill: Clear and calm, Warm and human, Technical and precise, Bold and playful, Editorial and considered. The template's lint runs the check; the playground has its contract.
|
|
1284
|
+
- **The critique** (the `ape-critique` skill): after the snapshot, five evidence-backed scores — direction and voice, hierarchy, detail, journeys and functionality, innovation — with Keep / Fix / Quick wins in `design/critique.md`. It is advice; the checks and a person's approval remain the gate.
|
|
1285
|
+
- **The prototype is one app, and it has one home**: `@buffcore/app-shell/prototype` exports `PrototypeHomeRoute`, which a product's `prototype/home.tsx` gives its store (`seed` and `reduce`), named states, journeys, catalogs and screens; the runtime owns the states and journeys panel, the look (display, language, text size) and the player. A product's `/prototype` on its web app shows the real screens; it is loaded behind `__DEV__` and a production build leaves it out. The playground's Notes is the reference: `plan/brief.md`, `plan/journeys.md`, its `DESIGN.md` voice and its `NoteCard` (with a showcase), `prototype/store.ts`, `seeds.ts`, `journeys.ts` and `home.tsx`, and a scene for every state. The template starts every new product with the same files, its real Home, Settings and sign-in views and its own scene and flow.
|
|
1286
|
+
- **The viewer opens on the app:** `createPrototype({ home: true })` adds an App view that embeds `<appUrl>/prototype?embed=1` full-bleed (no device frame) and makes it the first view; the scenes and flows stay in the rail. It is off by default, so a product made before the home keeps its gallery. A scene may name a rail `group` (plain words, e.g. "Notes"); scenes with the same group sit together, so a product's own screens come before the reference ones. The workbench's scenes door opens the viewer at `?scenes=1`, which starts on the first app scene rather than the app.
|
|
1287
|
+
- **The workbench's Prototype section opens the app:** when the product has `prototype/home.tsx` (the `ape ui` server checks), it shows the app, opens it in a new tab with its states and journeys, and keeps the viewer as the scenes' door; the snapshot button stays there. A product without the home keeps the viewer alone.
|
|
1288
|
+
- **The console wears BuffApe's precision edition, with a light/dark toggle**: the playground's own theme (`design/theme.ts`, made from `neutral`; the `neutral` starter itself is unchanged) is a near-black canvas (`#090a0b`), a gold brand (`#f5c85a`), Inter, 10/12.5/13/15/21/48/64 px type at weights 400/540/570/610, hairline borders and 4–10 px radii; its light mode is the same system on warm paper, and high contrast keeps the gold at 7:1. `ModeToggle` adds a sun/moon control to the top bar and the sign-in card (`AppearanceControl`), so light and dark are one tap before or after signing in; the operator menu keeps "Same as this device" and "High contrast". The console can open in a mode of its own (`createAdmin({ mode })`; the playground opens dark) until the operator chooses, and the choice is remembered. The simple workbench frame matches the theme and carries the same control, opening in the viewer's mode. Token names, routes and tables are unchanged.
|
|
1289
|
+
- **The full workbench prototype**: `workbench-full-*` draws the workbench as one app in the precision system, on one sample (Notes and the waitlist change C-007): **the prototype on its own** (the approved commit, frozen, as **two apps**: the **customer app** for desktop, tablet, iOS and Android, and the **console**, with its scenes, tables, journeys and design hash, and the change against it), **the prototype studio** (opening either app collapses the rail into the **journeys**; the canvas plays the app on desktop or phone; a comment lands on a **component** or a drawn **area**, and the discussion makes **Draft v2** while the approved commit stays frozen, then a **plan with tasks** and **C-008**, a milestone on the board), **the board** (every change in parallel, in two views: **Status** — Waiting, Ready, In progress, Merged — or **Stage** — Plan, Prototype, Build, Review, Ship), **the active milestones thread** in the rail (the ones not deployed, by stage; no stage links in the rail; a click opens the milestone's **room with the same App/Plan/Scenes/Checks/Review/Build/Ship tabs**; C-007's work is drawn in full, the others by stage; **All milestones** goes to the board), the fleet (a chat per change, running/done/failed/draft, each marked **prototype** or **code only**), the room with the chat beside the milestone's App (the **working prototype**: click Join and the journey moves), Plan (the **source of truth** it declares), Scenes, Checks, Review, Build and Ship; the **review approves the prototype at its commit** (the four artifacts: prototype, data, journeys, design), the code is proof, and the **build proves the views, data, design hash, journeys and snapshot still match**; the **visual diff** (the scenes the change touched, before and after, on the phone, with the share of pixels that changed) and a **comment on a scene that lands in the chat**; the **Devices** page (Xcode simulators and the Android SDK on this computer, BuffApe Cloud phones, every state: connected, available, booting, offline, not set up) and the playable app on the chosen iPhone, Android or the web; the branch and worktree in the top bar, its stack and whether it merges; the permission card in the chat; the cloud page (versions, comments in rounds and cloud devices are BuffApe's; locally the commit is approved); and the phone, with the chat first and the work one tap away. The flow `workbench-full-change` starts at the approved prototype, the board and a milestone's thread, then plays the chat → plan → checks → review → build → ship. The full workbench stays a **design exploration** until this design prototype is approved; promotion into the real workbench views follows. The gaps still open (the old board's dependency statuses and clash warning, opening a code-only change in the room, element-level comments, worktrees per chat, the handoff and steer, checkpoints, real device discovery) are listed as gaps.
|
|
1290
|
+
- **Machine keys an account holds** (BuffApe's request; the feature `machine-keys`, off by default, needing no other): a product's own route makes a key for the machines of one part of an account (`createMachineKey`, `listMachineKeys`, `revokeMachineKey`, and `revokeMachineKeys` for a part being deleted, from `@buffcore/modules/connect`), kept in the new `machine_keys` table: shown once, kept as a hash, expiring, revocable, and audited without the key. A request with it in `x-machine-key` is that account's closed `machine` actor, within that part: it reaches only routes that name the kind, and `requireMachinePart` checks the part. A revoked, expired or unknown key, or one whose account is deleted, is `401 api_key_invalid`. `api_keys` and Admin › API keys are unchanged ([docs/CONNECT.md](docs/CONNECT.md#machine-keys-v07)).
|
|
1291
|
+
- **Passkeys for operators and the user door, drawn for approval** (W16, BuffApe's requests; prototypes only, nothing wired): the console's sign-in gains "Sign in with a passkey" (waiting, closed, failed, and `require` with the way back through a backup code), "Your sign-in" with an operator's passkeys, and an Owner's "Reset sign-in" in Operators; the app gains AI clients, the page that allows one, and a member's API keys. `SignInView` takes an optional `passkey`; `OperatorsView` an optional `onResetSignIn`; both leave existing scenes unchanged.
|
|
1292
|
+
- **Rules for actor kinds a package adds** (W20): a kind reads as a machine unless its package says it is a person (`rulesAs: 'people'` in `actorKinds.add`; `devices`' `device` and `profile` say so, and `profile` says `subject: 'profile'`). So a `machine`'s call to an action meets rules as an API key's: it waits for a person unless a rule lets `machines` run it, an always-human one always waits for an Owner, its writes are audited, and a bare kernel refuses it. The API no longer refuses to start when an action's route names `machine`. Approving a held call asks the kind's package whether it is still there (the rules package's `requesterLive`: `connect` for a machine key not revoked or expired with its account live, `devices` for a device's grant and a profile still on it); a kind nobody answers for is `409 requester_gone`. A held call is a profile's only for a kind whose `subject` is `profile`; a machine's goes with its account. The kernel exports `addedKindOf` and `actsAsMachine`; `whoOf` takes the kind's definition ([docs/IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#actors)).
|
|
1293
|
+
|
|
1294
|
+
**Upgrade notes** (a product that adds its own actor kind): the kind now reads as a machine unless it says `rulesAs: 'people'` in `actorKinds.add`. Until it does, its calls to actions wait for a person (or are refused where no screen approves them), its writes are audited, and a held call it asked for is approved only when its package answers the rules package's `requesterLive` for it (`requester_gone` otherwise). A kind that is a person using the product adds `rulesAs: 'people'` (and `subject` when its ID is a privacy subject); one that is a machine keeps the default and gives the rule that lets machines run what they should, `defaultRules.add({ action, who: ['machines'], do: 'run' })`.
|
|
1295
|
+
|
|
1296
|
+
- **Operators' passkeys** (W17, BuffApe's request): Better Auth's passkey plugin in `identity`, wired to W16's approved screens. "Sign in with a passkey" beside the password, "Your sign-in" in the operator menu (add after two-step sign-in, remove), and `signIn.operators.passkeys: 'offer' | 'require'` in `buffcore.config.ts` (default `offer`). With `require`, a sign-in without a passkey adds one before the console opens (`Me.operator.passkeyNeeded`), a lost passkey is a backup code then a new one, and an Owner can reset another operator's sign-in in Operators. New routes `GET /v1/admin/me/sign-in`, `DELETE /v1/admin/me/passkeys/:passkeyId`, `POST /v1/admin/operators/:operatorId/reset-sign-in`; `listOperators` answers `passkeyCounts`; the migration `identity/0004-passkeys` adds `auth_passkeys` and `auth_sessions.passkey_needed` ([docs/IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#operators-passkeys)).
|
|
1297
|
+
- **The user door** (W18, BuffApe's request; the feature `user-door`, off by default, needing `mcp-server`, `api-keys` and `in-app-notifications`): an Owner registers an MCP client for members (`createMcpClient`'s `audience`, default `operators`; `McpClient` answers it), which signs the member in and asks on the app's `/oauth/consent`, one grant per account, and acts as that member there only (`{ kind: 'member', accountIds: [account], via: 'mcp' }`); a member makes API keys for an account (`sk_mb_…`, the new `member_keys` table, migration `connect/0004-member-keys`). A member's door call that waits by default waits for that member, answered in the app's notifications (`GET /v1/me/asks`, approve, decline; the console's Approvals doesn't list it). New routes under `/v1/accounts/:accountId/ai-clients` and `/keys`; `ClientsScreen`, `ClientConsentScreen`, `KeysScreen`, `SettingsScreen`'s `onAiClients` and `NotificationsScreen`'s `asks`; the SDK's `oauthConsent` takes the account ([docs/CONNECT.md](docs/CONNECT.md#the-user-door-v07)). A member's right on a part now counts only in the accounts their call carries (all of theirs in a session, the grant's or key's one through a door). Rate limits are now per credential and the person it acts for, operators' MCP clients included, so people sharing a client never use up each other's limit (a key's limit is per key, as before).
|
|
1298
|
+
- **Outside extensions come only from a signed catalog** (W22, BuffApe's requests; [docs/EXTENSIONS.md](docs/EXTENSIONS.md#the-catalog)): `ape add` installs a folder inside the product's repository or BuffCore's own as before; any other name only from the catalog `buffcore.config.ts` names (`catalog: { url, key }`, the distribution's when unset, which doesn't exist yet), Ed25519-signed and checked with `node:crypto`, at the version named or the newest reviewed on the product's release, never a withdrawn one, with the lockfile's integrity and package.json's `license` as listed or the install is undone. It shows the licence and each place the extension sends people's data. `ape deploy` checks every extension in the grants and in `.ape/added.json` before it builds, and names the catalog it trusted; `ape catalog verify` (`--json`) is the same check, and `ape catalog keygen` and `ape catalog sign` are for whoever runs a library. `defineExtension` takes `places` (`DataPlace`: host, who, fields), a grant `places`; the app refuses to start on a place outside its `hosts` or its grant. `@buffcore/server` exports `inRange`, `@buffcore/config` `CATALOG_KEY`.
|
|
1299
|
+
|
|
1300
|
+
**Upgrade notes** (every product, W17): every console now offers "Sign in with a passkey" beside the password; nothing changes for an operator who keeps using it. Run `ape migrate` (`identity/0004-passkeys` only adds). Passkeys are tied to the console's host (`APE_ADMIN_URL`): one added on one host doesn't sign in on another. To require them, set `signIn: { operators: { passkeys: 'require' } }`; operators without one then add one at their next sign-in.
|
|
1301
|
+
|
|
1302
|
+
**Upgrade notes** (`machine-keys`): with the feature on, `connect` adds the actor kind `machine`. A product that adds its own `machine` kind must remove it before turning the feature on, or the app stops at start with `"machine" in "identity.actorKinds" is added by "connect" and "<module>"`.
|
|
1303
|
+
|
|
1304
|
+
**Upgrade notes** (every product): the `neutral` theme now asks for Inter. A console that uses it should serve the font at `/fonts/InterVariable.woff2` — the playground's `apps/playground/admin/index.html` has the `@font-face` — or the theme's fallback face shows; nothing else about the theme changed.
|
|
1305
|
+
|
|
1306
|
+
**Upgrade notes** (every product): `ape design check` now requires `design/DESIGN.md` and `design/manifest.json`. Add them with the `ape-design-system` skill (or start from one of its five directions); until then the command exits 1. The template's `lint` runs it for new products.
|
|
1307
|
+
|
|
1308
|
+
**Upgrade notes** (every product): the prototype home is opt-in. To get the app-first viewer, add `prototype/home.tsx` and its `/prototype` route (the template has both, with `PrototypeHomeRoute` from `@buffcore/app-shell/prototype`), then pass `createPrototype({ home: true })` where the admin's `prototype/index.tsx` makes the viewer. Until then the viewer keeps its gallery, and the workbench's Prototype section keeps the viewer link. The workbench's `/api/state` gains `prototypeHome` for the section; the page and the CLI ship together. Nothing else changes for a product, and nothing in this release is required for a build or a deploy.
|
|
1309
|
+
- **The workbench studio's second half, drawn** (batch 3): `StudioLater` in `@buffcore/admin-shell/workbench` draws, on the studio's frame, the first build's board, the agents' own states, this computer's dev server and devices, the release and where it runs, Live, Issues (each customer's words reach a coding agent only when the person passes them on, item by item), Setup, the plan's revision, and Extensions with an upgrade and making one, as 25 `studio-*` scenes of the playground's Notes (20 to 44) with sample data. Views only, nothing wired; the strings are in the studio's catalog. The hosted-cloud send and the phone's optional account are a host's parts and are not drawn. No upgrade notes: nothing a product depends on changes.
|
|
1310
|
+
|
|
1311
|
+
**Upgrade notes** (every product, W22): `ape add` now refuses registry names, git URLs, tarballs and folders outside the repository for extensions outside `@buffcore/*`: they come only from the signed catalog. Until the distribution's catalog exists, name one in `buffcore.config.ts` (`catalog: { url, key }`) to install outside extensions. `ape deploy` now checks every extension before it builds and refuses one that is neither a folder of the repository, `@buffcore/*` at the product's release, nor in the catalog at its installed version with a matching integrity and not withdrawn: run `ape catalog verify` to see what it would refuse. An image built elsewhere for `ape deploy --local` runs `ape catalog verify` on its commit first.
|
|
1312
|
+
|
|
1313
|
+
**Upgrade notes** (every product, AO7): add CI's two change-branch steps to an existing product, as new products have them: `ape change --check --base origin/main` and `ape change trailers`, with full git history and the change branch checked out (`GITHUB_HEAD_REF` or `GITHUB_REF_NAME` when detached). `ape deploy` now refuses tracked changes, commits of a change branch merged since the deployed one without their Change and Task trailers, and a failing `pnpm lint` (exit 2); a first deploy checks no history but still runs lint.
|
|
1314
|
+
|
|
1315
|
+
**Upgrade notes** (every product, AO8): `ape add` installs an extension only when it passes `ape check compatible`, its test files and a `test` script included, and `ape catalog sign --check` runs the same suite; checks not built yet report `not yet` without blocking.
|
|
1316
|
+
|
|
1317
|
+
**Upgrade notes** (`automation`, SE1): a product that turns on conversation drafts adds the `automation.draft_conversation` purpose's starting profile, fixtures and replay test set, as for any purpose; nothing changes otherwise.
|
|
1318
|
+
|
|
1319
|
+
**Upgrade notes** (every product): `account_members.role` and existing role response fields use the empty string for a member with no account role (single rights only); `set_rights` accepts it. Products may call `inviteMember`, `revokeInvite`, `acceptInvite`, `leaveAccount`, `leavePart`, `removeMember`, `removePartRights` and `listAccountInvites` from `@buffcore/modules/identity`. Invitation input is `{ email, role?, scope?: { part, rights: string[] }, expiresAt }`; email carries the token for the product's acceptance flow. Rights presets can give `identity.invite_member`, `identity.revoke_invite` and `identity.remove_part_rights` on a part. These dynamic scopes are checked in the functions; ask `holdsRight(ctx, key, part)` to show their controls. Access changes remain closed to machine doors. A member with single rights only (role `''`) is not in the actor's `accountIds` for that account but in the new `rightsOnlyAccountIds`, which only identity's rights checks read: a product's own `accountIds.includes(accountId)` check refuses them there (use `can(ctx, key, part)` for what a part's right allows), `callerAccountId` never picks that account, and `IDENTITY_SQL.members` leaves them out (member keys, the user door and account exports). `accountIds` now lists the person's primary account first. `invite_member`'s `expiresAt` must be within 30 days (`INVITE_MAX_DAYS`). An invitation email's `template` is `emails.accountInvite`. `removeMember` refuses the member whose primary account it is (`own_account`, 409), and `set_rights` refuses anyone else changing that member's role (`own_account`, 409). `set_rights` refuses (403) a caller who doesn't hold all the target holds now (an Owner is changed only by an Owner); `save_role` and `remove_role` refuse (403) a caller who doesn't hold every action of the role before and after. `accountMembers` and `memberContacts` return only members with an account role, so a product's own notices to "the account's members" no longer reach someone invited to one part; identity's export leaves out their sign-ins. Approving a held call refuses (`requester_gone`) when who asked no longer holds an account role in every account in its `accountIds`. A product answers the `inviteLink` hook, `(ctx) => Promise<string | null>`, with its accept page's URL, and identity adds `#<token>`: the hook never sees the token. `inviteMember` and `invite_member` return `emailSent: boolean` with the invitation: a failed email reaches error tracking, the inviter is told, and the invite stays pending and can be revoked. At the member door, whole-account export requests, downloads and deletion requests now require the account's live `owner` role; an invited viewer, a non-Owner admin member or a member with rights on one part gets 403. Export-ready emails go only to account Owner members; deletion notices still reach every member with an account role. Members may still delete one profile. The console's `owner` role keeps its audited privacy access to any customer account without membership, and product code may still call the shared actions as the system. Role saves and removals lock the account in their write transaction to preserve simultaneous edits.
|
|
1320
|
+
|
|
1321
|
+
**Upgrade notes** (every product): run identity migration `0006-part-offers`; existing part definitions remain valid and cannot be offered until they add `moveTo`. Packages keeping rows for a movable part must answer `onMovePart` with transactional writes through `ctx.em`. `requireMachinePart` is now async: await it in every caller (a call without `await` checks nothing, and neither TypeScript nor Biome flags it); it also checks that the key's account still holds the part. `listMachineKeys` now resolves the part's live account and lists only that account's keys; historical source-account keys no longer appear after a move, and a missing or deleted part/account answers `not_found`. No console screens are added.
|
|
1322
|
+
|
|
1323
|
+
**Upgrade notes** (`assistant`): additive contracts, `/v1/admin/assistant/...` routes and the `assistant/0001-asks` migration (`assistant_asks`). Off by default: run `pnpm ape enable assistant` and pass `assistant: { class }` with a `personal: true` AI class, plus its `assistant.ask` profile and fixtures. Dependencies are enabled with it. Automation keeps its migrations through `0003`; plan approval and execution follow in AO5.
|
|
1324
|
+
|
|
1325
|
+
**Upgrade notes** (every product, OB4): `notify` writes through the caller’s `ctx.em` and flushes it, so changes the caller hasn’t flushed yet are written at the call, even if the handler throws afterwards (a request’s `ctx.em` has no transaction). Code that calls a notification kind’s `text` directly handles both forms: one renderer, or `{ push, inApp }`. `seedProfile` refuses a profile of another account or test status, an account that doesn’t exist, and a non-test profile with no account.
|
|
1326
|
+
|
|
1327
|
+
**Upgrade notes** (every product, SE3): apply connect migration `0005-intake-webhooks`; rolling it back revokes all intake keys by deleting them. `machineOf` now includes `extension` for intake machines, whose `accountId` may be null; narrow on `extension === undefined` before treating it as a part machine. Existing part keys and Svix verification keep their behavior. `verifyWebhook('standard', ...)` accepts `webhook-*` headers; endpoint subscriptions and screens remain later work.
|
|
1328
|
+
|
|
1329
|
+
**Upgrade notes** (`profiles`): products storing sensitive profile settings should set their kind (a tutoring app: `learning_record`) and declare it in `carries` on their own settings-bearing routes. Without the option, settings remain unmarked. Marks and redaction by property name apply across the process.
|
|
1330
|
+
|
|
1331
|
+
**Upgrade notes** (`machine-keys`, FU5): make new intake keys after re-installing an extension; previously removed extensions' old keys are not retroactively revoked.
|
|
1332
|
+
|
|
1333
|
+
**Upgrade notes** (`connect`, FU6): use public HTTPS webhook receivers outside development, including for already queued deliveries; refused deliveries remain undelivered and leave the queue without retries. See `docs/CONNECT.md` for the address policy.
|
|
1334
|
+
|
|
1335
|
+
**Upgrade notes** (`profiles`, FU7): with `ProfilesConfig.settingsKind` set, add that kind to `carries` on every settings-bearing `mcp` route before starting the app.
|
|
1336
|
+
|
|
1337
|
+
**Upgrade notes** (`assistant`, AO5): additive plan contracts, console-only plan routes (`assistant.stop_plan` among them) and the `assistant/0002-plans` migration (nullable `assistant_asks.plan`). BR27’s approval schema is unchanged; a plan’s signature uses its artifact hash in `commit`. Existing answered asks stay readable and can become plans.
|
|
1338
|
+
|
|
1339
|
+
**Upgrade notes** (every product, FU4): extensions must use reads covered by their grant through `runAction`; product code, tests and test helpers keep these imports.
|
|
1340
|
+
|
|
1341
|
+
## v0.7.4 (2026-10-23)
|
|
1342
|
+
|
|
1343
|
+
A stopped worker raises its own alert: the API watches the processes that run jobs (decided after trying v0.7.3's alerts on the lab).
|
|
1344
|
+
|
|
1345
|
+
- **A stopped worker raises its own alert** (BuffApe's request): every minute the API, on one of its instances (a short Redis lock), watches the processes that run jobs (`startWorker` says so in its beat) and, when one is down, opens the incident and sends the urgent notice itself, by email and push, not through the queue the worker runs; back, the recovery notice. A clean stop counts once its beat has expired (45 seconds), so a deploy pages nobody. The kernel gains a fifth hook point, `server.everyMinute` (`notifications` answers it), and `notify` the option `direct`. Nothing to change in a product.
|
|
1346
|
+
|
|
1347
|
+
## v0.7.3 (2026-10-23)
|
|
1348
|
+
|
|
1349
|
+
BuffApe's alpha blockers (Status lines from modules, operator alerts, `ape dev` without Docker, one Redis per prefix, a secrets check in every product and build), the console's grouped rail, leaked passwords told as they're typed, and what a tutoring app's upgrade to v0.7.2 found.
|
|
1350
|
+
|
|
1351
|
+
- **The console's rail in groups** (BuffApe's request): a section in `createAdmin({ sections })` or `defineAdminExtension` may name a `group` (a translation key); BuffCore's own sections sit in Members, Product and System. Ungrouped sections come first, where they were; then the product's and extensions' groups, in the order first named; then BuffCore's; a section naming a group already there joins its end. `@buffcore/waitlist` joins Members. Nothing to change in a product: its sections stay ungrouped, first in the rail.
|
|
1352
|
+
- **An added actor kind's credential header never reaches a log** (BuffApe's request): the header a kind names in `actorKinds.add({ … header })` joins the log redaction (`logRedact` in `@buffcore/server`), like `authorization` and cookies; a header must be letters, digits and dashes.
|
|
1353
|
+
- **Operator alerts** (BuffApe's request): a Status line going down (a module's line too) sends each operator who can see Status (Owners) one email and one push at once, nothing more while it stays down, and one notice when it is healthy again; degraded and unknown spells, with the day's incidents, go in a daily digest at 8:00 in the operator's time zone (none on a quiet day). Each chooses in the operator menu: urgent alerts (on) and the daily digest (off), `GET`/`PATCH /v1/admin/notifications/alerts`. A module raises and clears its own with `raiseIncident(ctx, { key, name, link? })` and `clearIncident(ctx, key)` from `@buffcore/modules/notifications`. The emails are `@buffcore/emails`' `incidentNotice` and `incidentDigest`; the prototype's message views (`IncidentNoticeView`, `DigestView`) and their scenes are gone. A new table (`notification_incidents`) and two columns on `notification_settings`: run `ape migrate`. Nothing else to change in a product.
|
|
1354
|
+
- **`@buffcore/admin-shell` exports its charts and numbers:** `DayBars`, `SparkBars`, `Metrics` and `Meter`, with their prop types, as the design system's showcase draws them (BuffApe's request).
|
|
1355
|
+
- **The screens say a leaked password as it's typed**: the app's sign-up and reset and the console's reset check a new password once it is the shortest length and typing pauses; the line under it, which says the length, says it has shown up in leaks instead. `refuse`: in the error style, and the button stays off until another is typed. `warn`: as plain help; the button works. `off`: nothing is checked. The three views take `leak?: 'refuse' | 'warn'`, and the console's `ForgotPasswordView` takes `onPassword`. Nothing to change in a product.
|
|
1356
|
+
- **A new password found in known leaks is a product setting**: `signIn.leakedPasswords: 'refuse' | 'warn' | 'off'` in `buffcore.config.ts` (default `'refuse'`, as before; members and operators alike). `'warn'` takes the password and leaves the screen to say so; `'off'` checks nothing. `GET /v1/sign-in/options` gains `leakedPasswords`, the new public `GET /v1/sign-in/leaks/:prefix` answers the leaked hashes' suffixes for a SHA-1's first 5 characters (60 reads in 10 minutes per address), and `isPasswordLeaked(client, password)` from `@buffcore/sdk` checks a password with them, so it never leaves the device. All additive: nothing to change in a product.
|
|
1357
|
+
- **Fixed: the console's password reset says when the new password has shown up in leaks,** instead of "That code didn't work" (the code was fine); the member app already did (admin-shell's `ForgotPasswordView` takes the error `tooCommon`).
|
|
1358
|
+
- **`ape dev` without Docker** (BuffApe's request): `APE_DEV_SERVICES=external` has `ape dev` and `ape services up` start no Docker, saying so in one line, and run the API, the Node processes, the admin and the web app against the Postgres, Redis and storage the environment names; a product that declares containers is refused, naming them, and any value other than `docker` or `external` is refused. `ape services up` now reads `.env` as `ape dev` does. Nothing to change in a product.
|
|
1359
|
+
- **One Redis shared by several apps** (BuffApe's request): `APE_REDIS_PREFIX` sets what every Redis key and channel starts with (else the prefix as before), checked at start (letters, digits, `_`, `-`, `:`, ending with `:`), so each app can be held to its own by a Redis ACL (`~<prefix>* &<prefix>*`). A playground test runs a whole app as such a Redis user: sign-up, sign-in, the sign-in limit, a heartbeat and a live session, with nothing refused. A test app's random prefix is now its `APE_REDIS_PREFIX`, so a second app made from `t.app.env` shares its keys. Nothing to change in a product.
|
|
1360
|
+
- **Fixed: `ape upgrade` prints the notes as the release it installs reads them** (a tutoring app's request): after the install it asks that release's own `ape` (`ape upgrade --to <new> --notes-from <old>`, new here; an older release falls back to the running reader), and the reader now takes v0.7.2's `**Upgrade notes:**` with per-feature items (``- **`consent`:** …``) besides `**Upgrade notes** (every product):` and `### Upgrade notes`. From 0.7.0 to 0.7.2 it said "No upgrade notes"; a test reads the real CHANGELOG.
|
|
1361
|
+
- **Fixed: after an upgrade (or `ape link`/`unlink`), the next `ape dev` starts Expo with its cache cleared, once** (a tutoring app's request): Metro kept bundling the old `@buffcore/app-shell`. `.ape/expo-buffcore.json` holds the packages it last started with.
|
|
1362
|
+
- **`ape upgrade` refuses while `ape dev` runs, and a failed install leaves `node_modules` whole** (a tutoring app's request): "stop it first", as `ape add` does; after a failed install it puts the files and the lockfile back and runs `pnpm install --frozen-lockfile`, saying so (before, `node_modules/.bin` could lose `ape` and `tsx`).
|
|
1363
|
+
- **Fixed: `ape upgrade` reads a pin to a prerelease** (`buffcore: '0.6.0-stranger.…'`, what a product made from a test registry has), counting it just before its release; it stopped with "No pin like buffcore: '0.4.0'".
|
|
1364
|
+
- **Fixed: an `AppError` from a second copy of `@buffcore/server` answers its status** (BuffApe's request): `AppError` carries a brand (`Symbol.for('buffcore.AppError')`) and the new `isAppError(error)` tests it, so an extension that resolved another copy of the package throws a 403 or 404, not a 500. BuffCore asks `isAppError` wherever it asked `instanceof AppError`; a product doing the same should switch. Nothing else to change.
|
|
1365
|
+
- **Modules and extensions add their own lines to Operations › Status** (BuffApe's request): `contributes: [statusChecks.add({ 'payments.events': { name, check, screen? } })]` (`@buffcore/modules/ops`), keyed under the contributor's key; `check(ctx)` answers `{ state, value?, lastSeenAt? }`. Every check runs on read, in parallel; one that throws (logged once, by its name only), answers out of shape or takes over 2 seconds is Unknown. `OpsStatus` (the route, the MCP tool `get_status`, `opsStatus(ctx)`, which a job can call with `{ app }`) gains `modules`, by module, worst first; the screen shows them first, each line's name opening its screen, and every line now shows its age when the checks ran ("Last heard 4 seconds ago"), not the clock time. `@buffcore/payments` adds "Stripe events": when the worker last read them (down after 5 minutes without a read, off while payments are off). Additive: a product's test that builds an `OpsStatus` adds `modules: []`.
|
|
1366
|
+
- **Fixed: `BUFFCORE_VERSION` is the release installed** (BuffApe's request): it reads `@buffcore/server`'s own `package.json` (0.7.2 read `0.6.0`), and a prerelease counts as its release in `requires.buffcore` ranges. `@buffcore/feedback`, `@buffcore/payments` and `@buffcore/waitlist` declare `>=0.7.0 <0.8.0` (they declared `>=0.6.0 <0.7.0`), and a test fails when a release leaves the range of an extension BuffCore ships. An extension that widened its range to start on 0.7.x can narrow it.
|
|
1367
|
+
- **`ape check secrets`, in every product's `pnpm lint`, and a secret scan in `ape build web|android|ios`** (BuffApe's BR10): a private key block, a provider's live key or a password in a URL (to a host other than this computer, a container or an example name) in a file git lists, or in the JavaScript a build made, fails, naming the file and the rule, never the value. The rules are `ape check public`'s, now one list that also catches passwords in URLs; test-mode and publishable keys match none, and only `secrets-allow.txt` (one value a line, a protected path) lists any other public value ([AI_NATIVE.md](docs/AI_NATIVE.md)). A phone build first bundles the app's JavaScript into `android/bundle/` or `ios/bundle/` and reads it, so a leak stops it before Docker, Expo's service or the Mac.
|
|
1368
|
+
|
|
1369
|
+
**Upgrade notes** (every product): add `&& ape check secrets` to the root `lint` script, `'/secrets-allow.txt'` to `agents.protected` in `buffcore.config.ts` (then `pnpm ape agents write`), as `ape create` writes them. If `pnpm lint` then fails, move each value it names into `.env` (never committed) and rotate it, since git's history keeps it; a fake in a test can be built from parts, and a value public by design goes in `secrets-allow.txt`. `ape build` can fail the same way on the app's bundle, an `EXPO_PUBLIC_` setting's value included: keep secrets on the server. A product's own test that builds a `SignInOptions` or an `OpsStatus` by hand adds `leakedPasswords: 'refuse'` or `modules: []`.
|
|
1370
|
+
|
|
1371
|
+
## v0.7.2 (2026-10-23)
|
|
1372
|
+
|
|
1373
|
+
What a tutoring app's upgrade to v0.7.0 and a first sign-up found: `ape upgrade` prints v0.7's notes; a live session for a profile needs its required consents whoever starts it, and withdrawing one ends its sessions; seed entries for a PIN and a consent; the staff screen; profile mode's settings and a sibling service's credentials; sign-up keeps its step when the tab comes back. `ape upgrade --to 0.7.2`.
|
|
1374
|
+
|
|
1375
|
+
- **Fixed: sign-up, sign-in and password reset keep their step and fields when the tab comes back into view.** Returning to the tab asks who is signed in again, and while nobody is, that read as a fresh load: the shell showed its loading state and dropped the form (on the email code step, back to sign-in). It now keeps the form on screen.
|
|
1376
|
+
|
|
1377
|
+
### What a tutoring app's upgrade found (round 8)
|
|
1378
|
+
|
|
1379
|
+
- **`ape upgrade --to` prints every crossed release's upgrade notes again:** it read only a `### Upgrade notes` heading (the form up to v0.6), so from v0.6.x to v0.7.x it said "No upgrade notes" while v0.7.0 has 28 groups, each a bold `**Upgrade notes** (every product):` or ``(`feature`):`` line in its subsection. It now reads both forms.
|
|
1380
|
+
- **Two upgrade notes added to v0.7.0** (so `ape upgrade` shows them to anyone crossing it): `ape` loads every product's code with Node's type stripping, and a product's own view-test config inlines BuffCore as `viewTests()` does.
|
|
1381
|
+
|
|
1382
|
+
### The app shell (round 8)
|
|
1383
|
+
|
|
1384
|
+
- **The web app signed in only as staff says so:** an operator signed in to the console (the API's cookie is shared on the web) with no member account of their own now sees "You're signed in as staff" with Sign out and, given `createAppShell({ console: '<the console's address>' })`, Open the admin console (`StaffView`, in English and Spanish), instead of the product's member screens with nothing to load.
|
|
1385
|
+
- **`SettingsScreen` works in profile mode:** it names the profile on the "Signed in as" line, keeps a language choice on this device only (a profile can't save the member's), and signs out to the picker; before, it crashed (`useMe`).
|
|
1386
|
+
- **A product's own services get a device's credentials:** `createAppShell({ api: { baseUrl, services: ['<speech service>'] } })` (the client's `services`), then `api.fetch(url, init)` sends those addresses the same credentials as the API gets, a paired device's grant in profile mode included; any other address throws before anything is sent.
|
|
1387
|
+
- **Docs:** `<AppShell>` goes in each route group's layout, not at the router's root, where the picker unmounts the stack and the address jumps (THEMING_AND_UI.md).
|
|
1388
|
+
|
|
1389
|
+
### Consent and seeds (round 8)
|
|
1390
|
+
|
|
1391
|
+
- **A live session for a profile needs its required consents, whoever starts it** (a tutoring app's request): `startSession` refuses a profile that lacks one with 403 `consent_required` (`profileId`, `kinds`), read in the profile's own account, for a member (a parent's own device), an operator and the profile alike. Before, only a device in profile mode was checked, so a member's request started a child's session without consent. Devices, live sessions and uploads now make the one check, `refuseUnconsented` from `@buffcore/modules/consent`, with one message: "This profile needs consent from the account first." The code and details are as before.
|
|
1392
|
+
- **Withdrawing a consent ends the profile's open live sessions:** when a withdrawal leaves a profile without a required consent, realtime ends its open sessions at once, whoever started them, with the outcome `consent_withdrawn`, and closes their sockets wherever they are (4410, so the client doesn't reconnect). Before, an open session went on until it ended, and a member's could renew its ticket, though the privacy doc said withdrawal stops use at once. A failure there is reported, and the product's own `onConsentWithdrawn` still runs.
|
|
1393
|
+
- **Seeds can prepare a household for profile mode** (a tutoring app's request): `seedPin(em, app, accountId, pin)` from `@buffcore/modules/devices` sets an account's PIN, and `seedConsent(em, app, { accountId, profileId?, kind, givenBy, locale? })` from `@buffcore/modules/consent` records a consent, each through the same checks and writes as a member's own change and give (the PIN hashed; the live legal text), without the fresh sign-in, the email or the receipt. A seeded record's method and reference are `seed`, which no product method may be named; a record already in force is left alone. Both throw in production. The playground's `household` scenario (`ape seed household`, after `minimal`) uses them.
|
|
1394
|
+
|
|
1395
|
+
**Upgrade notes:**
|
|
1396
|
+
|
|
1397
|
+
- **`consent`:** a product whose catalog overrode `devices.errors.consentRequired` or `uploads.errors.consentRequired` overrides `consent.errors.profileRequired` instead; those two keys are gone. A product route that called `requireConsent` before `startSession` only to close this gap (a tutoring app's tutor route) may drop that call.
|
|
1398
|
+
- **`realtime`:** a session may now end with BuffCore's outcome `consent_withdrawn`, which the product didn't set; a product that shows or counts outcomes names it.
|
|
1399
|
+
- **`consent`:** a consent method may no longer be named `seed` (BuffCore's, like `test`); a product with one renames it.
|
|
1400
|
+
|
|
1401
|
+
## v0.7.1 (2026-10-23)
|
|
1402
|
+
|
|
1403
|
+
What the founder eval's re-run found: the docs answer its guesses, and six fixes. A tutoring app moves to it from v0.7.0 with `ape upgrade --to 0.7.1`.
|
|
1404
|
+
|
|
1405
|
+
- **Docs close the founder eval's guesses (round 7):** the answers a newcomer had to guess are now in the doc or skill that owns them: the registry without touching `~/.npmrc` (README), the workbench's folded rail, brand colors by Neutral's pattern, where the plan's commits go, the console's screens being prototyped too, formatting before the snapshot, a price as a prop before payments exist, tables keeping plain names while migrations are namespaced, asking another module (`subscriptionOf`) and reading an extension's README, sign-up being in every product, the composition's `catalogs`, testing a route file, an existing Stripe lookup key, an `http://` bucket, and who runs `ape deploy`.
|
|
1406
|
+
|
|
1407
|
+
### Founder eval fixes (round 7)
|
|
1408
|
+
|
|
1409
|
+
- **A product's Docker services get a fixed network, `198.18.<block>.0/24`,** declared in `infra/docker/compose.yml` from its port block, instead of whatever Docker picked: on a crowded machine Docker gave one a `/20` of the 192.168 range that covered the LAN, so containers couldn't reach a package registry on it and `ape deploy` and `ape build android` failed with pnpm timeouts far from the cause. `198.18.0.0/15` is reserved for benchmarking (RFC 2544), so no home or office network and none of Docker's own pools use it.
|
|
1410
|
+
- **On Windows, `ape deploy`'s time limit stops `docker build` with everything it started:** before, it stopped `docker build` but left its `docker-buildx.exe` running, holding the build cache, so the next deploy hung.
|
|
1411
|
+
- **`ape build android` names what failed:** installing the packages (pnpm, with a hint about the package registry), `expo prebuild`, Gradle, or Docker itself (with its exit code), from the step that failed; before, it always said "see what Gradle said above", also when pnpm timed out on the registry or Docker Desktop stopped.
|
|
1412
|
+
- **The app's `package.json` says `"type": "module"`,** so `ape i18n check` no longer prints Node's `MODULE_TYPELESS_PACKAGE_JSON` warning when it reads the app's catalog; its two CommonJS configs are `babel.config.cjs` and `metro.config.cjs` (Expo and Metro find either name).
|
|
1413
|
+
- **A design component's showcase can use `t()` in a new product:** the root `package.json` from `ape create` declares `@buffcore/i18n` (at the app's version) beside `@buffcore/ui`, so `design/` resolves `@buffcore/i18n/react` without an edit to that protected file (before: `TS2307: Cannot find module '@buffcore/i18n/react'`).
|
|
1414
|
+
- **The admin `Switch` shows its label beside itself** when it isn't in a `SettingRow` (in a row, the row's label names it, as before), and clicking the words toggles it; before, its `label` was only its accessible name, so a switch outside a row showed no words and no check noticed.
|
|
1415
|
+
|
|
1416
|
+
**Upgrade notes** (every product):
|
|
1417
|
+
|
|
1418
|
+
- **Add the network to `infra/docker/compose.yml`,** at its end, with your port block (the first two digits of your ports, `44` for 4400-4499), then `pnpm services:down` and `pnpm services:up` (the volumes, and so the data, stay):
|
|
1419
|
+
|
|
1420
|
+
```yaml
|
|
1421
|
+
networks:
|
|
1422
|
+
default:
|
|
1423
|
+
ipam:
|
|
1424
|
+
config:
|
|
1425
|
+
- subnet: 198.18.44.0/24
|
|
1426
|
+
```
|
|
1427
|
+
|
|
1428
|
+
- **A showcase that uses `t()`:** add `"@buffcore/i18n"` to the root `package.json`'s `dependencies`, at the version `apps/app/package.json` has, then `pnpm install`. The root `package.json` is a protected path, so a person merges that change.
|
|
1429
|
+
- **Optional, to silence the warning:** add `"type": "module"` to `apps/app/package.json` and rename `apps/app/babel.config.js` and `apps/app/metro.config.js` to `.cjs` (both, in the same change: as `.js` they would then load as ES modules and fail).
|
|
1430
|
+
|
|
1431
|
+
## v0.7.0 (2026-10-23)
|
|
1432
|
+
|
|
1433
|
+
Milestones 1 and 2: the kernel and its extension format, and the free edition (the design system, containers and deploying a whole app, the workbench, `ape build`, sign-up and sign-in, payments, the waitlist, the admin screens F2 left, rights, limits for coding agents, refactors and errors as changes, `ape mcp` for the chain). A tutoring app moves to it from v0.6.1 with `ape upgrade --to 0.7.0`.
|
|
1434
|
+
|
|
1435
|
+
### Founder eval fixes (round 6): the dev loop
|
|
1436
|
+
|
|
1437
|
+
- `ape create` makes a valid Android package and iOS bundle ID from any name it accepts: `com.example.acme2` for `acme-2` (Gradle refused `com.example.acme-2`). A product made earlier with a dash in its name: remove the dashes from `android.package` and `ios.bundleIdentifier` in `apps/app/app.json`.
|
|
1438
|
+
- A product made with an installed `ape create` from a private registry gets an `.npmrc` naming that registry for `@buffcore` (the one the user's npm config names; nothing for npm's public registry), so `pnpm install` works in a fresh clone, CI and the server's image build. A product made earlier: add `@buffcore:registry=<url>` to its `.npmrc`.
|
|
1439
|
+
- `design/components/` can import `@buffcore/ui`, `@buffcore/admin-shell`, React and React Native in a product installed from a registry (before: `TS2307: Cannot find module '@buffcore/ui'`, as pnpm hoists nothing to the root): the product's root `package.json` declares them, at the app's and the admin's versions. A product made earlier: add `@buffcore/ui`, `@buffcore/admin-shell`, `react`, `react-dom`, `react-native`, `react-native-svg`, `react-native-unistyles` and (dev) `@types/react` to its root `package.json` at its apps' versions, then `pnpm install`; drop a `public-hoist-pattern` added for this.
|
|
1440
|
+
- `ape prototype snapshot --scene <key>` replaces only that scene's entries and screenshots in the commit's `report.json`; the other scenes' stay (before, it replaced the whole report and deleted their screenshots). The report keeps its one-scene mark until it holds every scene again.
|
|
1441
|
+
- **`ape stop` stops everything `ape dev` started, workers included,** each with its whole process tree, also when `ape dev`'s terminal was closed first (`ape dev` records what it started in `.ape/dev.json`). It says stopped only once those processes are gone; else it names what still runs and exits 1. The workbench's Stop shows the stack stopped only once its servers no longer answer, with `ape stop`'s output.
|
|
1442
|
+
- `ape add` and `ape remove` refuse while this checkout's `ape dev` runs, before changing anything, naming `ape stop` (on Windows `pnpm install` failed midway with `ERR_PNPM_EPERM`, leaving `node_modules` half-installed).
|
|
1443
|
+
|
|
1444
|
+
### Deploying a whole app (round 6)
|
|
1445
|
+
|
|
1446
|
+
- **`ape deploy` serves the web app.** The image carries the app's web export (as `ape build web` makes it, with a stand-in API address that deploy writes as the server's when it copies the files out, so one image still runs on staging and production), and the server's Caddy serves it at `APE_APP_URL` with HTTPS, beside the console and the API. One deploy and one rollback for all three. `APE_APP_URL` is `https://<address>:8443` unless the settings file names another host or port on the server; setup opens that port. A phone build calls the same API: `APE_API_URL=https://<address> pnpm ape build android`.
|
|
1447
|
+
- **A failed first deploy leaves nothing running:** with no previous image to go back to, it stops and removes what it started, empties the console's and the web app's folders, keeps the logs in `/srv/<product>/failed-deploy.log` and says so (`failed`); the next deploy is a first deploy again, never `unchanged`. A first deploy stopped before restarting (a migration) no longer leaves the product's image tagged, so setup run again starts nothing.
|
|
1448
|
+
- **The bucket:** `ape server setup` says what the bucket for uploads and backups is and where to get one (S3-compatible, at another provider than the server's, so backups are off-site; nothing makes it), and checks it answers to the key before changing anything: a missing bucket or a wrong key is refused, one this computer can't reach is a warning.
|
|
1449
|
+
|
|
1450
|
+
**Upgrade notes** (every product):
|
|
1451
|
+
|
|
1452
|
+
- **Run `ape server setup` again** before the next deploy of a product with a web app (`app/` or `apps/app/`): `ape deploy` refuses a server whose Caddyfile doesn't serve it yet, saying so.
|
|
1453
|
+
- **`APE_APP_URL`** in the settings file must now be the web app's own HTTPS address on the server, another host or port than the console's (a host's DNS pointed at the server too); leave it out for `https://<address>:8443`. A web app you served elsewhere is now served by the server: take that host's DNS to the server, or remove the line. Members' links in emails use the new address.
|
|
1454
|
+
|
|
1455
|
+
### Founder eval rehearsal fixes (round 5)
|
|
1456
|
+
|
|
1457
|
+
- **`ape build android` bakes the API's address in** (`EXPO_PUBLIC_API_URL`, from the environment or `.env`), as the web and Mac builds already did, so a release APK no longer talks to localhost.
|
|
1458
|
+
- **`ape link` and `ape upgrade` say the same as the docs:** commit with `APE_ALLOW_LINKED=1` until BuffCore is published, then `ape unlink` first.
|
|
1459
|
+
- `ape build android` and `ape build ios` refuse at once (exit 2) while the product is linked to BuffCore's source (`ape link`), naming `ape unlink` or a registry install; before, they ran for long and failed on `@buffcore/app-shell`. The web build still runs linked.
|
|
1460
|
+
- `ape create` writes generated development secrets (`APE_AUTH_SECRET`, `APE_ENCRYPTION_KEY`) into `.env` only; the committed `.env.example` holds example values, which the production check refuses. A product made earlier: replace the two values in its `.env.example` with any example value (as in the template), keeping `.env`'s.
|
|
1461
|
+
- One product per server, said up front: `ape server setup` and `ape deploy` refuse a server that runs another product (another `/srv/<name>`), naming it, before changing anything; they take the server's ports and setup its firewall and SSH settings. The same product again is unchanged.
|
|
1462
|
+
- The snapshot's browser installs with one command that works in a product made by `ape create` too: `pnpm dlx playwright-core@1.63.0 install chromium-headless-shell` (the CLI's version; `ape prototype snapshot` names it when the browser is missing). `pnpm exec playwright-core …` failed there, since `playwright-core` is the CLI's dependency, not the product's.
|
|
1463
|
+
- **`payments`:** `@buffcore/payments/app` exports the billing route `getBilling`, its shapes `Plan`, `Price` and `Subscription`, and `priceText`, so a product shows its plans and prices outside the billing screen (`useRoute(getBilling, { params: { accountId } })`). Nothing to upgrade.
|
|
1464
|
+
|
|
1465
|
+
### `ape mcp` for the chain, in all three agents (W8)
|
|
1466
|
+
|
|
1467
|
+
- `ape mcp` gains `change_show`, `change_check`, `design_check`, `design_diff`, `prototype_snapshot`, `prototype_data`, `services_list` and `server_deploy`: each runs the CLI's command with `--json` and returns its JSON. Those that only read are marked read-only, so Codex runs them without asking. `search_docs` now finds a new product's skills before it has a `docs/` folder.
|
|
1468
|
+
- `ape agents write` copies `.mcp.json`'s servers into `.codex/config.toml` and `opencode.json`, so Codex and OpenCode start `ape mcp` too.
|
|
1469
|
+
- The skills `ape-plan-change` and `ape-prototype` follow the chain (plan, design system, prototype, build) and name the tools for each step; the skills test fails on an `ape mcp` tool that doesn't exist.
|
|
1470
|
+
|
|
1471
|
+
**Upgrade notes** (every product):
|
|
1472
|
+
|
|
1473
|
+
- **Agents' settings:** run `pnpm ape agents write` and commit `.codex/config.toml` and `opencode.json`, or `ape agents check` (in `pnpm lint`) fails on them.
|
|
1474
|
+
|
|
1475
|
+
### The docs answer the founder eval's gaps (round 6)
|
|
1476
|
+
|
|
1477
|
+
- Docs only, nothing to upgrade: making a product from a published release (README), setting up the design system by hand (`ape-design-system`), which screens need a prototype and which commit is approved (`ape-prototype`), what "paid up" means for a member's plan (`@buffcore/payments`' README), staging or production, the email service a server needs for sign-up, the first Owner (ARCHITECTURE.md, IDENTITY_ACCESS.md, the product's README), and saying "merge it" to the agent for a held merge (`ape-plan-change`, the product's `AGENTS.md`). The product's `AGENTS.md` and README change for new products only.
|
|
1478
|
+
|
|
1479
|
+
### Coverage floors in the merge's hold (W11)
|
|
1480
|
+
|
|
1481
|
+
- `vitest.config.ts` is no longer a protected path, so a merge that raises coverage floors passes `ape agents held`; one that lowers or removes a floor (`lines`, `branches`, `functions`, `statements`) is held for a person, naming the file and the floor. A product gets the same by taking `'vitest.config.ts'` out of its `agents.protected` and running `pnpm ape agents write`.
|
|
1482
|
+
|
|
1483
|
+
### Refactors and fixes as changes (W12, W13)
|
|
1484
|
+
|
|
1485
|
+
- **A refactor is a change type (W12):** `type: refactor`, whose `ape change <id> --check` first proves the behavior unchanged against its base (its merge base with `main`, or `--base <ref>`): `ape manifest --json`, every route's schemas and every package's exports identical, no migration added or changed, no more files over the size limit or reaches past a boundary, `pnpm test` passing and no package's coverage below the base's. Nothing runs it unless a person asks; the `ape-plan-change` skill says how.
|
|
1486
|
+
- **An error becomes a fix change (W13):** `ape change new --from-error <group>`, and the `ape mcp` tool `change_from_error`, write a `fix` change file from an error group: what failed, where, how often, since when, and its top frames; scrubbed, with no person beyond an ID. The change header gains `error` (the group's id), and `recent_errors` now returns each group's `id`.
|
|
1487
|
+
|
|
1488
|
+
### Renamed: BuffCore and `ape`
|
|
1489
|
+
|
|
1490
|
+
The project's working names are now final: **BuffCore**, and the CLI is **`ape`** (2026-10-15).
|
|
1491
|
+
|
|
1492
|
+
**Upgrade notes** (every product): a product made before the rename moves its packages, CLI, configuration file, environment variables, local folders, skills and headers to the new names. The database needs nothing by hand: the next `ape migrate` renames BuffCore's migrations table once and keeps its rows, so nothing runs twice.
|
|
1493
|
+
|
|
1494
|
+
### The prototype is read-only (W3)
|
|
1495
|
+
|
|
1496
|
+
Free BuffCore's prototype is the viewer, `ape prototype snapshot` with its checks, a commit's data model and the export of a commit ([PROTOTYPE.md](docs/PROTOTYPE.md)). Versions, their review and approval leave for the cloud. A commit is what gets reviewed: a person approves it by its snapshot report, and the commit or pull request records it.
|
|
1497
|
+
|
|
1498
|
+
- **`ape prototype data --against <commit>`** compares the sample data's model with a commit's (the `data.json` of the newest snapshot that commit holds, read from git: no database), and **`--check`** exits 1 when anything changed, so a product checks that what's built still matches the approved commit. Without `--against`, it lists the model alone.
|
|
1499
|
+
- **`ape prototype export [<commit>]`** exports the commit checked out (by default `HEAD`) to `dist/prototype-<commit>/`, with `export.json` naming the commit.
|
|
1500
|
+
|
|
1501
|
+
**Upgrade notes** (every product):
|
|
1502
|
+
|
|
1503
|
+
- **The `prototype` module is gone** from the core composition, with `@buffcore/modules/prototype` (`submitVersion`, `findVersion`) and its development route `GET /dev/prototype/snapshots/*`. It had no tables of its own: past versions stay as content rows of kind `prototype`, which the console now shows as JSON. Decide or leave any set of kind `prototype` still waiting in the inbox; nothing to migrate.
|
|
1504
|
+
- **`ape prototype submit` is gone.** Commit the snapshot's `report.json` and `data.json` and have the commit approved; record the approval in the commit or pull request.
|
|
1505
|
+
- **`ape prototype export <version|approved>` → `ape prototype export [<commit>]`;** `version.json` → `export.json` (`commit`, `exportedAt`). An older export folder is refused as a target: delete it or name another with `--out`.
|
|
1506
|
+
- **`ape prototype data`:** its `--json` drops `approved` for `against` (`commit`, `snapshot`, or `null`), and `changes` is empty without `--against`. It no longer needs the development database.
|
|
1507
|
+
- **The console:** the built-in `prototype` content kind and its set review (screenshots beside the approved version's) are gone, with their `admin.inbox.prototype.*` strings. `ContentKindView.Compare` stays for a kind that brings its own. `@buffcore/contracts/prototype` keeps `PROTOTYPE_CHECKS` and `PrototypeProblem` (the report's problems) and drops `PrototypeContent` and `zSnapshotPath`.
|
|
1508
|
+
|
|
1509
|
+
### Sign-up and sign-in, with Apple and Google (E2)
|
|
1510
|
+
|
|
1511
|
+
Sign-up open to anyone, and Sign in with Apple and Google, built to match the approved `signup-*` scenes with the approved answers ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#flows)).
|
|
1512
|
+
|
|
1513
|
+
- **Sign-up asks for no invite code.** `POST /v1/sign-up` takes `name`, `email`, `password`, `locale` and the bot check's answer, `check`. Each person who signs up (with email, Apple or Google) gets their own account, as its owner. An address that already has an account gets the same answer and an email to sign in or reset the password, and nothing is made (the fix from `next/signup`; the email is `accountExists` in `@buffcore/emails`).
|
|
1514
|
+
- **A bot check on sign-up:** Cloudflare Turnstile behind identity's `BotCheck`, with `TURNSTILE_SITE_KEY` and `TURNSTILE_SECRET_KEY` (development uses Cloudflare's published test keys while they are unset). A missing or failed answer is refused (`bot_check_failed`) before anything is made.
|
|
1515
|
+
- **Leaked passwords are refused** on sign-up, a reset and a change (`password_leaked`, `PASSWORD_LEAKED`): Have I Been Pwned by k-anonymity, behind `LeakCheck`.
|
|
1516
|
+
- **Five wrong passwords pause password sign-in** for that address for 15 minutes (429 `PASSWORD_LOCKED` with `details.minutes`), any address alike; a reset ends the pause at once.
|
|
1517
|
+
- **Sign in with Apple and Google,** set up, tested and turned on in Admin › Services' new sign-in channel; Google only while Apple is on, and Apple stays on while Google is (`ServiceDef.needs`, `ServiceRow.needs`, 409 `service_needs` / `service_needed`). The app opens `GET /v1/sign-in/<provider>/start?to=` in the browser; a phone comes back to `<product>://` with a one-time code it trades for its token (`POST /v1/sign-in/finish`), bound to the app that started by PKCE (S256: the start's `challenge`, the finish's `verifier`). `GET /v1/sign-in/options` says which are on, and the bot check's site key.
|
|
1518
|
+
- **The app shell wires it:** `SignIn` offers sign-up and the providers on the way in (`withSignUp`) and shows the pause; `SignUp` runs the form, the bot check, the emailed code and done; `createAppShell({ welcome })` shows the product's own first screen after sign-up (the playground's first note). The forgot-password screen says when a new password was found in leaks.
|
|
1519
|
+
- **The playground** turns them on in development from its `.env` (`PLAYGROUND_APPLE_*`, `PLAYGROUND_GOOGLE_*`; `ape seed` sets them up, off).
|
|
1520
|
+
|
|
1521
|
+
**Upgrade notes** (every product):
|
|
1522
|
+
|
|
1523
|
+
- **Sign-up no longer takes an invite code:** `inviteCode` is ignored, and anyone can sign up. Invite codes can still be made in the console, but nothing reads them.
|
|
1524
|
+
- **Turnstile:** production refuses to start (and `ape server setup` to write its settings) without `TURNSTILE_SITE_KEY` and `TURNSTILE_SECRET_KEY`: add them to `.env.production` (a Turnstile widget with the app's and the API's hosts). Staging may run without them, and then sign-up has no bot check. An app calling `POST /v1/sign-up` itself sends the widget's answer as `check`.
|
|
1525
|
+
- **`@buffcore/app-shell` has two new optional peers:** `expo-web-browser` (Apple and Google on a phone) and `react-native-webview` (the bot check on a phone). Install both in the app (`npx expo install expo-web-browser react-native-webview`). The app's scheme must be the product's name (`ape create` sets it).
|
|
1526
|
+
- **`ServiceRow` gains `needs`,** and `SERVICE_CHANNELS` gains `sign-in`: a console or test that lists services sees Sign in with Apple and Google (off).
|
|
1527
|
+
- **The form parser moves:** identity's plugin now takes form-encoded bodies (Apple's callback, OAuth's token endpoint) for every product, not only with `mcp-server`.
|
|
1528
|
+
- **Apple and Google:** register `<API>/v1/auth/callback/apple` and `…/google` as their return addresses.
|
|
1529
|
+
|
|
1530
|
+
### iOS builds through any builder (E6)
|
|
1531
|
+
|
|
1532
|
+
- **`ape build ios --builder buffape|expo|mac`** ([AI_NATIVE.md](docs/AI_NATIVE.md)). The builder comes from `--builder`, else `APE_IOS_BUILDER`, else `buffape`, BuffApe's cloud, which refuses (exit 2) until it opens. **expo** is Expo's build service with your own login, as before. **mac** sends the commit to your own Mac running the build agent (`APE_IOS_BUILDER_URL`, `APE_IOS_BUILDER_TOKEN`). The Mac signs with its `eas login`; `--simulator` makes an unsigned simulator build instead. `--json` and the exit codes are unchanged.
|
|
1533
|
+
- **`@buffcore/build-agent`**, a new package with no BuffCore dependency ([its README](packages/build-agent/README.md)). It is a small service for a Mac that runs one iOS build at a time over HTTP, behind a bearer token. Its engines are `eas-local` (`eas build --local`) and `simulator` (prebuild, CocoaPods, `xcodebuild`). The queue survives restarts; the log is live and redacts secrets; a failure comes back with its exit code and error lines. Its client, `build-agent submit`, sends any project's folder or archive.
|
|
1534
|
+
|
|
1535
|
+
**Upgrade notes** (every product):
|
|
1536
|
+
|
|
1537
|
+
- **`ape build ios` now builds on BuffApe's cloud by default,** which refuses until it opens. To keep building on Expo's service, set `APE_IOS_BUILDER=expo` or pass `--builder expo`. `--local` still builds with Expo's tools on this Mac.
|
|
1538
|
+
|
|
1539
|
+
### Approvals, rules and failed jobs in the console (E5)
|
|
1540
|
+
|
|
1541
|
+
- **Automation › Approvals** replaces Inbox › AI drafts: the calls an action's rule held for a person, who asked by name and through which door, and why each waits. Open one to edit (when its rule allows), approve or decline it, each asked first; approved, it runs once as the person who asked.
|
|
1542
|
+
- **Automation › Rules** replaces Dials: every action's rules in words, edited in a sheet and saved, or set back to the package's defaults, asked first. An always-human action never offers "runs at once" to machines or agents.
|
|
1543
|
+
- **Operations › Failed jobs:** the dead-letter list `ape jobs` shows, with Run again and Drop, each asked first. `GET /v1/admin/ops/jobs`, `POST /v1/admin/ops/jobs/:jobId/retry` and `…/drop` (Owner; not offered to machines).
|
|
1544
|
+
- **The audit log names who asked and who approved** an approved call: `AuditRow` gains `approvedBy`.
|
|
1545
|
+
- **BC-D23's follow-ups:** approving re-checks that who asked is still there (an API key live, an operator active, a member signed up), else `409 requester_gone` and the call stays open; an approved AI reply closes its report as the approver, not the agent.
|
|
1546
|
+
- **In the answers:** `RuleRow` gains `fields` (the input's plain values a condition can name), `DraftRow` gains `heldBy` (the rule that held the call). The rules package offers the hook point `rules.requesterLive`.
|
|
1547
|
+
|
|
1548
|
+
**Upgrade notes** (every product):
|
|
1549
|
+
|
|
1550
|
+
- **Console addresses:** `/inbox/drafts` → `/automation/approvals` (`?item=<id>` still opens one), `/automation/dials` → `/automation/rules`. A link a product keeps to either changes. The dials' and drafts' routes stay.
|
|
1551
|
+
- **A held call whose requester is gone** no longer runs when approved: a product that approves calls by hand in tests seeds who asked (an active operator, a signed-up member, a live key).
|
|
1552
|
+
|
|
1553
|
+
### `ape build` (E1)
|
|
1554
|
+
|
|
1555
|
+
- **`ape build [web|android|ios] [--json]`,** web by default, into `dist/build-<commit>/` ([AI_NATIVE.md](docs/AI_NATIVE.md)). **web:** the app's Expo web export and the admin console's production build, without the prototype. **android:** an APK built in Docker on a pinned image, signed for testing unless `APE_ANDROID_KEYSTORE` gives the product's keystore. **ios:** Expo's build service with your own Expo login (`--local`: this Mac with Xcode). `--json` prints `{ ok, platform, commit, changed, folder, outputs, durationMs }`; exit 0 built, 1 a build failed, 2 couldn't run (Docker not running, no Expo login, a Mac build off a Mac).
|
|
1556
|
+
|
|
1557
|
+
### The design system (W5)
|
|
1558
|
+
|
|
1559
|
+
A product's design system lives in one folder, `design/`: its theme, its own components and their showcase ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md#the-design-system-design), the `ape-design-system` skill).
|
|
1560
|
+
|
|
1561
|
+
- **The showcase:** one scene per component with every state side by side, composed into the prototype, so the snapshot's checks cover every state. BuffCore's components have showcase views, `@buffcore/app-shell/showcase` (the app's) and `@buffcore/admin-shell/showcase` (the admin's); a product made with `ape create`, and the playground, start with their scenes.
|
|
1562
|
+
- **`ape design check [--json]`** fails on raw colors, fonts and sizes in the screens and `design/components/`, on a component drawn from outside the design system, and on a product component with no showcase scene.
|
|
1563
|
+
- **`ape design diff --against <commit> [--json]`:** the tokens (per theme and mode) and components changed since that commit's snapshot, and the scenes they reach.
|
|
1564
|
+
- **The hash:** `ape prototype snapshot` writes the design system's hash into `report.json` (`design`) and its resolved tokens and component hashes into `design.json`, committed beside it. `--scene 'design-*'` snapshots the scenes a key starts.
|
|
1565
|
+
- **Change files** take `type: design`, for a new component as its own change.
|
|
1566
|
+
|
|
1567
|
+
**Upgrade notes** (every product; `ape design` and the snapshot's `design.json` need the first two):
|
|
1568
|
+
|
|
1569
|
+
- **The theme moves to `design/theme.ts`,** exporting `theme` (`export const theme: Theme = themes.neutral;`, or your `extendTheme`). `apps/app/src/themes.ts` calls `configureThemes(theme)` with it, `apps/admin/src/main.tsx` passes it to `createAdmin` (`theme`), and `prototype/scenes.ts` names it (`theme`). Add `@buffcore/tokens` to the root `package.json`'s dependencies: `design/` imports it.
|
|
1570
|
+
- **The showcase:** add `design/showcase.ts` exporting `showcase` (copy the template's: BuffCore's components' scenes) and `...showcase` to `prototype/scenes.ts`'s scenes; export the views with `export * from '@buffcore/app-shell/showcase'` in `apps/app/src/prototype/views.ts` and `export * from '@buffcore/admin-shell/showcase'` in `apps/admin/src/prototype/views.ts`. Move your own components to `design/components/`, each with a `<Name>Showcase` scene.
|
|
1571
|
+
- **Metro watches `design/`:** add `'design'` to `rootFolders` in `apps/app/metro.config.js`.
|
|
1572
|
+
- **Commit `design.json`** with each snapshot's `report.json` and `data.json`.
|
|
1573
|
+
|
|
1574
|
+
### The workbench (W10)
|
|
1575
|
+
|
|
1576
|
+
- **`ape ui [--port <n>] [--no-open]`** opens the workbench ([WORKBENCH.md](docs/WORKBENCH.md)): a page on your own computer whose buttons run `ape dev` and `ape stop`, each change's checks, `ape design check`, the prototype's snapshot, `pnpm verify`, migrations and seeds, `ape build`, `ape server setup`, `ape deploy` and the backups, each with its result. It listens on `127.0.0.1` only, refuses any other `Host`, and needs the token in the address it opens on every API call. Nothing for a product to change.
|
|
1577
|
+
- **`@buffcore/admin-shell/workbench`:** the workbench's view (`WorkbenchView`) and page (`WorkbenchPage`), with their English and Spanish strings (`workbenchCatalog`). `ape ui`'s API (its paths and token header) is `@buffcore/contracts/workbench`, so the CLI needs the admin shell only to build the page, never at run time.
|
|
1578
|
+
|
|
1579
|
+
### Containers in `processes` (W6)
|
|
1580
|
+
|
|
1581
|
+
A product declares what runs beside its API once, in `buffcore.config.ts`'s `processes`: Node processes as before, and now containers, with their sizes, counts and data ([FEATURES.md](docs/FEATURES.md#one-file-says-what-a-product-uses), the `ape-add-service` skill).
|
|
1582
|
+
|
|
1583
|
+
- **A container:** an image pinned by its digest (`image`) or a folder with a Dockerfile (`build`, `services/<name>`); a health check run inside it (`health`); a size (`size: { cpus, memoryMb }`, its limit); a port on 127.0.0.1 only (`port`); a volume where it keeps data (`volume`, the Docker volume `<product>-<name>`); a count (`count`, how many in production). Any process may give a size and a count.
|
|
1584
|
+
- **One declaration, run everywhere:** `ape dev` starts the containers with the Docker services (written into `.ape/compose.yml`, the same Compose project), waits until each is healthy and shows its output as `[name]`; **`ape services up`** does the same for CI and `pnpm services:up`; `ape server setup` writes them into the server's stack with their sizes, counts and volumes; `ape deploy` builds each Dockerfile's image from the commit and ships it with the product's, keeps the one that ran for a rollback, and never removes a volume.
|
|
1585
|
+
- **Backups hold the volumes:** `ape backup` adds each container's volume as a tar; `ape backup test` unpacks each into a scratch volume and checks its size (`--json` adds `volumes` and `volumeBytes`); `ape backup restore` puts back a volume that is empty or missing, never over one that holds data.
|
|
1586
|
+
- **`ape services [--json]`:** every process with its size and count, and the totals for development and production; `ape manifest` carries the same as `services`.
|
|
1587
|
+
- **Change files** take `type: hosting` and `touches: services`, resolved against `ape services`.
|
|
1588
|
+
|
|
1589
|
+
**Upgrade notes** (every product):
|
|
1590
|
+
|
|
1591
|
+
- **`ProductProcess`** (`@buffcore/config`) is now `NodeProcess | ContainerProcess`: code that reads a process's `entry` checks `isContainer(process)` first. A `processes` entry with only `name` and `entry` is unchanged.
|
|
1592
|
+
- **Process names** may no longer be `postgres`, `redis`, `rustfs`, `caddy` or `ape` (the services beside the API): rename one that is.
|
|
1593
|
+
- **`ape deploy` refuses a server whose stack runs other processes than `buffcore.config.ts` declares** (a process added or removed since `ape server setup`), changing nothing (exit 2 with `--json`): run `ape server setup` there again, then deploy. Before, the new process quietly didn't run.
|
|
1594
|
+
- **A declared `size` is a limit on the server** (`cpus`, `mem_limit`), and a `count` above 1 runs that many copies; a process without them runs as before.
|
|
1595
|
+
- **Backups made now have a `volumes` part** after `files`; earlier backups are still read. A backup made now can't be read by an older `ape`.
|
|
1596
|
+
- **CI (optional):** to run your containers in CI, replace the `services:` block of `.github/workflows/ci.yml` with a step `- run: pnpm ape services up` after `pnpm install` (as `ape create` now writes it), and set `"services:up": "ape services up"` and `"services:down": "docker compose -f infra/docker/compose.yml down --remove-orphans"` in `package.json`.
|
|
1597
|
+
- **Status** lists the API and the Node processes; a container doesn't beat, so it isn't listed.
|
|
1598
|
+
|
|
1599
|
+
### Deploying in general, and a runtime ready for hosting (W7)
|
|
1600
|
+
|
|
1601
|
+
A deploy checks every process and every migration before it calls a release good, and one image runs in staging and in production ([ARCHITECTURE.md](docs/ARCHITECTURE.md#environments-and-deployment), the `ape-deploy` skill).
|
|
1602
|
+
|
|
1603
|
+
- **Every process checked:** after the API answers healthy, `ape deploy` watches the API, each Node process and each container for 15 seconds: each must be running, healthy if it has a health check, and not restarting. A worker caught in a crash loop fails the deploy, which goes back to the previous image. Each process is stopped gracefully: an init passes the stop signal on, and it has 30 seconds to finish (`init`, `stop_grace_period` in the server's compose file).
|
|
1604
|
+
- **`ape migrate check [--reads <file>]`:** pending migrations may only add. One that drops or renames a table or column the running release reads, changes such a column's type (a longer `varchar` or `text` is fine), makes it required, or adds a required column without a default to a table it reads, is refused, so going back is always safe. **`ape migrate reads`** prints what a release's entities read; `ape deploy` asks the running image, then runs the new image's check before migrating (refused: exit 2 with `--json`, nothing migrated). Without what the running release reads, everything the database has counts.
|
|
1605
|
+
- **The console reads its addresses when it starts,** from `/console.json` (`{ apiUrl, appUrl, environment }`), which Caddy answers from the server's settings; `withConsoleSettings` (`@buffcore/admin-shell`) reads it. The image names no server.
|
|
1606
|
+
- **`APE_ENV=staging`:** production's setup (secure cookies, real email and push services, no pseudo-languages, example secrets refused) with sample data (`ape seed`) and providers' test keys allowed. `ape server setup` keeps `APE_ENV=staging` from the settings file; the console shows "Staging". `productionSetup(env)` (`@buffcore/config`) says whether an environment runs production's setup.
|
|
1607
|
+
- **Realtime across several API instances:** a message logged on any instance reaches the session's socket on another, in the log's order, and a socket on one replaces or ends the session's socket on another, through one Redis channel that carries only session IDs ([REALTIME.md](docs/REALTIME.md)).
|
|
1608
|
+
- **The job queue's numbers on `/health`:** `queue: { waiting, oldestWaitSeconds }`, the ready jobs no worker has claimed and how long the oldest has waited; `null` when they couldn't be read, which never makes it unhealthy.
|
|
1609
|
+
- **`anotherInstance(t, modules)`** (`@buffcore/server/testing`): a second API instance of a test app, on the same database and Redis keys.
|
|
1610
|
+
- **Fixed:** Admin › Environment's "API environment" row read "Development" for a staging API; it now names staging ("Staging", "Preproducción"). Admin › Services already gave staging production's wording (no service on means the message fails), so it is unchanged.
|
|
1611
|
+
- **Fixed:** the image's console stage installs the API's dependencies too, so a console that imports the API's route contracts (as `ape create --example` makes it) builds.
|
|
1612
|
+
- **Fixed, from a real server's rehearsal** (the playground deploys as it is, with no workaround):
|
|
1613
|
+
- `ape` starts in the playground's image: the CLI's source runs through the `tsx` that image loads for every process (next line), so it needs none of the CLI's dev dependencies. Installed from the registry, the CLI runs its built JavaScript, without `tsx`.
|
|
1614
|
+
- The playground's image runs through `tsx` (`NODE_OPTIONS=--import=tsx`), as in development: in this repository BuffCore's packages are TypeScript source, `.tsx` included, which plain `node` can't load. A product's image is unchanged.
|
|
1615
|
+
- `ape migrate check` exits 2 when it refuses, so a deploy tells a refusal from a check that couldn't run, which now fails the deploy (exit 1) instead of calling it refused. On a server where no release runs, nothing reads the schema, so nothing is refused.
|
|
1616
|
+
- A deploy with the API stopped still counts it as the running release: it keeps its image to go back to, backs up first and checks the migrations against what it reads. It was taken for a first deploy, with no backup and no check.
|
|
1617
|
+
- `ape server setup` and `ape deploy` remove a process's container once `buffcore.config.ts` no longer declares it (`docker compose up --remove-orphans`), instead of leaving it running.
|
|
1618
|
+
- The workbench names a deploy's end from `ape deploy --json`'s `result`: rolled back (exit 1) and refused (exit 2) were swapped.
|
|
1619
|
+
|
|
1620
|
+
**Upgrade notes** (every product):
|
|
1621
|
+
|
|
1622
|
+
- **The console's addresses at run time:** in `apps/admin/src/main.tsx`, import `withConsoleSettings` from `@buffcore/admin-shell` and wrap the options: `const options = await withConsoleSettings<AdminOptions>({ apiUrl: …, appUrl: …, environment: …, … });` (as `ape create` now writes it). Then run `ape server setup` again on each server (it adds `/console.json` to the Caddyfile) before the next `ape deploy`: the image no longer carries the server's address, so a console that doesn't read `/console.json` calls `localhost`.
|
|
1623
|
+
- **The first deploy after this release builds a new image** (the image's source no longer holds the addresses), even of the same commit.
|
|
1624
|
+
- **A pending migration that takes away what the running release reads now stops the deploy:** ship the change that stops reading it first, and drop it in a later deploy (expand, then contract).
|
|
1625
|
+
- **`APE_ENV` takes `staging`:** code that reads `APE_ENV === 'production'` for production's setup should use `productionSetup(env.APE_ENV)` so staging behaves the same. The admin environment route's `environment` (`@buffcore/contracts/environment`) may be `staging`.
|
|
1626
|
+
- **`ape seed` runs in staging** too (`--reset` stays development only); still never in production.
|
|
1627
|
+
- **`developmentProviders`** (`ai`) are allowed only in development and tests now: staging refuses them as production does.
|
|
1628
|
+
- **`/health`'s answer has `queue`:** a check that compares the whole body should allow it.
|
|
1629
|
+
- **`ape migrate check` exits 2 when it refuses** (it was 1, as any failure): a script that reads its exit code treats 2 as refused and anything else but 0 as couldn't run.
|
|
1630
|
+
|
|
1631
|
+
### Rights in an account (W9)
|
|
1632
|
+
|
|
1633
|
+
Who may do what inside one account, for a product's customers (BuffApe's Owner, Builder and Viewer) ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#rights-in-an-account-w9)).
|
|
1634
|
+
|
|
1635
|
+
- **A role is a set of action keys.** Owner holds every one. The product declares the other presets, `identity: { accountRoles: { builder: [...] } }`; an account's owner changes them for that account or makes its own.
|
|
1636
|
+
- **A person holds a role on the whole account and single rights besides,** each an action or a role, on the whole account or on one part of it (a subject `{ type, id }` whose package declares it with identity's `parts`). A person alone in an account holds every right.
|
|
1637
|
+
- **One check at every door:** a route that acts on a part says so (`part: { type, param }`), and the console, the API, MCP and agents refuse its action to anyone without the right there (`403 forbidden`, `{ right }`). An API key holds its operator's rights, never more than its roles reach; an agent holds none yet. `can(ctx, key, part?)` asks ahead.
|
|
1638
|
+
- **Four actions:** `identity.list_rights`, `identity.save_role`, `identity.remove_role` and `identity.set_rights`, under `/v1/accounts/:accountId/…`. Only the list is offered to machines; changing rights is a person's, like changing a rule.
|
|
1639
|
+
- **The "Who can do what" screen** (approved) is in the console after People, for whoever may change rights in an account they're in: its people and roles by name, a person's rights or a role's actions changed in a sheet, each asked first. `list_rights` answers actions by title and, to a person (never a machine), members' and parts' names (a part type's `list`); `GET /v1/me` gains each account's `can` and the operator's `approves`, so Automation › Approvals now opens to a rule's approvers too, each listing and opening only the calls they decide (the playground's notes are its parts: `notes.delete_note`).
|
|
1640
|
+
|
|
1641
|
+
**Upgrade notes** (every product; nothing breaks):
|
|
1642
|
+
|
|
1643
|
+
- **Migrate:** `identity/0003-rights` adds `accounts.roles` and `account_members.rights` (both default empty). Every route keeps its access: only a route that names a `part` meets the rights step.
|
|
1644
|
+
- **`account_members.role` is now a role in the account:** `owner` holds every right; any other value gives the actions of the preset of that name, so declare your members' roles in `accountRoles` (a tutoring app: `guardian`) before any of your routes names a `part`.
|
|
1645
|
+
- **`GET /v1/me` only gains fields** (`accounts[].can`, `operator.approves`); a privacy export adds each member's `rights` and the account's `roles`.
|
|
1646
|
+
|
|
1647
|
+
### Extensions (F2.6, W4)
|
|
1648
|
+
|
|
1649
|
+
A package written apart from the products that compose it, which any product adds with one command ([EXTENSIONS.md](docs/EXTENSIONS.md#writing-and-installing-one-as-built-f26), the `ape-add-extension` skill).
|
|
1650
|
+
|
|
1651
|
+
- **`defineExtension`** (`@buffcore/server`) is `defineModule` plus `reads` (the sensitive kinds it holds or receives) and `hosts` (the hosts it calls). At start, its key must start all it names (tables `<key>_…`, events, jobs, strings, registry entries, routes under `/v1/ext/<key>/` and `/v1/admin/ext/<key>/`), it must answer privacy's export and delete when it has tables, declare every kind its marks and routes hold, use no `plugin` or `hooks`, and declare no more than its **grant** in `buffcore.config.ts` (`extensions: { <key>: { package, reads, hosts } }`); each problem names the extension, its package and what to do.
|
|
1652
|
+
- **`outbound(ctx)`** (`@buffcore/server`): an extension's way out, bound to its hosts, refusing any other before it sends. `ctx.extension` names the extension while its own handler or job runs.
|
|
1653
|
+
- **Screens:** a package's `./admin` entry gives the console sections (`defineAdminExtension`, `@buffcore/admin-shell`), shown after the product's: `createAdmin({ extensions })`. Its `./app` entry exports views and wired screens and its strings (`defineAppExtension`, `@buffcore/app-shell`): `createAppShell({ extensions })` and `createScene({ extensions })`; the product's route is one line.
|
|
1654
|
+
- **`ape add <name|path>`** shows what an extension asks for and asks (`--yes` when nobody can answer), writes its grant and one generated list per surface (`src/extensions.gen.ts`), and migrates. **`ape remove <name>`** takes it out, refusing while the development database holds its tables (`--drop-tables`). `ape migrate create` finds an extension's folder in its package.
|
|
1655
|
+
- **Packages a cloud adds** from outside the repository (W4): one optional, git-ignored list, `.ape/added.json`, each entry an extension's grant and its folder. The API's generated list loads them (`addedPackages`), the start check holds them like any extension, `ape check boundaries` refuses the product's imports of one, and **`ape export`** drops their tables with their own down migrations and removes the list. With no list, nothing changes.
|
|
1656
|
+
- **`@buffcore/feedback`,** the first extension and the reference: members send feedback from the app; the Owner reads and closes it in the console; a machine or an agent closes it without asking (its default rule). The playground has it installed.
|
|
1657
|
+
- **`ape manifest`:** a module's `owner` may be `extension` or `added`, and an extension has `extension` (`reads`, `hosts`).
|
|
1658
|
+
- **`ape i18n check` checks each extension the product grants** (the kernel eval's gap): the catalogs of its `./admin` and `./app` entries (`src/admin`, `src/app`, or an installed package's `dist/…`) are complete in every language the product offers, each problem naming the package and the key; a granted package that isn't installed fails. Its server strings were already checked with the server's. In BuffCore, the playground's run covers `@buffcore/feedback` and `@buffcore/waitlist`.
|
|
1659
|
+
- **Fixed:** `ape add <folder>` depends on a package of the product's workspace (a folder `pnpm-workspace.yaml` lists) as `workspace:*`, not `link:`, so the image's filtered install installs the extension's own dependencies too; a folder outside the workspace is still a link. The playground's `@buffcore/waitlist` is `workspace:*`.
|
|
1660
|
+
|
|
1661
|
+
**Upgrade notes** (every product):
|
|
1662
|
+
|
|
1663
|
+
- **To add extensions, each surface reads its generated list,** as `ape create` now makes a product: add `src/extensions.gen.ts` to `apps/api`, `apps/admin` and `apps/app` (copy them from a new product, or let `ape add` write them), then `modules: [...buffcoreModules(…), ...extensions, …your own]` in `apps/api/src/app.ts`, `extensions` in `createAdmin({ … })`, `createAppShell({ … })` and the app's `createScene({ … })`. Until then nothing changes, and `ape add` names the line each surface is missing.
|
|
1664
|
+
- **A module made with `defineExtension` now fails at start** without its grant in `buffcore.config.ts`, or when it breaks the rules above; `defineModule`'s modules are unchanged.
|
|
1665
|
+
- **`ape manifest --json`:** a program that reads `owner` meets `extension` and `added` beside `buffcore` and `product`.
|
|
1666
|
+
- **`ape i18n check` may now fail on an extension's screen strings** that a language the product offers is missing: add them to the JSON beside its English file (`src/admin/i18n/es.json`, `src/app/i18n/es.json`), or `ape i18n translate` and `pull`.
|
|
1667
|
+
- **An extension in the product's workspace added with an earlier `ape add`** is a `link:` dependency: change it to `"workspace:*"` in each surface's `package.json` and run `pnpm install`, or the deployed image leaves out its dependencies.
|
|
1668
|
+
|
|
1669
|
+
### The launch page and waitlist (E4)
|
|
1670
|
+
|
|
1671
|
+
- **`@buffcore/waitlist`,** a first-party extension ([its guide](packages/waitlist/README.md)): people join from a public launch page by email (a honeypot and a limit per client address keep bots out), confirm by the link emailed to them, which shows their place and their referral link; each friend who joins with it and confirms moves them up. `?src=` is kept as a short word. The Owner reads the list and sign-ups by source, and invites the next people in batches (`waitlist.invite_next`, always human, audited), each marked invited and emailed. The playground has it installed.
|
|
1672
|
+
- **Its screens, as approved:** the app's `WaitlistScreen` (`@buffcore/waitlist/app`) is the launch page, or with `?status=` the person's place, their referral link to copy, and leaving; the console's Waitlist section (the Owner) lists people and sign-ups by source and invites a batch, asking first. The status answer adds `referralLink`, the launch page on the app's address (`APE_APP_URL`) with their code. The playground's route is `app/src/app/waitlist.tsx`.
|
|
1673
|
+
- **A public page in the app:** `<AppShell open>` shows its page without sign-in (`@buffcore/app-shell`), and `Loading`, the shell's loading state, is exported for such a page.
|
|
1674
|
+
- **A route's own limit:** `limit: { tries, seconds }` on a route (`@buffcore/contracts`) refuses a client address past its tries with 429, on top of the global limit: what a public form needs, with no plugin. `routeLimit` (`@buffcore/server`) builds it on `clientLimit`.
|
|
1675
|
+
- **Privacy's `emails`:** an account's export and deletion now pass the members' addresses (`AccountPeople.emails`), read before any hook, for a package that keeps rows by address. Optional in the type, so hooks and tests written before it still compile.
|
|
1676
|
+
- **`paragraphs(...texts)`** (`@buffcore/emails`): a template's body without JSX, so an extension's emails need no React of their own.
|
|
1677
|
+
- **Fixed:** a console screen named as its section (the waitlist's) no longer shows a "Waitlist › Waitlist" trail.
|
|
1678
|
+
|
|
1679
|
+
### Limits for coding agents (W11)
|
|
1680
|
+
|
|
1681
|
+
- **One list, `agents` in `buffcore.config.ts`** (`hidden`, `protected`, `owners`): **`ape agents write`** turns it into the agent's container (`infra/agent/`: the repository mounted and nothing else, a network whose only way out is a proxy to npm's registry and the agents' own services), Claude Code's, Codex's and OpenCode's settings, and `.github/CODEOWNERS`; **`ape agents check`** fails when they drift; **`ape agents run`** starts the container with the hidden files covered; **`ape agents held`** names the protected paths a change touches, and the `pre-merge-commit` hook holds such a merge for a person ([AI_NATIVE.md](docs/AI_NATIVE.md#limits-for-coding-agents)). A new product gets the list, the files and the hook.
|
|
1682
|
+
- **`ape deploy` refuses an image holding a coding agent or development tooling** (exit 2), on the server before any step, `--local` too; its image no longer carries Node's npm, corepack and yarn.
|
|
1683
|
+
|
|
1684
|
+
**Upgrade notes** (every product): add an `agents` list to `buffcore.config.ts` (a new product's shows one), run `pnpm ape agents write`, add `&& ape agents check` to the `lint` script and `.githooks/pre-merge-commit` from a new product. An image that runs `npm`, `npx`, `yarn` or `corepack` must stop: the release image has none.
|
|
1685
|
+
|
|
1686
|
+
### Payments (E3)
|
|
1687
|
+
|
|
1688
|
+
- **`@buffcore/payments`,** a first-party extension ([its guide](packages/payments/README.md)): the product's plans (`settings.payments.plans`, each key a Stripe price's lookup key) through Stripe Checkout, a subscription or a one-off payment; Stripe's customer portal to change plan, card or cancel, with every receipt; failed payments until they are paid. Stripe behind a small payments interface, by its REST API through `outbound(ctx)` (no SDK); card details never reach BuffCore. Each account gets its Stripe customer before its first Checkout, and the portal its own configuration through the API (the product's plans to switch between), so nothing is set by hand in Stripe's dashboard. Test mode by default: a test key works anywhere, a live key only when `APE_ENV` is `production`. Stripe's events are read from its API by the worker each minute (so `ape dev` needs no public address) and at once on Stripe's webhook, which is never trusted; each is applied once.
|
|
1689
|
+
- **Its screens, as approved (provisionally):** the app's Plan and billing (`BillingScreen`, `@buffcore/payments/app`) chooses a plan and opens Checkout, shows the plan and opens the portal, says when a payment failed, and sells the one-off plans; back from Checkout it waits for Stripe's report. The console's Payments section (the Owner) shows whether payments work, the subscriptions with their state, the failed payments and the plans with Stripe's prices. The playground has it installed in test mode, its route at `app/src/app/payments.tsx`.
|
|
1690
|
+
- **The console's icons** add `credit-card` (`@buffcore/admin-shell`).
|
|
1691
|
+
|
|
1692
|
+
### Community
|
|
1693
|
+
|
|
1694
|
+
- **Community and license files:** `SECURITY.md` (report privately), `CONTRIBUTING.md`, `CODE_OF_CONDUCT.md` (the Contributor Covenant 2.1), issue and pull request templates, and every package now says `description` and `"license": "BUSL-1.1"` (`pnpm lint` fails without them). The `LICENSE` text comes from the lawyer.
|
|
1695
|
+
|
|
1696
|
+
### Testing
|
|
1697
|
+
|
|
1698
|
+
- **A test kit for products:** `createProductTestApp(composition)`, `actAs` and the seeded `owner` and `member` from `@buffcore/modules/testing`, and the view-test preset `viewTests()` from `@buffcore/ui/vitest`; the test actor header is read only when `APE_ENV` is `test`, so no test declares its own `server.authenticate` hook; tests read the product's `.env` for its Postgres and Redis, and `ape create`'s product has a route test and a view test in the app and the admin ([TESTING.md](docs/TESTING.md#the-test-kit)).
|
|
1699
|
+
|
|
1700
|
+
- **CI does what the docs say** ([TESTING.md](docs/TESTING.md#ci)): every migration up, down (the new `ape migrate down --all`) and up, the playground's admin and web app builds, `pnpm check:licenses` on Linux, an SBOM artifact, Playwright's Chromium for the CLI's browser tests, and actions pinned by commit with Node 24.20.0, in `ape create`'s CI too; `ape check public` also refuses secret files by name (`.env`, keys, dumps) and OpenAI, Google and Stripe live keys; the template's lint refuses a relative import without its extension in `apps/api` (a product adds `"correctness": { "useImportExtensions": "error" }` to its `biome.json` rules, turned `off` in an override for everything but `apps/api/**`, to get it), and its `pnpm format` is `biome check --write .`, which also orders imports.
|
|
1701
|
+
|
|
1702
|
+
### Less repeated code
|
|
1703
|
+
|
|
1704
|
+
- **Three helpers for what every module wrote again:** `callerAccountId(ctx)` (the account the caller acts for) and `pageOf(rows, limit)` (a cursor page from `limit + 1` rows, the cursor the last row's `id` unless a third argument says otherwise) from `@buffcore/server`, and `primaryId()` (a UUIDv7 `id` column) from `@buffcore/db`. BuffCore's modules and the playground use them. Nothing breaks: `primaryId()` makes the same column, so no migration changes, and a product's own copies keep working.
|
|
1705
|
+
- **A unique clash answered `409 conflict`:** `flushOrConflict(em, messageKey?)` from `@buffcore/server` is `em.flush()` with a clash against a unique index turned into `409 conflict` (the module's own sentence when it gives a key), where a product caught Postgres `23505` by hand or answered 500. New; nothing breaks.
|
|
1706
|
+
|
|
1707
|
+
### Agent skills
|
|
1708
|
+
|
|
1709
|
+
- **A product's `AGENTS.md` lists BuffCore's skills, so Claude Code, Codex and OpenCode all find them ([AI_NATIVE.md](docs/AI_NATIVE.md#skills)):** the skills stay one copy in `.claude/skills/` (Claude Code and OpenCode load that folder by name); `ape create` and `ape upgrade` write each skill's description and path into `AGENTS.md` between `<!-- ape:skills -->` markers, which Codex (it loads skills from `.agents/skills/` only) reads. The skill test also checks each skill's front matter (name equal to the folder, a description) and that a created product's list matches its skills.
|
|
1710
|
+
- **The skills and the reference module close the first agent eval's gaps:** a list over two of a module's tables, a list paged by another column, the `name` and `action` mark of an operator's write, `en-XA` in a view test, seeds, roles, floors, and `pnpm exec biome check --write .` before `pnpm verify` are said once, in the skill that owns them. `tasks`' admin list no longer shows an account ID, and its view tests check `en-XA`. Products made with `ape create --example` before this keep their own copy.
|
|
1711
|
+
- **The skills close the second agent eval's gaps:** where a module's own server strings go (`locales/en.ts` and `es.json`, passed as `catalog`), a day with no time (`p.date()`, `z.iso.date()`, `formatDate`) and the time zone convention (once, in [LOCALIZATION.md](docs/LOCALIZATION.md#formats)), the admin's icon names (its own set, not the app's), that an operator acts for no account on a member's route (so the console calls admin routes), and the type of the database handle in product code (`EntityManager`, `InferEntity` from `@buffcore/db`). `tasks`' `toTask` uses `InferEntity`, and its route test checks the operator case. New; nothing breaks.
|
|
1712
|
+
- **The skills close the kernel eval's gaps:** `ape create`'s last line names `APE_BUFFCORE_PATH` for a product whose BuffCore isn't its sibling `../BuffCore`; `ape-add-extension` says an extension inside a product imports only `coverage` from the product's `vitest.shared.ts`, sets its floors there from the first run, and tests on an inline `defineProduct` with its own grant, never the product's config; `ape-prototype` says to commit a new product before its first snapshot (`APE_ALLOW_LINKED=1` while linked), and that an agent with nobody to approve stops at the snapshot commit unless its brief grants the approval.
|
|
1713
|
+
- **The docs close the founder eval rehearsal's gaps:** the README's "Start here" (`ape create`, `ape link`, what to read first); a new product's `README.md` with its seeded sign-ins and ports; one rule for committing while linked (`APE_ALLOW_LINKED=1` until a release is published, `ape unlink` after); `ape-plan-change` says a finished change is merged into `main` (a protected path holds the merge for a person) and to quote routes in a change file's YAML; `ape-prototype` shows a flow's steps and says a product prototypes only its own screens; `ape-add-route` shows `roles: ['owner']` and how to choose an action's risk; `ape-app-screen` names the tappable row (`SettingRow` with `onPress`); `packages/payments/README.md` shows creating a plan's price and paying in test mode without a browser; `billing` (a later feature) and `@buffcore/payments` (the extension today) are told apart in FEATURES.md and BUSINESS.md; ARCHITECTURE.md names the addresses a release web build bakes in and the iOS builders that need no Expo account; PROTOTYPE.md points to the `ape-prototype` skill for the snapshot browser's install command, so its version lives in one place. New; nothing breaks.
|
|
1714
|
+
|
|
1715
|
+
**Upgrade notes** (every product):
|
|
1716
|
+
|
|
1717
|
+
- **`AGENTS.md` gets a "Skills" block at its end** on the next `ape upgrade` (`ape create --here` adds it to an existing `AGENTS.md` too); nothing else in the file changes. Keep your edits outside the markers, and list the product's own skills (names without `ape-`) after the block so Codex finds them.
|
|
1718
|
+
|
|
1719
|
+
### Composition
|
|
1720
|
+
|
|
1721
|
+
- **The composition is checked once, at start** (F2.1): `resolveComposition()` in `@buffcore/server`, run by `createApp` (the API, the worker, `ape`'s commands that open the app, test apps) in place of the old check, stops the start with a message naming the module and what to do when a key is listed twice, a required module is missing, BuffCore is outside a module's `requires.buffcore`, `requires` form a cycle (named), or a table, route (method and path), event, job or registry entry is declared by two modules (both named). Modules come after those they require, otherwise as listed. Routes, actions, jobs, events and registries are indexed then, so `findRoute`, `reachableRoutes`, `declaredJobs`, `declaredEvents` and hooks no longer scan the module list on each call; `has(app, key)` says whether a module is composed ([MODULES.md](docs/MODULES.md#what-fails-at-start)).
|
|
1722
|
+
- **Registries and hook points a module owns:** `registry<T>(name, { check? })` and `hookPoint<F>(name, 'all' | 'first')` from `@buffcore/server`, named after their owner's key; other modules add to them in the new manifest field `contributes` (`notificationKinds.add({ … })`), with no edit to the owner or the kernel. An entry the owner's check refuses fails at start; a contribution to a module that isn't composed is skipped and shown in `ape manifest` ([MODULES.md](docs/MODULES.md#registries-and-hook-points)). Notifications' kinds are the first registry (`notificationKinds` from `@buffcore/modules/notifications`), then content's (`contentKinds` from `@buffcore/modules/content`); the playground's `notes` adds its kind through `contributes`. The fields `purposes`, `services` and `switches` are read as contributions to `ai` and `ops`; `contentKinds` and `notificationKinds` go (F2.8, below).
|
|
1723
|
+
- **Settings in code, checked at start:** a module's `settings` schema now has values, set in the composition by module key (`defineApp({ …, settings: { analytics: { activity } } })`), checked against the schema at start with defaults filled in, and read with `settingsOf(app, key)`. `analytics` is the first feature to use them. `requires.buffcore` takes a range (`>=0.7.0 <0.8.0`); a bare version is still a minimum.
|
|
1724
|
+
- **`ape manifest`** lists what each module contributes, the contributions and settings left out because their module isn't composed, and why the app wouldn't start when it wouldn't (`contributes`, `skipped`, `unusedSettings`, `problem` in `--json`).
|
|
1725
|
+
|
|
1726
|
+
**Upgrade notes** (every product):
|
|
1727
|
+
|
|
1728
|
+
- **Duplicates now stop the start.** Before, the module listed last silently won (events, jobs, purposes) or the first did (content kinds), or Fastify failed later on a route. Rename one of each pair the message names; an event or job is best started with its module's key.
|
|
1729
|
+
- **A notification kind with a mistake stops the start** (no channels, no recipients, email without a `defineEmail` template, push or in-app without text), where before it stopped its first send.
|
|
1730
|
+
- **Modules are ordered by `requires`:** a module listed before one it requires now comes after it (hooks, migrations and seeds follow the new order). A composition that lists BuffCore's modules first, as `buffcoreModules` returns them, then its own, doesn't change.
|
|
1731
|
+
|
|
1732
|
+
**Upgrade notes** (`analytics`):
|
|
1733
|
+
|
|
1734
|
+
- **The activity events move to the composition:** `buffcoreModules(product, { analytics: { activity } })` → `defineApp({ product, modules, settings: { analytics: { activity } } })`. Passing `analytics` to `buffcoreModules` now throws, saying so. The list needs at least one event. `analyticsModule()` takes no argument.
|
|
1735
|
+
|
|
1736
|
+
### Boundaries
|
|
1737
|
+
|
|
1738
|
+
- **`ape check boundaries`, in `pnpm lint`** (F2.2, the kernel contract §7): a module reaches another only through its public entry. The check fails on an import of another module's other files, an import of its entity (even through its entry) and SQL naming its table, each line naming the module and its entry, or saying to ask it for a service; tests and test helpers may reach in. It reads each module's folder and tables from the composition, as `ape manifest` does ([MODULES.md](docs/MODULES.md#boundaries)). BuffCore's modules and the playground pass: every reach-in outside tests became a call to its owner's entry, except `automation`'s SQL on `inbox_items` and `ai`'s reads of it, which the check lists until F2.4 replaces them.
|
|
1739
|
+
- **What the entries offer now:** each module's entry exports what others used from its files, plus small services for what they read of its tables, returning plain rows: identity's `findPeople`, `findAccount`, `accountMembers`, `homeAccountId`, `activeOperators`, `memberContacts`; profiles' `findProfiles`; content's finders (`findItems`, `findVersion`…) and `seedPublished` for a product's seeds; inbox's `openItemAbout`; audit's `auditCount`; uploads' `findUpload`. A query that joins another module's rows uses its SQL relation (`IDENTITY_SQL.activeOperators`, `CONTENT_SQL.versions`, `AI_SQL.calls`…), so it stays one round trip. Entities stay exported, for tests.
|
|
1740
|
+
- **Cooperation through registries, not imports:** `connect` adds its MCP sign-in plugins to identity's `identity.authPlugins`; `ai` and `notifications` answer ops' `ops.providers` and `ops.channelCounts` (Operations › Status); `devices` answers `notifications.deviceNames` (the delivery log). Nothing a person sees changes.
|
|
1741
|
+
- **An extension's code is checked** (F2.9): in a package made with `defineExtension`, `ape check boundaries` refuses a call to `fetch` and an import of `node:http`, `node:https`, `node:http2`, `node:net`, `node:tls`, `node:dns`, `node:dgram`, `node:child_process`, `node:fs`, `node:fs/promises` or `node:worker_threads` (with or without `node:`), each line naming the file, the line and `outbound(ctx)`; its tests and tools (`scripts/`, `tools/`, config files) are exempt. `@buffcore/feedback` and `@buffcore/waitlist` pass.
|
|
1742
|
+
|
|
1743
|
+
**Upgrade notes** (every product):
|
|
1744
|
+
|
|
1745
|
+
- **A product's own reach-ins now fail the check:** a module of yours that imports another module's file past its `index.ts`, imports an entity of BuffCore's (`AccountMember`, `ContentItem` from `@buffcore/modules/*`) or of another of your modules, or names another module's table in SQL. Import from the entry, call its services (`accountMembers(ctx.em, accountId)` for `em.find(AccountMember, { accountId })`, `seedPublished` for content rows in seeds), or join its SQL relation; tests may still reach in. Add `&& ape check boundaries` to the root `lint` script (`ape create` writes it).
|
|
1746
|
+
- **An extension of yours that calls `fetch` or imports the network, files or processes now fails the check:** call out through `outbound(ctx)` (`@buffcore/server`), to the hosts its grant names.
|
|
1747
|
+
|
|
1748
|
+
### Events and jobs
|
|
1749
|
+
|
|
1750
|
+
- **Jobs live in Postgres** (F2.3): the kernel's one table, `buffcore_jobs`, with its migration (`kernel/0001-jobs`, applied before every module's). `enqueue(ctx, name, payload, { key?, delay? })` writes through `ctx.em`, so a job queued inside a transaction exists once that commits and never if it rolls back. The worker claims ready jobs with `SKIP LOCKED` and runs each in a transaction that holds its row: its writes through `ctx.em` commit with its done mark, so a crash or a failure leaves neither, and two workers never run one job or one tick of a schedule. `every` (one tick waits at a time) and `delay` keep working. BullMQ is gone from `@buffcore/server`; Redis keeps rate limits, cache, realtime and heartbeats ([MODULES.md](docs/MODULES.md#the-manifest)).
|
|
1751
|
+
- **Jobs try again, then wait in the dead-letter list:** a job that throws, or whose worker dies mid-run, runs again after 1, 5, 30 and 120 minutes (five tries, or the job's own `tries`), each failure in Operations › Errors as before; then it waits as dead. `ape jobs` lists the dead ones, and `ape jobs retry <id>` and `drop <id>` decide one, audited as the CLI (`--json` for tools, [AI_NATIVE.md](docs/AI_NATIVE.md#machine-readable-output)). The console's view waits for a prototype.
|
|
1752
|
+
- **`ctx.job.key`**, the same on every try of a job: give it to an outside service as its idempotency key (an email, a webhook), so an effect outside the database happens once. `ctx.job` is `{ name, key }`. `notifications.send` gives it to the providers as `idempotencyKey` (new on `OutgoingMail` and `OutgoingPush`): Resend's `Idempotency-Key`, so an email is sent once however often its job runs; push services take no such key, so it is each one's collapse ID or tag (APNs' `apns-collapse-id`; FCM's Android and web `tag` and APNs header; web push's `Topic`), and a push sent again replaces the first instead of showing twice.
|
|
1753
|
+
- **Dead jobs don't keep data forever** ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#what-each-module-does-v05)): the daily retention drops a dead job 30 days after its last try (`DEAD_JOB_DAYS`), and a privacy deletion drops the dead jobs whose actor, payload or error names who goes (`dropOldDeadJobs`, `dropDeadJobsNaming` from `@buffcore/server`; `privacy` calls them).
|
|
1754
|
+
- **Events about a subject, and subscribers** ([EVENTS_ANALYTICS.md](docs/EVENTS_ANALYTICS.md#declaring-events)): an event declares the type of its subject and its props, and its row holds the subject (`subject_type`, `subject_id`) in place of `profile_id` and `device_id` (`events/0002-subjects`). `emit(ctx, name, { subject, props })` from `@buffcore/modules/events` writes through `ctx.em`. A job with `on: '<event>'` is a subscriber: each event queues one run per subscriber in its own transaction, with the event as the payload (`EventDelivery`). The playground's `note_created` commits with its note, and `notes.ready` is its subscriber.
|
|
1755
|
+
- **The test kit:** `drainJobs(app)` runs the Postgres queue, one ready job at a time (a failed job's next try waits for its time, so it doesn't loop); `queuedJobs(app, name?)` reads the queue, both from `@buffcore/server/testing`.
|
|
1756
|
+
|
|
1757
|
+
**Upgrade notes** (every product):
|
|
1758
|
+
|
|
1759
|
+
- **Jobs run again after a failure, so each must be safe to run twice.** A job's writes through `ctx.em` now commit only when it ends well. Check that a second run of each of your jobs finds its work done (a status it set, a row it wrote) and does nothing, and give `ctx.job.key` to any outside service it calls. A job that must show its progress while it runs, or keep a failed mark when it throws, writes through an entity manager of its own, `{ ...ctx, em: ctx.em.fork() }` (BuffCore's generation runs, upload processing and privacy exports and deletions now do).
|
|
1760
|
+
- **A job that catches a database error and goes on now fails:** in its transaction, Postgres refuses every statement after an error. Put the statement that may fail in `ctx.em.transactional(…)` (a savepoint), or let the job fail and try again.
|
|
1761
|
+
- **Queue a job in the transaction that causes it,** `enqueue({ ...ctx, em }, …)` inside `ctx.em.transactional`, where you queued it after the commit to be safe; queueing after the commit still works.
|
|
1762
|
+
- **Before upgrading, let the worker empty its BullMQ queue:** what waits in Redis (delayed jobs too) is not moved. After, delete the old keys (`redis-cli --scan --pattern '<product>:bull:*' | xargs redis-cli del`); the worker queues its schedules afresh when it starts. Run `ape migrate` (`kernel/0001-jobs`, `events/0002-subjects`) before restarting the API and the worker.
|
|
1763
|
+
- **Events declare a subject and props:** `events: { note_created: { titled: 'boolean' } }` → `events: { note_created: { subject: 'note', props: { titled: 'boolean' } } }`. The old shape stops the start, naming the fix.
|
|
1764
|
+
- **`track(ctx, name, props, { profileId })` → `emit(ctx, name, { subject: { type: 'profile', id: profileId }, props })`** from `@buffcore/modules/events`; give it the transaction's context to commit the event with its write.
|
|
1765
|
+
- **The `events` table:** `profile_id` and `device_id` are gone; a profile is the subject (`subject_type = 'profile'`, `subject_id`) and a device the prop `deviceId`. The migration moves existing rows, and back down. SQL reading `events.profile_id` reads `case when subject_type = 'profile' then subject_id end`. The apps' tracker and `POST /v1/events` don't change. An account's export lists each event's `subject` in place of `profileId`.
|
|
1766
|
+
- **`ctx.job.id` → `ctx.job.key`** (the job's ID in the queue, the same on every try).
|
|
1767
|
+
- **A dead job is dropped 30 days after its last try,** and with a deleted person's data: retry or drop one before then (`ape jobs`).
|
|
1768
|
+
- **Tests** that read BullMQ's keys in Redis read the queue with `queuedJobs(app, name?)`. A test that drains while a transaction is open sees the jobs it queued once it commits: drain again after it.
|
|
1769
|
+
|
|
1770
|
+
### Rules and approvals
|
|
1771
|
+
|
|
1772
|
+
- **One key per action, at every door** (F2.4): every route has a `name`, so every route has a key, `<module>.<name>`. Audit rows name it (`action: 'content.publish_set'`, where they said `POST /v1/admin/content/sets/:setId/publish`), and so do rules, approvals, `runAction(ctx, 'content.publish_set', input)` (the route still works, for a typed answer), agents' tools, MCP tools (`content_publish_set`) and `ape manifest` (`key` on each route).
|
|
1773
|
+
- **Rules, in a new core package `rules`** ([AUTOMATION.md](docs/AUTOMATION.md#rules-and-approvals-as-built-f24)): an action's rules say, by who calls (`people`, `machines`, `agents`) and by conditions on the input (`['body.amount', '>', 100]`), what a call does (`do`): it runs, waits for a person to approve it, or is refused; the first that matches wins. A module gives defaults with `contributes: [defaultRules.add({ … })]` (`@buffcore/modules/rules`); an Owner's rules replace them (`GET /v1/admin/rules`, `PUT /v1/admin/rules/:action`; the editor's screen waits for its prototype). With no rule, a person's call runs and a machine's or an agent's waits for a person, as the dials' defaults did. People meet rules too: an Owner's rule can hold a person's call (BC-D22 Q4). An always-human action never runs at once for a machine or an agent.
|
|
1774
|
+
- **One pipeline for the four doors:** after access, every call to an action meets its rule, then the handler, then the audit; a held call answers `202 { waiting }` at any door, a person's too.
|
|
1775
|
+
- **Approvals:** `requestApproval(ctx, { action, input, approvers })` opens an inbox item through the inbox's own service; an operator with an approver role (an Owner always) decides it in the console (`POST /v1/admin/approvals/:itemId/approve` or `/reject`). Approving runs the action once, as the person who asked, their actor as they asked (an API key's roles, an MCP client's door, a member's account, an agent's purpose), and its audit row is theirs with the approver beside them (`detail: { approval, approvedBy }`). So a member's own route still acts for the member's account. AI drafts are these approvals; Automation › AI drafts and its routes keep working, and their words say who it runs as.
|
|
1776
|
+
- **A call waits only where someone can approve it**: until the approvals screen is designed, waiting calls are listed by Automation › AI drafts, so a call waits only when `automation` is on. Without it, a call its rule would hold, a machine's, an agent's or a person's, is refused (`403 rule_refused`, `rules.errors.noApprover`, saying no one can approve it yet) instead of waiting where no one sees it.
|
|
1777
|
+
- **An Owner's rules are read through a 5-second cache,** as Services' fields are, not once per call: an edit takes effect at once on the API instance that saved it and within 5 seconds on the others (`RULES_CACHE_MS`).
|
|
1778
|
+
- **The inbox's service for other modules:** `findItem`, `openItemAbout`, `closeItem`, `reopenItem`, `updateDetail`, `listItems`, `countResolved`, `countsBetween` and `openReport` from `@buffcore/modules/inbox`; `automation` and `ai`'s cap alert no longer write `inbox_items` in SQL of their own.
|
|
1779
|
+
|
|
1780
|
+
**Upgrade notes** (every product):
|
|
1781
|
+
|
|
1782
|
+
- **Every route needs a `name`** (snake_case, unique in its module, `<verb>_<object>`: `list_notes`, `create_note`), reads and members' writes too; `RouteDef.name` is required, and an app with an unnamed route doesn't start, naming it. Add one to each of the product's routes.
|
|
1783
|
+
- **Audit rows name the action's key:** `action` is `<module>.<name>`, not `METHOD /path`. Rows written before keep the old form. A query or a test that looks rows up by `'POST /v1/…'` looks them up by the key.
|
|
1784
|
+
- **`server.gate` goes:** the rule step takes its place, and `GateCall` and `GateAnswer` leave `@buffcore/server` (`ActionEffects` and `Describe` stay). A module that answered it gives default rules instead; a test's fake dial is a module keyed `rules` contributing `RULE_STEP` (`@buffcore/server`).
|
|
1785
|
+
- **`dial_off` is now `rule_refused`** (403, `core.errors.ruleRefused`), for any refusal by a rule. Approvals' errors are `approval_closed`, `approval_not_editable` and `action_unavailable` (`draft_closed` and `draft_not_editable` go).
|
|
1786
|
+
- **A call to an action may now answer `202 { waiting }` to a person** in the console or the app, when an Owner's rule holds it. With no rule nothing changes for people.
|
|
1787
|
+
- **Without `automation`, a call that would wait is refused** (`403 rule_refused`, message key `rules.errors.noApprover`): a machine's or an agent's call to an action with no rule that runs it, and a person's call an Owner's rule holds. Turn `automation` on to have them wait in AI drafts.
|
|
1788
|
+
- **`ctx.approval` (`ApprovalRun` from `@buffcore/server`):** `requestedBy` → `approvedBy` (the approver's ID). While an approved call runs, `ctx.actor` is who asked; audit rows of approved calls say `detail: { approval, approvedBy }`, where they said `{ approval, requestedBy }`.
|
|
1789
|
+
|
|
1790
|
+
**Upgrade notes** (`automation`):
|
|
1791
|
+
|
|
1792
|
+
- **Dials became rules:** a dial is the action's rule for machines and agents (`{ who: ['machines', 'agents'], do }`), and the migration `automation/0003-dials-to-rules` moves each changed dial into the `rules` table and drops `automation_dials` (down brings them back). Automation › Dials keeps working; an action whose rules let machines run it has no dial and isn't listed. `dialOf(rules, mark)` reads a dial from rules; `automation` requires `rules` (core, so nothing to add).
|
|
1793
|
+
- **An agent's call may run** where a rule lets agents run it: `proposeAction` answers `{ waiting }` or `{ done }`, and an action tool `{ waiting }`, `{ done }` or `{ refused }`. With no rule, it waits as before.
|
|
1794
|
+
- **`approve` and `reject` moved to `@buffcore/modules/rules`**; `actionTitle` too.
|
|
1795
|
+
- **An approved AI draft runs as whoever asked,** not as the person who approved it: the agent's purpose, the API key, or the MCP client for its operator. A handler reading `ctx.actor` sees them, and what it records names them (a report closed by an approved AI reply is `resolvedBy` the purpose `support.draft_reply`); the approver is in the audit row (`approvedBy`) and on the draft (`resolvedBy`). A draft that waited from before this release runs as its approver, as it would have.
|
|
1796
|
+
|
|
1797
|
+
### Actors and hook points by package: children's concepts out of the kernel (F2.5)
|
|
1798
|
+
|
|
1799
|
+
- **The kernel knows five actor kinds** (the kernel contract §8): `member`, `operator`, `client`, `agent` and `system` (`ACTOR_KINDS` from `@buffcore/contracts`; `ActorKind` takes any other name too). Neither `@buffcore/server` nor the contracts' core names a profile or a device any more, which a test checks ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#actors)).
|
|
1800
|
+
- **A package adds its own actor kind** through identity's `actorKinds` registry (`@buffcore/modules/identity`); `devices` adds `device` and `profile`. An added kind is closed: it reaches public routes and routes that name it in the new `actors` field (`actors: ['device', 'profile']`), never one with `roles`; it never carries `accountIds`, `roles` or a door (the server refuses a request whose authenticator gave it one, 500); it may act for one account (`accountId`, which `callerAccountId` returns); and it carries its own data in `actor.claims`, read through its package (`deviceOf(actor)` from `@buffcore/modules/devices`). `identity` steps aside for a kind's credential `header` (the device grant's), as it does for a preview's.
|
|
1801
|
+
- **Hook points belong to their packages** ([MODULES.md](docs/MODULES.md#hook-points-by-owner)): the kernel keeps `server.authenticate`, `server.audit`, `server.onError` and `server.sendMail`; privacy's, profiles', consent's, notifications', the inbox's and safety's are handles their packages export, answered with `<handle>.add(fn)` in `contributes`. BuffCore's modules, the playground and `ape create`'s `tasks` answer them that way. A hook point gives its answers by module (`answers(app)`, for an owner that calls each on its own).
|
|
1802
|
+
- **Privacy's subjects:** a package that owns a noun a person's data hangs on adds it to `privacySubjects` (`profiles` adds `profile`, `devices` adds `device`), so privacy reads an account's subjects before its export or deletion and lets a member delete one alone, without importing either. A subject deleted alone goes through privacy's new `onDeleteSubject`, which `profiles` answers by calling its own `onDeleteProfile`; an export's hook point is given `{ accountId, userIds, subjects }`. Privacy requests record the subject (`subject_type`, `subject_id`) in place of `profile_id` (`privacy/0002-subjects`); the routes and screens still say `profileId`.
|
|
1803
|
+
- **A new `safety` feature** (`@buffcore/modules/safety`): safety flags, the inbox kind `flag` it adds, with `raiseFlag`, paging (`pageAt`), the decision (`safety.decide_flag`) and `onFlagDecided`. The inbox's kinds are open (`inboxKinds.add({ <kind>: { audited?, opened? } })`) and an item may carry a severity; a "Report a problem" category that lands as a flag needs `safety` on. The playground turns it on.
|
|
1804
|
+
- **The kernel's packages import no package a product turns on** (tested): `identity` reads a preview's test profile through its new `previewSubject`, which `profiles` answers; notifications and push learn the device a caller acts from through notifications' new `callerDevice`, which `devices` answers.
|
|
1805
|
+
- **Audit rows and privacy requests take any actor kind** (`audit/0003-actor-kinds`, `privacy/0002-subjects` drop their checks; down puts them back). Nothing changes on a screen: the console's audit log keeps its seven kinds in its filter, and every route and answer keeps its shape.
|
|
1806
|
+
|
|
1807
|
+
**Upgrade notes** (every product):
|
|
1808
|
+
|
|
1809
|
+
- **`device: true` → `actors: ['device', 'profile']`** on a route (or `['profile']` when only a profile may call it).
|
|
1810
|
+
- **The `Actor` type:** `deviceId` and `profileIds` leave it: read them with `deviceOf(ctx.actor)` from `@buffcore/modules/devices` (`{ deviceId, accountId, profileIds }`, null for anyone else). A `device` actor no longer has `accountId` (it acts for no account; its account is in its claims); a `profile` actor keeps it. `preview.profileId` → `preview.subject` (`{ type: 'profile', id }`). In tests, make device and profile actors with `deviceActor(…)` and `profileActor(…)` from `@buffcore/modules/devices`.
|
|
1811
|
+
- **`ACTOR_KINDS` lists the kernel's five**, without `profile` and `device`; code that listed every kind lists those two itself. `AuditRow.actorKind`, the audit log's `actorKind` filter, `PrivacyRequest.askedByKind` and an AI draft's caller `kind` are strings.
|
|
1812
|
+
- **Hooks move to their packages.** Answer each with its handle in `contributes`, and call it through the handle (`onRetention.call(app, ctx, days)`), not `app.hooks.call`:
|
|
1813
|
+
|
|
1814
|
+
| In `hooks` | In `contributes` |
|
|
1815
|
+
|---|---|
|
|
1816
|
+
| `privacy.onExportAccount`, `privacy.onDeleteAccount`, `privacy.onRetention` | `onExportAccount`, `onDeleteAccount`, `onRetention` from `@buffcore/modules/privacy` |
|
|
1817
|
+
| `privacy.onDeleteProfile` | `onDeleteProfile` from `@buffcore/modules/profiles` (`profiles.onDeleteProfile`) |
|
|
1818
|
+
| `profiles.onCreated` | `onProfileCreated` from `@buffcore/modules/profiles` |
|
|
1819
|
+
| `profiles.testProfile` | gone: `profiles` answers identity's `previewSubject(ctx, { type, id })` (`@buffcore/modules/identity`) |
|
|
1820
|
+
| `consent.missing`, `consent.onWithdrawn` | `consentMissing`, `onConsentWithdrawn` from `@buffcore/modules/consent` |
|
|
1821
|
+
| `notifications.sendPush`, `notifications.device` | `sendPush`, `deviceRecipient` from `@buffcore/modules/notifications` |
|
|
1822
|
+
| `inbox.onReport` | `onReport` from `@buffcore/modules/inbox` |
|
|
1823
|
+
| `inbox.onFlagDecided` | `onFlagDecided` from `@buffcore/modules/safety` (`safety.onFlagDecided`) |
|
|
1824
|
+
|
|
1825
|
+
- **What the privacy hook points are given:** an export, `{ accountId, userIds, subjects }` (`accountId` as before); an account's deletion adds `subjects` (`{ profile: [...], device: [...] }`), in place of `profileIds` and `deviceIds`. A profile deleted alone calls privacy's `onDeleteSubject` (every module that forgets by ID) and profiles' `onDeleteProfile` (modules with rows about a profile): code that called `app.hooks.call('privacy.onDeleteProfile', …)` itself reaches only the second; delete through privacy (`askDeletion`).
|
|
1826
|
+
- **`@buffcore/server` drops `FlagDecision`** (now `@buffcore/modules/safety`) **and `TestProfile`** (identity's `PreviewShown`); `Hooks` holds the kernel's four. `NotificationRecipientKind` is open (`member`, `operator`, or a kind a package adds).
|
|
1827
|
+
- **Safety flags need the `safety` feature:** add `'safety'` to `features` to raise flags or land a "Report a problem" category as one (`buffcoreModules` refuses to start a category that lands as a flag without it). `raiseFlag`, `FLAG` and `RaiseFlagInput` move from `@buffcore/modules/inbox` to `@buffcore/modules/safety`; `inbox: { pageAt }` → `safety: { pageAt }`. The decision's key is `safety.decide_flag`, where audit rows said `inbox.decide_flag`: rename an Owner's rule for it. Its strings moved to `safety.*` (`safety.page.*`, `safety.notifications.page`, `safety.errors.flagDecided`, `safety.actions.decide_flag`): override them under the new keys. The page's message kind (`inbox.page`) and job (`inbox.page_owners`) keep their names, so pages queued or logged before still go and read.
|
|
1828
|
+
- **Run `ape migrate`** (`audit/0003-actor-kinds`, `privacy/0002-subjects`).
|
|
1829
|
+
|
|
1830
|
+
### The adapters out (F2.8)
|
|
1831
|
+
|
|
1832
|
+
What F2.1 and F2.5 kept working for products written before them goes: the kernel reads only the new forms, with no second path. BuffCore's modules, the playground, the skills and the docs use them. What a screen shows keeps its shape until that screen's prototype: `profileId` on privacy's routes and requests, inbox items and reports, and the tracker's events. `ape manifest --json` drops a module's `notificationKinds` and `contentKinds` lists: `contributes` names them (`notifications.kinds`, `content.kinds`).
|
|
1833
|
+
|
|
1834
|
+
**Upgrade notes** (every product):
|
|
1835
|
+
|
|
1836
|
+
- **A manifest's `hooks` answers only the kernel's four** (`server.authenticate`, `server.audit`, `server.onError`, `server.sendMail`). Any other name stops the start, naming the module; answer it with its owner's handle in `contributes` (F2.5's table above):
|
|
1837
|
+
- `privacy.onExportAccount`, `privacy.onDeleteAccount`, `privacy.onRetention` → `onExportAccount.add`, `onDeleteAccount.add`, `onRetention.add` (`@buffcore/modules/privacy`);
|
|
1838
|
+
- `privacy.onDeleteProfile`, `profiles.onCreated` → `onDeleteProfile.add`, `onProfileCreated.add` (`@buffcore/modules/profiles`);
|
|
1839
|
+
- `consent.missing`, `consent.onWithdrawn` → `consentMissing.add`, `onConsentWithdrawn.add` (`@buffcore/modules/consent`);
|
|
1840
|
+
- `notifications.sendPush`, `notifications.device` → `sendPush.add`, `deviceRecipient.add` (`@buffcore/modules/notifications`);
|
|
1841
|
+
- `inbox.onReport` → `onReport.add` (`@buffcore/modules/inbox`); `inbox.onFlagDecided` → `onFlagDecided.add` (`@buffcore/modules/safety`).
|
|
1842
|
+
- **`app.hooks.call` and `app.hooks.first` take only the kernel's four:** call a package's hook point through its handle (`onDeleteProfile.call(app, ctx, profile)`). A former name (`privacy.onDeleteProfile`, `inbox.onFlagDecided`) no longer reaches the new one.
|
|
1843
|
+
- **`device: true` → `actors: ['device', 'profile']`.** The flag is no longer read, so a route that still says it is closed to devices (403). `ActorKindDef.routeFlag` is gone.
|
|
1844
|
+
- **`buffcoreModules(product, { inbox: { pageAt } })` → `{ safety: { pageAt } }`.** `InboxConfig.pageAt` is gone.
|
|
1845
|
+
- **Privacy's account deletion has no `profileIds` or `deviceIds`:** read `subjects.profile` and `subjects.device`. `AccountDeletion` is `AccountPeople` plus `anonymousId`.
|
|
1846
|
+
- **A manifest's `contentKinds` and `notificationKinds` fields are gone:** `contentKinds: { tip }` → `contributes: [contentKinds.add({ tip })]` (`@buffcore/modules/content`), and `notificationKinds: { … }` → `contributes: [notificationKinds.add({ … })]` (`@buffcore/modules/notifications`). A content kind's type is `ContentKindDef` from `@buffcore/modules/content`, in place of `NonNullable<ModuleManifest['contentKinds']>[string]`.
|
|
1847
|
+
- **`ape manifest --json`:** a program that read a module's `notificationKinds` or `contentKinds` reads `contributes` (`to: 'notifications.kinds'` or `'content.kinds'`, and their `keys`).
|
|
1848
|
+
|
|
1849
|
+
### Content
|
|
1850
|
+
|
|
1851
|
+
- **A device in profile mode reads published content:** `GET /v1/content/:kind/:key` names the device kinds in `actors`; a profile reads in its own language, and a device never reads drafts. Every other content route stays the operators'.
|
|
1852
|
+
|
|
1853
|
+
### Admin console
|
|
1854
|
+
|
|
1855
|
+
- **`TextField` takes `type="date"`:** the browser's day picker; its `value` and `onChange` are a day (`"2026-10-13"`), the same string a date-only column holds. New; nothing breaks.
|
|
1856
|
+
- **A product's inbox kind gets its `Panel` on its item page:** an item of a kind the product's module opens shows the `Panel` from `createAdmin({ inboxKinds: { <kind>: { Panel } } })` under the facts and above the detail; the panel acts through the product's routes and closes the item with `resolveByRef`. A panel that makes an audited read shows `AuditLine` itself.
|
|
1857
|
+
- **A kind's `Compare` gets the item and the version shown,** as `Render` does (`version.setId` among them), so a comparison can read what belongs to the version's set (a tutoring app's learner model: a model set's back-test and what would change).
|
|
1858
|
+
|
|
1859
|
+
### Generation
|
|
1860
|
+
|
|
1861
|
+
- **An item no model may be given flags itself instead of failing the run:** when an item holds what the input check refuses (text that reads as contact details), AI QA's try fails with "AI QA could not be given it: …" and its regenerations with "no usable answer: …"; the item ends flagged for a person and the run's other items go on (a runaway tag of digits in one of a tutoring app's lessons failed its whole run).
|
|
1862
|
+
- **A regeneration with no usable answer flags its item instead of failing the run:** an answer cut off at its output limit, off the purpose's schema, or refused is a failed try with the reason "no usable answer: …"; the item keeps its last saved try, the next regeneration fixes what that try failed, and the run's other items go on to review. Before, one such answer failed the whole run (a tutoring app's lesson rehearsal lost its unit).
|
|
1863
|
+
- **A long call is no longer cut off at five minutes:** every provider calls through `providerFetch`, Node's fetch without its own 300-second waits for a response's headers and between its chunks, so the profile's `timeoutMs` (up to 10 minutes) governs. Before, Gemini drawing a 200-node map failed with "Headers Timeout Error" after 300 seconds. `@buffcore/modules` depends on `undici` (7.30.0, already in the tree through the AI SDK) for the dispatcher.
|
|
1864
|
+
- **A regenerated try is saved as the draft before its AI QA,** so a QA tool that reads the draft (by kind and key) reads what is under check; before, it read the previous try. Its `qa` is saved as the try ends, as before.
|
|
1865
|
+
|
|
1866
|
+
### Installable packages
|
|
1867
|
+
|
|
1868
|
+
- **Packages publish as JavaScript with types,** built by `pnpm build` and published by a `v*` tag after the stranger test (`scripts/stranger.mjs`: a product made and tested from the registry); `ape` runs from them without `tsx`, and production runs a product's API and processes with `node`, so `ape create`'s API package no longer lists `tsx` (a product dropping it runs `ape server setup` again first, so the server's compose file runs `node`).
|
|
1869
|
+
|
|
1870
|
+
**Upgrade notes** (every product):
|
|
1871
|
+
|
|
1872
|
+
- **`tsx` leaves production:** a product that drops `tsx` from its API package's dependencies runs `ape server setup` again before its next deploy, so the server's compose file starts the API and processes with `node`. A product's API code must be plain erasable TypeScript with `.ts` extensions on relative imports and `with { type: 'json' }` on JSON imports; the template's `erasableSyntaxOnly` makes `tsc` say so.
|
|
1873
|
+
- **`ape` loads every product's code with Node's type stripping, whether or not the product keeps `tsx`:** the CLI itself now runs as JavaScript, so `ape migrate`, `ape seed`, `ape dev` and the rest import the composition and everything it imports (the product's own packages too) without a compiler. No parameter properties (`constructor(private x)`), `enum` or `namespace` in that code; Node refuses them with "not supported in strip-only mode". Check with `tsc --noEmit --erasableSyntaxOnly` on each package the API imports (the template's `tsconfig` turns it on).
|
|
1874
|
+
- **A product with its own view-test config** (a `vitest.config.*` that doesn't use `viewTests()` from `@buffcore/ui/vitest`): BuffCore is now JavaScript in `node_modules`, which Vitest loads untransformed, so React Native's own source fails (`SyntaxError: Unexpected token 'typeof'`). Add `/@buffcore[\\/]/`, `/react-native-web/`, `/react-i18next/` and `/@tanstack[\\/]react-query/` to `test.server.deps.inline`, as `viewTests()` does, and let any plugin that transforms Unistyles' styles (its Babel plugin) take BuffCore's `.js` files too, or components stop following a change of mode. Simpler: build the config with `viewTests({ setupFiles: [...] })`, your own setup in its `test` options (it already stands in for Unistyles and `react-native-svg`).
|
|
1875
|
+
|
|
1876
|
+
### Dependencies
|
|
1877
|
+
|
|
1878
|
+
- **The Claude Agent SDK is optional:** `@anthropic-ai/claude-agent-sdk` (Anthropic's license, not open source) is an optional peer of `@buffcore/modules`, loaded only when a purpose runs on `claude-agent`; without it the attempt fails `error` naming the package, so the next candidate or the fallback answers. `pnpm check:licenses` lists the licenses of what the published packages install and fails on one outside its allowlist.
|
|
1879
|
+
- **One React version, 19.2.3** (the one Expo SDK 57 names for React Native 0.86): `react` and `react-dom` in every package, the playground and the product template (the admin side was on 19.3.0), with `@types/react` 19.2.18 and `@types/react-dom` 19.2.7. The root `package.json` pins the four with `pnpm.overrides`, because a peer that pnpm installs by itself (better-auth's, `@types/react-dom`) took the latest. The packages' peers stay `react >=19`, so a product's admin may keep its own React.
|
|
1880
|
+
- **The admin serves its own fonts:** IBM Plex Mono, Nunito and Public Sans come from `@fontsource/*` packages imported in `apps/admin/src/fonts.ts`, not from Google's CDN.
|
|
1881
|
+
|
|
1882
|
+
**Upgrade notes** (every product):
|
|
1883
|
+
|
|
1884
|
+
- **The admin's fonts:** in `apps/admin/index.html`, remove the three `<link>` tags to `fonts.googleapis.com` and `fonts.gstatic.com`; add `@fontsource/ibm-plex-mono`, `@fontsource/nunito` and `@fontsource/public-sans` (5.3.0) to `apps/admin/package.json`, copy the template's `apps/admin/src/fonts.ts` (one import per family and weight) and import it at the top of `apps/admin/src/main.tsx`.
|
|
1885
|
+
|
|
1886
|
+
**Upgrade notes** (`ai`, a product with a `claude-agent` profile):
|
|
1887
|
+
|
|
1888
|
+
- **Install the SDK:** add `"@anthropic-ai/claude-agent-sdk": "0.3.283"` to the API package's dependencies (where the worker runs). Without it, those agent runs fail and their fallbacks answer.
|
|
1889
|
+
|
|
1890
|
+
### Skills and the CLI
|
|
1891
|
+
|
|
1892
|
+
- **The plan in the repository (W2):** `ape create` gives a product `plan/roadmap.md` (the milestones) and `plan/changes/` (one file per change, a YAML header then plain words); `ape change [id]` lists the changes or shows one with its branch and what it touches, found in the manifest or new, `--check` runs its done-when checks and `--json` is for tools ([AI_NATIVE.md](docs/AI_NATIVE.md#machine-readable-output)); the template's `.githooks/commit-msg` refuses a commit on a change's branch (`change/C-012-…`) without its `Change:` and `Task:` trailers, and `ape create` makes its hooks executable; the `ape-plan-change` skill teaches it. A test keeps `ape migrate create` deterministic. Existing products copy `.githooks/commit-msg` and `plan/` from the template to use it.
|
|
1893
|
+
- **Skills that match the code, and `ape upgrade` keeps them current:** a test fails `pnpm verify` when a skill names a path, an `ape` command or an `@buffcore/*` export that doesn't exist; the skills now generate a module's migration after it joins the composition, put route schemas in the module's `contract.ts`, name `entity.ts`, declare roles in `identity: { roles }` and point at the playground only "in BuffCore's repository". `ape upgrade` replaces the product's `.claude/skills/ape-*` with the release's and names those that changed, came or went (any other skill is the product's and stays); `ape create` stops when the skills didn't come with the CLI. `ape i18n check` also checks the screens: each key the admin's and the app's code uses (`apps/admin`, `apps/app`, strings in `src/i18n`) must be in English and every language the product offers.
|
|
1894
|
+
- **`ape manifest` says where things are, and `ape mcp` runs without Docker:** each module also lists its jobs (with schedules), the hooks it implements, notification and content kinds, switches, settings, the roles its routes require, seed scenarios and its manifest's file; the inventory lists every role with where it is declared, and the screens (the app's routes and the admin's own sections) with their files; `ape manifest --json` and the MCP tool `app_inventory` return the same shape ([AI_NATIVE.md](docs/AI_NATIVE.md#the-app-inventory)). `ape mcp` opens the database on the first tool that needs it and says so when it can't reach it; `run_tests` takes a package name (`{ package: "@buffcore/server" }`, its `test` script) instead of a test-name filter; `search_docs` searches `docs/**` and the skills.
|
|
1895
|
+
- **A reference module and the "add a feature" skill:** `ape create --example` adds `tasks` (one table, a members' list and create route, an operators' list with the `support` role, privacy hooks, an admin view, an app view, English and Spanish, a route test and view tests), wired into the composition, the admin and the app, with its migration; the `ape-add-feature` skill walks a feature in order, pointing at its file for each step ([MODULES.md](docs/MODULES.md#the-manifest)). Without `--example`, `ape create` is unchanged. A linked product's API type-checks again: `@buffcore/storage`'s `StorageError` no longer uses parameter properties, which the template's `erasableSyntaxOnly` refuses.
|
|
1896
|
+
- **`ape check public` keeps the tree fit to publish:** it fails on private addresses (examples use the documentation ranges 192.0.2.x, 198.51.100.x and 203.0.113.x), links into a sibling repository or to a private artifact, private keys, token shapes and `.ssh` paths, and runs in `pnpm lint`. The docs now name a tutoring app and BuffApe in words instead of linking into their repositories.
|
|
1897
|
+
|
|
1898
|
+
**Upgrade notes** (every product):
|
|
1899
|
+
|
|
1900
|
+
- **`ape upgrade` replaces the `ape-*` skills** with the release's. Move anything the product changed in them into a skill of its own (any other prefix) before upgrading; it is left alone.
|
|
1901
|
+
- **`ape i18n check` now checks the screens' strings,** so a key the admin or the app uses that is missing in a language the product offers fails CI. Add the missing strings to the screen catalogs in `apps/admin/src/i18n` and `apps/app/src/i18n`.
|
|
1902
|
+
|
|
1903
|
+
### The prototype
|
|
1904
|
+
|
|
1905
|
+
- **A lighter prototype loop, and the prototype for programs ([PROTOTYPE.md](docs/PROTOTYPE.md#snapshots-and-approval)):** `ape prototype snapshot --scene <key>` snapshots one scene in seconds (`submit` still wants every scene); git keeps a snapshot's `report.json` and its new `data.json`, not its screenshots, which stay on the computer that took them and `--remake` makes again from the commit checked out (the inbox says so in place of a missing one); a version names its report (`report`, optional in the `prototype` kind's content); `ape prototype export <version|approved>` writes a version as static files that run from a plain file server, no API or database; `ape prototype data` lists the records and fields the sample data implies and what changed against the approved version; `--json` with exit codes 0, 1 and 2 on `snapshot`, `submit`, `data` and `ape review` ([AI_NATIVE.md](docs/AI_NATIVE.md#machine-readable-output)). The viewer opens admin scenes beside itself (`./_scene`) and takes `appUrl: ''` for app scenes on its own site; `isPrototypePage` from `@buffcore/admin-shell` names the prototype's pages on the development server and in an export.
|
|
1906
|
+
|
|
1907
|
+
**Upgrade notes** (every product):
|
|
1908
|
+
|
|
1909
|
+
- **Stop tracking the screenshots:** add `prototype/snapshots/**/*.png` to `.gitignore`, run `git rm -r --cached --quiet -- "prototype/snapshots/*.png"` and commit (the files stay on disk, so reviews on this computer still show them). From then on, commit `report.json` and `data.json` with each snapshot.
|
|
1910
|
+
- **To export the prototype:** in `apps/admin/src/main.tsx`, import `isPrototypePage` from `@buffcore/admin-shell` and replace `['/prototype', '/_scene'].includes(location.pathname)` with `isPrototypePage(location.pathname)`, as the template does. Without it, development works as before, but an export's pages open the console.
|
|
1911
|
+
|
|
1912
|
+
### Production
|
|
1913
|
+
|
|
1914
|
+
- **Limits count per client, and sign-in has its own:** the API trusts the proxy on its own host (Caddy), so a request's address is the client's, and the global limit and pairing's count per client, not for everyone behind Caddy at once. The global limit now also counts the requests a route refuses (401, 403): before, a flood of them was never limited. Sign-in, sign-up and password reset share a tighter limit: 30 tries per client address in 10 minutes, then 429 with `Retry-After`. A product's route gets one of its own with `clientLimit(app, name, tries, seconds)` from `@buffcore/server` ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#security-headers-and-limits)).
|
|
1915
|
+
- **Security headers:** every API response says `nosniff`, never framed, no referrer, and HSTS in production; the Caddyfile setup writes gives the console's files the same, with a Content-Security-Policy built from what the console loads (its own address; Firebase when `push` is on; the web app in the preview frame).
|
|
1916
|
+
- **The production check refuses example secrets:** with `APE_ENV=production`, BuffCore's example values (the playground's `.env.example`, the template's CI, a `<product>-dev` database password) are refused for the secrets and the database's password, naming the key only. A server refuses to start with `APE_ENV=test`, which reads the test actor header.
|
|
1917
|
+
- **`/health` says what it checked:** the database, Redis and, when one is set up, the bucket; a check that fails or takes over 3 seconds is `down` and answers 503.
|
|
1918
|
+
- **Deploys that can be undone:** `ape deploy` runs one at a time on a server (a lock), backs up before migrating, and when the new image doesn't answer healthy, runs the previous one again with its console files. Migrations stay expand-then-contract, so the previous image runs on the migrated database. A migration that fails restarts nothing.
|
|
1919
|
+
- **`ape deploy --local <image> --approval <file>`:** the same steps on the server itself, for its own agent, so nobody opens SSH into it. The approval is a small JSON file signed with Ed25519 (the product, the image's ID, the commit, an expiry), checked against `APE_DEPLOY_PUBLIC_KEY` in the server's settings; one unsigned, expired or for another image is refused before any step ([ARCHITECTURE.md](docs/ARCHITECTURE.md#environments-and-deployment)).
|
|
1920
|
+
- **`--json` and exit codes** on `ape deploy` (0 deployed, 1 failed or rolled back, 2 refused; `result` says which) and `ape backup test` (0 or 1), with the same keys every time ([AI_NATIVE.md](docs/AI_NATIVE.md#machine-readable-output)).
|
|
1921
|
+
- **Backups stream and hold the uploads:** `ape backup` streams the dump and every file under `uploads/` through the encryption into the bucket, never whole in memory or on disk (`Storage.putStream`, a part of 8 MiB at a time); `ape backup test` reads every file back and checks its size against the list sealed in the backup; `ape backup restore` puts back the files the bucket no longer has. The new format (`BUFFBAK3`) checks each 64 KiB chunk before using it; backups v0.6.0 made are still read. Every backup holds every upload, so the bucket keeps about 30 copies of them.
|
|
1922
|
+
- **Server setup hardens the server:** SSH by key only and no root login (checked with `sshd -t` before SSH reloads; a setup that came in as root keeps root's key login, so it can come back), security updates every day (`unattended-upgrades`), and Postgres, Redis, Caddy and the image's Node and Docker CLI named by digest.
|
|
1923
|
+
- **A product made by `ape create` runs in production:** the image installs the product's root package's own dependencies too, and the template's root lists `@buffcore/config` in `dependencies`, since the API and `ape migrate` import `buffcore.config.ts`. Before, the first deploy of such a product failed its migration with "Cannot find package '@buffcore/config'" (the rehearsal on the test server found it).
|
|
1924
|
+
|
|
1925
|
+
**Upgrade notes** (every product):
|
|
1926
|
+
|
|
1927
|
+
- **A product whose API is its own package (`apps/api`)** moves `@buffcore/config` from `devDependencies` to `dependencies` in its root `package.json`, then runs `pnpm install` and commits the lockfile, before its next deploy.
|
|
1928
|
+
|
|
1929
|
+
- **Run `ape server setup` again** on each server before the next deploy: it writes the Caddyfile with the headers, the compose file with images by digest (Postgres, Redis and Caddy restart once), SSH by key only and daily security updates. If you sign in to the server over SSH with a password, add your key first: passwords stop working. A setup run as root keeps root's key login; run it as a user with sudo to turn root login off.
|
|
1930
|
+
- **A server whose settings hold one of BuffCore's example values stops at start,** naming the key: give it its own (`ape server setup` makes the secrets a settings file lacks).
|
|
1931
|
+
- **Code that implements `Storage` or `PgTools` itself** (a test's fake): `Storage` gains `putStream(key, body)`, and `PgTools.dump` answers an `AsyncIterable<Uint8Array>` that `PgTools.restore` takes.
|
|
1932
|
+
- **A script that runs `ape deploy`:** it exits 2 when it was refused before any step (an approval, another deploy running), instead of 1; a rollback still exits 1, and `--json`'s `result` says `rolled_back`.
|
|
1933
|
+
|
|
1934
|
+
### Fixes
|
|
1935
|
+
|
|
1936
|
+
- **A product fresh from `ape create` passes its own `pnpm lint`:** the template's JSON files are formatted as its Biome configuration asks (`biome.json`, `turbo.json`, `.mcp.json`, `apps/app/app.json`, `.claude/launch.json`). The stranger test now lints the product too.
|
|
1937
|
+
- **`ape migrate`, `ape seed` and the other commands that open the app load `.env` before the composition,** so a composition that reads `process.env` as it loads (a module composed only in development) sees what `ape dev`'s processes see. Before, `ape migrate` composed it without `.env` and skipped that module's migrations.
|
|
1938
|
+
- **A day with no time (`"2026-10-13"`) shows as that day in every time zone:** `formatDate` reads such a string as UTC and shows it in UTC; before, it showed the day before west of Greenwich. A date with a time is shown in the reader's zone as before.
|
|
1939
|
+
|
|
1940
|
+
## v0.6.0 (2026-10-13)
|
|
1941
|
+
|
|
1942
|
+
Running the pilot: the safety inbox that pages, "Report a problem", AI drafts behind autonomy dials, status, backups, maintenance mode, password reset, Translations, analytics, and the app's own API keys and MCP server; the AI gateway over an OpenAI-compatible endpoint; production on a stack of its own.
|
|
1943
|
+
|
|
1944
|
+
### Groundwork
|
|
1945
|
+
|
|
1946
|
+
- **Routes get names:** `RouteDef` has `name` (snake_case, unique in its module: `<verb>_<object>`, without the module's own word, e.g. `content`'s `publish_set`), `mcp: true` (offered to machines and agents) and `carries` (the sensitive kinds its input or output holds, `SensitiveKind` from `@buffcore/contracts`). An action or an offered route without a name, a name that isn't snake_case or is taken in its module, and an offered write that isn't an action stop the app at start. BuffCore's action routes are named, v0.4's and v0.5's included; `ape manifest` shows each as `<module>.<name>`.
|
|
1947
|
+
- **Machine doors, typed:** `Actor` has `via` (`api-key`, `mcp`) and `credentialId`; `x-api-key` is kept out of logs. Hooks `server.gate` (`GateCall`, `GateAnswer`: an action call from a machine or an agent waits or is refused; with no answer it is refused) and `inbox.onFlagDecided` (`FlagDecision`). `buffcore.config.ts` takes `connect: { allowOut }`, the sensitive kinds that may leave through machine doors (none by default).
|
|
1948
|
+
- **Features:** `api-keys` and `mcp-server` arrive in 0.6, and `ai-gateway` (needs `ai` and `api-keys`) is new. New modules: `automation` (`buffcoreModules(product, { automation: { classes, playbooksDir?, summaryEvery? } })`), `analytics` (`{ activity? }`, default `['app_opened']`), `connect` (with `api-keys` or `mcp-server`) and `gateway` (`aiGateway: { class, limits? }`; it declares the purpose `ai.gateway`). The inbox takes `inbox: { reports?, pageAt? }` (default one `problem` category landing in Support, paging at `high`): `inboxModule`, `inboxSettings`, `FLAG_SEVERITIES`. Subpaths `@buffcore/modules/{automation,analytics,connect,gateway}` and `@buffcore/contracts/{automation,analytics,connect,gateway}`. A product that turns one of these features on pins `buffcore: '0.6.0'` (tests pass `product: { buffcore: '0.6.0' }` to `createTestApp`).
|
|
1949
|
+
- **Strings by area:** emails `password`, `inbox` and `automation`; the app shell's `reports`, `password` and `notices`; the console's `overview`, `automation`, `analytics` and `connect`.
|
|
1950
|
+
- **Admin console:** the Overview comes first in the rail at `/` (where the Owner now lands), then the product's sections and BuffCore's, with Inbox › Safety, Support, AI drafts (with `automation`) and Alerts; Content › Translations; Analytics (with `analytics`); Automation › Dials and Playbooks (with `automation`); Operations › Status; Admin › API keys (with `api-keys` or `mcp-server`). `createAdmin` takes `inboxKinds` (`{ flag: { Panel } }`, `InboxKindView`) and `overview` (`OverviewPanel[]`). A rail section may have no title (`AdminSection.label` is optional).
|
|
1951
|
+
- **Design system:** `SparkBars` and `Markdown` (text only) in the admin components, a `children` slot in `ConfirmDialog`, `useFormat().percent`.
|
|
1952
|
+
- **`BUFFCORE_VERSION` is `0.6.0`,** and every package.
|
|
1953
|
+
|
|
1954
|
+
### Safety flags
|
|
1955
|
+
|
|
1956
|
+
- **Safety flags (`inbox`):** `raiseFlag(ctx, { type, severity, subject, ref, accountId?, profileId?, detail? })` raises a flag in the caller's transaction (its type in `detail.type`; the subject never names a person); `GET /v1/admin/inbox` takes `severity` and `order=severity` (Safety's order: highest severity, then oldest); `POST /v1/admin/inbox/:itemId/decide` (`inbox.decide_flag`, always a person) closes a flag as resolved or not a concern with a required note and calls `inbox.onFlagDecided` in the same transaction; opening a flag is an audited read. Migration `inbox/0002-flags` ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#safety-flags)).
|
|
1957
|
+
|
|
1958
|
+
### Paging
|
|
1959
|
+
|
|
1960
|
+
- **A safety flag pages the Owners (`inbox`):** a flag at or above the product's `pageAt` (default `high`) pages every active Owner as soon as it commits (a rolled-back flag pages nobody), by email and by push to every push token they registered, in their language, past quiet hours and notification settings (the kind `inbox.page`: operators only, urgent, not optional; the email `flagPage`). A page carries the severity, the display ID and a link to the flag (`<APE_ADMIN_URL>/inbox/safety?item=<item ID>`), nothing else of the flag. If the flag is still open and unassigned after 15 minutes, and nobody opened, assigned or decided it, the Owners are paged once more: a delayed job, kept across restarts and queued once. The flag's `detail.paged` holds `{ at, to }`, and its page in the console says who was paged. A page that fails to send is a failed row in the delivery log; with no active Owner the job fails into Operations › Errors ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#safety-flags)).
|
|
1961
|
+
|
|
1962
|
+
### Report a problem
|
|
1963
|
+
|
|
1964
|
+
- **"Report a problem" (`inbox`):** `POST /v1/reports` `{ category, text, ref? }` for a member or a profile on a device: one of the product's categories (`GET /v1/reports/categories`), up to 2,000 characters, an optional `ref` as `<type>:<id>`; five an hour per person (the sixth: 429 `too_many_reports`). By category it lands in Support (an item of kind `report`) or in Safety as a flag of its severity, in one transaction with the report; the item's detail holds only the category. The text lives in `problem_reports.report_text` (marked `content`), never in a log, an event, an error report or the item. Opening a report is an audited read; Support lists reports without their text (`GET /v1/admin/reports`); an Owner closes one without a reply, with a note (`inbox.close_report`, always a person). An account's export lists its Support reports, never one that became a flag; deleting a person deletes their reports. Migration `inbox/0003-reports` ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#report-a-problem)).
|
|
1965
|
+
|
|
1966
|
+
### Alerts
|
|
1967
|
+
|
|
1968
|
+
- **Daily cost cap alerts (`ai`):** a purpose reaching its daily cost cap opens one alert in Inbox › Alerts per purpose and day (kind `alert`, ref `daily_cap:<purpose>`; the purpose, the day and the cap only). The next day's first call closes it, and so does publishing or rolling back a profile version. A call under its cap makes no extra database round trip.
|
|
1969
|
+
|
|
1970
|
+
### Inbox screens
|
|
1971
|
+
|
|
1972
|
+
- **Inbox › Safety, Support, AI drafts and Alerts:** flags decided with a note, reports closed without a reply with a note, AI drafts approved, sent with edits or rejected (each asked first); flag and report pages are audited reads and show the audit line. Pages open by address (`/inbox/<queue>?item=<id>`).
|
|
1973
|
+
- **`createAdmin({ inboxKinds: { flag: { Panel } } })`:** the product's panel gets the opened `item` and shows the moment in context on a flag's page. A product names its words in its catalogs (`admin.inbox.flagTypes.<type>`, `admin.inbox.categories.<key>`, `admin.inbox.fields.<key>`, `admin.inbox.refs.<type>`); the inbox's own actions have titles.
|
|
1974
|
+
- **Replying to a report by hand:** an Owner replies from the report's page, in the report's language, asked first; the reply is emailed (a profile's report to the account's members, each email in their own language) and the report closes as replied. Where no draft waits, the page says why: drafting off, reports kept from AI, the draft rejected, or left to a person. A report's item carries `detail.noDraft` (`off`, `kept`, `declined`, `rejected`), written by `automation`, and Support's rows carry it as `noDraft` (`NO_DRAFT_REASONS` in `@buffcore/contracts/inbox`).
|
|
1975
|
+
|
|
1976
|
+
### Overview
|
|
1977
|
+
|
|
1978
|
+
- **The Overview,** the Owner's first screen: high-severity flags stay pinned while open, oldest first, and open on their Safety page; what waits in Safety (how many are high), Support, AI drafts (with `automation`), Alerts and Reviews, each up to 100 open items ("100+" past that); AI spend today against the daily caps, and this month (with `ai`); the latest weekly summary (with `automation`); status in a few lines (each process, the database and Redis, AI providers and backups as their worst part; Unknown never green); the product's panels (`createAdmin({ overview })`). Read again on every visit and each minute.
|
|
1979
|
+
|
|
1980
|
+
### Pages on this device
|
|
1981
|
+
|
|
1982
|
+
- **Pages on this device (`admin-shell`):** an Owner's Operator menu offers "Get pages on this device": it reads `GET /v1/push/setup`, asks for notification permission only on that tap, gets an FCM token from Firebase's web SDK (loaded only then) and registers it for the operator. It checks again without asking on load and each time the menu opens. With FCM off or without its web fields, without `push`, or in a browser that can't, it says pages come by email; a refused browser is told how to allow them. Signing out from the menu removes the token. `@buffcore/admin-shell/vite`'s `adminConsole({ name })` serves Firebase's service worker and a home-screen manifest at the console's root ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md#what-a-product-supplies)).
|
|
1983
|
+
|
|
1984
|
+
### Playbooks
|
|
1985
|
+
|
|
1986
|
+
- **Playbooks (`automation`):** the product's `playbooks/` folder (`automation: { playbooksDir }`, from the API's folder) holds one Markdown file per area (`support.md` is the area `support`; its first `# ` heading is the title), read once at start; a missing folder is an empty list. `playbook(ctx, area)` and `playbooks(ctx)` (`@buffcore/modules/automation`) give agents and AI purposes the rules. `GET /v1/admin/playbooks` and `/v1/admin/playbooks/:area` (`list_playbooks`, `read_playbook`) are Owner only and offered to machines, carrying nothing sensitive; an area that is a path is refused ([AUTOMATION.md](docs/AUTOMATION.md)).
|
|
1987
|
+
|
|
1988
|
+
### Dials and AI drafts
|
|
1989
|
+
|
|
1990
|
+
- **Dials (`automation`):** a machine's or an agent's call to an offered action meets its dial. Off refuses it (403 `dial_off`); Draft (the default for high risk) and Ask first (low risk) make it wait as an AI draft (202 `{ waiting }`), an inbox item of kind `ai_draft`. Only changed dials are stored (`automation_dials`, migration `automation/0001-init`). `GET /v1/admin/automation/dials` lists each action's dial with its drafts approved, edited and rejected over 30 days; `POST /v1/admin/automation/dials/:action` sets one (audited).
|
|
1991
|
+
- **AI drafts:** an Owner approves one (it runs as them, once), edits its body under Draft, or rejects it, at `/v1/admin/automation/drafts`. A failed action opens the draft again. Opening a draft, through its own route or the inbox's, is an audited read.
|
|
1992
|
+
- **`handle(route, handler, { describe })`:** an action says what it changes and how to undo it, shown on its draft (`ActionEffects`, `Describe` from `@buffcore/server`).
|
|
1993
|
+
- **Agents act through `actionTools(ctx, { purpose, actions })`** and `proposeAction(...)` from `@buffcore/modules/automation`. An AI class lists the sensitive kinds it `receives` (none by default); an agent gets only actions carrying those.
|
|
1994
|
+
|
|
1995
|
+
### Drafted replies and the weekly summary
|
|
1996
|
+
|
|
1997
|
+
- **Replying to a report (`inbox`):** `POST /v1/admin/inbox/:itemId/reply { text }` (`inbox.reply_to_report`, Owner, high risk so Draft, offered, carrying nothing) emails the reply and closes the report as `replied`, once: a member's report to that member in their language, a profile's to each of the account's members in theirs, naming the profile; never a profile. With nobody left to email it stays open (`reporter_unreachable`). Closing a report rejects the AI drafts still waiting about it; deleting a person deletes the drafts about their reports. Support's rows say `drafting`.
|
|
1998
|
+
- **AI-drafted replies (`automation`):** a report in Support (hook `inbox.onReport`) is drafted by one call of `support.draft_reply` from the support playbook in the reporter's language, waiting in AI drafts as a Draft that cites the rule; only when that purpose's class `receives` `content`, so otherwise no model sees a report.
|
|
1999
|
+
- **The weekly summary (`automation`):** Mondays 12:00 UTC (`automation: { summaryEvery }`) code counts last week, one call of `ops.weekly_summary` per Owner language writes a page, kept in `automation_summaries` (migration `automation/0002-summaries`) and emailed to every active Owner; with the purpose off, the numbers alone. The Overview shows it (`GET /v1/admin/automation/summary`).
|
|
2000
|
+
|
|
2001
|
+
### Machine doors
|
|
2002
|
+
|
|
2003
|
+
- **One action, every door:** `runAction(ctx, route, { params, query, body })` in `@buffcore/server` calls a route as `ctx.actor` the way its HTTP route does: input checked against its schemas, access, the dial, the handler, the audit. Also `findRoute(app, '<module>.<name>' | route)`, `reachableRoutes(app, actor)`, `Waiting`, `isWaiting`, `viaOf`.
|
|
2004
|
+
- **Door rules:** a machine door (an actor with `via`, or a `client`) or an agent reaches only offered routes (`mcp: true`), public ones included, and only when `connect.allowOut` lets out every kind the route `carries`; otherwise 403 `forbidden` with `details: { offered: false }` or `{ carries }`. An API key's roles are checked as an operator's; an agent has none, because its code names its tools.
|
|
2005
|
+
- **The dial:** a machine's or an agent's call to an action asks `server.gate`: 202 `{ waiting: { itemId, displayId } }` (in OpenAPI for offered actions, replayed for the same `Idempotency-Key`), or 403 `dial_off`, also when nothing answers. Without `automation`, machine doors are read-only.
|
|
2006
|
+
- **Audit and limits:** every write through a door or by an agent is recorded; a waiting call is `ok` with `detail: { waiting: <itemId> }`; `AuditEntry.via` is `api-key:<key>` or `mcp:<client>`. Rate limits count per credential (an API key, an MCP client) ([CONNECT.md](docs/CONNECT.md)).
|
|
2007
|
+
|
|
2008
|
+
### API keys
|
|
2009
|
+
|
|
2010
|
+
- **API keys and gateway keys (`connect`):** one table (`api_keys`, migration `connect/0001-init`). An Owner makes one (`POST /v1/admin/api-keys`, `connect.create_key`, always a person), shown once as `sk_api_…` or `sk_gw_…` and stored as a SHA-256 hash, expiring in 90 days by default and a year at most; lists keys with whether each works now (`GET /v1/admin/api-keys`); revokes one (`connect.revoke_key`). An API key's roles must exist and be held by its maker, and it carries only the roles its operator still holds; a key stops when its operator is disabled (a gateway key when its maker is no longer an Owner).
|
|
2011
|
+
- **Signing in with a key:** an API key in `x-api-key` signs a request in as a `client` through the door `api-key`, even with a session cookie; a gateway key is taken only as `Authorization: Bearer` on the gateway's routes (`gatewayKeyOf`). Keys never reach a log, an error report, the audit or Redis ([CONNECT.md](docs/CONNECT.md)).
|
|
2012
|
+
|
|
2013
|
+
### OAuth for MCP clients
|
|
2014
|
+
|
|
2015
|
+
- **OAuth 2.1 for MCP clients (`connect`, with `mcp-server`):** `@better-auth/oauth-provider` is the authorization server at `<api>/v1/auth`: authorization code with PKCE (S256) only; no dynamic registration; opaque access tokens bound to `<api>/mcp` (RFC 8707) for one hour and refresh tokens (`offline_access`) for 30 days, kept only as hashes. A token ends with the sign-in that allowed it, when its operator is no longer active with two-step sign-in, or when its client is revoked. Tables `oauth_*`, migration `connect/0002-oauth`.
|
|
2016
|
+
- **Allowing a client:** the library sends the browser to the console's `/oauth/consent` (`OAUTH_CONSENT_PATH`); only an active operator with two-step sign-in, signed in within their session length, may answer `POST /v1/auth/oauth2/consent` (anyone else: 403 `NOT_AN_OPERATOR`).
|
|
2017
|
+
- **MCP clients in Admin › API keys:** `GET /v1/admin/mcp-clients`; `POST /v1/admin/mcp-clients` `{ name, redirectUris }` (`connect.create_client`, always a person; https, or http on localhost) answers the client and its secret once (kept encrypted with `APE_ENCRYPTION_KEY`, never logged; a hashed secret would need JWT access tokens, which can't be revoked one by one); `POST /v1/admin/mcp-clients/:clientId/revoke` (`connect.revoke_client`) stops its tokens at once. Clients send their secret with HTTP Basic.
|
|
2018
|
+
- **The door `mcp`:** `Authorization: Bearer sk_oat_...` signs a request in as the operator, `via: 'mcp'`, `credentialId` the client's ID; anything else is 401 `oauth_token_invalid` with `WWW-Authenticate`. Metadata at `/.well-known/oauth-protected-resource/mcp` (RFC 9728) and `/.well-known/oauth-authorization-server/v1/auth` (RFC 8414), with no registration endpoint ([CONNECT.md](docs/CONNECT.md#machine-credentials-v06)).
|
|
2019
|
+
|
|
2020
|
+
### The MCP server
|
|
2021
|
+
|
|
2022
|
+
- **The app's MCP server (`connect`, with `mcp-server`):** `/mcp` on the API, Streamable HTTP and stateless (a JSON answer to each `POST`; `GET` and `DELETE` answer 405). Only an MCP client's OAuth token is taken; anyone else, a session or an API key included, gets 401 with `WWW-Authenticate: Bearer resource_metadata="..."`. Tools are the offered routes the caller's roles reach: `<module>_<name>`, the route's description, `readOnlyHint` on reads, input `{ params, query, body }`. A call is the route's own request, made in-process with the caller's token, so access, door rules, the dial (an action waits: `{ waiting: { itemId, displayId } }`), idempotency, rate limits and the audit are the route's; the answer is the route's answer as JSON text, a refusal `isError`. Prompts are the playbooks, through their routes (Owner only) ([CONNECT.md](docs/CONNECT.md#the-apps-mcp-server-v06)).
|
|
2023
|
+
- **CORS for MCP clients in a browser:** OAuth's metadata documents, the token and revocation endpoints and `/mcp` answer any origin, without cookies, exposing `WWW-Authenticate`; every other route still answers only the console and the app.
|
|
2024
|
+
|
|
2025
|
+
### Offered routes
|
|
2026
|
+
|
|
2027
|
+
- **BuffCore offers these routes to machines and agents,** all Owner-only and carrying nothing sensitive, so they are open with nothing let out: the inbox list (`inbox.list_items`, subjects only), content sets (`content.list_sets`; `state=in_review` for those waiting), AI cost totals and usage (`ai.get_call_totals`, `ai.get_usage`), kill switches (`ops.list_switches`, `ops.switch_off`, `ops.switch_on`), error groups (`errors.list_groups`) and the display-ID lookup, beside the dials, playbooks, status, analytics counts, report replies and People's safe actions (each in its own group). A test lists them, so a change shows in review ([CONNECT.md](docs/CONNECT.md#what-buffcore-offers-v06)).
|
|
2028
|
+
- **Switching through a door waits for a person:** `ops.switch_off` and `ops.switch_on` are always human, so a machine's or an agent's call waits as an AI draft that says what it changes (maintenance mode for `apps`), titled in English and Spanish.
|
|
2029
|
+
- **The display-ID lookup (`connect`):** `GET /v1/admin/display-ids/:displayId` (`connect.look_up_display_id`) answers `{ type, id }` for the record a display ID names, as written or in small letters, and nothing else.
|
|
2030
|
+
|
|
2031
|
+
### The AI gateway over HTTP
|
|
2032
|
+
|
|
2033
|
+
- **The AI gateway over HTTP (`gateway`, the `ai-gateway` feature):** any app uses BuffCore's gateway as it would OpenAI or OpenRouter: an OpenAI client with the base URL `<api>/v1/gateway` and a gateway key (with the AI SDK, `.chat(model)`). `POST /v1/gateway/chat/completions` (messages, streaming as server-sent events, tools and tool calls, `response_format` and the usual limits; other fields ignored) and `GET /v1/gateway/models`, in OpenAI's shapes (`@buffcore/contracts/gateway`). Models by catalog name: `model`, then `models`, at most three, each filtered by the product's class for `ai.gateway`; a failure before any output hands over to the next. Tools run in the caller: the tool calls come back after one model step (`ai/step.ts`). One `ai_calls` row per attempt and refusal, the key in `refs.gatewayKey`; refusals in OpenAI's error shape. `aiGateway: { class, limits? }` (`GATEWAY_LIMITS`: 4,096 output tokens, two minutes, no daily cap). `GET /v1/admin/gateway/spend` answers each gateway key's spend this month ([AI_GATEWAY.md](docs/AI_GATEWAY.md#over-http-v06)).
|
|
2034
|
+
|
|
2035
|
+
### Automation and access screens
|
|
2036
|
+
|
|
2037
|
+
- **Automation › Dials and Playbooks, Admin › API keys and the OAuth consent page:** a dial change and every key or client made or revoked asks first; a new key or client secret is shown once, kept only in the screen and never logged; operators by name, never an ID; a playbook's Markdown shows as text, never HTML. Each API keys tab shows with its feature (`api-keys`, `ai-gateway` with this month's spend, `mcp-server`). The console's `/oauth/consent` page lets an operator with two-step sign-in allow or deny an MCP client.
|
|
2038
|
+
- **`@buffcore/sdk`:** `api.auth.oauthClient(clientId)` and `api.auth.oauthConsent(accept, oauthQuery)` for the consent page.
|
|
2039
|
+
|
|
2040
|
+
### Password reset
|
|
2041
|
+
|
|
2042
|
+
- **Password reset by emailed code (`identity`):** `POST /v1/auth/email-otp/request-password-reset` `{ email }` emails a 6-digit code in the person's language (`passwordResetCode`; the code stays out of the subject and preview); `POST /v1/auth/email-otp/reset-password` `{ email, otp, password }` sets the new password. A code works once, within 10 minutes and three tries, and a new one replaces the last; an address gets three codes an hour, whether or not it has an account (the fourth: 429 `TOO_MANY_CODES`). A reset ends every session of that person and signs nobody in; operators still need their authenticator. The library's link reset and `/forget-password/email-otp` stay off; `check-verification-otp` refuses reset codes. The SDK has `auth.requestPasswordReset` and `auth.resetPassword`.
|
|
2043
|
+
- **Emailed codes never say whether an address has an account:** every code email (sign-in, address check, reset) goes out after the answer, so every address answers as fast; on every path that takes a code, a code out of tries or time answers `INVALID_OTP` like a wrong one; an operator is told `USE_PASSWORD` only once their code is right.
|
|
2044
|
+
- **A changed password is emailed to the person** (`passwordChanged`), after a reset or a signed-in `POST /v1/auth/change-password`, in their language, with what to do if it wasn't them ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md)).
|
|
2045
|
+
|
|
2046
|
+
### People's safe actions
|
|
2047
|
+
|
|
2048
|
+
- **Resend the email check (`identity`):** `POST /v1/admin/accounts/:accountId/members/:userId/email-check` (`identity.resend_email_check`) emails a member who hasn't confirmed their address a new 6-digit code, in their language; the new code replaces the earlier one. A confirmed address is refused (409 `email_confirmed`). `getAccount`'s members carry `emailVerified`.
|
|
2049
|
+
- **Pause and resume a profile (`profiles`):** `POST /v1/admin/profiles/:profileId/pause` and `.../resume` (`profiles.pause_profile`, `profiles.resume_profile`) answer `{ pausedAt }` only. While paused, a device acting as the profile is refused at once (403 `profile_paused`) and no live session starts for it, whoever names it; nothing is deleted. `adminGetProfile` answers `AdminProfile` (`pausedAt`). Migration `profiles/0002-paused`.
|
|
2050
|
+
- **Always human and offered:** the four People actions (with `devices.remove_device`, now always human) are offered to machines and carry nothing sensitive; a machine's or an agent's call waits as an AI draft that names the account or profile by display ID, never a name or address, says how to undo it, and is titled in English and Spanish ([CONNECT.md](docs/CONNECT.md#what-buffcore-offers-v06)).
|
|
2051
|
+
- **People's screens:** an unconfirmed member shows "Not confirmed" with Resend the email check; a profile's Access shows Active or Paused since a date, with Pause or Resume; each asks first.
|
|
2052
|
+
- **The app's paused notice (`devices`):** a profile refused as paused shows `PausedView` until another is chosen (`useDeviceState().paused`); the SDK's `onDeviceRefused` hears `profile_paused`.
|
|
2053
|
+
|
|
2054
|
+
### App and sign-in screens
|
|
2055
|
+
|
|
2056
|
+
- **"Forgot your password?"** in the app's sign-in and the console's: an emailed code, then a new password, then back to sign-in. A password's shortest length is `PASSWORD_MIN_LENGTH` in `@buffcore/contracts/identity`, used by the server and both screens.
|
|
2057
|
+
- **"Report a problem" in the app:** a sheet over any screen, offered from Settings and opened from anywhere with `useReportProblem()` from `@buffcore/app-shell` (optionally naming what it is about, `session:<id>`).
|
|
2058
|
+
- **Maintenance mode in the app:** the first call that meets 503 `maintenance` shows the notice with the "back by" time; only while it shows does the app ask `GET /v1/maintenance`, every 30 seconds and on Try again, and it comes back by itself when the apps are on. Nothing is asked while the apps are on.
|
|
2059
|
+
- **Settings signs out through the product's sign-out** when it passes one (`SettingsScreen`'s `signOut`): with push on, pass `usePush().signOut`, so the device's push token goes before the sign-in.
|
|
2060
|
+
|
|
2061
|
+
### Status
|
|
2062
|
+
|
|
2063
|
+
- **Operations › Status:** `GET /v1/admin/ops/status` (Owner only, offered to machines as `ops.get_status`): processes from Redis heartbeats (Down once a beat expires or a process stops, Unknown when never seen), the database and Redis, AI providers from the last 15 minutes of `ai_calls` (degraded at a fifth failing), and email and push from the delivery log and their last test. What nothing tells us is Unknown, never green. Status counts only what reached a provider: a push to someone with no push token isn't a provider's failure.
|
|
2064
|
+
- **Heartbeats:** `startServer` takes an optional `name` and beats as `api` by default; `startWorker` takes `{ name? }` and beats as `worker`. A side service started with `serves` passes the `name` it has in `processes`, or it shows Unknown.
|
|
2065
|
+
- **The Status screen** shows what the route answers: Unknown never green, "everything checked is healthy" only when every row (backups too) is, a row per channel named by its services (Off with none), backup failures in words and late backups as Late. A product names its processes and providers in its catalog (`admin.ops.status.process.<name>`, `admin.ops.status.provider.<key>`).
|
|
2066
|
+
|
|
2067
|
+
### Backups
|
|
2068
|
+
|
|
2069
|
+
- **Backups (`ops`):** `ape backup` dumps the database with `pg_dump` from the product's own Postgres image (in Docker, read from `infra/docker/compose.yml`, so the versions match), counting every table in the dump's own snapshot; encrypts the dump in memory with AES-256-GCM under `APE_BACKUP_KEY` (32 random bytes, base64; never `APE_ENCRYPTION_KEY`); stores it under `backups/` in the bucket; and removes backups over 30 days old. `ape backup test` restores the newest into a scratch database beside the live one, compares row counts with those taken at backup, and drops it. Each run writes a row in `ops_backups` (migration `ops/0004-backups`) with a failure's code (`bad_key`, `wrong_key`, `counts_differ`, ...). The key, the plain dump and what `pg_dump` and `pg_restore` say never reach a log, a row or the disk ([ARCHITECTURE.md](docs/ARCHITECTURE.md#environments-and-deployment)).
|
|
2070
|
+
- **Restore a backup (`ops`):** `ape backup list` shows the backups in the bucket, newest first (when stored, size, object). `ape backup restore --into <name> [--object <key>]` decrypts the newest backup, or the one named, into a new database on the server `DATABASE_URL` names, compares row counts with those sealed in the backup, and leaves it for the Owner to switch to: it prints the `DATABASE_URL` to set (password hidden), `ape migrate`, and what to restart. A name that isn't a plain Postgres name, the one `DATABASE_URL` names (even when it is gone), a restore test's or one already taken is refused before anything changes; a missing or wrong key before the database is made; a restore that fails partway drops the database it made. What it did is what it prints: a restore writes no row.
|
|
2071
|
+
- **A backup restores without the live database (`ops`):** each backup seals its time and every table's row count with the dump, under the same key and tag (format `MATABAK2`), so `ape backup list` and `restore` need only the bucket, `APE_BACKUP_KEY` and a Postgres server; neither opens the app. With the live database gone, point `DATABASE_URL` at any Postgres server; a database it names that isn't there is fine. The 30-day removal goes by the bucket, so a backup whose row was lost is still listed and still removed; `ops_backups` stays for Status.
|
|
2072
|
+
- **The Postgres image:** `ape backup` reads it from `APE_PG_IMAGE` where a server has no compose file with a `postgres` service.
|
|
2073
|
+
- **`@buffcore/storage` lists a prefix:** `list(prefix)` returns every object under it, in key order, with its `key`, `bytes` and `at` (when the bucket stored it).
|
|
2074
|
+
- **Status shows backups:** a line for the last backup and one for the last restore test: Unknown when none ran, Down when the last failed (with its reason and when one last worked), Degraded when late (48 hours for a backup, 8 days for a test).
|
|
2075
|
+
|
|
2076
|
+
### Maintenance
|
|
2077
|
+
|
|
2078
|
+
- **Maintenance mode is the kill switch `apps`:** while it is off, the apps' requests answer 503 `maintenance` with a fixed, translated notice and an optional "back by" time (`?backBy=` on switch-off; `details.backBy` and `Retry-After`). The admin console (operators and API keys), sign-in, password reset, health and webhooks keep working; live sessions can't start. `GET /v1/maintenance` (public) tells the apps whether maintenance is on and when they should be back. Migration `ops/0003-maintenance` (`ops_switches.back_by`).
|
|
2079
|
+
- **In the console,** switching `apps` off asks with an optional "back by" (`?backBy=`), shown on its row while off. Kill switches name a former operator "No longer an operator", never an ID.
|
|
2080
|
+
|
|
2081
|
+
### Analytics
|
|
2082
|
+
|
|
2083
|
+
- **Analytics' counts (`analytics`):** `GET /v1/admin/analytics` (`analytics.get_counts`, Owner-only, offered to machines, counts only): people active today, in the last 7 and 30 days and each UTC day by the product's activity events (`analytics: { activity }`, default `app_opened`), live sessions and their minutes when `realtime` is on (`null` without it), and people by language, over the last 30 days. Plain queries over `events` and `rt_sessions`: no table, no job.
|
|
2084
|
+
- **The Analytics screen** shows the route's counts, linking to AI › Usage and costs when `ai` is on.
|
|
2085
|
+
|
|
2086
|
+
### Translations
|
|
2087
|
+
|
|
2088
|
+
- **One way to count strings:** `checkStrings(merged, offered)` and `SOURCE_LOCALE` in `@buffcore/i18n` are what `ape i18n check` does (missing keys, broken placeholders, keys English lacks, for each offered language but English; a regional language with no catalog of its own reads its base language). The command and Content › Translations both use it, so they always agree.
|
|
2089
|
+
- **Content › Translations coverage (`content`):** `GET /v1/admin/content/translations` (`read_coverage`, the Owner's) answers, for each language the product offers but English, the strings' `total`, `missing`, `broken` and `unused` with those keys, and per content kind the published English items with no published variant or an outdated one, with those items. `locale` asks for one language; `limit` (default 100, 0 for counts only, at most 1,000) cuts the lists.
|
|
2090
|
+
- **`ape i18n translate <locale>`** (development, needs `generation`): AI drafts a language's missing strings, and those whose English changed, as BuffCore's `catalog` content items through a translation run. Each meets the placeholder, glossary, ICU, markup and length checks, then AI QA; the set waits in Inbox › Reviews.
|
|
2091
|
+
- **`ape i18n pull <locale>`** writes only approved strings into the JSON catalog beside each English file, in its order, and never replaces a string written by hand. Content › Translations leaves the `catalog` kind out of content coverage: strings are counted once, from the files.
|
|
2092
|
+
- **The Translations screen** shows coverage per language and one language's gaps (`?language=<locale>`): missing strings (English when the console has the catalog, else the key) and content missing or out of date, opening its item.
|
|
2093
|
+
|
|
2094
|
+
### Production
|
|
2095
|
+
|
|
2096
|
+
- **`ape server setup <ssh destination>`** makes a plain Ubuntu server (24.04 or later) ready to run the product, over SSH, each step safe to run again: Docker and Compose from Ubuntu's packages; a firewall letting in only SSH, 80 and 443 (an existing SSH rule is kept); in `/srv/<product>/` a compose file (Postgres and Redis on the product's development images, Caddy, the API and each declared process from the product's image, never pulled from a registry, and `ape` for one-off commands, all on 127.0.0.1 in the host's network) and a Caddyfile serving the API's paths and the admin console at one address over HTTPS, from Let's Encrypt (`--domain`) or Caddy's own certificate authority (`--network-only`); and a cron running `ape backup` nightly and `ape backup test` weekly into the journal. Settings come from a file on the developer's computer (`--env`, `.env.production` by default) that names the backup bucket; setup makes any missing `APE_AUTH_SECRET`, `APE_ENCRYPTION_KEY`, `APE_BACKUP_KEY` and `APE_DB_PASSWORD`, adds them to the file, and sends the settings into a file only root reads, never on a command line or in a log ([ARCHITECTURE.md](docs/ARCHITECTURE.md#environments-and-deployment)).
|
|
2097
|
+
- **`ape deploy <ssh destination> [-i key]`** ships the product to a server `ape server setup` prepared: the image built from the commit (`git archive`, so no `.env` or uncommitted file reaches it), holding only what the API's package depends on, the console built for the server's address, running as `node` with `APE_RELEASE` the commit; sent over SSH into `docker load`, then migrated (BuffCore's first), the console's files copied where they changed, restarted (`docker compose up -d --wait`), old images removed and `/health` checked through Caddy over HTTPS. A server already running this image is left as it is ([ARCHITECTURE.md](docs/ARCHITECTURE.md#environments-and-deployment)).
|
|
2098
|
+
- **`ape owner add <email> [--name] [--another]`** makes an Owner (on a production server, the first one): it asks for the password twice without showing it, or reads the first line of its input, never an argument; refuses when an Owner exists (unless `--another`) or the address has an account; audited as `ape owner add`. The console then asks the Owner to set up two-step sign-in. `addOwner` in `@buffcore/modules/identity`.
|
|
2099
|
+
|
|
2100
|
+
### CLI
|
|
2101
|
+
|
|
2102
|
+
- **`ape prototype snapshot` drives Playwright's headless Chromium,** never the installed Chrome or Edge: each run there started a fresh Chrome profile, whose sign-in check counted as failed Windows logons and locked the person's account out. Install it once with `pnpm exec playwright-core install chromium-headless-shell`. The CLI's browser tests and v0.3's gate script use it too.
|
|
2103
|
+
- **`ape upgrade --to <version>`** moves a product to a release (`0.6.0` or the tag `v0.6.0`; development only). It sets that version in every `@buffcore/*` range of the root and workspace `package.json` files and in the pin in `buffcore.config.ts` (links from `ape link` stay), installs, prints the upgrade notes crossed for the features that are on, then migrates and runs the tests. It refuses a release below the pin or below a package already ahead of it. A failed install puts every file back; a failed migration or test stops it and says what to rerun ([RELEASES_AND_UPGRADES.md](docs/RELEASES_AND_UPGRADES.md#upgrading-a-product)).
|
|
2104
|
+
- **`ape dev` runs beside a second checkout:** it starts the admin and app on the ports in `APE_ADMIN_URL` and `APE_APP_URL` and tells them the API's address (`VITE_API_URL`, `VITE_APP_URL` and `EXPO_PUBLIC_API_URL` from `APE_API_URL`); it refuses to start when `APE_API_URL` is on this computer but on another port than `APE_API_PORT`. `ape stop` reads the admin and app ports from their addresses (it assumed API+1 and API+2) and stops only the servers its checkout started, naming any other and leaving it running ([MONOREPO.md](docs/MONOREPO.md)).
|
|
2105
|
+
- **`ape i18n extract` reads the console's and the app's English catalogs too,** and skips tests and their helpers.
|
|
2106
|
+
|
|
2107
|
+
### The playground and the gate
|
|
2108
|
+
|
|
2109
|
+
- **The playground runs v0.6:** pinned to 0.6.0 with `automation`, `analytics`, `api-keys`, `mcp-server` and `ai-gateway` on, and its first playbook, `playbooks/support.md`. A note with the safety test phrase raises a high flag that pages the Owner, and its panel reads the note (an audited read). "Report a problem" has the categories problem and question (Support) and felt_wrong (a medium flag), named in both languages. Drafted replies use a `support` class that receives `content`; the gateway's class is `gateway` (Anthropic and OpenAI). Removing a note is offered to machines and waits in AI drafts.
|
|
2110
|
+
- **`scripts/gate-v06/run.ts`** checks v0.6's exit gate in fixture mode on a throwaway database, with a worker beside the playground and a real socket for the MCP and OpenAI clients (`run.ts 5 6` runs only those steps).
|
|
2111
|
+
|
|
2112
|
+
### Fixes
|
|
2113
|
+
|
|
2114
|
+
- **Changing your name or language (`PATCH /v1/me`) applies to every sign-in already in use** from its next request: `updateMe` writes through the sign-in library, which refreshes the copy of the person each session keeps in Redis. Before, the old language held until the person signed in again (emails, reports and AI drafts in the old language).
|
|
2115
|
+
- **The AI input check lets record IDs, arithmetic and dates through:** a phone number is a run of 10 or more digits joined by spaces, dots, dashes or brackets, and a line break, a time, a record ID or a dash with spaces around it (subtraction) ends a run. So "2.5 - 1.25", "45 - 12 - 8", "2026-10-13 10:30" and a UUID reach the model, while (301) 555-0123 or +44 20 7946 0958 never do. Before, any 10 characters of digits, spaces, dots, dashes and brackets counted, and a math problem's call was refused. Shorter numbers still pass (a 7-digit local number, a 9-digit one without a country code), and a spoken list of digits separated by spaces ("10 20 30 40 50") still counts as a number: a product joins such a list with commas before the call ([AI_GATEWAY.md](docs/AI_GATEWAY.md#privacy-rules)). The check rejects a street address only when the caller lists it in `forbidden`.
|
|
2116
|
+
- **Database errors keep no row data:** Postgres's detail (which can quote a whole row) is dropped from every logged or reported error message.
|
|
2117
|
+
|
|
2118
|
+
### Skills
|
|
2119
|
+
|
|
2120
|
+
- **`ape-add-route`** covers action names, `mcp: true`, `carries`, `describe`, what a machine's call meets and maintenance mode; **`ape-upgrade`** runs `ape upgrade --to`; **`ape-add-module`** covers safety flags; **`ape-add-ai-purpose`** covers classes that receive kinds and agents' action tools; **`ape-add-translations`** covers `ape i18n translate` and `pull`; **`ape-add-event`** covers activity events; **`ape-admin-screen`** and **`ape-app-screen`** cover panels on the Overview, a flag's page and People, and the notices the shell shows; **`ape-prototype`** says to install Playwright's Chromium once.
|
|
2121
|
+
|
|
2122
|
+
### Upgrade notes
|
|
2123
|
+
|
|
2124
|
+
**Routes**
|
|
2125
|
+
|
|
2126
|
+
1. **An action route needs a `name`:** a route with `action` (or `mcp: true`) and no `name` stops the app at start, naming the route. Add `name: '<verb>_<object>'` in snake_case, unique in its module, without the module's own word (`archive_note` in a `notes` module, not `archive_notes_note`). The dial's key is `<module>.<name>`, the MCP tool `<module>_<name>`.
|
|
2127
|
+
2. **`mcp: true` marks a route offered to machines,** where the docs said `mcp: 'tool' | 'resource'` (never built). Every offered route is a tool (reads are read-only tools); MCP resources wait until a client needs them. An offered write must be an action.
|
|
2128
|
+
3. **Machines and agents reach only offered routes.** A `client`, an actor with `via`, or an `agent` (from a product's own `server.authenticate` or its tests) gets 403 `forbidden` on a route without `mcp: true`, public ones included, and on an offered route that `carries` a kind `connect.allowOut` doesn't list. Offer the route, or act as a person.
|
|
2129
|
+
4. **Their calls to actions wait or are refused, never run:** 202 `{ waiting }` when `server.gate` answers, else 403 `dial_off`. Code that called an action's handler for an agent calls `runAction` instead; a test that expected 200 for an action called as a `client` or `agent` acts as a person, or answers `server.gate` with a fake dial.
|
|
2130
|
+
|
|
2131
|
+
**Admin console**
|
|
2132
|
+
|
|
2133
|
+
1. **The Owner opens on the Overview (`/`),** not on the first product screen. A test that expected the Owner's first screen expects the Overview; other operators still open on their first screen.
|
|
2134
|
+
2. **`AdminContextValue` has `inboxKinds` and `overview`:** a test that builds the context by hand adds `inboxKinds: {}, overview: []`.
|
|
2135
|
+
3. **`OverviewWeek.activeUsers` may be null** (no `analytics`): a scene or test that reads it handles that.
|
|
2136
|
+
|
|
2137
|
+
**Inbox**
|
|
2138
|
+
|
|
2139
|
+
1. **`InboxRow` has an optional `severity`, `InboxItem` an optional `note`, and `getInboxItem` answers `audited`:** a test that builds that answer by hand adds `audited`.
|
|
2140
|
+
2. **`ReportRow` has `drafting` and `noDraft`:** a test that builds a Support row adds `drafting: false, noDraft: null`.
|
|
2141
|
+
|
|
2142
|
+
**Identity**
|
|
2143
|
+
|
|
2144
|
+
1. **Code emails arrive just after the answer, not before it:** a product test that reads a code from `app.outbox` right after asking waits for it (for example with `vi.waitFor`).
|
|
2145
|
+
2. **A code that is out of tries or too old answers `INVALID_OTP`, like a wrong one,** on every path that takes a code (sign-in, address check, password reset): a client or test that told them apart shows or expects `INVALID_OTP`.
|
|
2146
|
+
3. **`AccountMemberRow` has `emailVerified`:** a test or scene that builds an `AccountDetail` by hand adds it.
|
|
2147
|
+
|
|
2148
|
+
**Maintenance**
|
|
2149
|
+
|
|
2150
|
+
1. **A product's own routes answer 503 while `apps` is off,** unless an operator or an API key calls them.
|
|
2151
|
+
|
|
2152
|
+
**CLI**
|
|
2153
|
+
|
|
2154
|
+
1. **Ports come from `.env`:** remove the port from the admin's and app's dev scripts (`"dev": "vite"`, `"dev": "expo start --web"`) and from the admin's `vite.config.ts` (`server: { strictPort: true }`). A product that keeps them still runs, but not beside a second checkout.
|
|
2155
|
+
2. **Before `ape backup`, set `APE_BACKUP_KEY`:** 32 random bytes, base64, its own key (not `APE_ENCRYPTION_KEY`). Keep a copy offline: without it no backup can be read.
|
|
2156
|
+
3. **`ape prototype snapshot` needs Playwright's Chromium:** run `pnpm exec playwright-core install chromium-headless-shell` once on each machine that takes snapshots.
|
|
2157
|
+
4. **To deploy with `ape deploy`,** the API's package (`apps/api/package.json`) lists `"@buffcore/cli": "<BuffCore version>"` and `"tsx": "4.23.15"` in `dependencies`, then `pnpm install`: the server runs both, and the image installs only what that package depends on.
|
|
2158
|
+
|
|
2159
|
+
**Storage**
|
|
2160
|
+
|
|
2161
|
+
1. **`Storage` has `list(prefix)`:** a `Storage` built by hand (a test's fake) adds `list: async () => []`.
|
|
2162
|
+
|
|
2163
|
+
**`ai`**
|
|
2164
|
+
|
|
2165
|
+
1. **A test app that hits a daily cap or publishes an AI profile needs the `inbox` module (and `identity`),** as every real app already has: the cap opens an alert and a new version closes it.
|
|
2166
|
+
|
|
2167
|
+
**`automation`**
|
|
2168
|
+
|
|
2169
|
+
1. **Give `support.draft_reply` and `ops.weekly_summary` starting profiles** in `ai: { profiles }` (and fixtures for tests): the weekly job emails every active Owner each Monday, and a report's draft runs where the reply's class `receives: ['content']`. A playbook a purpose reads holds no email address or phone number (the AI input check refuses them).
|
|
2170
|
+
|
|
2171
|
+
**`profiles`**
|
|
2172
|
+
|
|
2173
|
+
1. **`adminGetProfile` answers `AdminProfile`:** a test that builds its answer by hand adds `pausedAt`.
|
|
2174
|
+
|
|
2175
|
+
**`devices`**
|
|
2176
|
+
|
|
2177
|
+
1. **`DeviceRefusal` gains `profile_paused`:** a product that handles `onDeviceRefused` itself says the profile is paused (the app shell does).
|
|
2178
|
+
|
|
2179
|
+
**`push`**
|
|
2180
|
+
|
|
2181
|
+
1. **The admin console's Vite plugin:** add `import { adminConsole } from '@buffcore/admin-shell/vite'` and `adminConsole({ name: '<Product> admin' })` to `plugins` in `apps/admin/vite.config.ts`. Without it, "Get pages on this device" says pages come by email.
|
|
2182
|
+
|
|
2183
|
+
**`api-keys` or `mcp-server`**
|
|
2184
|
+
|
|
2185
|
+
1. **`api-keys` and `mcp-server` arrive in 0.6.0** (the catalog said 0.3, but neither was built): a product pinned earlier that lists either is refused by `defineProduct`. Take it out until the product pins 0.6.0.
|
|
2186
|
+
2. **Connect's migrations add `api_keys` and the `oauth_*` tables** (`0001-init`, `0002-oauth`).
|
|
2187
|
+
|
|
2188
|
+
**`api-keys`**
|
|
2189
|
+
|
|
2190
|
+
1. **With `api-keys` on, an `x-api-key` that isn't a working key gets 401 `api_key_invalid`,** even on public routes; a Bearer `sk_gw_…` token outside `/v1/gateway` is refused the same way. A request carrying `x-api-key` is the key's even with a session cookie.
|
|
2191
|
+
|
|
2192
|
+
**`mcp-server`**
|
|
2193
|
+
|
|
2194
|
+
1. **A Bearer `sk_oat_...` token that isn't a working access token gets 401 `oauth_token_invalid`** on every route, public ones included; one that works is its operator's through the door `mcp`, so it reaches only offered routes.
|
|
2195
|
+
2. **The API reads form-encoded bodies** (OAuth's token and revocation endpoints need them): a JSON route sent one answers 400 `validation_failed` instead of 415.
|
|
2196
|
+
|
|
2197
|
+
## v0.5.0 (2026-10-13)
|
|
2198
|
+
|
|
2199
|
+
Families: devices, consent, notifications through providers chosen in Admin › Services, privacy and uploads, as general services.
|
|
2200
|
+
|
|
2201
|
+
### Groundwork
|
|
2202
|
+
|
|
2203
|
+
- **`BUFFCORE_VERSION` is `0.5.0`.**
|
|
2204
|
+
- **New modules:** `notifications` and `privacy` join the core (`privacyModule` takes `buffcoreModules(product, { privacy: { holdDays?, retention? } })`; `RETENTION_DEFAULTS` are finite, so a product that sets nothing keeps less, not more). The features `devices` (needs `profiles`), `consent` and `uploads` need their configuration when on (`DevicesConfig`, `ConsentConfig`, `UploadsConfig`); `push` needs none, and `in-app-notifications` is a flag. Subpaths `@buffcore/modules/{devices,consent,notifications,push,privacy,uploads}` and `@buffcore/contracts/{devices,consent,notifications,push,services,privacy,uploads}`; `DEVICE_HEADER` (`x-ape-device`, kept out of logs) and `PROFILE_HEADER` in `@buffcore/contracts/devices`.
|
|
2205
|
+
- **Devices in profile mode:** the actor kind `device` (audit migration `audit/0002-device-actor`); `Actor` has `deviceId`, `accountId` (a device's or a profile's) and `profileIds` (a device's). A `device` or `profile` actor reaches only routes that say `device: true`, and public ones.
|
|
2206
|
+
- **Hooks:** `server.sendMail`, `notifications.sendPush`, `notifications.device` (a device recipient's account and language, answered by `devices`), `consent.missing`, `consent.onWithdrawn`, `privacy.onExportAccount`, `privacy.onDeleteProfile`, `privacy.onDeleteAccount` and `privacy.onRetention`, with the types `PrivacyExport`, `PrivacyDeletion`, `RetentionDays`, `OutgoingPush` and `PushOutcome` from `@buffcore/server`.
|
|
2207
|
+
- **Manifest fields:** `notificationKinds` (`NotificationKindDef`: who it may reach, its channels, whether a person may turn it off, `urgent`, its email template and text), `services` (`ServiceDef`: a channel, a label, fields plain or secret, a `test`, and fields it may `generate`), and `contentKinds[kind].humanTranslationOnly`.
|
|
2208
|
+
- **Scheduled jobs:** a job that declares `every` (a cron pattern, in UTC) runs on it as the system; the worker keeps the schedules when it starts and removes those no longer declared.
|
|
2209
|
+
- **`@buffcore/storage`:** `createStorage(env)` (`put`, `get` as a stream, `remove`, `removePrefix`; private objects signed with `aws4fetch`), `StorageError`, `ensureBucket` (`ape migrate` makes the bucket outside production) and `@buffcore/storage/testing` (`createTestStorage`).
|
|
2210
|
+
- **Emails:** templates one file per area (`templates/<area>.tsx`, with `locales/<area>.en.ts` and `.es.json`); the exports are unchanged. The app shell's strings are split by area the same way (`devices`, `account`).
|
|
2211
|
+
|
|
2212
|
+
### Services
|
|
2213
|
+
|
|
2214
|
+
- **Admin › Services (server):** `ops_services` (`ops/0002-services`); the `@buffcore/contracts/services` routes (Owner only, always a person: list, set fields, turn on, turn off, test); `serviceConfig(ctx, key)` from `@buffcore/modules/ops`, a service's fields while it's on, cached for 5 seconds. Secret fields are stored encrypted and never returned, logged or audited; changing a field clears the last test; a test runs while a service is off. `ServiceField.generated` (made by the service's `generate` the first time it's turned on or tested; never replaced). Admin › Environment names the email service that's on ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md)).
|
|
2215
|
+
- **Admin › Services (screen, `/admin/services`):** the services by channel with each one's honest status, a service's fields (secrets only shown as set; an emptied secret input changes nothing), turning on and off asking first, and a test's result; `?service=<key>` opens one; "Last change" names the person ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md)).
|
|
2216
|
+
|
|
2217
|
+
### App components
|
|
2218
|
+
|
|
2219
|
+
- **`@buffcore/ui`:** `BigChoice`, `DeviceCode` (show or enter a pairing code), `ProfilePicker`, `PinPad`, `ProfileGate`, `TimeSelect` and `NotificationList`, with `useCountdown` and `formatWait` (`0:30`, `9:59`, through `Intl.DurationFormat`, else `00:30`). Every word comes from the caller; times through `Intl` ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md)).
|
|
2220
|
+
- **Views for the devices and account screens** (props in, UI out; prototype versions A, B and 14), exported from `@buffcore/app-shell/prototype`: `app-shell/src/devices` (welcome, enter a code, show a code, this device, the picker with the gate, the gate's choices, set the PIN) and `app-shell/src/account` (consent, consents and withdraw, devices, notification settings with quiet hours, notifications, privacy). The gate's name is the product's catalog override, "Members" by default. They are wired in "Devices in the app" and "Screens wired" below.
|
|
2221
|
+
|
|
2222
|
+
### Devices in profile mode
|
|
2223
|
+
|
|
2224
|
+
- **Devices (`devices`, ):** a grant (a hashed secret on a `devices` row; migration `devices/0001-init`), set up on this device by a signed-in member or with a pairing code (random digits of the product's length and minutes, in Redis, single use, one live code per account; `POST /v1/devices/pair` takes 10 tries per 15 minutes per IP). Members list, rename, change and remove their devices; the Owner lists and removes them (audited); `GET /v1/device` answers a device with the profiles it may use now. The `x-ape-device` header wins over a session cookie; a profile lacking a required consent can't be granted or picked. Devices answer the privacy hooks and `notifications.device` ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md)).
|
|
2225
|
+
- **identity:** `signedInWithin(ctx, minutes)` and `signInAgain` (`sign_in_again`, 403).
|
|
2226
|
+
- **realtime:** `renewTicket` opens to devices; `startSession` keeps a profile to its own sessions and refuses a device with no profile picked; a product's start route opens to devices with `device: true`.
|
|
2227
|
+
- **The profile gate (`devices`):** one PIN per account, of the product's `gate.digits` (`GET` and `PUT /v1/accounts/:accountId/pin`; setting it needs a sign-in within `devices.freshSignInMinutes`, default 10, and emails every member "PIN changed" in their language, kind `devices.pin_changed`, which can't be turned off). Devices call `POST /v1/device/gate` and `POST /v1/device/leave`; wrong PINs count per account across its devices, and `gate.tries` in a row lock every device for `gate.waitSeconds` (`gate_locked`, 429). The PIN is stored as scrypt with the server's secret in `profile_gates` (migration `devices/0002-profile-gates`); `@buffcore/emails` exports `pinChanged`. Profile mode needs a PIN first: setting up this device and making a pairing code answer `pin_required` (409) until the account has one.
|
|
2228
|
+
|
|
2229
|
+
### Notifications
|
|
2230
|
+
|
|
2231
|
+
- **`notify(ctx, kind, to, data, { profileId? })`** from `@buffcore/modules/notifications`: kinds come from module manifests (`notificationKinds`, with a `label` for settings); a kind refuses a recipient it doesn't name; each recipient's language is read when the message is sent (a device gets its account's, or the language of the profile the message names); one row per message per channel in `notifications` (the delivery log and the in-app list; migration `notifications/0001-init`); email through `sendMail` with the provider's message ID on the row; push through the `notifications.sendPush` hook (a row without an answer fails with `no_push_service`); the `notifications.send` job. Settings per person (`GET`/`PUT /v1/notifications/settings`, members and operators): channels turned off per kind unless the kind can't be, and quiet hours in their time zone, which hold push only, never an urgent kind. Marks redact by property name, so the sensitive properties are `renderData`, `inAppTitle` and `inAppBody` (columns `data`, `title`, `body`). ([MODULES.md](docs/MODULES.md)).
|
|
2232
|
+
- **In-app list (`in-app-notifications`):** `GET /v1/notifications`, `GET /v1/notifications/unread-count`, `POST /v1/notifications/:notificationId/read` and `/read-all`, each showing or marking only the caller's own rows (a member's, an operator's, a device's, or a profile's on that device).
|
|
2233
|
+
- **The Owner's delivery log:** `GET /v1/admin/accounts/:accountId/notifications`: an account's messages on every channel, with the kind's label, the recipient's name, the status (`queued` while waiting to send, `no-service` when no service of the channel was on), when a held push goes, and an in-app message's title. Notifications answer the privacy hooks (export, deletion with the people who go, retention after `privacy.retention.notifications` days, 90 by default).
|
|
2234
|
+
|
|
2235
|
+
### Email and push providers
|
|
2236
|
+
|
|
2237
|
+
- **Email providers (`notifications`):** email goes through the email service that's on, Resend first (a service in Admin › Services: API key, from address, webhook secret; its test emails the Owner). Its message ID is kept on the row; its delivery events at `POST /v1/webhooks/resend`, checked against the webhook secret, mark a row delivered or bounced. `verifyWebhook` (Svix signatures, 5-minute tolerance) in `@buffcore/server`, `signSvix` in `/testing`.
|
|
2238
|
+
- **Push (`push`):** tokens for members, operators (the console's browser subscription, a `web` token) and devices in profile mode, each of a kind (`fcm`, `apns`, `web`) sent by that kind's service; a kind whose service is off isn't sent and its row says why; dead tokens are deleted; a token belongs to whoever registered it last. With no push service on, fake push keeps messages in memory in tests and in `.ape/push` in development (read at `/dev/push`); production fails the row (`no_push_service`). `GET /v1/push/setup`, `POST /v1/push/tokens`, `DELETE /v1/push/tokens/:tokenId`; migration `push/0001-init`. Providers implement `PushProvider`. Each push service's test sends to the Owner's own devices of its kind, in the Owner's language, or checks the credentials alone when there are none.
|
|
2239
|
+
- **FCM is the default push service:** Firebase Cloud Messaging on iOS, Android and the web, one free Firebase project, sent from the backend through FCM HTTP v1 with a service account's key (no Firebase SDK on the server); one message carries the Android, APNs and web parts; for iOS, the APNs key is uploaded to Firebase. `GET /v1/push/setup` answers `firebase` (`apiKey`, `appId`, `messagingSenderId`, `projectId`, `vapidKey`) while FCM is on with its optional web fields set, so a browser can get an FCM token. FCM's `UNREGISTERED` deletes the token.
|
|
2240
|
+
- **APNs directly** (HTTP/2, a `.p8` key, production or sandbox) is an alternative service: 410 and `Unregistered` delete the token; `BadDeviceToken` only fails the message, so a wrong environment deletes nothing.
|
|
2241
|
+
- **Web push with VAPID (`push`, the `web` service, an alternative):** the Owner sets a contact address; the VAPID key pair is made when the service is first turned on or tested, and kept after that. Each message is encrypted for the browser's subscription (RFC 8291) and signed with VAPID (RFC 8292); `GET /v1/push/setup` serves the public key; a 404 or 410 deletes the subscription. No account is needed; it works on localhost or HTTPS.
|
|
2242
|
+
- **`app.http`** sends a `Uint8Array` body as it is (text already was), anything else as JSON.
|
|
2243
|
+
|
|
2244
|
+
### Privacy
|
|
2245
|
+
|
|
2246
|
+
- **`privacy` (core):** exports and deletions asked by a member (with a sign-in in the last 10 minutes) or by the Owner from People (audited; deleting is always a person). An export is a ZIP of every module's part in private storage, downloaded signed in by the account's members or by the Owner as an audited read, for `retention.exports` days. A deletion stops use at once, can be cancelled during `holdDays`, then runs every module's hook in one transaction under one anonymous ID per request, given the account's `userIds`, `profileIds` and `deviceIds` read first. The daily `privacy.daily` job runs each module's retention and retries failed deletions. Routes `request_account_export`, `request_account_deletion`, `cancel_account_deletion` (members) and `request_export`, `request_deletion`, `cancel_deletion` (Owner); migration `privacy/0001-init`. `@buffcore/emails`: `privacyExportReady`, `privacyDeletionAsked`, `privacyDeletionDone` ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md)).
|
|
2247
|
+
|
|
2248
|
+
### Privacy in the core modules
|
|
2249
|
+
|
|
2250
|
+
- **The core modules answer the privacy hooks** for their own tables (identity, profiles, events, audit, errors, ai, realtime, inbox, content, generation). Export lists the account's rows (AI calls without payloads; staff audit rows and inbox items never). Deletion removes the members who go with the account and their sign-ins, profiles, the session log, AI payloads and inbox items about the person; events, AI cost rows, audit and error rows, sessions and content provenance stay, with each deleted ID replaced by the request's anonymous ID. Retention deletes events, audit, AI payloads and the session log after the product's days, error occurrences after 30 days and expired sign-ins daily ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md)).
|
|
2251
|
+
|
|
2252
|
+
### Uploads
|
|
2253
|
+
|
|
2254
|
+
- **Uploads (feature):** `buffcoreModules(product, { uploads: { kinds } })`, each kind `{ types, maxMb, keepDays, process }`, checked when the module is made; the processor is `process(file, ctx, upload)`. `POST /v1/uploads/<kind>` takes the file's bytes through the API (`UPLOAD_PATH`; a member names `accountId`, and may name `profileId`, in the query; a device acting as a profile uploads for it): 415 `upload_type_refused` for another type, 413 `upload_too_large` over the cap, both refused before the body is kept; an upload about a profile needs its required consents, as a device does (403 `consent_required`). The `uploads` table (`uploads/0001-init`); the `uploads.process` job runs the processor once as the uploader, keeps what it answers and deletes the original, and a failure keeps no file. `GET /v1/uploads/:uploadId` (`device: true`) and the processed file at `UPLOAD_FILE_PATH` (409 `upload_not_ready` until it is ready) for the account's members and a device acting as its profile; 404 to anyone else and from the kind's day, when retention removes it. Export lists the account's uploads and processed files; deletion answers their storage keys ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#uploads)).
|
|
2255
|
+
|
|
2256
|
+
### Devices in the app
|
|
2257
|
+
|
|
2258
|
+
- **Profile mode in the app shell:** `createAppShell({ devices })` adds welcome, pairing, the picker before the product's app, the gate and leave, with `useShell().mode` (`member` or `profile`), `useShell().switchProfile()`, `useProfile()`, `SetUpDeviceScreen` and `ChangePinScreen`. Every change of who is acting empties the query cache. A removed device goes back to welcome; a removed own phone ends its stored session first.
|
|
2259
|
+
- **SDK:** `createClient({ getDevice, onDeviceRefused })` sends the device's grant (`x-ape-device`, `x-ape-profile`) instead of the member's session, with no token and no cookie.
|
|
2260
|
+
- **`SignIn`** takes `onBack` and `onSignedIn`.
|
|
2261
|
+
- **Leaving profile mode in one tab no longer signs the member out in another:** on `device_unknown` the app reads the stored grant first, staying in profile mode meanwhile; if another tab of the browser already left or changed profile mode, this one follows the store, as a restart would. Only a store still holding the refused grant is a removal (a paired device back to welcome, the member's own device ending its stored session), and a late refusal of an older grant no longer clears a newer one. Leaving through the gate is never a removal either, while the leave runs.
|
|
2262
|
+
|
|
2263
|
+
### Push in the app
|
|
2264
|
+
|
|
2265
|
+
- **`@buffcore/app-shell/push` (`push`):** `<Push onOpen>` registers the app's FCM token for the member, or for the device in profile mode, and again when that changes. It reads `GET /v1/push/setup` first and never asks for permission on its own: `usePush()` gives `state`, `turnOn()` (the system's prompt, then registering) and `signOut()`, which removes the member's token before signing out. A tap opens the message's link inside the app. The web uses Firebase's web SDK and the service worker `@buffcore/app-shell/web/firebase-messaging-sw.js`, configured from `GET /v1/push/setup`; phones use React Native Firebase (optional peer dependencies). While push is fake, it registers a made-up token. The account's notification settings show "Notifications on this device" (its state, and Turn on) when the product passes `usePush()`.
|
|
2266
|
+
- **Push links reach browsers as full URLs:** `APE_APP_URL` for members and devices, `APE_ADMIN_URL` for operators; FCM opens them when they are https. `data.link` keeps the path for the native app.
|
|
2267
|
+
|
|
2268
|
+
### Screens wired
|
|
2269
|
+
|
|
2270
|
+
- **The app's account screens:** `ConsentScreen`, `ConsentsScreen`, `DevicesScreen`, `NotificationSettingsScreen`, `NotificationsScreen` and `PrivacyScreen` (mount it at `/account/privacy`, where the privacy emails link), and `useUnreadCount()` for the product's bell, from `@buffcore/app-shell`. `@buffcore/sdk` gains `api.download(path)` for files the API sends instead of JSON (a ready export's ZIP).
|
|
2271
|
+
- **People › Account's tabs:** Devices (remove after asking), Consent (records, read only), Privacy (export, delete and cancel after asking, with the product's days; a ready export's download is an audited read) and Messages (the delivery log, each kind by its name, "Waiting to send" for queued messages). `GET /v1/privacy/settings` answers the product's hold and export days; a device names who set it up (`createdBy`); the PIN-changed message has a name.
|
|
2272
|
+
|
|
2273
|
+
### Consent
|
|
2274
|
+
|
|
2275
|
+
- **Consent (feature):** `buffcoreModules(product, { consent: { kinds, methods } })`; a kind is `{ about, label, required?, text, methods }` (`label`: a key in the product's catalog, so the console and the app show the kind in the reader's language), and a kind about a profile needs `profiles`. BuffCore's `test` method passes in development and tests and is refused in production. The `consents` table (`consent/0001-init`) records the exact legal text version and the language read, with one record in force per kind. The `legal` content kind (people translate it: `humanTranslationOnly`) is read publicly at `GET /v1/legal/:key`. Routes to give, list (naming the members who gave or withdrew each) and withdraw consent, and the Owner's list; `requireConsent(ctx, kind, target?)` for product routes; `consent.missing` answered; `consent.onWithdrawn` called after a withdrawal, which its failure never undoes; the receipt email `consentReceipt` in the language read; export and deletion of records ([PRIVACY_SECURITY.md](docs/PRIVACY_SECURITY.md#consent)).
|
|
2276
|
+
|
|
2277
|
+
### Playground and gate
|
|
2278
|
+
|
|
2279
|
+
- **The playground turns on every v0.5 feature:** shared devices (6-digit codes, a 4-digit PIN), a family consent with the test method and its text in English and Spanish, a "note ready" message by email, push and in-app, an image upload on a note whose metadata is stripped, and Notes open to a device acting as a profile.
|
|
2280
|
+
- **v0.5's exit gate:** `pnpm exec tsx scripts/gate-v05/run.ts` (fixture mode; Resend played by `fakeHttp`; no service on).
|
|
2281
|
+
|
|
2282
|
+
### Skills
|
|
2283
|
+
|
|
2284
|
+
- **`ape-add-module`** covers answering the privacy hooks, declaring notification kinds and services, and jobs that run on a schedule; **`ape-app-screen`** covers screens in profile mode (`useShell().mode`, `useProfile()`); **`ape-add-route`** covers `device: true`.
|
|
2285
|
+
|
|
2286
|
+
### Upgrade notes
|
|
2287
|
+
|
|
2288
|
+
**Email**
|
|
2289
|
+
|
|
2290
|
+
1. **`RESEND_API_KEY` is gone from the environment, and `APE_EMAIL_FROM` is no longer read:** email providers are services an Owner turns on in Admin › Services. Delete both variables from `.env`, then turn Resend on there with its API key, its `from` address (what `APE_EMAIL_FROM` held) and, to hear of delivered and bounced email, its webhook secret. Until Resend is on, development writes email to `.ape/emails` and production refuses to send (sign-in codes included): set it up before the upgrade reaches production.
|
|
2291
|
+
2. **`sendMail` answers the provider's message ID,** or null when no service sent it (the test outbox, development files). Code that awaited it for nothing needs no change.
|
|
2292
|
+
3. **Resend's delivery events:** set Resend's webhook to `<API URL>/v1/webhooks/resend` and paste its signing secret into Admin › Services › Resend.
|
|
2293
|
+
|
|
2294
|
+
**Actors**
|
|
2295
|
+
|
|
2296
|
+
1. **`ActorKind` has `device`:** a `Record<ActorKind, …>` (e.g. a label per kind) adds it.
|
|
2297
|
+
|
|
2298
|
+
**Privacy**
|
|
2299
|
+
|
|
2300
|
+
1. **The daily job deletes by finite defaults,** from its first run on the worker (`privacy.daily`, 03:30 UTC; a product without a worker never runs it): events after 25 months, audit rows after 7 years, AI payloads after 30 days, the session log and notifications after 90, error occurrences after 30 (expired sign-ins daily). To keep any of it longer, set days in `buffcoreModules(product, { privacy: { retention: { events, audit, aiPayloads, sessionLog, notifications } } })`.
|
|
2301
|
+
2. **A product module that keeps personal rows answers the privacy hooks** for its own tables (`privacy.onExportAccount`, `onDeleteProfile`, `onDeleteAccount`, `onRetention`), through `ctx.em` so a deletion stays one transaction. `onDeleteAccount` is given the account's `userIds`, `profileIds` and `deviceIds`, read before any hook deletes: use them, never look people up while deleting.
|
|
2302
|
+
3. **Exports (and uploads) need storage:** `APE_S3_*` and a bucket in production.
|
|
2303
|
+
4. **The privacy emails link to the app's `/account/privacy`:** the product's app shows its privacy screen there.
|
|
2304
|
+
|
|
2305
|
+
**`ai`**
|
|
2306
|
+
|
|
2307
|
+
1. **Replay comparisons read logged inputs,** which the daily job clears after `aiPayloads` days (30 by default, see Privacy above): a purpose with little recent traffic replays fewer than 20 cases. Set `privacy.retention.aiPayloads` higher if comparisons need older inputs.
|
|
2308
|
+
|
|
2309
|
+
**`devices`**
|
|
2310
|
+
|
|
2311
|
+
1. **In profile mode `useMe()` throws:** read `useProfile()` there.
|
|
2312
|
+
2. **A route a device's profile calls says `device: true`,** a product's live-session start route included; a device or profile reaches no other.
|
|
2313
|
+
|
|
2314
|
+
**`consent`**
|
|
2315
|
+
|
|
2316
|
+
1. **Every consent kind has a `label`:** a key in the product's catalog, in every language it offers; the console and the app show the kind by it.
|
|
2317
|
+
|
|
2318
|
+
**`push`**
|
|
2319
|
+
|
|
2320
|
+
1. **To use push in the app,** copy `node_modules/@buffcore/app-shell/web/firebase-messaging-sw.js` to the app's `public/firebase-messaging-sw.js`. On phones, install `@react-native-firebase/app` and `@react-native-firebase/messaging`, add their config plugins and the Firebase files (`google-services.json`, `GoogleService-Info.plist`), and use a development build.
|
|
2321
|
+
2. **To show push on this device,** pass `<NotificationSettingsScreen push={usePush()} />`.
|
|
2322
|
+
|
|
2323
|
+
## v0.4.0 (2026-10-13)
|
|
2324
|
+
|
|
2325
|
+
The AI layer and generation.
|
|
2326
|
+
|
|
2327
|
+
### Groundwork
|
|
2328
|
+
|
|
2329
|
+
- **`BUFFCORE_VERSION` is `0.4.0`.**
|
|
2330
|
+
- **The `generation` feature** (off; needs `ai`): `@buffcore/modules/generation` (`generationModule`, `GenerationConfig`) is composed after `ai` when it is on, with its configuration from `buffcoreModules(product, { generation })`. New subpath `@buffcore/contracts/generation`.
|
|
2331
|
+
- **Types:** `Ctx.job` (the job a context runs in), `contentKinds[kind].checks` (a kind's code checks by short code, each a `ContentCheck` from `@buffcore/server`), `PurposeDef.research`, `AiConfig.testSets` (with `AiTestCase`), `Fixture.model` and `Fixture.fails`.
|
|
2332
|
+
- **Runtimes:** `@buffcore/modules/ai` exports `Runtime`, `BUILT_RUNTIMES` (`direct` and `claude-agent`) and `RUNTIMES_FOR`: a `call` runs on `direct`, an `agent` on `direct` or `claude-agent`. `profileProblems` reads them, and says "is not built yet" for a runtime or provider BuffCore hasn't built (it said "arrives in BuffCore 0.3").
|
|
2333
|
+
- **Admin console:** AI › Profiles (`/ai/profiles`) and AI › Usage and costs (`/ai/usage`) with `ai`, and Content › Runs (`/content/runs`) with `generation` (their screens are below).
|
|
2334
|
+
|
|
2335
|
+
### Realtime
|
|
2336
|
+
|
|
2337
|
+
- **A live session's outbox across a reload:** `startLiveSession` (`@buffcore/sdk`) and `useLiveSession` (`@buffcore/app-shell`) take `outbox: { load(sessionId), save(sessionId, messages) }` (`LiveOutbox`), the product's storage (localStorage, AsyncStorage). What no `welcome` has covered is saved, and a session resumed after a reload sends it first, in order; nothing is stored without it ([REALTIME.md](docs/REALTIME.md#real-time-sessions)).
|
|
2338
|
+
|
|
2339
|
+
### AI › Usage and costs, server
|
|
2340
|
+
|
|
2341
|
+
- **`GET /v1/admin/ai/usage?days=30` (`ai`, Owner; `days` 1–90)** answers `AiUsage` from `@buffcore/contracts/ai`: `today` and `thisMonth`; for the last `days` days `byDay` (every day, zeros included), `byPurpose` (with the purpose's class), `byClass`, `byProvider` and `byModel`, biggest spend first; and `caps`, each purpose with a daily cap beside what it spent today. Each total is `UsageTotals` (calls, cost in micro-USD, tokens in and out) summed from `ai_calls` rows, every call counting, as in AI › Calls. A day is the one the daily cap counts. `CallTotals` is now `UsageTotals` plus the latency percentiles (the same shape).
|
|
2342
|
+
|
|
2343
|
+
### The worker
|
|
2344
|
+
|
|
2345
|
+
- **Jobs:** `enqueue(ctx, name, payload, { key?, delay? })` and `startWorker(composition, env)` from `@buffcore/server`, `drainJobs(app)` from `@buffcore/server/testing`, and `APE_WORKER_CONCURRENCY` (4) ([MODULES.md](docs/MODULES.md#the-manifest)). The product template declares the worker in `processes` (`src/worker.ts`); an existing product adds that line and file to run jobs.
|
|
2346
|
+
|
|
2347
|
+
### Content
|
|
2348
|
+
|
|
2349
|
+
- **Code checks run on every draft save:** a kind's `contentKinds[kind].checks` get the content and `{ kind, key, locale }`, and their results (code → reason or null) are stored on the version as `checks`. A failing check doesn't refuse a save or a publish; set review shows it ([CONTENT_PIPELINE.md](docs/CONTENT_PIPELINE.md#code-checks)). Versions also carry `runId` and `qa` (provenance), and sets a state `qa`, in which their drafts refuse edits except from the run holding them. Migration `content/0002-checks-provenance`. The playground's `tip` has a `no_links` check.
|
|
2350
|
+
|
|
2351
|
+
### Modules and routes
|
|
2352
|
+
|
|
2353
|
+
- **Providers, called directly (`ai`):** BuffCore is its own gateway. Anthropic, OpenAI (new: `OPENAI_API_KEY`) and Google Vertex AI each sit behind one interface in `ai/providers/` (its key, its credentials from the env, how its model is made) and are called with the product's own keys. A profile on a provider without credentials is refused with the variables to set ("no credentials for openai: set OPENAI_API_KEY"). A call's row names the model that served it, as the provider reported it, and its cost uses that model's price, else the profile's model's. OpenAI runs on its Responses API with `store: false`. `PROVIDERS` comes from the registry (`readonly Provider[]`). The live check, run by hand: `scripts/live-ai/openai.ts` ([AI_GATEWAY.md](docs/AI_GATEWAY.md#providers)).
|
|
2354
|
+
|
|
2355
|
+
### Agent runs
|
|
2356
|
+
|
|
2357
|
+
- **Agent runs and calls with tools (`ai`):** `agent(ctx, { purpose, input, tools, refs, signal })` from `@buffcore/modules/ai` runs an `agent` purpose in a job (it throws without `ctx.job`, so in a request) on `direct`: the AI SDK's tool loop on any provider, the product's tools running for real, at most `limits.maxSteps` steps (default 5) with the last one only writing, and typed output read from the last step when the purpose has an `output` schema. Its `ai_calls` row has its steps, tool calls and cost. `run` takes `tools` too (a call with tools logs its steps; without tools it stays a one-shot call); `run` and `stream` throw for an agent purpose. One loop serves all three, so `run` streams from the provider too. Fixtures gain `toolSteps` (each step's tool calls in turn) ([AI_GATEWAY.md](docs/AI_GATEWAY.md#agents-and-calls-with-tools)).
|
|
2358
|
+
- **The `claude-agent` runtime (`ai`):** an agent purpose whose profile names `claude-agent` (its candidates Anthropic models; any other is refused) runs on Anthropic's Claude Agent SDK, locked down so a product never runs on a person's Claude.ai or Claude Code sign-in: only with the product's `ANTHROPIC_API_KEY`, passed explicitly (without it the run is refused and nothing starts); an empty folder of its own per run as the CLI's home, config and temp, removed after; nothing else of the machine's environment but the system's paths; no settings files and no built-in tools, only the product's tools (an in-process MCP server) behind a gate that denies any other; and a run whose CLI reports another sign-in or tool stops `refused`. Steps, tokens and the SDK's reported cost go on the row: a row keeps a runtime's reported cost over the product's prices and the catalog. Fixtures replay through the shared tool loop, so tests start no SDK. The live check, run by hand: `packages/modules/scripts/live-ai/claude-agent.ts` ([AI_GATEWAY.md](docs/AI_GATEWAY.md#on-the-claude-agent-sdk-claude-agent)).
|
|
2359
|
+
|
|
2360
|
+
### Generation
|
|
2361
|
+
|
|
2362
|
+
- **Generation runs (`generation`):** `generationModule({ kinds: { <kind>: { purpose, input, tools? } } })`, with `generatedItems(schema)` for a generate purpose's output (`{ items: [{ key, content }] }`). Owner routes under `/v1/admin/generation`: `kinds`, `estimate?kind=` (from the purpose's last 20 answered calls, or null), start `POST /runs` (`{ kind, title, input }`, audited: a new set held in `qa` and a job on the worker that generates its items, saves them as the run's drafts with their checks, and submits the set), `GET /runs`, `GET /runs/:runId`, `POST /runs/:runId/cancel` (stops before the next AI call and aborts one under way), and `GET /provenance/:versionId` (the run, its purpose, the profile versions and models of its calls, cost, who started it and who approved). Table `generation_runs` (migration `generation/0001-init`); contracts in `@buffcore/contracts/generation`. Content gains `holdSet` and `releaseSet`, `addVersion` and `submitSet` take `{ runId }` (a set back from review keeps one review item), and a run's drafts are never marked edited by hand ([CONTENT_PIPELINE.md](docs/CONTENT_PIPELINE.md#generation-runs)).
|
|
2363
|
+
- **AI QA and regeneration (`generation`):** `generationModule({ kinds, qa: { class, instructions } })` (`qa` required). BuffCore declares `content.qa`, an agent answering `{ passed, reasons }` (a failure needs a reason); the product gives its class, its instructions (the QA playbook) and its starting profile, and a kind's `qaTools` join BuffCore's `read_live`. Each generated item goes through its tries: code checks, then AI QA when they pass; a failed try regenerates with its reasons (the kind's purpose with `redo: { key, content, reasons }`), at most twice, then the item is flagged. Each try is saved on the draft: `qa: { passed, attempts, reasons: [{ attempt, check, text }] }` (`ContentQaReason`). QA and regeneration calls carry `refs: { run, item }`; the estimate includes `content.qa`; cancel stops before the next AI call during QA. `GET /v1/admin/generation/sets/:setId/qa-report` and `POST /v1/admin/generation/versions/:versionId/send-back` (audited; a run with `redo: { itemId, note }`; migration `generation/0002-redo`). Run rows gain `flaggedCount`; run items gain `result`, `costMicroUsd` and `note` ([CONTENT_PIPELINE.md](docs/CONTENT_PIPELINE.md#generation-runs)).
|
|
2364
|
+
|
|
2365
|
+
- **Translation runs (`generation`):** the Owner translates a published set into another offered language (`POST /v1/admin/generation/sets/:setId/translate`, `start_translation`, audited) through `i18n.translate`, declared by `generation` in AI QA's class. Each answer becomes the draft of a language variant of its source and goes through the `shape`, `placeholders` and `glossary` checks, the kind's own checks and AI QA in that language; a failed one is translated again at most twice, then the set goes to review. Kinds marked `humanTranslationOnly` (legal texts) are refused. `generationModule({ glossary })` holds the product's terms per language ([CONTENT_PIPELINE.md](docs/CONTENT_PIPELINE.md#translations)).
|
|
2366
|
+
- **Content screens:** Content › Runs (start with an estimate, a run's items with checks, QA and cost, cancel), the QA report in set review (send one item back) and an item's provenance are built from P2 on the generation routes ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md)).
|
|
2367
|
+
|
|
2368
|
+
### Choosing models
|
|
2369
|
+
|
|
2370
|
+
- **Candidates and the model catalog (`ai`):** a profile lists one to three candidate models, `candidates: [{ provider, model }]` (`Candidate`), and how one is chosen, `choose` (`Choose`: `listed`, the default). They replace `provider`, `model` and `fallback`; the runtime, instructions and limits are the profile's, shared by its candidates. The first candidate runs; a streamed call that fails before its first token hands over to the second once, where the fallback profile did. A profile is refused, at publish and on every call, when any candidate can't run there (its provider not cleared for the class, an unpinned model, no credentials). The model catalog, `MODELS` (`ai/models.ts`: provider, pinned model, list prices, and what it supports: tools, typed output, search), prices a call the product doesn't: a row's cost is the product's `prices`, else the catalog's. Outside production a starting profile republishes only when the code's profile changed since the code last published one, so a version published in the console stays; it is numbered after the highest version, drafts included. Migration `ai/0004-candidates` converts stored profiles both ways, and indexes `ai_calls` by its `run` reference, for a generation run's calls ([AI_GATEWAY.md](docs/AI_GATEWAY.md#profiles)).
|
|
2371
|
+
- **Choosing and hand-over (`ai`):** `choose: 'cheapest'` (price, the product's or the catalog's, times the purpose's mean tokens over its ok calls in the last 7 days) and `'fastest'` (the median time of each model's ok calls for the purpose over 24 hours) work; a model with no price or no recent calls comes last. A call skips a candidate that can't run here (not cleared for the class, development-only in production, no credentials, not pinned) or can't do what the call needs by the catalog (tools, typed output, search for `research`; a model the catalog doesn't list is trusted), and runs the others. `run`, `stream` and `agent` share one path: a failure before any output hands over to the next candidate, on the profile's runtime (`claude-agent` included), one `ai_calls` row per attempt. A rate limit (HTTP 429) rests a candidate for 60 s, per process; a server error (5xx) rests it only while another candidate in the call can still run. Fixtures can name a `model` and `fail` (`error`, `timeout`, `rate_limited`) ([AI_GATEWAY.md](docs/AI_GATEWAY.md#choosing-a-candidate)).
|
|
2372
|
+
|
|
2373
|
+
- **The `research` tool (`ai`):** a purpose with `research: true` uses its model's own web search (Anthropic, Vertex AI Google Search grounding, OpenAI) on `direct`; cited pages are kept on the row's steps (`sources`); a research purpose on `claude-agent` is refused. Research is for authoring: a child-facing class never clears it ([AI_GATEWAY.md](docs/AI_GATEWAY.md)).
|
|
2374
|
+
|
|
2375
|
+
### Switching a purpose
|
|
2376
|
+
|
|
2377
|
+
- **AI › Profiles, server (`ai`):** one draft per purpose (its next version); replay comparisons on the worker (job `ai.replay`): the draft and the published version answer the last 20 distinct logged inputs, or the product's test set (`AiConfig.testSets`) for a personal class, whose logged inputs are never replayed; tools answer from the record, never for real. Publish (refused when a candidate can't run, nothing changed, or the runtime, models, choice or instructions changed without a finished comparison) and roll back (to the version published before; refused when stale or it can't run), Owner only, always a person, audited. Routes under `/v1/admin/ai/profiles` (`@buffcore/contracts/ai`); migration `ai/0005-drafts` adds `ai_profiles.created_by` and `replay` ([AI_GATEWAY.md](docs/AI_GATEWAY.md#switching-a-purpose)).
|
|
2378
|
+
|
|
2379
|
+
### Screens and the playground
|
|
2380
|
+
|
|
2381
|
+
- **AI › Profiles and AI › Usage and costs** are built from P1 on the server's routes: a purpose's history, its draft (models, choice, limits; saved as you edit), a replay comparison side by side, publish and roll back asking first; usage and costs over the last 30 days, this month and today against each cap ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md)).
|
|
2382
|
+
- **Playground:** `generation` and the worker are on (pinned to 0.4.0). Tips are generated, checked by `length` and `no_links`, put through AI QA with the playground's playbook in a `review` class, and translated with its glossary, all from fixtures. `notes.title` chooses the cheapest of three candidates (Anthropic, OpenAI and Google, each cleared for `authoring`), hands over when one fails, and has a test set for replay comparisons.
|
|
2383
|
+
- **The gate:** `pnpm exec tsx scripts/gate-v04/run.ts` runs v0.4's exit gate in fixture mode on a throwaway database with a worker; its live step runs only with `APE_ALLOW_LIVE_AI=1` and keys present.
|
|
2384
|
+
|
|
2385
|
+
### Skills
|
|
2386
|
+
|
|
2387
|
+
- **`ape-add-ai-purpose`** covers candidates, choosing, tools, agents in jobs, research and test sets; **`ape-add-generator`** (new) adds a generated content kind with its purpose, checks, QA playbook and tools, input form and glossary.
|
|
2388
|
+
|
|
2389
|
+
### Fixed before release
|
|
2390
|
+
|
|
2391
|
+
- Set review reads an item's draft again once it is regenerated after a send-back.
|
|
2392
|
+
- A done run shows its set's state (`setState`: published, sent back, rolled back, in review); "Done" replaces "In review" as its status.
|
|
2393
|
+
- A run lists every item it wrote; an item sent back names the run that regenerated it (`movedTo`) and counts there.
|
|
2394
|
+
- AI costs in the runs' and run items' cost columns are in whole cents, "<$0.01" when smaller, as in AI › Usage.
|
|
2395
|
+
- A translated version keeps BuffCore's translation checks (`shape`, `placeholders`, `glossary`) beside the kind's own.
|
|
2396
|
+
- The app's Redis key prefix (and so its job queue) is per database outside production: `<product>:<database>:` unless the database is named like its user, so checkouts sharing a Redis never take each other's jobs. No change for a product on its default database or in production.
|
|
2397
|
+
|
|
2398
|
+
### Upgrade notes
|
|
2399
|
+
|
|
2400
|
+
**`content`**
|
|
2401
|
+
|
|
2402
|
+
1. **`ContentSetState` has `qa`:** a `Record<ContentSetState, …>` (e.g. a label or tone per state) adds it.
|
|
2403
|
+
2. **`ContentVersionRow` has `checks`, `runId` and `qa`:** test data built from it adds `checks: {}, runId: null, qa: null`.
|
|
2404
|
+
|
|
2405
|
+
**`ai`**
|
|
2406
|
+
|
|
2407
|
+
1. **`ProfileSpec['runtime']` is `'direct' | 'claude-agent'`:** `openai-agents` is gone (no profile could run on it). A profile that named it names `direct` or `claude-agent`.
|
|
2408
|
+
2. **`PROVIDERS` is `anthropic`, `google-vertex`, `openai`:** `azure-openai` and `amazon-bedrock` are gone (neither was built). A class that cleared one, or a profile that named one, drops it.
|
|
2409
|
+
3. **Fixtures answer as a model does:** a `run` replays its fixture through the tool loop. A purpose without an `output` schema answers text (a fixture whose `output` isn't text answers its JSON: give the purpose an `output` schema instead), typed output goes through JSON, and `toolCalls` run only when the call passes tools. A test that fakes a provider's HTTP endpoint for `run` answers its streaming request (e.g. Vertex AI's `:streamGenerateContent`, as server-sent events).
|
|
2410
|
+
4. **A profile lists candidates:** in every `ProfileSpec` (each starting profile in `AiConfig.profiles`, and any the product builds, such as an eval's), replace `provider: P, model: M` with `candidates: [{ provider: P, model: M }]`. A profile with a `fallback` adds the fallback's provider and model as its second candidate and drops `fallback` (the fallback's own runtime, instructions and limits go: the candidates share the profile's). Code that read `spec.provider` or `spec.model` reads `spec.candidates[0].provider` or `spec.candidates[0].model`. Leave `choose` out (`listed`). E.g. A tutoring app: in `apps/api/src/ai.ts`, `childFacingDev` returns `candidates: [{ provider: 'google-vertex', model: GEMINI_FLASH }]` in place of its `provider` and `model` lines; in `evals/tutor/profiles.ts`, the label reads `spec.candidates[0].model`.
|
|
2411
|
+
5. **Stored profiles convert themselves:** `ai/0004-candidates` turns each `ai_profiles` row's `provider` and `model` into its first candidate and a `fallback`'s into its second, chosen `listed`, and drops the three columns. A query or test that read or wrote those columns uses `candidates` (jsonb) and `choose`. Down converts back; a third candidate and the choice are lost.
|
|
2412
|
+
6. **Cost from the catalog:** a call on a model the product doesn't price now costs the catalog's list price instead of nothing. A product's own `prices` still win; drop them where they match the catalog.
|
|
2413
|
+
7. **Starting profiles republish less:** outside production, a starting profile republishes only when it changed in code since the code last published one (`published_by` is `starting profile`), not whenever it differs from the published version. To replace a version published another way, change the profile in code.
|
|
2414
|
+
8. **Choosing skips and hands over:** a call skips a candidate that can't run here or can't do what it needs, and `run` and `agent` hand over before any output as streams did. With every candidate resting or skipped, a call ends `refused` or `error` without calling a provider, and the purpose's fallback answers (or `AiUnavailable` is thrown). A product with one candidate sees its fallback only after a 429, for 60 s.
|
|
2415
|
+
9. **Comparisons need the product's worker** (job `ai.replay`). A test that migrates `ai` down step by step meets `ai/0005-drafts` first.
|
|
2416
|
+
|
|
2417
|
+
## v0.3.1 (2026-10-12)
|
|
2418
|
+
|
|
2419
|
+
BuffCore builds general services only; a feature specific to one product lives in that product. The voice engine and the speech service are a tutoring app's now, and leave BuffCore.
|
|
2420
|
+
|
|
2421
|
+
- **`ape dev` runs a product's declared `processes`** ([FEATURES.md](docs/FEATURES.md#one-file-says-what-a-product-uses)), each with its output prefixed by its name.
|
|
2422
|
+
- **`Socket`** from `@buffcore/modules/realtime` types a product's own socket route.
|
|
2423
|
+
- **Gone:** `@buffcore/voice` (with `@buffcore/voice/metro` and `withVoice`), `@buffcore/speech`, `@buffcore/modules/speech` and `@buffcore/contracts/speech` (the ticket route and the `speech` kill switch); the `voice` feature; `APE_SPEECH_PORT`, `APE_SPEECH_URL`, `speechPort` and `speechUrl` from `@buffcore/config`; the speech port in `ape stop`; the product template's `infra/docker/speech.Dockerfile` and speech lines in `.env.example`. Unused dependencies left with them: `onnxruntime-web` (and the root override), `onnxruntime-node`, `kokoro-js`, `@huggingface/transformers`, `sherpa-onnx-node`.
|
|
2424
|
+
- **The playground's "Say a title" is now "Suggest a title":** typed, with the AI's title streamed back over the live session; no hearing or speaking. `docs/REALTIME_AND_VOICE.md` is now [REALTIME.md](docs/REALTIME.md), realtime only.
|
|
2425
|
+
|
|
2426
|
+
### Upgrade notes
|
|
2427
|
+
|
|
2428
|
+
**`voice` (a product that used voice or the speech service)**
|
|
2429
|
+
|
|
2430
|
+
1. **The product owns them now:** bring the voice engine, the speech service, the speech module (its ticket route and `speech` switch) and their contracts into the product's own packages (a tutoring app: phase 2 of BC-D14), and import from there instead of `@buffcore/voice`, `@buffcore/speech`, `@buffcore/modules/speech` and `@buffcore/contracts/speech`.
|
|
2431
|
+
2. **Remove `'voice'` from `features`** in `buffcore.config.ts` (it no longer exists, so loading the file fails while it is listed). Keep `'realtime'` if the product uses live sessions.
|
|
2432
|
+
3. **Declare the speech process** so `ape dev` still runs it: `processes: [{ name: 'speech', entry: 'src/speech.ts' }]` in `buffcore.config.ts`.
|
|
2433
|
+
4. **Its settings are the product's:** read the speech service's port and address from the product's own env schema (BuffCore's `coreEnvSchema` no longer has `APE_SPEECH_PORT` or `APE_SPEECH_URL`). `ape stop` still stops it when `ape dev` started it (it stops `ape dev` and everything it started), but no longer looks for it by its port.
|
|
2434
|
+
5. **Metro, Docker and models:** `withVoice` and the speech Dockerfile come with the product's own voice code; the models stay where the product keeps them.
|
|
2435
|
+
|
|
2436
|
+
## v0.3.0 (2026-10-12)
|
|
2437
|
+
|
|
2438
|
+
Live sessions, voice and streamed AI for a tutoring app M2 (the live tutor): `realtime`, voice in the browser on the device and through the speech service, streamed AI calls with tools, kill switches and call detail. Native voice (the Expo app through the speech service) waits for the Apple and Expo accounts; until then a native app shows no voice control. Agent runs moved to v0.4; profile switching, Usage and costs, maintenance mode and `connect` (API keys, OAuth, MCP) to v0.6; the OpenAI provider, feature flags, the theme panel, share links and the command bar until something needs them.
|
|
2439
|
+
|
|
2440
|
+
### Groundwork
|
|
2441
|
+
|
|
2442
|
+
- **Features `realtime` and `voice`** (off; `voice` needs `realtime`, and `ape enable voice` turns both on). `@buffcore/modules/realtime` (`realtimeModule`, `RealtimeConfig`) is composed after `profiles` when `realtime` is on, with its configuration from `buffcoreModules(product, { realtime })`.
|
|
2443
|
+
- **Typed socket messages:** `wsMessage(t, fields)` in `@buffcore/contracts` declares a message type, the envelope `{ t, id, seq, sid, at }` with the type's own fields beside it, checked by one Zod schema; `readWsMessage(types, frame)` reads a frame the same way on both ends (text only, JSON, a known type, checked) and throws `WsMessageError`. New subpaths: `@buffcore/contracts/realtime` (`LiveSessionStart`, `hello`) and `@buffcore/contracts/ops` (`SwitchRow`).
|
|
2444
|
+
- **Kill switches in the manifest:** `switches: { key: { description } }` names the switches a module has besides its purposes' ([MODULES.md](docs/MODULES.md#the-manifest)).
|
|
2445
|
+
- **New packages** `@buffcore/voice` and `@buffcore/speech` (both below).
|
|
2446
|
+
- **`ape enable`** refuses a feature newer than the product's pinned BuffCore (it wrote a configuration that then failed to load).
|
|
2447
|
+
- **`BUFFCORE_VERSION` is `0.3.0`** while v0.3 is built: main names the release in progress ([RELEASES_AND_UPGRADES.md](docs/RELEASES_AND_UPGRADES.md#releases)).
|
|
2448
|
+
|
|
2449
|
+
### Modules and routes
|
|
2450
|
+
|
|
2451
|
+
- **Live sessions (`realtime`):** a product declares its socket with `defineRealtime({ path, messages, ticketSeconds, onOpen?, onMessage? })` and starts a session from its own route with `startSession(ctx, { profileId?, preview? })`, which answers `{ sessionId, wsTicket }`. Single-use tickets (hashed in Redis); every frame read with `readWsMessage`; `hello` resends what the client missed from the log and `welcome` answers with the last client `seq` logged; duplicates ignored by `id`; `session.send()` logs and sends; `session.end()`; `readLog()` to rebuild state. Preview sessions name test profiles only. New tables `rt_sessions` and `session_log`; routes `POST /v1/realtime/sessions/:sessionId/ticket` (a fresh ticket for each reconnect) and `GET /v1/admin/realtime/sessions/:sessionId/log?after=` (Owner; a real person's log is an audited read, a preview's isn't). `@buffcore/contracts/realtime` adds `welcome`, `CLOSE_CODES`, `renewTicket`, `adminSessionLog`, `SessionLogEntry` and `LiveSessionRow` ([REALTIME.md](docs/REALTIME.md#real-time-sessions)).
|
|
2452
|
+
- **The live session client:** `startLiveSession({ api, start, path, receives, onMessage, onState })` in `@buffcore/sdk` (browser and React Native) and `useLiveSession({ start, path, receives, onMessage })` in `@buffcore/app-shell`. It starts the session, says `hello`, keeps an outbox until `welcome` covers it, delivers each server message once, reconnects with backoff and a fresh ticket, and shows the connection state (`connecting`, `open`, `reconnecting`, `closed`). The API client gains `baseUrl` ([REALTIME.md](docs/REALTIME.md#real-time-sessions)).
|
|
2453
|
+
- **Keep-alive for live sessions** (a tutoring app's request): the server sends `BEAT` (`{"t":"beat"}`, not logged, no `seq`, for no product) and a ping on every socket every 10 s (`beatSeconds` in `defineRealtime`), and terminates a socket that answers no ping for 30 s, leaving its session resumable. The client replaces a socket that has been quiet for 25 s (`silenceSeconds`), drops it at once on the web's `offline` event, and reconnects at once on `online`. `beat` joins `hello` and `welcome` as BuffCore's own message types.
|
|
2454
|
+
- **Previews start live sessions** (a tutoring app's request): a route may say `preview: true`, and then a preview token (the admin's embedded app) may call it although it writes; admin routes still refuse a preview, and so does every other write. `renewTicket` says it, and a product's start route may. For a preview token, `startSession` starts only previews, for the test profile its token names (`preview_profile` otherwise), and `renewTicket` gives it tickets only for those sessions, never for its operator's other sessions ([IDENTITY_ACCESS.md](docs/IDENTITY_ACCESS.md#preview-actors)).
|
|
2455
|
+
- **Kill switches (`ops`, core):** one per AI purpose plus the ones modules name in `switches`, kept in `ops_switches` (a new migration). `GET /v1/admin/ops/switches` lists them as `SwitchRow`s; `POST /v1/admin/ops/switches/:switch/off` and `/on` are always-human Owner actions, audited with who and when. `isOff(ctx, key)` from `@buffcore/modules/ops` reads them through a 5-second cache and throws for an undeclared key. While a purpose is off, `ai.run` answers `killed` with its fallback, or throws `AiUnavailable` without one ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md#operations-v01-v03-v06)).
|
|
2456
|
+
- **Streamed AI calls with tools (`ai`):** `ai.stream(ctx, { purpose, input, tools, onText, signal })` streams a `call` with a tool loop (`limits.maxSteps`, default 5; the last step only writes). Tools are the product's plain functions (`defineTool`), run for real, fixtures too; their results get the input check. No first token within `limits.firstTokenMs`, or a failure before it: the profile's new `fallback` profile runs once, then the product's fallback answers through `onText`. A stopped stream ends `aborted` (a new status) and logs the text it produced. `ai_calls` gains `steps` (each step's text and tool calls), `ai_profiles` gains `fallback` (a new migration). A streamed fixture adds `toolCalls` and replays as a stream. Outside production, a starting profile changed in code is published as the next version; evals may pass `profile` to `run` or `stream` (only with `APE_ALLOW_LIVE_AI=1`, never in production) ([AI_GATEWAY.md](docs/AI_GATEWAY.md#streamed-calls)).
|
|
2457
|
+
- **AI › Calls routes (`ai`):** `GET /v1/admin/ai/calls` gains the filter `ref` (any value in a call's `refs`, e.g. a session ID) and answers `streamed` per call (it has steps; a killed call never streamed). `GET /v1/admin/ai/calls/totals` answers `CallTotals` for the same filters (calls, cost, tokens, p50 and p95 time; times null with no calls). `GET /v1/admin/ai/calls/:callId` answers `AiCallDetail` (class, input, output, steps, refs, error), the other calls of its request, and `audited`. A class marked `personal: true` in `AiConfig.classes` makes opening its calls an audited read; so does a call whose purpose no module declares any more ([AI_GATEWAY.md](docs/AI_GATEWAY.md#purpose-classes-and-provider-policy)).
|
|
2458
|
+
- **The product's checks on a call** (a tutoring app's request): `noteChecks(ctx, callId, { check, passed }, …)` from `@buffcore/modules/ai` records checks the product ran on an answer (a short code name each, e.g. `reveal`), in order, on the call's row: `ai_calls` gains `checks` (a new migration). `AiCallDetail` gains `checks` (`CallCheck[]`, empty when none), and a call's detail shows them under "Checks". A product that builds `AiCallDetail` objects itself (sample data) adds `checks: []` ([AI_GATEWAY.md](docs/AI_GATEWAY.md#streamed-calls)).
|
|
2459
|
+
|
|
2460
|
+
### Admin console (`@buffcore/admin-shell`)
|
|
2461
|
+
|
|
2462
|
+
- **Operations › Kill switches and AI › Calls,** built to the approved prototype version "v0.3 admin: switches and calls". Every switch with who changed it last; switching one off or on asks first (Owner, audited). While any switch is off, a banner over every Owner screen names it, with "Open kill switches" (except on Kill switches itself). AI › Calls filters by purpose, result and reference (kept in the address, `?ref=…`), shows totals for the filters and marks streamed calls; a call shows why it ended as it did, its input, steps and tool calls, output and the calls of its request, and the audit line for a personal class ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md#ai-v03)).
|
|
2463
|
+
- **`CallDetail`** (`callId`, `onBack`, optional `onOpen`) is exported for a product's own screens (a tutoring app's Lesson Studio); without `onOpen`, a call of the same request opens in place.
|
|
2464
|
+
|
|
2465
|
+
### Voice
|
|
2466
|
+
|
|
2467
|
+
- **The voice core in `@buffcore/voice`** ([REALTIME.md](docs/REALTIME.md#voice)): the hearing rules, `createHearing(values, mode)`, which take voice-detection frames and decide turn starts and ends, barge-in, echo, too quiet and noisy, the same on the device and the speech service, with the product's `HearingValues` (`DEFAULT_HEARING`: the values tuned with children in a tutoring app's prototype); the engine's contract (`Hearer`, `Speaker`, `VoiceEngine`, `Utterance`, `WordTiming`); `chooseChain()`, the chain from measured capability and what is switched off; and `matchExpected()`, the closest expected phrase after recognition, never a rewrite.
|
|
2468
|
+
- **Voice on the device in a browser** (`@buffcore/voice/web`, [REALTIME.md](docs/REALTIME.md#the-web-backend)): `createWebHearer()` (Silero and Moonshine base in a worker, the hearing rules, partial words on the device only; `openMicrophone()` with echo cancellation, noise suppression and automatic gain) and `createWebSpeaker()` (Kokoro-82M on WebGPU in a worker, word timings from Kokoro's own durations, a cancelable `speak()`; without WebGPU nothing downloads), each with `load(onProgress)` resolving with the measured real-time factor; `measureWebDevice()` for `chooseChain`. `@buffcore/voice/models` (`fetchVoiceModels(dir)`) downloads the pinned models (exact Hugging Face commits, SHA-256) into `.ape/models` and builds Kokoro's WebGPU model; `@buffcore/voice/metro` (`withVoice(config, { models })`) serves them and the voice libraries in development, with COOP and COEP (`credentialless`) on every response. The playground's web app has both, and a development page, `/_voice`, for the real check (`pnpm exec tsx scripts/voice-check/run.ts`).
|
|
2469
|
+
|
|
2470
|
+
- **Server speech** (`@buffcore/speech` and `@buffcore/modules/speech`, [REALTIME.md](docs/REALTIME.md#the-speech-service)): the speech service hears and speaks for devices that can't, as the image's third process, in memory only. With `voice` on, the API gains `POST /v1/speech/tickets` (a single-use ticket for the hearing socket, and the service's address) and the `speech` kill switch. A product's speech entry runs `startSpeech(composition, env, await loadSpeech())`: the hearing socket `/v1/speech/ws` (16 kHz PCM16 in; turn states, partial words and final text with the closest expected phrase out, to that device only, through the same listener and rules as the device) and `POST /v1/speech/tts` (one sentence as newline-delimited lines of 24 kHz audio with each word's start from Kokoro's own durations). Models, pinned by commit and SHA-256 and fetched once by `fetchSpeechModels()`: sherpa-onnx's Moonshine base (English) and Silero on ONNX Runtime Web for hearing; the device's timed Kokoro v1.0 ("Heart") through kokoro-js on onnxruntime-node, in a process of its own, for speaking. The ticket route lets the admin's embedded app ask too (`preview: true`). While switched off it refuses tickets, sockets and sentences and closes open sockets within 5 s. Only timings are logged; a test proves audio never reaches disk, logs, error reports, metrics or the session socket. Contracts in `@buffcore/contracts/speech`; the real check is `pnpm exec tsx scripts/speech-check/run.ts`.
|
|
2471
|
+
- **The voice engine and the remote backend** (`@buffcore/voice`, [REALTIME.md](docs/REALTIME.md#the-fallback-chain)): `createVoiceEngine({ microphone, playback, device?, speech?, deviceModels?, speed? })` is the `VoiceEngine`, on the chain `chooseChain` picks (device → speech service → tap to talk → Quiet) and chosen again whenever a fact changes; on the web, `createWebVoice({ speech, deviceModels, speed })` from `@buffcore/voice/web` wires it. `createRemoteHearer` streams the microphone to the speech service's hearing socket with a fresh ticket per socket (4401: renewed at once; 4400 and 4503: stop and fall back; 1011 or a drop: reconnect, the open turn lost; four failed reconnects: unreachable); `createRemoteSpeaker` speaks through `POST /v1/speech/tts`, each line played as it arrives (`streamPlayback()` on the web) with Kokoro's word timings, cancelled by aborting. `EngineState` gains `fallback` (`microphone`, `speech_off`, `speech_unreachable`, `device_failed`). A turn heard on the device that took more than 0.15 of its length to its text moves hearing to the service (a load-time measure within twice that gets a try first); `chooseChain` puts a slow device in tap to talk when no service can hear. `setMode()` tries a failed service or microphone again. Audio goes only to the service the ticket named and is never kept. The real check is `pnpm exec tsx scripts/voice-check/remote.ts`.
|
|
2472
|
+
- **For the speech service:** `createServer(app, { serves })` serves only the given modules with the app's sign-in and error capture; `startServer(composition, env, { port, serves?, onStop? })` starts any of the image's processes (`startApi` is unchanged); new environment variables `APE_SPEECH_PORT` and `APE_SPEECH_URL` (4303) and `APE_HOST` (where processes listen, `127.0.0.1` by default); `ape dev` runs the speech entry as its third process when `voice` is on, and `ape stop` stops it; the product template gains `infra/docker/speech.Dockerfile` and a `.dockerignore`. `@buffcore/voice` exports the listener that runs the hearing rules on audio (`createListener`, also the web hearing worker's) and Kokoro's word timings (`kokoroWordStarts`, `textWordStarts`, `KOKORO_RATE`); `@buffcore/voice/models` adds `SILERO`, `KOKORO` and `KOKORO_WEBGPU`, and `downloadModels(dir, options, models)` takes the pins to fetch.
|
|
2473
|
+
- **The web voice's workers from the product's folder** (a tutoring app's request): `@buffcore/voice` exports its two worker entries, `@buffcore/voice/web/hearing-worker` and `@buffcore/voice/web/speaking-worker`, and `createWebVoice` takes `workers: { hearing, speaking }` (`worker` of `createWebHearer` and `createWebSpeaker`), so a product using a linked BuffCore starts them from two files of its own ([REALTIME.md](docs/REALTIME.md#the-web-backend)).
|
|
2474
|
+
|
|
2475
|
+
### Fixes
|
|
2476
|
+
|
|
2477
|
+
- **A person's scale and mode reach every screen on the web:** a stylesheet made only of style functions (BuffCore's `Text`, `Button`, `Chip` and `Switch`, and many product components) that was first used after `setScale` or a change of mode kept the values it loaded with: text at scale 1 (a tutoring app's captions, prompts and Home's headings at 1.15), or light-mode colors on a dark page. `configureThemes` now marks every style function as reading the theme, so Unistyles keeps each stylesheet current from the start. Nothing to change in a product that calls `configureThemes` in its entry file, before any component loads ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md#runtime-theming)).
|
|
2478
|
+
- **The packages say their release:** every `@buffcore/*` package is `0.3.0` (they still said `0.1.0` at v0.2.0), so `ape create` pins new products to it; `ape --version` and `ape mcp` report it too (they said `0.1.0` always).
|
|
2479
|
+
- **`ape stop` reads every Windows process:** a command line holding a raw control character made PowerShell's process list unreadable, so `ape stop` stopped nothing.
|
|
2480
|
+
- **The speech service sits beside its product:** unset, `APE_SPEECH_PORT` and `APE_SPEECH_URL` follow the product's API port (API + 3: 4403 beside 4400), so a product's `ape dev` and `ape stop` never use BuffCore's own 4303 (`speechPort`, `speechUrl` from `@buffcore/config`).
|
|
2481
|
+
- **A database restart no longer stops the API:** the sign-in library's connection pool had no error listener, so Postgres ending an idle connection (a restart, or a test database dropped) threw and stopped the process. That was the "terminating connection due to administrator command" test flake.
|
|
2482
|
+
- **`WsFields` keeps each variant's fields** (a tutoring app's request): for a message type whose schema is a discriminated union (`z.discriminatedUnion(key, [wsMessage(t, …).schema, …])`), `send(def, fields)` takes any one variant's own fields and type-checks without a cast; before, it kept only the fields every variant shares ([REALTIME.md](docs/REALTIME.md#real-time-sessions)).
|
|
2483
|
+
- **`forbidden` matches whole words:** an AI call's `forbidden` values (such as a child's name) are refused as whole words in any case, so the name "Sam" refuses "Sam's" but no longer "same" (a tutoring app M2).
|
|
2484
|
+
- **A turn that barged in is never dropped as an echo** (a tutoring app M2): an answer said over the app's voice that reused the question's words ("less than one half") was judged the app's echo once it ended. The hearing rules now keep any turn that barged in, on the device and the speech service alike; a turn over the app's voice that didn't barge in is still dropped when it echoes ([REALTIME.md](docs/REALTIME.md#hearing-rules)).
|
|
2485
|
+
- **AI fixtures match spoken text loosely** (a tutoring app M2): a fixture's `when` matches a string value in any case, with punctuation ignored and spaces collapsed, so "less than one half" matches Moonshine's "Less than one half."; every other value still matches exactly ([AI_GATEWAY.md](docs/AI_GATEWAY.md#tests)).
|
|
2486
|
+
|
|
2487
|
+
### The prototype
|
|
2488
|
+
|
|
2489
|
+
- **Text scale in the viewer:** a scale menu (100%, 115%, 130%) after language. Each app scene shows at its own `scale` until one is picked, then at the picked one; admin scenes stay at 1. `sceneUrl` adds `scale` only when given, and `createScene`'s component takes it from the URL ([PROTOTYPE.md](docs/PROTOTYPE.md)).
|
|
2490
|
+
|
|
2491
|
+
### The playground
|
|
2492
|
+
|
|
2493
|
+
- **"Say a title" on Notes** (the live demo; `realtime` and `voice` on, pinned to 0.3.0): the member says a note, the device or the speech service hears it, and `notes.title` streams its title back over a live session (one client message, `title.ask`) with a tool (`recent_titles`), spoken with each word highlighted. Below what was wanted it says so: tap to talk, Quiet (type, then "Suggest a title"; captions only), the microphone, a reconnect, AI switched off. `notes.title` is plain text now (a `check` keeps it to 80 characters) so it can stream. The playground's speech entry is `src/speech.ts`. The exit gate's steps run in Chrome with `pnpm exec tsx scripts/gate-v03/run.ts`.
|
|
2494
|
+
|
|
2495
|
+
### Upgrade notes
|
|
2496
|
+
|
|
2497
|
+
From v0.2, by feature. A product pinned to `0.2.0` runs on this release unchanged except for the core and `ai` notes; `realtime` and `voice` arrive off.
|
|
2498
|
+
|
|
2499
|
+
**Core (every product)**
|
|
2500
|
+
|
|
2501
|
+
- **`ape migrate`:** a new core migration adds `ops_switches` (kill switches).
|
|
2502
|
+
- **One key, one switch:** every AI purpose has a kill switch named by its key, and a module may name more (`switches` in its manifest). A purpose key declared by two modules, or a module switch named like a purpose, now makes `ai.run` and `ai.stream` throw: rename one.
|
|
2503
|
+
|
|
2504
|
+
**`ai`**
|
|
2505
|
+
|
|
2506
|
+
- **`ape migrate`:** `ai_profiles` gains `fallback`; `ai_calls` gains `steps` and `checks`.
|
|
2507
|
+
- **`AI_STATUSES` gains `aborted`** (a stopped stream): a map over every status (such as `Record<AiStatus, …>`) adds the key.
|
|
2508
|
+
- **`AiCallRow` gains `streamed`, and `AiCallDetail` gains `checks`** (`CallCheck[]`, empty when none): a product that builds rows or details itself (sample data for scenes) adds them (`streamed: false`, `checks: []`).
|
|
2509
|
+
- **`forbidden` matches whole words** in any case: "Sam" still refuses "Sam's" but no longer "same". A test that expected a refusal inside a longer word changes.
|
|
2510
|
+
- **`personal: true`** on a class in `AiConfig.classes` makes opening its calls in AI › Calls an audited read: mark every class whose calls hold personal data (a tutoring app: the child-facing class). Unmarked, a call opens without an audit row.
|
|
2511
|
+
|
|
2512
|
+
**`realtime` and `voice` (to turn them on)**
|
|
2513
|
+
|
|
2514
|
+
1. **Pin the release:** `buffcore: '0.3.0'` in `buffcore.config.ts` (and every `@buffcore/*` package at `0.3.0`); `ape enable` refuses both before that.
|
|
2515
|
+
2. **`ape enable voice`** turns on `voice` and `realtime` (or `ape enable realtime` alone), then `ape migrate` (`rt_sessions`, `session_log`).
|
|
2516
|
+
3. **Live sessions:** pass `realtime: defineRealtime({ path, messages, ticketSeconds, onOpen?, onMessage? })` to `buffcoreModules`; the product's start route calls `startSession`, and says `preview: true` in its schema if the admin's embedded app starts sessions (a preview token may call a write only when its route says so); the app uses `useLiveSession` ([REALTIME.md](docs/REALTIME.md#real-time-sessions)).
|
|
2517
|
+
4. **The speech service:** add `@buffcore/speech` to the API's dependencies and the speech entry `src/speech.ts` beside `server.ts` (the five lines in [REALTIME.md](docs/REALTIME.md#the-speech-service)); `ape dev` runs it as the third process. Its port follows the API's (API + 3, e.g. 4403 beside 4400) unless `.env` sets `APE_SPEECH_PORT` and `APE_SPEECH_URL`; devices other than the PC need an HTTPS address there (Tailscale in development). Models: `APE_MODELS_DIR`, or `.ape/models` where it runs, fetched once with `fetchSpeechModels()` (git-ignored; never committed).
|
|
2518
|
+
5. **The web voice on the device:** `withVoice(config, { models })` from `@buffcore/voice/metro` in `apps/app/metro.config.js` (COOP and COEP, the voice's libraries and models; fetch them once with `fetchVoiceModels(dir)` from `@buffcore/voice/models`; give `models` the speech service's folder, `process.env.APE_MODELS_DIR` first, as the playground does), and `@buffcore/voice` in the app's dependencies. With `deviceModels: false` the app hears and speaks through the speech service alone and needs neither.
|
|
2519
|
+
6. **The worker files:** two files in the app, `src/voice/hearing.worker.ts` (`import '@buffcore/voice/web/hearing-worker';`) and `src/voice/speaking.worker.ts` (`'@buffcore/voice/web/speaking-worker'`), passed as `createWebVoice({ workers: { hearing, speaking } })`, so Metro bundles them from the product's own folder (required with a linked BuffCore).
|
|
2520
|
+
7. **Production hosting** must serve `/_ape/voice/*` with the same COOP and COEP headers as `withVoice` (not yet in `ape deploy`), and run the speech stage (`infra/docker/speech.Dockerfile`, from `@buffcore/cli/templates/product`).
|
|
2521
|
+
|
|
2522
|
+
**The prototype (optional)**
|
|
2523
|
+
|
|
2524
|
+
- **The viewer's text scale:** in the app's `src/prototype/scene.tsx`, read `scale` with the other search parameters and pass it on (`<Scene … scale={scale} />`), as `@buffcore/cli/templates/product` does. Without it, the scale menu changes nothing.
|
|
2525
|
+
|
|
2526
|
+
## v0.2.0 (2026-10-12)
|
|
2527
|
+
|
|
2528
|
+
Profiles, content and the inbox for a tutoring app M1: managed profiles, versioned content published by sets, one inbox for reviews, the prototype approved in the inbox, and the app previewed inside the admin console.
|
|
2529
|
+
|
|
2530
|
+
### Modules and routes
|
|
2531
|
+
|
|
2532
|
+
- **`inbox` (core):** one queue for everything that needs a person. Routes to list, open and assign items; services `openItem` and `resolveByRef` for other modules ([MODULES.md](docs/MODULES.md)). Its one kind for now is `set_review`.
|
|
2533
|
+
- **`content` (core):** items, versions and sets, with item and set routes ([CONTENT_PIPELINE.md](docs/CONTENT_PIPELINE.md)). A module declares the kinds it publishes in its manifest, `contentKinds: { kind: { schema, description? } }` (the first module wins), and every draft is checked against its kind's schema. Submitting a set opens a review in the inbox; publishing and rolling back a set are high-risk, always-human actions, each in one transaction. A locale variant starts from its source's live content and is marked outdated when the source moves on.
|
|
2534
|
+
- **Reading content:** `GET /v1/content/:kind/:key` (anyone signed in; falls back along the language chain) and `getPublished` for a product's own routes. Both say which `locale` and `versionNo` they served (`ContentRead`), so a product can record the version a person saw.
|
|
2535
|
+
- **Preview tokens:** `POST /v1/admin/preview-tokens` (15 minutes, stored hashed, sent in the `x-ape-preview` header, never kept for an idempotency replay). A request with the header is a read-only preview: `Actor.preview` is `{ setId?, profileId? }`, the reader shows the set's drafts, admin routes and writes answer 403, and `GET /v1/me` returns `preview: { setId?, profile? }`, the profile being the token's test profile (`id`, `displayName`, `locale`, `settings`).
|
|
2536
|
+
- **`profiles` (feature, off):** managed profiles with a name, a language and settings checked by the product's Zod schema; test profiles (no account); member routes under `/v1/accounts/:accountId/profiles` and `/v1/profiles/:profileId`; Owner routes under `/v1/admin/profiles` (opening one is an audited read). Hooks `profiles.onCreated` (in the same transaction) and `profiles.testProfile` (returns the test profile or null).
|
|
2537
|
+
- **`prototype` (core):** prototype versions are a content kind, approved in the inbox like any set; a development route serves the snapshots' screenshots ([PROTOTYPE.md](docs/PROTOTYPE.md)).
|
|
2538
|
+
- **Search and accounts:** `matchText` and `searchConfig` in `@buffcore/db` (trigram for names and IDs, full text over chosen word columns at query time, no stored vectors); `GET /v1/admin/accounts` finds accounts by display ID or a member's name or email, and `GET /v1/admin/accounts/:accountId` opens one (an audited read).
|
|
2539
|
+
- **Display IDs:** inbox items (`IN`), content sets (`CS`) and profiles (the product's prefix) get IDs like accounts do: a prefix and six letters and digits (`IN-7KQ2MD`), from one helper.
|
|
2540
|
+
- **Errors carry their sentence:** the one error shape gains an optional `message`, the server's text for `messageKey` in the reader's language (`ApiError`). `ApiCallError.text(t)` shows `t(messageKey)` when the client's catalogs have the key and `message` when they don't, so a module's errors need no copy in the admin or app catalogs ([CONNECT.md](docs/CONNECT.md)).
|
|
2541
|
+
- **`RouteDef.noReplay`:** a route whose answer holds a secret is never kept for an idempotency replay ([CONNECT.md](docs/CONNECT.md)).
|
|
2542
|
+
|
|
2543
|
+
### Admin console (`@buffcore/admin-shell`)
|
|
2544
|
+
|
|
2545
|
+
- **People › Accounts and Profiles:** search; an account's audited detail with its members, its profiles (when `profiles` is on) and its open inbox items; a profile's audited detail; a filter for test profiles and "New test profile"; product tabs through `createAdmin({ people: { accountTabs, profileTabs } })`.
|
|
2546
|
+
- **Inbox › Reviews,** after People: items by status and kind; assign and unassign (each asks first); the set review shows each draft beside what is live and the app beside the review (`PreviewFrame` with the set's drafts, when `appUrl` is set; a prototype version shows its screenshots instead), removes an item, sends the set back with a note, approves and publishes (the confirm says what goes live in the kind's words, `ContentKindView.publishNote`) and rolls back.
|
|
2547
|
+
- **Content › Items and Sets,** after the Inbox (Owner), built to the approved prototype version "Content screens" (cf1bb40): every item in every language with outdated translations marked; an item's draft, languages and history; compare two versions side by side; edit the draft as JSON, checked by the server; add a language; sets by state and kind; a new set; add drafts that are in no set; submit; roll back. Every write asks first and is audited ([ADMIN_SHELL.md](docs/ADMIN_SHELL.md)). For these screens: `GET /v1/admin/content/drafts` (drafts in no set), `key` on the items list, `itemId` and `versionCount` on the sets list, and `ref` on the inbox list.
|
|
2548
|
+
- **Content kinds in the console:** `createAdmin({ contentKinds: { kind: { label, Render?, Compare?, Edit?, publishNote? } } })`. `Render` gets `ContentKindRenderProps` (`{ content, item?, version? }`), so a product can point `PreviewFrame` at the draft it shows; `Edit` (`ContentKindEditProps`) is a kind's own editor, shown for "Edit draft" in place of the JSON.
|
|
2549
|
+
- **Embedded preview:** `PreviewFrame` shows the product's web app (`createAdmin({ appUrl })`) in a phone or tablet frame, as the operator's own user with no account data, and renews its token every 13 minutes.
|
|
2550
|
+
- **Exports:** `JsonView`, `TextArea`, `PreviewFrame`, `ContentKindRenderProps` and `ContentKindEditProps`; `SetReviewView` and `DeviceFrame` from `@buffcore/admin-shell/prototype`, for console scenes that show the app.
|
|
2551
|
+
- **The console opens on People** for an Owner whose product registers no sections of its own (it was AI › Calls or Operations › Errors).
|
|
2552
|
+
- **Lists and set review read again after a language switch:** `usePagedRoute` and `useVersionContents` key their reads by the client's language.
|
|
2553
|
+
- **Fixed:** `Page`'s `margin` stays beside the page (it took the wide first column and squeezed the page into the margin's width). Set review's preview opens the app again when the set changes (published, rolled back, sent back, an item removed), so a rolled-back draft no longer stays on screen as if it were live.
|
|
2554
|
+
|
|
2555
|
+
### The prototype
|
|
2556
|
+
|
|
2557
|
+
- **Scenes and the viewer:** `defineScenes` in `@buffcore/config` (with the product's `theme`, `FRAME_SIZES` and `sceneUrl`); the viewer at `/prototype` and bare scene pages at `/_scene?key&theme&mode&locale`, on development servers only (`@buffcore/admin-shell/prototype`, `@buffcore/app-shell/prototype`). The viewer names a product's mode with `admin.prototype.mode.<mode>` from its admin catalogs, else the key in words ([PROTOTYPE.md](docs/PROTOTYPE.md)).
|
|
2558
|
+
- **`ape prototype snapshot`:** every scene in the product's own theme, in every mode and language, through the installed Chrome or Edge (`playwright-core`), four pages at once, with reduced motion and after animations finish (and after the app's scene pages framed in a console scene have drawn). A product that names no theme in `defineScenes({ theme })`, or names a starter (the playground), is checked in each starter theme. It screenshots each checked theme in light mode and the product's theme (else the first starter theme) in dark mode too, and checks untranslated text, text cut off, touch targets under 44 px, each theme's contrast, and text too faint to read as drawn, in every mode (4.5:1, or 3:1 for large text; disabled controls too). A product's own browser scripts run the same text check with `unreadableText(page)` from `@buffcore/cli/readable`.
|
|
2559
|
+
- **`ape prototype submit "<title>"`** saves the committed snapshot as a prototype version in a one-item set, submitted for review; the inbox shows before and after screenshots per scene (`ContentKindView.Compare`).
|
|
2560
|
+
- **`ape review`** lists the sets waiting for review; in development, `ape review approve|send-back <set>` decides one as the coordinating agent (`coordinator-agent`, audited with `via: cli`). `listSets`, `sendBack` and `publishSet` are exported from `@buffcore/modules/content`.
|
|
2561
|
+
- **New products** get `prototype/scenes.ts`, the `/_scene` route and the viewer, a Metro config that watches the root `prototype/` and `content/` folders, and the `ape-prototype` skill.
|
|
2562
|
+
|
|
2563
|
+
### App (`@buffcore/ui`, `@buffcore/app-shell`, `@buffcore/sdk`)
|
|
2564
|
+
|
|
2565
|
+
- **Components:** `StepPath`; a `density` prop on `Page`; `Sheet` `closeButton` (close by scrim, Esc and back without an X); `PHONE_BREAKPOINT` and `usePhone()`; `TopBar`'s title is optional; `useTextDir()` gives interface text (titles, labels, help, banner and status text) the layout direction on the web, while a typed value keeps the browser's guess ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md)).
|
|
2566
|
+
- **Sizes and headings:** `Button` and `IconButton` are at least the theme's touch target (44 px) tall and wide; the `TopBar`'s and `Sheet`'s titles are level-2 headings, so the screen's `heading-1` stays the only h1.
|
|
2567
|
+
- **Fonts:** `createAppShell({ fonts })` loads the theme's fonts with expo-font before the app shows.
|
|
2568
|
+
- **A person's scale:** `setScale(factor)` from `@buffcore/app-shell` shows the app at a person's scale (type, spacing and control sizes; layout widths stay) in every theme and mode, always from the values as designed; `useScale()` from `@buffcore/ui`, or `theme.scale` in a stylesheet, for a product's own sizes; `scaleNative` in `@buffcore/tokens`; an app scene's `scale` in `defineScenes` ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md#runtime-theming)).
|
|
2569
|
+
- **Theme changes reach every component on the web:** the app shell configures Unistyles without CSS variables, so a style already on the page follows a change of theme or scale.
|
|
2570
|
+
- **Reduced motion:** `useReducedMotion()` from `@buffcore/ui`; under it a `Sheet` appears without fading and a pressed `Button` doesn't shrink.
|
|
2571
|
+
- **Accessibility:** the focus ring of `Button`, `IconButton`, `Switch`, `SettingRow` and `OptionList` shows for keyboard focus only (the browser's `:focus-visible`; `focusRing(theme, focused)` is exported for products' own pressables). Feedback is announced once: the `ActionBar` is no longer a live region, and a string status is a polite status. A `Sheet` is one dialog on the web, named by its title ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md#accessibility-baseline)).
|
|
2572
|
+
- **Preview mode:** inside the admin's `PreviewFrame`, the app shell takes its token from the iframe's name (never a URL), keeps it in memory and sends it on every call; it shows a Preview banner, doesn't sign in, and sends no events or error reports. `Shell.preview` says whether the app runs as a preview, and `useMe().preview` what it previews.
|
|
2573
|
+
- **`@buffcore/sdk`:** `createClient({ headers })` adds headers to every call; `client.locale()` is the client's language; `useRoute` reads again after a language switch (its cache key ends with the language), while `useAction`'s paths still refresh every language.
|
|
2574
|
+
- **`app_opened`** is tracked when the app shell first shows, not when its module loads, and never in a preview.
|
|
2575
|
+
- **Fixed:** a multiline `TextField` is no longer an oval in Soft; `OptionList` rows follow the layout direction on the web; a sheet's autofocus field keeps the first keystrokes.
|
|
2576
|
+
|
|
2577
|
+
### Themes (`@buffcore/tokens`)
|
|
2578
|
+
|
|
2579
|
+
- **A product's contrast pairs:** `extendTheme({ checks })` lists a product's text-on-color pairs for `checkTheme`; `contrastRatio` is exported.
|
|
2580
|
+
- **Disabled controls stay readable (4.5:1) in every theme:** `text-disabled` is darker in Neutral and Soft, in every mode (Neutral light was 2.45:1 on its surface). A disabled `Button` (app and console) keeps a control's edge (`border-control`) and its label goes to regular weight; a disabled `Switch` turns grey instead of fading to half opacity; a loading `Button` no longer fades. `checkTheme` holds `text-disabled` to 4.5:1 (7:1 in high contrast) on the canvas, page, panel, sunken and overlay surfaces, and `text-muted` on `surface-selected` too. The console's placeholders use `text-muted` ([THEMING_AND_UI.md](docs/THEMING_AND_UI.md#accessibility-baseline)).
|
|
2581
|
+
|
|
2582
|
+
### Tooling
|
|
2583
|
+
|
|
2584
|
+
- **Test coverage in `pnpm verify`:** every package's tests run with coverage (`@vitest/coverage-v8`), and floors in each package's `vitest.config.ts` fail the run when it drops; shared settings in the root `vitest.shared.ts`; `pnpm coverage` (`ape coverage`) prints lines, branches and functions per package. New products get the same, with floors at 0 ([TESTING.md](docs/TESTING.md#coverage)).
|
|
2585
|
+
- **`ape seed` runs again safely:** `identity` and `profiles` skip what they already made, so a new module's seed (e.g. a product's lessons) can be added to a development database without `--reset`.
|
|
2586
|
+
- **`ape stop` stops `ape dev` too,** so `tsx watch` can't restart the API and nothing stays running on Windows.
|
|
2587
|
+
- **The pre-commit hook runs the installed Biome** (`pnpm exec biome`): `npx biome` on a checkout without `node_modules` would fetch an unrelated npm package named `biome`.
|
|
2588
|
+
|
|
2589
|
+
### Playground
|
|
2590
|
+
|
|
2591
|
+
- Turns on `profiles` (`L-` display IDs, one setting). Its `notes` module publishes the content kind `tip`, and the seed has a published `tip/welcome` in English with a Spanish variant; its admin names and shows the kind (`createAdmin({ contentKinds })`) and adds a "Notes" tab on accounts. Its prototype has scenes for the app and the console, the Content screens among them.
|
|
2592
|
+
- Notes shows the tip of the day: `NotesView` takes a `tip` and the app reads the published `tip/welcome` in the reader's language (the v0.2 gate's change request: prototype version "Notes: tip", snapshot `90b61fa`).
|
|
2593
|
+
|
|
2594
|
+
### Upgrade notes
|
|
2595
|
+
|
|
2596
|
+
From v0.1, by area. Each note says what a product does.
|
|
2597
|
+
|
|
2598
|
+
**The database**
|
|
2599
|
+
|
|
2600
|
+
- **New core modules `inbox`, `content` and `prototype`:** `buffcoreModules` loads them; run `ape migrate`. A product that lists modules by hand adds all three (`content` needs `identity` and `inbox`; `prototype` needs `content`).
|
|
2601
|
+
- **`pg_trgm`:** the new migrations run `create extension if not exists pg_trgm`. Give the database role permission to create extensions, or have a DBA run it first.
|
|
2602
|
+
|
|
2603
|
+
**The app**
|
|
2604
|
+
|
|
2605
|
+
- **Unistyles' plugin:** in `apps/app/babel.config.js`, set `autoProcessPaths: ['@buffcore/']` (`['react-native-unistyles/plugin', { root: 'src', autoProcessPaths: ['@buffcore/'] }]`). Without it, once a product uses a BuffCore release instead of a linked checkout, BuffCore's components don't follow a change of mode or scale.
|
|
2606
|
+
- **`expo-font`** (`>=57`) is a new peer dependency of `@buffcore/app-shell`: add it to the app (`expo-font` `57.0.4`).
|
|
2607
|
+
- **`NativeTheme.scale`** is a new field (1 from `toNative`): code that builds a `NativeTheme` by hand adds it.
|
|
2608
|
+
- **Headings:** the `TopBar`'s and `Sheet`'s titles are level-2 headings (on the web they were `<h1>`). A screen that relied on the bar for its h1 gives itself a `heading-1`; tests find these titles with `{ level: 2 }`.
|
|
2609
|
+
- **Bigger small buttons:** `Button` and `IconButton` are at least 44 px tall and wide, so a `sm` one grows. Check tight rows in the next snapshot.
|
|
2610
|
+
- **`ActionBar` and `Sheet` in tests:** the toned bar has no `role="status"` or `aria-live` of its own; a test that found the bar by `[aria-live="polite"]` finds it another way, and a product's own status in the bar is now the only status around its words (`getAllByRole('status')` finds one, not two). On a device, give that status `aria-live="polite"` too, or Android won't announce it. A `Sheet`'s dialog is on the web the modal around the panel, present once the sheet has appeared: at once under reduced motion, after the fade-in otherwise (in jsdom, which runs no animations, fire `webkitAnimationEnd` on the elements around it, or test under reduced motion). `getByRole('dialog', { name })` finds exactly one.
|
|
2611
|
+
- **`useRoute`'s cache key** ends with the client's language (`[method, path, input, client.locale()]`): code that reads or sets one result by its exact key (`setQueryData`) adds the language. Invalidating by `['GET', path]` works as before.
|
|
2612
|
+
- **`app_opened`** counts only when the shell shows: nothing to change, but a prototype scene page or a preview no longer counts as an app open.
|
|
2613
|
+
|
|
2614
|
+
**Themes and snapshots**
|
|
2615
|
+
|
|
2616
|
+
- **A product theme that sets `text-disabled` must clear the new check:** 4.5:1 (7:1 in high contrast) on `surface-canvas`, `surface-page`, `surface-panel`, `surface-sunken` and `surface-overlay`, in every mode it sets (e.g. a warm reading mode); likewise `text-muted` on `surface-selected`. `checkTheme`, its tests and `ape prototype snapshot` fail until it does. A theme that leaves these to its starter theme needs nothing.
|
|
2617
|
+
- **`ape prototype snapshot` checks rendered text:** a snapshot that passed may now fail on text too faint to read (disabled buttons often do). Fix the theme's tokens or the view, or say in the submission why it stays. A copy of the check in a product's scripts imports `unreadableText` from `@buffcore/cli/readable` instead.
|
|
2618
|
+
|
|
2619
|
+
**The repository**
|
|
2620
|
+
|
|
2621
|
+
- **Biome:** add `"!**/prototype/snapshots"` (generated files) to `files.includes` in the product's `biome.json`.
|
|
2622
|
+
- **The pre-commit hook:** in `.githooks/pre-commit`, replace `npx biome` with `pnpm exec biome`.
|
|
2623
|
+
|
|
2624
|
+
**To use what's new (optional)**
|
|
2625
|
+
|
|
2626
|
+
- **`profiles`** (new feature, off): `ape enable profiles`, then pass its settings where the app is composed: `buffcoreModules(product, { profiles: { displayPrefix, settings } })`. The `settings` schema needs a default for every field (a profile starts with `{}`).
|
|
2627
|
+
- **The prototype:** add what a new product gets (copy from `@buffcore/cli/templates/product`): `prototype/scenes.ts`; in the app, `src/app/_scene.tsx`, `src/prototype/scene.tsx` and `views.ts`, and the `/_scene` bypass in `src/app/_layout.tsx`; in the admin, `src/prototype/index.tsx` and `views.ts`, and the development branch in `src/main.tsx`. In `apps/app/metro.config.js`, watch the root `prototype/` and `content/` folders, so scenes reload without a restart.
|
|
2628
|
+
- **Admin views include their own `<Page>`,** so a prototype scene shows the whole screen: move a screen's `Page` into its view. Nothing breaks if a product doesn't.
|
|
2629
|
+
- **The embedded preview:** pass `createAdmin({ appUrl })`, where the product's web app runs (the template reads `VITE_APP_URL`).
|
|
2630
|
+
- **The console's first screen:** an Owner whose product registers no sections now lands on People; a product that wants another first screen registers its own section.
|
|
2631
|
+
- **Test coverage:** add `@vitest/coverage-v8` `5.0.3` to the root devDependencies and copy `vitest.shared.ts` from `@buffcore/cli/templates/product` to the root. Give each package with tests a `vitest.config.ts` with `test: { coverage: coverage({ lines, branches, functions, statements }) }` (its coverage today, rounded down, minus 1) and a `test` script of `vitest run --coverage`. In `turbo.json`, give `test` `"inputs": ["$TURBO_DEFAULT$", "$TURBO_ROOT$/vitest.shared.ts"]` and `"outputs": ["coverage/coverage-summary.json"]`, and add the root script `"coverage": "turbo run test && ape coverage"`.
|
|
2632
|
+
|
|
2633
|
+
## v0.1.0 (in progress)
|
|
2634
|
+
|
|
2635
|
+
Foundations for a tutoring app M0.
|
|
2636
|
+
|
|
2637
|
+
- **Repository:** pnpm workspaces, Turborepo, Biome, TypeScript 7, Vitest 5; Docker services (Postgres 18 with pgvector, Redis 8, RustFS) on BuffCore's own ports (43xx); a pre-commit check that refuses `.env`, keys and database dumps; CI.
|
|
2638
|
+
- **`@buffcore/config`:** `defineEnv` (validated `APE_*` variables) and `defineProduct` for `buffcore.config.ts` (platforms, locales, features with their requirements and releases; sign-in methods and session length per kind).
|
|
2639
|
+
- **`@buffcore/contracts`:** `route()`, the one error shape, cursor pagination, UUIDv7 IDs; route schemas for the core modules.
|
|
2640
|
+
- **`@buffcore/i18n`:** `t()` with ICU messages, catalogs per module, the `es-US → es → en` fallback, pseudo-locales `en-XA` and `ar-XB`, `Intl` formats, catalog checks, localized validation messages; core strings in English and Spanish.
|
|
2641
|
+
- **`@buffcore/db`:** MikroORM 7, module migrations as reviewed SQL (generated from entities, applied in module order, recorded in `buffcore_migrations` and `app_migrations`, round-tripped), seed scenarios, encrypted secret fields, sensitive marks, throwaway test databases.
|
|
2642
|
+
- **`@buffcore/server`:** `createApp` and `createServer` (Fastify 5): module manifests, request context (request ID, actor, locale), roles and two-step sign-in for admin routes, automatic audit of operator writes and sensitive reads, idempotency keys, rate limits, the error shape in the reader's language, OpenAPI at `/v1/openapi.json`, health, the outbound HTTP helper and its test fake, redaction, email delivery (test outbox, `/dev/emails` in development, Resend in production).
|
|
2643
|
+
- **`@buffcore/emails`:** a plain layout and the sign-in code and error alert templates, in the reader's language.
|
|
2644
|
+
- **`@buffcore/tokens`:** semantic tokens, the Neutral and Soft starter themes with light, dark and high-contrast modes, `extendTheme`, theme checks, CSS and native outputs.
|
|
2645
|
+
- **`@buffcore/sdk`:** the typed client (`api.call(route, input)`), sign-in calls, error reporting, the batched event tracker, TanStack Query hooks.
|
|
2646
|
+
- **Modules:** `identity` (Better Auth: invite-only sign-up, email codes, sign-in by password or (if the product offers it) an emailed code, sessions that last until sign-out or a set time, operators with two-step sign-in, roles, accounts and members, invite codes), `audit`, `events`, `errors` (BuffCore's own error tracking), `ai` (purposes, versioned profiles on Anthropic or Google Vertex AI with a thinking level, purpose classes with development-only providers, fixtures and record mode, the call log with cost, daily caps, fallbacks).
|
|
2647
|
+
- **Claude Code setup** in BuffCore and every new product: `.mcp.json` for `ape mcp`, a format-on-edit hook, a launch file for the browser preview, skills in `.claude/skills/`; Turborepo prints only failures.
|
|
2648
|
+
- **`ape` CLI:** `stop`, `size` (the file-size limit, run by `pnpm lint`), `create` (a product with API, admin console and app, on its own port block), `dev` (stops its process tree on Ctrl+C), `migrate` (`up`, `down`, `status`, `create`), `seed`, `manifest`, `i18n check` and `extract`, `enable`, `disable`, `link`, `unlink`, `mcp` (the development-only MCP server for coding agents).
|
|
2649
|
+
- **`@buffcore/admin-shell`:** `createAdmin`: sign-in with two-step setup (QR, backup codes), the frame and rail from registered sections, the confirm dialog, audit line and environment badge, Admin › Operators, Invite codes, Audit log and Environment, Operations › Errors, AI › Calls; theme and mode switching, the pseudo-locales, English and Spanish.
|
|
2650
|
+
- **`@buffcore/ui` and `@buffcore/app-shell`:** React Native components on Unistyles (Lucide icons through react-native-svg, start and end only, directional icons mirror); `createAppShell` and `configureThemes`: sign-in by password (with the emailed code that confirms the email) or by an emailed code, Settings (language saved on the person; mode, including a theme's extra modes, saved on the device; the theme switch in development), the session token in secure storage on native and cookies on the web, uncaught errors reported, `app_opened` tracked.
|
|
2651
|
+
- **`ops`:** Admin › Environment (`GET /v1/admin/environment`, no secrets).
|
|
2652
|
+
- **Playground:** the reference product: core modules, the `ai` feature, a `notes` module with an AI purpose, its admin console (port 4301) and its Expo app (web on port 4302).
|
|
2653
|
+
|
|
2654
|
+
### Upgrade notes
|
|
2655
|
+
|
|
2656
|
+
None: first release.
|