feat: sync packages from constructive-db/pgpm-modules#88
Conversation
Synchronize all pgpm module packages to match the current state of pgpm-modules/ in constructive-db (main branch). Key changes: - Updated database-jobs (add_job, jobs table, principal_id support) - Added jwt-claims current_principal_id procedure - Updated metaschema-modules (new function_deployment_module, constraints) - Updated services (enforce_api_exposure trigger) - Updated package versions and control files across all modules - Removed uuid package (no longer in constructive-db) - Added new SQL bundle files matching constructive-db versions
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
- Restore database-jobs test to use JWT config (procedure has no db_id param) - Restore encrypted-secrets-table snapshot with uuidv7() default - Restore services test files removed by sync - Fix metaschema-schema verify: remove non-existent module column
- Restore 10 services revert files (site_themes, apis, apps, etc.) - Restore 6 metaschema-modules revert + 6 verify files (agent_module, graph_module, etc.) - These files exist on main but were absent in constructive-db/pgpm-modules/
The deploy creates both set_and_commit and set_props_and_commit functions, so the revert must drop both to allow schema drop.
… agent_chat_module Synced verify files from constructive-db referenced columns not present in the deploy files (e.g. blueprint.status, blueprint.constructed_at). Restored verify files to match the deployed schema. Removed agent_chat_module verify/revert which had no corresponding deploy.
Updated snapshots to match new deploy file state after sync. Restored 30s timeout on FK constraint test that was removed by sync.
More module tables from the sync make information_schema FK queries slower, increasing timeouts from 30s to 60s.
The sync from constructive-db downgraded versions (0.28.3 -> 0.15.5 etc) which would overwrite published versions. Restore all to 0.28.3 while keeping the synced code and pgpm devDependency updates.
Fix Related Tooling links to match actual git-tracked paths in constructive repo: - packages/pgpm -> pgpm/cli - packages/pgsql-test -> postgres/pgsql-test - packages/supabase-test -> postgres/supabase-test - packages/graphile-test -> graphile/graphile-test
Summary
Syncs all packages from
constructive-db/pgpm-modules/into pgpm-modules, keeping existing package versions at 0.28.3 to avoid npm publish collisions.Key changes beyond the raw sync:
uuidpackage from CI matrix (deleted in sync)blueprint.status,blueprint.constructed_at)agent_chat_moduleverify/revert (no matching deploy)metaschema-modulesJest snapshots (8 snapshots)packages/*paths → actual git-tracked paths (pgpm/cli,postgres/pgsql-test,postgres/supabase-test,graphile/graphile-test)Companion constructive-db fix for the link source: constructive-io/constructive-db#357
Link to Devin session: https://app.devin.ai/sessions/35235eb1b0284bb2bbe40509f51fd606
Requested by: @pyramation