Repository navigation
docs(blocks, core, bb-kv-store, create-blocks-app): findable docs, a shipped-code-sample guard, an imports reference and API reports - #1498
Merged
Conversation
🦋 Changeset detectedLatest commit: 646f01c The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
xyos
force-pushed
the
docs/findability-and-drift
branch
3 times, most recently
from
November 13, 2026 20:32
f4b6ce3 to
207bf42
Compare
xyos
marked this pull request as ready for review
November 13, 2026 20:36
2 of 3 tasks
xyos
force-pushed
the
docs/findability-and-drift
branch
from
November 13, 2026 22:17
207bf42 to
ef4a595
Compare
2 of 3 tasks
3 tasks done
xyos
force-pushed
the
docs/findability-and-drift
branch
2 times, most recently
from
November 17, 2026 17:26
86fd2ab to
41cbc86
Compare
…s findable The KVStore README documented compare-and-swap and optimistic locking without saying a conditional write is atomic or that there is no transaction across items; both are now stated in "Conditional writes", checked against the AWS runtime (one conditional PutItem/DeleteItem) and the mock (no await between the check and the write). The withAuth section names next/headers' cookies() and the Nuxt Nitro context that its built-in providers read. The guide's Reference lists the @aws-blocks/blocks/utils test helpers, previously documented only in an unshipped README. TROUBLESHOOTING.md covers the dev server's 502 "Frontend server unavailable" and the related startup, second-server, port and request messages (403 Host / cross-origin, 404 method, 415 content type), each traced to dev-server.ts, dev-pidfile.ts and cli/config.ts. Validation: npm run build; packages/blocks readme-links + docs-pointers tests pass.
… the client import rule
The FileBucket access-control examples still built `new AuthBasic(...)`,
a block replaced by `Auth` (`@aws-blocks/bb-auth`).
The scaffolded AGENTS.md said to import `ApiError` and the typed client
from `@aws-blocks/blocks`. Under the `browser` condition (browser bundles
and the templates' `tsx -C browser` tests) that entry is `export {}`, so
the sentence now says `ApiNamespace` comes from `@aws-blocks/blocks` in
the backend and `ApiError` / `isBlocksError` from
`@aws-blocks/blocks/client` in frontend code and tests, matching the
guide's later bullet. One-sentence change.
Validation: create-blocks-app agents-guide.test.js 5 pass / 0 fail.
Only bb-auth's README recipes were compiled; every other code sample in the shipped docs could go stale silently. doc-snippets.test.ts reads the whole generated docs/ folder, changelogs included, and over the built packages: - checks each `@aws-blocks/*` import, and `new X` / `X.member` on those names; - flags an undeclared, non-global PascalCase name used with `new` or `.` that no @aws-blocks/blocks entry (or other module the docs import) exports, which is how a fragment constructing a removed block shows up; - typechecks complete files (first-line `// path` comment plus an import), grouped per heading into one app as the bb-auth recipes are; - resolves the value imports of browser files (`// src/...`, `// test/...`, `// frontend/...`) a second time under the `browser` condition, where the root `@aws-blocks/blocks` is an empty module. Everything else compiles with default conditions, as an app's tsc does. Exceptions are visible in the doc itself, each with a reason: `<!-- doc-snippet: skip -->` or `<!-- doc-snippet: fragment -->` above a fence, or `<!-- doc-snippet: skip-file -->` for a whole doc. Fixture docs in the same run prove the check reports each kind of drift and honours each marker. Fences are matched without building a RegExp from input. Found and fixed: - bb-auth README "Protect every method": the `// src/main.ts` file imported AuthErrors / isAuthError from @aws-blocks/blocks, undefined in a browser bundle; it now uses isBlocksError(e, 'NotAuthenticatedException') from @aws-blocks/blocks/client, as the scaffolded AGENTS.md advises. - bb-data USE_CASES.md section 13 called Kysely methods on a `Database<DB>` (the class takes no type argument and has no query builder). It now reads through createKyselyAdapter<DB>(), as the README does, and inserts with queryOne(sql`INSERT ... RETURNING ...`): the types `bb-data generate-types` emits list the SERIAL id as a required column, so a Kysely insert without it does not compile. Its setup steps now match the code: `bb-data migrate ./migrations`, types generated to backend/types/database.ts (the path the API file imports), and `migrationsPath: './migrations'` on the Database. Marked: three migration "before" blocks, two pipeline samples using the app's own stack class, two file-labelled fragments, and the blocks and core changelogs (release notes for the removed AuthBasic / AuthOIDC blocks); the other changelogs with samples pass. Validation: doc-snippets.test.js 2 pass / 0 fail; bb-auth readme-recipes.test.js 7/7; sink-guards 35/35; biome check clean on the new files. The USE_CASES API file typechecks (0 diagnostics) against generateTypes() output for the example's migration, and its insert and two selects run against the local Database built as the snippet builds it. The CLI steps themselves were not run end to end: in a fresh project `bb-data migrate` and `generate-types` refuse with "This app uses an external database", because detectExternalDb() reads a secret AppSetting whose local mock seeds a random value; left for a separate fix.
The guide named a few /ui and /server exports in prose and never said what /client, /utils or /theme export, or that the root entry resolves to an empty module under the `browser` condition. IMPORTS.md lists each app-facing entry, where it runs, and every export split into values and type-only names (an alias chain that passes through `export type` / `import type` counts as type-only). For each root value browser code can still use, it names where to import it: a browser-safe umbrella entry (/client, /ui, /theme), or the browser build of the block package that defines it, read under the `browser` condition for every @aws-blocks dependency that declares one. Classes declared in a browser entry itself are the throwing/no-op stubs and are left out; re-exported values (error constants, pure helpers) are listed. It is rendered from the built .d.ts files with the TypeScript compiler, so it runs after tsc; gen-block-docs.mjs runs as prebuild, so the file is committed at the package root (and shipped via `files`), from where gen-block-docs copies it into docs/. Runtime labels live in the generator next to an export-map check: a new entry fails until it is classified. - `npm run update:imports` rewrites it; `npm run check:imports` and imports-reference.test.js (in packages/blocks' npm test) fail on drift. - No export map changes. Validation: imports-reference, readme-links, doc-snippets tests pass; check:imports fails after a hand edit and passes after update:imports.
All three ship public entries (hosting's CDK-free root, pipeline's Pipeline/DeployStage constructs, bb-compute's Compute block) and docs in the umbrella docs folder, but had no api-extractor.json, so update-api-reports.sh (which globs packages/*/api-extractor.json) never reported them; nothing in the scripts excludes them on purpose. Configs follow the existing convention: extend api-extractor.base.json, with bb-compute reporting its aws-runtime entry (dist/index.aws.d.ts) like the other blocks. None of the three reports has an ae-forgotten-export. Validation: npm run update:api succeeds for every package.
…ures use API Extractor reported 11 ae-forgotten-export warnings: public signatures referencing types the entry points don't export, so apps can't name them. Exported, type-only and additive: - bb-agent: AgentBase (as `export type`, as bb-auth does for AuthBase), ConversationManagerConfig, MessageMetadata, GuardrailsConfig, InferenceConfig, from the aws, mock and cdk entries; - bb-data: WhereClause and the Operator type it references; - bb-realtime: InferMessage, from every entry; - core: ApiNamespaceConstructor and the AsyncAPI instance type it returns. core's private ResourceEntry alias is spelled Record<string, string> in registerSdkIdentifiers / getAllSdkIdentifiers (identical type). Left for maintainers: bb-data UnionToIntersection (inlining it would lose its distribution over the union, so it is either exported or CrudMethods is restructured) and bb-secret SecretImpl (Secret is Omit<SecretImpl, 'put'>). Validation: npm run build; npm run update:api (2 warnings left, both above).
The KVStore README and DESIGN.md said when an index holds an item, but not which attributes an index query returns, and DESIGN.md called an empty string the only indexed value DynamoDB rejects. Every GSI the block creates uses ProjectionType ALL (gsi-manager-lambda.ts), so an index query returns whole items; a fromExisting table keeps its own indexes. DynamoDB rejects a write whose index key attribute has another type than the index declares, NULL included, with a ValidationException (DynamoDB Developer Guide, "Using Global Secondary Indexes"). buildItem (item.ts) checks only for an empty string, and remapItemTooLarge re-maps only the size error, so on AWS such a put fails as an unnamed 500, while the mock stores the item (and returns it from an index query with no sort condition when the null is in the sort field). The README says to omit the field instead, and the DESIGN parity table lists the difference. Validation: mock behaviour checked with a throwaway script against the built package (null accepted; a null partition field is never queryable, a null sort field is returned without a sort condition; an item missing the index sort key is absent); packages/blocks doc tests pass.
xyos
force-pushed
the
docs/findability-and-drift
branch
from
November 17, 2026 20:47
41cbc86 to
e864ce6
Compare
xyos
enabled auto-merge (squash)
November 17, 2026 21:42
The re-export lines widened in this PR (core's ApiNamespace exports and bb-data's crud/types exports) lost their trailing semicolons. Restore them, as the repository's Biome style requires.
sharonyajain
approved these changes
Nov 17, 2026
xyos
disabled auto-merge
November 17, 2026 22:06
xyos
added a commit
that referenced
this pull request
Nov 17, 2026
…RawRoute params locally Main now documents atomic conditional writes and the dev server's 502 (#1498), so this keeps what it still lacks: - KVStore: a failed condition is status 409 in the JSON-RPC error (HTTP 409 only with httpErrorStatus: true); the mock reads store.json only when it constructs the store, so two processes can overwrite. - AppSetting: the mock's data lives in .bb-data/settings.json. - core: RawRoute params are the same locally and deployed.
This was referenced Nov 17, 2026
Merged
xyos
added a commit
that referenced
this pull request
Nov 18, 2026
…RawRoute params locally Main now documents atomic conditional writes and the dev server's 502 (#1498), so this keeps what it still lacks: - KVStore: a failed condition is status 409 in the JSON-RPC error (HTTP 409 only with httpErrorStatus: true); the mock reads store.json only when it constructs the store, so two processes can overwrite. - AppSetting: the mock's data lives in .bb-data/settings.json. - core: RawRoute params are the same locally and deployed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Several documented facts can't be found under the words people look for, some shipped code samples no longer match the packages, and nothing checks most of them:
nullin an indexed field (the local mock accepts it).withAuthsection doesn't namenext/headers/cookies(), which the built-in detection uses.@aws-blocks/blocks/utilstest helpers (installCookieJar, …) are explained only in a README that isn't shipped.Frontend server unavailable(502) response, its startup and port messages, and its 403 / 404 / 415 refusals are in no shipped doc.new AuthBasic(…), a removed block; the bb-dataUSE_CASES.mdbackend example calls Kysely methods onDatabase<DB>, which takes no type argument and has no query builder.AGENTS.mddocs bullet still says to importApiErrorand the typed client from@aws-blocks/blocks, whose browser build exports nothing (the Imports bullet above it already says/client).@aws-blocks/blocksentry (/client,/ui,/theme,/server,/utils, …) exports or where it runs.hosting,pipelineandbb-computehave no API report, and 11ae-forgotten-exportwarnings point at types apps can't name.Issue #, if available:
Changes
One commit per item:
f7fe55212)put/deleteis atomic for its item (one conditionalPutItem/DeleteItemon AWS; noawaitbetween the check and the write in the mock), there is no transaction across items (on AWS a batch call can leave the processed entries written afterBatchIncompleteException), andtransaction()onDatabase/DistributedDatabaseis the option for one. Two short paragraphs after main'sretriableparagraph; nothing in "Batch calls" or the intro is repeated.withAuth: namescookies()fromnext/headers(server components, route handlers, server actions) and the Nuxt Nitro context. Edit is local to that section./utilshelpers with signatures.TROUBLESHOOTING.md:Frontend server unavailable(502) and the frontend startup/restart messages; the second-dev-server and port-in-use messages asmainprints them today; and the 403 Host / 403 cross-origin / 404 wrong-method / 415 content-type responses, each traced todev-server.ts,dev-pidfile.ts,cors.tsandcli/config.ts. The 403 cross-origin and 415 rows link to the core README's "Local Development" for the rules rather than restating them.a3fc56f0a)new Auth(scope, 'auth').AGENTS.md, one sentence (end of the docs bullet, line 9):ApiNamespacefrom@aws-blocks/blocksin the backend,ApiError/isBlocksErrorfrom@aws-blocks/blocks/clientin frontend code and tests. It said to import them from@aws-blocks/blocks, contradicting the Imports bullet and the "Errors that reach the client" section of the same file. This is a minimal factual correction; a reviewer can drop it without affecting the rest of the PR.cbfc69958): please review this one hardest.doc-snippets.test.ts(inpackages/blocksnpm test, ~10 s) reads the whole generateddocs/folder, changelogs included, and, over the built packages:@aws-blocks/*import, andnew X/X.memberon those names;new/.that no@aws-blocks/blocksentry (or other module the docs import) exports. This is how a fragment that still constructs a removed block shows up;// path.tsplus an import), grouped per heading like the bb-auth recipes;// src/…,// test/…,// frontend/…) again under thebrowsercondition, where the root@aws-blocks/blocksis an empty module. The rest compiles with default conditions, as an app'stscdoes;> ```ts) as well, and accepts a description after a file label (// src/main.ts — the browser), the form bb-auth's README uses.<!-- doc-snippet: skip — … -->or<!-- doc-snippet: fragment — … -->above a fence, or<!-- doc-snippet: skip-file — … -->for a whole doc. Fixture docs in the same run prove each kind of drift is reported and each marker honoured.// src/main.tsfile importedAuthErrors/isAuthErrorfrom@aws-blocks/blocks, which is undefined in a browser bundle. It now usesisBlocksError(e, 'NotAuthenticatedException')from@aws-blocks/blocks/client.USE_CASES.md§13 now reads throughcreateKyselyAdapter<DB>(…), as the bb-data README does, and inserts withqueryOne(sql`INSERT … RETURNING …`). The typesbb-data generate-typesemits list theSERIALid as a required column, so a Kysely insert withoutiddoesn't compile; aGenerated<>wrapper in the generator would be the longer-term fix (not in this PR). Its setup steps now match the code:bb-data migrate ./migrations, types generated tobackend/types/database.ts, andmigrationsPath: './migrations'on theDatabase.blocks/corechangelogs (release notes for the removedAuthBasic/AuthOIDC). The other changelogs with samples pass as they are. The rewritten KVStore README and DESIGN (feat(bb-kv-store): KVStore consolidation #1453) pass with no markers.IMPORTS.md(3b27f4118)/cdk,/lambda-handlerand/scripts, which every scaffolded app's generatedaws-blocks/index.cdk.ts/index.handler.tsimport; only/vendorizeis listed as not for app code.browsercondition (browser bundles, and the templates'tsx -C browsere2e tests) gets no values from the root entry, the only entry with that condition. Every subpath,/utilsincluded, resolves the same everywhere./client,/ui,/theme), or the browser build of the block package that defines it (error constants and pure helpers, e.g.KVStoreErrorsfrom@aws-blocks/bb-kv-store), and notes that importing a block package directly means adding it to the app's dependencies, or matching the error by name..d.tswith the TypeScript compiler, so it runs aftertsc.gen-block-docs.mjsruns asprebuild, so the file is committed at the package root and shipped viafiles.npm run update:importsrewrites it;npm run check:importsandimports-reference.test.jsfail on drift, and so does an export-map entry the generator doesn't classify.616f712e4,1b72322b3)API.mdreports forhosting,pipelineandbb-compute(api-extractor.jsonfollowing the existing convention;bb-computereports itsaws-runtimeentry).AgentBase(asexport type, like bb-auth'sAuthBase),ConversationManagerConfig,MessageMetadata,GuardrailsConfig,InferenceConfig;WhereClauseand theOperatortype it references;InferMessage;ApiNamespaceConstructorand theAsyncAPIinstance type it returns.ResourceEntryalias is spelledRecord<string, string>in the two public signatures (same type).patch. Adding exports may deserveminor, but on0.xthat would fall outside the umbrella's caret ranges; maintainers' call.UnionToIntersection(inlining it would changeCrudMethods' distribution semantics) and bb-secretSecretImpl(SecretisOmit<SecretImpl, 'put'>; exporting an…Implclass or restatingSecretis a design call).nullindex fields (e864ce6fb)fromExistingtable keeps its own). To keep an item out of an index, omit the field: DynamoDB rejects aputwhose indexed field holdsnullor a value of the other type with aValidationException, while the mock accepts the write, so the error shows only on AWS.'',nulland the other type), and thatputchecks only''. It also names theALLprojection. The mock-vs-AWS table gets a row for the difference. The mock never returns such an item through the partition field, but does return it through anullor other-typed sort field whenwherehas no sort condition. On AWS the write error isn't re-mapped, so an API client sees an unnamed 500.ProjectionType: 'ALL'ingsi-manager-lambda.ts;buildItem(item.ts) checks only for an empty string;remapItemTooLargere-maps only the size error; the mock behaviour by running it. The AWS rejection is DynamoDB's documented behaviour ("Using Global Secondary Indexes", data synchronization); not exercised against AWS here.Not included: DistributedTable-specific text, since #1453 merged DistributedTable into KVStore and removed its package. Paging (KVStore "Pages", cursor) and the sparse-index rule (KVStore "Indexes") are on
mainfrom #1453; FileBucket metadata reads are onmainfrom #1354.Found, not fixed (bb-data CLI, for a separate change): in a fresh local project,
npx bb-data migrateandnpx bb-data generate-typesrefuse with "This app uses an external database (fromExisting())".detectExternalDb()(cli.ts) reads asecret: trueAppSettingwith no value, and the AppSetting mock seeds and persists a random value for such a setting, so the check always finds one. This affects everybb-data migrate/generate-typesinstruction in the bb-data docs, not just this example.Related PRs
Merged into
mainsince the last push (the branch is rebased on them):DistributedTableintoKVStoreand deletedpackages/bb-distributed-table. This PR's DistributedTable paragraphs, changelog marker and index note went with it. The KVStore atomicity text was redone in feat(bb-kv-store): KVStore consolidation #1453's "Conditional writes" section without repeating its "Batch calls" section or the intro'sDatabasepointer, and the index note was redone in its "Indexes" section, keeping only what it doesn't already say (paging and the sparse-index rule are feat(bb-kv-store): KVStore consolidation #1453's).IMPORTS.mdwas regenerated (the DistributedTable names are gone).TROUBLESHOOTING.mdrows quote them asmainprints them now (dev-pidfile.ts,describePortHolders,portInUseHint).withAuth'sallowAnonymous; this PR'swithAuthparagraph sits above feat(core): let withAuth run signed out with allowAnonymous #1519's note and agrees with it.IMPORTS.mdlists/server's newWithAuthOptions.AGENTS.md; its docs bullet still ended "import them from@aws-blocks/blocks", so item 2 corrects that sentence on the new text.LegacyKVStore, merged) adds an upgrade section and aLegacyKVStoredesign section to the KVStore README and DESIGN. Nothing there overlaps item 1's "Conditional writes" paragraphs or item 6's "Indexes" bullets, which stay aboutKVStore.IMPORTS.mdlists the newLegacyKVStorenames.LegacyKVStore's conditionalput/deleteare atomic in the same way (one conditionalPutItem/DeleteItemon AWS, noawaitbetween the check and the write in its mock). It has no indexes or batch calls, so item 6 doesn't apply to it.auth-oidctemplate tests that failed CI shard 3 on every PR.IMPORTS.mdis regenerated for them.#1496 (companion: moves self-contained README sections into topic files) shares the guide, core and bb-auth READMEs and
packages/blocks/package.json'sfilesarray. Both PR heads merged ontomainwith no conflicts before this rebase; the edits are in different sections, and thefilesarray keeps both entries. Either can land first.Open PRs that touch the same files or lines (the rest of the 64 that touch a changed file are independent):
TROUBLESHOOTING.md502 section and thewithAuthNext.js sentence. It still targetsbb-distributed-table, which no longer exists. Whichever lands second should drop its copy.bb-database) deletesbb-data, including the entries item 5 addsWhereClause/Operatorto andUSE_CASES.md, which item 3 fixes. If feat(db): make bb-database publishable #1570 lands first, those hunks go away with the package; if this lands first, feat(db): make bb-database publishable #1570 removes them and regeneratesIMPORTS.mdand the reports.AGENTS.mddocs bullet that item 2 corrects; whichever lands second keeps the backend vs client import rule.IMPORTS.mdwill neednpm run update:importsafter feat(bb-sms-client): add SmsClient building block for SMS and mobile push #49, feat(observability): add OpenTelemetry building blocks (OtelMetrics / OtelLogger / OtelTracer) #50, feat(bb-event-bus): add EventBridge-backed pub/sub event bus block #64, feat(bb-agent): toAgentTools(): kv-store #90, feat(core): add compute target seam for pluggable container runtimes #157, feat(compute-ecs): ECS Fargate compute target with ALB and CloudFront front door #158, feat(compute-eks): EKS Auto Mode compute target with ALB ingress and CloudFront front door #159, feat(bb-agent): AgentCore Runtime #164, feat(bb-agent): migrate streaming execution to AgentCore Runtime (1/5) #250, fix(agent): AgentCore runtime role inherits the handler's BB grants (5/5) #262, feat(bb-auth-jwt): provider-agnostic bearer-JWT auth Building Block #297, feat(hosting): multi-tenant shared front door on the free-form door (POC) #726, feat(bb-file-bucket): run a handler when an object is created (onObjectCreated) #1299, feat(core): stop deploys that would create an Aurora cluster on a Free-plan account #1328, feat(bb-auth): opt-in audit records for session events #1495 and feat(db): make bb-database publishable #1570, which add or remove@aws-blocks/blocksexports.imports-reference.test.jsfails until it's run.npm run update:api) after feat(bb-agent): toAgentTools(): kv-store #90, feat(core): add compute target seam for pluggable container runtimes #157, feat(compute-ecs): ECS Fargate compute target with ALB and CloudFront front door #158, feat(compute-eks): EKS Auto Mode compute target with ALB ingress and CloudFront front door #159, feat(bb-agent): AgentCore Runtime #164, feat(bb-agent): migrate streaming execution to AgentCore Runtime (1/5) #250, feat(bb-agent): browser-direct WebSocket streaming + server-verified identity (2/5) #251, feat(bb-agent): server-resolved tool context from verified JWT claims (4/5) #261, fix(agent): AgentCore runtime role inherits the handler's BB grants (5/5) #262, Feat: Add prompt caching to bedrock models #270, fix(core): count nameless custom Building Blocks in telemetry #438, fix(bb-data): keep external-database connections healthy after transient failures #883, fix(bb-agent): settle complete() when the turn finished before it subscribed #1376 and feat(core): fail production synth on a permissive or conflicting permissionsBoundary #1402. feat(bb-agent): AgentCore Runtime #164 and feat(bb-agent): migrate streaming execution to AgentCore Runtime (1/5) #250's reports showConversationManagerConfigas a forgotten export, which item 5 exports. Feat: Add prompt caching to bedrock models #270 adds a forgottenCacheConfig.packages/blockstest-script line. feat(bb-agent): AgentCore Runtime #164 and feat(bb-agent): migrate streaming execution to AgentCore Runtime (1/5) #250 extend the same bb-agent type-export lines.Validation
Branch rebased onto
mainatdabb3f22f(after #1453, #1218, #1542, #1519, #1500, #1568, #1596 and the other commits since the previous push). Heade864ce6fb. Earlier heads of this rebase:86fd2ab7dondfc4a306b, then41cbc8671on5dfe7783a.41cbc8671corrected three KVStore sentences: README "Conditional writes" and "Indexes", and DESIGN "Indexes" with its mock-vs-AWS row.e864ce6fbadds #1568 and #1596 frommainand regeneratesIMPORTS.mdforLegacyKVStore. After #1568 I re-checked item 1 and item 6 against the KVStore code. #1568 changed only the read paging there;put/delete, the index filter,buildItemand the GSI projection are unchanged.Before pushing
e864ce6fb(built in a clean environment, as CI runs it; see the note below):npm cinpm run buildenv -i PATH HOME USER; in the local interactive shelladmin-ui'snext buildstops on a Next.js security advisory formain's pinned version, which this PR doesn't touch)npm run update:imports, thennpm run check:importsIMPORTS.mdgains theLegacyKVStorenames; then passnpm run update:api, thennpm run check:apiae-forgotten-exportwarnings listed under item 5)npm run lint:depsnpm run sync-docs:checkpackages/blocks:doc-snippets,readme-links,docs-pointers,conditional-exports;imports-referencenode --test scripts/sink-guards/*.test.mjspackages/bb-authreadme-recipes.test.js;packages/create-blocks-appagents-guide.test.jsThe code-sample guard also covers #1568's new KVStore samples; they pass with no markers.
On this machine the rest of the
packages/blockssuite fails only in the 8cdk-blocks devsignal tests, withEMFILE … watch. The host's inotify instance limit was used up by other processes. The same file passes 38/38 with a polling watcher. The same environment limit fails onehostingfile-watch test (secret-typegen,watchHostingValues). This PR doesn't touch either area.On
86fd2ab7d's tree, run locally while CI ran:npm test(withCHOKIDAR_USEPOLLING=1for the inotify limit above)auth-oidctemplate tests that #1596 has since fixed onmain, and one is thehostingfile-watch test above.npm run test:e2e:localCombined check, on the final heads: this PR (
e864ce6fb), #1496 (261b7f752) and #1504 (a4edab846) merged together ontomainatdabb3f22f. They merge cleanly, and on the combined tree the following all pass: the build, the fourpackages/blocksdocs test files,check:imports,sync-docs:check,check:api,lint:deps, and thecreate-blocks-apptests (391/391, the suite behind CI shard 3). A relative-link and anchor scan finds no new broken links. Since this PR carries generated files (IMPORTS.md, API reports), landing it first means the least regeneration.CI on
86fd2ab7dand41cbc8671(22 pass, 20 skipped): everything passed exceptLocal Unit Tests (shard 3)and its two roll-ups (Build, Unit Tests, E2E Local,Build and Test). The cause was the fourauth-oidctemplate tests onmain, which #1596 fixes.e864ce6fbis on amainthat includes #1596. CI one864ce6fb: all green (25 pass, 20 skipped, 0 fail), shard 3 and both roll-ups included.Also:
check:importsfails after a hand edit ofIMPORTS.md.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.