Skip to content

chore: update schemas from constructive-db - #2059

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
schema-update/20261123-072807
Nov 23, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
schema-update/20261123-072807

Conversation

@Anmol1696

@Anmol1696 Anmol1696 commented Nov 23, 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@4ea0e9cd43e

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
    • Added guidance and examples for managing principals, including listing, filtering, pagination, and CRUD operations.
    • Clarified how principal credentials, sessions, and authorization data work together, including setup requirements and available credential features.
    • Updated module references to reflect the expanded set of 89 tables.

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

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

Copy link
Copy Markdown

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

🧹 Nitpicks (1) — 🟢 1 low
  • 🟢 Generated hook examples use nonexistent name field (usePrincipalsModulesQuery.ts:41) — The new generated React hooks carry doc examples referencing a name field and CREATED_AT_DESC ordering that do not exist on PrincipalsModule (sdk/constructive-react/src/modules/hooks/queries/usePrincipalsModulesQuery.ts:41).

This PR introduces the new principalsModule API entity and propagates it through all three generated SDK packages, plus updates the PrincipalAuthModule docstring to describe credentials provisioned on top of principals_module. It is overwhelmingly additive codegen output; cross-package consistency between the CLI, React, and SDK packages was confirmed by the review.

Files Change
sdk/constructive-sdk/schemas/*.graphql Additive SDL updates: new PrincipalsModule types and query/mutation roots in modules.graphql, plus webauthnSettings fields and docstring changes elsewhere — no removals or renames.
sdk/constructive-cli/src/modules/cli/** New principals-module CLI command wired into the command registry, with matching ORM model and input types.
sdk/constructive-react/src/modules/hooks/** New React Query list/detail hooks, mutation hooks, query/mutation keys, and invalidation/cache-removal wiring for principalsModule.
sdk/*/src/modules/orm/** New principalsModule ORM model and input types, byte-identical across the three packages, registered in barrel exports.
sdk/*/src/**/schema-types.ts, types.ts Regenerated schema types adding PrincipalsModule and the MetaFileField bucketKey/isPublic fields consistently.
pgpm/export/src/meta-export-tables.json, .agents/skills/** Export config and skill/README docs updated to reference the new module and principals references.

One low-severity finding remains: the generated hook JSDoc examples reference fields (name, CREATED_AT_DESC) that do not exist on PrincipalsModule. The pgpm/export/src/meta-export-tables.json config file was not reviewed in depth.

Reviewed commit: 3bbaf06

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The changes add principals_module to the exported table list and module references. They document its CLI, hooks, and ORM usage, and update the principal authentication module descriptions.

Changes: Principals module support

Layer / File(s) Summary
Register principals_module
pgpm/export/src/meta-export-tables.json, .agents/skills/cli-modules/SKILL.md, .agents/skills/hooks-modules/SKILL.md, .agents/skills/orm-modules/SKILL.md
The exported table list adds principals_module. The three skill descriptions report 89 tables and link to the new module references.
Document principals_module
.agents/skills/cli-modules/references/principals-module.md, .agents/skills/hooks-modules/references/principals-module.md, .agents/skills/orm-modules/references/principals-module.md
The new references describe module capabilities and provide CLI or TypeScript usage examples.
Describe principal authentication
.agents/skills/hooks-modules/references/principal-auth-module.md, .agents/skills/orm-modules/references/principal-auth-module.md
The descriptions cover credential provisioning, prerequisites, installation behavior, and the condition for generating organization API key functions.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

Suggested reviewers: pyramation, luxor-code-review

Merge Risk: Minimal · up to 3bbaf · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Architecture risk: Low · up to 3bbaf

The change affects 1 system.

Changed systems: pgpm

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — pgpm (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in pgpm/export/src/meta-export-tables.json: Adds the principals_module table entry, mapping its key and table name to principals_module in metaschema_modules_public.
  • observed — Modified behavior in .agents/skills/cli-modules/SKILL.md: The description and generated CLI summary change the documented CRUD table count from 88 to 89; the custom-operation count remains 3.
  • observed — Modified behavior in .agents/skills/cli-modules/SKILL.md: The references list adds principals-module.
  • observed — Modified behavior in .agents/skills/cli-modules/references/principals-module.md: Adds documentation for principals-module CLI usage and examples covering CRUD commands, list filtering and ordering, pagination, field selection, and the create/update options.
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 schema files from constructive-db at a specific commit and updates the generated SDK clients, skill d…
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 schema files from constructive-db at a specific commit and updates the generated SDK clients, skill docs, and meta export table list. The title names the primary change and the source. It omits the SDK regeneration and the new principals_module documentation, which is acceptable for a title. It is not vague, and it does not describe unrelated work.

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 1685bc6 and 3bbaf06.

Files ignored due to path filters: 68

  • sdk/constructive-cli/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/README.md is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/cli/README.md is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/cli/commands.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/cli/commands/principals-module.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/README.md is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/index.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/models/index.ts is excluded by !sdk/**
  • sdk/constructive-cli/src/modules/orm/models/principalsModule.ts is excluded by !sdk/**
  • sdk/constructive-react/src/admin/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/agent/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/api/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/auth/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/compute/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/config/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/infra/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/README.md is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/README.md is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/index.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/invalidation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutation-keys.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/index.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useCreatePrincipalsModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useDeletePrincipalsModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/mutations/useUpdatePrincipalsModuleMutation.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/queries/index.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/queries/usePrincipalAuthModuleQuery.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/queries/usePrincipalAuthModulesQuery.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/queries/usePrincipalsModuleQuery.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/queries/usePrincipalsModulesQuery.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/hooks/query-keys.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/README.md is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/index.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/models/index.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/orm/models/principalsModule.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/modules/types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/objects/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/remote/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/storage/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-react/src/usage/schema-types.ts is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/admin.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/agent.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/api.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/auth.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/cluster.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/compute.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/config.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/infra.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/modules.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/objects.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/remote.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/storage.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/schemas/usage.graphql is excluded by !sdk/**
  • sdk/constructive-sdk/src/api/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/README.md is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/README.md is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/index.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/input-types.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/models/index.ts is excluded by !sdk/**
  • sdk/constructive-sdk/src/modules/orm/models/principalsModule.ts is excluded by !sdk/**
  • sdk/migrate-client/schemas/migrate.graphql is excluded by !sdk/**
Files selected for processing: 9

  • .agents/skills/cli-modules/SKILL.md
  • .agents/skills/cli-modules/references/principals-module.md
  • .agents/skills/hooks-modules/SKILL.md
  • .agents/skills/hooks-modules/references/principal-auth-module.md
  • .agents/skills/hooks-modules/references/principals-module.md
  • .agents/skills/orm-modules/SKILL.md
  • .agents/skills/orm-modules/references/principal-auth-module.md
  • .agents/skills/orm-modules/references/principals-module.md
  • pgpm/export/src/meta-export-tables.json

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

@devin-ai-integration
devin-ai-integration Bot merged commit 9c5498c into main Nov 23, 2026
22 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the schema-update/20261123-072807 branch November 23, 2026 09:44
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