Skip to content

chore: update schemas from constructive-db - #1939

Open
Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261027-023741
Open

Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261027-023741

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@18362a3b086

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@18362a3b086
@luxor-code-review

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

Copy link
Copy Markdown

Review complete. 🟡 1 medium

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

🟡 Medium — provision_blueprint tool breaks under async constructBlueprint · provision-blueprint.ts:96–101 · 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();

This PR makes constructBlueprint asynchronous: it enqueues a blueprint:construct job, returns the construction id immediately, and records failures in blueprint_construction.error with status failed instead of raising (sdk/constructive-sdk/schemas/api.graphql, Mutation.constructBlueprint).

The provision_blueprint agent tool calls the mutation once with select: { result: true }, never polls the construction row, and unconditionally reports "Created N tables" (agentic/db-tools/src/tools/provision-blueprint.ts:96). A failed background construction is therefore reported as a success to the agent and the user.

🧹 Nitpicks (2) — 🟢 2 low
  • 🟢 Stale synchronous constructBlueprint docs in *-public references (construct-blueprint.md:5) — The async rework regenerated every client surface except the *-public codegen skill references: .agents/skills/cli-public/references/construct-blueprint.md (with identical content in orm-public and hooks-public) still describes the old synchronous contract — "Returns the construction record ID on success, NULL on failure" (line 5).
  • 🟢 Four schema queries removed from generated SDKs (commands.ts:111) — The regenerated schema removes the apiSchemaNames, resolveDeepLink, resolveRoute, and resolveSiteAppLinks root queries together with the ResolveRouteRecord type, and the generated packages drop the matching artifacts: ORM client methods and variables interfaces, React hooks (e.g. useResolveRouteQuery), CLI commands (resolve-route, api-schema-names, and related), and the ResolveRouteRecord/ResolveRouteRecordSelect types.

This PR is a regeneration of the generated SDK layer across sdk/constructive-cli, sdk/constructive-react, and constructive-sdk, adding platformReservedSubdomain CRUD end-to-end (CLI command, ORM model/input types, React Query hooks with keys and invalidation), reflecting the async blueprintConstruction status/error contract, and extending auth inputs with codeChallenge, nativeRedirectUri, and signOutOtherSessions. The generated artifacts are internally consistent across all three packages. However, one hand-maintained consumer was not updated and some skill docs lag behind the schema. | Files | Change | |---|---| | sdk/constructive-cli/src/api/**, sdk/constructive-sdk/src/api/**, sdk/constructive-react/src/api/** | New platformReservedSubdomain model, inputs, CLI commands, and React Query hooks (create/update/delete/query) | | sdk/*/src/auth/**, sdk/constructive-sdk/schemas/auth.graphql | New auth input fields (codeChallenge, nativeRedirectUri, signOutOtherSessions) and exchange-native-handoff CLI command | | sdk/*/src/modules/**, sdk/constructive-sdk/schemas/modules.graphql | Async blueprintConstruction lifecycle with error field and new domainModule reserved-subdomain fields | | agentic/db-tools/src/tools/provision-blueprint.ts | Existing tool that still calls constructBlueprint synchronously — needs updating for the async contract | | .agents/skills/** | Skill reference docs refreshed for the new commands and fields (a few stale *-public references remain) |

Reviewed commit: 40e8c45

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