@kozou/svelte-ui 1.7.0 → 1.8.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 (95) hide show
  1. package/build/client/_app/immutable/chunks/BC5KLBLb.js +4 -0
  2. package/build/client/_app/immutable/chunks/BC5KLBLb.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/BC5KLBLb.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{DSbn7kGt.js → BVSHjVK6.js} +1 -1
  5. package/build/client/_app/immutable/chunks/BVSHjVK6.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/BVSHjVK6.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{BYraeUB_.js → CzVb7msC.js} +1 -1
  8. package/build/client/_app/immutable/chunks/CzVb7msC.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/CzVb7msC.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{C9WGdAsc.js → yIxoVI_-.js} +1 -1
  11. package/build/client/_app/immutable/chunks/yIxoVI_-.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/yIxoVI_-.js.gz +0 -0
  13. package/build/client/_app/immutable/entry/{app.Wk5635sI.js → app.DHKWTljt.js} +2 -2
  14. package/build/client/_app/immutable/entry/app.DHKWTljt.js.br +0 -0
  15. package/build/client/_app/immutable/entry/app.DHKWTljt.js.gz +0 -0
  16. package/build/client/_app/immutable/entry/start.DNSPY2k9.js +1 -0
  17. package/build/client/_app/immutable/entry/start.DNSPY2k9.js.br +0 -0
  18. package/build/client/_app/immutable/entry/start.DNSPY2k9.js.gz +0 -0
  19. package/build/client/_app/immutable/nodes/{1.CJR2D6sL.js → 1.BkcGPtdF.js} +1 -1
  20. package/build/client/_app/immutable/nodes/1.BkcGPtdF.js.br +4 -0
  21. package/build/client/_app/immutable/nodes/1.BkcGPtdF.js.gz +0 -0
  22. package/build/client/_app/immutable/nodes/{3.BTPurmTs.js → 3.B4UoMGo7.js} +1 -1
  23. package/build/client/_app/immutable/nodes/3.B4UoMGo7.js.br +0 -0
  24. package/build/client/_app/immutable/nodes/3.B4UoMGo7.js.gz +0 -0
  25. package/build/client/_app/immutable/nodes/{5.BDuyXkL4.js → 5.md6hU4xw.js} +1 -1
  26. package/build/client/_app/immutable/nodes/5.md6hU4xw.js.br +0 -0
  27. package/build/client/_app/immutable/nodes/5.md6hU4xw.js.gz +0 -0
  28. package/build/client/_app/immutable/nodes/{6.DvHd-OSW.js → 6.BvmJdH03.js} +1 -1
  29. package/build/client/_app/immutable/nodes/6.BvmJdH03.js.br +0 -0
  30. package/build/client/_app/immutable/nodes/6.BvmJdH03.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{7.Dy8MwYOG.js → 7.BO_sQESH.js} +1 -1
  32. package/build/client/_app/immutable/nodes/7.BO_sQESH.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/7.BO_sQESH.js.gz +0 -0
  34. package/build/client/_app/version.json +1 -1
  35. package/build/client/_app/version.json.br +0 -0
  36. package/build/client/_app/version.json.gz +0 -0
  37. package/build/server/chunks/{1-CywdWOqm.js → 1-co7IU-ci.js} +3 -3
  38. package/build/server/chunks/{1-CywdWOqm.js.map → 1-co7IU-ci.js.map} +1 -1
  39. package/build/server/chunks/{3-DdqrFLgx.js → 3-D86eJKW8.js} +6 -6
  40. package/build/server/chunks/{3-DdqrFLgx.js.map → 3-D86eJKW8.js.map} +1 -1
  41. package/build/server/chunks/{5-CHuZHV3d.js → 5-Bc0-5LMg.js} +3 -3
  42. package/build/server/chunks/{5-CHuZHV3d.js.map → 5-Bc0-5LMg.js.map} +1 -1
  43. package/build/server/chunks/{6-Cfxgxm8W.js → 6-DaGLS_mw.js} +6 -6
  44. package/build/server/chunks/{6-Cfxgxm8W.js.map → 6-DaGLS_mw.js.map} +1 -1
  45. package/build/server/chunks/{7-8ys0Qwin.js → 7-AttnsF7z.js} +6 -6
  46. package/build/server/chunks/{7-8ys0Qwin.js.map → 7-AttnsF7z.js.map} +1 -1
  47. package/build/server/chunks/{_page.svelte-DZhCOhik.js → _page.svelte-Bcneewwy.js} +5 -5
  48. package/build/server/chunks/{_page.svelte-DZhCOhik.js.map → _page.svelte-Bcneewwy.js.map} +1 -1
  49. package/build/server/chunks/{_page.svelte-DJgWsaAN.js → _page.svelte-Bf1Xvutq.js} +3 -3
  50. package/build/server/chunks/{_page.svelte-DJgWsaAN.js.map → _page.svelte-Bf1Xvutq.js.map} +1 -1
  51. package/build/server/chunks/{_page.svelte-DYC0w_l3.js → _page.svelte-CJFKUETC.js} +5 -5
  52. package/build/server/chunks/{_page.svelte-DYC0w_l3.js.map → _page.svelte-CJFKUETC.js.map} +1 -1
  53. package/build/server/chunks/{_page.svelte-a_oj8tbK.js → _page.svelte-DzvgX_Fb.js} +4 -4
  54. package/build/server/chunks/{_page.svelte-a_oj8tbK.js.map → _page.svelte-DzvgX_Fb.js.map} +1 -1
  55. package/build/server/chunks/{client--93ud09U.js → client-B7_eTpxF.js} +2 -2
  56. package/build/server/chunks/{client--93ud09U.js.map → client-B7_eTpxF.js.map} +1 -1
  57. package/build/server/chunks/{composite-form-DI9bKZA5.js → composite-form-BBdoMBnQ.js} +3 -3
  58. package/build/server/chunks/{composite-form-DI9bKZA5.js.map → composite-form-BBdoMBnQ.js.map} +1 -1
  59. package/build/server/chunks/{error.svelte-CmtD95uy.js → error.svelte-CdfDRBr_.js} +3 -3
  60. package/build/server/chunks/{error.svelte-CmtD95uy.js.map → error.svelte-CdfDRBr_.js.map} +1 -1
  61. package/build/server/chunks/{hooks.server-BAdXzrsD.js → hooks.server-BE9c-_mv.js} +8 -5
  62. package/build/server/chunks/hooks.server-BE9c-_mv.js.map +1 -0
  63. package/build/server/chunks/{internal-BRga-sZc.js → internal-6-cAlFJo.js} +3 -3
  64. package/build/server/chunks/{internal-BRga-sZc.js.map → internal-6-cAlFJo.js.map} +1 -1
  65. package/build/server/chunks/{relation-select-composite-field-CXoJZ8gC.js → relation-select-composite-field-C_95H1v5.js} +2 -2
  66. package/build/server/chunks/{relation-select-composite-field-CXoJZ8gC.js.map → relation-select-composite-field-C_95H1v5.js.map} +1 -1
  67. package/build/server/index.js +1 -1
  68. package/build/server/manifest.js +6 -6
  69. package/build/server/manifest.js.map +1 -1
  70. package/package.json +5 -5
  71. package/build/client/_app/immutable/chunks/BYraeUB_.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/BYraeUB_.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/C9WGdAsc.js.br +0 -0
  74. package/build/client/_app/immutable/chunks/C9WGdAsc.js.gz +0 -0
  75. package/build/client/_app/immutable/chunks/DSbn7kGt.js.br +0 -0
  76. package/build/client/_app/immutable/chunks/DSbn7kGt.js.gz +0 -0
  77. package/build/client/_app/immutable/chunks/OVfsyOop.js +0 -4
  78. package/build/client/_app/immutable/chunks/OVfsyOop.js.br +0 -0
  79. package/build/client/_app/immutable/chunks/OVfsyOop.js.gz +0 -0
  80. package/build/client/_app/immutable/entry/app.Wk5635sI.js.br +0 -0
  81. package/build/client/_app/immutable/entry/app.Wk5635sI.js.gz +0 -0
  82. package/build/client/_app/immutable/entry/start.CyHqwjma.js +0 -1
  83. package/build/client/_app/immutable/entry/start.CyHqwjma.js.br +0 -0
  84. package/build/client/_app/immutable/entry/start.CyHqwjma.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/1.CJR2D6sL.js.br +0 -0
  86. package/build/client/_app/immutable/nodes/1.CJR2D6sL.js.gz +0 -0
  87. package/build/client/_app/immutable/nodes/3.BTPurmTs.js.br +0 -0
  88. package/build/client/_app/immutable/nodes/3.BTPurmTs.js.gz +0 -0
  89. package/build/client/_app/immutable/nodes/5.BDuyXkL4.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/5.BDuyXkL4.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/6.DvHd-OSW.js.br +0 -0
  92. package/build/client/_app/immutable/nodes/6.DvHd-OSW.js.gz +0 -0
  93. package/build/client/_app/immutable/nodes/7.Dy8MwYOG.js.br +0 -0
  94. package/build/client/_app/immutable/nodes/7.Dy8MwYOG.js.gz +0 -0
  95. package/build/server/chunks/hooks.server-BAdXzrsD.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import 'node:module';
2
2
  import { q as escape_html, x as getContext } from './dev-yFiAtg5l.js';
3
- import './client--93ud09U.js';
3
+ import './client-B7_eTpxF.js';
4
4
  import 'clsx';
5
- import './internal-BRga-sZc.js';
5
+ import './internal-6-cAlFJo.js';
6
6
  import './index-DBqjc0Yf.js';
7
7
 
8
8
  //#endregion
@@ -65,4 +65,4 @@ function Error$1($$renderer, $$props) {
65
65
  }
66
66
 
67
67
  export { Error$1 as default };
68
- //# sourceMappingURL=error.svelte-CmtD95uy.js.map
68
+ //# sourceMappingURL=error.svelte-CdfDRBr_.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.svelte-CmtD95uy.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { H as escape_html, tt as getContext } from \"../../chunks/dev.js\";\nimport { c as navigating$1, s as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
1
+ {"version":3,"file":"error.svelte-CdfDRBr_.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import \"../../chunks/environment.js\";\nimport { H as escape_html, tt as getContext } from \"../../chunks/dev.js\";\nimport { c as navigating$1, s as stores } from \"../../chunks/client.js\";\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region ../../node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.55.9_@typescript-eslin_31b35890553a27fb0d8f940d66156f76/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte\nfunction Error$1($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\t$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n\t});\n}\n//#endregion\nexport { Error$1 as default };\n"],"names":[],"mappings":";;;;;;;AA0BA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,IAAI,GAAG;AACX,CAGC,IAAI,KAAK,GAAG;AACb,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC7B,CAAC,CAAC;AACF,CAYC,IAAI,MAAM,GAAG;AACd,EAAE,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAC9B,CAAC,CAID,CAAC;AACD;AACA;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,KAAK;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH;;;;"}
@@ -1,4 +1,4 @@
1
- import { _ as __commonJSMin, b as __require } from './internal-BRga-sZc.js';
1
+ import { _ as __commonJSMin, b as __require } from './internal-6-cAlFJo.js';
2
2
  import { e as encodeResourceId } from './resource-id-CFSW_3aR.js';
3
3
  import { z } from 'zod';
4
4
  import require$$0$3 from 'events';
@@ -7250,6 +7250,7 @@ function buildTableContext(input) {
7250
7250
  description: parsed.body !== "" ? parsed.body : null,
7251
7251
  aiDescription: joinAi(parsed.ai),
7252
7252
  policy: parsed.policy,
7253
+ ...table.privileges ? { privileges: table.privileges } : {},
7253
7254
  primaryKey: table.primaryKey,
7254
7255
  displayField,
7255
7256
  columns,
@@ -7302,6 +7303,7 @@ function buildViewContext(input) {
7302
7303
  description: parsed.body !== "" ? parsed.body : null,
7303
7304
  aiDescription: joinAi(parsed.ai),
7304
7305
  policy: parsed.policy,
7306
+ ...view.privileges ? { privileges: view.privileges } : {},
7305
7307
  purpose: firstParagraph(parsed.body),
7306
7308
  columns,
7307
7309
  underlyingTables: view.underlyingTables,
@@ -7326,7 +7328,8 @@ function buildConcept(view) {
7326
7328
  };
7327
7329
  }
7328
7330
  async function buildSchemaContext(opts) {
7329
- const { raw, uiHints, strict = false, rpc } = opts;
7331
+ const { raw, uiHints, strict = false, rpc, privilegeDisplay = "filter" } = opts;
7332
+ const annotatePrivileges = privilegeDisplay === "annotate";
7330
7333
  const issues = [];
7331
7334
  const knownTables = new Set(raw.tables.map((t) => `${t.schema}.${t.name}`));
7332
7335
  raw.views.forEach((v) => knownTables.add(`${v.schema}.${v.name}`));
@@ -7343,14 +7346,14 @@ async function buildSchemaContext(opts) {
7343
7346
  });
7344
7347
  }
7345
7348
  const hiddenNames = [];
7346
- const visibleRawTables = raw.tables.filter((t) => {
7349
+ const visibleRawTables = annotatePrivileges ? raw.tables : raw.tables.filter((t) => {
7347
7350
  if (t.privileges?.select === false) {
7348
7351
  hiddenNames.push(t.name);
7349
7352
  return false;
7350
7353
  }
7351
7354
  return true;
7352
7355
  });
7353
- const visibleRawViews = raw.views.filter((v) => {
7356
+ const visibleRawViews = annotatePrivileges ? raw.views : raw.views.filter((v) => {
7354
7357
  if (v.privileges?.select === false) {
7355
7358
  hiddenNames.push(v.name);
7356
7359
  return false;
@@ -14895,4 +14898,4 @@ var handle = async ({ event, resolve }) => {
14895
14898
  };
14896
14899
 
14897
14900
  export { handle };
14898
- //# sourceMappingURL=hooks.server-BAdXzrsD.js.map
14901
+ //# sourceMappingURL=hooks.server-BE9c-_mv.js.map