better-supabase 0.41.0 → 0.42.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 (159) hide show
  1. package/dist/ai-sdk/agents/index.d.ts +2 -2
  2. package/dist/{app-tables-kHGNXFsd.d.ts → app-tables-DGgCgRwq.d.ts} +1 -1
  3. package/dist/{approvals-CTVaWq1O.d.ts → approvals-CYbTzQ7v.d.ts} +39 -1
  4. package/dist/{approvals-Qjn42OAZ.js → approvals-cyL5CmU7.js} +15 -3
  5. package/dist/{authorization-CS5Q1V7A.d.ts → authorization-CcvJbvr1.d.ts} +30 -2
  6. package/dist/{bind-XrFxNm5r.d.ts → bind-B71jMEGG.d.ts} +1 -1
  7. package/dist/{block-env-CHFHOjvz.d.ts → block-env-DzYTC9d1.d.ts} +3 -3
  8. package/dist/{block-subjects-Bz95_dqA.js → block-subjects-a_ECM9o0.js} +1 -1
  9. package/dist/{block-tables-EXcmuOJT.d.ts → block-tables-B92SBFqM.d.ts} +1 -1
  10. package/dist/blocks/ai-chat/index.d.ts +3 -3
  11. package/dist/blocks/announcements/index.d.ts +3 -3
  12. package/dist/blocks/api-keys/index.d.ts +1 -1
  13. package/dist/blocks/approvals/index.d.ts +2 -2
  14. package/dist/blocks/approvals/index.js +2 -2
  15. package/dist/blocks/attachments/index.d.ts +1 -1
  16. package/dist/blocks/audit/index.d.ts +2 -2
  17. package/dist/blocks/automations/index.d.ts +2 -2
  18. package/dist/blocks/billing/index.d.ts +1 -1
  19. package/dist/blocks/bookings/index.d.ts +1 -1
  20. package/dist/blocks/calendar/index.d.ts +1 -1
  21. package/dist/blocks/comments/index.d.ts +4 -4
  22. package/dist/blocks/drive/index.d.ts +1 -1
  23. package/dist/blocks/entitlements/index.d.ts +2 -2
  24. package/dist/blocks/expenses/index.js +1 -1
  25. package/dist/blocks/forms/index.d.ts +1 -1
  26. package/dist/blocks/inbox/index.d.ts +4 -4
  27. package/dist/blocks/index.d.ts +1 -1
  28. package/dist/blocks/invoices/index.d.ts +14 -5
  29. package/dist/blocks/invoices/index.js +16 -8
  30. package/dist/blocks/leave/index.js +1 -1
  31. package/dist/blocks/messaging/index.d.ts +4 -4
  32. package/dist/blocks/mfa/index.d.ts +1 -1
  33. package/dist/blocks/notifications/index.d.ts +3 -3
  34. package/dist/blocks/onboarding/index.d.ts +1 -1
  35. package/dist/blocks/organizations/index.d.ts +2 -2
  36. package/dist/blocks/permissions/index.d.ts +1 -1
  37. package/dist/blocks/push/index.d.ts +1 -1
  38. package/dist/blocks/reactions/index.d.ts +3 -3
  39. package/dist/blocks/saved-views/index.d.ts +1 -1
  40. package/dist/blocks/search/index.d.ts +2 -2
  41. package/dist/blocks/sessions/index.d.ts +1 -1
  42. package/dist/blocks/settings/index.d.ts +1 -1
  43. package/dist/blocks/subjects/index.d.ts +1 -1
  44. package/dist/blocks/tags/index.d.ts +1 -1
  45. package/dist/blocks/undo/index.d.ts +1 -1
  46. package/dist/blocks/usage/index.d.ts +1 -1
  47. package/dist/blocks/workflow-editor/index.d.ts +3 -3
  48. package/dist/blocks/workflows/index.d.ts +3 -3
  49. package/dist/claims/index.d.ts +3 -3
  50. package/dist/cli/add-BbhRYaFe.js +1 -0
  51. package/dist/cli/{add-BGErz-yb.js → add-NosuEQn1.js} +10 -10
  52. package/dist/cli/{add-DU5HAq6w.js → add-U0pyhIyx.js} +2 -2
  53. package/dist/cli/{app-table-files-Drzpekpt.js → app-table-files-DUi898lB.js} +2 -2
  54. package/dist/cli/{app-tables-dZpH63--.js → app-tables-BINtREbx.js} +2 -2
  55. package/dist/cli/{backfill-B-p-19g6.js → backfill-VfqI5GqN.js} +1 -1
  56. package/dist/cli/bin.js +1 -1
  57. package/dist/cli/{blocks-iUjNl5yJ.js → blocks-Bo2Lw2UO.js} +1 -1
  58. package/dist/cli/{blocks-Ews-FZZO.js → blocks-DsEaPf6J.js} +1 -1
  59. package/dist/cli/{cache-JT4JhdmX.js → cache-CNJD8OdR.js} +1 -1
  60. package/dist/cli/{codemod-KIxYiazj.js → codemod-BWa3Bte6.js} +1 -1
  61. package/dist/cli/{content-mapper-DkXzxt6f.js → content-mapper-Dl50Ny6a.js} +2 -2
  62. package/dist/cli/{doctor-VWanOD74.js → doctor-B9GtOGSa.js} +15 -15
  63. package/dist/cli/{gen-_lBdTgaR.js → gen-CIUD1sgB.js} +11 -11
  64. package/dist/cli/index.d.ts +1 -1
  65. package/dist/cli/index.js +6 -6
  66. package/dist/cli/{init-Cm6n4u_3.js → init-wl5jk5vX.js} +8 -8
  67. package/dist/cli/{live-D4iSuTmS.js → live-B0f_X3rI.js} +2 -2
  68. package/dist/cli/{mcp-CHYX7utI.js → mcp-CZWaBkXY.js} +2 -2
  69. package/dist/cli/{metadata-DLba0VjH.js → metadata-Bi5eQP4w.js} +3 -3
  70. package/dist/cli/{migrate-nQhh0nEJ.js → migrate-DMITLPEu.js} +1 -1
  71. package/dist/cli/{migration-safety-C2d3BSTf.js → migration-safety-2n8e8njJ.js} +1 -1
  72. package/dist/cli/{migrations-BOmMcme9.js → migrations-C5k9hNOo.js} +2 -2
  73. package/dist/cli/{module-migration-DSDB473C.js → module-migration-BFchEhAJ.js} +2 -2
  74. package/dist/cli/{powersync-CAHvPkkb.js → powersync-DViexv6m.js} +3 -3
  75. package/dist/cli/powersync-i7KJcTtM.js +1 -0
  76. package/dist/cli/{print-CahE8HYK.js → print-ChX1vQhO.js} +2 -2
  77. package/dist/cli/{providers-CL5Z5Uj4.js → providers-lwK2lplZ.js} +1 -1
  78. package/dist/cli/{prune-workflows-C9xO0fRU.js → prune-workflows-DO3nRZFF.js} +1 -1
  79. package/dist/cli/{remove-DIy7gthm.js → remove-WB9dFyNn.js} +5 -5
  80. package/dist/cli/{render-CoCZr3Ru.js → render-B0MMWWZE.js} +3 -3
  81. package/dist/cli/{run-BBj137Fn.js → run-CMvwtBX9.js} +27 -27
  82. package/dist/cli/{run-CVw8hmLk.js → run-CmJbNG2-.js} +9 -9
  83. package/dist/cli/{shared-BdKeo7xp.js → shared-BL5kcRdz.js} +1 -1
  84. package/dist/cli/{snapshot-P2ww2xCt.js → snapshot-CVB9Ri2a.js} +2 -2
  85. package/dist/cli/{source-BCs4oBl2.js → source-COGgsYiV.js} +1 -1
  86. package/dist/cli/{spec-oPbt9sbZ.js → spec-002zD_9Z.js} +1 -1
  87. package/dist/cli/{spec-uCpXPLoF.js → spec-CH6Qd2LE.js} +2 -2
  88. package/dist/cli/{sql-layout-Bsnge2oW.js → sql-layout-jZOzCj-S.js} +2 -2
  89. package/dist/cli/{sync-Cv7iBRhe.js → sync-I4x-1aVx.js} +4 -4
  90. package/dist/cli/{upgrade-C6jWNxkc.js → upgrade-BRp5AxAY.js} +2 -2
  91. package/dist/cli/{upgrade-DV7jTRdh.js → upgrade-C60BZggI.js} +5 -5
  92. package/dist/cli/{version-Hza4Q2PB.js → version-CRCAxS2s.js} +1 -1
  93. package/dist/client/index.d.ts +5 -5
  94. package/dist/client/native/index.d.ts +4 -4
  95. package/dist/config/index.d.ts +2 -2
  96. package/dist/config/index.js +4 -4
  97. package/dist/{config-DwXYtmwt.js → config-2SwAe0Im.js} +3 -3
  98. package/dist/{config-B7hnJFxh.js → config-BND2PFGs.js} +1 -1
  99. package/dist/{context-tFoygone.d.ts → context-DXWyPNzr.d.ts} +3 -1
  100. package/dist/contract/index.d.ts +3 -3
  101. package/dist/{controller-phhsPHSz.d.ts → controller-D3MPVovD.d.ts} +1 -1
  102. package/dist/create/index.d.ts +3 -3
  103. package/dist/create/index.js +3 -3
  104. package/dist/create/lite/index.d.ts +3 -3
  105. package/dist/create/lite/index.js +2 -2
  106. package/dist/{entitlements-LfW6S2RW.d.ts → entitlements-CljrSoWD.d.ts} +1 -1
  107. package/dist/eve/index.d.ts +1 -1
  108. package/dist/eve/index.js +1 -1
  109. package/dist/{field-errors-CMWRPBmF.d.ts → field-errors-C4NOUBpu.d.ts} +4 -4
  110. package/dist/{index-BXkPvYzd.d.ts → index-Bjj-GNhd.d.ts} +1 -1
  111. package/dist/{index-X5igfnIi.d.ts → index-BrGOE0c2.d.ts} +2 -2
  112. package/dist/{index-RZqQdq1G.d.ts → index-CUxdZYSi.d.ts} +2 -2
  113. package/dist/{index-B21Pim3I.d.ts → index-D5qW2cRD.d.ts} +2 -2
  114. package/dist/{index-fmrLdtVT.d.ts → index-DWVDKVYA.d.ts} +1 -1
  115. package/dist/{index-D-uiT4Qz.d.ts → index-DhHtsi-q.d.ts} +1 -1
  116. package/dist/{index-B-HuxATL.d.ts → index-DmSDAFkF.d.ts} +6 -6
  117. package/dist/{instances-DJOknCJ0.js → instances-DwrdFwKq.js} +2 -0
  118. package/dist/mapper/bin.js +5 -5
  119. package/dist/mcp/index.d.ts +1 -1
  120. package/dist/next/index.d.ts +4 -4
  121. package/dist/{operations-Cm4mSrAX.d.ts → operations-DFmuxaxW.d.ts} +1 -1
  122. package/dist/{options-zsLpIqBA.js → options-B1oSaIZ4.js} +2 -1
  123. package/dist/{options-CYZH9uxU.js → options-BXiUftgG.js} +3 -1
  124. package/dist/{options-CzxG2Phg.js → options-DLJTiX29.js} +3 -1
  125. package/dist/otel/index.js +4 -4
  126. package/dist/{permissions-r0Cxhxos.d.ts → permissions-Bsd4mEEZ.d.ts} +1 -1
  127. package/dist/{ports-BJJJmfWK.d.ts → ports-BKdt_9Oe.d.ts} +1 -1
  128. package/dist/powersync/index.d.ts +2 -2
  129. package/dist/preset/index.d.ts +3 -3
  130. package/dist/preset/index.js +3 -3
  131. package/dist/{preset-U47pzJMK.js → preset-CenE7f1G.js} +2 -2
  132. package/dist/{project-Dng8tO8S.js → project-Ceh2yTSv.js} +5 -5
  133. package/dist/{push-token-CA31xmQr.d.ts → push-token-DRcEl9Ce.d.ts} +1 -1
  134. package/dist/react/index.d.ts +5 -5
  135. package/dist/react/native/index.d.ts +1 -1
  136. package/dist/react/server.d.ts +5 -5
  137. package/dist/realtime/index.d.ts +3 -3
  138. package/dist/records/index.d.ts +3 -3
  139. package/dist/server/index.d.ts +3 -3
  140. package/dist/solid/index.d.ts +5 -5
  141. package/dist/sql/index.d.ts +5 -5
  142. package/dist/sql/index.js +3 -3
  143. package/dist/{sql-BudVz33a.js → sql-BIniB45X.js} +481 -163
  144. package/dist/ssr/index.d.ts +1 -1
  145. package/dist/svelte/index.d.ts +5 -5
  146. package/dist/{tenant-C2vnB0wX.d.ts → tenant--Hm8mlPy.d.ts} +1 -1
  147. package/dist/testing/index.d.ts +3 -3
  148. package/dist/testing/index.js +1 -1
  149. package/dist/{topic-CKN3kmoi.d.ts → topic-BYF-GTW9.d.ts} +1 -1
  150. package/dist/{types-D8Tltfdq.d.ts → types-B8h0reJ4.d.ts} +2 -2
  151. package/dist/vue/index.d.ts +5 -5
  152. package/dist/{watch-topic-0dXuJMuE.d.ts → watch-topic-tfTxgEGc.d.ts} +1 -1
  153. package/dist/workflow-sdk/world/index.js +1 -1
  154. package/dist/{workflow-sdk-vXuxBSrk.js → workflow-sdk-Bps7tpOv.js} +7 -1
  155. package/dist/yjs/index.d.ts +1 -1
  156. package/package.json +1 -1
  157. package/schemas/config-v1.json +20 -1
  158. package/dist/cli/add-CoP8iie6.js +0 -1
  159. package/dist/cli/powersync-nH-NLDjy.js +0 -1
@@ -1,8 +1,8 @@
1
1
  import { m as commandMeta, r as defineCliCommand } from "./command-67WobzTC.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-Bsnge2oW.js";
4
- import { r as layoutFor } from "./providers-CL5Z5Uj4.js";
5
- import { i as stampAfter } from "./migrations-BOmMcme9.js";
3
+ import { n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
4
+ import { r as layoutFor } from "./providers-lwK2lplZ.js";
5
+ import { i as stampAfter } from "./migrations-C5k9hNOo.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-DViexv6m.js";
@@ -1,6 +1,6 @@
1
1
  import { n as CliError } from "./errors-DcJ_PayO.js";
2
- import { n as layout } from "./providers-CL5Z5Uj4.js";
3
- import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-DSDB473C.js";
2
+ import { n as layout } from "./providers-lwK2lplZ.js";
3
+ import { o as migrationModules, r as latestMigration, u as writesMigrations } from "./module-migration-BFchEhAJ.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-Bsnge2oW.js";
4
+ import { i as schemasDirOf, r as moduleLayoutFor } from "./sql-layout-jZOzCj-S.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-Tqq3MAqx.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-D4iSuTmS.js";
6
+ import { n as ident } from "./live-B0f_X3rI.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-Bsnge2oW.js";
7
- import { r as layoutFor } from "./providers-CL5Z5Uj4.js";
8
- import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-BGErz-yb.js";
6
+ import { a as sqlPlan } from "./sql-layout-jZOzCj-S.js";
7
+ import { r as layoutFor } from "./providers-lwK2lplZ.js";
8
+ import { g as templateContextFor, i as blocksWiringPath, n as blockClients } from "./add-NosuEQn1.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-Cv7iBRhe.js";
11
+ import { n as guardedRemoval } from "./sync-I4x-1aVx.js";
12
12
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
13
- import { t as blockNames } from "./blocks-iUjNl5yJ.js";
13
+ import { t as blockNames } from "./blocks-Bo2Lw2UO.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-JT4JhdmX.js";
3
+ import { i as cachedTypesModule, n as cachedDatabaseTypes, s as typesModuleKey } from "./cache-CNJD8OdR.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-P2ww2xCt.js";
5
+ import { f as generateDatabaseTypes, h as restrictSchemas, p as oxfmtInstalled, v as tsTypeOf } from "./snapshot-CVB9Ri2a.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-BCs4oBl2.js";
8
+ import { a as toCatalog } from "./source-COGgsYiV.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-67WobzTC.js";
2
2
  import { n as highlight, r as painter } from "./style-B5-nByxb.js";
3
- import { t as VERSION } from "./version-Hza4Q2PB.js";
3
+ import { t as VERSION } from "./version-CRCAxS2s.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-Tqq3MAqx.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-yAC-NFMq.js";
@@ -16,43 +16,43 @@ 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-Cm6n4u_3.js").then((m) => m.initCommand)],
20
- ["add", () => import("./add-CoP8iie6.js").then((m) => m.addCommand)],
21
- ["remove", () => import("./remove-DIy7gthm.js").then((m) => m.removeCommand)],
22
- ["upgrade", () => import("./upgrade-C6jWNxkc.js").then((m) => m.upgradeCommand)],
19
+ ["init", () => import("./init-wl5jk5vX.js").then((m) => m.initCommand)],
20
+ ["add", () => import("./add-BbhRYaFe.js").then((m) => m.addCommand)],
21
+ ["remove", () => import("./remove-WB9dFyNn.js").then((m) => m.removeCommand)],
22
+ ["upgrade", () => import("./upgrade-BRp5AxAY.js").then((m) => m.upgradeCommand)],
23
23
  ["table", () => import("./table-BIQA9Hdt.js").then((m) => m.tableCommand)],
24
- ["migrate schema-first", () => import("./migrate-nQhh0nEJ.js").then((m) => m.migrateSchemaFirstCommand)],
25
- ["gen", () => import("./gen-_lBdTgaR.js").then((m) => m.genCommand)],
26
- ["doctor", () => import("./doctor-VWanOD74.js").then((m) => m.doctorCommand)],
24
+ ["migrate schema-first", () => import("./migrate-DMITLPEu.js").then((m) => m.migrateSchemaFirstCommand)],
25
+ ["gen", () => import("./gen-CIUD1sgB.js").then((m) => m.genCommand)],
26
+ ["doctor", () => import("./doctor-B9GtOGSa.js").then((m) => m.doctorCommand)],
27
27
  ["db query", () => import("./db-bK5eCLaE.js").then((m) => m.dbQueryCommand)],
28
28
  ["db diff", () => import("./db-bK5eCLaE.js").then((m) => m.dbDiffCommand)],
29
29
  ["db seed", () => import("./seed-CLlvrV8I.js").then((m) => m.seedCommand)],
30
- ["db backfill", () => import("./backfill-B-p-19g6.js").then((m) => m.dbBackfillCommand)],
31
- ["db prune-workflows", () => import("./prune-workflows-C9xO0fRU.js").then((m) => m.dbPruneWorkflowsCommand)],
30
+ ["db backfill", () => import("./backfill-VfqI5GqN.js").then((m) => m.dbBackfillCommand)],
31
+ ["db prune-workflows", () => import("./prune-workflows-DO3nRZFF.js").then((m) => m.dbPruneWorkflowsCommand)],
32
32
  ["dev env", () => import("./env-AFfMXxWw.js").then((m) => m.envCommand)],
33
33
  ["dev run", () => import("./run-DX4X7xqV.js").then((m) => m.runCommand)],
34
34
  ["dev keys", () => import("./keys-Dj5sJNj7.js").then((m) => m.keysCommand)],
35
35
  ["dev stack ls", () => import("./stack-CQXLe5j0.js").then((m) => m.stackLsCommand)],
36
36
  ["dev stack prune", () => import("./stack-CQXLe5j0.js").then((m) => m.stackPruneCommand)],
37
- ["blocks list", () => import("./blocks-Ews-FZZO.js").then((m) => m.blocksListCommand)],
38
- ["blocks view", () => import("./blocks-Ews-FZZO.js").then((m) => m.blocksViewCommand)],
39
- ["blocks search", () => import("./blocks-Ews-FZZO.js").then((m) => m.blocksSearchCommand)],
40
- ["powersync streams", () => import("./powersync-nH-NLDjy.js").then((m) => m.powersyncStreamsCommand)],
41
- ["spec emit", () => import("./spec-oPbt9sbZ.js").then((m) => m.specEmitCommand)],
42
- ["spec validate", () => import("./spec-oPbt9sbZ.js").then((m) => m.specValidateCommand)],
43
- ["mcp", () => import("./mcp-CHYX7utI.js").then((m) => m.mcpCommand)],
37
+ ["blocks list", () => import("./blocks-DsEaPf6J.js").then((m) => m.blocksListCommand)],
38
+ ["blocks view", () => import("./blocks-DsEaPf6J.js").then((m) => m.blocksViewCommand)],
39
+ ["blocks search", () => import("./blocks-DsEaPf6J.js").then((m) => m.blocksSearchCommand)],
40
+ ["powersync streams", () => import("./powersync-i7KJcTtM.js").then((m) => m.powersyncStreamsCommand)],
41
+ ["spec emit", () => import("./spec-002zD_9Z.js").then((m) => m.specEmitCommand)],
42
+ ["spec validate", () => import("./spec-002zD_9Z.js").then((m) => m.specValidateCommand)],
43
+ ["mcp", () => import("./mcp-CZWaBkXY.js").then((m) => m.mcpCommand)],
44
44
  ["skills list", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsListCommand)],
45
45
  ["skills install", () => import("./skills-B5p6bDwe.js").then((m) => m.skillsInstallCommand)],
46
- ["codemod 0.4", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.4"))],
47
- ["codemod 0.5", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.5"))],
48
- ["codemod 0.6", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.6"))],
49
- ["codemod 0.9", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.9"))],
50
- ["codemod 0.11", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.11"))],
51
- ["codemod 0.15", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.15"))],
52
- ["codemod 0.29", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.29"))],
53
- ["codemod 0.32", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.32"))],
54
- ["codemod 0.35", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.35"))],
55
- ["codemod 0.37", () => import("./codemod-KIxYiazj.js").then((m) => m.codemodCommand("0.37"))],
46
+ ["codemod 0.4", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.4"))],
47
+ ["codemod 0.5", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.5"))],
48
+ ["codemod 0.6", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.6"))],
49
+ ["codemod 0.9", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.9"))],
50
+ ["codemod 0.11", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.11"))],
51
+ ["codemod 0.15", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.15"))],
52
+ ["codemod 0.29", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.29"))],
53
+ ["codemod 0.32", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.32"))],
54
+ ["codemod 0.35", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.35"))],
55
+ ["codemod 0.37", () => import("./codemod-BWa3Bte6.js").then((m) => m.codemodCommand("0.37"))],
56
56
  ["completion", () => import("./completion-Dm0S3ub0.js").then((m) => m.completionCommand)],
57
57
  ["config", () => import("./config-cbK-wiNs.js").then((m) => m.configCommand)]
58
58
  ];
@@ -1,17 +1,17 @@
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-JT4JhdmX.js";
3
+ import { c as writeAtomic, o as storeTypesModule, s as typesModuleKey, t as CACHE_DIR } from "./cache-CNJD8OdR.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-P2ww2xCt.js";
6
- import { n as render } from "./render-CoCZr3Ru.js";
5
+ import { _ as stabilizeMetadata, b as typegenVersionNotice, p as oxfmtInstalled, t as loadSnapshot, y as typegenVersion } from "./snapshot-CVB9Ri2a.js";
6
+ import { n as render } from "./render-B0MMWWZE.js";
7
7
  import { a as moduleKeyProblems, c as unsafeKey, i as entitlementsMode, n as accessRequirements, o as providerLabel, r as entitlementRequirements } from "./authorization-DJkkOjjG.js";
8
- import { s as schemaStampPath } from "./content-mapper-DkXzxt6f.js";
8
+ import { s as schemaStampPath } from "./content-mapper-Dl50Ny6a.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 } from "./sql-layout-Bsnge2oW.js";
11
- import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-BdKeo7xp.js";
12
- import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-dZpH63--.js";
13
- import { a as compiledReadSets } from "./providers-CL5Z5Uj4.js";
14
- import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-DSDB473C.js";
10
+ import { n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
11
+ import { l as tableObject, n as exposed, o as policyObject, s as qualified, t as catalogOf } from "./shared-BL5kcRdz.js";
12
+ import { n as adoptionContext, r as appTablesOf, t as accessModule } from "./app-tables-BINtREbx.js";
13
+ import { a as compiledReadSets } from "./providers-lwK2lplZ.js";
14
+ import { c as sameModuleMigration, l as writeLatestMigration, n as READ_SETS_SUFFIX, r as latestMigration, u as writesMigrations } from "./module-migration-BFchEhAJ.js";
15
15
  import { existsSync } from "node:fs";
16
16
  import { dirname, isAbsolute, relative, resolve, sep } from "node:path";
17
17
  import { readFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { a as toCatalog } from "./source-BCs4oBl2.js";
1
+ import { a as toCatalog } from "./source-COGgsYiV.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-JT4JhdmX.js";
2
+ import { d as readExtras, l as TYPEGEN_VERSION, r as cachedIntrospect } from "./cache-CNJD8OdR.js";
3
3
  import { t as byCodePoint } from "./compare-yl4sSwVn.js";
4
- import { n as managementSource, r as pgSource } from "./source-BCs4oBl2.js";
4
+ import { n as managementSource, r as pgSource } from "./source-COGgsYiV.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-Hza4Q2PB.js";
1
+ import { t as VERSION } from "./version-CRCAxS2s.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-uCpXPLoF.js";
1
+ export { n as specEmitCommand, i as specValidateCommand } from "./spec-CH6Qd2LE.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-67WobzTC.js";
3
- import { t as VERSION } from "./version-Hza4Q2PB.js";
3
+ import { t as VERSION } from "./version-CRCAxS2s.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-JT4JhdmX.js";
6
+ import { c as writeAtomic, t as CACHE_DIR } from "./cache-CNJD8OdR.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-P2ww2xCt.js";
2
- import { a as toCatalog } from "./source-BCs4oBl2.js";
1
+ import { d as TypegenMissingError, i as parseSnapshot } from "./snapshot-CVB9Ri2a.js";
2
+ import { a as toCatalog } from "./source-COGgsYiV.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-Bsnge2oW.js";
6
- import { r as layoutFor } from "./providers-CL5Z5Uj4.js";
7
- import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-BOmMcme9.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-DSDB473C.js";
5
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
6
+ import { r as layoutFor } from "./providers-lwK2lplZ.js";
7
+ import { a as writeExtensionsMigration, t as DATA_NEXT } from "./migrations-C5k9hNOo.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-BFchEhAJ.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-67WobzTC.js";
2
2
  import { i as plain } from "./style-B5-nByxb.js";
3
- import { t as syncModules } from "./sync-Cv7iBRhe.js";
3
+ import { t as syncModules } from "./sync-I4x-1aVx.js";
4
4
  import { t as SQL_ARGS } from "./args-_ZVgRBkx.js";
5
- import { t as upgrade } from "./upgrade-DV7jTRdh.js";
5
+ import { t as upgrade } from "./upgrade-C60BZggI.js";
6
6
  // src/cli/commands/upgrade.ts
7
7
  const UPGRADE_ARGS = {
8
8
  check: {
@@ -1,10 +1,10 @@
1
1
  import { t as display } from "./io-CQzy8PEZ.js";
2
2
  import { d as fileDiff, i as changeLines, r as applyPlan } from "./files-DQayErI8.js";
3
- import { a as sqlPlan, n as migrationsDir } from "./sql-layout-Bsnge2oW.js";
4
- import { r as layoutFor } from "./providers-CL5Z5Uj4.js";
5
- import { r as migrationStamp } from "./migrations-BOmMcme9.js";
6
- import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-DSDB473C.js";
7
- import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-Cv7iBRhe.js";
3
+ import { a as sqlPlan, n as migrationsDir } from "./sql-layout-jZOzCj-S.js";
4
+ import { r as layoutFor } from "./providers-lwK2lplZ.js";
5
+ import { r as migrationStamp } from "./migrations-C5k9hNOo.js";
6
+ import { a as migrationInstances, c as sameModuleMigration, o as migrationModules, r as latestMigration, s as renderModuleMigration, t as MODULES_SUFFIX, u as writesMigrations } from "./module-migration-BFchEhAJ.js";
7
+ import { a as write, o as topicPolicyFile, r as nextStep } from "./sync-I4x-1aVx.js";
8
8
  import { a as legacyPrefixSql, i as legacyPrefixNames, r as legacyBlocksTableSql } from "./legacy-prefix-D8Jfku6I.js";
9
9
  import { resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
@@ -1,3 +1,3 @@
1
1
  // src/cli/version.ts
2
- const VERSION = "0.41.0";
2
+ const VERSION = "0.42.0";
3
3
  export { VERSION as t };
@@ -1,8 +1,8 @@
1
1
  import { a as DataSync, c as LocalTablesOption, i as DataEntry, l as liveEngine, n as DataEngine, o as DataSyncState, r as DataEngineOptions, s as LiveEngineOptions, t as DataChanges, u as memoryEngine } from "../data-engine-CX1oYDZl.js";
2
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-0dXuJMuE.js";
3
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-BJJJmfWK.js";
4
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-XrFxNm5r.js";
5
- import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-phhsPHSz.js";
2
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../watch-topic-tfTxgEGc.js";
3
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../ports-BKdt_9Oe.js";
4
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../bind-B71jMEGG.js";
5
+ import { a as defineController, i as ControllerState, n as Controller, o as whileSignedIn, r as ControllerParts, t as AuthPort } from "../controller-D3MPVovD.js";
6
6
  import { n as FunctionContract } from "../function-contract-DgDBYbXu.js";
7
- import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-RZqQdq1G.js";
7
+ import { a as webDeepLinks, c as webPorts, d as FunctionContracts, f as FunctionsHost, h as functions, i as WebPushTokenOptions, l as webPushToken, m as TypedFunctions, n as createClient, o as webFilePicker, p as InvokeOptions, r as PushRegistrationLike, s as webKeyboard, t as ClientOptions, u as webStorage } from "../index-CUxdZYSi.js";
8
8
  export { type AuthPort, type AuthSnapshot, type AuthUser, type BetterClient, type BindClientOptions, type ClientAuth, ClientOptions, type ClientPorts, type Controller, type ControllerParts, type ControllerState, type DataChanges, type DataEngine, type DataEngineOptions, type DataEntry, type DataSync, type DataSyncState, type DeepLinkPort, type FilePickerPort, type FunctionContract, type FunctionContracts, type FunctionsHost, type InvokeOptions, type KeyboardPort, type LiveEngineOptions, type LocalTablesOption, type PickFilesOptions, type PickedFile, type PushRegistrationLike, type PushTokenPort, type Shortcut, type StoragePort, type TopicHandle, type TopicPort, type TopicWatch, type TypedFunctions, type UploadDestination, type UploadPort, type WebPushTokenOptions, bindClient, createClient, defineController, functions, liveEngine, memoryEngine, memoryStorage, storageUpload, webDeepLinks, webFilePicker, webKeyboard, webPorts, webPushToken, webStorage, whileSignedIn };
@@ -1,9 +1,9 @@
1
1
  import { t as AsyncResult } from "../../result-DTOQRyGY.js";
2
2
  import { T as UploadOptions, w as UploadBody } from "../../bucket-CrsJNHzi.js";
3
- import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-0dXuJMuE.js";
4
- import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-BJJJmfWK.js";
5
- import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-XrFxNm5r.js";
6
- import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-CA31xmQr.js";
3
+ import { n as TopicPort, r as TopicWatch, t as TopicHandle } from "../../watch-topic-tfTxgEGc.js";
4
+ import { a as PickFilesOptions, c as Shortcut, d as UploadPort, f as memoryStorage, i as KeyboardPort, l as StoragePort, n as DeepLinkPort, o as PickedFile, p as storageUpload, r as FilePickerPort, s as PushTokenPort, t as ClientPorts, u as UploadDestination } from "../../ports-BKdt_9Oe.js";
5
+ import { a as ClientAuth, i as BindClientOptions, n as AuthUser, o as bindClient, r as BetterClient, t as AuthSnapshot } from "../../bind-B71jMEGG.js";
6
+ import { n as ExpoPushTokenOptions, r as expoPushToken, t as ExpoNotificationsLike } from "../../push-token-DRcEl9Ce.js";
7
7
  import { a as OAuthSignInOptions, c as linkParams, i as OAuthClient, l as signInWithOAuthBrowser, n as AuthLinkClient, o as WebBrowserLike, r as AuthLinkResult, s as handleAuthDeepLink, t as AuthFailure } from "../../auth-link-DRjtI1Ky.js";
8
8
  import { SupabaseClient } from "@supabase/supabase-js";
9
9
  /** The part of React Native's `AppState` that `autoRefreshOnForeground` uses. */
@@ -1,6 +1,6 @@
1
1
  import { N as Casing } from "../types-BzIYSSWK.js";
2
- import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-CS5Q1V7A.js";
3
- import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-tFoygone.js";
2
+ import { A as tenantNameOf, C as EntityConfig, D as OwnTablePolicies, S as EntitiesConfig, a as AuthorizationProvider, b as DEFAULT_ACTIVE_TENANT, c as AuthorizationScope, d as AccessBlockConfig, f as ActiveTenantSource, g as BlockMode, i as AuthorizationPermission, l as AuthorizationTokenHook, m as BlockConfig, n as AuthorizationMembership, o as AuthorizationRequirement, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, u as providerApiProblem, v as BlockScope, x as DisabledRow, y as BlocksConfig } from "../authorization-CcvJbvr1.js";
3
+ import { $ as JsonSchemaTarget, $r as SnapshotExtras, $t as GeneratorNoun, An as SqlWorkflow, Ar as AppTablesConfig, B as ZodGeneratorOptions, Bi as MigrationSafetyConfig, Bn as ExposePrivilege, Br as CatalogIndex, Bt as GeneratedFile, Cn as EntitlementPlansSource, Cr as AppRollupAggregate, Dn as ResolvedSqlConfig, Dr as AppTableEvents, En as RealtimeConfig, Er as AppTableEventKind, Fi as EnvFileConfig, Fn as TopicTriggerValueConfig, Fr as CatalogEnum, G as standardSchema, Gi as GEN_TASKS, Gr as ExtrasDomain, Gt as GeneratorEntitySchemas, H as ValibotGeneratorOptions, Hi as PowerSyncGenConfig, Hn as Privilege, Hr as CatalogTable, Ht as GeneratorBlock, Ii as GenConfig, In as VectorDistance, Ir as CatalogForeignKey, J as FactoriesGeneratorOptions, Ji as IntegrationInfo, Jr as ExtrasHookFunction, Jt as GeneratorFunctionArg, K as NuqsGeneratorOptions, Ki as INTEGRATION_INFO, Kr as ExtrasFunction, Kt as GeneratorField, Li as GenTask, Ln as VectorSearchConfig, Lr as CatalogFunction, Lt as resolveJsonSchema, Mn as TopicTriggerLookupConfig, Mr as CatalogCheck, Nn as TopicTriggerPayloadValueConfig, Nr as CatalogColumn, On as SeedConfig, Or as AppTableSubject, Pi as DoctorConfig, Pn as TopicTriggerTopicConfig, Pr as CatalogColumnGrant, Q as jsonSchema, Qr as SnapshotBucket, Qt as GeneratorModel, Ri as IntegrationName, Rn as ColumnPrivilege, Rr as CatalogFunctionArg, Rt as ClaimsConfig, Sn as ToolingConfig, Sr as AppReferenceTarget, St as RoleNames, Tn as BucketConfig, Tr as AppTableConfig, U as valibot, Ui as SkillsAgent, Un as ResolvedExpose, Ur as CatalogTrigger, Ut as GeneratorBlockEntity, V as zod, Vi as OpenApiConfig, Vn as ExposeRole, Vr as CatalogPolicy, Vt as Generator, W as StandardSchemaGeneratorOptions, Wi as SkillsConfig, Wr as CatalogUnique, Wt as GeneratorColumn, X as JsonSchemaGeneratorOptions, Xr as ForeignKeyAction, Xt as GeneratorInputSchema, Y as factories, Yi as SKILLS_AGENTS, Yr as ExtrasTable, Yt as GeneratorInput, Z as buildJsonSchema, Zr as Snapshot, Zt as GeneratorJsonSchema, _n as DatabaseConfig, _r as AppColumnFormat, _t as defineConfig, ai as RpcFunctionArg, an as TableConfig, at as blockEntities, bn as SqlInput, br as AppOnDeleteAction, bt as BucketName, ci as RpcReturnColumn, cn as ResolvedConfig, ct as CONFIG_GROUPS, dn as AppTableInput, dr as APP_COLUMN_TYPES, dt as blockEntrySource, ei as GeneratorMetadata, en as GeneratorTable, et as ClaimPaths, fn as AppTablesInput, fr as APP_ON_DELETE_ACTIONS, ft as flattenConfig, gn as BlocksInput, gr as AppColumnConfig, gt as ResolveInput, hn as BlockInput, hr as AppColumnAccess, ht as CONFIG_SCHEMA_URL, ii as RpcFunction, in as SourceConfig, ir as CONFIG_DEFAULTS, it as BlockEntity, jn as TopicTriggerConfig, jr as Catalog, kn as SqlConfig, kr as AppTableVersions, li as RpcTypeReference, ln as ResolvedExtensions, lr as APP_COLUMN_ACCESS, lt as RENAMED_BLOCK_KEYS, mn as BetterSupabaseConfig, mr as APP_TABLE_EVENT_KINDS, mt as groupEntries, ni as PostgresFunction, nn as JsonTypeConfig, nt as claimPaths, oi as RpcFunctionOverload, on as DataHooksFramework, ot as blockEntityRenames, pn as AuthConfig, pr as APP_ROLLUP_AGGREGATES, pt as groupConfig, q as nuqs, qi as INTEGRATION_NAMES, qr as ExtrasHook, qt as GeneratorFunction, ri as PostgresFunctionArg, rn as RelationsConfig, rt as tenantClaimPaths, si as RpcFunctionReturns, sn as FlatConfig, st as blockSubjectTypes, ti as PostgresColumn, tn as JsonSchemaSource, tt as DEFAULT_CLAIMS, un as ApiConfig, ur as APP_COLUMN_FORMATS, ut as RENAMED_CONFIG_KEYS, vn as EnvironmentConfig, vr as AppColumnType, vt as resolveConfig, wn as EntitlementsConfig, wr as AppRollupConfig, wt as ExpandedConfig, xn as TenantConfig, xr as AppReference, xt as ConfigReferences, yn as GenGroupConfig, yr as AppLookupConfig, yt as BlockTableReference, z as ZodFlavor, zi as KeysConfig, zn as ExposeConfig, zr as CatalogGrant, zt as CodecsConfig } from "../context-DXWyPNzr.js";
4
4
  import { i as SubjectsConfig, n as SubjectPermission, r as SubjectSearch, t as SubjectConfig } from "../subjects-BGwLJ3IB.js";
5
5
  import { a as FieldFormat, o as FieldFormatInput, r as FIELD_FORMATS } from "../field-formats-DVukMbRa.js";
6
6
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, type AccessBlockConfig, type ActiveTenantSource, type AnyBlocksConfig, type ApiConfig, type AppColumnAccess, type AppColumnConfig, type AppColumnFormat, type AppColumnType, type AppLookupConfig, type AppOnDeleteAction, type AppReference, type AppReferenceTarget, type AppRollupAggregate, type AppRollupConfig, type AppTableConfig, type AppTableEventKind, type AppTableEvents, type AppTableInput, type AppTableSubject, type AppTableVersions, type AppTablesConfig, type AppTablesInput, type AuthConfig, type AuthorizationFunctions, type AuthorizationMembership, type AuthorizationOperation, type AuthorizationPermission, type AuthorizationProvider, type AuthorizationRequirement, type AuthorizationRoleSource, type AuthorizationScope, type AuthorizationTokenHook, type BetterSupabaseConfig, type BlockConfig, type BlockEntity, type BlockInput, type BlockMode, type BlockScope, type BlockTableReference, type BlocksConfig, type BlocksInput, type BucketConfig, type BucketName, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, type Casing, type Catalog, type CatalogCheck, type CatalogColumn, type CatalogColumnGrant, type CatalogEnum, type CatalogForeignKey, type CatalogFunction, type CatalogFunctionArg, type CatalogGrant, type CatalogIndex, type CatalogPolicy, type CatalogTable, type CatalogTrigger, type CatalogUnique, type ClaimPaths, type ClaimsConfig, type CodecsConfig, type ColumnPrivilege, type ConfigReferences, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, type DataHooksFramework, type DatabaseConfig, type DisabledRow, type DoctorConfig, type EntitiesConfig, type EntitlementPlansSource, type EntitlementsConfig, type EntityConfig, type EnvFileConfig, type EnvironmentConfig, type ExpandedConfig, type ExposeConfig, type ExposePrivilege, type ExposeRole, type ExtrasDomain, type ExtrasFunction, type ExtrasHook, type ExtrasHookFunction, type ExtrasTable, FIELD_FORMATS, type FactoriesGeneratorOptions, type FieldFormat, type FieldFormatInput, type FlatConfig, type ForeignKeyAction, GEN_TASKS, type GenConfig, type GenGroupConfig, type GenTask, type GeneratedFile, type Generator, type GeneratorBlock, type GeneratorBlockEntity, type GeneratorColumn, type GeneratorEntitySchemas, type GeneratorField, type GeneratorFunction, type GeneratorFunctionArg, type GeneratorInput, type GeneratorInputSchema, type GeneratorJsonSchema, type GeneratorMetadata, type GeneratorModel, type GeneratorNoun, type GeneratorTable, INTEGRATION_INFO, INTEGRATION_NAMES, type IntegrationInfo, type IntegrationName, type JsonSchemaGeneratorOptions, type JsonSchemaSource, type JsonSchemaTarget, type JsonTypeConfig, type KeysConfig, type MigrationSafetyConfig, type NuqsGeneratorOptions, type OpenApiConfig, type OwnTablePolicies, type PostgresColumn, type PostgresFunction, type PostgresFunctionArg, type PowerSyncGenConfig, type Privilege, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, type RealtimeConfig, type RelationsConfig, type ResolveInput, type ResolvedConfig, type ResolvedExpose, type ResolvedExtensions, type ResolvedSqlConfig, type RoleNames, type RpcFunction, type RpcFunctionArg, type RpcFunctionOverload, type RpcFunctionReturns, type RpcReturnColumn, type RpcTypeReference, SKILLS_AGENTS, type SeedConfig, type SkillsAgent, type SkillsConfig, type Snapshot, type SnapshotBucket, type SnapshotExtras, type SourceConfig, type SqlConfig, type SqlInput, type SqlWorkflow, type StandardSchemaGeneratorOptions, type SubjectConfig, type SubjectPermission, type SubjectSearch, type SubjectsConfig, type TableConfig, type TenantConfig, type ToolingConfig, type TopicTriggerConfig, type TopicTriggerLookupConfig, type TopicTriggerPayloadValueConfig, type TopicTriggerTopicConfig, type TopicTriggerValueConfig, type ValibotGeneratorOptions, type VectorDistance, type VectorSearchConfig, type ZodFlavor, type ZodGeneratorOptions, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { c as resolveJsonSchema, l as CONFIG_DEFAULTS, n as blockEntityRenames, r as blockSubjectTypes, t as blockEntities } from "../block-subjects-Bz95_dqA.js";
2
- import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-B7hnJFxh.js";
1
+ import { c as resolveJsonSchema, l as CONFIG_DEFAULTS, n as blockEntityRenames, r as blockSubjectTypes, t as blockEntities } from "../block-subjects-a_ECM9o0.js";
2
+ import { A as flattenConfig, D as RENAMED_BLOCK_KEYS, E as CONFIG_GROUPS, F as INTEGRATION_NAMES, I as SKILLS_AGENTS, M as groupEntries, N as GEN_TASKS, O as RENAMED_CONFIG_KEYS, P as INTEGRATION_INFO, j as groupConfig, k as blockEntrySource } from "../config-BND2PFGs.js";
3
3
  import { a as tenantClaimPaths, r as claimPaths, t as DEFAULT_CLAIMS } from "../claims-CqTr_N1n.js";
4
- import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-DJOknCJ0.js";
4
+ import { A as APP_ROLLUP_AGGREGATES, D as APP_COLUMN_FORMATS, E as APP_COLUMN_ACCESS, L as tenantNameOf, O as APP_COLUMN_TYPES, P as DEFAULT_ACTIVE_TENANT, j as APP_TABLE_EVENT_KINDS, k as APP_ON_DELETE_ACTIONS } from "../instances-DwrdFwKq.js";
5
5
  import { r as FIELD_FORMATS } from "../field-formats-Cap-V7UP.js";
6
- import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-DwXYtmwt.js";
6
+ import { a as factories, c as resolveConfig, i as nuqs, l as providerApiProblem, n as valibot, o as CONFIG_SCHEMA_URL, r as standardSchema, s as defineConfig, t as zod } from "../config-2SwAe0Im.js";
7
7
  import { n as jsonSchema, t as buildJsonSchema } from "../json-schema-D9eVL_xi.js";
8
8
  export { APP_COLUMN_ACCESS, APP_COLUMN_FORMATS, APP_COLUMN_TYPES, APP_ON_DELETE_ACTIONS, APP_ROLLUP_AGGREGATES, APP_TABLE_EVENT_KINDS, CONFIG_DEFAULTS, CONFIG_GROUPS, CONFIG_SCHEMA_URL, DEFAULT_ACTIVE_TENANT, DEFAULT_CLAIMS, FIELD_FORMATS, GEN_TASKS, INTEGRATION_INFO, INTEGRATION_NAMES, RENAMED_BLOCK_KEYS, RENAMED_CONFIG_KEYS, SKILLS_AGENTS, blockEntities, blockEntityRenames, blockEntrySource, blockSubjectTypes, buildJsonSchema, claimPaths, defineConfig, factories, flattenConfig, groupConfig, groupEntries, jsonSchema, nuqs, providerApiProblem, resolveConfig, resolveJsonSchema, standardSchema, tenantClaimPaths, tenantNameOf, valibot, zod };
@@ -1,8 +1,8 @@
1
- import { a as withBlockSubjects, l as CONFIG_DEFAULTS } from "./block-subjects-Bz95_dqA.js";
2
- import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-B7hnJFxh.js";
1
+ import { a as withBlockSubjects, l as CONFIG_DEFAULTS } from "./block-subjects-a_ECM9o0.js";
2
+ import { A as flattenConfig, n as expandFlatPreset, r as expandPreset } from "./config-BND2PFGs.js";
3
3
  import { t as DEFAULT_CLAIMS } from "./claims-CqTr_N1n.js";
4
4
  import { o as tenantNames } from "./entity-naming-BES3pkQI.js";
5
- import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DJOknCJ0.js";
5
+ import { L as tenantNameOf, _ as appTablesOf, o as resolveInstances, r as blocksByName, v as withAppTableSubjects } from "./instances-DwrdFwKq.js";
6
6
  import { C as variantsFor, S as variantTitle, _ as schemaName, a as extraSchemas, b as tableEntries, c as resultType, d as fieldSpec, f as fieldsFor, g as rowType, h as propertyKey, i as extraKinds, l as HEADER, m as parseImport, o as fieldMetaLines, p as optionalLine, s as objectType, u as fieldDocs, v as siblingPath, x as temporalGuardImport, y as tableDocs } from "./json-schema-D9eVL_xi.js";
7
7
  // src/config/authorization.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as DEFAULT_TENANT } from "./entity-naming-BES3pkQI.js";
2
- import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-DJOknCJ0.js";
2
+ import { F as asBlocksConfig, M as PRESET_CATALOG } from "./instances-DwrdFwKq.js";
3
3
  // src/config/names.ts
4
4
  /** The steps `better-supabase gen` runs, in the order it runs them. */
5
5
  const GEN_TASKS = [
@@ -1,6 +1,6 @@
1
1
  /// <reference lib="esnext.temporal" />
2
2
  import { F as ClaimsMeta, M as BucketPolicyName, N as Casing, T as AccessBucketPolicy, st as SchemaMeta, vt as BucketLifecycle } from "./types-BzIYSSWK.js";
3
- import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-CS5Q1V7A.js";
3
+ import { D as OwnTablePolicies, E as NamedInstance, I as TablesOf, L as BlockNameRegistry, O as ResolvedBlock, T as InstanceOn, _ as BlockName, a as AuthorizationProvider, d as AccessBlockConfig, g as BlockMode, h as BlockConfigOf, m as BlockConfig, n as AuthorizationMembership, p as AnyBlocksConfig, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions, v as BlockScope, w as InstanceKeys, x as DisabledRow, y as BlocksConfig } from "./authorization-CcvJbvr1.js";
4
4
  import { Mn as EntityNames, Nn as EntityNoun, Pn as EntityRename, R as PortName, Ut as ActionDescriptor, Xt as BlockSchedule, Zt as DefaultAutomation, _ as BlockProvider, g as BlockEnvKey, i as BlockCategory, y as BlockWorker } from "./define-block-DBD7yhQg.js";
5
5
  import { a as ScalarKind, i as FieldSpec } from "./table-schema-CwXg7oBz.js";
6
6
  import { i as SubjectsConfig } from "./subjects-BGwLJ3IB.js";
@@ -444,6 +444,8 @@ interface ApprovalRequestSql {
444
444
  readonly subjectId: string;
445
445
  /** The decision's comment. */
446
446
  readonly comment: string;
447
+ /** The user whose decision this is, as uuid. */
448
+ readonly approver: string;
447
449
  }
448
450
  /** Requests of one subject type the contributing block files with approvals. */
449
451
  interface ApprovalContribution {
@@ -1,12 +1,12 @@
1
1
  import { $t as AuthorizationSubject, D as AccessTopicPolicy, E as AccessPolicySql, Gt as AuthorizationChange, Jt as AuthorizationOutcome, Kt as AuthorizationContext, Qt as AuthorizationResourceSource, T as AccessBucketPolicy, Ut as AnyAuthorizer, Wt as AuthorizationCallKind, Xt as AuthorizationRequest, Yt as AuthorizationPurpose, Zt as AuthorizationResource, en as Authorizer, in as RequestMemo, nn as AuthzVersionCache, qt as AuthorizationIntent, rn as PermissionRef, tn as AuthorizerRuntime } from "../types-BzIYSSWK.js";
2
2
  import { m as SessionSnapshot } from "../resolve-XlMQRUeG.js";
3
3
  import { r as CredentialProvider } from "../provider-CVlXXbda.js";
4
- import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-CS5Q1V7A.js";
4
+ import { a as AuthorizationProvider, c as AuthorizationScope, i as AuthorizationPermission, l as AuthorizationTokenHook, n as AuthorizationMembership, o as AuthorizationRequirement, r as AuthorizationOperation, s as AuthorizationRoleSource, t as AuthorizationFunctions } from "../authorization-CcvJbvr1.js";
5
5
  import { _ as SupportAuthorize, g as SubscriberPolicy, i as AuthorizationHooks, v as SupportAuthorizeInput } from "../authorization-hooks-CR8TVvqo.js";
6
6
  import { n as ApprovalOptions } from "../server-types-DpI82uNq.js";
7
7
  import { s as ApiKeyResolverOptions } from "../api-keys-U3JQ8IlM.js";
8
- import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-fmrLdtVT.js";
9
- import { n as BlockTables, t as BlockTable } from "../block-tables-EXcmuOJT.js";
8
+ import { a as ToolDecision, n as McpOptions, s as ToolRef } from "../index-DWVDKVYA.js";
9
+ import { n as BlockTables, t as BlockTable } from "../block-tables-B92SBFqM.js";
10
10
  /**
11
11
  * The types an authorization library implements or reads, in one entry with no
12
12
  * runtime code. Every slot is versioned `apiVersion: 1`; a breaking change to
@@ -1,4 +1,4 @@
1
- import { a as ClientAuth } from "./bind-XrFxNm5r.js";
1
+ import { a as ClientAuth } from "./bind-B71jMEGG.js";
2
2
  /**
3
3
  * A block's client state, framework-agnostic. `subscribe` and `getSnapshot`
4
4
  * follow the external-store contract, so React's `useSyncExternalStore`, a Vue
@@ -1,7 +1,7 @@
1
1
  /// <reference lib="esnext.temporal" />
2
- import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-tFoygone.js";
3
- import { E as CreateDesign, b as DesignChange } from "../index-BXkPvYzd.js";
4
- import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-D8Tltfdq.js";
2
+ import { Tt as PresetInput, Wn as PresetSpec, br as AppOnDeleteAction, er as PresetName, fr as APP_ON_DELETE_ACTIONS, g as BlockSqlAccessProvider, hr as AppColumnAccess, vr as AppColumnType, xi as Preset } from "../context-DXWyPNzr.js";
3
+ import { E as CreateDesign, b as DesignChange } from "../index-Bjj-GNhd.js";
4
+ import { $ as SchemaTable, A as renameColumn, B as AppEvents, C as editTable, Ct as tableWithComputed, D as isEmptyDesign, Dt as IssueSeverity, E as isAppTable, Et as IssueCode, F as singular, G as subjectTypeError, H as eventsColumnsEdited, I as tidy, J as SchemaData, K as SchemaColumn, L as updateTable, M as setColumn, N as setExtraColumn, O as moveTables, Ot as IssueSource, P as setTableId, Q as SchemaSource, R as userConnection, S as duplicateTable, St as rollupSources, T as identifierError, Tt as Issue, U as subjectColumns, V as AppSubject, W as subjectColumnsEdited, X as SchemaOptions, Y as SchemaForeignKey, Z as SchemaSoftRef, _ as connect, _t as isRollupAggregate, a as AppScope, at as tenantColumnOf, b as deleteExtraColumn, bt as readableColumns, c as ConnectResult, ct as ComputedRow, d as EMPTY_DESIGN, dt as RollupAggregate, et as SchemaTarget, f as NamedDesign, ft as computedColumnRenamed, g as columnError, gt as fittedRollup, h as appTableId, ht as filterColumns, i as AppReference, it as tableStatements, j as renameTable, k as referenceFrom, l as Connection, lt as DraftRollup, m as addTable, mt as computedTableRenamed, n as APP_MODULE, nt as parseSchema, o as AppTable, ot as AppLookup, p as TablePatch, pt as computedRows, q as SchemaComputed, r as AppColumn, rt as schemaRelations, s as AppTableId, st as AppRollup, t as PresetMigrationFile, tt as keyColumnsOf, u as Design, ut as ROLLUP_AGGREGATES, v as defaultError, vt as lookupSources, w as freeTableName, wt as tableWithoutComputed, x as deleteTable, xt as rollupColumns, y as deleteColumn, yt as prunedComputed, z as withDesign } from "../types-B8h0reJ4.js";
5
5
  import { a as SupabaseLint, o as SupabaseOrganization, s as SupabaseProject } from "../management-DtX4ic1F.js";
6
6
  /** What `checkDesign` returns. */
7
7
  export type DesignCheck = {
@@ -1,6 +1,6 @@
1
- import { k as APP_ON_DELETE_ACTIONS } from "../instances-DJOknCJ0.js";
2
- import { m as diffDesigns } from "../preset-U47pzJMK.js";
3
- import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Dng8tO8S.js";
1
+ import { k as APP_ON_DELETE_ACTIONS } from "../instances-DwrdFwKq.js";
2
+ import { m as diffDesigns } from "../preset-CenE7f1G.js";
3
+ import { $ as tableWithComputed, A as referenceFrom, B as withDesign, C as duplicateTable, D as isAppTable, E as identifierError, F as setTableId, G as filterColumns, H as computedColumnRenamed, I as singular, J as lookupSources, K as fittedRollup, L as tidy, M as renameTable, N as setColumn, O as isEmptyDesign, P as setExtraColumn, Q as rollupSources, R as updateTable, S as deleteTable, T as freeTableName, U as computedRows, V as ROLLUP_AGGREGATES, W as computedTableRenamed, X as readableColumns, Y as prunedComputed, Z as rollupColumns, _ as columnError, a as parseSchema, at as boundError, b as deleteColumn, c as tenantColumnOf, ct as fitted, d as previewFiles, dt as takesBounds, et as tableWithoutComputed, f as designIssues, ft as withBounds, g as appTableId, h as addTable, i as keyColumnsOf, it as subjectTypeError, j as renameColumn, k as moveTables, l as schemaData, lt as lockedWithoutDefault, m as EMPTY_DESIGN, n as loadProject, nt as subjectColumns, o as schemaRelations, ot as columnLabel, p as APP_MODULE, q as isRollupAggregate, r as checkDesign, rt as subjectColumnsEdited, s as tableStatements, st as encryptable, t as checkProject, tt as eventsColumnsEdited, u as previewAccessProvider, ut as optionError, v as connect, w as editTable, x as deleteExtraColumn, y as defaultError, z as userConnection } from "../project-Ceh2yTSv.js";
4
4
  // src/create/column-kinds.ts
5
5
  /** The groups of the column type picker, in the order it shows them. */
6
6
  const KIND_GROUPS = [
@@ -1,7 +1,7 @@
1
1
  import { st as SchemaMeta } from "../../types-BzIYSSWK.js";
2
- import { Tt as PresetInput } from "../../context-tFoygone.js";
3
- import { E as CreateDesign } from "../../index-BXkPvYzd.js";
4
- import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-D8Tltfdq.js";
2
+ import { Tt as PresetInput } from "../../context-DXWyPNzr.js";
3
+ import { E as CreateDesign } from "../../index-Bjj-GNhd.js";
4
+ import { Tt as Issue, t as PresetMigrationFile, u as Design } from "../../types-B8h0reJ4.js";
5
5
  import { c as SpecDiagnostic } from "../../format-BT0Z3V54.js";
6
6
  /**
7
7
  * The parts of `@supabase/lite` that `liteStack()` uses, typed structurally so
@@ -1,5 +1,5 @@
1
- import { y as appDefaultError } from "../../instances-DJOknCJ0.js";
2
- import { n as loadProject } from "../../project-Dng8tO8S.js";
1
+ import { y as appDefaultError } from "../../instances-DwrdFwKq.js";
2
+ import { n as loadProject } from "../../project-Ceh2yTSv.js";
3
3
  import { n as loadLite, t as LITE_INSTALL } from "../../runtime-qslVrC9l.js";
4
4
  import { t as defineApi } from "../../api-wwix_K5c.js";
5
5
  // src/create/lite/apply.ts
@@ -1,4 +1,4 @@
1
- import { t as AuthSnapshot } from "./bind-XrFxNm5r.js";
1
+ import { t as AuthSnapshot } from "./bind-B71jMEGG.js";
2
2
  import { n as AuthSession } from "./view-eHgOOyRS.js";
3
3
  /** Verified claims, read by name. */
4
4
  type ClaimsRecord = Readonly<Record<string, unknown>>;
@@ -5,7 +5,7 @@ import { i as CredentialRef, r as CredentialProvider } from "../provider-CVlXXbd
5
5
  import { r as DbTransportSource, t as BlockTransport } from "../block-transport-CDmOUuLZ.js";
6
6
  import { j as ScheduleOptions } from "../types-LLCyr-xs.js";
7
7
  import { R as AiToolPolicy, t as AiChat } from "../ai-chat-rQ7Ftq9W.js";
8
- import { h as Approvals } from "../approvals-CTVaWq1O.js";
8
+ import { g as Approvals } from "../approvals-CYbTzQ7v.js";
9
9
  import { a as Inbox } from "../inbox-DiQ8KhG8.js";
10
10
  import { S as EveToolContext, _ as EveApprovalResponseDecision, a as EveMemoryToolsContext, b as EveSessionContext, c as MemoryDocumentConflictError, d as supabaseDocumentBackend, f as supabaseMemory, g as EveApprovalResponseContext, h as EveApprovalPolicy, i as EveMemoryTool, l as SupabaseDocumentBackendOptions, m as EveApprovalContext, n as EveMemoryContext, o as EveRecallMessage, p as EveApprovalConfiguration, r as EveMemoryProvider, s as EveRecallResult, t as EveDocumentBackend, u as SupabaseMemoryOptions, v as EveApprovalStatus, x as EveToolApproval, y as EveSessionAuth } from "../eve-CtQd4iaO.js";
11
11
  import { StandardSchemaV1 } from "@standard-schema/spec";
package/dist/eve/index.js CHANGED
@@ -7,7 +7,7 @@ import { r as agentClaims } from "../actor-B5b0i1Fs.js";
7
7
  import { V as dbTransport } from "../block-helpers-I7UzjNEf.js";
8
8
  import { t as isAnonymousUser } from "../view-Ch0Qtr36.js";
9
9
  import { r as resolveAuth } from "../resolve-CZV31iCm.js";
10
- import { n as createApprovals } from "../approvals-Qjn42OAZ.js";
10
+ import { n as createApprovals } from "../approvals-cyL5CmU7.js";
11
11
  // src/eve/ids.ts
12
12
  /**
13
13
  * A UUID (version 8) from the SHA-256 of `input`, so the same input always gets
@@ -5,10 +5,10 @@ import { mt as QuerySpec } from "./define-C_He1bQO.js";
5
5
  import { tt as TemplateValues } from "./bucket-CrsJNHzi.js";
6
6
  import { n as DataEngine } from "./data-engine-CX1oYDZl.js";
7
7
  import { Dn as GeneratedBlocks } from "./define-block-DBD7yhQg.js";
8
- import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-CKN3kmoi.js";
9
- import { t as ClientPorts } from "./ports-BJJJmfWK.js";
10
- import { a as ClientAuth } from "./bind-XrFxNm5r.js";
11
- import { a as LiveSource, r as LiveCountSeed } from "./index-X5igfnIi.js";
8
+ import { _ as TopicMessage, c as RealtimeClient, d as SubscribeOptions, i as PresenceOptions, s as PresenceSubscription } from "./topic-BYF-GTW9.js";
9
+ import { t as ClientPorts } from "./ports-BKdt_9Oe.js";
10
+ import { a as ClientAuth } from "./bind-B71jMEGG.js";
11
+ import { a as LiveSource, r as LiveCountSeed } from "./index-BrGOE0c2.js";
12
12
  import { SupabaseClient } from "@supabase/supabase-js";
13
13
  import { QueryClient } from "@tanstack/query-core";
14
14
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -1,4 +1,4 @@
1
- import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-tFoygone.js";
1
+ import { Ar as AppTablesConfig, Mt as ResolvedPreset, Ot as presetConfig, Tr as AppTableConfig, Wn as PresetSpec, er as PresetName, gi as PresetGlueItem, gr as AppColumnConfig, pi as PresetCatalog, vr as AppColumnType, xi as Preset } from "./context-DXWyPNzr.js";
2
2
  import { StandardSchemaV1 } from "@standard-schema/spec";
3
3
  declare const PRESET_CATALOG: PresetCatalog;
4
4
  /**