better-supabase 0.33.0 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-IrglDJCs.d.ts → app-tables-Don-aNOB.d.ts} +1 -1
  3. package/dist/{authorization-BlmDNI2b.d.ts → authorization-DpVtxuKM.d.ts} +16 -1
  4. package/dist/{bind-DP-KLgYI.d.ts → bind-BA05aoY9.d.ts} +1 -1
  5. package/dist/{block-env-CJ38ZSTP.d.ts → block-env-UX42PHLP.d.ts} +3 -3
  6. package/dist/{block-tables-CQTU71zn.d.ts → block-tables-Bre1zjau.d.ts} +1 -1
  7. package/dist/blocks/ai-chat/index.d.ts +3 -3
  8. package/dist/blocks/announcements/index.d.ts +3 -3
  9. package/dist/blocks/api-keys/index.d.ts +1 -1
  10. package/dist/blocks/attachments/index.d.ts +1 -1
  11. package/dist/blocks/audit/index.d.ts +2 -2
  12. package/dist/blocks/automations/index.d.ts +1 -1
  13. package/dist/blocks/billing/index.d.ts +1 -1
  14. package/dist/blocks/bookings/index.d.ts +1 -1
  15. package/dist/blocks/calendar/index.d.ts +1 -1
  16. package/dist/blocks/comments/index.d.ts +4 -4
  17. package/dist/blocks/drive/index.js +1 -1
  18. package/dist/blocks/entitlements/index.d.ts +2 -2
  19. package/dist/blocks/forms/index.d.ts +1 -1
  20. package/dist/blocks/inbox/index.d.ts +4 -4
  21. package/dist/blocks/index.d.ts +1 -1
  22. package/dist/blocks/messaging/index.d.ts +4 -4
  23. package/dist/blocks/mfa/index.d.ts +1 -1
  24. package/dist/blocks/notifications/index.d.ts +3 -3
  25. package/dist/blocks/onboarding/index.d.ts +1 -1
  26. package/dist/blocks/organizations/index.d.ts +2 -2
  27. package/dist/blocks/permissions/index.d.ts +1 -1
  28. package/dist/blocks/push/index.d.ts +1 -1
  29. package/dist/blocks/reactions/index.d.ts +3 -3
  30. package/dist/blocks/saved-views/index.d.ts +1 -1
  31. package/dist/blocks/search/index.d.ts +2 -2
  32. package/dist/blocks/sessions/index.d.ts +1 -1
  33. package/dist/blocks/settings/index.d.ts +1 -1
  34. package/dist/blocks/subjects/index.d.ts +1 -1
  35. package/dist/blocks/tags/index.d.ts +1 -1
  36. package/dist/blocks/undo/index.d.ts +1 -1
  37. package/dist/blocks/usage/index.d.ts +1 -1
  38. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  39. package/dist/blocks/workflows/index.d.ts +3 -3
  40. package/dist/claims/index.d.ts +3 -3
  41. package/dist/cli/add-C13ZqJ_N.js +1 -0
  42. package/dist/cli/{add-BDLLVLI8.js → add-DoEtJhZG.js} +2 -2
  43. package/dist/cli/{add-D2pKTbPw.js → add-THXE7juv.js} +9 -9
  44. package/dist/cli/{app-table-files-CimWi_eh.js → app-table-files-BqLd5TuX.js} +2 -2
  45. package/dist/cli/{backfill-B1xAsdL4.js → backfill-D-2W0fNT.js} +1 -1
  46. package/dist/cli/bin.js +1 -1
  47. package/dist/cli/{blocks-rBeis04I.js → blocks-BVU_FoLo.js} +1 -1
  48. package/dist/cli/{blocks-DtZtn-R4.js → blocks-XwUHeyUH.js} +1 -1
  49. package/dist/cli/{cache-CvBRwv02.js → cache-D4nwCBXc.js} +1 -1
  50. package/dist/cli/{codemod-DYbVbJ-e.js → codemod-Dh4lf_k4.js} +1 -1
  51. package/dist/cli/{content-mapper-DrhtDsAm.js → content-mapper-CwFH_PEn.js} +2 -2
  52. package/dist/cli/{doctor-Dn4TzGmw.js → doctor-CyAMbZ_s.js} +14 -14
  53. package/dist/cli/{gen-BbeS0KgF.js → gen-EAUNnUY7.js} +11 -11
  54. package/dist/cli/index.d.ts +1 -1
  55. package/dist/cli/index.js +6 -6
  56. package/dist/cli/{init-C30xdMSs.js → init-BRmmmGHJ.js} +8 -8
  57. package/dist/cli/{live-Ctc8Qh9Y.js → live-CV9mn-xC.js} +2 -2
  58. package/dist/cli/{mcp-5J0kUOtD.js → mcp-CnaxcLWa.js} +2 -2
  59. package/dist/cli/{metadata-DxhUNctA.js → metadata-CFQGBR5E.js} +3 -3
  60. package/dist/cli/{migrate-ockrh3UX.js → migrate-z5oHDGNs.js} +1 -1
  61. package/dist/cli/{migration-safety-CLrqC0D-.js → migration-safety-BtAPMEZa.js} +1 -1
  62. package/dist/cli/{migrations-CZTg2UJM.js → migrations-CNa62JSi.js} +2 -2
  63. package/dist/cli/{module-migration-BptQzmj2.js → module-migration-CKJ8kRm1.js} +2 -2
  64. package/dist/cli/{powersync-DIvsipKr.js → powersync-BgoAWeRT.js} +3 -3
  65. package/dist/cli/powersync-DoCruiOt.js +1 -0
  66. package/dist/cli/{print-DdHt8xCc.js → print-CoqKHoy0.js} +2 -2
  67. package/dist/cli/{providers-k-1cEna6.js → providers-CfbFxUOQ.js} +1 -1
  68. package/dist/cli/{prune-workflows-Ddv-GfkO.js → prune-workflows-BigCoXLw.js} +1 -1
  69. package/dist/cli/{remove-DEEQDoc7.js → remove-C9zwn-Kk.js} +5 -5
  70. package/dist/cli/{render-SjSVz8yK.js → render-DQCU_kBW.js} +3 -3
  71. package/dist/cli/{run-Ixt9mEb6.js → run-CVaBuT18.js} +25 -25
  72. package/dist/cli/{run-DdhIK7-K.js → run-DOD00FFl.js} +8 -8
  73. package/dist/cli/{shared-p6sxli_5.js → shared-COtj7l3r.js} +1 -1
  74. package/dist/cli/{snapshot-Dd_8B9g-.js → snapshot-BvlEmTB0.js} +2 -2
  75. package/dist/cli/{source-BYvVe_Es.js → source-BhZRCitG.js} +1 -1
  76. package/dist/cli/{spec-liRzcZTa.js → spec-Bo2wIViH.js} +1 -1
  77. package/dist/cli/{spec-BxQgllJY.js → spec-DsMWuJLv.js} +2 -2
  78. package/dist/cli/{sql-layout-DHwiUOaD.js → sql-layout-CA7xgRjR.js} +2 -2
  79. package/dist/cli/{sync-CreQWj53.js → sync-D9xSGdzO.js} +4 -4
  80. package/dist/cli/{upgrade-U7IKj45h.js → upgrade-XK_CQKVJ.js} +2 -2
  81. package/dist/cli/{upgrade-3NQOUO1_.js → upgrade-Ykf0LLEB.js} +5 -5
  82. package/dist/cli/{version-mBwP-aMG.js → version-Dfdz7KSh.js} +1 -1
  83. package/dist/client/index.d.ts +5 -5
  84. package/dist/client/native/index.d.ts +4 -4
  85. package/dist/config/index.d.ts +2 -2
  86. package/dist/{context-D7jICqdN.d.ts → context-BGC0J3t9.d.ts} +1 -1
  87. package/dist/contract/index.d.ts +3 -3
  88. package/dist/{controller-DxtxeYdf.d.ts → controller-CQrkLoRX.d.ts} +1 -1
  89. package/dist/create/index.d.ts +3 -3
  90. package/dist/create/index.js +1 -1
  91. package/dist/create/lite/index.d.ts +3 -3
  92. package/dist/create/lite/index.js +1 -1
  93. package/dist/{entitlements-w04ivvAy.d.ts → entitlements-BOWTZaRf.d.ts} +1 -1
  94. package/dist/{field-errors-DKCaSlZw.d.ts → field-errors-DxPZYw2m.d.ts} +4 -4
  95. package/dist/{index-CbUXFzQV.d.ts → index-BfU0KR0X.d.ts} +1 -1
  96. package/dist/{index-BgkHbf9C.d.ts → index-Bhkag9ZE.d.ts} +6 -6
  97. package/dist/{index-BZCmy767.d.ts → index-Bz0WLuh_.d.ts} +2 -2
  98. package/dist/{index-DU0UwWvL.d.ts → index-CJB50jzQ.d.ts} +2 -2
  99. package/dist/{index-BdC2IqkU.d.ts → index-CeUwyJ3Z.d.ts} +2 -2
  100. package/dist/{index-CiE37wKX.d.ts → index-DNAkWDXc.d.ts} +1 -1
  101. package/dist/{index-BvcMQYL-.d.ts → index-QTZIopQj.d.ts} +1 -1
  102. package/dist/mapper/bin.js +5 -5
  103. package/dist/mcp/index.d.ts +1 -1
  104. package/dist/next/index.d.ts +4 -4
  105. package/dist/{operations-CsCwruKT.d.ts → operations-BG6prEnh.d.ts} +1 -1
  106. package/dist/{options-B56njigZ.js → options-CjocPkX1.js} +2 -0
  107. package/dist/otel/index.js +4 -4
  108. package/dist/{permissions-BP593xxk.d.ts → permissions-CoHsUtZS.d.ts} +1 -1
  109. package/dist/{ports-BVLhLUvR.d.ts → ports-XvgCe7ey.d.ts} +1 -1
  110. package/dist/powersync/index.d.ts +2 -2
  111. package/dist/preset/index.d.ts +3 -3
  112. package/dist/{project-D4ArwcS5.js → project-B7nqCzn5.js} +1 -1
  113. package/dist/{push-token-B0j171on.d.ts → push-token-kcc04ZaS.d.ts} +1 -1
  114. package/dist/react/index.d.ts +5 -5
  115. package/dist/react/native/index.d.ts +1 -1
  116. package/dist/react/server.d.ts +5 -5
  117. package/dist/realtime/index.d.ts +3 -3
  118. package/dist/records/index.d.ts +3 -3
  119. package/dist/server/index.d.ts +3 -3
  120. package/dist/solid/index.d.ts +5 -5
  121. package/dist/sql/index.d.ts +5 -5
  122. package/dist/sql/index.js +1 -1
  123. package/dist/{sql-DiUP7fKX.js → sql-DdtukoIm.js} +243 -110
  124. package/dist/ssr/index.d.ts +1 -1
  125. package/dist/svelte/index.d.ts +5 -5
  126. package/dist/{tenant-B3IIq8Eq.d.ts → tenant-DkKbvK5T.d.ts} +1 -1
  127. package/dist/testing/index.d.ts +3 -3
  128. package/dist/{topic-D2MyBeaI.d.ts → topic-B6zuexk7.d.ts} +1 -1
  129. package/dist/{types-BFEKRmEK.d.ts → types-BvHw2cCS.d.ts} +2 -2
  130. package/dist/vue/index.d.ts +5 -5
  131. package/dist/{watch-topic-q6krNw0T.d.ts → watch-topic-YYSVJGDY.d.ts} +1 -1
  132. package/dist/yjs/index.d.ts +1 -1
  133. package/package.json +1 -1
  134. package/schemas/config-v1.json +5 -0
  135. package/dist/cli/add-BaOCKKt6.js +0 -1
  136. package/dist/cli/powersync-CmsXOuui.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { h as subjectTagArgs } from "./config-DrrkMihk.js";
3
3
  import { d as readSupabaseToml, n as declarativeSchemasDir } from "./supabase-toml-B6-eEV5p.js";
4
- import { r as layoutFor } from "./providers-k-1cEna6.js";
5
- import { r as literal } from "./live-Ctc8Qh9Y.js";
4
+ import { r as layoutFor } from "./providers-CfbFxUOQ.js";
5
+ import { r as literal } from "./live-CV9mn-xC.js";
6
6
  import { join, resolve, sep } from "node:path";
7
7
  import { FIELD_FORMATS } from "better-supabase/config";
8
8
  import { APP_TABLES_MODULE, renderBlocks, setTableFeature } from "better-supabase/sql";
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-59XWXsRi.js";
4
4
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
5
5
  import { t as connect } from "./db-B8zfxjl2.js";
6
- import { n as ident } from "./live-Ctc8Qh9Y.js";
6
+ import { n as ident } from "./live-CV9mn-xC.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
8
8
  // src/cli/commands/backfill.ts
9
9
  const DEFAULT_BATCH = 1e3;
package/dist/cli/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as run } from "./run-Ixt9mEb6.js";
2
+ import { i as run } from "./run-CVaBuT18.js";
3
3
  import { t as colorEnabled } from "./style-B5-nByxb.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { basename } from "node:path";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
4
- import { n as listModules, t as printModule } from "./print-DdHt8xCc.js";
4
+ import { n as listModules, t as printModule } from "./print-CoqKHoy0.js";
5
5
  import { t as decodePresetInput } from "./preset-BQnjDCSR.js";
6
6
  import { BLOCK_CATEGORIES } from "better-supabase/blocks";
7
7
  import { PRESET_CATALOG, PRESET_NAMES, glueCommand } from "better-supabase/preset";
@@ -1 +1 @@
1
- export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-rBeis04I.js";
1
+ export { n as blocksListCommand, r as blocksSearchCommand, i as blocksViewCommand } from "./blocks-BVU_FoLo.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-mBwP-aMG.js";
1
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
2
2
  import { dirname, resolve } from "node:path";
3
3
  import { createHash } from "node:crypto";
4
4
  import { mkdir, readFile, rename, rm, writeFile } from "node:fs/promises";
@@ -4,7 +4,7 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
4
4
  import { t as migrateCliCall } from "./moved-BAFPdJz_.js";
5
5
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
6
6
  import { a as changedFiles, i as changeLines, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
7
- import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DHwiUOaD.js";
7
+ import { i as schemasDirOf, n as migrationsDir, o as writtenByBlocks } from "./sql-layout-CA7xgRjR.js";
8
8
  import { a as configObject, c as mask, f as setPathInConfig, g as skipSpace, h as setPresetInJson, i as closingIndex, l as properties, m as setPresetInConfig, o as indentAt, p as setPathInJson, t as addBlocksToConfig, v as codeRanges } from "./config-edit-C6sQ1MqT.js";
9
9
  import { i as legacyPrefixNames, n as LEGACY_PREFIXES, t as LEGACY_CLAIMS } from "./legacy-prefix-D8Jfku6I.js";
10
10
  import { a as REVIEW_0_15, c as renameSubpaths, r as PLUGIN_IMPORT_RENAMES, s as SUBPATH_RENAMES_0_15, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
@@ -1,6 +1,6 @@
1
1
  import { r as readIfExists } from "./io-CQzy8PEZ.js";
2
- import { t as CACHE_DIR } from "./cache-CvBRwv02.js";
3
- import { x as installedVersion } from "./snapshot-Dd_8B9g-.js";
2
+ import { t as CACHE_DIR } from "./cache-D4nwCBXc.js";
3
+ import { x as installedVersion } from "./snapshot-BvlEmTB0.js";
4
4
  import { t as i } from "./jsonc-u_UiXFxs.js";
5
5
  import { resolve } from "node:path";
6
6
  import { createHash } from "node:crypto";
@@ -1,37 +1,37 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
3
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
4
4
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
5
5
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-59XWXsRi.js";
6
6
  import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
7
- import { t as CACHE_DIR } from "./cache-CvBRwv02.js";
7
+ import { t as CACHE_DIR } from "./cache-D4nwCBXc.js";
8
8
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
9
- import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-Dd_8B9g-.js";
10
- import { d as configFor, r as renderFiles, u as notNullTag } from "./render-SjSVz8yK.js";
9
+ import { C as satisfies, S as peerVersions, c as isSqliteLiteDriver, n as managementTarget, o as snapshotFile, r as openSource, s as liteDriverOf, t as loadSnapshot, u as MetadataRejectedError } from "./snapshot-BvlEmTB0.js";
10
+ import { d as configFor, r as renderFiles, u as notNullTag } from "./render-DQCU_kBW.js";
11
11
  import { o as providerLabel } from "./authorization-DJkkOjjG.js";
12
12
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
13
- import { i as request } from "./source-BYvVe_Es.js";
13
+ import { i as request } from "./source-BhZRCitG.js";
14
14
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
15
15
  import { a as findRepoRoot, c as httpHooks, d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, n as declarativeSchemasDir, p as sqlWorkflow, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
16
16
  import { t as PROCESS_ENV } from "./env-BCuUsWOh.js";
17
17
  import { n as readStackStatus } from "./stack-status-Mxgqb3I4.js";
18
18
  import { t as connect } from "./db-B8zfxjl2.js";
19
- import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-DrhtDsAm.js";
19
+ import { a as hasContentMapper, c as supportsContentMappers, i as contentMapperSetup$1, n as TSCONFIG_SNIPPET, o as needsRunExternalCode, t as RUN_EXTERNAL_CODE } from "./content-mapper-CwFH_PEn.js";
20
20
  import { c as insideRoot, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
21
- import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-DdhIK7-K.js";
22
- import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-DHwiUOaD.js";
23
- import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-p6sxli_5.js";
24
- import { a as compiledReadSets } from "./providers-k-1cEna6.js";
25
- import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-BptQzmj2.js";
26
- import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-CLrqC0D-.js";
21
+ import { C as splinterTables, S as advisorRule, _ as withoutStrings, a as METADATA_GAPS_TEXT, b as appTablesOf, c as accessModule, d as RLS_RULES, f as appliesTo, g as policyHelpers, h as functionObject, l as entitlementsModule, m as functionBody, p as escape$2, s as AUTHORIZATION_RULES, u as COMMANDS$2, v as BLOCK_PREFIX, x as appViewsOf, y as blockTargets } from "./run-DOD00FFl.js";
22
+ import { n as migrationsDir, r as moduleLayoutFor, t as blockDeclaredTables } from "./sql-layout-CA7xgRjR.js";
23
+ import { a as permissionCatalogKeys, i as lineOf, l as tableObject, n as exposed, o as policyObject, r as exposedSchemas, s as qualified, t as catalogOf, u as workflowOf } from "./shared-COtj7l3r.js";
24
+ import { a as compiledReadSets } from "./providers-CfbFxUOQ.js";
25
+ import { i as migrationHolds, o as migrationModules, r as latestMigration, t as MODULES_SUFFIX } from "./module-migration-CKJ8kRm1.js";
26
+ import { o as wiringFor, r as configInstances, t as MIGRATION_SAFETY_RULES } from "./migration-safety-BtAPMEZa.js";
27
27
  import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
28
- import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-Ctc8Qh9Y.js";
28
+ import { i as reservedRoles, n as ident$1, r as literal$1, t as LIVE_RULES } from "./live-CV9mn-xC.js";
29
29
  import { a as sourceFlags, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
30
30
  import { i as PLUGIN_SUBPATH_RENAMES, n as BLOCK_SUBPATH_RENAMES, o as SPEC_SUBPATH_RENAMES, t as BLOCK_EXPORT_RENAMES } from "./codemod-block-renames-Dt3X1Wvg.js";
31
31
  import { n as PLATFORM_SCHEMAS } from "./in-stack-diff-huI7fGMX.js";
32
32
  import { a as staleVariables, i as stackEnvValues, r as redactValue, t as PREFIX_NAMES } from "./stack-env-BQhbUFa7.js";
33
33
  import { a as readSharedMemory, n as listStacks, t as branchName } from "./stacks-C5YL6Un9.js";
34
- import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-DxhUNctA.js";
34
+ import { i as refuseWithMetadata, r as readMetadataSnapshot } from "./metadata-CFQGBR5E.js";
35
35
  import { existsSync } from "node:fs";
36
36
  import { dirname, resolve } from "node:path";
37
37
  import { createHash } from "node:crypto";
@@ -1,22 +1,22 @@
1
1
  import { a as list, m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { a as parseNames, i as failedResult, n as CliError } from "./errors-DcJ_PayO.js";
4
- import { u as catalogFingerprint } from "./cache-CvBRwv02.js";
5
- import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-Dd_8B9g-.js";
4
+ import { u as catalogFingerprint } from "./cache-D4nwCBXc.js";
5
+ import { a as serializeSnapshot, g as serializeGenerator, h as restrictSchemas, o as snapshotFile, r as openSource, t as loadSnapshot } from "./snapshot-BvlEmTB0.js";
6
6
  import { d as GEN_TASKS, p as isGenTask } from "./config-DrrkMihk.js";
7
7
  import { c as insideRoot, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
8
- import { n as runGen } from "./run-DdhIK7-K.js";
9
- import { n as dataMigration } from "./migrations-CZTg2UJM.js";
10
- import { t as syncModules } from "./sync-CreQWj53.js";
11
- import { t as addModules } from "./add-BDLLVLI8.js";
12
- import { n as listModules, t as printModule } from "./print-DdHt8xCc.js";
8
+ import { n as runGen } from "./run-DOD00FFl.js";
9
+ import { n as dataMigration } from "./migrations-CNa62JSi.js";
10
+ import { t as syncModules } from "./sync-D9xSGdzO.js";
11
+ import { t as addModules } from "./add-DoEtJhZG.js";
12
+ import { n as listModules, t as printModule } from "./print-CoqKHoy0.js";
13
13
  import { a as sourceFlags, i as sourceArgs, n as SOURCE_ARGS } from "./source-args-Bz5QQne2.js";
14
- import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-DxhUNctA.js";
14
+ import { a as runMetadataGen, n as checkMetadataFlags, t as EMITS } from "./metadata-CFQGBR5E.js";
15
15
  import { a as runEnv } from "./env-BAJn6wCA.js";
16
- import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-BxQgllJY.js";
17
- import { n as runPowerSync } from "./powersync-DIvsipKr.js";
16
+ import { c as watchLoop, o as parseInterval, r as specOptionsFromConfig, s as stampFiles, t as runSpec } from "./spec-DsMWuJLv.js";
17
+ import { n as runPowerSync } from "./powersync-BgoAWeRT.js";
18
18
  import { t as runSeed } from "./seed-BpaqqyO8.js";
19
- import { t as upgrade } from "./upgrade-3NQOUO1_.js";
19
+ import { t as upgrade } from "./upgrade-Ykf0LLEB.js";
20
20
  import { existsSync } from "node:fs";
21
21
  import { resolve } from "node:path";
22
22
  // src/cli/commands/sql.ts
@@ -753,5 +753,5 @@ export declare function emitModule(model: Model, options: EmitOptions): string;
753
753
  export declare function loadConfig(cwd: string, explicit?: string, environment?: string, path?: string | undefined, options?: {
754
754
  readonly legacyTables?: boolean;
755
755
  }): Promise<ResolvedConfig>;
756
- export declare const VERSION = "0.33.0";
756
+ export declare const VERSION = "0.34.0";
757
757
  export type { Catalog, CatalogCheck, CatalogColumn, CatalogColumnGrant, CatalogEnum, CatalogForeignKey, CatalogFunction, CatalogFunctionArg, CatalogGrant, CatalogIndex, CatalogPolicy, CatalogTable, CatalogTrigger, CatalogUnique, Choice, Cli, CliArgs, CliCommand, CliCommandDef, CliContext, CliEnv, CliErrorCode, CliErrorOptions, CliIo, CliLog, CliProblem, CliProblemExtensions, CommandResult, CreateCliOptions, ExitCode, ExtrasFunction, ExtrasHook, ExtrasHookFunction, ExtrasTable, ForeignKeyAction, Format, GeneratorMetadata, IntrospectionSource, ManagementSourceOptions, NextStep, Paint, Prompter, Queryable, RunOptions, RunResult, Snapshot, SnapshotBucket, SnapshotExtras };
package/dist/cli/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { a as list, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
- import { i as run, n as createCli, r as help, t as commandNames } from "./run-Ixt9mEb6.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
2
+ import { i as run, n as createCli, r as help, t as commandNames } from "./run-CVaBuT18.js";
3
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
4
4
  import { n as CliError, t as CLI_ERRORS_URL } from "./errors-DcJ_PayO.js";
5
- import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-Dd_8B9g-.js";
6
- import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-SjSVz8yK.js";
7
- import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BYvVe_Es.js";
5
+ import { a as serializeSnapshot, i as parseSnapshot, l as introspect, t as loadSnapshot } from "./snapshot-BvlEmTB0.js";
6
+ import { a as emitBlockConfig, l as buildModel, o as GENERATED_HEADER, r as renderFiles, s as emitModule } from "./render-DQCU_kBW.js";
7
+ import { a as toCatalog, n as managementSource, r as pgSource } from "./source-BhZRCitG.js";
8
8
  import { s as loadConfig } from "./config-DrrkMihk.js";
9
- import { n as runGen } from "./run-DdhIK7-K.js";
9
+ import { n as runGen } from "./run-DOD00FFl.js";
10
10
  // src/cli/introspect/from-catalog.ts
11
11
  /**
12
12
  * Builds a snapshot from catalog records: the inverse of `toCatalog`. Tests and
@@ -2,17 +2,17 @@ import { a as list, m as commandMeta, r as defineCliCommand } from "./command-Bp
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as CliError } from "./errors-DcJ_PayO.js";
4
4
  import { r as readIfExists } from "./io-CQzy8PEZ.js";
5
- import { l as TYPEGEN_VERSION } from "./cache-CvBRwv02.js";
6
- import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-Dd_8B9g-.js";
7
- import { a as toCatalog } from "./source-BYvVe_Es.js";
5
+ import { l as TYPEGEN_VERSION } from "./cache-D4nwCBXc.js";
6
+ import { a as serializeSnapshot, t as loadSnapshot } from "./snapshot-BvlEmTB0.js";
7
+ import { a as toCatalog } from "./source-BhZRCitG.js";
8
8
  import { a as findConfig, s as loadConfig } from "./config-DrrkMihk.js";
9
- import { r as contentMapperFiles } from "./content-mapper-DrhtDsAm.js";
9
+ import { r as contentMapperFiles } from "./content-mapper-CwFH_PEn.js";
10
10
  import { c as insideRoot, i as changeLines, n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
11
- import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-D2pKTbPw.js";
12
- import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-CLrqC0D-.js";
11
+ import { C as promptConventions, S as hasConventionFlags, _ as templatePlan, b as conventionFlags, c as AUTHZ_NOTE, d as chooseIntegrations, f as integrationFiles, g as templateContextFor, h as parseIntegrations, i as blocksWiringPath, l as createUrlParam, m as packagesFor, o as writeDesign, p as overwrite, r as blockConfigImport, s as readPresetInput, u as CANCELLED, v as CONVENTION_ARGS, w as withConventions, x as defaultConventions, y as CONVENTION_COMPLETIONS } from "./add-THXE7juv.js";
12
+ import { a as wiringFiles, c as baseFiles, f as needsLib, i as wiringChecklist, m as suggestedIntegrations, n as latestMigrationVersion, o as wiringFor, p as resolveIntegrations, r as configInstances, s as TEMPLATES } from "./migration-safety-BtAPMEZa.js";
13
13
  import { n as installCommand, t as detectProject } from "./detect-BcUDaO8I.js";
14
- import { s as enablePgDelta, t as syncModules } from "./sync-CreQWj53.js";
15
- import { t as appTablePlan } from "./app-table-files-CimWi_eh.js";
14
+ import { s as enablePgDelta, t as syncModules } from "./sync-D9xSGdzO.js";
15
+ import { t as appTablePlan } from "./app-table-files-BqLd5TuX.js";
16
16
  import { existsSync } from "node:fs";
17
17
  import { join, posix, resolve } from "node:path";
18
18
  import { glob, readFile, readdir } from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { r as errorText } from "./errors-DcJ_PayO.js";
2
- import "./source-BYvVe_Es.js";
3
- import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-p6sxli_5.js";
2
+ import "./source-BhZRCitG.js";
3
+ import { l as tableObject, n as exposed, s as qualified, t as catalogOf } from "./shared-COtj7l3r.js";
4
4
  // src/cli/doctor/reserved-roles.ts
5
5
  /**
6
6
  * Supautils' `reserved_roles` on Supabase. Nobody but a superuser may alter,
@@ -1,6 +1,6 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
- import { a as envelope, i as run } from "./run-Ixt9mEb6.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
2
+ import { a as envelope, i as run } from "./run-CVaBuT18.js";
3
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
4
4
  import { n as CliError } from "./errors-DcJ_PayO.js";
5
5
  import { n as consentToken } from "./agent-59XWXsRi.js";
6
6
  import { C as optional, D as record, N as unknown, a as array, d as is, j as string$1, k as safeParse, t as PROCESS_ENV, x as object } from "./env-BCuUsWOh.js";
@@ -1,8 +1,8 @@
1
1
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
2
2
  import { i as readStdin } from "./io-CQzy8PEZ.js";
3
- import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-Dd_8B9g-.js";
4
- import { c as metaPaths, n as render } from "./render-SjSVz8yK.js";
5
- import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-DdhIK7-K.js";
3
+ import { m as parseMetadataDocument, u as MetadataRejectedError } from "./snapshot-BvlEmTB0.js";
4
+ import { c as metaPaths, n as render } from "./render-DQCU_kBW.js";
5
+ import { i as generationNotices, n as runGen, o as fromMetadata, r as UNFORMATTED, t as refuseRowConditionedBuckets } from "./run-DOD00FFl.js";
6
6
  import { basename, join, relative, resolve, sep } from "node:path";
7
7
  import { readFile } from "node:fs/promises";
8
8
  import { jsonSchema, standardSchema, valibot, zod } from "better-supabase/config";
@@ -1,7 +1,7 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
4
- import { t as appTablePlan } from "./app-table-files-CimWi_eh.js";
4
+ import { t as appTablePlan } from "./app-table-files-BqLd5TuX.js";
5
5
  // src/cli/commands/migrate.ts
6
6
  const MIGRATE_ARGS = {};
7
7
  /**
@@ -1,5 +1,5 @@
1
1
  import { f as INTEGRATIONS } from "./config-DrrkMihk.js";
2
- import { c as splitStatements } from "./shared-p6sxli_5.js";
2
+ import { c as splitStatements } from "./shared-COtj7l3r.js";
3
3
  import { dirname, join, posix } from "node:path";
4
4
  import { readdir } from "node:fs/promises";
5
5
  import { INTEGRATION_INFO, groupEntries } from "better-supabase/config";
@@ -1,7 +1,7 @@
1
1
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
2
2
  import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
4
- import { r as layoutFor } from "./providers-k-1cEna6.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CA7xgRjR.js";
4
+ import { r as layoutFor } from "./providers-CfbFxUOQ.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions, renderBlocks } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { d as readSupabaseToml, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
2
2
  import { i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
4
- import { i as stampAfter } from "./migrations-CZTg2UJM.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CA7xgRjR.js";
4
+ import { i as stampAfter } from "./migrations-CNa62JSi.js";
5
5
  import { resolve } from "node:path";
6
6
  import { readFile, readdir } from "node:fs/promises";
7
7
  import { moduleSchemaExtensions } from "better-supabase/sql";
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { n as PLAN_ARGS, r as applyPlan, u as planResult } from "./files-DQayErI8.js";
3
- import { n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
4
- import { r as layoutFor } from "./providers-k-1cEna6.js";
5
- import { i as stampAfter } from "./migrations-CZTg2UJM.js";
3
+ import { n as migrationsDir } from "./sql-layout-CA7xgRjR.js";
4
+ import { r as layoutFor } from "./providers-CfbFxUOQ.js";
5
+ import { i as stampAfter } from "./migrations-CNa62JSi.js";
6
6
  import { existsSync } from "node:fs";
7
7
  import { join, resolve } from "node:path";
8
8
  import { readFile, readdir } from "node:fs/promises";
@@ -0,0 +1 @@
1
+ export { t as powersyncStreamsCommand } from "./powersync-BgoAWeRT.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
- import { n as layout } from "./providers-k-1cEna6.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BptQzmj2.js";
2
+ import { n as layout } from "./providers-CfbFxUOQ.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-CKJ8kRm1.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { resolve } from "node:path";
6
6
  import { SQL_MODULES, contractSignature, customContracts, moduleBody, moduleFilePaths } from "better-supabase/sql";
@@ -1,7 +1,7 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { a as moduleKeyProblems, i as entitlementsMode, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
3
3
  import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
4
- import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-DHwiUOaD.js";
4
+ import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-CA7xgRjR.js";
5
5
  import { resolve } from "node:path";
6
6
  import { compileReadSets, moduleLayout, modulePermissionKeys, resolveBlocks } from "better-supabase/sql";
7
7
  import { isReadSet } from "better-supabase";
@@ -3,7 +3,7 @@ import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
3
3
  import { i as isLocalDatabaseUrl, r as databaseHost } from "./agent-59XWXsRi.js";
4
4
  import { l as stdinDatabaseUrl, n as databaseUrl } from "./config-DrrkMihk.js";
5
5
  import { t as connect } from "./db-B8zfxjl2.js";
6
- import { n as ident } from "./live-Ctc8Qh9Y.js";
6
+ import { n as ident } from "./live-CV9mn-xC.js";
7
7
  import { r as STACK_ARG, t as DB_URL_STDIN_ARG } from "./source-args-Bz5QQne2.js";
8
8
  // src/cli/commands/prune-workflows.ts
9
9
  const TERMINAL = [
@@ -3,14 +3,14 @@ import { i as plain } from "./style-B5-nByxb.js";
3
3
  import { n as CliError } from "./errors-DcJ_PayO.js";
4
4
  import { r as readIfExists, t as display } from "./io-CQzy8PEZ.js";
5
5
  import { i as changeLines, n as PLAN_ARGS, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
6
- import { a as sqlPlan } from "./sql-layout-DHwiUOaD.js";
7
- import { r as layoutFor } from "./providers-k-1cEna6.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-D2pKTbPw.js";
6
+ import { a as sqlPlan } from "./sql-layout-CA7xgRjR.js";
7
+ import { r as layoutFor } from "./providers-CfbFxUOQ.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-THXE7juv.js";
9
9
  import { t as detectProject } from "./detect-BcUDaO8I.js";
10
10
  import { _ as wiringBlocks, a as configObject, c as mask, i as closingIndex, l as properties } from "./config-edit-C6sQ1MqT.js";
11
- import { n as guardedRemoval } from "./sync-CreQWj53.js";
11
+ import { n as guardedRemoval } from "./sync-D9xSGdzO.js";
12
12
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
13
- import { t as blockNames } from "./blocks-rBeis04I.js";
13
+ import { t as blockNames } from "./blocks-BVU_FoLo.js";
14
14
  import { i as tidyInline, t as cutRange } from "./config-group-D4JWh4kG.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { resolve } from "node:path";
@@ -1,11 +1,11 @@
1
1
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
2
2
  import { n as importPath } from "./io-CQzy8PEZ.js";
3
- import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-CvBRwv02.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-D4nwCBXc.js";
4
4
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
5
- import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-Dd_8B9g-.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-BvlEmTB0.js";
6
6
  import { s as providerTruncatedClaim } from "./authorization-DJkkOjjG.js";
7
7
  import { t as isRecord$1 } from "./guards-DxwRG0Uv.js";
8
- import { a as toCatalog } from "./source-BYvVe_Es.js";
8
+ import { a as toCatalog } from "./source-BhZRCitG.js";
9
9
  import { m as withTableTags } from "./config-DrrkMihk.js";
10
10
  import { basename, dirname, isAbsolute, join, posix, relative, resolve } from "node:path";
11
11
  import { entityNames } from "better-supabase/blocks";
@@ -1,6 +1,6 @@
1
1
  import { c as runsWithInvalidConfig, d as DOCS_ORIGIN, f as GROUPS, g as runCommand, h as parseArgs$2, i as joinRepeated, l as COMMANDS, o as listArgs, p as RESERVED_NAMES, s as readsLegacyTables, t as GLOBAL_ARGS } from "./command-BpZ4AuhR.js";
2
2
  import { n as highlight, r as painter } from "./style-B5-nByxb.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
3
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
4
4
  import { n as CliError, o as toCliError } from "./errors-DcJ_PayO.js";
5
5
  import { a as missingInputNext, o as resolveAgent, t as checkConsent } from "./agent-59XWXsRi.js";
6
6
  import { a as globalFlags, c as resolveCommand, i as commandTree, n as closestName, o as isVariadic, r as commandArgs, t as checkArgs } from "./parse-BueItuNJ.js";
@@ -16,41 +16,41 @@ import { resolve } from "node:path";
16
16
  * loads on demand, so `--version` and `--help` import no command.
17
17
  */
18
18
  const LOADERS = [
19
- ["init", () => import("./init-C30xdMSs.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-BaOCKKt6.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-DEEQDoc7.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-U7IKj45h.js").then((m) => m.upgradeCommand)],
19
+ ["init", () => import("./init-BRmmmGHJ.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-C13ZqJ_N.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-C9zwn-Kk.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-XK_CQKVJ.js").then((m) => m.upgradeCommand)],
23
23
  ["table", () => import("./table-D9FbJS8h.js").then((m) => m.tableCommand)],
24
- ["migrate schema-first", () => import("./migrate-ockrh3UX.js").then((m) => m.migrateSchemaFirstCommand)],
25
- ["gen", () => import("./gen-BbeS0KgF.js").then((m) => m.genCommand)],
26
- ["doctor", () => import("./doctor-Dn4TzGmw.js").then((m) => m.doctorCommand)],
24
+ ["migrate schema-first", () => import("./migrate-z5oHDGNs.js").then((m) => m.migrateSchemaFirstCommand)],
25
+ ["gen", () => import("./gen-EAUNnUY7.js").then((m) => m.genCommand)],
26
+ ["doctor", () => import("./doctor-CyAMbZ_s.js").then((m) => m.doctorCommand)],
27
27
  ["db query", () => import("./db-Diy1OebO.js").then((m) => m.dbQueryCommand)],
28
28
  ["db diff", () => import("./db-Diy1OebO.js").then((m) => m.dbDiffCommand)],
29
29
  ["db seed", () => import("./seed-ByLneY1H.js").then((m) => m.seedCommand)],
30
- ["db backfill", () => import("./backfill-B1xAsdL4.js").then((m) => m.dbBackfillCommand)],
31
- ["db prune-workflows", () => import("./prune-workflows-Ddv-GfkO.js").then((m) => m.dbPruneWorkflowsCommand)],
30
+ ["db backfill", () => import("./backfill-D-2W0fNT.js").then((m) => m.dbBackfillCommand)],
31
+ ["db prune-workflows", () => import("./prune-workflows-BigCoXLw.js").then((m) => m.dbPruneWorkflowsCommand)],
32
32
  ["dev env", () => import("./env-UN6PJFX6.js").then((m) => m.envCommand)],
33
33
  ["dev run", () => import("./run-dY9uOC3W.js").then((m) => m.runCommand)],
34
34
  ["dev keys", () => import("./keys-CxajkV_7.js").then((m) => m.keysCommand)],
35
35
  ["dev stack ls", () => import("./stack-147NqctC.js").then((m) => m.stackLsCommand)],
36
36
  ["dev stack prune", () => import("./stack-147NqctC.js").then((m) => m.stackPruneCommand)],
37
- ["blocks list", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksListCommand)],
38
- ["blocks view", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksViewCommand)],
39
- ["blocks search", () => import("./blocks-DtZtn-R4.js").then((m) => m.blocksSearchCommand)],
40
- ["powersync streams", () => import("./powersync-CmsXOuui.js").then((m) => m.powersyncStreamsCommand)],
41
- ["spec emit", () => import("./spec-liRzcZTa.js").then((m) => m.specEmitCommand)],
42
- ["spec validate", () => import("./spec-liRzcZTa.js").then((m) => m.specValidateCommand)],
43
- ["mcp", () => import("./mcp-5J0kUOtD.js").then((m) => m.mcpCommand)],
37
+ ["blocks list", () => import("./blocks-XwUHeyUH.js").then((m) => m.blocksListCommand)],
38
+ ["blocks view", () => import("./blocks-XwUHeyUH.js").then((m) => m.blocksViewCommand)],
39
+ ["blocks search", () => import("./blocks-XwUHeyUH.js").then((m) => m.blocksSearchCommand)],
40
+ ["powersync streams", () => import("./powersync-DoCruiOt.js").then((m) => m.powersyncStreamsCommand)],
41
+ ["spec emit", () => import("./spec-Bo2wIViH.js").then((m) => m.specEmitCommand)],
42
+ ["spec validate", () => import("./spec-Bo2wIViH.js").then((m) => m.specValidateCommand)],
43
+ ["mcp", () => import("./mcp-CnaxcLWa.js").then((m) => m.mcpCommand)],
44
44
  ["skills list", () => import("./skills-jZThjL3B.js").then((m) => m.skillsListCommand)],
45
45
  ["skills install", () => import("./skills-jZThjL3B.js").then((m) => m.skillsInstallCommand)],
46
- ["codemod 0.4", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.4"))],
47
- ["codemod 0.5", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.5"))],
48
- ["codemod 0.6", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.6"))],
49
- ["codemod 0.9", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.9"))],
50
- ["codemod 0.11", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.11"))],
51
- ["codemod 0.15", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.15"))],
52
- ["codemod 0.29", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.29"))],
53
- ["codemod 0.32", () => import("./codemod-DYbVbJ-e.js").then((m) => m.codemodCommand("0.32"))],
46
+ ["codemod 0.4", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.4"))],
47
+ ["codemod 0.5", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.5"))],
48
+ ["codemod 0.6", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.6"))],
49
+ ["codemod 0.9", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.9"))],
50
+ ["codemod 0.11", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.11"))],
51
+ ["codemod 0.15", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.15"))],
52
+ ["codemod 0.29", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.29"))],
53
+ ["codemod 0.32", () => import("./codemod-Dh4lf_k4.js").then((m) => m.codemodCommand("0.32"))],
54
54
  ["completion", () => import("./completion-B08Q0xB3.js").then((m) => m.completionCommand)],
55
55
  ["config", () => import("./config-D-Upz3jV.js").then((m) => m.configCommand)]
56
56
  ];
@@ -1,16 +1,16 @@
1
1
  import { r as errorText } from "./errors-DcJ_PayO.js";
2
2
  import { a as sameText, t as display } from "./io-CQzy8PEZ.js";
3
- import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-CvBRwv02.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-D4nwCBXc.js";
4
4
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
5
- import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-Dd_8B9g-.js";
6
- import { n as render } from "./render-SjSVz8yK.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-BvlEmTB0.js";
6
+ import { n as render } from "./render-DQCU_kBW.js";
7
7
  import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements, t as accessProviderMode } from "./authorization-DJkkOjjG.js";
8
- import { s as schemaStampPath } from "./content-mapper-DrhtDsAm.js";
8
+ import { s as schemaStampPath } from "./content-mapper-CwFH_PEn.js";
9
9
  import { a as changedFiles, d as fileDiff, i as changeLines, r as applyPlan, s as hasConflicts } from "./files-DQayErI8.js";
10
- import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-DHwiUOaD.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-p6sxli_5.js";
12
- import { a as compiledReadSets } from "./providers-k-1cEna6.js";
13
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-BptQzmj2.js";
10
+ import { n as migrationsDir, o as writtenByBlocks } from "./sql-layout-CA7xgRjR.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-COtj7l3r.js";
12
+ import { a as compiledReadSets } from "./providers-CfbFxUOQ.js";
13
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-CKJ8kRm1.js";
14
14
  import { existsSync } from "node:fs";
15
15
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
16
16
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-BYvVe_Es.js";
1
+ import { a as toCatalog } from "./source-BhZRCitG.js";
2
2
  import { h as tomlGet, p as sqlWorkflow, r as detectWorkflow } from "./supabase-toml-B6-eEV5p.js";
3
3
  // src/cli/doctor/shared.ts
4
4
  const catalogs = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
1
  import { n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
2
- import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-CvBRwv02.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-D4nwCBXc.js";
3
3
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
4
- import { n as managementSource, r as pgSource } from "./source-BYvVe_Es.js";
4
+ import { n as managementSource, r as pgSource } from "./source-BhZRCitG.js";
5
5
  import { n as databaseUrl, u as accessToken } from "./config-DrrkMihk.js";
6
6
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, u as pgFunctionHooks } from "./supabase-toml-B6-eEV5p.js";
7
7
  import { t as connect } from "./db-B8zfxjl2.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "./version-mBwP-aMG.js";
1
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
2
2
  import { n as CliError } from "./errors-DcJ_PayO.js";
3
3
  import { r as redactUrl } from "./redact--zOGdWzo.js";
4
4
  import { n as HTTP_CHANNEL } from "./trace-D3TNqWBg.js";
@@ -1 +1 @@
1
- export { n as specEmitCommand, i as specValidateCommand } from "./spec-BxQgllJY.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-DsMWuJLv.js";
@@ -1,9 +1,9 @@
1
1
  import { n as __require, t as __commonJSMin } from "./rolldown-runtime-DegdyBIC.js";
2
2
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
3
- import { t as VERSION } from "./version-mBwP-aMG.js";
3
+ import { t as VERSION } from "./version-Dfdz7KSh.js";
4
4
  import { i as failedResult, n as CliError, r as errorText } from "./errors-DcJ_PayO.js";
5
5
  import { t as display } from "./io-CQzy8PEZ.js";
6
- import { c as writeAtomic, t as CACHE_DIR } from "./cache-CvBRwv02.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-D4nwCBXc.js";
7
7
  import { t as isRecord } from "./guards-DxwRG0Uv.js";
8
8
  import { t as importFresh } from "./fresh-import-CdO2oQaQ.js";
9
9
  import { a as changedFiles, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
@@ -1,5 +1,5 @@
1
- import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-Dd_8B9g-.js";
2
- import { a as toCatalog } from "./source-BYvVe_Es.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-BvlEmTB0.js";
2
+ import { a as toCatalog } from "./source-BhZRCitG.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, n as declarativeSchemasDir, p as sqlWorkflow } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { existsSync } from "node:fs";
5
5
  import { dirname, join, relative, resolve, sep } from "node:path";
@@ -2,10 +2,10 @@ import { n as CliError } from "./errors-DcJ_PayO.js";
2
2
  import { t as display } from "./io-CQzy8PEZ.js";
3
3
  import { d as readSupabaseToml, f as schemaPaths, h as tomlGet, i as diffEngine, l as migrationCommand, o as findSupabaseRoot, p as sqlWorkflow, t as PGDELTA_TABLE } from "./supabase-toml-B6-eEV5p.js";
4
4
  import { d as fileDiff, i as changeLines, l as keepHandEdit, o as handEditedError, r as applyPlan, t as HAND_EDITED, u as planResult } from "./files-DQayErI8.js";
5
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-DHwiUOaD.js";
6
- import { r as layoutFor } from "./providers-k-1cEna6.js";
7
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-CZTg2UJM.js";
8
- import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-BptQzmj2.js";
5
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-CA7xgRjR.js";
6
+ import { r as layoutFor } from "./providers-CfbFxUOQ.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-CNa62JSi.js";
8
+ import { c as sameModuleMigration, l as writeLatestMigration, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-CKJ8kRm1.js";
9
9
  import { t as loadTopics } from "./topics-Cdg0V7Tt.js";
10
10
  import { t as orphanedBlockFiles } from "./orphans-CPcR85QN.js";
11
11
  import { dirname, join, resolve } from "node:path";
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-BpZ4AuhR.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as syncModules } from "./sync-CreQWj53.js";
3
+ import { t as syncModules } from "./sync-D9xSGdzO.js";
4
4
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
5
- import { t as upgrade } from "./upgrade-3NQOUO1_.js";
5
+ import { t as upgrade } from "./upgrade-Ykf0LLEB.js";
6
6
  // src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {