Skip to content

fix(schema): export canonical registry proxy - #12

Open
Upd4ting wants to merge 2 commits into
mainfrom
fix/export-schema-registry
Open

fix(schema): export canonical registry proxy#12
Upd4ting wants to merge 2 commits into
mainfrom
fix/export-schema-registry

Conversation

@Upd4ting

@Upd4ting Upd4ting commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

  • expose the canonical schema and query declarations through a root InterfaceDeclarations namespace
  • preserve the direct Schemas export for existing consumers
  • verify root, schema, and query imports preserve strict proxy identity in both CommonJS load orders

Root cause

Core builds provider routes from the canonical interface package root. The published root omitted the internal schema and query proxies, so CMS registrations first failed at Schemas and then fell back to the CMS provider when RunQuery was invoked.

Validation

  • pnpm lint
  • pnpm build
  • root/subpath fresh-process tests in both import orders
  • root declaration identities: Schemas, RunQuery, ReadCursor, and CloseCursor
  • GitHub Ubuntu and GitGuardian checks
  • packed clean consumer and real CMS database flow will be attached before qualification

Greptile Summary

The PR exposes the canonical schema and query declarations through the package root while preserving the direct Schemas export.

  • Adds InterfaceDeclarations containing CloseCursor, ReadCursor, RunQuery, and Schemas.
  • Verifies strict root/subpath identity for all four declarations.
  • Exercises fresh CommonJS processes with root-first and subpath-first import orders.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
src/index.ts Exports a four-member canonical declaration namespace and preserves the direct root Schemas export using the existing submodule singletons.
src/tests/root-declarations.test.ts Confirms the complete declaration set and strict root/subpath identity in fresh CommonJS processes for both import orders.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Root[Package root] --> Declarations[InterfaceDeclarations]
  Declarations --> CloseCursor
  Declarations --> ReadCursor
  Declarations --> RunQuery
  Declarations --> Schemas
  Query[query subpath] --> CloseCursor
  Query --> ReadCursor
  Query --> RunQuery
  Schema[schema subpath] --> Schemas
  Root -. strict identity .-> Query
  Root -. strict identity .-> Schema
Loading

Reviews (2): Last reviewed commit: "fix(database): expose canonical query de..." | Re-trigger Greptile

Copy link
Copy Markdown
Member Author

@greptileai review current HEAD 86dfb2a. Verify all four canonical root declarations (CloseCursor, ReadCursor, RunQuery, Schemas), strict root/subpath identity in both import orders, and provider discovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant