Skip to content

chore: update schemas from constructive-db - #1931

Open
Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261024-011609
Open

Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261024-011609

Conversation

@Anmol1696

Copy link
Copy Markdown
Contributor

Automated Schema + SDK Update

This PR was created by the schema-propagation workflow.

What changed

Updated schema files from constructive-db and regenerated ALL SDK clients.

Source: constructive-db@8b5b068efba

Schemas updated

  • sdk/constructive-sdk/schemas/ — all API targets from constructive-db (auto-discovered)
  • sdk/migrate-client/schemas/ — migrate
  • pgpm/export/src/meta-export-tables.json — generated meta export table list

Clients regenerated

  • sdk/constructive-sdk/src/ — ORM client
  • sdk/constructive-cli/src/ — CLI client
  • sdk/constructive-react/src/ — React hooks
  • sdk/migrate-client/src/ — Migrate client

Skill references updated

  • .agents/skills/ — Generated skill documentation

Auto-generated by constructive-hub schema-propagation

Auto-generated by schema-propagation workflow.
Source: constructive-db@8b5b068efba
@luxor-code-review

luxor-code-review Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review complete. 🟠 1 high

📍 Findings outside the diff (1) — 🟠 1 high — defects on lines GitHub can't attach comments to

🟠 High — constructBlueprint async contract breaks failure-reporting caller · provision-blueprint.ts:96–119 · file not in diff

// agentic/db-tools/src/tools/provision-blueprint.ts
96	        await modules.mutation
97	          .constructBlueprint(
98	            { input: { blueprintId, schemaId } },
99	            { select: { result: true } },
100	          )
101	          .unwrap();
102	
103	        const relations = params.definition.relations ?? [];
104	        const details: ProvisionBlueprintDetails = {
105	          created: params.definition.tables.length,
106	          total: params.definition.tables.length,
107	          tables: params.definition.tables.map((t) => ({

The constructBlueprint mutation contract changed from synchronous (failure throws and rolls back) to asynchronous fire-and-poll: it returns the construction id immediately and failures surface as status: 'failed' with an error payload on the blueprintConstruction row, per the regenerated docs at sdk/constructive-react/src/modules/orm/mutation/index.ts:22.

The caller agentic/db-tools/src/tools/provision-blueprint.ts:96-101 still calls constructBlueprint(...).unwrap() and then unconditionally reports created: params.definition.tables.length with error: null. The same fire-and-forget shape exists in the generated CLI command sdk/constructive-cli/src/modules/cli/commands/construct-blueprint.ts.

Users provisioning a blueprint now see a success report while the build may fail in the background and the tables never exist.


This PR propagates a regenerated GraphQL schema across the CLI, React hooks, and SDK packages, adding new auth operations and blueprint-construction async fields.

Files Change
sdk/constructive-sdk/schemas/*.graphql, sdk/*/src/{auth,modules}/orm/*, input-types.ts Regenerated ORM mutation wrappers and input types for the new schema fields (error, sweepUnverifiedDomainsFunction, codeChallenge, nativeRedirectUri, credentialKind)
sdk/constructive-cli/src/auth/cli/commands/*, commands.ts New exchange-native-handoff CLI command wired into the auth command map (62nd operation)
sdk/constructive-cli/src/modules/cli/commands/* Regenerated blueprint-construction, construct-blueprint, and domain-module prompts/selects including the new fields
sdk/constructive-react/src/{auth,modules}/hooks/* New useExchangeNativeHandoffMutation hook plus regenerated BlueprintConstruction query/mutation hooks and mutation keys
.agents/skills/{cli,hooks,orm}-{auth,modules}/* Regenerated skill documentation reflecting the new operations and fields

Note: one scanner group (correctness-0) failed to publish, so those five CLI command files were reviewed only via the domain specialists and full-diff sweep; no findings emerged from those passes.

Reviewed commit: 53403ca

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