Skip to content

chore(sdk): regenerate the SDK and React hooks for the capabilities rename - #1695

Merged
pyramation merged 1 commit into
mainfrom
feat/sdk-capabilities-regen
Aug 10, 2026
Merged

chore(sdk): regenerate the SDK and React hooks for the capabilities rename#1695
pyramation merged 1 commit into
mainfrom
feat/sdk-capabilities-regen

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

sdk/constructive-sdk and sdk/constructive-react were still pre-rename (AppPermission, permissionId, permissions_module, DataPermissionsField). Both generate by introspecting a live server, so they only move when someone runs codegen — nothing in constructive-db's regeneration covers them.

Entirely generated output. Two steps, no source or config changes:

  1. Refreshed the nine SDL files in sdk/constructive-sdk/schemas/ from a local stack deployed off constructive-db@main (404c36ac792, i.e. after the data_permissionsdata_capabilities rename), printed with lexicographicSortSchema to match how the committed files were produced. permission now appears zero times across all of them. infra.graphql is untouched — that endpoint isn't served locally, and it never contained the renamed names.
  2. pnpm generate in both SDK packages, which also regenerates the .agents/skills/hooks-* reference docs.
-useCreateAppPermissionMutation, AppPermission, permissionId, DataPermissionsField
+useCreateAppCapabilityMutation, AppCapability, capabilityId, DataCapabilitiesField

The SDL refresh also picked up unrelated server drift that had accumulated since the last regeneration, e.g. signInMagicLink / signUpMagicLink on auth and insertNodesAtPaths on objects.

Both packages build (makage build --dev) and @constructive-io/react packs cleanly from dist/ (14,727 files) — it has never been published, so it will want a first publish alongside @constructive-io/sdk. Note the generated tree contains no .tsx, so no JSX handling is needed.

Link to Devin session: https://app.devin.ai/sessions/8f89acc9280e4cef880921d966e0e8fc
Requested by: @pyramation

@pyramation pyramation self-assigned this Aug 10, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit b4f5ced into main Aug 10, 2026
20 checks passed
@pyramation
pyramation deleted the feat/sdk-capabilities-regen branch August 10, 2026 02:50
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