From 6a925c07dde979c981687b18014407bebd1f9e6b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 23:35:36 +0000 Subject: [PATCH] chore: version packages (rc) --- .changeset/pre.json | 66 +++++++- packages/better-near-auth/CHANGELOG.md | 12 ++ packages/better-near-auth/package.json | 2 +- .../skills/auth-plugin/SKILL.md | 2 +- .../better-near-auth/skills/client/SKILL.md | 2 +- .../better-near-auth/skills/relay/SKILL.md | 2 +- .../better-near-auth/skills/siwn/SKILL.md | 2 +- .../skills/subaccount/SKILL.md | 2 +- .../better-near-auth/skills/tanstack/SKILL.md | 2 +- packages/every-plugin/CHANGELOG.md | 41 +++++ packages/every-plugin/package.json | 2 +- packages/everything-dev/CHANGELOG.md | 145 ++++++++++++++++++ packages/everything-dev/package.json | 2 +- .../upgrade-audit/steps/v2-catalog.ts | 6 +- plugins/deployments/package.json | 2 +- pnpm-workspace.yaml | 12 +- 16 files changed, 282 insertions(+), 20 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 04870d135..0db772ebb 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -16,7 +16,8 @@ "ui": "1.9.1", "@everything-dev/upload-app": "1.0.0-rc.0", "@everything-dev/agent-connect-plugin": "0.1.0-rc.0", - "@everything-dev/docs-plugin": "0.1.0-rc.0" + "@everything-dev/docs-plugin": "0.1.0-rc.0", + "@everything-dev/deployments-plugin": "0.1.0" }, "changesets": [ "admin-structure-reporting", @@ -31,11 +32,16 @@ "api-public-schema-topology", "app-only-slot-stamping", "artifact-control-plugin", + "ast-grep-codemods", "atomic-deploys-phase-a", "atomic-deploys-phase-a2", "atomic-port-block-allocation", "auth-admin-organization-member-direct", "auth-better-auth-1.7", + "auth-browser-mint-context", + "auth-client-canonical-singleton", + "auth-client-context-derived", + "auth-client-graceful-without-auth-plugin", "auth-cookie-secure-baseurl", "auth-cross-subdomain-cookies", "auth-dts-any-collapse-guard", @@ -52,12 +58,14 @@ "authored-bootstrap-seams", "better-auth-1.7.28", "better-near-auth-error-formatting", + "better-near-auth-get-image-url", "better-near-auth-intent-catalog", "better-near-auth-server-nonce", "better-near-auth-vendored-pq", "boot-check-merged-shape", "boot-deadlines-and-diagnosability", "boot-fetch-transient-retry", + "boot-metrics-emitter", "boot-snapshot-boot-rung", "boot-snapshot-health-provenance", "boot-snapshot-schema", @@ -77,6 +85,7 @@ "bos-typecheck-command", "bos-upgrade-release-sync", "bounded-dev-logs", + "brave-otters-serialize", "browser-signed-deploys", "build-output-deploy-fix", "build-signed-delegate-action-fix-and-init-test-permissive", @@ -86,6 +95,7 @@ "buildscoped-helper", "bundle-dir-quoting-hardening", "canonical-changeset-release-flow", + "capability-recipes-auth-i18n-docs", "catalog-bump-toolchain-lockstep", "child-bundle-storage", "child-compose", @@ -118,6 +128,7 @@ "consumer-coupling-fixes", "consumer-release-plane", "content-collections-framework-primitive", + "content-hash-everywhere", "context-and-db-error-surface", "csr-shell-compose-payload", "curly-ghosts-sync", @@ -136,7 +147,10 @@ "db-type-reexports", "dead-symbol-sweep-734", "debrand-naming-sweep", + "declined-claims-runtime-map", "degraded-compose-core-only-tree", + "delete-workspace-orchestrator-seam", + "dep-compat-windows", "deploy-boot-resilience", "deploy-cdn-origin-guard", "deploy-confirm-tx-status", @@ -158,11 +172,15 @@ "deploy-train-smoke-gate", "deploy-wallet-rpc-pin", "deps-catalog-bump-nov", + "dev-adopt-build-done-signal", + "dev-auth-slot-single-opener", "dev-boot-audit-false-positives", "dev-bootstrap-effect-program", "dev-chain-audit", "dev-dashboard-build-diagnostics", "dev-folder-form-ui-units", + "dev-generation-export", + "dev-generation-ready", "dev-log-pipeline", "dev-logs-enoent-recovery", "dev-logs-newest-session", @@ -175,12 +193,15 @@ "dev-session-display-lifecycle-batch", "dev-session-quit-at-any-phase", "dev-session-shutdown-handle", + "dev-shell-slots", "dev-tui-quit-escalation-viewport-repaint", "dev-tui-repaint-erase-unmount-liveness", + "dev-watch-builds-development-mode", "device-link-hardening", "device-link-qr-signin", "differential-bundle-uploads", "docs-plans-consolidation", + "docs-repository-scoped-content", "drizzle-config-static-postgresql", "ecr-mirror-image-pulls", "effect-bundle-fetch-program", @@ -190,6 +211,7 @@ "effect-native-plugins", "effect-toolchain-self-heal", "effect4-orpc-v2-migration", + "emitted-css-layer-convention", "env-example-operator-flags", "every-plugin-context-guard", "every-plugin-declare-runtime-deps", @@ -204,6 +226,7 @@ "everything-dev-bna-quiet-build", "everything-dev-fail-loud-sweep", "export-map-dead-surface-c8", + "first-release-rollback-pointer-delete", "fix-dev-hashed-entry-names", "fix-dev-staleness-and-plugin-status", "fix-fastkv-publish-plane", @@ -220,6 +243,7 @@ "folder-form-ui-serve-dist-fix", "foreign-namespace-proxy-cache", "four-bags-hear", + "framework-home-identity", "framework-owned-files-adr-0032", "framework-ui-subpaths", "fresh-clone-dev-flow", @@ -227,6 +251,7 @@ "hermetic-boot", "host-pin-boot-drift", "hosting-adapter-seam", + "hosting-stages", "http-cache-bound", "i18n-seam-enforcement", "image-cdn-only-distribution", @@ -235,6 +260,7 @@ "immutable-version-dirs", "import-migration-reconciliation", "init-auth-types-stale-copy", + "init-declared-composition-maps", "init-prune-unused-ui", "key-generate-staging-flag", "lint-zero-warnings", @@ -248,7 +274,10 @@ "lucky-dingos-drive", "manifest-composition-rework", "manifest-contract-v2", + "merge-review-residue-sweep", "merge-union-empty-arrays", + "mf-2-9-4", + "mf-2-9-5", "mf-catalog-exact-pins", "modernize-ui-rsbuild-environments", "mount-guards", @@ -266,20 +295,27 @@ "one-committed-artifact", "one-row-per-plugin", "org-creation-approval", + "org-endpoint-remap-hardening", "org-onboarding-station", + "organization-client-remap", "orpc-v2-test-scaffolds-rpclink-standard-url", "owed-work-detection", "package-restructure-adr-0031", "package-self-typecheck", "passkey-client-hardening", "passkey-executor-repin", + "passkey-hygiene-batch", + "passkey-proof-hardening", "passkey-server-hardening", "passkey-single-ceremony-sign-up", "per-identity-pglite-data-dirs", "per-workspace-migration-journals", + "pglite-cross-process-lock", "pglite-data-dir-diagnosis", "pglite-only-local-db", + "pglite-studio-lock", "phase-b-sunset", + "pin-range-resolution", "pipelined-upload-raw-config", "plan-008-db-runner-driver-consolidation", "plans-reorg-prototypes", @@ -287,6 +323,7 @@ "platform-pin-descriptor", "platform-release-manifest-adr-0034", "platform-truth-gate-range-pins", + "plugin-add-remove-extends-chain", "plugin-additional-exports", "plugin-build-consolidation", "plugin-config-warnings", @@ -296,6 +333,7 @@ "plugin-route-contract-composition", "plugin-ui-opt-out", "plugin-watcher-kill-escalation", + "plugins-composition-enforcement", "pnpm-toolchain-cutover-pins", "pnpm-v2-node-image", "polite-passkey-autofill", @@ -306,12 +344,14 @@ "publish-balance-gate", "publish-key-repair-hint", "publish-pin-verification-gate", + "published-config-remote-production", "published-exports-src-dangling", "purge-stale-surface-006", "quiet-dev-ctrl-c-quit", "race-safe-migrations-and-host-failure-visibility", "railway-image-backed-deploys", "railway-workspace-token-repoint", + "range-drift-alarm", "rate-limit-session-read", "rc-aware-semver-gates", "rc-child-boot-fixes-462-464", @@ -333,18 +373,22 @@ "relayer-key-self-heal", "release-build-dependency-order", "release-field-upgrade-resilience", + "release-pinned-workflow-refs", "release-scoped-extends-inheritance", "release-scoped-manifest-writes", "release-sequence-hardening", "release-tag-candidates", "release-train-catalog-mirror", + "remote-build-cache", "remote-host-manifest-fail-loud", "remove-dead-export-entries-732", "remove-org-approval", + "repo-move-everything-project", "require-admin-home-redirect", "resolution-session", "restore-v1-core-sharing-set", "retire-bos-config-json-form", + "retire-patch-db-topology", "retire-plugin-dev-ts-name", "revert-regression-pglite-dirs", "rollback-config-half", @@ -354,10 +398,13 @@ "router-pending-defaults", "rpc-client-custom-headers", "rpc-mode-plugin-entries", + "runtime-control-runtime-map", "runtime-image-better-near-auth", "runtime-lifecycle-cache", + "runtime-map-backend-entry-emission-skew", "runtime-map-backends", "runtime-map-codegen", + "runtime-map-plugin-origin", "runtime-snapshot-service", "scaffold-docs-bos-app-ts", "scaffold-v2-docs-hygiene", @@ -373,8 +420,10 @@ "session-gas-keys", "session-query-recovery", "session-read-path-single-owner", + "session-shared-source", "session-single-read-path", "shared-dep-version-skew", + "shared-theme-tokens", "silence-build-warnings", "silent-dbs-write-scripts", "siwn-ephemeral-relayer", @@ -393,22 +442,30 @@ "snapshot-adopt-extends-resolution", "snapshot-coordinator-watch", "snapshot-watch-serialized-adopt", + "snippet-typecheck-gap", "sonner-shared-singleton-and-login-error-surfacing", "source-publish-archive", "speed-up-consumer-ci", + "spike-host-surface-scroll-selectors", "split-chunks-mf-phantom-chunks", "ssr-auth-client-cookie-forwarding", "ssr-auth-client-headers", "ssr-compose-pin-integrity", "ssr-dashboard-fix", + "ssr-dev-default", + "ssr-intent-wire", "ssr-nonce-liveness", "ssr-plugin-call-deadline", "ssr-plugin-ui-preload", "ssr-session-null-cache-poisoning", "ssr-session-tri-state", + "ssr-tenant-collapse", "staging-input-schema", + "stale-dev-cache-shared-identity", + "staleness-doctor-probes", "stamp-auth-pglite-allow-on-init-env", "stamp-plugin-ui-container-name", + "standard-schema-contracts", "start-container-env-and-baseurl", "start-logs-revert-and-image-mirror", "start-origin-purge-registry-gate", @@ -420,6 +477,7 @@ "storage-upload-timeout-retry", "stream-driven-ansi-tui", "stripped-rpc-client", + "subpath-standardization", "sync-child-manifest-normalization", "sync-child-owned-protocol", "teams-workspaces-wallet-invitations", @@ -428,6 +486,8 @@ "tenant-framework-subpath", "test-database-isolation", "test-scripts-if-present-placement", + "tidy-locks-flock", + "train-input-manifest", "train-ssr-container-recovery", "train-writes-lockfile", "transport-neutral-module-hosting", @@ -454,7 +514,10 @@ "upgrade-cleanout-legacy-state", "upgrade-derived-delta", "upgrade-exact-release-catalog", + "upgrade-phase-error-consolidation", "upgrade-plan", + "upgrade-train-effect-phases", + "upgrade-v1-config-damages", "upload-app-devdep", "upload-app-first-pass", "upload-proxy-timeout", @@ -476,6 +539,7 @@ "version-manifest-source-archive", "version-observability", "wallet-connector-hot-labs-fork", + "wild-pugs-record", "workspace-sync-ui-auth-export", "zero-config-dev" ] diff --git a/packages/better-near-auth/CHANGELOG.md b/packages/better-near-auth/CHANGELOG.md index e5b3e3fb9..eb1f56a06 100644 --- a/packages/better-near-auth/CHANGELOG.md +++ b/packages/better-near-auth/CHANGELOG.md @@ -1,5 +1,17 @@ # better-near-auth +## 2.0.0-rc.10 + +### Minor Changes + +- aa01654: Export `getImageUrl` from the package root so integrations resolve a NEAR social-profile image (url or ipfs_cid) to a served URL without re-implementing the ipfs gateway fallback. +- aa14f75: Passkey hygiene batch (#1039): the wallet proof now derives its curve from the WebAuthn assertion's COSE algorithm (`publicKeyAlgorithm`) instead of a signature-length heuristic, and throws a named error when the assertion carries no algorithm; a failed credential-id listing only falls back to the browser's resident-key prompt for typed `BetterFetchError`s (unexpected errors rethrow); `derivePasskeyAccountId` accepts an optional `timeoutSecs` so apps can configure the serialized wallet-state timeout instead of the hardcoded 3600 default; the factory-address registry is typed exhaustively per network; and the inline CBOR reader is isolated behind a typed decoder module (`cbor.ts`). + +### Patch Changes + +- 7fd8b7e: Harden the passkey-wallet proof path. `decodeCborItem` throws `CBOR: truncated payload` on out-of-bounds reads instead of silently misdecoding past-the-end bytes as major-0/value-0 (`#1147`). The COSE algorithm→curve mapping now lives in one place — `coseCurve` (with `COSE_ALG_ES256`/`COSE_ALG_EDDSA`) exported from `better-near-auth/passkey` next to `parseCosePublicKey`, which uses the named constants; the browser client imports it and keeps zero crypto constants (`#1145`). `timeoutSecs` is now a required parameter on the private wallet-state/state-init serializers — only the public `derivePasskeyAccountId` keeps the 3600s default — and `verifyPasskeyNep413Signature` states its derivation defaults explicitly, because the timeout is baked into the state-init hash: deriving with any value other than the one the wallet was created with yields a different `0s…` account (`#1146`). +- e4c2362: Repository moved to everything-project/everything-dev: the publishable packages' repository/bugs/homepage metadata, the scaffolded child surface (issue links, AGENTS copy, consumer workflow `uses:` refs), and the platform image namespace default now point at the new location. + ## 2.0.0-rc.9 ### Patch Changes diff --git a/packages/better-near-auth/package.json b/packages/better-near-auth/package.json index 749b08425..5f8bde11f 100644 --- a/packages/better-near-auth/package.json +++ b/packages/better-near-auth/package.json @@ -1,6 +1,6 @@ { "name": "better-near-auth", - "version": "2.0.0-rc.9", + "version": "2.0.0-rc.10", "description": "Sign in with NEAR (SIWN) plugin for Better Auth", "main": "dist/index.js", "module": "dist/index.js", diff --git a/packages/better-near-auth/skills/auth-plugin/SKILL.md b/packages/better-near-auth/skills/auth-plugin/SKILL.md index e1ea36837..d6ad59d41 100644 --- a/packages/better-near-auth/skills/auth-plugin/SKILL.md +++ b/packages/better-near-auth/skills/auth-plugin/SKILL.md @@ -19,7 +19,7 @@ requires: metadata: type: composition library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:examples/auth.everything.dev/bos.config.json" - "elliotBraem/better-near-auth:examples/auth.everything.dev/plugins/auth/src/contract.ts" diff --git a/packages/better-near-auth/skills/client/SKILL.md b/packages/better-near-auth/skills/client/SKILL.md index a7ad9169d..2ada80726 100644 --- a/packages/better-near-auth/skills/client/SKILL.md +++ b/packages/better-near-auth/skills/client/SKILL.md @@ -12,7 +12,7 @@ description: > metadata: type: core library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:src/client.ts" - "elliotBraem/better-near-auth:src/types.ts" diff --git a/packages/better-near-auth/skills/relay/SKILL.md b/packages/better-near-auth/skills/relay/SKILL.md index 8d5843f1c..5845ccb7c 100644 --- a/packages/better-near-auth/skills/relay/SKILL.md +++ b/packages/better-near-auth/skills/relay/SKILL.md @@ -8,7 +8,7 @@ description: > metadata: type: core library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:src/index.ts" - "elliotBraem/better-near-auth:src/utils.ts" diff --git a/packages/better-near-auth/skills/siwn/SKILL.md b/packages/better-near-auth/skills/siwn/SKILL.md index 15e6d3bba..c1a44d21a 100644 --- a/packages/better-near-auth/skills/siwn/SKILL.md +++ b/packages/better-near-auth/skills/siwn/SKILL.md @@ -9,7 +9,7 @@ description: > metadata: type: core library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:src/index.ts" - "elliotBraem/better-near-auth:src/profile.ts" diff --git a/packages/better-near-auth/skills/subaccount/SKILL.md b/packages/better-near-auth/skills/subaccount/SKILL.md index ae25f74d0..ad15a15a9 100644 --- a/packages/better-near-auth/skills/subaccount/SKILL.md +++ b/packages/better-near-auth/skills/subaccount/SKILL.md @@ -11,7 +11,7 @@ description: > metadata: type: core library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:src/index.ts" - "elliotBraem/better-near-auth:src/types.ts" diff --git a/packages/better-near-auth/skills/tanstack/SKILL.md b/packages/better-near-auth/skills/tanstack/SKILL.md index 63752a745..c9df931e8 100644 --- a/packages/better-near-auth/skills/tanstack/SKILL.md +++ b/packages/better-near-auth/skills/tanstack/SKILL.md @@ -13,7 +13,7 @@ requires: metadata: type: framework library: better-near-auth - library_version: "2.0.0-rc.9" + library_version: "2.0.0-rc.10" sources: - "elliotBraem/better-near-auth:src/client.ts" - "elliotBraem/better-near-auth:examples/auth.everything.dev/ui/src/lib/auth.ts" diff --git a/packages/every-plugin/CHANGELOG.md b/packages/every-plugin/CHANGELOG.md index ac6872f55..a5a1ec434 100644 --- a/packages/every-plugin/CHANGELOG.md +++ b/packages/every-plugin/CHANGELOG.md @@ -1,5 +1,46 @@ # every-plugin +## 3.0.0-rc.20 + +### Minor Changes + +- 351196f: Route-claim declines become structured domain data, and "shadowed" retires to the logs. `constructTree` returns `declined` — `{owner, id, cause, detail}` records with causes `core-wins`, `mount-not-declared`, `parent-declined` (ADR 0010 decision #1's precedence outcomes) — and no longer logs internally: the host logs each decline from the record, keeping the legacy "core ui wins; shadowed route skipped" phrase on core-wins lines for upgrade-audit continuity, and the client hydration path drops its compose log noise entirely. The runtime map renames `shadowed`/`SHADOWED_ROUTES` to `declined`/`DECLINED_CLAIMS` with the same discriminated cause, emits `RUNTIME_EXTENDS` (extends chain minus this runtime's own config) and `RUNTIME_LOCKFILE` (pointer digest, locked release, serving drift), and types every emitted collection against the composition contract instead of the local `as const` values. RuntimeControl now reads the map: page owner (core when unclaimed), composed sources with digests and route counts, backends with composed plugin versions and contract hashes, content sources, declined claims, unresolved sources called out loudly, release + serving digest, repository and remote-manifest links. Vocabulary note: "shadowed" → "declined claim" per GLOSSARY.md; ADR 0010's prose annotated. #1136 slice 2 (ADR 0059 §3) and slice 3's token/lineage items. +- 0e61de9: Export the dev-generation contract as `every-plugin/dev-generation` (`DEV_GENERATION_FILENAME`, `DevGeneration`, `DevGenerationStatus`, `parseDevGeneration`) — the builder→consumer marker shape (`status: ready|building`, fingerprint, builtAt) is a cross-package contract and now has one owned home instead of a private module. +- c1eea9e: Dev shell slots (plan 069 phase 1): `startPluginDevServer` gains `shell?: boolean` — static dist + `/health` delivery with no plugin runtime, DB, or initialize. Opt-in per dev session via `BOS_DEV_SHELL` (`1`/`*`/comma-separated slot keys); unset keeps today's behavior byte-identical. +- 48b1883: The ui build now emits the CSS layer convention — `every-plugin build ui` injects the canonical `@layer properties, theme, base, components, plugins, utilities;` order statement and, for plugin ui sources, wraps the sheet's bare `tailwindcss/utilities` import in `layer(plugins.)` derived from the composition key. The four stylesheets (core, auth, ai, docs) drop their hand-copied preambles and hand-written layer wrappings; authored drift can no longer survive a build, and vendor css modules are never touched. Emitted CSS is byte-identical to the previous scheme. Closes #1118 (item 3); one #1136 slice-3 line. +- 9799571: Merge-review residue sweep (#1114 — #1099 #1100 #1101 #1106 #1108 #1109): + + - **Static slots tell the truth (every-plugin):** `startDirectModuleHost` gains `static?: boolean`; a static slot's `/` reports `status: "static"` instead of a permanent `"loading"`, and its RPC/API paths answer 501 with an explanation instead of an eternal 503 "Plugin still loading...". A static slot is a local backend dev slot serving the built dist + health only — no plugin runtime, DB, or initialize; the host executes the backend in-process. The concept renames plan 069's "shell slot" (env `BOS_DEV_SHELL` → `BOS_DEV_STATIC`): "shell" already means the CSR shell, the api shell, and the CLI shell; "static" is what the slot does. GLOSSARY gains the entry. + - **`BOS_DEV_STATIC` gate trims to one all-value (everything-dev):** `*` opts every local backend slot in; `1`/`true` are no longer synonyms (a child serve process keeps the internal `BOS_DEV_STATIC=1` handshake). The gate parses once per descriptor-map build and the `plugin:` key strip is one helper. + - **Dev-generation digest is consumed, not just written (every-plugin):** `waitForRemoteEntryReady` returns the ready generation's digest; after a load the marker is re-read and drift (the load raced a rebuild) warns. A transient marker failure (network, 5xx) retries the marker instead of permanently degrading to entry polling — only a 404 or a non-marker body means "no marker here". The marker's field is `digest` (the generation digest — hash over one build's emitted assets), retiring the pre-cutover "fingerprint" wording before it could spread. + - **The digest vocabulary cutover reaches the last live surfaces (everything-dev, host):** the dev-adopt plane renames `BackendDistFingerprint` → `BackendDistSample`, `fingerprintContentOf` → `distDigestOf`, `createBackendFingerprintSampler` → `createBackendDistSampler` (observation/served fields carry the sample); ui-compose's `variantFingerprint` becomes `variantCacheKey` — the name the digest module's species table already records; the agent skill doc reads "deployment digest". Every remaining mention of the retired word is history: ADRs, released changesets, the cutover record in `everything-dev/digest`, and biometric passkey copy. + - **The ast-grep codemod seam hardens (everything-dev):** `applySpanEdits` fails loud on overlapping spans instead of silently corrupting; the withZephyr matchers and the span-start comparator share one module; the retire-zephyr ternary docstring describes what actually matches. + - **`@ast-grep/napi` moves to the workspace catalog** (was direct-pinned in everything-dev). + - **One Standard Schema bridge (every-plugin, ADR 0060 decision 2):** the new `every-plugin/schema` export owns `orpcSchema(...)`; the per-plugin copies in registry and proposals are deleted. Tests pin the ast-grep UTF-16 offset contract, backtick route-path rehoming, and the shell-slot responses. + +- 7ea4a13: feat(dev): supervisor-owned SSR intent — always-emit node env for ui-local dev, ambient BOS_SSR retires (plan 078 phase 2). Dev sessions with local ui build the SSR container by default (`--no-ssr` opts out to web-only); the serving gate reads supervisor-set intent, so ambient shell BOS_SSR no longer flips dev rendering. Deploy builds unchanged. + +### Patch Changes + +- ef8325b: Fix #1259: a `bos dev` session double-opened the auth PGlite data dir — the zero-config seed (#1076) handed the auth workspace's absolute dir to every spawned unit and the host alike, so the auth dev child and the host's in-process auth slot both opened it and the kernel flock refused the second, stranding the session with auth permanently unavailable. The auth dev child now runs its runtime against a throwaway in-memory database while the host's in-process load is the session's sole opener of the real dir (ADR 0051: the child is the artifact server), and a new preflight opener check fails `bos dev` loud when any composition would put two live openers on one file-backed pglite dir — opener labels instead of a runtime driver error (ADR 0044 amendment). The ui build's rspack resolve now maps node-style `.js` specifiers onto TS sources (`extensionAlias`) in both the web and the SSR environments, mirroring the plugin backend build — with SSR intent the container resolved `better-near-auth` to its TS source and then failed on `Cannot find module './store.js'`, degrading boot SSR composition to a 503 on every route. +- 5c8191e: Dev generation-ready signal replaces remote-entry sniff-and-poll (#1067) + + Plugin dev-server builds now write a generation marker — `dev-generation.json` beside `remoteEntry.js`, `{ status: "ready" | "building", fingerprint, builtAt }` — flipped to `building` when a watch rebuild starts and to `ready` only after a successful compilation completes. The marker plugin is gated on `BOS_DEV_SERVER=1`; deploy/CDN builds never emit the file. + + The loader consults the marker for fixed-name `remoteEntry.js` targets: the entry is requested once the marker reports `ready` (no more blind ~300ms polling of the entry itself), with a fallback to the legacy entry poll when no marker is served (older framework serving sides, production/CDN targets). Production retry/backoff behavior is unchanged. + + The HTML body sniff (`isRemoteEntryBody`) is deleted — dev has a real readiness signal and production serves real 404s with byte verification. `purgeRemoteEntryCache` remains as belt-and-braces only: @module-federation/runtime ≥ 2.9.1 (we pin 2.9.4) auto-evicts rejected remote-entry promises upstream (mf#5006), so it survives as version-drift insurance for child runtimes pinning older MF. + +- af5d043: Dev watch builds run development mode: the rspack CLI presets `mode=production` before the generated config's env-following default can fire, so every dev-stack rebuild paid minification. The watch spawn now passes `--mode development` explicitly; the no-watch path (`BOS_NO_WATCH=1`, regression/CI) and the deploy train (`every-plugin build`) keep production output. Closes #1077. +- 84dbc56: Bump the Module Federation catalog pins: runtime/enhanced family 2.9.2 → 2.9.4, `@module-federation/node` 2.7.52 → 2.7.54. Notable since 2.9.2: webpack 5.112 peer support, and rejected remote-entry promises are auto-evicted from `globalLoading` (#5006 — that fix actually landed in the 2.9.1 line already). Host↔plugin shared-version agreement is unchanged; `bos mf check` remains the compatibility gate. +- c2a9506: Bump the Module Federation catalog pins: runtime/enhanced family 2.9.4 → 2.9.5, `@module-federation/node` 2.7.54 → 2.7.55. Notable since 2.9.4: layered remotes initialize with their declared share scopes (#5279), same-version shared modules are preserved across scopes (#5079), webpack/rspack layer support aligned (#5039), manifest stats collect from the compilation graph (#5080), and shared provider negotiation gains a concurrency test (#5312). Host↔plugin shared-version agreement is unchanged; `bos mf check` remains the compatibility gate. +- e4c2362: Repository moved to everything-project/everything-dev: the publishable packages' repository/bugs/homepage metadata, the scaffolded child surface (issue links, AGENTS copy, consumer workflow `uses:` refs), and the platform image namespace default now point at the new location. +- 61d3db1: fix(every-plugin): stale dev rspack cache after dependency upgrades (#677) + + The dev persistent cache now anchors on `pnpm-lock.yaml`, `pnpm-workspace.yaml` (the catalog), the workspace `package.json`, and the bos config — any `pnpm install` that moves resolved shared-dependency versions invalidates the cache instead of serving bundles built against the old set. Deploy builds stay cacheless. The `SharedIdentity` refusal message gains a dev-only hint naming `node_modules/.cache` and `bos dev` when the refusal fires under the dev server, so the failure no longer reads as a generic API outage. + +- f881e24: Contract layer accepts any Standard Schema v1 (ADR 0060, accepted by maintainer decision 2026-11-30): `createAuthMiddleware`'s `orgMetaSchema` takes any `StandardSchemaV1` — existing Zod contracts stay unchanged and inference is identical for Zod inputs — and the plugin dev server's OpenAPI spec registers the Effect Schema JSON-Schema converter so raw Effect Schema contracts no longer degrade to empty schemas. Forward contracts author against Standard Schema v1 directly (simplest form); the pilot migrates one proposals route input, and per-plugin migration continues per ADR 0050. + ## 3.0.0-rc.19 ### Major Changes diff --git a/packages/every-plugin/package.json b/packages/every-plugin/package.json index 1fd933edc..725e7294c 100644 --- a/packages/every-plugin/package.json +++ b/packages/every-plugin/package.json @@ -1,6 +1,6 @@ { "name": "every-plugin", - "version": "3.0.0-rc.19", + "version": "3.0.0-rc.20", "type": "module", "publishConfig": { "access": "public" diff --git a/packages/everything-dev/CHANGELOG.md b/packages/everything-dev/CHANGELOG.md index d2485f3d3..b20980b6d 100644 --- a/packages/everything-dev/CHANGELOG.md +++ b/packages/everything-dev/CHANGELOG.md @@ -1,5 +1,150 @@ # everything-dev +## 2.0.0-rc.48 + +### Minor Changes + +- 3307f05: The auth client gets one canonical name: `authClient` (exported from `everything-dev/ui/auth` and re-exported from `@/app`) — a page singleton on the browser, read in components via the unchanged `useAuthClient()` hook, which the router context carries (request-scoped on the server, the singleton on the client). `authClientFromContext` becomes framework-internal plumbing: router factories and the SSR pipeline mint through it, and it throws a named error on the server if an app calls `authClient()` there instead. +- 26a7825: Capability recipes — `bos capability add auth|i18n|docs` (ADR 0058 §2–3): a recipe composes the capability (auth/docs reuse the plugin add's extends-chain resolution and delta printer), verifies or scaffolds the authored-surface affordance (public sign-in button; language selector + the AppI18nProvider seam via the i18n-seam maintenance step), prints the declared secrets/env (`AUTH_DATABASE_URL` + social-provider client IDs; docs prints the ADR 0053 content-source reminder and the `content: "repository"` option), and names the intent skill to read next. Zero prompts — flags only, `--json` for machine output, idempotent re-runs report `capability.unchanged … reason=already-in-place` and change nothing. Ship intent skills `everything-dev#capability-auth` and `everything-dev#i18n`. Also fixes `expressChainEntry` to carry the `ui` attachment through composition (auth-ui travels with a composed `app.auth` entry as authored `{ name }`; pipeline-stamped ui fields re-merge from the targeted `bos://` ref at resolve). +- 351196f: Route-claim declines become structured domain data, and "shadowed" retires to the logs. `constructTree` returns `declined` — `{owner, id, cause, detail}` records with causes `core-wins`, `mount-not-declared`, `parent-declined` (ADR 0010 decision #1's precedence outcomes) — and no longer logs internally: the host logs each decline from the record, keeping the legacy "core ui wins; shadowed route skipped" phrase on core-wins lines for upgrade-audit continuity, and the client hydration path drops its compose log noise entirely. The runtime map renames `shadowed`/`SHADOWED_ROUTES` to `declined`/`DECLINED_CLAIMS` with the same discriminated cause, emits `RUNTIME_EXTENDS` (extends chain minus this runtime's own config) and `RUNTIME_LOCKFILE` (pointer digest, locked release, serving drift), and types every emitted collection against the composition contract instead of the local `as const` values. RuntimeControl now reads the map: page owner (core when unclaimed), composed sources with digests and route counts, backends with composed plugin versions and contract hashes, content sources, declined claims, unresolved sources called out loudly, release + serving digest, repository and remote-manifest links. Vocabulary note: "shadowed" → "declined claim" per GLOSSARY.md; ADR 0010's prose annotated. #1136 slice 2 (ADR 0059 §3) and slice 3's token/lineage items. +- 509328c: Delete the workspace-orchestrator seam: the `BOS_WORKSPACE_CHILD` env gate, the `workspace-parent`/`workspace-child` roles, and the reserved `bos dev --workspaces` surface are gone — never had a caller or an owner; operator decision recorded in #352. `role` is dropped from the pid-registry entry shape and the `bos ps` contract (`ProcessRoleSchema`/`ProcessRole` removed); reads stay tolerant of old registry files that still carry a `role` field. +- 0e61de9: The dev adopt loop arms from the builder's done-signal instead of the 3s settle window (#1103): the rspack watch builders (plugins and the api/auth host-path slots) already publish `dist/dev-generation.json` (`status: ready|building`), so a content change under a ready marker adopts immediately — cutting settle's fixed 3s from the edit→serving loop — while a building marker defers until the flip's own fs.watch event wakes the next tick. A pre-commit re-verify re-samples the slot and defers when the signal flipped building (or the content moved on) between the tick's sample and the commit, so a rebuild that races the adopt still never serves a half-written generation. Slots whose builder publishes no marker keep the settle heuristic unchanged. New exports on `everything-dev/dev-adopt`: `DevBuildSignal`, `readDevBuildSignal`; `AdoptObservation` gains optional `buildReady`. +- 5ff3bd2: Repository-scoped docs content (ADR 0054 §4 + the sequenced-next deploy-train content leg, #1025): a composing runtime can declare `content: "repository"` on a remote plugin entry (e.g. the docs plugin) and its own checkout's markdown corpus — the `docs/` tree, `GLOSSARY.md`, and `plugins/*/docs/**` under ADR 0053's conventions — compiles during its own deploy, uploads as a content-addressed artifact under the plugin's bundle slot, and the artifact URL is wired into the plugin's `sources` variable. The plugin bundle itself stays inherited; compiling requires velite in the composing repository's devDependencies (fail-loud guidance when missing), and any compile/upload failure fails the deploy at build time, never the runtime boot. +- e4c2362: Framework-home identity single-sourcing (#1256): the release record stamps `frameworkHome` from the publishing environment, and the platform image ref, upstream issue URLs, FRAMEWORK-OWNED headers, and scaffolded AGENTS copy all derive from it (constant fallback for pre-field records). Authored `repository` now defaults from the repo-root package.json when absent, and `bos init` stamps the child's own package.json instead of claiming the framework home. +- 449a62b: Hosting stages — the runtime deployment concept, on the Fly substrate (plan 078, re-entry of plan 032; #1010 amendment vocabulary): + + - **One concept: a stage.** Every runtime deployment — the platform's own app, a dedicated tenant, a future preview — is a stage of a runtime's stack; the hosting adapter materializes stages (Docker in dev/CI, Fly in production) and the reconciler converges each watched runtime's stage to its published pointer. `RuntimeDescriptor.instance` → `RuntimeDescriptor.stage`; `SiloTeardown` → `StageTeardown`. + - **Fly hosting substrate via `@alchemy.run/fly`** (catalog bumped to alchemy 2.0.0-beta.87): the fly adapter is an embedded alchemy stack — `Fly.App` + `Fly.Machine` running the universal image env-only with `deploy: { strategy: "bluegreen" }` (new machine healthy before the old retires). Observe/restart/stop go through the typed Machines-API client (`@distilled.cloud/fly-io`); teardown goes through alchemy `Destroy` so the state ledger stays truthful. The reconciler selects the substrate via `hosting.reconciler.substrate` ("docker" | "fly"); credentials resolve from `FLY_API_TOKEN` (env or alchemy profile), the org from the token. + - **`bos stage deploy/status/stop/destroy`** — operate a runtime stage explicitly: `bos stage deploy --account --gateway --image --substrate fly`. Deploys generate a per-stage `BETTER_AUTH_SECRET` when none is supplied (printed once); the reconciler path delivers vault rows via `withSecrets`. + - **Node bindings contract (#1046 slice)** — a `nodes` table in the api shell (a node is a binding row plus a published config), the self-gated `GET /api/tenants/bindings` the host resolver consumes (gated by `BOS_STAGE_ROUTING`-independent `BOS_TENANTS_TOKEN` when set), and `POST /api/nodes` + `/api/nodes/remove` (session/API-key gated; role and ownership hardening is #1120's surface). + - **Host: longest-suffix binding lookup** — `.` hostnames resolve against the nearest bound ancestor suffix, and bindings may carry `tenancy: "dedicated"` with `hostingApp`/`hostingUrl`. + - **Host: stage routing** — dedicated tenancy hands the request to the tenant's own stage through the substrate (`fly-replay` when the host runs on Fly, a 302 to the stage URL otherwise; `BOS_STAGE_ROUTING` overrides, default auto). The host never proxies request bodies. Shared tenancy still contributes browser code only — a dedicated binding short-circuits before any tenant server config is loaded on the shared host. + +- 14318f9: `bos init` writes declared maps and spawn output prints the composition (ADR 0057 rule 3, #1021). Every init path now authors the child's `plugins` map explicitly — `--level simple` writes an empty declared map (a pure static shell composes nothing beyond app-level inheritance), `--level advanced` copies the parent's starter set (`ai`, `docs`, intersected with what the parent actually declares), and the new `--compose ` flag names the exact set when given, replacing the level default. Entries the child does not own locally are written as targeted `bos://#plugins.` refs — the same authored shape `bos upgrade`'s composition migration writes — so init-written maps and upgrade-migrated maps stay consistent; owned plugin workspaces keep their `local:` development form. Interactive init asks which plugins to compose at every level (pre-checked per the level default, not only under `--overrides plugins`), and `--no-interactive` keeps working with the level default deciding. Init fails loud when `--compose` names a plugin the parent does not declare. + + Spawn output prints the composition: the app-level slots inherited through `extends` (core, host, ui, api, auth), each declared plugin with how it resolves (local workspace or parent extends ref), the mounts it claims, and the secret names it declares — so the operator knows what they will be asked for before first boot. The result carries the same summary as structured data (`composition` on the init result), and the serialized `bos.app.ts` keeps an explicit empty `plugins: {}` for simple children, so "declares exactly what it composes" holds by inspection. + +- d795a5f: The framework auth client remaps the better-auth organization endpoints the auth plugin disabled server-side, so stock client calls keep working on rc.22+ children: `authClient.organization.listMembers(...)` now routes to the permission-filtered plugin route (`GET /v1/auth/members`, member emails filtered by the org's email:read permission instead of a bare 403), and `authClient.organization.listOrganizations(...)` routes to `GET /v1/auth/organizations`. Direct-argument calls (POST bodies) are folded into the GET query. Also ships `organizationMembersQueryOptions(authClient, organizationId)` — a TanStack Query factory beside `sessionQueryOptions` — so children don't hand-roll the call. Fixes the silent member-role loss (#632) that turned owner-gated child UIs into "Community not found" from rc.22 through rc.24. +- 8e77f26: `bos plugin add ` now resolves from the resolved extends chain (ADR 0058 §1, composition policy per ADR 0057): with no `--source`, the key resolves outward — child config first, then each ancestor, nearest declaring runtime wins — and writes the parent's entry as a targeted `bos://#plugins.` extends ref (the same shape the `bos upgrade` composition migration writes), carrying the declaring entry's child-relevant fields (variables/secrets/contract/content/routes) while deploy pipeline state stays re-targeted and `development` remains the child's own override. Explicit `--source` still wins for third-party plugins. `bos plugin remove ` writes the explicit app-level `auth: null` omit for the app-level plugin (auth) and deletes the declaration for `plugins.` keys — an explicitly emptied map stays `plugins: {}` so "declares exactly what it composes" remains honest. Both commands regenerate types (failing loud before claiming success if generation cannot run), are idempotent (`already-composed` / `not-composed`, exit 0), and print a machine-parsable composition delta line — `plugin.added key= scope= mounts= secrets= ref= skill=` — also available as a structured `delta` on the command result; secret names only, never values. The remove-path stale "inherited from the parent runtime" refusal is gone: removal is expressible everywhere (declared maps are complete post-#1020, and `auth: null` is the authorable app-level omit). +- 4c8c1b8: The plugin composition policy is enforced (ADR 0057, #1020 + #1022): a runtime's `plugins` map is its composition — entries compose only when declared, and `extends` never contributes plugin entries across the map. A child that declares no map composes zero declared plugins; declaring any map replaces the whole set (child entries verbatim, no parent fill); `null` omits inside a declared map; app-level composition (`app.auth`) still flows through ordinary app-section inheritance with `auth: null` as the omit escape. Chain order never resurrects an omission — tested at merge level and through live resolution across the full grandparent→parent→child matrix. + + `bos upgrade` migrates one time: children whose authored config declares no `plugins` map get their pre-policy inherited entries written into `bos.app.ts` (deployed entries as targeted `bos://…#plugins.` refs to the declaring runtime, pipeline state stripped, child-authored fields kept), with a printed notice naming ADR 0057 and the delete-to-slim escape hatch — today's compositions survive the cutover byte-for-byte. `bos upgrade --check` surfaces the pending migration without running it. Re-runs are no-ops; the migration only fires when the authored config lacks an explicit map and the chain would change composition. + +- fe824b2: Forced-remote sources resolve production URLs from the published config + + `bos dev --ui remote`, `--api remote`, `--host remote`, and `--remote-plugins` now read absent production URLs from the runtime's own published config (`bos:///`) before giving up — the same pipeline state a pinned child inherits frozen through its release composition, read live from the pointer the authored config itself declares. Authored fields still win; unforced boots never touch the registry. + + Two behavior changes fall out of the same seam: + + - A forced-remote source with no production URL anywhere (authored or published) now fails loud at resolution with the consulted ref named, instead of silently dropping the plugin or building an empty-URL remote that dies later in artifact generation with a relative-URL `TypeError`. + - The nightly backcompat plane consumes the root runtime's published UI, API, and template bundles from source — the mode works again (it has been red since it shipped) and the registry sentinel runs from source via the development condition instead of failing on a never-built dist. + +- 0046def: Retire the `db-topology` patch step from `bos upgrade --from v1` (#1066): the api db-layer template has emitted `namespace: false` (public-schema topology) since the template fix landed, so the regex-patch that re-spliced the api onto public after every upgrade is obsolete — it stays deleted, along with the `biome-ignore noTemplateCurlyInString` hack its source-splicing required and the stale `pnpm db-topology` pointer (no such script exists). The `checkDbTopology` audit check remains as the verify: trees still carrying the v1-era `plugin_api` layer get a warn finding with the real remediation (replace the layer with the current scaffold form). The `upgrade.maintain` contract enum drops `db-topology` — children pin the framework version they ship with, so no cross-version caller exists. +- 5a0c15a: The generated runtime map now carries lineage and deployment provenance for the RuntimeControl: `ui/src/lib/runtime-map.gen.ts` emits `RUNTIME_EXTENDS` (the extends chain minus this runtime's own config — null for a root runtime; absolute config paths never enter the public surface) and `RUNTIME_LOCKFILE` (the committed lockfile's pointer digest, locked release, and serving drift, typed as `RuntimeLockfileProvenance`). All emitted collections (sources, backends, routes, mounts, content sources, shadowed, unresolved) are now typed against their composition contract instead of the local `as const` values, so consumers compile against remote-capable shapes even in a local-only workspace. RuntimeControl reads the runtime map: page owner (core when unclaimed — it never guesses), composed sources with kind/availability/digests/route counts, backends with composed plugin versions and contract hashes, content sources, shadowed claims, unresolved sources called out loudly, release + serving digest, repository and remote-manifest links. Plan 073 §3 item for #1136. +- d26cf62: Runtime map records plugin origin — the placement taxonomy becomes inspectable (ADR 0057) + + Plugin records in the runtime map (`sources` and `backends` in `.bos/generated/runtime-map.json` and the typed `ui/src/lib/runtime-map.gen.ts`) carry `origin`: `"app"` for entries beside `host`/`ui`/`api` (the app-level `auth` slot — flows to children through ordinary app-section inheritance, exactly as `app.ui`/`app.api` do) and `"declared"` for entries in the `plugins` map (the declaring runtime's composition). Host, api, and the core ui are not plugins and carry no origin. The descriptor schema (`AppDescriptorSchema.auth`/`plugins` and the mirrored `BosConfigSchema` shapes) now states the placement rule — per ADR 0057 rule 1, placement is the taxonomy, no marker flag. This is the inspection surface; the merge enforcement (`extends` never contributing plugin entries across the map) ships alongside it — plugins maps never inherit across extends, with the `bos upgrade` migration preserving existing children's compositions (ADR 0057). Docs: the runtime-map guide gains an origin lookup, and the `extends-config` skill documents the placement taxonomy. + +- 224af79: New `everything-dev/ui/theme.css` subpath: the one `@theme inline` name-to-variable mapping the ui workspaces consume. The core sheet and the plugin sheets (auth, ai, docs) replace their hand-copied 74-line mapping blocks with a single import, so the mapping can no longer drift from the utilities it serves and inherits into new sheets with one line. Emitted CSS is byte-identical except one intended inheritance effect: `ease-out`/`ease-in-out` utilities in plugin sheets now resolve to the platform's easing curve (from the core theme) instead of Tailwind's default — three component sites affected (auth checkbox, docs nav-tree and docs-reader carets, ai chat). Plan 073 §5 item for #1136. +- 7ea4a13: feat(dev): supervisor-owned SSR intent — always-emit node env for ui-local dev, ambient BOS_SSR retires (plan 078 phase 2). Dev sessions with local ui build the SSR container by default (`--no-ssr` opts out to web-only); the serving gate reads supervisor-set intent, so ambient shell BOS_SSR no longer flips dev rendering. Deploy builds unchanged. +- 833afb3: Staleness doctor (plan 013 + #350): `checkEnvironmentStaleness` probes the workspace for the stale-state classes that keep biting — nested `node_modules` singleton shadowing (catalog-driven, symlink-aware) and stale framework dists fail `bos dev` preflight with remediation text; the stale `bos` binary, a drifted effect-tsgo patch (fix: `pnpm run prepare`), and a live sibling session sharing the tree (concurrent `bos types gen` race — now also a non-blocking prelude warning on `bos typecheck`) warn only. `bos status` gains a non-blocking staleness section. +- f3dfa4f: Subpath standardization (rc-stage, no aliases — same posture as the ADR 0040 wire cutover): every export path is now `domain/thing`, mirroring the `ui/*` and `hosting/*` families that already followed the rule. Renames — `dev-adopt` → `dev/adopt`, `dev-log-pipeline` → `dev/logs`, `integrity` → `deploy/integrity`, `version-manifest-resolve` → `deploy/version-manifest`, `dag` → `registry/dag`, `resolution` → `resolution/session`, `resolver` → `resolution/resolver` — hard removal, importers update at the upgrade (`bos upgrade` rewrites the one child-authored path, `everything-dev/integrity`, via the import-rewrite table). The dead `everything-dev/lockfile` subpath is removed outright: it never found an importer; the schema stays in-package (ADR 0042 amended). Nothing moves on disk — only export keys, the tsdown entry list loses the lockfile chunk, and the ADR prose naming the old paths is corrected (0002, 0003, 0027, 0040, 0042). + +### Patch Changes + +- 39abf80: upgrade-audit codemods begin migrating from regex/string surgery to structural matching (`@ast-grep/napi`): `port-route-guards` and `migrate-route-mounts` first — guard statements and `createFileRoute` path arguments are located as AST nodes and spliced by exact node spans, so formatting variations the literal replace missed now transform; behavior preserved for the shapes the regexes already matched, with the same fallback notes for unrecognized input. `retire-zephyr` joins: the `if (shouldDeploy) { … withZephyr … }` excision and the `shouldDeploy ? withZephyr(…) : base` default-export unwrap are now matched as AST nodes and spliced through the shared `span-edit` helper, while the import/declaration removals keep their usage re-scan guards. The migration finishes with the oxc-parser jobs: `prune.ts`'s import/barrel parsing and `migrate-ui-seam.ts`'s `createQueryClient` extraction are now AST-driven — dynamic imports keep their targets alive and type-only barrel re-export lines are never excised, exactly as the regexes behaved, while `extractCreateQueryClient` additionally lifts the arrow-declarator form the old regex missed. +- 388c507: The browser auth-client mint honors the first caller's context again (#1144): `authClientFromContext` on the browser seeds the singleton with the page's runtime config and CSP nonce (falling back to the page nonce) instead of minting bare from `window.__RUNTIME_CONFIG__` — under a nonce-based CSP the wallet connector's injected frame keeps its nonce, and an embed/test config override feeds the right `hostUrl`/SIWN recipient instead of throwing (config absent) or silently targeting the outer host's auth (config present-but-different). First caller wins; bare `authClient()` callers share the seeded singleton. +- 85285bc: The auth client is derived from context, never constructed ad hoc: a new `authClientFromContext` export in `everything-dev/ui/auth` is the single derivation every router mint site uses (client bootstrap, SSR router, route-head, hydration stream) — it reuses the client already on the context and constructs from runtime config only when the context carries none. The duplicated `?? createAuthClient(...)` fallbacks are gone; `@/app` re-exports the helper. Skills (`ui-integration`, `api-and-auth` — including a duplicated "Auth on the Client" block, `plugin-client`, better-near-auth `client`/`tanstack`) now teach the canonical path; standalone apps keep their direct-construction guidance. No behavior change: the minted clients are byte-identical in each plane. +- c097fb2: ui: `authClientFromContext` returns `undefined` instead of throwing when the runtime config carries no auth variables — the graceful degradation a runtime that omits the auth plugin needs (ADR 0057's `auth: null` omit). Router creation (client, server, hydrate) built the auth client unconditionally, so a ui-only child crashed on first render — `Missing auth runtime configuration` on the server, the same throw in the hydrate path on the client. No composed child ever hit it: every existing child inherited auth at app level. Found by the ejlbraem.com consumer receipt (#1026) — the first ui-only render. +- 045385b: Boot-metrics emitter: every dev and start session now writes `.bos/boot-metrics.json` at session-ready — mode, startedAt, ssr, totalToReadyMs, the bootstrap and spawn phase timings, and per-service spawn/ready timings — the machine-readable boot record the Go timing harness consumes, and `bos clean` removes it as regenerable state. +- 77793bc: The pid registry (pids.json) serializes its read-modify-write mutations on an exclusive kernel flock: concurrent `bos dev` sessions no longer drop each other's registry entries (a lost entry is an orphaned process tree no tool can find or kill), and the shared temporary write path can no longer interleave between writers. The registry lock waits ~250ms under contention and then degrades to an unlocked write with a warning, so a stuck lock never wedges `bos`. +- 0afbe42: feat(build-train): the content-hash staleness oracle judges all prerequisite builds (#1176) + + Non-deploy `bos build` trains and dev boot's `ensureFreshDeps` stop judging prerequisites by mtime — the mtime oracle's blind spot (content changed under fresh mtimes, e.g. fresh checkouts) is judged correctly now, and all three verbs (dev, build, deploy) share one verdict per workspace state. The mtime oracle remains the fallback where no workspace root resolves. Recorded in the ADR 0022 addendum; implementation of its decision (1). + +- f83dd1f: feat(platform): per-dep compat windows on release manifests (plan 079 phase 2) (#586) + + `sharedDeps..compat` lets a release express what it tolerates per dependency — `checkPlatformCompat` enforces the window where present and falls back to the global floor otherwise; strict singletons and the federation pluginVersion gate are untouched. Range pins are now floor-aware in production: resolution skips candidates whose own compat floor exceeds the child's framework version. + +- ef8325b: Fix #1259: a `bos dev` session double-opened the auth PGlite data dir — the zero-config seed (#1076) handed the auth workspace's absolute dir to every spawned unit and the host alike, so the auth dev child and the host's in-process auth slot both opened it and the kernel flock refused the second, stranding the session with auth permanently unavailable. The auth dev child now runs its runtime against a throwaway in-memory database while the host's in-process load is the session's sole opener of the real dir (ADR 0051: the child is the artifact server), and a new preflight opener check fails `bos dev` loud when any composition would put two live openers on one file-backed pglite dir — opener labels instead of a runtime driver error (ADR 0044 amendment). The ui build's rspack resolve now maps node-style `.js` specifiers onto TS sources (`extensionAlias`) in both the web and the SSR environments, mirroring the plugin backend build — with SSR intent the container resolved `better-near-auth` to its TS source and then failed on `Cannot find module './store.js'`, degrading boot SSR composition to a 503 on every route. +- c1eea9e: Dev shell slots (plan 069 phase 1): `startPluginDevServer` gains `shell?: boolean` — static dist + `/health` delivery with no plugin runtime, DB, or initialize. Opt-in per dev session via `BOS_DEV_SHELL` (`1`/`*`/comma-separated slot keys); unset keeps today's behavior byte-identical. +- 4f71bbb: fix(deploy): a first-release smoke rollback no longer leaves the platform pointer pointing at a release whose deploy failed. When no snapshot precedes the failed release, the rollback republishes it stamped `rolledBackFrom` (defeating the identical-config skip) and deletes `manifest.json` in the same atomic write via the FastKV null tombstone; the deploy audit entry records `firstReleaseRollback`. `bos rollback`/`bos promote` stay restore-only. +- 9799571: Merge-review residue sweep (#1114 — #1099 #1100 #1101 #1106 #1108 #1109): + + - **Static slots tell the truth (every-plugin):** `startDirectModuleHost` gains `static?: boolean`; a static slot's `/` reports `status: "static"` instead of a permanent `"loading"`, and its RPC/API paths answer 501 with an explanation instead of an eternal 503 "Plugin still loading...". A static slot is a local backend dev slot serving the built dist + health only — no plugin runtime, DB, or initialize; the host executes the backend in-process. The concept renames plan 069's "shell slot" (env `BOS_DEV_SHELL` → `BOS_DEV_STATIC`): "shell" already means the CSR shell, the api shell, and the CLI shell; "static" is what the slot does. GLOSSARY gains the entry. + - **`BOS_DEV_STATIC` gate trims to one all-value (everything-dev):** `*` opts every local backend slot in; `1`/`true` are no longer synonyms (a child serve process keeps the internal `BOS_DEV_STATIC=1` handshake). The gate parses once per descriptor-map build and the `plugin:` key strip is one helper. + - **Dev-generation digest is consumed, not just written (every-plugin):** `waitForRemoteEntryReady` returns the ready generation's digest; after a load the marker is re-read and drift (the load raced a rebuild) warns. A transient marker failure (network, 5xx) retries the marker instead of permanently degrading to entry polling — only a 404 or a non-marker body means "no marker here". The marker's field is `digest` (the generation digest — hash over one build's emitted assets), retiring the pre-cutover "fingerprint" wording before it could spread. + - **The digest vocabulary cutover reaches the last live surfaces (everything-dev, host):** the dev-adopt plane renames `BackendDistFingerprint` → `BackendDistSample`, `fingerprintContentOf` → `distDigestOf`, `createBackendFingerprintSampler` → `createBackendDistSampler` (observation/served fields carry the sample); ui-compose's `variantFingerprint` becomes `variantCacheKey` — the name the digest module's species table already records; the agent skill doc reads "deployment digest". Every remaining mention of the retired word is history: ADRs, released changesets, the cutover record in `everything-dev/digest`, and biometric passkey copy. + - **The ast-grep codemod seam hardens (everything-dev):** `applySpanEdits` fails loud on overlapping spans instead of silently corrupting; the withZephyr matchers and the span-start comparator share one module; the retire-zephyr ternary docstring describes what actually matches. + - **`@ast-grep/napi` moves to the workspace catalog** (was direct-pinned in everything-dev). + - **One Standard Schema bridge (every-plugin, ADR 0060 decision 2):** the new `every-plugin/schema` export owns `orpcSchema(...)`; the per-plugin copies in registry and proposals are deleted. Tests pin the ast-grep UTF-16 offset contract, backtick route-path rehoming, and the shell-slot responses. + +- 84dbc56: Bump the Module Federation catalog pins: runtime/enhanced family 2.9.2 → 2.9.4, `@module-federation/node` 2.7.52 → 2.7.54. Notable since 2.9.2: webpack 5.112 peer support, and rejected remote-entry promises are auto-evicted from `globalLoading` (#5006 — that fix actually landed in the 2.9.1 line already). Host↔plugin shared-version agreement is unchanged; `bos mf check` remains the compatibility gate. +- c2a9506: Bump the Module Federation catalog pins: runtime/enhanced family 2.9.4 → 2.9.5, `@module-federation/node` 2.7.54 → 2.7.55. Notable since 2.9.4: layered remotes initialize with their declared share scopes (#5279), same-version shared modules are preserved across scopes (#5079), webpack/rspack layer support aligned (#5039), manifest stats collect from the compilation graph (#5080), and shared provider negotiation gains a concurrency test (#5312). Host↔plugin shared-version agreement is unchanged; `bos mf check` remains the compatibility gate. +- 7fd8b7e: Harden the organization endpoint remap plugin (`orgEndpointRemapPlugin`): a remapped POST whose body cannot be parsed into an args object (invalid JSON, non-object, `null`) now fails loud with a clear error instead of silently forwarding a body-less POST to a GET-only route; folding into the query accepts only `string | number | boolean` arguments — anything else errors instead of being mangled by `String()` (`[object Object]`, `1,2`); and a relative URL (client minted without a `hostUrl`) is skipped instead of crashing on `new URL()`. `organizationMembersQueryKey` is reshaped to the standard `["organization-members"]` tuple form, and the `api-and-auth` skill mentions `organizationMembersQueryOptions`. +- b180fc8: PGlite data dirs now take a cross-process lockfile: a second process opening a held dir fails loud — with the holder's pid, host and acquisition time — instead of corrupting it (the corruption path upstream pglite leaves open, electric-sql/pglite#1106). Stale locks left by dead processes are stolen automatically on take. +- 5020d71: `bos db studio`/`db` drizzle-kit sessions no longer bypass the PGlite cross-process lock: `pglite:` bindings run the drizzle-kit child under the same data-dir lockfile the runtime driver takes (issue #1112), so a session against a dir a live dev stack holds open fails loud with the holder's identity instead of corrupting committed data. Lock holder records gain a boot id — a holder from a previous OS boot reads as dead even when a recycled pid looks live — and the seed phase's comments/wording now describe the shipped lock instead of the old no-lock reality. The lockfile test suite gains the real two-process repro (a child process attempting an actual open against a parent-held dir is refused). Upstream NodeFS data-dir locking (electric-sql/pglite#892) is tracked for adoption when it ships. +- 28cc92f: feat(platform): caret- and tilde-tolerant platform pins (manifest resolution v2, phase 1) (#586) + + `release:` accepts exact, `^`, and `~` pins. Range pins resolve deterministically to the highest published release in the window that clears the release's own compat floor — exact pins keep today's byte-identical slot-first path; an empty window fails loud listing the candidates seen; the offline cache never satisfies a range miss. Strict singletons, SharedIdentity, and the mf check gate are untouched. Phase 1 of plan 079; per-dep compat windows and drift-alarm semantics follow. + +- d2979d1: feat(upgrade): drift-alarm semantics for range pins (plan 079 phase 3) (#586) + + `bos upgrade --check` reports a range pin as behind when a newer published release satisfies the window and clears the compat floors, naming the upgrade target; latest-in-window is clean. Exact pins unchanged. Records: ADR 0034 amendment (the no-ranges invariant is superseded — grammar, precedence, and what this does and does not flex) and the publishing-chapter guidance for children tracking release lines. + +- 2a5248b: Child workflow wrappers are stamped with the release-pinned ref (`v`) at init and rewritten by upgrade; `@main` references no longer ship in generated children. + + `bos init` now runs the same release-pin rewrite the template sync builds into its content over the copied `.github/workflows/*.yml` (ADR 0034 pt 4, ticket #1069), deriving the pin from the release tarball's resolved tag (or sha). A `--source` scaffold resolves no pin and keeps `@main` with a loud warning; `bos upgrade` re-points the refs in the same step that moves the authored release, so they never drift apart. + + `bos upgrade --check` now asserts the stamped refs locally against the authored release pin (no release tarball pull): drift (`@main`, an older tag, a hand edit) flags the dry-run report's notes and `workflowRefDrift` field and exits nonzero; a `--source` scaffold without a resolved pin stays a documented non-drift posture, and the fix remains the upgrade re-stamp. + +- 76e46d9: feat(build-train): opt-in remote content-addressed build cache (#484) + + When `BOS_BUILD_CACHE_REMOTE=1` (+ the deploy storage credentials), the train publishes each member's dist keyed by its input hash after a build and restores it on a cold local cache — restoring only ever marks a member fresh after the recorded per-file hashes verify. Upload or restore failures are non-fatal; the default (env unset) stays local-only. + +- e4c2362: Repository moved to everything-project/everything-dev: the publishable packages' repository/bugs/homepage metadata, the scaffolded child surface (issue links, AGENTS copy, consumer workflow `uses:` refs), and the platform image namespace default now point at the new location. +- b541c18: runtime-map: the generated `RuntimeBackendEntry` interface now declares `pluginManifestUrl` and `integrity`, which the generator already wrote into remote backend entries. The emission skew red every spawned child's typecheck — `tsc` rejected the child's own `runtime-map.gen.ts` object literals as unknown properties the moment it composed any remote backend (host/api from the extends chain), so every `--overrides ui` child failed `pnpm run typecheck` on first run. Found by the ejlbraem.com consumer receipt (#1026). +- dc270b7: Session reads get one shared source in the framework: `useSession()` (the `["session"]` query via `sessionQueryOptions`) and `useSessionPending()` (its pending state) are exported from `everything-dev/ui/auth` and re-exported through `@/app`, and the core UI surfaces (`_public` layout, dashboard, `use-identity`) stop hand-rolling `useQuery(sessionQueryOptions(...))` and their own pending derivations. TanStack dedupes the shared key, so every component read participates in the same fetch; consumers of both session systems read the same `SessionData`. The plugin-UI surfaces migrate to the helpers in a follow-up; the cross-system dedupe (better-auth's session atom vs the query cache) and the server-side `session.cookieCache` flip stay open on #1037 — both change freshness semantics that need a deliberate call. +- 78ad3ff: intent validate typechecks everything-dev skill snippets — a top-level `types` entry exposes the package surface, and the skills' snippets were brought up to the current plugin API (Layer-returning `initialize`, no `shutdown`, Tag-based service access) with excerpt-only blocks excluded from checking +- b7d078f: Expose `scrollToTopSelectors` on the app-owned router factory options so apps can declare extra scroll-reset targets (e.g. a dashboard shell's internal scroller) while scroll restoration stays enabled. +- 9601bbb: feat(dev): SSR on by default for ui-local dev sessions (plan 078 phase 3) (#472) + + Dev sessions with local ui render through SSR without a flag; remote ui sessions keep the CSR shell with a startup notice (production does the same for unpinned remotes). `--no-ssr` opts a local session out to web-only build + CSR shell; `--ssr` is a compat no-op. Measured per-keystroke cost of the always-node-env build: +0.59s median (tolerance <1s). Serving gate reads supervisor-owned intent; ambient `BOS_SSR` is inert (phase 2). + +- 531c50d: feat(ssr): tenant SSR collapses to pin presence + policy; the loader never loads an unverified SSR entry (plan 078 phases 4-5) + + `allowSsr` is pure policy — capability travels with the artifact (a verified SSR pin in the effective config). `loadRouterModule` refuses a source whose SSR entry lacks an integrity digest instead of silently skipping verification. Records: new ADR for the SSR pin design; book updated. + +- f881e24: Contract layer accepts any Standard Schema v1 (ADR 0060, accepted by maintainer decision 2026-11-30): `createAuthMiddleware`'s `orgMetaSchema` takes any `StandardSchemaV1` — existing Zod contracts stay unchanged and inference is identical for Zod inputs — and the plugin dev server's OpenAPI spec registers the Effect Schema JSON-Schema converter so raw Effect Schema contracts no longer degrade to empty schemas. Forward contracts author against Standard Schema v1 directly (simplest form); the pilot migrates one proposals route input, and per-plugin migration continues per ADR 0050. +- 1a0d569: The PGlite cross-process data-dir lock is now a kernel flock (via fd-lock) instead of the hand-rolled create/pid-check/rename-steal protocol: a second opener still fails loud with the holder's identity, a dead holder's lock is released by the OS so the dir is immediately re-takable, and the steal window that could double-hold a dir (found by the formal model, issue #1180) is gone. The lock file is now a permanent rendezvous inode and is no longer removed on release. Holder records remain for the refusal message only. +- bd4508d: feat(build-train): per-member input manifests replace whole-tree hashing (#480) + + The content-hash staleness oracle now hashes only declared inputs — tsconfig-resolved sources, package.json, and the build configs the member consumes — instead of the entire workspace tree. Docs/test/changelog edits no longer force prerequisite rebuilds; generated `src/**/*.d.ts` strays stop invalidating; ambiguity resolves toward building. One-time cache miss on first run after upgrade (the selfHash scheme changed). + +- a659c51: Consolidate the upgrade train's eleven per-phase error classes into one parameterized `UpgradePhaseFailure` (`phase` is data; the `UpgradePhaseError` union and `isUpgradePhaseError` keep working). Deadline legs now abort their `AbortSignal` at the deadline — the install and approve legs terminate their execa child instead of leaving a hung `pnpm` running with live stdio pipes after `UpgradeDeadlineError` fires (issue #1113) — and the deadline message is now honest per phase: cancelled legs say the child was terminated, abandoned legs (reads / the blocking realign publish) say nothing was left half-applied. The upgrade handler's inline `"Unknown error"` fallback is unified with the shared `renderCause`. +- 50c79bb: The upgrade train's orchestration is Effect-native: each phase (resolve → packages → report → preflight → apply → install → migrate → sync → realign) is an `Effect.gen` pipeline failing through a typed `UpgradePhaseError` union that carries its phase, replacing the single `Effect.tryPromise` body. The network legs (registry resolve, parent-plugin listing, pnpm install/approve, owned-slot realign) run under fiber deadlines, so a hung leg now fails with a remediation message instead of hanging the train forever. Handler behavior, result shapes, phase timings, and every CLI message are unchanged. +- 368f909: `bos upgrade --from v1` stops destroying three kinds of authored config: api `variables` now survive the descriptor translation (the `BosConfig` surface carried the field for plugins but not for `app.api`, so a v1 config's api variables vanished), the `port-route-guards` maintenance step skips and flags custom `_authenticated`/`_admin` bodies instead of rewriting them whole (the inline-resolution pattern still rewrites), and the local router-client shim is opt-in behind `--ui-seam-shim` with a loud note when skipped — moving off the shim stays manual by design, so scaffolding it for every migrated app no longer forks the seam silently. The v1-upgrade integration suite covers all three (#1040). +- 00a57a7: Dev session: unit children are recorded in the pid registry as they start, not once at boot — dev-adopt swaps and crash-restart replacements were invisible to startup adoption and `bos kill`, so a session killed after a swap left its replacement child and watchers alive holding ports, untracked. Closing the terminal (SIGHUP) now tears the stack down gracefully instead of bypassing finalizers. +- Updated dependencies [aa01654] +- Updated dependencies [351196f] +- Updated dependencies [ef8325b] +- Updated dependencies [0e61de9] +- Updated dependencies [5c8191e] +- Updated dependencies [c1eea9e] +- Updated dependencies [af5d043] +- Updated dependencies [48b1883] +- Updated dependencies [9799571] +- Updated dependencies [84dbc56] +- Updated dependencies [c2a9506] +- Updated dependencies [aa14f75] +- Updated dependencies [7fd8b7e] +- Updated dependencies [e4c2362] +- Updated dependencies [7ea4a13] +- Updated dependencies [61d3db1] +- Updated dependencies [f881e24] + - better-near-auth@2.0.0-rc.10 + - every-plugin@3.0.0-rc.20 + ## 2.0.0-rc.47 ### Major Changes diff --git a/packages/everything-dev/package.json b/packages/everything-dev/package.json index 5b0c82558..6e8f82f79 100644 --- a/packages/everything-dev/package.json +++ b/packages/everything-dev/package.json @@ -1,6 +1,6 @@ { "name": "everything-dev", - "version": "2.0.0-rc.47", + "version": "2.0.0-rc.48", "type": "module", "engines": { "node": ">=20.11" diff --git a/packages/everything-dev/src/services/scaffold/upgrade-audit/steps/v2-catalog.ts b/packages/everything-dev/src/services/scaffold/upgrade-audit/steps/v2-catalog.ts index b5ea60803..f9461ed76 100644 --- a/packages/everything-dev/src/services/scaffold/upgrade-audit/steps/v2-catalog.ts +++ b/packages/everything-dev/src/services/scaffold/upgrade-audit/steps/v2-catalog.ts @@ -72,12 +72,12 @@ export const V2_CATALOG: Readonly> = { alchemy: "2.0.0-beta.87", aws4fetch: "^1.0.20", "better-auth": "1.7.28", - "better-near-auth": "^2.0.0-rc.9", + "better-near-auth": "^2.0.0-rc.10", "drizzle-kit": "^0.31.11", "drizzle-orm": "^0.45.4", effect: "4.1.4", - "every-plugin": "^3.0.0-rc.19", - "everything-dev": "^2.0.0-rc.47", + "every-plugin": "^3.0.0-rc.20", + "everything-dev": "^2.0.0-rc.48", "near-kit": "^0.20.2", pg: "^8.12.0", react: "19.3.1", diff --git a/plugins/deployments/package.json b/plugins/deployments/package.json index e96137bdf..a7d54aa75 100644 --- a/plugins/deployments/package.json +++ b/plugins/deployments/package.json @@ -1,7 +1,7 @@ { "name": "@everything-dev/deployments-plugin", "version": "0.1.0", - "description": "The deployment plane \u2014 stage orchestration, domain mapping, and the deployment console (ADR 0035/0062)", + "description": "The deployment plane — stage orchestration, domain mapping, and the deployment console (ADR 0035/0062)", "type": "module", "exports": { ".": { diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 78ff5b7fe..d3cf21c08 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -7,17 +7,17 @@ packages: - apps/* - "!apps/ejlbraem.com" catalog: - "@alchemy.run/docker": 2.0.0-beta.87 - "@alchemy.run/fly": 2.0.0-beta.87 "@alchemy.run/acme": 2.0.0-beta.87 "@alchemy.run/cloudflare": 2.0.0-beta.87 + "@alchemy.run/docker": 2.0.0-beta.87 + "@alchemy.run/fly": 2.0.0-beta.87 "@alchemy.run/neon": 2.0.0-beta.87 - "@distilled.cloud/fly-io": 1.0.0-rc.20 "@ast-grep/napi": 0.51.3 "@better-auth/api-key": 1.7.28 "@better-auth/core": 1.7.28 "@better-auth/passkey": 1.7.28 "@better-fetch/fetch": 1.3.3 + "@distilled.cloud/fly-io": 1.0.0-rc.20 "@effect/platform-node": 4.1.4 "@effect/platform-node-shared": 4.1.4 "@electric-sql/pglite": ^0.6.1 @@ -76,12 +76,12 @@ catalog: alchemy: 2.0.0-beta.87 aws4fetch: ^1.0.20 better-auth: 1.7.28 - better-near-auth: ^2.0.0-rc.9 + better-near-auth: ^2.0.0-rc.10 drizzle-kit: ^0.31.11 drizzle-orm: ^0.45.4 effect: 4.1.4 - every-plugin: ^3.0.0-rc.19 - everything-dev: ^2.0.0-rc.47 + every-plugin: ^3.0.0-rc.20 + everything-dev: ^2.0.0-rc.48 near-kit: ^0.20.2 pg: ^8.12.0 react: 19.3.1