Skip to content

chore: update schemas from constructive-db - #2039

Open
Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261121-035213
Open

Anmol1696 wants to merge 1 commit into
mainfrom
schema-update/20261121-035213

Conversation

@Anmol1696

@Anmol1696 Anmol1696 commented Nov 21, 2026 •

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@edbe565345d

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

Summary by CodeRabbit

  • Documentation
    • Updated CLI examples to show the optional --data <JSON> argument for creating and updating Derive records.
    • Expanded Derive hook examples to include data in query selections and create inputs.
    • Revised ORM examples to show data as the create and update payload, and in list results. The update example no longer uses databaseId as the payload.

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

luxor-code-review Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 1 nitpick below.

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Removing timestamp from SubscriptionEvent is source-breaking (realtime.ts:60) — The patch deletes the required timestamp: string field from the public SubscriptionEvent<T> interface and stops populating it in RealtimeManager (sdk/constructive-cli/src/admin/orm/realtime.ts:60-67, 182-186).

Regeneration of the GraphQL schema and generated SDK clients to expose a new JSON data column on Derive: it appears in the SDL, filter/orderBy/input/patch types, row types, and the CLI derive command (field schema with json coercion, prompt wiring, create/update handlers). In the same regeneration, the timestamp: string field and its client-clock fallback were deleted from the exported SubscriptionEvent<T> interface in every generated realtime.ts across all packages.

Files Change
sdk/constructive-sdk/schemas/api.graphql, sdk/*/api/orm/input-types.ts, sdk/constructive-react/src/api/schema-types.ts, sdk/constructive-react/src/api/types.ts Add data JSON field to Derive types (JSON! output, JSONFilter, DATA_ASC/DESC, input/patch fields)
sdk/constructive-cli/src/api/cli/commands/derive.ts Wire data into the CLI derive command: json field schema, prompt/input handling, and mutation payloads
sdk/**/orm/realtime.ts (~37 generated copies) Remove timestamp from SubscriptionEvent<T> and stop populating it in RealtimeManager event construction

Reviewed commit: fc1c5ee

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Derive documentation updates CLI usage syntax and examples, ORM payload and selection examples, and Hooks query and mutation examples to include data.

Changes: Derive data documentation

Layer / File(s) Summary
Derive data usage examples
.agents/skills/orm-api/references/derive.md, .agents/skills/hooks-api/references/derive.md, .agents/skills/cli-api/references/derive.md
ORM examples add data to create and update payloads and list selections. Hooks examples add data to query selections and the create input. CLI syntax and the create example add the optional --data <JSON> argument.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: Minimal · up to fc1c5

This PR updates documentation examples for Derive to show the data field. It does not change runtime behavior, so merge risk is minimal.

Architecture risk: Low · up to fc1c5

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .agents/skills/cli-api/references/derive.md: The derive create and derive update usage syntax adds the optional --data <JSON> argument.
  • observed — Modified behavior in .agents/skills/cli-api/references/derive.md: The create example adds the optional --data <JSON> argument.
  • observed — Modified behavior in .agents/skills/hooks-api/references/derive.md: The usage examples for useDerivesQuery and useDeriveQuery now include data in their selected fields.
  • observed — Modified behavior in .agents/skills/hooks-api/references/derive.md: The list-all-derives example now selects data.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore: update schemas from constructive-db" names the main change in the PR, which regenerates schemas and SDK clients from constructive-db. It does not name the specific changes, such as t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore: update schemas from constructive-db" names the main change in the PR, which regenerates schemas and SDK clients from constructive-db. It does not name the specific changes, such as the new data argument in the Derive docs. The title is accurate and specific enough for a teammate scanning history, so it passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between a38dfde and fc1c5ee.

Files ignored due to path filters: 49

  • sdk/constructive-cli/src/admin/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/agent/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/api/cli/README.md is excluded by !sdk/**
  • sdk/constructive-cli/src/api/cli/commands/derive.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/api/orm/README.md is excluded by !sdk/**
  • sdk/constructive-cli/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/api/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/auth/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/compute/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/config/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/infra/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/objects/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/remote/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/storage/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/usage/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/admin/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/agent/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/hooks/README.md is excluded by !sdk/**
  • sdk/constructive-react/src/api/orm/README.md is excluded by !sdk/**
  • sdk/constructive-react/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/auth/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/compute/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/config/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/infra/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/objects/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/remote/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/storage/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-react/src/usage/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/api.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/src/admin/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/agent/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/api/orm/README.md is excluded by !sdk/**
  • sdk/constructive-sdk/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/api/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/auth/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/compute/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/config/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/infra/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/objects/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/remote/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/storage/orm/realtime.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/usage/orm/realtime.ts is excluded by !sdk/**
  • sdk/migrate-client/src/migrate/orm/realtime.ts is excluded by !sdk/**
Files selected for processing: 3

  • .agents/skills/cli-api/references/derive.md
  • .agents/skills/hooks-api/references/derive.md
  • .agents/skills/orm-api/references/derive.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

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