Skip to content

chore: update schemas from constructive-db - #2046

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
schema-update/20261121-085125
Nov 21, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
schema-update/20261121-085125

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@98cc3588b81

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 derive command examples to show the optional --data <JSON> argument.
    • Updated derive API examples to include data in queries and create or update inputs.

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

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

Copy link
Copy Markdown

Review complete. No blocking issues — approved ✅; 2 nitpicks below.

🧹 Nitpicks (2) — 🟢 2 low
  • 🟢 Remove required timestamp from SubscriptionEvent (realtime.ts:60) — The required timestamp: string field was deleted from the exported SubscriptionEvent<T> interface and RealtimeManager no longer populates it (sdk/constructive-sdk/src/api/orm/realtime.ts:60-67, event construction around line 199).
  • 🟢 Inconsistent Derive.data typing across generated SDKs (input-types.ts:486) — The new data field is typed inconsistently across the generated files added in this PR: the GraphQL schema declares data: JSON! (sdk/constructive-sdk/schemas/api.graphql:10642), schema-types.ts uses data?: unknown, while the orm input-types.ts files use data?: Record<string, unknown> | null (sdk/constructive-sdk/src/api/orm/input-types.ts:486).

The change threads a new data JSON field on Derive through the GraphQL schema, generated TypeScript types, ORM inputs, CLI derive command, READMEs, and skill reference docs, and drops the timestamp field from the realtime subscription event type across all generated realtime.ts copies.

Files Change
sdk/constructive-sdk/schemas/api.graphql, sdk/constructive-react/src/api/schema-types.ts, sdk/constructive-react/src/api/types.ts, */orm/input-types.ts Add data JSON field to Derive with input/filter/order variants.
sdk/*/orm/realtime.ts (37 copies), sdk/migrate-client/src/migrate/orm/realtime.ts Remove timestamp from SubscriptionEvent and its population in RealtimeManager.
sdk/constructive-cli/src/api/cli/commands/derive.ts Teach the CLI derive command to prompt for and pass the optional data JSON field.
READMEs and .agents/skills/*/references/derive.md Document the new data field in field tables, signatures, and examples.

Reviewed commit: db1d765

@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 CLI, hooks, and ORM documentation now includes the data field in command syntax, query selections, and create or update examples.

Changes: Derive API documentation

Layer / File(s) Summary
Document Derive data across API examples
.agents/skills/cli-api/references/derive.md, .agents/skills/hooks-api/references/derive.md, .agents/skills/orm-api/references/derive.md
CLI syntax and examples include the optional --data <JSON> argument. Hooks query selections and create input include data. ORM examples use data in create and update payloads and list selections; the create selection now includes only id.

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

Change: Other

Possibly related PRs

Suggested reviewers: pyramation

Merge Risk: Minimal · up to db1d7

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

Architecture risk: Low · up to db1d7

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 command 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 list and single Derive queries 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 the data field.
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" matches the main change. The PR regenerates schemas and SDK artifacts from constructive-db at commit 98cc3588b81, and the title names that source…
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" matches the main change. The PR regenerates schemas and SDK artifacts from constructive-db at commit 98cc3588b81, and the title names that source. The title does not name the skill documentation changes, but the PR objectives describe the skill docs as a secondary part of the regeneration, so the title is not misleading or off-topic.

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 bdfb831 and db1d765.

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; 6 remain after this review.

@devin-ai-integration
devin-ai-integration Bot merged commit d235d58 into main Nov 21, 2026
22 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the schema-update/20261121-085125 branch November 21, 2026 09:11
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