@powerhousedao/ph-clint-app 0.1.0-dev.89 → 0.1.0-dev.90

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 (106) hide show
  1. package/dist/browser/{editor-BuHwuzRa.js → editor-Bp2wUo8R.js} +748 -522
  2. package/dist/browser/editor-Bp2wUo8R.js.map +1 -0
  3. package/dist/browser/editors/ph-clint-project-editor/module.js +1 -1
  4. package/dist/connect/assets/{AddDriveModal-BoKLJyUY-DwlVwt2n.js → AddDriveModal-BoKLJyUY-cGJwd_2F.js} +2 -2
  5. package/dist/connect/assets/{AddDriveModal-BoKLJyUY-DwlVwt2n.js.map → AddDriveModal-BoKLJyUY-cGJwd_2F.js.map} +1 -1
  6. package/dist/connect/assets/{ClearStorageModal-CXoNWmRe-lBEW3sSH.js → ClearStorageModal-CXoNWmRe-D3ifKRm-.js} +2 -2
  7. package/dist/connect/assets/{ClearStorageModal-CXoNWmRe-lBEW3sSH.js.map → ClearStorageModal-CXoNWmRe-D3ifKRm-.js.map} +1 -1
  8. package/dist/connect/assets/{CookiesPolicyModal-1nOh6oN3-BYSDp-5J.js → CookiesPolicyModal-1nOh6oN3-kK_sx5mz.js} +2 -2
  9. package/dist/connect/assets/{CookiesPolicyModal-1nOh6oN3-BYSDp-5J.js.map → CookiesPolicyModal-1nOh6oN3-kK_sx5mz.js.map} +1 -1
  10. package/dist/connect/assets/{CreateDocumentModal-nQbLVDq3-DJbJhlYp.js → CreateDocumentModal-nQbLVDq3-DFAye2CX.js} +2 -2
  11. package/dist/connect/assets/{CreateDocumentModal-nQbLVDq3-DJbJhlYp.js.map → CreateDocumentModal-nQbLVDq3-DFAye2CX.js.map} +1 -1
  12. package/dist/connect/assets/{DebugSettingsModal-5SDhy5gt-Du3PKhbh.js → DebugSettingsModal-5SDhy5gt-DLMPdDQB.js} +2 -2
  13. package/dist/connect/assets/{DebugSettingsModal-5SDhy5gt-Du3PKhbh.js.map → DebugSettingsModal-5SDhy5gt-DLMPdDQB.js.map} +1 -1
  14. package/dist/connect/assets/{DeleteDriveModal-6P0T1QgD-CaEKmseP.js → DeleteDriveModal-6P0T1QgD-CK6cPXbT.js} +2 -2
  15. package/dist/connect/assets/{DeleteDriveModal-6P0T1QgD-CaEKmseP.js.map → DeleteDriveModal-6P0T1QgD-CK6cPXbT.js.map} +1 -1
  16. package/dist/connect/assets/{DeleteItemModal-BmV1aQyZ-B01dssV-.js → DeleteItemModal-BmV1aQyZ-Ld9lHNhl.js} +2 -2
  17. package/dist/connect/assets/{DeleteItemModal-BmV1aQyZ-B01dssV-.js.map → DeleteItemModal-BmV1aQyZ-Ld9lHNhl.js.map} +1 -1
  18. package/dist/connect/assets/{DisclaimerModal-CVTFfN0_-CfPGYzP1.js → DisclaimerModal-CVTFfN0_-D7N9TDI4.js} +2 -2
  19. package/dist/connect/assets/{DisclaimerModal-CVTFfN0_-CfPGYzP1.js.map → DisclaimerModal-CVTFfN0_-D7N9TDI4.js.map} +1 -1
  20. package/dist/connect/assets/{DownloadDocumentWithErrorsModal-CXeFUtaz-UexzRqQT.js → DownloadDocumentWithErrorsModal-CXeFUtaz-CYIIl42M.js} +2 -2
  21. package/dist/connect/assets/{DownloadDocumentWithErrorsModal-CXeFUtaz-UexzRqQT.js.map → DownloadDocumentWithErrorsModal-CXeFUtaz-CYIIl42M.js.map} +1 -1
  22. package/dist/connect/assets/{DriveAuthRequiredModal-B3VdLwSH-C5FZCMC5.js → DriveAuthRequiredModal-B3VdLwSH-fqmI_4sF.js} +2 -2
  23. package/dist/connect/assets/{DriveAuthRequiredModal-B3VdLwSH-C5FZCMC5.js.map → DriveAuthRequiredModal-B3VdLwSH-fqmI_4sF.js.map} +1 -1
  24. package/dist/connect/assets/{DriveSettingsModal-CsNFEJ9E-BoXSbW1c.js → DriveSettingsModal-CsNFEJ9E-BR2vyeU8.js} +2 -2
  25. package/dist/connect/assets/{DriveSettingsModal-CsNFEJ9E-BoXSbW1c.js.map → DriveSettingsModal-CsNFEJ9E-BR2vyeU8.js.map} +1 -1
  26. package/dist/connect/assets/{InspectorModal-BsSihzuc-hukmcBoP.js → InspectorModal-BsSihzuc-B0n5gbGB.js} +2 -2
  27. package/dist/connect/assets/{InspectorModal-BsSihzuc-hukmcBoP.js.map → InspectorModal-BsSihzuc-B0n5gbGB.js.map} +1 -1
  28. package/dist/connect/assets/{MissingPackageModal-Bn036mWQ-BOXHWmFa.js → MissingPackageModal-Bn036mWQ-C021G1nV.js} +2 -2
  29. package/dist/connect/assets/{MissingPackageModal-Bn036mWQ-BOXHWmFa.js.map → MissingPackageModal-Bn036mWQ-C021G1nV.js.map} +1 -1
  30. package/dist/connect/assets/{SettingsModal-S_A5qf95-Fz0f2CXX.js → SettingsModal-S_A5qf95-uzigz0nk.js} +2 -2
  31. package/dist/connect/assets/{SettingsModal-S_A5qf95-Fz0f2CXX.js.map → SettingsModal-S_A5qf95-uzigz0nk.js.map} +1 -1
  32. package/dist/connect/assets/{UpgradeDriveModal-C7lV4rAX-BkeBWpDi.js → UpgradeDriveModal-C7lV4rAX-CTIf4duw.js} +2 -2
  33. package/dist/connect/assets/{UpgradeDriveModal-C7lV4rAX-BkeBWpDi.js.map → UpgradeDriveModal-C7lV4rAX-CTIf4duw.js.map} +1 -1
  34. package/dist/connect/assets/build-info-cc1PjSvF-DtAGzh0W.js.map +1 -1
  35. package/dist/connect/assets/chunk-pbuEa-1d-KEQyMDN_.js.map +1 -1
  36. package/dist/connect/assets/{components-ByEUkO4U-Mc23VVA-.js → components-ByEUkO4U-xPZUVkzr.js} +4 -4
  37. package/dist/connect/assets/{components-ByEUkO4U-Mc23VVA-.js.map → components-ByEUkO4U-xPZUVkzr.js.map} +1 -1
  38. package/dist/connect/assets/{components-HCKyLh9m.js → components-Djrujufg.js} +2 -2
  39. package/dist/connect/assets/{components-HCKyLh9m.js.map → components-Djrujufg.js.map} +1 -1
  40. package/dist/connect/assets/{connect-pRAhId57.js → connect-CGvtDtZh.js} +2 -2
  41. package/dist/connect/assets/{connect-pRAhId57.js.map → connect-CGvtDtZh.js.map} +1 -1
  42. package/dist/connect/assets/{connect.config-Bt4pvvWV-CAyer5pZ.js → connect.config-Bt4pvvWV-Dj3FkjaZ.js} +2 -2
  43. package/dist/connect/assets/{connect.config-Bt4pvvWV-CAyer5pZ.js.map → connect.config-Bt4pvvWV-Dj3FkjaZ.js.map} +1 -1
  44. package/dist/connect/assets/{dist-DmhUSVtT.js → dist-t-ezfpxv.js} +3 -3
  45. package/dist/connect/assets/{dist-DmhUSVtT.js.map → dist-t-ezfpxv.js.map} +1 -1
  46. package/dist/connect/assets/{editor-B560eld_-CIE3_3II.js → editor-B560eld_-DLpKHubk.js} +2 -2
  47. package/dist/connect/assets/{editor-B560eld_-CIE3_3II.js.map → editor-B560eld_-DLpKHubk.js.map} +1 -1
  48. package/dist/connect/assets/editor-BaQ62r3i.js +2 -0
  49. package/dist/connect/assets/editor-BaQ62r3i.js.map +1 -0
  50. package/dist/connect/assets/{editor-CAVHtR-v-ClzvSfK5.js → editor-CAVHtR-v-D33T9vW0.js} +2 -2
  51. package/dist/connect/assets/{editor-CAVHtR-v-ClzvSfK5.js.map → editor-CAVHtR-v-D33T9vW0.js.map} +1 -1
  52. package/dist/connect/assets/{editor-CVCLxUhe-C6nP7EPN.js → editor-CVCLxUhe-C9Ftgu1S.js} +2 -2
  53. package/dist/connect/assets/{editor-CVCLxUhe-C6nP7EPN.js.map → editor-CVCLxUhe-C9Ftgu1S.js.map} +1 -1
  54. package/dist/connect/assets/{editor-DnG2Zzet-CRhirYbH.js → editor-DnG2Zzet-CQ38uSti.js} +2 -2
  55. package/dist/connect/assets/{editor-DnG2Zzet-CRhirYbH.js.map → editor-DnG2Zzet-CQ38uSti.js.map} +1 -1
  56. package/dist/connect/assets/{editor-mor7dV6n-DDigdbLM.js → editor-mor7dV6n-NTU9k1uj.js} +2 -2
  57. package/dist/connect/assets/{editor-mor7dV6n-DDigdbLM.js.map → editor-mor7dV6n-NTU9k1uj.js.map} +1 -1
  58. package/dist/connect/assets/{editor-xCnDas6c-CyHuSL7M.js → editor-xCnDas6c-DdGhx--5.js} +2 -2
  59. package/dist/connect/assets/{editor-xCnDas6c-CyHuSL7M.js.map → editor-xCnDas6c-DdGhx--5.js.map} +1 -1
  60. package/dist/connect/assets/esm-dD38MHAT.js +10 -0
  61. package/dist/connect/assets/esm-dD38MHAT.js.map +1 -0
  62. package/dist/connect/assets/{hooks-Btogj1f0-CMXQZV6d.js → hooks-Btogj1f0-BKAAmyt-.js} +2 -2
  63. package/dist/connect/assets/{hooks-Btogj1f0-CMXQZV6d.js.map → hooks-Btogj1f0-BKAAmyt-.js.map} +1 -1
  64. package/dist/connect/assets/index-NB86TKkT.js +3 -0
  65. package/dist/connect/assets/{index-DS7vbdaR.js.map → index-NB86TKkT.js.map} +1 -1
  66. package/dist/connect/assets/{load-BWibkoFV-BVilFVpD.js → load-BWibkoFV-CDRjWwYQ.js} +2 -2
  67. package/dist/connect/assets/{load-BWibkoFV-BVilFVpD.js.map → load-BWibkoFV-CDRjWwYQ.js.map} +1 -1
  68. package/dist/connect/assets/module-1hr_ne9w-CWAVsMzZ.js.map +1 -1
  69. package/dist/connect/assets/{module-DP3LMNU7.js → module-7zCQE1MC.js} +2 -2
  70. package/dist/connect/assets/{module-DP3LMNU7.js.map → module-7zCQE1MC.js.map} +1 -1
  71. package/dist/connect/assets/module-CRq_lUkG-D61oeRlC.js.map +1 -1
  72. package/dist/connect/assets/module-DP3bVbak-VbUPIBZP.js.map +1 -1
  73. package/dist/connect/assets/package-BZLLR0Ma-B7vswMvI.js.map +1 -1
  74. package/dist/connect/assets/{pglite-seed-BWk7yOwr-T-NGWlGh.js → pglite-seed-BWk7yOwr-b2F0oJiP.js} +2 -2
  75. package/dist/connect/assets/{pglite-seed-BWk7yOwr-T-NGWlGh.js.map → pglite-seed-BWk7yOwr-b2F0oJiP.js.map} +1 -1
  76. package/dist/connect/assets/pglite.worker-BuyZ0d7u.js.map +1 -1
  77. package/dist/connect/assets/pglite.worker.legacy-D5InEf0i.js.map +1 -1
  78. package/dist/connect/assets/{ph-clint-project-BZ5X7dVQ.js → ph-clint-project-p1zY6e17.js} +2 -2
  79. package/dist/connect/assets/{ph-clint-project-BZ5X7dVQ.js.map → ph-clint-project-p1zY6e17.js.map} +1 -1
  80. package/dist/connect/assets/{reactor-BxNvHOKC-DmVBqCt_.js → reactor-BxNvHOKC-CeMF1M2u.js} +4 -4
  81. package/dist/connect/assets/{reactor-BxNvHOKC-DmVBqCt_.js.map → reactor-BxNvHOKC-CeMF1M2u.js.map} +1 -1
  82. package/dist/connect/assets/{registerServiceWorker-D9l1kja7-oC4nicB2.js → registerServiceWorker-D9l1kja7-DG3DqQna.js} +2 -2
  83. package/dist/connect/assets/{registerServiceWorker-D9l1kja7-oC4nicB2.js.map → registerServiceWorker-D9l1kja7-DG3DqQna.js.map} +1 -1
  84. package/dist/connect/assets/reload-connect-toast-CwvSc6F--BQcqGaN_.js.map +1 -1
  85. package/dist/connect/assets/runtime-config-DL3QjcfM-D9g4VFtY.js.map +1 -1
  86. package/dist/connect/assets/toast-BEy42aYx-Dg_jZf6v.js.map +1 -1
  87. package/dist/connect/assets/{useRegistryPackages-B-gFECmd-CXOBKziY.js → useRegistryPackages-B-gFECmd-C8h2M5qM.js} +2 -2
  88. package/dist/connect/assets/{useRegistryPackages-B-gFECmd-CXOBKziY.js.map → useRegistryPackages-B-gFECmd-C8h2M5qM.js.map} +1 -1
  89. package/dist/connect/assets/{useVetraDocument-tpjMF571-DT5T1mNT.js → useVetraDocument-tpjMF571-DxT9GgCx.js} +2 -2
  90. package/dist/connect/assets/{useVetraDocument-tpjMF571-DT5T1mNT.js.map → useVetraDocument-tpjMF571-DxT9GgCx.js.map} +1 -1
  91. package/dist/connect/assets/utils-BiV3cs9Y-B7i9WJ1b.js.map +1 -1
  92. package/dist/connect/assets/{utils-CkWB3DRk-CxqNKFWP.js → utils-CkWB3DRk-BURJYofr.js} +2 -2
  93. package/dist/connect/assets/{utils-CkWB3DRk-CxqNKFWP.js.map → utils-CkWB3DRk-BURJYofr.js.map} +1 -1
  94. package/dist/connect/index.html +3 -3
  95. package/dist/connect/powerhouse.config.json +1 -1
  96. package/dist/node/{editor-Bev0bZuJ.mjs → editor-BC9t7D3T.mjs} +748 -517
  97. package/dist/node/editor-BC9t7D3T.mjs.map +1 -0
  98. package/dist/node/editors/ph-clint-project-editor/module.mjs +1 -1
  99. package/package.json +2 -2
  100. package/dist/browser/editor-BuHwuzRa.js.map +0 -1
  101. package/dist/connect/assets/editor-BrPMvNFl.js +0 -2
  102. package/dist/connect/assets/editor-BrPMvNFl.js.map +0 -1
  103. package/dist/connect/assets/esm-mbrYcWED.js +0 -10
  104. package/dist/connect/assets/esm-mbrYcWED.js.map +0 -1
  105. package/dist/connect/assets/index-DS7vbdaR.js +0 -3
  106. package/dist/node/editor-Bev0bZuJ.mjs.map +0 -1
@@ -1,2 +1,2 @@
1
- import{Nt as e,et as t}from"./dist-DmhUSVtT.js";import{useEffect as n}from"react";function r(e){return e.header.documentType===`powerhouse/document-model`}function i(n=!1){let i=e()??[],a=(t()??[]).filter(r).map(e=>e.state.global.id);return n?[...new Set(a)]:[...new Set([...i,...a])]}function a(e,t,r){n(()=>{if(!t)return;let n=setTimeout(()=>{t(e)},r);return()=>clearTimeout(n)},[e,t,r])}export{a as n,i as t};
2
- //# sourceMappingURL=hooks-Btogj1f0-CMXQZV6d.js.map
1
+ import{Nt as e,et as t}from"./dist-t-ezfpxv.js";import{useEffect as n}from"react";function r(e){return e.header.documentType===`powerhouse/document-model`}function i(n=!1){let i=e()??[],a=(t()??[]).filter(r).map(e=>e.state.global.id);return n?[...new Set(a)]:[...new Set([...i,...a])]}function a(e,t,r){n(()=>{if(!t)return;let n=setTimeout(()=>{t(e)},r);return()=>clearTimeout(n)},[e,t,r])}export{a as n,i as t};
2
+ //# sourceMappingURL=hooks-Btogj1f0-BKAAmyt-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hooks-Btogj1f0-CMXQZV6d.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/hooks-Btogj1f0.js"],"sourcesContent":["import { useDocumentsInSelectedDrive, useSupportedDocumentTypesInReactor } from \"@powerhousedao/reactor-browser\";\nimport { useEffect } from \"react\";\n//#region editors/hooks/useAvailableDocumentTypes.ts\nfunction isDocumentModelDocument(document) {\n\treturn document.header.documentType === \"powerhouse/document-model\";\n}\nfunction useAvailableDocumentTypes(onlyDocumentTypesFromDriveDocuments = false) {\n\tconst supportedDocumentTypes = useSupportedDocumentTypesInReactor() ?? [];\n\tconst documentTypesFromDocumentModelDocuments = (useDocumentsInSelectedDrive() ?? []).filter(isDocumentModelDocument).map((doc) => doc.state.global.id);\n\tif (onlyDocumentTypesFromDriveDocuments) return [...new Set(documentTypesFromDocumentModelDocuments)];\n\treturn [...new Set([...supportedDocumentTypes, ...documentTypesFromDocumentModelDocuments])];\n}\n//#endregion\n//#region editors/hooks/useDebounce.ts\n/**\n* Reusable debounce hook that calls a callback function after a specified delay\n* when the value changes. Useful for API calls, search inputs, etc.\n*\n* @param value - The value to debounce\n* @param callback - Function to call with the debounced value (optional)\n* @param delay - Delay in milliseconds\n*/\nfunction useDebounce(value, callback, delay) {\n\tuseEffect(() => {\n\t\tif (!callback) return;\n\t\tconst timer = setTimeout(() => {\n\t\t\tcallback(value);\n\t\t}, delay);\n\t\treturn () => clearTimeout(timer);\n\t}, [\n\t\tvalue,\n\t\tcallback,\n\t\tdelay\n\t]);\n}\n//#endregion\nexport { useAvailableDocumentTypes as n, useDebounce as t };\n\n//# sourceMappingURL=hooks-Btogj1f0.js.map"],"x_google_ignoreList":[0],"mappings":"kFAGA,SAAS,EAAwB,EAAU,CAC1C,OAAO,EAAS,OAAO,eAAiB,4BAEzC,SAAS,EAA0B,EAAsC,GAAO,CAC/E,IAAM,EAAyB,GAAoC,EAAI,EAAE,CACnE,GAA2C,GAA6B,EAAI,EAAE,EAAE,OAAO,EAAwB,CAAC,IAAK,GAAQ,EAAI,MAAM,OAAO,GAAG,CAEvJ,OADI,EAA4C,CAAC,GAAG,IAAI,IAAI,EAAwC,CAAC,CAC9F,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAwB,GAAG,EAAwC,CAAC,CAAC,CAY7F,SAAS,EAAY,EAAO,EAAU,EAAO,CAC5C,MAAgB,CACf,GAAI,CAAC,EAAU,OACf,IAAM,EAAQ,eAAiB,CAC9B,EAAS,EAAM,EACb,EAAM,CACT,UAAa,aAAa,EAAM,EAC9B,CACF,EACA,EACA,EACA,CAAC"}
1
+ {"version":3,"file":"hooks-Btogj1f0-BKAAmyt-.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/hooks-Btogj1f0.js"],"sourcesContent":["import { useDocumentsInSelectedDrive, useSupportedDocumentTypesInReactor } from \"@powerhousedao/reactor-browser\";\nimport { useEffect } from \"react\";\n//#region editors/hooks/useAvailableDocumentTypes.ts\nfunction isDocumentModelDocument(document) {\n\treturn document.header.documentType === \"powerhouse/document-model\";\n}\nfunction useAvailableDocumentTypes(onlyDocumentTypesFromDriveDocuments = false) {\n\tconst supportedDocumentTypes = useSupportedDocumentTypesInReactor() ?? [];\n\tconst documentTypesFromDocumentModelDocuments = (useDocumentsInSelectedDrive() ?? []).filter(isDocumentModelDocument).map((doc) => doc.state.global.id);\n\tif (onlyDocumentTypesFromDriveDocuments) return [...new Set(documentTypesFromDocumentModelDocuments)];\n\treturn [...new Set([...supportedDocumentTypes, ...documentTypesFromDocumentModelDocuments])];\n}\n//#endregion\n//#region editors/hooks/useDebounce.ts\n/**\n* Reusable debounce hook that calls a callback function after a specified delay\n* when the value changes. Useful for API calls, search inputs, etc.\n*\n* @param value - The value to debounce\n* @param callback - Function to call with the debounced value (optional)\n* @param delay - Delay in milliseconds\n*/\nfunction useDebounce(value, callback, delay) {\n\tuseEffect(() => {\n\t\tif (!callback) return;\n\t\tconst timer = setTimeout(() => {\n\t\t\tcallback(value);\n\t\t}, delay);\n\t\treturn () => clearTimeout(timer);\n\t}, [\n\t\tvalue,\n\t\tcallback,\n\t\tdelay\n\t]);\n}\n//#endregion\nexport { useAvailableDocumentTypes as n, useDebounce as t };\n\n//# sourceMappingURL=hooks-Btogj1f0.js.map"],"x_google_ignoreList":[0],"mappings":"kFAGA,SAAS,EAAwB,EAAU,CAC1C,OAAO,EAAS,OAAO,eAAiB,4BAEzC,SAAS,EAA0B,EAAsC,GAAO,CAC/E,IAAM,EAAyB,GAAoC,EAAI,EAAE,CACnE,GAA2C,GAA6B,EAAI,EAAE,EAAE,OAAO,EAAwB,CAAC,IAAK,GAAQ,EAAI,MAAM,OAAO,GAAG,CAEvJ,OADI,EAA4C,CAAC,GAAG,IAAI,IAAI,EAAwC,CAAC,CAC9F,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,EAAwB,GAAG,EAAwC,CAAC,CAAC,CAY7F,SAAS,EAAY,EAAO,EAAU,EAAO,CAC5C,MAAgB,CACf,GAAI,CAAC,EAAU,OACf,IAAM,EAAQ,eAAiB,CAC9B,EAAS,EAAM,EACb,EAAM,CACT,UAAa,aAAa,EAAM,EAC9B,CACF,EACA,EACA,EACA,CAAC"}
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/components-ByEUkO4U-xPZUVkzr.js","assets/preload-helper-ca-nBW7U.js","assets/connect-CGvtDtZh.js","assets/chunk-BNv3lrIs.js","assets/dist-t-ezfpxv.js","assets/hmac-wnxCe4SN.js","assets/worker-XYrQaEmt-w0FhumYk.js","assets/error-info-Cpu4OY3o-DJ8lg6ye.js","assets/types-CxSpmNGK-BaNo7EHQ.js","assets/esm-0nAQjFUV.js","assets/errors-D3S6Eysd-DUmQAeoG.js","assets/dist-Cb4AoJ-8.js","assets/clsx-CtFH8AOT.js","assets/dist-DC27BFRa.js","assets/chunk-3WWIVTCY-Dk4atnGX.js","assets/chunk-QY3QWFKW-Dw6-Hpdq.js","assets/chunk-F2DQ4FIK-B5wKwnbU.js","assets/chunk-VBDAOXYI-BWd303gi.js","assets/connect.config-Bt4pvvWV-Dj3FkjaZ.js","assets/runtime-config-DL3QjcfM-D9g4VFtY.js","assets/module-7zCQE1MC.js","assets/registerServiceWorker-D9l1kja7-DG3DqQna.js","assets/toast-BEy42aYx-Dg_jZf6v.js","assets/Trans-DDyWfeQm.js","assets/i18next-kqPoxo7u.js","assets/useTranslation-DQCCLfKw.js","assets/editor-BaQ62r3i.js","assets/ph-clint-project-p1zY6e17.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./chunk-BNv3lrIs.js";import{r as t}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{t as n}from"./preload-helper-ca-nBW7U.js";import{$ as r,$n as i,$t as ee,A as te,An as ne,At as re,B as a,Bn as o,Bt as s,C as c,Cn as l,Ct as u,D as d,Dn as f,Dt as p,E as m,En as h,Et as g,F as _,Fn as v,Ft as y,G as b,Gn as x,Gt as S,H as C,Hn as w,Ht as T,I as E,In as D,It as O,J as k,Jn as A,Jt as j,K as M,Kn as N,Kt as P,L as F,Ln as I,Lt as L,M as R,Mn as z,Mt as B,N as V,Nn as H,Nt as U,O as W,On as G,Ot as K,P as q,Pn as J,Pt as Y,Q as X,Qn as ie,Qt as ae,R as oe,Rn as se,Rt as ce,S as le,Sn as ue,St as de,T as fe,Tn as pe,Tt as me,U as he,Un as ge,Ut as _e,V as ve,Vn as ye,Vt as be,W as xe,Wn as Se,Wt as Ce,X as we,Xn as Te,Xt as Ee,Y as De,Yn as Oe,Yt as ke,Z as Ae,Zn as je,Zt as Me,_ as Ne,_n as Pe,_t as Fe,a as Ie,an as Le,ar as Re,at as ze,b as Be,bn as Ve,bt as He,c as Ue,cn as We,ct as Ge,d as Ke,dn as qe,dt as Je,en as Z,er as Ye,et as Xe,f as Ze,fn as Qe,ft as $e,g as et,gn as tt,gt as nt,h as rt,hn as it,ht as at,i as ot,in as st,ir as ct,it as lt,j as ut,jn as dt,jt as ft,k as pt,kn as mt,kt as ht,l as gt,ln as _t,lt as vt,m as Q,mn as yt,mt as bt,n as xt,nn as St,nr as Ct,nt as wt,o as Tt,on as Et,or as Dt,ot as Ot,p as kt,pn as At,pt as jt,q as Mt,qn as Nt,qt as Pt,r as Ft,rn as It,rr as Lt,rt as Rt,s as zt,sn as Bt,st as Vt,t as $,tn as Ht,tr as Ut,tt as Wt,u as Gt,un as Kt,ut as qt,v as Jt,vn as Yt,vt as Xt,w as Zt,wn as Qt,wt as $t,x as en,xn as tn,xt as nn,y as rn,yn as an,yt as on,z as sn,zn as cn,zt as ln}from"./ph-clint-project-p1zY6e17.js";import{createRoot as un}from"react-dom/client";import{jsx as dn}from"react/jsx-runtime";import{lazy as fn}from"react";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2f8a11cf-bc6b-5fbf-9031-7723d0609b7b`)}catch{}})(),await t();var{AppLoader:pn}=await n(async()=>{let{AppLoader:e}=await import(`./components-ByEUkO4U-xPZUVkzr.js`);return{AppLoader:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]));function mn(e){window.ph?.vetraPackageManager?.updateLocalPackage(e)}function hn(e){return window.ph||(window.ph={}),un(document.getElementById(`root`)).render(dn(pn,{localPackage:e})),{updateLocalPackage:mn}}var gn={name:`ph-clint-app`,description:``,category:``,publisher:{name:``,url:``},documentModels:[{id:`powerhouse/ph-clint-project`,name:`PhClintProject`}],apps:[],editors:[{id:`ph-clint-project-editor`,name:`PhClintProjectEditor`,documentTypes:[`powerhouse/ph-clint-project`]}],processors:[],subgraphs:[],config:[]},_n=[Q],vn=[$],yn=[{Component:fn(()=>n(()=>import(`./editor-BaQ62r3i.js`),__vite__mapDeps([26,3,2,1,4,5,6,7,8,9,10,11,12,27]))),documentTypes:[`powerhouse/ph-clint-project`],config:{id:`ph-clint-project-editor`,name:`PhClintProjectEditor`}}],bn=async e=>{let{processorFactoryBuilders:t}=e.processorApp===`connect`?await n(()=>import(`./connect-DGfzdELb.js`),[]):await n(()=>import(`./switchboard-CPQzDmSh.js`),[]),r=await Promise.all(t.map(async t=>await t(e)));return async t=>{let n=[];for(let i of r){let r=await i(t,e.processorApp);n.push(...r)}return n}},xn=e({AddAgentProfileRefInputSchema:()=>s,AddAgentSkillInputSchema:()=>be,AddAgentToolPatternInputSchema:()=>T,AddExternalSkillInputSchema:()=>_e,AddModelInputSchema:()=>Ce,AddPackageDocumentTypeInputSchema:()=>S,AddPowerhousePackageInputSchema:()=>P,AddProfileInputSchema:()=>Pt,AddSubAgentInputSchema:()=>j,AddSupportedResourceInputSchema:()=>ke,BumpVersionInputSchema:()=>Ee,ClearMainAgentDescriptionInputSchema:()=>Me,ClearMainAgentImageInputSchema:()=>ae,DisableMastraInputSchema:()=>ee,DisableRoutineInputSchema:()=>Z,EnableMastraInputSchema:()=>Ht,EnableRoutineInputSchema:()=>St,ExternalSkillSchema:()=>It,ImportMainAgentInputSchema:()=>st,ImportModelInputSchema:()=>Le,ImportPackageInputSchema:()=>Et,ImportProfileInputSchema:()=>Bt,ImportSkillInputSchema:()=>We,ImportSpecInputSchema:()=>_t,ImportSubAgentInputSchema:()=>Kt,PhClintAgentModelSchema:()=>qe,PhClintAgentProfileSchema:()=>Qe,PhClintDeploymentSchema:()=>At,PhClintFeaturesSchema:()=>yt,PhClintMainAgentSchema:()=>it,PhClintMastraCommonSchema:()=>tt,PhClintMastraFeatureSchema:()=>Pe,PhClintProject:()=>Q,PhClintProjectController:()=>kt,PhClintProjectDocumentHeaderSchema:()=>Jt,PhClintProjectDocumentSchema:()=>rn,PhClintProjectPHStateSchema:()=>Be,PhClintProjectStateSchema:()=>Yt,PhClintRoutineFeatureSchema:()=>an,PhClintSubAgentSchema:()=>Ve,PowerhouseLevelSchema:()=>tn,PowerhousePackageSchema:()=>ue,PublishDevInputSchema:()=>l,PublishProductionInputSchema:()=>Qt,PublishRecordSchema:()=>pe,PublishStagingInputSchema:()=>h,PublishStatusSchema:()=>f,PublishTagSchema:()=>G,RemoveAgentProfileRefInputSchema:()=>mt,RemoveAgentSkillInputSchema:()=>ne,RemoveAgentToolPatternInputSchema:()=>dt,RemoveExternalSkillInputSchema:()=>z,RemoveModelInputSchema:()=>H,RemovePackageDocumentTypeInputSchema:()=>J,RemovePowerhousePackageInputSchema:()=>v,RemoveProfileInputSchema:()=>D,RemoveSubAgentInputSchema:()=>I,RemoveSupportedResourceInputSchema:()=>se,ReorderAgentProfileRefsInputSchema:()=>cn,ReorderProfilesInputSchema:()=>o,SetAgentModelInputSchema:()=>ye,SetDescriptionInputSchema:()=>w,SetEnableChatInputSchema:()=>ge,SetExternalSkillGithubUrlInputSchema:()=>Se,SetExternalSkillNameInputSchema:()=>x,SetMainAgentDescriptionInputSchema:()=>N,SetMainAgentImageInputSchema:()=>Nt,SetMainAgentNameInputSchema:()=>A,SetObservabilityEnabledInputSchema:()=>Oe,SetPackageIdentifierInputSchema:()=>Te,SetPackageVersionInputSchema:()=>je,SetPowerhouseLevelInputSchema:()=>ie,SetProxyEnabledInputSchema:()=>i,SetPublishStatusInputSchema:()=>Ye,SetSubAgentDescriptionInputSchema:()=>Ut,SetSubAgentNameInputSchema:()=>Ct,SetVersionInputSchema:()=>Lt,UpdateProfileInputSchema:()=>ct,actions:()=>W,addAgentProfileRef:()=>Ot,addAgentSkill:()=>Vt,addAgentToolPattern:()=>Ge,addExternalSkill:()=>re,addModel:()=>Ae,addPackageDocumentType:()=>_,addPowerhousePackage:()=>E,addProfile:()=>M,addSubAgent:()=>ve,addSupportedResource:()=>y,assertIsPhClintProjectDocument:()=>en,assertIsPhClintProjectState:()=>le,bumpVersion:()=>pt,clearMainAgentDescription:()=>Xe,clearMainAgentImage:()=>Wt,createPhClintProjectDocument:()=>Ue,createState:()=>gt,defaultGlobalState:()=>Gt,defaultLocalState:()=>Ke,defaultPHState:()=>Ze,definedNonNullAnySchema:()=>Re,disableMastra:()=>p,disableRoutine:()=>de,documentModel:()=>d,documentModels:()=>_n,editors:()=>yn,enableMastra:()=>K,enableRoutine:()=>u,importSpec:()=>nt,initialGlobalState:()=>et,initialLocalState:()=>Ne,isDefinedNonNullAny:()=>Dt,isPhClintProjectDocument:()=>c,isPhClintProjectState:()=>Zt,latestVersion:()=>xt,manifest:()=>Sn,phClintProjectDeploymentActions:()=>O,phClintProjectDocumentType:()=>fe,phClintProjectExternalSkillsActions:()=>ft,phClintProjectFeaturesMastraActions:()=>g,phClintProjectFeaturesPowerhouseActions:()=>$t,phClintProjectFeaturesRoutineActions:()=>nn,phClintProjectIdentityActions:()=>Fe,phClintProjectLifecycleActions:()=>at,phClintProjectMastraAgentBindingsActions:()=>vt,phClintProjectMastraMainAgentActions:()=>wt,phClintProjectMastraModelsActions:()=>X,phClintProjectMastraProfilesActions:()=>Mt,phClintProjectMastraSubAgentsActions:()=>C,phClintProjectPowerhousePackagesActions:()=>F,phClintProjectPublishingActions:()=>te,phClintProjectUpgradeManifest:()=>$,processorFactory:()=>bn,publishDev:()=>ut,publishProduction:()=>R,publishStaging:()=>V,reducer:()=>m,removeAgentProfileRef:()=>qt,removeAgentSkill:()=>Je,removeAgentToolPattern:()=>$e,removeExternalSkill:()=>B,removeModel:()=>r,removePackageDocumentType:()=>oe,removePowerhousePackage:()=>sn,removeProfile:()=>k,removeSubAgent:()=>he,removeSupportedResource:()=>L,reorderAgentProfileRefs:()=>jt,reorderProfiles:()=>De,setAgentModel:()=>bt,setDescription:()=>Xt,setEnableChat:()=>ht,setExternalSkillGithubUrl:()=>U,setExternalSkillName:()=>Y,setMainAgentDescription:()=>Rt,setMainAgentImage:()=>lt,setMainAgentName:()=>ze,setObservabilityEnabled:()=>ce,setPackageIdentifier:()=>on,setPackageVersion:()=>a,setPowerhouseLevel:()=>me,setProxyEnabled:()=>ln,setPublishStatus:()=>q,setSubAgentDescription:()=>xe,setSubAgentName:()=>b,setVersion:()=>He,supportedVersions:()=>Ft,updateProfile:()=>we,upgradeManifests:()=>vn,usePhClintProjectDocumentById:()=>ot,usePhClintProjectDocumentsInSelectedDrive:()=>Ie,usePhClintProjectDocumentsInSelectedFolder:()=>Tt,useSelectedPhClintProjectDocument:()=>zt,utils:()=>rt}),Sn=gn,{updateLocalPackage:Cn}=hn(xn);
3
+ //# sourceMappingURL=index-NB86TKkT.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";g3EACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,EAAE,CAAC,EAAG,IAAI,EAAE,OAAK,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC,EAAE,gBAAgB,GAAG,6CAAgD,MAAK,CAKjT,MAAM,GAAmB,CACzB,GAAM,CAAE,mCAAF,CAAE,aAAc,MAAM,OAAO,kJACnC,SAASA,GAAmB,EAAK,CAChC,OAAO,IAAI,qBAAqB,mBAAmB,EAAI,CAExD,SAAS,GAAa,EAAc,CAGnC,OAFK,OAAO,KAAI,OAAO,GAAK,EAAE,EAC9B,GAAW,SAAS,eAAe,OAAO,CAAC,CAAC,OAAuB,GAAI,GAAW,CAAE,eAAc,CAAC,CAAC,CAC7F,CAAE,sBAAoB,8TCPjB,GAA6C,CAAC,EAAiB,CCA/D,GAAyD,CAAC,EAA8B,CCJxF,GAA0B,CAAC,CCEtC,UAAW,aAAW,OAAO,gFAAe,CAC5C,cAAe,CAAC,8BAA8B,CAC9C,OAAQ,CACN,GAAI,0BACJ,KAAM,uBACP,CDPqC,CAAqB,CEKhD,GAAmB,KAAO,IAAiC,CACtE,GAAM,CAAE,4BAA6B,EAAO,eAAiB,UAAY,YAAM,OAAO,6BAAkB,YAAM,OAAO,iCAE/G,EAAY,MAAM,QAAQ,IAAI,EAAyB,IAAI,KAAO,IAAiB,MAAM,EAAa,EAAO,CAAC,CAAC,CAGrH,OAAO,KAAO,IAA8D,CAC1E,IAAM,EAAgC,EAAE,CAGxC,IAAK,IAAM,KAAW,EAAW,CAC/B,IAAM,EAAoB,MAAM,EAAQ,EAAa,EAAO,aAAa,CACzE,EAAW,KAAK,GAAG,EAAkB,CAGvC,OAAO,0rKCjBE,GAAqB,GCH5B,CAAE,uBAAuB,GAAa,GAAa","names":["updateLocalPackage"],"ignoreList":[0],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@fastify+websocket@11.2.0_@pa_aece1239503ec1d247219d4d3615d518/node_modules/@powerhousedao/connect/dist/start-connect.js","../../../document-models/document-models.ts","../../../document-models/upgrade-manifests.ts","../../../editors/editors.ts","../../../editors/ph-clint-project-editor/module.ts","../../../processors/factory.ts","../../../index.ts","../../../main.tsx"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"2f8a11cf-bc6b-5fbf-9031-7723d0609b7b\")}catch(e){}}();\nimport { r as loadRuntimeConfig } from \"./runtime-config-DL3QjcfM.js\";\nimport { createRoot } from \"react-dom/client\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region start-connect.tsx\nawait loadRuntimeConfig();\nconst { AppLoader } = await import(\"./components-ByEUkO4U.js\");\nfunction updateLocalPackage(pkg) {\n\twindow.ph?.vetraPackageManager?.updateLocalPackage(pkg);\n}\nfunction startConnect(localPackage) {\n\tif (!window.ph) window.ph = {};\n\tcreateRoot(document.getElementById(\"root\")).render(/* @__PURE__ */ jsx(AppLoader, { localPackage }));\n\treturn { updateLocalPackage };\n}\n//#endregion\nexport { startConnect };\n\n//# sourceMappingURL=start-connect.js.map\n//# debugId=2f8a11cf-bc6b-5fbf-9031-7723d0609b7b\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from 'document-model';\nimport { PhClintProject as PhClintProjectV1 } from 'document-models/ph-clint-project/v1';\n\nexport const documentModels: DocumentModelModule<any>[] = [PhClintProjectV1];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from 'document-model';\nimport { phClintProjectUpgradeManifest } from 'document-models/ph-clint-project/upgrades';\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [phClintProjectUpgradeManifest];\n","import type { EditorModule } from 'document-model';\nimport { PhClintProjectEditor } from './ph-clint-project-editor/module.js';\n\nexport const editors: EditorModule[] = [PhClintProjectEditor];\n","import type { EditorModule } from 'document-model';\nimport { lazy } from 'react';\n\n/** Document editor module for the \"[\"powerhouse/ph-clint-project\"]\" document type */\nexport const PhClintProjectEditor: EditorModule = {\n Component: lazy(() => import('./editor.js')),\n documentTypes: ['powerhouse/ph-clint-project'],\n config: {\n id: 'ph-clint-project-editor',\n name: 'PhClintProjectEditor',\n },\n};\n","/**\n * This file aggregates all processor factories\n * Auto-generated by codegen - DO NOT EDIT MANUALLY\n */\n\nimport type { IProcessorHostModule, ProcessorRecord } from '@powerhousedao/reactor-browser';\nimport type { PHDocumentHeader } from 'document-model';\n\nexport const processorFactory = async (module: IProcessorHostModule) => {\n const { processorFactoryBuilders } = module.processorApp === 'connect' ? await import('./connect.js') : await import('./switchboard.js');\n\n const factories = await Promise.all(processorFactoryBuilders.map(async (buildFactory) => await buildFactory(module)));\n\n // Return the inner function that will be called for each drive\n return async (driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n const processors: ProcessorRecord[] = [];\n\n // Call each cached factory with the driveHeader\n for (const factory of factories) {\n const factoryProcessors = await factory(driveHeader, module.processorApp);\n processors.push(...factoryProcessors);\n }\n\n return processors;\n };\n};\n","import type { Manifest } from 'document-model';\nimport manifestJson from './powerhouse.manifest.json' with { type: 'json' };\nexport { documentModels } from './document-models/document-models.js';\nexport { upgradeManifests } from './document-models/upgrade-manifests.js';\nexport { editors } from './editors/editors.js';\nexport { processorFactory } from './processors/factory.js';\nexport const manifest: Manifest = manifestJson;\n\n// Top-level re-exports of registered document models — consumed by\n// `src/framework.gen.ts` in the CLI side, so impl code never has to\n// reach into `document-models/<slug>/v1/module.js` directly.\nexport { PhClintProject } from './document-models/ph-clint-project/v1/module.js';\nexport * from './document-models/ph-clint-project/index.js';\n","import { startConnect } from '@powerhousedao/connect';\nimport * as localPackage from './index.js';\n\nconst { updateLocalPackage } = startConnect(localPackage);\n\nif (import.meta.hot) {\n import.meta.hot.accept(['./index.js'], ([newModule]) => {\n if (newModule) {\n updateLocalPackage(newModule);\n }\n });\n}\n"],"file":"index-DS7vbdaR.js"}
1
+ {"version":3,"mappings":";g3EACC,UAAU,CAAC,G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../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@parcel+watcher@2.5.6_@sentry_92fbcdab943457b0ffd54c0864a4f38d/node_modules/@powerhousedao/connect/dist/start-connect.js","../../../document-models/document-models.ts","../../../document-models/upgrade-manifests.ts","../../../editors/editors.ts","../../../editors/ph-clint-project-editor/module.ts","../../../processors/factory.ts","../../../index.ts","../../../main.tsx"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"2f8a11cf-bc6b-5fbf-9031-7723d0609b7b\")}catch(e){}}();\nimport { r as loadRuntimeConfig } from \"./runtime-config-DL3QjcfM.js\";\nimport { createRoot } from \"react-dom/client\";\nimport { jsx } from \"react/jsx-runtime\";\n//#region start-connect.tsx\nawait loadRuntimeConfig();\nconst { AppLoader } = await import(\"./components-ByEUkO4U.js\");\nfunction updateLocalPackage(pkg) {\n\twindow.ph?.vetraPackageManager?.updateLocalPackage(pkg);\n}\nfunction startConnect(localPackage) {\n\tif (!window.ph) window.ph = {};\n\tcreateRoot(document.getElementById(\"root\")).render(/* @__PURE__ */ jsx(AppLoader, { localPackage }));\n\treturn { updateLocalPackage };\n}\n//#endregion\nexport { startConnect };\n\n//# sourceMappingURL=start-connect.js.map\n//# debugId=2f8a11cf-bc6b-5fbf-9031-7723d0609b7b\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from 'document-model';\nimport { PhClintProject as PhClintProjectV1 } from 'document-models/ph-clint-project/v1';\n\nexport const documentModels: DocumentModelModule<any>[] = [PhClintProjectV1];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from 'document-model';\nimport { phClintProjectUpgradeManifest } from 'document-models/ph-clint-project/upgrades';\n\nexport const upgradeManifests: UpgradeManifest<readonly number[]>[] = [phClintProjectUpgradeManifest];\n","import type { EditorModule } from 'document-model';\nimport { PhClintProjectEditor } from './ph-clint-project-editor/module.js';\n\nexport const editors: EditorModule[] = [PhClintProjectEditor];\n","import type { EditorModule } from 'document-model';\nimport { lazy } from 'react';\n\n/** Document editor module for the \"[\"powerhouse/ph-clint-project\"]\" document type */\nexport const PhClintProjectEditor: EditorModule = {\n Component: lazy(() => import('./editor.js')),\n documentTypes: ['powerhouse/ph-clint-project'],\n config: {\n id: 'ph-clint-project-editor',\n name: 'PhClintProjectEditor',\n },\n};\n","/**\n * This file aggregates all processor factories\n * Auto-generated by codegen - DO NOT EDIT MANUALLY\n */\n\nimport type { IProcessorHostModule, ProcessorRecord } from '@powerhousedao/reactor-browser';\nimport type { PHDocumentHeader } from 'document-model';\n\nexport const processorFactory = async (module: IProcessorHostModule) => {\n const { processorFactoryBuilders } = module.processorApp === 'connect' ? await import('./connect.js') : await import('./switchboard.js');\n\n const factories = await Promise.all(processorFactoryBuilders.map(async (buildFactory) => await buildFactory(module)));\n\n // Return the inner function that will be called for each drive\n return async (driveHeader: PHDocumentHeader): Promise<ProcessorRecord[]> => {\n const processors: ProcessorRecord[] = [];\n\n // Call each cached factory with the driveHeader\n for (const factory of factories) {\n const factoryProcessors = await factory(driveHeader, module.processorApp);\n processors.push(...factoryProcessors);\n }\n\n return processors;\n };\n};\n","import type { Manifest } from 'document-model';\nimport manifestJson from './powerhouse.manifest.json' with { type: 'json' };\nexport { documentModels } from './document-models/document-models.js';\nexport { upgradeManifests } from './document-models/upgrade-manifests.js';\nexport { editors } from './editors/editors.js';\nexport { processorFactory } from './processors/factory.js';\nexport const manifest: Manifest = manifestJson;\n\n// Top-level re-exports of registered document models — consumed by\n// `src/framework.gen.ts` in the CLI side, so impl code never has to\n// reach into `document-models/<slug>/v1/module.js` directly.\nexport { PhClintProject } from './document-models/ph-clint-project/v1/module.js';\nexport * from './document-models/ph-clint-project/index.js';\n","import { startConnect } from '@powerhousedao/connect';\nimport * as localPackage from './index.js';\n\nconst { updateLocalPackage } = startConnect(localPackage);\n\nif (import.meta.hot) {\n import.meta.hot.accept(['./index.js'], ([newModule]) => {\n if (newModule) {\n updateLocalPackage(newModule);\n }\n });\n}\n"],"file":"index-NB86TKkT.js"}
@@ -1,4 +1,4 @@
1
- import{Yt as e,v as t}from"./dist-DmhUSVtT.js";import{r as n,t as r}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{a as i}from"./dist-Cb4AoJ-8.js";import{n as a}from"./toast-BEy42aYx-Dg_jZf6v.js";import{r as o}from"./connect.config-Bt4pvvWV-CAyer5pZ.js";import{s}from"./module-DP3LMNU7.js";import{n as c}from"./reactor-BxNvHOKC-DmVBqCt_.js";import{n as l}from"./pglite-seed-BWk7yOwr-T-NGWlGh.js";import{t as u}from"./package-BZLLR0Ma-B7vswMvI.js";import{t as d}from"./reload-connect-toast-CwvSc6F--BQcqGaN_.js";import{kn as f}from"./esm-DdtVZ6G4.js";import{createElement as p,useEffect as m}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e8b58963-c254-533c-95ef-fba18c930564`)}catch{}})();var h=()=>{async function e(){let e=await y();if(e!==null){if(e.isLatest||e.currentVersion.includes(`-`))return!0;o.studioMode||!o.warnOutdatedApp?i.warn(`Connect is outdated:
1
+ import{Yt as e,v as t}from"./dist-t-ezfpxv.js";import{r as n,t as r}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{a as i}from"./dist-Cb4AoJ-8.js";import{n as a}from"./toast-BEy42aYx-Dg_jZf6v.js";import{r as o}from"./connect.config-Bt4pvvWV-Dj3FkjaZ.js";import{s}from"./module-7zCQE1MC.js";import{n as c}from"./reactor-BxNvHOKC-CeMF1M2u.js";import{n as l}from"./pglite-seed-BWk7yOwr-b2F0oJiP.js";import{t as u}from"./package-BZLLR0Ma-B7vswMvI.js";import{t as d}from"./reload-connect-toast-CwvSc6F--BQcqGaN_.js";import{kn as f}from"./esm-DdtVZ6G4.js";import{createElement as p,useEffect as m}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`e8b58963-c254-533c-95ef-fba18c930564`)}catch{}})();var h=()=>{async function e(){let e=await y();if(e!==null){if(e.isLatest||e.currentVersion.includes(`-`))return!0;o.studioMode||!o.warnOutdatedApp?i.warn(`Connect is outdated:
2
2
  Current: @currentVersion
3
3
  Latest: @latestVersion`,e.currentVersion,e.latestVersion):a(p(d),{type:`connect-warning`,toastId:`outdated-app`,autoClose:!1})}}m(()=>{e().catch(console.error)},[])};window.navigator.appVersion.includes(`Mac`);var g={"staging/makerdao":`deployments/staging/makerdao`,"staging/arbitrum":`arb-ltip`,"staging/powerhouse":`staging`,makerdao:`deployments/makerdao`,arbitrum:`deployments/arbitrum`,arbgrants:`deployments/arbitrum`,localhost:`develop`},_=()=>{let e=window.location.href,t=Object.keys(g).find(t=>e.includes(t)),n=t?g[t]:void 0;if(n)return`https://raw.githubusercontent.com/powerhouse-inc/connect/${n}/package.json`},v=async()=>{let e=_();if(!e)return;let{version:t}=await(await fetch(e)).json();return t},y=async()=>{let e=u.version,t=await v();return t?{isLatest:t===e,currentVersion:e,latestVersion:t}:null};function b(){let t=e();m(()=>{let e=null;if(t){let{credential:n,...r}=t;e={id:r.did,username:r.ens?.name,...r}}f(e)},[t])}async function x(e){return await l(),await s(),r(await n()),await c(e),{default:({children:e})=>(t(),b(),h(),e)}}export{x as loadComponent};
4
- //# sourceMappingURL=load-BWibkoFV-BVilFVpD.js.map
4
+ //# sourceMappingURL=load-BWibkoFV-CDRjWwYQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"load-BWibkoFV-BVilFVpD.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@fastify+websocket@11.2.0_@pa_aece1239503ec1d247219d4d3615d518/node_modules/@powerhousedao/connect/dist/load-BWibkoFV.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"e8b58963-c254-533c-95ef-fba18c930564\")}catch(e){}}();\nimport { r as loadRuntimeConfig, t as applyConnectBranding } from \"./runtime-config-DL3QjcfM.js\";\nimport { t as ReloadConnectToast } from \"./reload-connect-toast-CwvSc6F-.js\";\nimport { t as package_default } from \"./package-BZLLR0Ma.js\";\nimport { r as connectConfig } from \"./connect.config-Bt4pvvWV.js\";\nimport { t as detectReactorPgMajor } from \"./pglite-runtime-Ch2YeUAA.js\";\nimport { n as seedPendingPgVersion } from \"./pglite-seed-BWk7yOwr.js\";\nimport { n as createReactor } from \"./reactor-BxNvHOKC.js\";\nimport { n as toast } from \"./toast-BEy42aYx.js\";\nimport { createElement, useEffect } from \"react\";\nimport { initTheme, useUser } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\nimport { setUser } from \"@sentry/react\";\n//#region src/hooks/useCheckLatestVersion.ts\nconst useCheckLatestVersion = () => {\n\tasync function checkLatestVersion() {\n\t\tconst result = await isLatestVersion();\n\t\tif (result === null) return;\n\t\tif (result.isLatest || result.currentVersion.includes(\"-\")) return true;\n\t\tif (import.meta.env.MODE === \"development\" || connectConfig.studioMode || !connectConfig.warnOutdatedApp) logger.warn(\"Connect is outdated: \\nCurrent: @currentVersion\\nLatest: @latestVersion\", result.currentVersion, result.latestVersion);\n\t\telse toast(createElement(ReloadConnectToast), {\n\t\t\ttype: \"connect-warning\",\n\t\t\ttoastId: \"outdated-app\",\n\t\t\tautoClose: false\n\t\t});\n\t}\n\tuseEffect(() => {\n\t\tcheckLatestVersion().catch(console.error);\n\t}, []);\n};\nwindow.navigator.appVersion.includes(\"Mac\");\nconst urlBranchMap = {\n\t\"staging/makerdao\": \"deployments/staging/makerdao\",\n\t\"staging/arbitrum\": \"arb-ltip\",\n\t\"staging/powerhouse\": \"staging\",\n\tmakerdao: \"deployments/makerdao\",\n\tarbitrum: \"deployments/arbitrum\",\n\tarbgrants: \"deployments/arbitrum\",\n\tlocalhost: \"develop\"\n};\nconst getGithubLinkFromUrl = () => {\n\tconst githubLink = \"https://raw.githubusercontent.com/powerhouse-inc/connect\";\n\tconst url = window.location.href;\n\tconst env = Object.keys(urlBranchMap).find((env) => url.includes(env));\n\tconst value = env ? urlBranchMap[env] : void 0;\n\tif (!value) return;\n\telse return `${githubLink}/${value}/package.json`;\n};\nconst fetchLatestVersion = async () => {\n\tconst link = getGithubLinkFromUrl();\n\tif (!link) return;\n\tconst { version } = await (await fetch(link)).json();\n\treturn version;\n};\nconst isLatestVersion = async () => {\n\tconst currentVersion = package_default.version;\n\tconst deployed = await fetchLatestVersion();\n\tif (deployed) return {\n\t\tisLatest: deployed === currentVersion,\n\t\tcurrentVersion,\n\t\tlatestVersion: deployed\n\t};\n\treturn null;\n};\n//#endregion\n//#region src/store/user.ts\nfunction useSetSentryUser() {\n\tconst user = useUser();\n\tuseEffect(() => {\n\t\tlet sentryUser = null;\n\t\tif (user) {\n\t\t\tconst { credential: _credential, ...rest } = user;\n\t\t\tsentryUser = {\n\t\t\t\tid: rest.did,\n\t\t\t\tusername: rest.ens?.name,\n\t\t\t\t...rest\n\t\t\t};\n\t\t}\n\t\tsetUser(sentryUser);\n\t}, [user]);\n}\n//#endregion\n//#region src/components/load.tsx\nasync function loadComponent(localPackage) {\n\tawait seedPendingPgVersion();\n\tawait detectReactorPgMajor();\n\tapplyConnectBranding(await loadRuntimeConfig());\n\tawait createReactor(localPackage);\n\treturn { default: ({ children }) => {\n\t\tinitTheme();\n\t\tuseSetSentryUser();\n\t\tuseCheckLatestVersion();\n\t\treturn children;\n\t} };\n}\n//#endregion\nexport { loadComponent };\n\n//# sourceMappingURL=load-BWibkoFV.js.map\n//# debugId=e8b58963-c254-533c-95ef-fba18c930564\n"],"x_google_ignoreList":[0],"mappings":"gmBACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,EAAE,CAAC,EAAG,IAAI,EAAE,OAAK,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC,EAAE,gBAAgB,GAAG,6CAAgD,MAAK,CAcjT,IAAM,MAA8B,CACnC,eAAe,GAAqB,CACnC,IAAM,EAAS,MAAM,GAAiB,CAClC,OAAW,KACf,IAAI,EAAO,UAAY,EAAO,eAAe,SAAS,IAAI,CAAE,MAAO,GACrB,EAAc,YAAc,CAAC,EAAc,gBAAiB,EAAO,KAAK;;wBAA2E,EAAO,eAAgB,EAAO,cAAc,CACxO,EAAM,EAAc,EAAmB,CAAE,CAC7C,KAAM,kBACN,QAAS,eACT,UAAW,GACX,CAAC,EAEH,MAAgB,CACf,GAAoB,CAAC,MAAM,QAAQ,MAAM,EACvC,EAAE,CAAC,EAEP,OAAO,UAAU,WAAW,SAAS,MAAM,CAC3C,IAAM,EAAe,CACpB,mBAAoB,+BACpB,mBAAoB,WACpB,qBAAsB,UACtB,SAAU,uBACV,SAAU,uBACV,UAAW,uBACX,UAAW,UACX,CACK,MAA6B,CAClC,IACM,EAAM,OAAO,SAAS,KACtB,EAAM,OAAO,KAAK,EAAa,CAAC,KAAM,GAAQ,EAAI,SAAS,EAAI,CAAC,CAChE,EAAQ,EAAM,EAAa,GAAO,IAAK,GAC7C,GAAK,EACA,MAAO,4DAAiB,EAAM,gBAE9B,EAAqB,SAAY,CACtC,IAAM,EAAO,GAAsB,CACnC,GAAI,CAAC,EAAM,OACX,GAAM,CAAE,WAAY,MAAO,MAAM,MAAM,EAAK,EAAE,MAAM,CACpD,OAAO,GAEF,EAAkB,SAAY,CACnC,IAAM,EAAiB,EAAgB,QACjC,EAAW,MAAM,GAAoB,CAM3C,OALI,EAAiB,CACpB,SAAU,IAAa,EACvB,iBACA,cAAe,EACf,CACM,MAIR,SAAS,GAAmB,CAC3B,IAAM,EAAO,GAAS,CACtB,MAAgB,CACf,IAAI,EAAa,KACjB,GAAI,EAAM,CACT,GAAM,CAAE,WAAY,EAAa,GAAG,GAAS,EAC7C,EAAa,CACZ,GAAI,EAAK,IACT,SAAU,EAAK,KAAK,KACpB,GAAG,EACH,CAEF,EAAQ,EAAW,EACjB,CAAC,EAAK,CAAC,CAIX,eAAe,EAAc,EAAc,CAK1C,OAJA,MAAM,GAAsB,CAC5B,MAAM,GAAsB,CAC5B,EAAqB,MAAM,GAAmB,CAAC,CAC/C,MAAM,EAAc,EAAa,CAC1B,CAAE,SAAU,CAAE,eACpB,GAAW,CACX,GAAkB,CAClB,GAAuB,CAChB,GACL"}
1
+ {"version":3,"file":"load-BWibkoFV-CDRjWwYQ.js","names":[],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@parcel+watcher@2.5.6_@sentry_92fbcdab943457b0ffd54c0864a4f38d/node_modules/@powerhousedao/connect/dist/load-BWibkoFV.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"e8b58963-c254-533c-95ef-fba18c930564\")}catch(e){}}();\nimport { r as loadRuntimeConfig, t as applyConnectBranding } from \"./runtime-config-DL3QjcfM.js\";\nimport { t as ReloadConnectToast } from \"./reload-connect-toast-CwvSc6F-.js\";\nimport { t as package_default } from \"./package-BZLLR0Ma.js\";\nimport { r as connectConfig } from \"./connect.config-Bt4pvvWV.js\";\nimport { t as detectReactorPgMajor } from \"./pglite-runtime-Ch2YeUAA.js\";\nimport { n as seedPendingPgVersion } from \"./pglite-seed-BWk7yOwr.js\";\nimport { n as createReactor } from \"./reactor-BxNvHOKC.js\";\nimport { n as toast } from \"./toast-BEy42aYx.js\";\nimport { createElement, useEffect } from \"react\";\nimport { initTheme, useUser } from \"@powerhousedao/reactor-browser\";\nimport { logger } from \"document-model\";\nimport { setUser } from \"@sentry/react\";\n//#region src/hooks/useCheckLatestVersion.ts\nconst useCheckLatestVersion = () => {\n\tasync function checkLatestVersion() {\n\t\tconst result = await isLatestVersion();\n\t\tif (result === null) return;\n\t\tif (result.isLatest || result.currentVersion.includes(\"-\")) return true;\n\t\tif (import.meta.env.MODE === \"development\" || connectConfig.studioMode || !connectConfig.warnOutdatedApp) logger.warn(\"Connect is outdated: \\nCurrent: @currentVersion\\nLatest: @latestVersion\", result.currentVersion, result.latestVersion);\n\t\telse toast(createElement(ReloadConnectToast), {\n\t\t\ttype: \"connect-warning\",\n\t\t\ttoastId: \"outdated-app\",\n\t\t\tautoClose: false\n\t\t});\n\t}\n\tuseEffect(() => {\n\t\tcheckLatestVersion().catch(console.error);\n\t}, []);\n};\nwindow.navigator.appVersion.includes(\"Mac\");\nconst urlBranchMap = {\n\t\"staging/makerdao\": \"deployments/staging/makerdao\",\n\t\"staging/arbitrum\": \"arb-ltip\",\n\t\"staging/powerhouse\": \"staging\",\n\tmakerdao: \"deployments/makerdao\",\n\tarbitrum: \"deployments/arbitrum\",\n\tarbgrants: \"deployments/arbitrum\",\n\tlocalhost: \"develop\"\n};\nconst getGithubLinkFromUrl = () => {\n\tconst githubLink = \"https://raw.githubusercontent.com/powerhouse-inc/connect\";\n\tconst url = window.location.href;\n\tconst env = Object.keys(urlBranchMap).find((env) => url.includes(env));\n\tconst value = env ? urlBranchMap[env] : void 0;\n\tif (!value) return;\n\telse return `${githubLink}/${value}/package.json`;\n};\nconst fetchLatestVersion = async () => {\n\tconst link = getGithubLinkFromUrl();\n\tif (!link) return;\n\tconst { version } = await (await fetch(link)).json();\n\treturn version;\n};\nconst isLatestVersion = async () => {\n\tconst currentVersion = package_default.version;\n\tconst deployed = await fetchLatestVersion();\n\tif (deployed) return {\n\t\tisLatest: deployed === currentVersion,\n\t\tcurrentVersion,\n\t\tlatestVersion: deployed\n\t};\n\treturn null;\n};\n//#endregion\n//#region src/store/user.ts\nfunction useSetSentryUser() {\n\tconst user = useUser();\n\tuseEffect(() => {\n\t\tlet sentryUser = null;\n\t\tif (user) {\n\t\t\tconst { credential: _credential, ...rest } = user;\n\t\t\tsentryUser = {\n\t\t\t\tid: rest.did,\n\t\t\t\tusername: rest.ens?.name,\n\t\t\t\t...rest\n\t\t\t};\n\t\t}\n\t\tsetUser(sentryUser);\n\t}, [user]);\n}\n//#endregion\n//#region src/components/load.tsx\nasync function loadComponent(localPackage) {\n\tawait seedPendingPgVersion();\n\tawait detectReactorPgMajor();\n\tapplyConnectBranding(await loadRuntimeConfig());\n\tawait createReactor(localPackage);\n\treturn { default: ({ children }) => {\n\t\tinitTheme();\n\t\tuseSetSentryUser();\n\t\tuseCheckLatestVersion();\n\t\treturn children;\n\t} };\n}\n//#endregion\nexport { loadComponent };\n\n//# sourceMappingURL=load-BWibkoFV.js.map\n//# debugId=e8b58963-c254-533c-95ef-fba18c930564\n"],"x_google_ignoreList":[0],"mappings":"gmBACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,EAAE,CAAC,EAAG,IAAI,EAAE,OAAK,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC,EAAE,gBAAgB,GAAG,6CAAgD,MAAK,CAcjT,IAAM,MAA8B,CAC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EAAc,EAAc,CAK1C,OAJA,MAAM,GAAsB,CAC5B,MAAM,GAAsB,CAC5B,EAAqB,MAAM,GAAmB,CAAC,CAC/C,MAAM,EAAc,EAAa,CAC1B,CAAE,SAAU,CAAE,eACpB,GAAW,CACX,GAAkB,CAClB,GAAuB,CAChB,GACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-1hr_ne9w-CWAVsMzZ.js","names":["z$1.any","z$1.object","z$1.string","z$1.literal","z$1.url","z$1.lazy","z$1.array","z.literal","z.object"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/module-1hr_ne9w.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, createState, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/vetra-package/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nfunction AddPackageKeywordInputSchema() {\n\treturn z$1.object({\n\t\tid: z$1.string(),\n\t\tlabel: z$1.string()\n\t});\n}\nfunction AuthorSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"Author\").optional(),\n\t\tname: z$1.string().nullish(),\n\t\twebsite: z$1.url().nullish()\n\t});\n}\nfunction KeywordSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"Keyword\").optional(),\n\t\tid: z$1.string(),\n\t\tlabel: z$1.string()\n\t});\n}\nfunction RemovePackageKeywordInputSchema() {\n\treturn z$1.object({ id: z$1.string() });\n}\nfunction SetPackageAuthorInputSchema() {\n\treturn z$1.object({\n\t\tname: z$1.string().nullish(),\n\t\twebsite: z$1.url().nullish()\n\t});\n}\nfunction SetPackageAuthorNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetPackageAuthorWebsiteInputSchema() {\n\treturn z$1.object({ website: z$1.url() });\n}\nfunction SetPackageCategoryInputSchema() {\n\treturn z$1.object({ category: z$1.string() });\n}\nfunction SetPackageDescriptionInputSchema() {\n\treturn z$1.object({ description: z$1.string() });\n}\nfunction SetPackageGithubUrlInputSchema() {\n\treturn z$1.object({ url: z$1.url() });\n}\nfunction SetPackageNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetPackageNpmUrlInputSchema() {\n\treturn z$1.object({ url: z$1.url() });\n}\nfunction VetraPackageStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"VetraPackageState\").optional(),\n\t\tauthor: z$1.lazy(() => AuthorSchema()),\n\t\tcategory: z$1.string().nullish(),\n\t\tdescription: z$1.string().nullish(),\n\t\tgithubUrl: z$1.url().nullish(),\n\t\tkeywords: z$1.array(z$1.lazy(() => KeywordSchema())),\n\t\tname: z$1.string().nullish(),\n\t\tnpmUrl: z$1.url().nullish()\n\t});\n}\n//#endregion\n//#region document-models/vetra-package/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({\n\taddPackageKeyword: () => addPackageKeyword,\n\tremovePackageKeyword: () => removePackageKeyword,\n\tsetPackageAuthor: () => setPackageAuthor,\n\tsetPackageAuthorName: () => setPackageAuthorName,\n\tsetPackageAuthorWebsite: () => setPackageAuthorWebsite,\n\tsetPackageCategory: () => setPackageCategory,\n\tsetPackageDescription: () => setPackageDescription,\n\tsetPackageGithubUrl: () => setPackageGithubUrl,\n\tsetPackageName: () => setPackageName,\n\tsetPackageNpmUrl: () => setPackageNpmUrl\n});\nconst setPackageName = (input) => createAction(\"SET_PACKAGE_NAME\", { ...input }, void 0, SetPackageNameInputSchema, \"global\");\nconst setPackageDescription = (input) => createAction(\"SET_PACKAGE_DESCRIPTION\", { ...input }, void 0, SetPackageDescriptionInputSchema, \"global\");\nconst setPackageCategory = (input) => createAction(\"SET_PACKAGE_CATEGORY\", { ...input }, void 0, SetPackageCategoryInputSchema, \"global\");\nconst setPackageAuthor = (input) => createAction(\"SET_PACKAGE_AUTHOR\", { ...input }, void 0, SetPackageAuthorInputSchema, \"global\");\nconst setPackageAuthorName = (input) => createAction(\"SET_PACKAGE_AUTHOR_NAME\", { ...input }, void 0, SetPackageAuthorNameInputSchema, \"global\");\nconst setPackageAuthorWebsite = (input) => createAction(\"SET_PACKAGE_AUTHOR_WEBSITE\", { ...input }, void 0, SetPackageAuthorWebsiteInputSchema, \"global\");\nconst addPackageKeyword = (input) => createAction(\"ADD_PACKAGE_KEYWORD\", { ...input }, void 0, AddPackageKeywordInputSchema, \"global\");\nconst removePackageKeyword = (input) => createAction(\"REMOVE_PACKAGE_KEYWORD\", { ...input }, void 0, RemovePackageKeywordInputSchema, \"global\");\nconst setPackageGithubUrl = (input) => createAction(\"SET_PACKAGE_GITHUB_URL\", { ...input }, void 0, SetPackageGithubUrlInputSchema, \"global\");\nconst setPackageNpmUrl = (input) => createAction(\"SET_PACKAGE_NPM_URL\", { ...input }, void 0, SetPackageNpmUrlInputSchema, \"global\");\n//#endregion\n//#region document-models/vetra-package/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the VetraPackage document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/package\",\n\tname: \"Vetra Package\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".pkg\",\n\tdescription: \"Manifest for a Vetra Reactor Package: bundles the metadata (name, description, category, author, keywords, source links) used to publish and discover the package in the Powerhouse ecosystem. Create one Vetra Package document per project; the document models, editors, processors, and subgraphs you add to the project are registered against this package at build time.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nPackage metadata used to publish a Vetra Reactor Package to npm and surface\\nit inside Connect/Switchboard. All fields are optional so a package can be\\ncreated empty and filled in incrementally during development.\\n\\\"\\\"\\\"\\ntype VetraPackageState {\\n \\\"\\\"\\\"Human-readable package name (e.g. 'Pizza Plaza'). Distinct from the npm package id.\\\"\\\"\\\"\\n name: String\\n \\\"\\\"\\\"One-paragraph summary of what the package provides. Shown on package listing pages.\\\"\\\"\\\"\\n description: String\\n \\\"\\\"\\\"Free-form category label used to group packages in directories (e.g. 'Finance', 'Productivity').\\\"\\\"\\\"\\n category: String\\n \\\"\\\"\\\"Author/maintainer information surfaced in the published package metadata.\\\"\\\"\\\"\\n author: Author!\\n \\\"\\\"\\\"Search keywords associated with the package. Each keyword has a stable id so it can be removed individually.\\\"\\\"\\\"\\n keywords: [Keyword!]!\\n \\\"\\\"\\\"Public source code URL (typically a GitHub repository).\\\"\\\"\\\"\\n githubUrl: URL\\n \\\"\\\"\\\"Published npm package URL. Set once the package has been released.\\\"\\\"\\\"\\n npmUrl: URL\\n}\\n\\n\\\"\\\"\\\"Author/maintainer of the Vetra Package.\\\"\\\"\\\"\\ntype Author {\\n \\\"\\\"\\\"Display name of the author or organization.\\\"\\\"\\\"\\n name: String\\n \\\"\\\"\\\"Author's website URL.\\\"\\\"\\\"\\n website: URL\\n}\\n\\n\\\"\\\"\\\"A single search keyword attached to the package.\\\"\\\"\\\"\\ntype Keyword {\\n \\\"\\\"\\\"Stable identifier for the keyword entry; used to remove it.\\\"\\\"\\\"\\n id: OID!\\n \\\"\\\"\\\"Display label for the keyword (e.g. 'invoicing', 'defi').\\\"\\\"\\\"\\n label: String!\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": null,\\n \\\"description\\\": null,\\n \\\"category\\\": null,\\n \\\"author\\\": {\\n \\\"name\\\": null,\\n \\\"website\\\": null\\n },\\n \\\"keywords\\\": [],\\n \\\"githubUrl\\\": null,\\n \\\"npmUrl\\\": null\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"a6156f32-8120-43a5-be8b-51c7feaa3460\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Setters for the package's identity, author, keywords, and source/distribution links.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"33f2eab7-9e07-497f-a4e6-53e50968c3c9\",\n\t\t\t\t\tname: \"SET_PACKAGE_NAME\",\n\t\t\t\t\tdescription: \"Set the human-readable package name shown in listings and the Connect UI.\",\n\t\t\t\t\tschema: \"input SetPackageNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"a07bee80-c2a8-40d7-891b-822ee298d7d9\",\n\t\t\t\t\tname: \"SET_PACKAGE_DESCRIPTION\",\n\t\t\t\t\tdescription: \"Set the one-paragraph summary describing what the package does.\",\n\t\t\t\t\tschema: \"input SetPackageDescriptionInput {\\n description: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"f3ad82f8-580a-4c6e-b930-e203cda998bb\",\n\t\t\t\t\tname: \"SET_PACKAGE_CATEGORY\",\n\t\t\t\t\tdescription: \"Set the category label used to group the package in directories (e.g. \\\"Finance\\\", \\\"Productivity\\\").\",\n\t\t\t\t\tschema: \"input SetPackageCategoryInput {\\n category: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"67f43579-ce98-47e6-bf48-27c0f44818b9\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR\",\n\t\t\t\t\tdescription: \"Replace the author block in a single call. Either field may be omitted to clear it.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorInput {\\n name: OID\\n website: URL\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"94ba44c4-9627-405e-9ea2-34e9da1c283a\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR_NAME\",\n\t\t\t\t\tdescription: \"Set only the author's display name without touching the website field.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"3d5c08df-6c14-480b-915b-875941979fd0\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR_WEBSITE\",\n\t\t\t\t\tdescription: \"Set only the author's website URL without touching the name field.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorWebsiteInput {\\n website: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"ed95f841-6fd0-4552-898d-e915599b7495\",\n\t\t\t\t\tname: \"ADD_PACKAGE_KEYWORD\",\n\t\t\t\t\tdescription: \"Append a search keyword. Caller supplies a stable id so the entry can be removed later.\",\n\t\t\t\t\tschema: \"input AddPackageKeywordInput {\\n id: String!\\n label: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"83c4db24-bd2f-424d-9e26-751580d6307b\",\n\t\t\t\t\tname: \"REMOVE_PACKAGE_KEYWORD\",\n\t\t\t\t\tdescription: \"Remove a keyword by its id. No-op if the id does not exist.\",\n\t\t\t\t\tschema: \"input RemovePackageKeywordInput {\\n id: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"83a90530-8535-4ea7-ab53-7865532398f7\",\n\t\t\t\t\tname: \"SET_PACKAGE_GITHUB_URL\",\n\t\t\t\t\tdescription: \"Set the public source code URL (typically a GitHub repository).\",\n\t\t\t\t\tschema: \"input SetPackageGithubUrlInput {\\n url: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"e789859a-01ee-4b60-8e7e-a3ad928a26d1\",\n\t\t\t\t\tname: \"SET_PACKAGE_NPM_URL\",\n\t\t\t\t\tdescription: \"Set the published npm package URL once the package has been released.\",\n\t\t\t\t\tschema: \"input SetPackageNpmUrlInput {\\n url: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/vetra-package/v1/src/reducers/base-operations.ts\nconst vetraPackageBaseOperationsOperations = {\n\tsetPackageNameOperation(state, action, _dispatch) {\n\t\tstate.name = action.input.name;\n\t},\n\tsetPackageDescriptionOperation(state, action, _dispatch) {\n\t\tstate.description = action.input.description;\n\t},\n\tsetPackageCategoryOperation(state, action, _dispatch) {\n\t\tstate.category = action.input.category;\n\t},\n\tsetPackageAuthorOperation(state, action, _dispatch) {\n\t\tstate.author = {\n\t\t\tname: action.input.name ?? null,\n\t\t\twebsite: action.input.website ?? null\n\t\t};\n\t},\n\tsetPackageAuthorNameOperation(state, action, _dispatch) {\n\t\tstate.author.name = action.input.name;\n\t},\n\tsetPackageAuthorWebsiteOperation(state, action, _dispatch) {\n\t\tstate.author.website = action.input.website;\n\t},\n\taddPackageKeywordOperation(state, action, _dispatch) {\n\t\tif (state.keywords.find((keyword) => keyword.id === action.input.id)) throw new Error(`Keyword with id \"${action.input.id}\" already exists`);\n\t\tstate.keywords.push(action.input);\n\t},\n\tremovePackageKeywordOperation(state, action, _dispatch) {\n\t\tstate.keywords = state.keywords.filter((keyword) => keyword.id !== action.input.id);\n\t},\n\tsetPackageGithubUrlOperation(state, action, _dispatch) {\n\t\tstate.githubUrl = action.input.url;\n\t},\n\tsetPackageNpmUrlOperation(state, action, _dispatch) {\n\t\tstate.npmUrl = action.input.url;\n\t}\n};\n//#endregion\n//#region document-models/vetra-package/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_PACKAGE_NAME\":\n\t\t\tSetPackageNameInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_DESCRIPTION\":\n\t\t\tSetPackageDescriptionInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageDescriptionOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_CATEGORY\":\n\t\t\tSetPackageCategoryInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageCategoryOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR\":\n\t\t\tSetPackageAuthorInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR_NAME\":\n\t\t\tSetPackageAuthorNameInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR_WEBSITE\":\n\t\t\tSetPackageAuthorWebsiteInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorWebsiteOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_PACKAGE_KEYWORD\":\n\t\t\tAddPackageKeywordInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.addPackageKeywordOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_PACKAGE_KEYWORD\":\n\t\t\tRemovePackageKeywordInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.removePackageKeywordOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_GITHUB_URL\":\n\t\t\tSetPackageGithubUrlInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageGithubUrlOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_NPM_URL\":\n\t\t\tSetPackageNpmUrlInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageNpmUrlOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst vetraPackageDocumentType = \"powerhouse/package\";\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a VetraPackage document */\nconst VetraPackageDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(vetraPackageDocumentType) });\n/** Schema for validating the state object of a VetraPackage document */\nconst VetraPackagePHStateSchema = BaseDocumentStateSchema.extend({ global: VetraPackageStateSchema() });\nconst VetraPackageDocumentSchema = z.object({\n\theader: VetraPackageDocumentHeaderSchema,\n\tstate: VetraPackagePHStateSchema,\n\tinitialState: VetraPackagePHStateSchema\n});\n/** Simple helper function to check if a state object is a VetraPackage document state object */\nfunction isVetraPackageState(state) {\n\treturn VetraPackagePHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a VetraPackage document state object */\nfunction assertIsVetraPackageState(state) {\n\tVetraPackagePHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a VetraPackage document */\nfunction isVetraPackageDocument(document) {\n\treturn VetraPackageDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a VetraPackage document */\nfunction assertIsVetraPackageDocument(document) {\n\tVetraPackageDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/vetra-package/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: null,\n\tdescription: null,\n\tcategory: null,\n\tauthor: {\n\t\tname: null,\n\t\twebsite: null\n\t},\n\tkeywords: [],\n\tgithubUrl: null,\n\tnpmUrl: null\n};\nconst initialLocalState = {};\nconst utils$1 = {\n\tfileExtension: \".pkg\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils$1.createState, state, vetraPackageDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isVetraPackageState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsVetraPackageState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isVetraPackageDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsVetraPackageDocument(document);\n\t}\n};\n//#endregion\n//#region document-models/vetra-package/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/vetra-package/v1/utils.ts\n/** Utils for the VetraPackage document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/vetra-package/v1/module.ts\n/** Document model module for the VetraPackage document type */\nconst VetraPackage = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { KeywordSchema as A, VetraPackageStateSchema as B, setPackageCategory as C, setPackageNpmUrl as D, setPackageName as E, SetPackageCategoryInputSchema as F, isDefinedNonNullAny as H, SetPackageDescriptionInputSchema as I, SetPackageGithubUrlInputSchema as L, SetPackageAuthorInputSchema as M, SetPackageAuthorNameInputSchema as N, AddPackageKeywordInputSchema as O, SetPackageAuthorWebsiteInputSchema as P, SetPackageNameInputSchema as R, setPackageAuthorWebsite as S, setPackageGithubUrl as T, definedNonNullAnySchema as V, addPackageKeyword as _, utils$1 as a, setPackageAuthor as b, VetraPackagePHStateSchema as c, isVetraPackageDocument as d, isVetraPackageState as f, actions as g, documentModel as h, initialLocalState as i, RemovePackageKeywordInputSchema as j, AuthorSchema as k, assertIsVetraPackageDocument as l, reducer as m, utils as n, VetraPackageDocumentHeaderSchema as o, vetraPackageDocumentType as p, initialGlobalState as r, VetraPackageDocumentSchema as s, VetraPackage as t, assertIsVetraPackageState as u, creators_exports as v, setPackageDescription as w, setPackageAuthorName as x, removePackageKeyword as y, SetPackageNpmUrlInputSchema as z };\n\n//# sourceMappingURL=module-1hr_ne9w.js.map"],"x_google_ignoreList":[0],"mappings":"yNAKA,IAAM,GAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,GAAoB,EAAE,CAAC,CAC/E,SAAS,GAA+B,CACvC,OAAOC,EAAW,CACjB,GAAIC,GAAY,CAChB,MAAOA,GAAY,CACnB,CAAC,CAEH,SAAS,GAAe,CACvB,OAAOD,EAAW,CACjB,WAAYE,EAAY,SAAS,CAAC,UAAU,CAC5C,KAAMD,GAAY,CAAC,SAAS,CAC5B,QAASE,GAAS,CAAC,SAAS,CAC5B,CAAC,CAEH,SAAS,GAAgB,CACxB,OAAOH,EAAW,CACjB,WAAYE,EAAY,UAAU,CAAC,UAAU,CAC7C,GAAID,GAAY,CAChB,MAAOA,GAAY,CACnB,CAAC,CAEH,SAAS,GAAkC,CAC1C,OAAOD,EAAW,CAAE,GAAIC,GAAY,CAAE,CAAC,CAExC,SAAS,GAA8B,CACtC,OAAOD,EAAW,CACjB,KAAMC,GAAY,CAAC,SAAS,CAC5B,QAASE,GAAS,CAAC,SAAS,CAC5B,CAAC,CAEH,SAAS,GAAkC,CAC1C,OAAOH,EAAW,CAAE,KAAMC,GAAY,CAAE,CAAC,CAE1C,SA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AAQ,CACP,KAAM,KACN,QAAS,KACT,CACD,SAAU,EAAE,CACZ,UAAW,KACX,OAAQ,KACR,CACK,GAAoB,EAAE,CACtB,EAAU,CACf,cAAe,OACf,YAAY,EAAO,CAClB,MAAO,CACN,GAAG,GAAkB,CACrB,OAAQ,CACP,GAAG,GACH,GAAG,GAAO,OACV,CACD,MAAO,CACN,GAAG,GACH,GAAG,GAAO,MACV,CACD,EAEF,eAAe,EAAO,CACrB,OAAO,EAAmB,EAAQ,YAAa,EAAO,EAAyB,EAEhF,iBAAiB,EAAU,EAAO,CACjC,OAAO,EAAqB,EAAU,EAAM,EAE7C,cAAc,EAAO,CACpB,OAAO,EAAkB,EAAO,EAAQ,EAEzC,cAAc,EAAO,CACpB,OAAO,EAAoB,EAAM,EAElC,oBAAoB,EAAO,CAC1B,OAAO,EAA0B,EAAM,EAExC,iBAAiB,EAAU,CAC1B,OAAO,GAAuB,EAAS,EAExC,uBAAuB,EAAU,CAChC,OAAO,GAA6B,EAAS,EAE9C,CAGG,GAAgC,EAAY,EAAE,CAAC,CAW7C,GAAe,CACpB,QAAS,EACT,UACA,UACA,OAVA,GAAG,EACH,GAAG,GASH,CACA,cAAe,EAAY,GAAkB,CAAE,EAAc,CAC7D"}
1
+ {"version":3,"file":"module-1hr_ne9w-CWAVsMzZ.js","names":["z$1.any","z$1.object","z$1.string","z$1.literal","z$1.url","z$1.lazy","z$1.array","z.literal","z.object"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/module-1hr_ne9w.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, createState, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/vetra-package/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nfunction AddPackageKeywordInputSchema() {\n\treturn z$1.object({\n\t\tid: z$1.string(),\n\t\tlabel: z$1.string()\n\t});\n}\nfunction AuthorSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"Author\").optional(),\n\t\tname: z$1.string().nullish(),\n\t\twebsite: z$1.url().nullish()\n\t});\n}\nfunction KeywordSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"Keyword\").optional(),\n\t\tid: z$1.string(),\n\t\tlabel: z$1.string()\n\t});\n}\nfunction RemovePackageKeywordInputSchema() {\n\treturn z$1.object({ id: z$1.string() });\n}\nfunction SetPackageAuthorInputSchema() {\n\treturn z$1.object({\n\t\tname: z$1.string().nullish(),\n\t\twebsite: z$1.url().nullish()\n\t});\n}\nfunction SetPackageAuthorNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetPackageAuthorWebsiteInputSchema() {\n\treturn z$1.object({ website: z$1.url() });\n}\nfunction SetPackageCategoryInputSchema() {\n\treturn z$1.object({ category: z$1.string() });\n}\nfunction SetPackageDescriptionInputSchema() {\n\treturn z$1.object({ description: z$1.string() });\n}\nfunction SetPackageGithubUrlInputSchema() {\n\treturn z$1.object({ url: z$1.url() });\n}\nfunction SetPackageNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetPackageNpmUrlInputSchema() {\n\treturn z$1.object({ url: z$1.url() });\n}\nfunction VetraPackageStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"VetraPackageState\").optional(),\n\t\tauthor: z$1.lazy(() => AuthorSchema()),\n\t\tcategory: z$1.string().nullish(),\n\t\tdescription: z$1.string().nullish(),\n\t\tgithubUrl: z$1.url().nullish(),\n\t\tkeywords: z$1.array(z$1.lazy(() => KeywordSchema())),\n\t\tname: z$1.string().nullish(),\n\t\tnpmUrl: z$1.url().nullish()\n\t});\n}\n//#endregion\n//#region document-models/vetra-package/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({\n\taddPackageKeyword: () => addPackageKeyword,\n\tremovePackageKeyword: () => removePackageKeyword,\n\tsetPackageAuthor: () => setPackageAuthor,\n\tsetPackageAuthorName: () => setPackageAuthorName,\n\tsetPackageAuthorWebsite: () => setPackageAuthorWebsite,\n\tsetPackageCategory: () => setPackageCategory,\n\tsetPackageDescription: () => setPackageDescription,\n\tsetPackageGithubUrl: () => setPackageGithubUrl,\n\tsetPackageName: () => setPackageName,\n\tsetPackageNpmUrl: () => setPackageNpmUrl\n});\nconst setPackageName = (input) => createAction(\"SET_PACKAGE_NAME\", { ...input }, void 0, SetPackageNameInputSchema, \"global\");\nconst setPackageDescription = (input) => createAction(\"SET_PACKAGE_DESCRIPTION\", { ...input }, void 0, SetPackageDescriptionInputSchema, \"global\");\nconst setPackageCategory = (input) => createAction(\"SET_PACKAGE_CATEGORY\", { ...input }, void 0, SetPackageCategoryInputSchema, \"global\");\nconst setPackageAuthor = (input) => createAction(\"SET_PACKAGE_AUTHOR\", { ...input }, void 0, SetPackageAuthorInputSchema, \"global\");\nconst setPackageAuthorName = (input) => createAction(\"SET_PACKAGE_AUTHOR_NAME\", { ...input }, void 0, SetPackageAuthorNameInputSchema, \"global\");\nconst setPackageAuthorWebsite = (input) => createAction(\"SET_PACKAGE_AUTHOR_WEBSITE\", { ...input }, void 0, SetPackageAuthorWebsiteInputSchema, \"global\");\nconst addPackageKeyword = (input) => createAction(\"ADD_PACKAGE_KEYWORD\", { ...input }, void 0, AddPackageKeywordInputSchema, \"global\");\nconst removePackageKeyword = (input) => createAction(\"REMOVE_PACKAGE_KEYWORD\", { ...input }, void 0, RemovePackageKeywordInputSchema, \"global\");\nconst setPackageGithubUrl = (input) => createAction(\"SET_PACKAGE_GITHUB_URL\", { ...input }, void 0, SetPackageGithubUrlInputSchema, \"global\");\nconst setPackageNpmUrl = (input) => createAction(\"SET_PACKAGE_NPM_URL\", { ...input }, void 0, SetPackageNpmUrlInputSchema, \"global\");\n//#endregion\n//#region document-models/vetra-package/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the VetraPackage document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/package\",\n\tname: \"Vetra Package\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".pkg\",\n\tdescription: \"Manifest for a Vetra Reactor Package: bundles the metadata (name, description, category, author, keywords, source links) used to publish and discover the package in the Powerhouse ecosystem. Create one Vetra Package document per project; the document models, editors, processors, and subgraphs you add to the project are registered against this package at build time.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nPackage metadata used to publish a Vetra Reactor Package to npm and surface\\nit inside Connect/Switchboard. All fields are optional so a package can be\\ncreated empty and filled in incrementally during development.\\n\\\"\\\"\\\"\\ntype VetraPackageState {\\n \\\"\\\"\\\"Human-readable package name (e.g. 'Pizza Plaza'). Distinct from the npm package id.\\\"\\\"\\\"\\n name: String\\n \\\"\\\"\\\"One-paragraph summary of what the package provides. Shown on package listing pages.\\\"\\\"\\\"\\n description: String\\n \\\"\\\"\\\"Free-form category label used to group packages in directories (e.g. 'Finance', 'Productivity').\\\"\\\"\\\"\\n category: String\\n \\\"\\\"\\\"Author/maintainer information surfaced in the published package metadata.\\\"\\\"\\\"\\n author: Author!\\n \\\"\\\"\\\"Search keywords associated with the package. Each keyword has a stable id so it can be removed individually.\\\"\\\"\\\"\\n keywords: [Keyword!]!\\n \\\"\\\"\\\"Public source code URL (typically a GitHub repository).\\\"\\\"\\\"\\n githubUrl: URL\\n \\\"\\\"\\\"Published npm package URL. Set once the package has been released.\\\"\\\"\\\"\\n npmUrl: URL\\n}\\n\\n\\\"\\\"\\\"Author/maintainer of the Vetra Package.\\\"\\\"\\\"\\ntype Author {\\n \\\"\\\"\\\"Display name of the author or organization.\\\"\\\"\\\"\\n name: String\\n \\\"\\\"\\\"Author's website URL.\\\"\\\"\\\"\\n website: URL\\n}\\n\\n\\\"\\\"\\\"A single search keyword attached to the package.\\\"\\\"\\\"\\ntype Keyword {\\n \\\"\\\"\\\"Stable identifier for the keyword entry; used to remove it.\\\"\\\"\\\"\\n id: OID!\\n \\\"\\\"\\\"Display label for the keyword (e.g. 'invoicing', 'defi').\\\"\\\"\\\"\\n label: String!\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": null,\\n \\\"description\\\": null,\\n \\\"category\\\": null,\\n \\\"author\\\": {\\n \\\"name\\\": null,\\n \\\"website\\\": null\\n },\\n \\\"keywords\\\": [],\\n \\\"githubUrl\\\": null,\\n \\\"npmUrl\\\": null\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"a6156f32-8120-43a5-be8b-51c7feaa3460\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Setters for the package's identity, author, keywords, and source/distribution links.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"33f2eab7-9e07-497f-a4e6-53e50968c3c9\",\n\t\t\t\t\tname: \"SET_PACKAGE_NAME\",\n\t\t\t\t\tdescription: \"Set the human-readable package name shown in listings and the Connect UI.\",\n\t\t\t\t\tschema: \"input SetPackageNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"a07bee80-c2a8-40d7-891b-822ee298d7d9\",\n\t\t\t\t\tname: \"SET_PACKAGE_DESCRIPTION\",\n\t\t\t\t\tdescription: \"Set the one-paragraph summary describing what the package does.\",\n\t\t\t\t\tschema: \"input SetPackageDescriptionInput {\\n description: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"f3ad82f8-580a-4c6e-b930-e203cda998bb\",\n\t\t\t\t\tname: \"SET_PACKAGE_CATEGORY\",\n\t\t\t\t\tdescription: \"Set the category label used to group the package in directories (e.g. \\\"Finance\\\", \\\"Productivity\\\").\",\n\t\t\t\t\tschema: \"input SetPackageCategoryInput {\\n category: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"67f43579-ce98-47e6-bf48-27c0f44818b9\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR\",\n\t\t\t\t\tdescription: \"Replace the author block in a single call. Either field may be omitted to clear it.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorInput {\\n name: OID\\n website: URL\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"94ba44c4-9627-405e-9ea2-34e9da1c283a\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR_NAME\",\n\t\t\t\t\tdescription: \"Set only the author's display name without touching the website field.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"3d5c08df-6c14-480b-915b-875941979fd0\",\n\t\t\t\t\tname: \"SET_PACKAGE_AUTHOR_WEBSITE\",\n\t\t\t\t\tdescription: \"Set only the author's website URL without touching the name field.\",\n\t\t\t\t\tschema: \"input SetPackageAuthorWebsiteInput {\\n website: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"ed95f841-6fd0-4552-898d-e915599b7495\",\n\t\t\t\t\tname: \"ADD_PACKAGE_KEYWORD\",\n\t\t\t\t\tdescription: \"Append a search keyword. Caller supplies a stable id so the entry can be removed later.\",\n\t\t\t\t\tschema: \"input AddPackageKeywordInput {\\n id: String!\\n label: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"83c4db24-bd2f-424d-9e26-751580d6307b\",\n\t\t\t\t\tname: \"REMOVE_PACKAGE_KEYWORD\",\n\t\t\t\t\tdescription: \"Remove a keyword by its id. No-op if the id does not exist.\",\n\t\t\t\t\tschema: \"input RemovePackageKeywordInput {\\n id: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"83a90530-8535-4ea7-ab53-7865532398f7\",\n\t\t\t\t\tname: \"SET_PACKAGE_GITHUB_URL\",\n\t\t\t\t\tdescription: \"Set the public source code URL (typically a GitHub repository).\",\n\t\t\t\t\tschema: \"input SetPackageGithubUrlInput {\\n url: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"e789859a-01ee-4b60-8e7e-a3ad928a26d1\",\n\t\t\t\t\tname: \"SET_PACKAGE_NPM_URL\",\n\t\t\t\t\tdescription: \"Set the published npm package URL once the package has been released.\",\n\t\t\t\t\tschema: \"input SetPackageNpmUrlInput {\\n url: URL!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/vetra-package/v1/src/reducers/base-operations.ts\nconst vetraPackageBaseOperationsOperations = {\n\tsetPackageNameOperation(state, action, _dispatch) {\n\t\tstate.name = action.input.name;\n\t},\n\tsetPackageDescriptionOperation(state, action, _dispatch) {\n\t\tstate.description = action.input.description;\n\t},\n\tsetPackageCategoryOperation(state, action, _dispatch) {\n\t\tstate.category = action.input.category;\n\t},\n\tsetPackageAuthorOperation(state, action, _dispatch) {\n\t\tstate.author = {\n\t\t\tname: action.input.name ?? null,\n\t\t\twebsite: action.input.website ?? null\n\t\t};\n\t},\n\tsetPackageAuthorNameOperation(state, action, _dispatch) {\n\t\tstate.author.name = action.input.name;\n\t},\n\tsetPackageAuthorWebsiteOperation(state, action, _dispatch) {\n\t\tstate.author.website = action.input.website;\n\t},\n\taddPackageKeywordOperation(state, action, _dispatch) {\n\t\tif (state.keywords.find((keyword) => keyword.id === action.input.id)) throw new Error(`Keyword with id \"${action.input.id}\" already exists`);\n\t\tstate.keywords.push(action.input);\n\t},\n\tremovePackageKeywordOperation(state, action, _dispatch) {\n\t\tstate.keywords = state.keywords.filter((keyword) => keyword.id !== action.input.id);\n\t},\n\tsetPackageGithubUrlOperation(state, action, _dispatch) {\n\t\tstate.githubUrl = action.input.url;\n\t},\n\tsetPackageNpmUrlOperation(state, action, _dispatch) {\n\t\tstate.npmUrl = action.input.url;\n\t}\n};\n//#endregion\n//#region document-models/vetra-package/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_PACKAGE_NAME\":\n\t\t\tSetPackageNameInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_DESCRIPTION\":\n\t\t\tSetPackageDescriptionInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageDescriptionOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_CATEGORY\":\n\t\t\tSetPackageCategoryInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageCategoryOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR\":\n\t\t\tSetPackageAuthorInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR_NAME\":\n\t\t\tSetPackageAuthorNameInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_AUTHOR_WEBSITE\":\n\t\t\tSetPackageAuthorWebsiteInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageAuthorWebsiteOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_PACKAGE_KEYWORD\":\n\t\t\tAddPackageKeywordInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.addPackageKeywordOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_PACKAGE_KEYWORD\":\n\t\t\tRemovePackageKeywordInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.removePackageKeywordOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_GITHUB_URL\":\n\t\t\tSetPackageGithubUrlInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageGithubUrlOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_PACKAGE_NPM_URL\":\n\t\t\tSetPackageNpmUrlInputSchema().parse(action.input);\n\t\t\tvetraPackageBaseOperationsOperations.setPackageNpmUrlOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst vetraPackageDocumentType = \"powerhouse/package\";\n//#endregion\n//#region document-models/vetra-package/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a VetraPackage document */\nconst VetraPackageDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(vetraPackageDocumentType) });\n/** Schema for validating the state object of a VetraPackage document */\nconst VetraPackagePHStateSchema = BaseDocumentStateSchema.extend({ global: VetraPackageStateSchema() });\nconst VetraPackageDocumentSchema = z.object({\n\theader: VetraPackageDocumentHeaderSchema,\n\tstate: VetraPackagePHStateSchema,\n\tinitialState: VetraPackagePHStateSchema\n});\n/** Simple helper function to check if a state object is a VetraPackage document state object */\nfunction isVetraPackageState(state) {\n\treturn VetraPackagePHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a VetraPackage document state object */\nfunction assertIsVetraPackageState(state) {\n\tVetraPackagePHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a VetraPackage document */\nfunction isVetraPackageDocument(document) {\n\treturn VetraPackageDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a VetraPackage document */\nfunction assertIsVetraPackageDocument(document) {\n\tVetraPackageDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/vetra-package/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: null,\n\tdescription: null,\n\tcategory: null,\n\tauthor: {\n\t\tname: null,\n\t\twebsite: null\n\t},\n\tkeywords: [],\n\tgithubUrl: null,\n\tnpmUrl: null\n};\nconst initialLocalState = {};\nconst utils$1 = {\n\tfileExtension: \".pkg\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils$1.createState, state, vetraPackageDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isVetraPackageState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsVetraPackageState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isVetraPackageDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsVetraPackageDocument(document);\n\t}\n};\n//#endregion\n//#region document-models/vetra-package/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/vetra-package/v1/utils.ts\n/** Utils for the VetraPackage document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/vetra-package/v1/module.ts\n/** Document model module for the VetraPackage document type */\nconst VetraPackage = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { KeywordSchema as A, VetraPackageStateSchema as B, setPackageCategory as C, setPackageNpmUrl as D, setPackageName as E, SetPackageCategoryInputSchema as F, isDefinedNonNullAny as H, SetPackageDescriptionInputSchema as I, SetPackageGithubUrlInputSchema as L, SetPackageAuthorInputSchema as M, SetPackageAuthorNameInputSchema as N, AddPackageKeywordInputSchema as O, SetPackageAuthorWebsiteInputSchema as P, SetPackageNameInputSchema as R, setPackageAuthorWebsite as S, setPackageGithubUrl as T, definedNonNullAnySchema as V, addPackageKeyword as _, utils$1 as a, setPackageAuthor as b, VetraPackagePHStateSchema as c, isVetraPackageDocument as d, isVetraPackageState as f, actions as g, documentModel as h, initialLocalState as i, RemovePackageKeywordInputSchema as j, AuthorSchema as k, assertIsVetraPackageDocument as l, reducer as m, utils as n, VetraPackageDocumentHeaderSchema as o, vetraPackageDocumentType as p, initialGlobalState as r, VetraPackageDocumentSchema as s, VetraPackage as t, assertIsVetraPackageState as u, creators_exports as v, setPackageDescription as w, setPackageAuthorName as x, removePackageKeyword as y, SetPackageNpmUrlInputSchema as z };\n\n//# sourceMappingURL=module-1hr_ne9w.js.map"],"x_google_ignoreList":[0],"mappings":"yNAKA,IAAM,GAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,GAAoB,EAAE,CAAC,CAC/E,SAAS,GAA+B,CACvC,OAAOC,EAAW,CACjB,GAAIC,GAAY,CAChB,MA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AAe,CACpB,QAAS,EACT,UACA,UACA,OAVA,GAAG,EACH,GAAG,GASH,CACA,cAAe,EAAY,GAAkB,CAAE,EAAc,CAC7D"}
@@ -1,3 +1,3 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-B47ain9H.js","assets/chunk-BNv3lrIs.js","assets/preload-helper-ca-nBW7U.js","assets/chunk-A7RFOIQ7-LfOdAcBB.js","assets/chunk-BTBUZ646-BwTZXBLs.js","assets/chunk-EADU5A67-BHbnANQy.js","assets/chunk-WGR4JCLS-CvmEYK_g.js","assets/dist-ScMbe_zR.js","assets/chunk-3WWIVTCY-Dk4atnGX.js","assets/chunk-QY3QWFKW-Dw6-Hpdq.js","assets/dist-DC27BFRa.js","assets/chunk-F2DQ4FIK-B5wKwnbU.js","assets/chunk-VBDAOXYI-BWd303gi.js","assets/pg_dump-BL-IQ0O5.js","assets/pg_dump-Co9gE6qz.js","assets/editor-C4TXNppO-4ic8M94q.js","assets/connect-CahHnhpc-DAWtLyxf.js","assets/parser-CkF6Qt8V-CqvnWRuI.js","assets/dist-D8H48e8N-Blh-WMaA.js","assets/dist-DXM8ccKa-DV1gto78.js","assets/dist-HgA907mh-Cyiona0j.js"])))=>i.map(i=>d[i]);
2
- import{hn as e}from"./dist-DmhUSVtT.js";import{a as t}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{t as n}from"./preload-helper-ca-nBW7U.js";import{t as r}from"./connect.config-Bt4pvvWV-CAyer5pZ.js";import{lazy as i}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6b00b32d-5b00-5709-a1ee-057d1433add8`)}catch{}})();var a=t(r),o=a,s=a===`reactor`?e:`${a}-${e}`,c=`FILE_DATA`,l=`/pglite/${o}`,u=`/pglite/${s}`,d=[l,u];function f(e,t){let n=e.error??Error(`unknown IDB error`);return Error(`${t}: ${n.message}`,{cause:n})}function p(e){return typeof indexedDB.databases==`function`?indexedDB.databases().then(t=>t.some(t=>t.name===e)).catch(()=>!0):Promise.resolve(!0)}function m(e,t,n){return new Promise((r,i)=>{let a=indexedDB.open(e,t);a.onerror=()=>i(f(a,`IDB open failed for ${e}`)),a.onblocked=()=>i(Error(`IDB open blocked for ${e}`)),a.onupgradeneeded=()=>n?.(a.result),a.onsuccess=()=>r(a.result)})}function h(e){e.objectStoreNames.contains(`FILE_DATA`)||e.createObjectStore(c).createIndex(`timestamp`,`timestamp`,{unique:!1})}async function g(e){if(!await p(e))return null;let t;try{t=await m(e,21,h)}catch{return null}try{if(!t.objectStoreNames.contains(`FILE_DATA`))return null;let n=t.transaction(c,`readonly`).objectStore(c),r=await new Promise((t,r)=>{let i=n.openCursor();i.onerror=()=>r(f(i,`FILE_DATA cursor failed for ${e}`)),i.onsuccess=()=>{let e=i.result;if(!e)return t(null);(typeof e.key==`string`?e.key:``).endsWith(`/PG_VERSION`)?t(e.value):e.continue()}});if(!r)return null;let i=r.contents instanceof Uint8Array?r.contents:new Uint8Array(r.contents),a=new TextDecoder().decode(i).trim(),o=parseInt(a,10);return Number.isFinite(o)?o:null}finally{t.close()}}var _=[16,17],v,y,b=new Set;function x(){for(let e of b)e()}function S(e){return b.add(e),()=>{b.delete(e)}}function C(e){return e===null?null:_.includes(e)?e:null}async function w(){if(v!==void 0)return v;if(y)return y;y=(async()=>{let e=C(await g(l));return v=e,x(),e})();try{return await y}finally{y=void 0}}function T(){return v}function E(){v=void 0,x()}async function D(){return C(await g(u))}function O(e){return e??17}async function k(e){if(e===16)return await n(()=>import(`./dist-B47ain9H.js`),__vite__mapDeps([0,1,2,3,4,5,6]));if(e===17)return n(()=>import(`./dist-ScMbe_zR.js`),__vite__mapDeps([7,8,1,2,9,10,11,12]));throw Error(`Unsupported PGlite major: ${String(e)}`)}async function A(e){if(e===16)return(await n(async()=>{let{pgDump:e}=await import(`./pg_dump-BL-IQ0O5.js`);return{pgDump:e}},__vite__mapDeps([13,1,2]))).pgDump;if(e===17)return(await n(async()=>{let{pgDump:e}=await import(`./pg_dump-Co9gE6qz.js`);return{pgDump:e}},__vite__mapDeps([14,1,2]))).pgDump;throw Error(`Unsupported PGlite major: ${String(e)}`)}var j={Component:i(()=>n(()=>import(`./editor-C4TXNppO-4ic8M94q.js`),__vite__mapDeps([15,16,17,18,19,20]))),config:{id:`GenericDriveExplorer`,name:`Drive Explorer App`},documentTypes:[`powerhouse/document-drive`]};export{S as _,s as a,D as c,E as d,k as f,O as g,g as h,o as i,T as l,m,c as n,h as o,A as p,d as r,w as s,j as t,f as u};
3
- //# sourceMappingURL=module-DP3LMNU7.js.map
2
+ import{hn as e}from"./dist-t-ezfpxv.js";import{a as t}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{t as n}from"./preload-helper-ca-nBW7U.js";import{t as r}from"./connect.config-Bt4pvvWV-Dj3FkjaZ.js";import{lazy as i}from"react";(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`6b00b32d-5b00-5709-a1ee-057d1433add8`)}catch{}})();var a=t(r),o=a,s=a===`reactor`?e:`${a}-${e}`,c=`FILE_DATA`,l=`/pglite/${o}`,u=`/pglite/${s}`,d=[l,u];function f(e,t){let n=e.error??Error(`unknown IDB error`);return Error(`${t}: ${n.message}`,{cause:n})}function p(e){return typeof indexedDB.databases==`function`?indexedDB.databases().then(t=>t.some(t=>t.name===e)).catch(()=>!0):Promise.resolve(!0)}function m(e,t,n){return new Promise((r,i)=>{let a=indexedDB.open(e,t);a.onerror=()=>i(f(a,`IDB open failed for ${e}`)),a.onblocked=()=>i(Error(`IDB open blocked for ${e}`)),a.onupgradeneeded=()=>n?.(a.result),a.onsuccess=()=>r(a.result)})}function h(e){e.objectStoreNames.contains(`FILE_DATA`)||e.createObjectStore(c).createIndex(`timestamp`,`timestamp`,{unique:!1})}async function g(e){if(!await p(e))return null;let t;try{t=await m(e,21,h)}catch{return null}try{if(!t.objectStoreNames.contains(`FILE_DATA`))return null;let n=t.transaction(c,`readonly`).objectStore(c),r=await new Promise((t,r)=>{let i=n.openCursor();i.onerror=()=>r(f(i,`FILE_DATA cursor failed for ${e}`)),i.onsuccess=()=>{let e=i.result;if(!e)return t(null);(typeof e.key==`string`?e.key:``).endsWith(`/PG_VERSION`)?t(e.value):e.continue()}});if(!r)return null;let i=r.contents instanceof Uint8Array?r.contents:new Uint8Array(r.contents),a=new TextDecoder().decode(i).trim(),o=parseInt(a,10);return Number.isFinite(o)?o:null}finally{t.close()}}var _=[16,17],v,y,b=new Set;function x(){for(let e of b)e()}function S(e){return b.add(e),()=>{b.delete(e)}}function C(e){return e===null?null:_.includes(e)?e:null}async function w(){if(v!==void 0)return v;if(y)return y;y=(async()=>{let e=C(await g(l));return v=e,x(),e})();try{return await y}finally{y=void 0}}function T(){return v}function E(){v=void 0,x()}async function D(){return C(await g(u))}function O(e){return e??17}async function k(e){if(e===16)return await n(()=>import(`./dist-B47ain9H.js`),__vite__mapDeps([0,1,2,3,4,5,6]));if(e===17)return n(()=>import(`./dist-ScMbe_zR.js`),__vite__mapDeps([7,8,1,2,9,10,11,12]));throw Error(`Unsupported PGlite major: ${String(e)}`)}async function A(e){if(e===16)return(await n(async()=>{let{pgDump:e}=await import(`./pg_dump-BL-IQ0O5.js`);return{pgDump:e}},__vite__mapDeps([13,1,2]))).pgDump;if(e===17)return(await n(async()=>{let{pgDump:e}=await import(`./pg_dump-Co9gE6qz.js`);return{pgDump:e}},__vite__mapDeps([14,1,2]))).pgDump;throw Error(`Unsupported PGlite major: ${String(e)}`)}var j={Component:i(()=>n(()=>import(`./editor-C4TXNppO-4ic8M94q.js`),__vite__mapDeps([15,16,17,18,19,20]))),config:{id:`GenericDriveExplorer`,name:`Drive Explorer App`},documentTypes:[`powerhouse/document-drive`]};export{S as _,s as a,D as c,E as d,k as f,O as g,g as h,o as i,T as l,m,c as n,h as o,A as p,d as r,w as s,j as t,f as u};
3
+ //# sourceMappingURL=module-7zCQE1MC.js.map
@@ -1 +1 @@
1
- {"version":3,"mappings":";2OACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,EAAE,CAAC,EAAG,IAAI,EAAE,OAAK,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC,EAAE,gBAAgB,GAAG,6CAAgD,MAAK,CAIjT,IAAM,EAAoB,EAAoB,EAAqB,CAC7D,EAAsB,EACtB,EAAyB,cAA+C,EAAuC,GAAG,EAAkB,GAAG,IAGvI,EAAiB,YACjB,EAAmB,WAAW,IAC9B,EAAsB,WAAW,IACjC,EAAoB,CAAC,EAAkB,EAAoB,CACjE,SAAS,EAAS,EAAK,EAAS,CAC/B,IAAM,EAAQ,EAAI,OAA6B,MAAM,oBAAoB,CACzE,OAAW,MAAM,GAAG,EAAQ,IAAI,EAAM,UAAW,CAAE,QAAO,CAAC,CAE5D,SAAS,EAAgB,EAAM,CAE9B,OADI,OAAO,UAAU,WAAc,WAAmB,UAAU,WAAW,CAAC,KAAM,GAAQ,EAAI,KAAM,GAAM,EAAE,OAAS,EAAK,CAAC,CAAC,UAAY,GAAK,CACtI,QAAQ,QAAQ,GAAK,CAE7B,SAAS,EAAQ,EAAM,EAAS,EAAS,CACxC,OAAO,IAAI,SAAS,EAAS,IAAW,CACvC,IAAM,EAAM,UAAU,KAAK,EAAM,EAAQ,CACzC,EAAI,YAAgB,EAAO,EAAS,EAAK,uBAAuB,IAAO,CAAC,CACxE,EAAI,cAAkB,EAA2B,MAAM,wBAAwB,IAAO,CAAC,CACvF,EAAI,oBAAwB,IAAU,EAAI,OAAO,CACjD,EA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I,EAAG,KACT,CACZ,EAAe,OAAO,EAAG,EAG3B,SAAS,EAAY,EAAO,CAE3B,OADI,IAAU,KAAa,KACpB,EAAoB,SAAS,EAAM,CAAG,EAAQ,KAEtD,eAAe,GAAuB,CACrC,GAAI,IAAuB,IAAK,GAAG,OAAO,EAC1C,GAAI,EAAU,OAAO,EACrB,GAAY,SAAY,CACvB,IAAM,EAAQ,EAAY,MAAM,EAAkB,EAAiB,CAAC,CAGpE,MAFA,GAAqB,EACrB,GAAoB,CACb,KACJ,CACJ,GAAI,CACH,OAAO,MAAM,SACJ,CACT,EAAW,IAAK,IAGlB,SAAS,GAA0B,CAClC,OAAO,EAER,SAAS,GAAgC,CACxC,EAAqB,IAAK,GAC1B,GAAoB,CAErB,eAAe,GAA0B,CACxC,OAAO,EAAY,MAAM,EAAkB,EAAoB,CAAC,CAMjE,SAAS,EAAyB,EAAU,CAC3C,OAAO,GAAY,GAUpB,eAAe,EAAiB,EAAO,CACtC,GAAI,IAAU,GAAI,OAAO,YAAM,OAAO,wDACtC,GAAI,IAAU,GAAI,aAAO,OAAO,6DAChC,MAAU,MAAM,6BAA6B,OAAO,EAAM,GAAG,CAO9D,eAAe,EAAW,EAAO,CAChC,GAAI,IAAU,GAAI,uCAAQ,MAAM,OAAO,uEAAmC,OAC1E,GAAI,IAAU,GAAI,uCAAQ,MAAM,OAAO,uEAAuC,OAC9E,MAAU,MAAM,6BAA6B,OAAO,EAAM,GAAG,CCpI9D,IAAM,EAAuB,CAC5B,UAAW,YAAW,OAAO,uEAA4B,CACzD,OAAQ,CACP,GAAI,uBACJ,KAAM,qBACN,CACD,cAAe,CAAC,4BAA4B,CAC5C","names":[],"ignoreList":[0,1],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@fastify+websocket@11.2.0_@pa_aece1239503ec1d247219d4d3615d518/node_modules/@powerhousedao/connect/dist/pglite-runtime-Ch2YeUAA.js","../../../../../node_modules/.pnpm/@powerhousedao+powerhouse-vetra-packages@6.2.0-dev.23_graphql@16.12.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@powerhousedao/powerhouse-vetra-packages/dist/browser/editors/generic-drive-explorer/module.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"6b00b32d-5b00-5709-a1ee-057d1433add8\")}catch(e){}}();\nimport { t as PH_CONNECT_BASE_PATH } from \"./connect.config-Bt4pvvWV.js\";\nimport { ROOT_STORAGE_NAMESPACE, getStorageNamespace } from \"@powerhousedao/shared/connect\";\nimport { DEFAULT_RELATIONAL_PROCESSOR_DB_NAME } from \"@powerhousedao/shared/processors\";\nconst STORAGE_NAMESPACE = getStorageNamespace(PH_CONNECT_BASE_PATH);\nconst REACTOR_PGLITE_NAME = STORAGE_NAMESPACE;\nconst RELATIONAL_PGLITE_NAME = STORAGE_NAMESPACE === ROOT_STORAGE_NAMESPACE ? DEFAULT_RELATIONAL_PROCESSOR_DB_NAME : `${STORAGE_NAMESPACE}-${DEFAULT_RELATIONAL_PROCESSOR_DB_NAME}`;\n//#endregion\n//#region src/utils/pglite-idb.ts\nconst IDB_STORE_NAME = \"FILE_DATA\";\nconst REACTOR_IDB_NAME = `/pglite/${REACTOR_PGLITE_NAME}`;\nconst RELATIONAL_IDB_NAME = `/pglite/${RELATIONAL_PGLITE_NAME}`;\nconst PRIMARY_IDB_NAMES = [REACTOR_IDB_NAME, RELATIONAL_IDB_NAME];\nfunction idbError(req, context) {\n\tconst cause = req.error ?? /* @__PURE__ */ new Error(\"unknown IDB error\");\n\treturn new Error(`${context}: ${cause.message}`, { cause });\n}\nfunction indexedDbExists(name) {\n\tif (typeof indexedDB.databases === \"function\") return indexedDB.databases().then((dbs) => dbs.some((d) => d.name === name)).catch(() => true);\n\treturn Promise.resolve(true);\n}\nfunction openIdb(name, version, upgrade) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst req = indexedDB.open(name, version);\n\t\treq.onerror = () => reject(idbError(req, `IDB open failed for ${name}`));\n\t\treq.onblocked = () => reject(/* @__PURE__ */ new Error(`IDB open blocked for ${name}`));\n\t\treq.onupgradeneeded = () => upgrade?.(req.result);\n\t\treq.onsuccess = () => resolve(req.result);\n\t});\n}\nfunction createFileDataStore(db) {\n\tif (!db.objectStoreNames.contains(\"FILE_DATA\")) db.createObjectStore(IDB_STORE_NAME).createIndex(\"timestamp\", \"timestamp\", { unique: false });\n}\nasync function readPgVersionFile(idbName) {\n\tif (!await indexedDbExists(idbName)) return null;\n\tlet db;\n\ttry {\n\t\tdb = await openIdb(idbName, 21, createFileDataStore);\n\t} catch {\n\t\treturn null;\n\t}\n\ttry {\n\t\tif (!db.objectStoreNames.contains(\"FILE_DATA\")) return null;\n\t\tconst store = db.transaction(IDB_STORE_NAME, \"readonly\").objectStore(IDB_STORE_NAME);\n\t\tconst value = await new Promise((resolve, reject) => {\n\t\t\tconst req = store.openCursor();\n\t\t\treq.onerror = () => reject(idbError(req, `FILE_DATA cursor failed for ${idbName}`));\n\t\t\treq.onsuccess = () => {\n\t\t\t\tconst cursor = req.result;\n\t\t\t\tif (!cursor) return resolve(null);\n\t\t\t\tif ((typeof cursor.key === \"string\" ? cursor.key : \"\").endsWith(\"/PG_VERSION\")) resolve(cursor.value);\n\t\t\t\telse cursor.continue();\n\t\t\t};\n\t\t});\n\t\tif (!value) return null;\n\t\tconst bytes = value.contents instanceof Uint8Array ? value.contents : new Uint8Array(value.contents);\n\t\tconst text = new TextDecoder().decode(bytes).trim();\n\t\tconst major = parseInt(text, 10);\n\t\treturn Number.isFinite(major) ? major : null;\n\t} finally {\n\t\tdb.close();\n\t}\n}\nconst SUPPORTED_PG_MAJORS = [16, 17];\nlet cachedReactorMajor;\nlet inflight;\nconst majorListeners = /* @__PURE__ */ new Set();\nfunction notifyMajorChanged() {\n\tfor (const l of majorListeners) l();\n}\nfunction subscribeReactorPgMajor(cb) {\n\tmajorListeners.add(cb);\n\treturn () => {\n\t\tmajorListeners.delete(cb);\n\t};\n}\nfunction coerceMajor(value) {\n\tif (value === null) return null;\n\treturn SUPPORTED_PG_MAJORS.includes(value) ? value : null;\n}\nasync function detectReactorPgMajor() {\n\tif (cachedReactorMajor !== void 0) return cachedReactorMajor;\n\tif (inflight) return inflight;\n\tinflight = (async () => {\n\t\tconst major = coerceMajor(await readPgVersionFile(REACTOR_IDB_NAME));\n\t\tcachedReactorMajor = major;\n\t\tnotifyMajorChanged();\n\t\treturn major;\n\t})();\n\ttry {\n\t\treturn await inflight;\n\t} finally {\n\t\tinflight = void 0;\n\t}\n}\nfunction getCachedReactorPgMajor() {\n\treturn cachedReactorMajor;\n}\nfunction invalidateReactorPgMajorCache() {\n\tcachedReactorMajor = void 0;\n\tnotifyMajorChanged();\n}\nasync function detectRelationalPgMajor() {\n\treturn coerceMajor(await readPgVersionFile(RELATIONAL_IDB_NAME));\n}\n/**\n* Pick the PGlite major to use for *new* reactor clients: fall back to the\n* current version when there is no existing data dir.\n*/\nfunction resolvePgMajorForRuntime(detected) {\n\treturn detected ?? 17;\n}\n/**\n* Loads the PGlite module that matches an on-disk data dir major version.\n*\n* The 0.2.x and 0.3.x modules expose the same runtime interface (PGlite class,\n* `idb://` data-dir support, waitReady, exec/query/transaction, close). The\n* return type is pinned to the current package's module so callers can use it\n* against `kysely-pglite-dialect` which peer-depends on both majors.\n*/\nasync function loadPGliteModule(major) {\n\tif (major === 16) return await import(\"pglite-legacy-02\");\n\tif (major === 17) return import(\"@electric-sql/pglite\");\n\tthrow new Error(`Unsupported PGlite major: ${String(major)}`);\n}\n/**\n* Loads the pg_dump tool for the given PGlite major. pg_dump's VFS layout is\n* version-specific, so using the wrong major against a live PGlite instance\n* fails with Emscripten ENOENT (errno 44).\n*/\nasync function loadPgDump(major) {\n\tif (major === 16) return (await import(\"pglite-tools-legacy-02/pg_dump\")).pgDump;\n\tif (major === 17) return (await import(\"@electric-sql/pglite-tools/pg_dump\")).pgDump;\n\tthrow new Error(`Unsupported PGlite major: ${String(major)}`);\n}\n//#endregion\nexport { loadPGliteModule as a, subscribeReactorPgMajor as c, createFileDataStore as d, idbError as f, RELATIONAL_PGLITE_NAME as g, REACTOR_PGLITE_NAME as h, invalidateReactorPgMajorCache as i, IDB_STORE_NAME as l, readPgVersionFile as m, detectRelationalPgMajor as n, loadPgDump as o, openIdb as p, getCachedReactorPgMajor as r, resolvePgMajorForRuntime as s, detectReactorPgMajor as t, PRIMARY_IDB_NAMES as u };\n\n//# sourceMappingURL=pglite-runtime-Ch2YeUAA.js.map\n//# debugId=6b00b32d-5b00-5709-a1ee-057d1433add8\n","import { lazy } from \"react\";\n//#region editors/generic-drive-explorer/module.ts\nconst GenericDriveExplorer = {\n\tComponent: lazy(() => import(\"../../editor-C4TXNppO.js\")),\n\tconfig: {\n\t\tid: \"GenericDriveExplorer\",\n\t\tname: \"Drive Explorer App\"\n\t},\n\tdocumentTypes: [\"powerhouse/document-drive\"]\n};\n//#endregion\nexport { GenericDriveExplorer };\n\n//# sourceMappingURL=module.js.map"],"file":"module-DP3LMNU7.js"}
1
+ {"version":3,"mappings":";2OACC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAe,OAAO,OAApB,IAA2B,OAAoB,OAAO,OAApB,IAA2B,OAAoB,OAAO,WAApB,IAA+B,WAAwB,OAAO,KAApB,IAAyB,KAAK,EAAE,CAAC,EAAG,IAAI,EAAE,OAAK,CAAE,MAAM,IAAI,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC,EAAE,gBAAgB,GAAG,6CAAgD,MAAK,CAIjT,IAAM,EAAoB,EAAoB,EAAqB,CAC7D,EAAsB,EACtB,EAAyB,cAA+C,EAAuC,GAAG,EAAkB,GAAG,IAGvI,EAAiB,YACjB,EAAmB,WAAW,IAC9B,EAAsB,WAAW,IACjC,EAAoB,CAAC,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AI,OAAO,YAAM,OAAO,wDACtC,GAAI,IAAU,GAAI,aAAO,OAAO,6DAChC,MAAU,MAAM,6BAA6B,OAAO,EAAM,GAAG,CAO9D,eAAe,EAAW,EAAO,CAChC,GAAI,IAAU,GAAI,uCAAQ,MAAM,OAAO,uEAAmC,OAC1E,GAAI,IAAU,GAAI,uCAAQ,MAAM,OAAO,uEAAuC,OAC9E,MAAU,MAAM,6BAA6B,OAAO,EAAM,GAAG,CCpI9D,IAAM,EAAuB,CAC5B,UAAW,YAAW,OAAO,uEAA4B,CACzD,OAAQ,CACP,GAAI,uBACJ,KAAM,qBACN,CACD,cAAe,CAAC,4BAA4B,CAC5C","names":[],"ignoreList":[0,1],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+connect@6.2.0-dev.23_@babel+runtime@7.29.2_@parcel+watcher@2.5.6_@sentry_92fbcdab943457b0ffd54c0864a4f38d/node_modules/@powerhousedao/connect/dist/pglite-runtime-Ch2YeUAA.js","../../../../../node_modules/.pnpm/@powerhousedao+powerhouse-vetra-packages@6.2.0-dev.23_graphql@16.12.0_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@powerhousedao/powerhouse-vetra-packages/dist/browser/editors/generic-drive-explorer/module.js"],"sourcesContent":["\n!function(){try{var e=\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]=\"6b00b32d-5b00-5709-a1ee-057d1433add8\")}catch(e){}}();\nimport { t as PH_CONNECT_BASE_PATH } from \"./connect.config-Bt4pvvWV.js\";\nimport { ROOT_STORAGE_NAMESPACE, getStorageNamespace } from \"@powerhousedao/shared/connect\";\nimport { DEFAULT_RELATIONAL_PROCESSOR_DB_NAME } from \"@powerhousedao/shared/processors\";\nconst STORAGE_NAMESPACE = getStorageNamespace(PH_CONNECT_BASE_PATH);\nconst REACTOR_PGLITE_NAME = STORAGE_NAMESPACE;\nconst RELATIONAL_PGLITE_NAME = STORAGE_NAMESPACE === ROOT_STORAGE_NAMESPACE ? DEFAULT_RELATIONAL_PROCESSOR_DB_NAME : `${STORAGE_NAMESPACE}-${DEFAULT_RELATIONAL_PROCESSOR_DB_NAME}`;\n//#endregion\n//#region src/utils/pglite-idb.ts\nconst IDB_STORE_NAME = \"FILE_DATA\";\nconst REACTOR_IDB_NAME = `/pglite/${REACTOR_PGLITE_NAME}`;\nconst RELATIONAL_IDB_NAME = `/pglite/${RELATIONAL_PGLITE_NAME}`;\nconst PRIMARY_IDB_NAMES = [REACTOR_IDB_NAME, RELATIONAL_IDB_NAME];\nfunction idbError(req, context) {\n\tconst cause = req.error ?? /* @__PURE__ */ new Error(\"unknown IDB error\");\n\treturn new Error(`${context}: ${cause.message}`, { cause });\n}\nfunction indexedDbExists(name) {\n\tif (typeof indexedDB.databases === \"function\") return indexedDB.databases().then((dbs) => dbs.some((d) => d.name === name)).catch(() => true);\n\treturn Promise.resolve(true);\n}\nfunction openIdb(name, version, upgrade) {\n\treturn new Promise((resolve, reject) => {\n\t\tconst req = indexedDB.open(name, version);\n\t\treq.onerror = () => reject(idbError(req, `IDB open failed for ${name}`));\n\t\treq.onblocked = () => reject(/* @__PURE__ */ new Error(`IDB open blocked for ${name}`));\n\t\treq.onupgradeneeded = () => upgrade?.(req.result);\n\t\treq.onsuccess = () => resolve(req.result);\n\t});\n}\nfunction createFileDataStore(db) {\n\tif (!db.objectStoreNames.contains(\"FILE_DATA\")) db.createObjectStore(IDB_STORE_NAME).createIndex(\"timestamp\", \"timestamp\", { unique: false });\n}\nasync function readPgVersionFile(idbName) {\n\tif (!await indexedDbExists(idbName)) return null;\n\tlet db;\n\ttry {\n\t\tdb = await openIdb(idbName, 21, createFileDataStore);\n\t} catch {\n\t\treturn null;\n\t}\n\ttry {\n\t\tif (!db.objectStoreNames.contains(\"FILE_DATA\")) return null;\n\t\tconst store = db.transaction(IDB_STORE_NAME, \"readonly\").objectStore(IDB_STORE_NAME);\n\t\tconst value = await new Promise((resolve, reject) => {\n\t\t\tconst req = store.openCursor();\n\t\t\treq.onerror = () => reject(idbError(req, `FILE_DATA cursor failed for ${idbName}`));\n\t\t\treq.onsuccess = () => {\n\t\t\t\tconst cursor = req.result;\n\t\t\t\tif (!cursor) return resolve(null);\n\t\t\t\tif ((typeof cursor.key === \"string\" ? cursor.key : \"\").endsWith(\"/PG_VERSION\")) resolve(cursor.value);\n\t\t\t\telse cursor.continue();\n\t\t\t};\n\t\t});\n\t\tif (!value) return null;\n\t\tconst bytes = value.contents instanceof Uint8Array ? value.contents : new Uint8Array(value.contents);\n\t\tconst text = new TextDecoder().decode(bytes).trim();\n\t\tconst major = parseInt(text, 10);\n\t\treturn Number.isFinite(major) ? major : null;\n\t} finally {\n\t\tdb.close();\n\t}\n}\nconst SUPPORTED_PG_MAJORS = [16, 17];\nlet cachedReactorMajor;\nlet inflight;\nconst majorListeners = /* @__PURE__ */ new Set();\nfunction notifyMajorChanged() {\n\tfor (const l of majorListeners) l();\n}\nfunction subscribeReactorPgMajor(cb) {\n\tmajorListeners.add(cb);\n\treturn () => {\n\t\tmajorListeners.delete(cb);\n\t};\n}\nfunction coerceMajor(value) {\n\tif (value === null) return null;\n\treturn SUPPORTED_PG_MAJORS.includes(value) ? value : null;\n}\nasync function detectReactorPgMajor() {\n\tif (cachedReactorMajor !== void 0) return cachedReactorMajor;\n\tif (inflight) return inflight;\n\tinflight = (async () => {\n\t\tconst major = coerceMajor(await readPgVersionFile(REACTOR_IDB_NAME));\n\t\tcachedReactorMajor = major;\n\t\tnotifyMajorChanged();\n\t\treturn major;\n\t})();\n\ttry {\n\t\treturn await inflight;\n\t} finally {\n\t\tinflight = void 0;\n\t}\n}\nfunction getCachedReactorPgMajor() {\n\treturn cachedReactorMajor;\n}\nfunction invalidateReactorPgMajorCache() {\n\tcachedReactorMajor = void 0;\n\tnotifyMajorChanged();\n}\nasync function detectRelationalPgMajor() {\n\treturn coerceMajor(await readPgVersionFile(RELATIONAL_IDB_NAME));\n}\n/**\n* Pick the PGlite major to use for *new* reactor clients: fall back to the\n* current version when there is no existing data dir.\n*/\nfunction resolvePgMajorForRuntime(detected) {\n\treturn detected ?? 17;\n}\n/**\n* Loads the PGlite module that matches an on-disk data dir major version.\n*\n* The 0.2.x and 0.3.x modules expose the same runtime interface (PGlite class,\n* `idb://` data-dir support, waitReady, exec/query/transaction, close). The\n* return type is pinned to the current package's module so callers can use it\n* against `kysely-pglite-dialect` which peer-depends on both majors.\n*/\nasync function loadPGliteModule(major) {\n\tif (major === 16) return await import(\"pglite-legacy-02\");\n\tif (major === 17) return import(\"@electric-sql/pglite\");\n\tthrow new Error(`Unsupported PGlite major: ${String(major)}`);\n}\n/**\n* Loads the pg_dump tool for the given PGlite major. pg_dump's VFS layout is\n* version-specific, so using the wrong major against a live PGlite instance\n* fails with Emscripten ENOENT (errno 44).\n*/\nasync function loadPgDump(major) {\n\tif (major === 16) return (await import(\"pglite-tools-legacy-02/pg_dump\")).pgDump;\n\tif (major === 17) return (await import(\"@electric-sql/pglite-tools/pg_dump\")).pgDump;\n\tthrow new Error(`Unsupported PGlite major: ${String(major)}`);\n}\n//#endregion\nexport { loadPGliteModule as a, subscribeReactorPgMajor as c, createFileDataStore as d, idbError as f, RELATIONAL_PGLITE_NAME as g, REACTOR_PGLITE_NAME as h, invalidateReactorPgMajorCache as i, IDB_STORE_NAME as l, readPgVersionFile as m, detectRelationalPgMajor as n, loadPgDump as o, openIdb as p, getCachedReactorPgMajor as r, resolvePgMajorForRuntime as s, detectReactorPgMajor as t, PRIMARY_IDB_NAMES as u };\n\n//# sourceMappingURL=pglite-runtime-Ch2YeUAA.js.map\n//# debugId=6b00b32d-5b00-5709-a1ee-057d1433add8\n","import { lazy } from \"react\";\n//#region editors/generic-drive-explorer/module.ts\nconst GenericDriveExplorer = {\n\tComponent: lazy(() => import(\"../../editor-C4TXNppO.js\")),\n\tconfig: {\n\t\tid: \"GenericDriveExplorer\",\n\t\tname: \"Drive Explorer App\"\n\t},\n\tdocumentTypes: [\"powerhouse/document-drive\"]\n};\n//#endregion\nexport { GenericDriveExplorer };\n\n//# sourceMappingURL=module.js.map"],"file":"module-7zCQE1MC.js"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-CRq_lUkG-D61oeRlC.js","names":["z$1.any","z$1.enum","z$1.object","z$1.string","z$1.literal","z$1.array","z$1.boolean","z.literal","z.object","utils"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/utils-B4KdjDnp.js","../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/module-CRq_lUkG.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/app-module/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nconst StatusTypeSchema = z$1.enum([\"CONFIRMED\", \"DRAFT\"]);\nfunction AddDocumentTypeInputSchema() {\n\treturn z$1.object({ documentType: z$1.string() });\n}\nfunction AppModuleStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"AppModuleState\").optional(),\n\t\tallowedDocumentTypes: z$1.array(z$1.string()).nullish(),\n\t\tisDragAndDropEnabled: z$1.boolean(),\n\t\tname: z$1.string(),\n\t\tstatus: StatusTypeSchema\n\t});\n}\nfunction RemoveDocumentTypeInputSchema() {\n\treturn z$1.object({ documentType: z$1.string() });\n}\nfunction SetAppNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetAppStatusInputSchema() {\n\treturn z$1.object({ status: StatusTypeSchema });\n}\nfunction SetDocumentTypesInputSchema() {\n\treturn z$1.object({ documentTypes: z$1.array(z$1.string()) });\n}\nfunction SetDragAndDropEnabledInputSchema() {\n\treturn z$1.object({ enabled: z$1.boolean() });\n}\n//#endregion\n//#region document-models/app-module/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports$1 = /* @__PURE__ */ __exportAll({\n\taddDocumentType: () => addDocumentType,\n\tremoveDocumentType: () => removeDocumentType,\n\tsetAppName: () => setAppName,\n\tsetAppStatus: () => setAppStatus,\n\tsetDocumentTypes: () => setDocumentTypes\n});\nconst setAppName = (input) => createAction(\"SET_APP_NAME\", { ...input }, void 0, SetAppNameInputSchema, \"global\");\nconst setAppStatus = (input) => createAction(\"SET_APP_STATUS\", { ...input }, void 0, SetAppStatusInputSchema, \"global\");\nconst addDocumentType = (input) => createAction(\"ADD_DOCUMENT_TYPE\", { ...input }, void 0, AddDocumentTypeInputSchema, \"global\");\nconst removeDocumentType = (input) => createAction(\"REMOVE_DOCUMENT_TYPE\", { ...input }, void 0, RemoveDocumentTypeInputSchema, \"global\");\nconst setDocumentTypes = (input) => createAction(\"SET_DOCUMENT_TYPES\", { ...input }, void 0, SetDocumentTypesInputSchema, \"global\");\n//#endregion\n//#region document-models/app-module/v1/gen/dnd-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({ setDragAndDropEnabled: () => setDragAndDropEnabled });\nconst setDragAndDropEnabled = (input) => createAction(\"SET_DRAG_AND_DROP_ENABLED\", { ...input }, void 0, SetDragAndDropEnabledInputSchema, \"global\");\n//#endregion\n//#region document-models/app-module/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the AppModule document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports$1,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/app-module/v1/src/reducers/base-operations.ts\nconst appModuleBaseOperationsOperations = {\n\tsetAppNameOperation(state, action, _dispatch) {\n\t\tconst trimmedName = action.input.name.trim();\n\t\tif (trimmedName === \"\") throw new Error(\"App name cannot be empty\");\n\t\tstate.name = trimmedName;\n\t},\n\tsetAppStatusOperation(state, action, _dispatch) {\n\t\tstate.status = action.input.status;\n\t},\n\taddDocumentTypeOperation(state, action, _dispatch) {\n\t\tconst existingAllowedDocumentTypes = state.allowedDocumentTypes ?? [];\n\t\tconst newDocumentType = action.input.documentType;\n\t\tstate.allowedDocumentTypes = [...new Set(existingAllowedDocumentTypes).add(newDocumentType)];\n\t},\n\tremoveDocumentTypeOperation(state, action, _dispatch) {\n\t\tconst existingAllowedDocumentTypes = state.allowedDocumentTypes;\n\t\tconst documentTypeToRemove = action.input.documentType;\n\t\tstate.allowedDocumentTypes = existingAllowedDocumentTypes?.filter((dt) => dt !== documentTypeToRemove) ?? [];\n\t},\n\tsetDocumentTypesOperation(state, action, _dispatch) {\n\t\tstate.allowedDocumentTypes = action.input.documentTypes;\n\t}\n};\n//#endregion\n//#region document-models/app-module/v1/src/reducers/dnd-operations.ts\nconst appModuleDndOperationsOperations = { setDragAndDropEnabledOperation(state, action, _dispatch) {\n\tstate.isDragAndDropEnabled = action.input.enabled;\n} };\n//#endregion\n//#region document-models/app-module/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_APP_NAME\":\n\t\t\tSetAppNameInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setAppNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_APP_STATUS\":\n\t\t\tSetAppStatusInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setAppStatusOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_DOCUMENT_TYPE\":\n\t\t\tAddDocumentTypeInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_DOCUMENT_TYPE\":\n\t\t\tRemoveDocumentTypeInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_DOCUMENT_TYPES\":\n\t\t\tSetDocumentTypesInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setDocumentTypesOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_DRAG_AND_DROP_ENABLED\":\n\t\t\tSetDragAndDropEnabledInputSchema().parse(action.input);\n\t\t\tappModuleDndOperationsOperations.setDragAndDropEnabledOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/app-module/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst appModuleDocumentType = \"powerhouse/app\";\n//#endregion\n//#region document-models/app-module/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a AppModule document */\nconst AppModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(appModuleDocumentType) });\n/** Schema for validating the state object of a AppModule document */\nconst AppModulePHStateSchema = BaseDocumentStateSchema.extend({ global: AppModuleStateSchema() });\nconst AppModuleDocumentSchema = z.object({\n\theader: AppModuleDocumentHeaderSchema,\n\tstate: AppModulePHStateSchema,\n\tinitialState: AppModulePHStateSchema\n});\n/** Simple helper function to check if a state object is a AppModule document state object */\nfunction isAppModuleState(state) {\n\treturn AppModulePHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a AppModule document state object */\nfunction assertIsAppModuleState(state) {\n\tAppModulePHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a AppModule document */\nfunction isAppModuleDocument(document) {\n\treturn AppModuleDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a AppModule document */\nfunction assertIsAppModuleDocument(document) {\n\tAppModuleDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/app-module/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: \"\",\n\tstatus: \"DRAFT\",\n\tallowedDocumentTypes: null,\n\tisDragAndDropEnabled: true\n};\nconst initialLocalState = {};\nconst utils = {\n\tfileExtension: \".app\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils.createState, state, appModuleDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isAppModuleState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsAppModuleState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isAppModuleDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsAppModuleDocument(document);\n\t}\n};\n//#endregion\nexport { definedNonNullAnySchema as A, AppModuleStateSchema as C, SetDocumentTypesInputSchema as D, SetAppStatusInputSchema as E, SetDragAndDropEnabledInputSchema as O, AddDocumentTypeInputSchema as S, SetAppNameInputSchema as T, creators_exports$1 as _, AppModuleDocumentSchema as a, setAppStatus as b, assertIsAppModuleState as c, appModuleDocumentType as d, reducer as f, addDocumentType as g, setDragAndDropEnabled as h, AppModuleDocumentHeaderSchema as i, isDefinedNonNullAny as j, StatusTypeSchema as k, isAppModuleDocument as l, creators_exports as m, initialLocalState as n, AppModulePHStateSchema as o, actions as p, utils as r, assertIsAppModuleDocument as s, initialGlobalState as t, isAppModuleState as u, removeDocumentType as v, RemoveDocumentTypeInputSchema as w, setDocumentTypes as x, setAppName as y };\n\n//# sourceMappingURL=utils-B4KdjDnp.js.map","import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { f as reducer, p as actions, r as utils$1 } from \"./utils-B4KdjDnp.js\";\nimport { createState, defaultBaseState } from \"document-model\";\n//#region document-models/app-module/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/app\",\n\tname: \"App Module\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".app\",\n\tdescription: \"Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `apps/`.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nConfiguration for a Drive App contributed by the package. Drive apps render a\\ncustom view at the drive level (instead of, or alongside, the document file\\ntree) and can opt into which document types they accept.\\n\\\"\\\"\\\"\\ntype AppModuleState {\\n \\\"\\\"\\\"Display name of the drive app. Also used as the source for the generated folder name under `apps/`.\\\"\\\"\\\"\\n name: String!\\n \\\"\\\"\\\"Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation.\\\"\\\"\\\"\\n status: StatusType!\\n \\\"\\\"\\\"Document type ids this app handles. `null` means the app accepts any document type; an empty list means it accepts none.\\\"\\\"\\\"\\n allowedDocumentTypes: [String!]\\n \\\"\\\"\\\"Whether the app surface accepts dropped files from the user. Defaults to true.\\\"\\\"\\\"\\n isDragAndDropEnabled: Boolean!\\n}\\n\\n\\\"\\\"\\\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\\\"\\\"\\\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": \\\"\\\",\\n \\\"status\\\": \\\"DRAFT\\\",\\n \\\"allowedDocumentTypes\\\": null,\\n \\\"isDragAndDropEnabled\\\": true\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"d274599a-ceb5-4f2b-8651-b25787306734\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Set the app's identity, lifecycle status, and the document types it handles.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"f2ba2ddc-8527-4162-93bd-e045e9932013\",\n\t\t\t\t\tname: \"SET_APP_NAME\",\n\t\t\t\t\tdescription: \"Set the display name of the drive app. Also determines the generated folder name under `apps/`.\",\n\t\t\t\t\tschema: \"input SetAppNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"c842efa4-154c-4fd9-9d12-42bec51af4e9\",\n\t\t\t\t\tname: \"SET_APP_STATUS\",\n\t\t\t\t\tdescription: \"Move the app between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n\t\t\t\t\tschema: \"input SetAppStatusInput {\\n status: StatusType!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"7376f168-695f-4aef-94d0-6e381666358c\",\n\t\t\t\t\tname: \"ADD_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Append a document type id to the list of types this app handles. Initializes the list if it was `null` (accept-any).\",\n\t\t\t\t\tschema: \"input AddDocumentTypeInput {\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"310e4e5b-3f14-4e9a-8e09-5583c7698a65\",\n\t\t\t\t\tname: \"REMOVE_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Remove a document type id from the handled list. No-op if the type is not present.\",\n\t\t\t\t\tschema: \"input RemoveDocumentTypeInput {\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"b365727a-7df3-48f0-a4f8-02362f02ad1d\",\n\t\t\t\t\tname: \"SET_DOCUMENT_TYPES\",\n\t\t\t\t\tdescription: \"Replace the entire allowed-document-types list in one call. Pass an empty list to accept none.\",\n\t\t\t\t\tschema: \"input SetDocumentTypesInput {\\n documentTypes: [String!]!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}, {\n\t\t\tid: \"270faa10-92e9-40d0-b128-2de32704bcb5\",\n\t\t\tname: \"dnd_operations\",\n\t\t\tdescription: \"Toggle drag-and-drop file handling for the app surface.\",\n\t\t\toperations: [{\n\t\t\t\tid: \"077b1ab8-cb32-4b4e-a1fa-76178188c6a1\",\n\t\t\t\tname: \"SET_DRAG_AND_DROP_ENABLED\",\n\t\t\t\tdescription: \"Enable or disable drag-and-drop file handling on the app surface.\",\n\t\t\t\tschema: \"input SetDragAndDropEnabledInput {\\n enabled: Boolean!\\n}\",\n\t\t\t\ttemplate: \"\",\n\t\t\t\treducer: \"\",\n\t\t\t\terrors: [],\n\t\t\t\texamples: [],\n\t\t\t\tscope: \"global\"\n\t\t\t}]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/app-module/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/app-module/v1/utils.ts\n/** Utils for the AppModule document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/app-module/v1/module.ts\n/** Document model module for the AppModule document type */\nconst AppModule = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { utils as n, documentModel as r, AppModule as t };\n\n//# sourceMappingURL=module-CRq_lUkG.js.map"],"x_google_ignoreList":[0,1],"mappings":"6NAKA,IAAM,EAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,EAAoB,EAAE,CAAC,CAC/E,IAAM,EAAmBC,EAAS,CAAC,YAAa,QAAQ,CAAC,CACzD,SAAS,GAA6B,CACrC,OAAOC,EAAW,CAAE,aAAcC,GAAY,CAAE,CAAC,CAElD,SAAS,GAAuB,CAC/B,OAAOD,EAAW,CACjB,WAAYE,EAAY,iBAAiB,CAAC,UAAU,CACpD,qBAAsBC,EAAUF,GAAY,CAAC,CAAC,SAAS,CACvD,qBAAsBG,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C,CACF,CAGG,EAAgC,EAAY,EAAE,CAAC,CAW7C,EAAY,CACjB,QAAS,EACT,UACA,UACA,OAVA,GAAG,EACH,GAAG,EASH,CACA,cAAe,EAAY,GAAkB,CAAE,EAAc,CAC7D"}
1
+ {"version":3,"file":"module-CRq_lUkG-D61oeRlC.js","names":["z$1.any","z$1.enum","z$1.object","z$1.string","z$1.literal","z$1.array","z$1.boolean","z.literal","z.object","utils"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/utils-B4KdjDnp.js","../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/module-CRq_lUkG.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/app-module/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nconst StatusTypeSchema = z$1.enum([\"CONFIRMED\", \"DRAFT\"]);\nfunction AddDocumentTypeInputSchema() {\n\treturn z$1.object({ documentType: z$1.string() });\n}\nfunction AppModuleStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"AppModuleState\").optional(),\n\t\tallowedDocumentTypes: z$1.array(z$1.string()).nullish(),\n\t\tisDragAndDropEnabled: z$1.boolean(),\n\t\tname: z$1.string(),\n\t\tstatus: StatusTypeSchema\n\t});\n}\nfunction RemoveDocumentTypeInputSchema() {\n\treturn z$1.object({ documentType: z$1.string() });\n}\nfunction SetAppNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetAppStatusInputSchema() {\n\treturn z$1.object({ status: StatusTypeSchema });\n}\nfunction SetDocumentTypesInputSchema() {\n\treturn z$1.object({ documentTypes: z$1.array(z$1.string()) });\n}\nfunction SetDragAndDropEnabledInputSchema() {\n\treturn z$1.object({ enabled: z$1.boolean() });\n}\n//#endregion\n//#region document-models/app-module/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports$1 = /* @__PURE__ */ __exportAll({\n\taddDocumentType: () => addDocumentType,\n\tremoveDocumentType: () => removeDocumentType,\n\tsetAppName: () => setAppName,\n\tsetAppStatus: () => setAppStatus,\n\tsetDocumentTypes: () => setDocumentTypes\n});\nconst setAppName = (input) => createAction(\"SET_APP_NAME\", { ...input }, void 0, SetAppNameInputSchema, \"global\");\nconst setAppStatus = (input) => createAction(\"SET_APP_STATUS\", { ...input }, void 0, SetAppStatusInputSchema, \"global\");\nconst addDocumentType = (input) => createAction(\"ADD_DOCUMENT_TYPE\", { ...input }, void 0, AddDocumentTypeInputSchema, \"global\");\nconst removeDocumentType = (input) => createAction(\"REMOVE_DOCUMENT_TYPE\", { ...input }, void 0, RemoveDocumentTypeInputSchema, \"global\");\nconst setDocumentTypes = (input) => createAction(\"SET_DOCUMENT_TYPES\", { ...input }, void 0, SetDocumentTypesInputSchema, \"global\");\n//#endregion\n//#region document-models/app-module/v1/gen/dnd-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({ setDragAndDropEnabled: () => setDragAndDropEnabled });\nconst setDragAndDropEnabled = (input) => createAction(\"SET_DRAG_AND_DROP_ENABLED\", { ...input }, void 0, SetDragAndDropEnabledInputSchema, \"global\");\n//#endregion\n//#region document-models/app-module/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the AppModule document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports$1,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/app-module/v1/src/reducers/base-operations.ts\nconst appModuleBaseOperationsOperations = {\n\tsetAppNameOperation(state, action, _dispatch) {\n\t\tconst trimmedName = action.input.name.trim();\n\t\tif (trimmedName === \"\") throw new Error(\"App name cannot be empty\");\n\t\tstate.name = trimmedName;\n\t},\n\tsetAppStatusOperation(state, action, _dispatch) {\n\t\tstate.status = action.input.status;\n\t},\n\taddDocumentTypeOperation(state, action, _dispatch) {\n\t\tconst existingAllowedDocumentTypes = state.allowedDocumentTypes ?? [];\n\t\tconst newDocumentType = action.input.documentType;\n\t\tstate.allowedDocumentTypes = [...new Set(existingAllowedDocumentTypes).add(newDocumentType)];\n\t},\n\tremoveDocumentTypeOperation(state, action, _dispatch) {\n\t\tconst existingAllowedDocumentTypes = state.allowedDocumentTypes;\n\t\tconst documentTypeToRemove = action.input.documentType;\n\t\tstate.allowedDocumentTypes = existingAllowedDocumentTypes?.filter((dt) => dt !== documentTypeToRemove) ?? [];\n\t},\n\tsetDocumentTypesOperation(state, action, _dispatch) {\n\t\tstate.allowedDocumentTypes = action.input.documentTypes;\n\t}\n};\n//#endregion\n//#region document-models/app-module/v1/src/reducers/dnd-operations.ts\nconst appModuleDndOperationsOperations = { setDragAndDropEnabledOperation(state, action, _dispatch) {\n\tstate.isDragAndDropEnabled = action.input.enabled;\n} };\n//#endregion\n//#region document-models/app-module/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_APP_NAME\":\n\t\t\tSetAppNameInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setAppNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_APP_STATUS\":\n\t\t\tSetAppStatusInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setAppStatusOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_DOCUMENT_TYPE\":\n\t\t\tAddDocumentTypeInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_DOCUMENT_TYPE\":\n\t\t\tRemoveDocumentTypeInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_DOCUMENT_TYPES\":\n\t\t\tSetDocumentTypesInputSchema().parse(action.input);\n\t\t\tappModuleBaseOperationsOperations.setDocumentTypesOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_DRAG_AND_DROP_ENABLED\":\n\t\t\tSetDragAndDropEnabledInputSchema().parse(action.input);\n\t\t\tappModuleDndOperationsOperations.setDragAndDropEnabledOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/app-module/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst appModuleDocumentType = \"powerhouse/app\";\n//#endregion\n//#region document-models/app-module/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a AppModule document */\nconst AppModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(appModuleDocumentType) });\n/** Schema for validating the state object of a AppModule document */\nconst AppModulePHStateSchema = BaseDocumentStateSchema.extend({ global: AppModuleStateSchema() });\nconst AppModuleDocumentSchema = z.object({\n\theader: AppModuleDocumentHeaderSchema,\n\tstate: AppModulePHStateSchema,\n\tinitialState: AppModulePHStateSchema\n});\n/** Simple helper function to check if a state object is a AppModule document state object */\nfunction isAppModuleState(state) {\n\treturn AppModulePHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a AppModule document state object */\nfunction assertIsAppModuleState(state) {\n\tAppModulePHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a AppModule document */\nfunction isAppModuleDocument(document) {\n\treturn AppModuleDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a AppModule document */\nfunction assertIsAppModuleDocument(document) {\n\tAppModuleDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/app-module/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: \"\",\n\tstatus: \"DRAFT\",\n\tallowedDocumentTypes: null,\n\tisDragAndDropEnabled: true\n};\nconst initialLocalState = {};\nconst utils = {\n\tfileExtension: \".app\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils.createState, state, appModuleDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isAppModuleState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsAppModuleState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isAppModuleDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsAppModuleDocument(document);\n\t}\n};\n//#endregion\nexport { definedNonNullAnySchema as A, AppModuleStateSchema as C, SetDocumentTypesInputSchema as D, SetAppStatusInputSchema as E, SetDragAndDropEnabledInputSchema as O, AddDocumentTypeInputSchema as S, SetAppNameInputSchema as T, creators_exports$1 as _, AppModuleDocumentSchema as a, setAppStatus as b, assertIsAppModuleState as c, appModuleDocumentType as d, reducer as f, addDocumentType as g, setDragAndDropEnabled as h, AppModuleDocumentHeaderSchema as i, isDefinedNonNullAny as j, StatusTypeSchema as k, isAppModuleDocument as l, creators_exports as m, initialLocalState as n, AppModulePHStateSchema as o, actions as p, utils as r, assertIsAppModuleDocument as s, initialGlobalState as t, isAppModuleState as u, removeDocumentType as v, RemoveDocumentTypeInputSchema as w, setDocumentTypes as x, setAppName as y };\n\n//# sourceMappingURL=utils-B4KdjDnp.js.map","import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { f as reducer, p as actions, r as utils$1 } from \"./utils-B4KdjDnp.js\";\nimport { createState, defaultBaseState } from \"document-model\";\n//#region document-models/app-module/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/app\",\n\tname: \"App Module\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".app\",\n\tdescription: \"Declares a custom Drive App (a drive-level UI surface) shipped by a Vetra Reactor Package. Use one App Module document per drive app: configure which document types it handles, whether it accepts drag-and-drop, and mark it CONFIRMED to trigger codegen of the corresponding app scaffold under `apps/`.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nConfiguration for a Drive App contributed by the package. Drive apps render a\\ncustom view at the drive level (instead of, or alongside, the document file\\ntree) and can opt into which document types they accept.\\n\\\"\\\"\\\"\\ntype AppModuleState {\\n \\\"\\\"\\\"Display name of the drive app. Also used as the source for the generated folder name under `apps/`.\\\"\\\"\\\"\\n name: String!\\n \\\"\\\"\\\"Lifecycle status. While DRAFT the app definition is editable and codegen is skipped; switching to CONFIRMED triggers app scaffold generation.\\\"\\\"\\\"\\n status: StatusType!\\n \\\"\\\"\\\"Document type ids this app handles. `null` means the app accepts any document type; an empty list means it accepts none.\\\"\\\"\\\"\\n allowedDocumentTypes: [String!]\\n \\\"\\\"\\\"Whether the app surface accepts dropped files from the user. Defaults to true.\\\"\\\"\\\"\\n isDragAndDropEnabled: Boolean!\\n}\\n\\n\\\"\\\"\\\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\\\"\\\"\\\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": \\\"\\\",\\n \\\"status\\\": \\\"DRAFT\\\",\\n \\\"allowedDocumentTypes\\\": null,\\n \\\"isDragAndDropEnabled\\\": true\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"d274599a-ceb5-4f2b-8651-b25787306734\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Set the app's identity, lifecycle status, and the document types it handles.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"f2ba2ddc-8527-4162-93bd-e045e9932013\",\n\t\t\t\t\tname: \"SET_APP_NAME\",\n\t\t\t\t\tdescription: \"Set the display name of the drive app. Also determines the generated folder name under `apps/`.\",\n\t\t\t\t\tschema: \"input SetAppNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"c842efa4-154c-4fd9-9d12-42bec51af4e9\",\n\t\t\t\t\tname: \"SET_APP_STATUS\",\n\t\t\t\t\tdescription: \"Move the app between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n\t\t\t\t\tschema: \"input SetAppStatusInput {\\n status: StatusType!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"7376f168-695f-4aef-94d0-6e381666358c\",\n\t\t\t\t\tname: \"ADD_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Append a document type id to the list of types this app handles. Initializes the list if it was `null` (accept-any).\",\n\t\t\t\t\tschema: \"input AddDocumentTypeInput {\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"310e4e5b-3f14-4e9a-8e09-5583c7698a65\",\n\t\t\t\t\tname: \"REMOVE_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Remove a document type id from the handled list. No-op if the type is not present.\",\n\t\t\t\t\tschema: \"input RemoveDocumentTypeInput {\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"b365727a-7df3-48f0-a4f8-02362f02ad1d\",\n\t\t\t\t\tname: \"SET_DOCUMENT_TYPES\",\n\t\t\t\t\tdescription: \"Replace the entire allowed-document-types list in one call. Pass an empty list to accept none.\",\n\t\t\t\t\tschema: \"input SetDocumentTypesInput {\\n documentTypes: [String!]!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}, {\n\t\t\tid: \"270faa10-92e9-40d0-b128-2de32704bcb5\",\n\t\t\tname: \"dnd_operations\",\n\t\t\tdescription: \"Toggle drag-and-drop file handling for the app surface.\",\n\t\t\toperations: [{\n\t\t\t\tid: \"077b1ab8-cb32-4b4e-a1fa-76178188c6a1\",\n\t\t\t\tname: \"SET_DRAG_AND_DROP_ENABLED\",\n\t\t\t\tdescription: \"Enable or disable drag-and-drop file handling on the app surface.\",\n\t\t\t\tschema: \"input SetDragAndDropEnabledInput {\\n enabled: Boolean!\\n}\",\n\t\t\t\ttemplate: \"\",\n\t\t\t\treducer: \"\",\n\t\t\t\terrors: [],\n\t\t\t\texamples: [],\n\t\t\t\tscope: \"global\"\n\t\t\t}]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/app-module/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/app-module/v1/utils.ts\n/** Utils for the AppModule document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/app-module/v1/module.ts\n/** Document model module for the AppModule document type */\nconst AppModule = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { utils as n, documentModel as r, AppModule as t };\n\n//# sourceMappingURL=module-CRq_lUkG.js.map"],"x_google_ignoreList":[0,1],"mappings":"6NAKA,IAAM,EAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,EAAoB,EAAE,CAAC,CAC/E,IAAM,EAAmBC,EAAS,CAAC,YAAa,QAAQ,CAAC,CACzD,SAAS,GAA6B,CACrC,OAAOC,EAAW,CAAE,aAAcC,GAAY,CAAE,CAAC,CAElD,SAAS,GAAuB,CAC/B,OAAOD,EAAW,CACjB,WAAYE,EAAY,iBAAiB,CAAC,UAAU,CACpD,qBAAsBC,EAAUF,GAAY,CAAC,CAAC,SAAS,CACvD,qBAAsBG,GAAa,CACnC,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,EAAgC,EAAY,EAAE,CAAC,CAW7C,EAAY,CACjB,QAAS,EACT,UACA,UACA,OAVA,GAAG,EACH,GAAG,EASH,CACA,cAAe,EAAY,GAAkB,CAAE,EAAc,CAC7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-DP3bVbak-VbUPIBZP.js","names":["z$1.any","z$1.enum","z$1.object","z$1.string","z$1.literal","z$1.array","z$1.lazy","z.literal","z.object","utils"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/utils-D0ejTHeY.js","../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@fa_4e356600b8337b4dd0d28e4139ca6eec/node_modules/@powerhousedao/vetra/dist/module-DP3bVbak.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/document-editor/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nconst StatusTypeSchema = z$1.enum([\"CONFIRMED\", \"DRAFT\"]);\nfunction AddDocumentTypeInputSchema() {\n\treturn z$1.object({\n\t\tdocumentType: z$1.string(),\n\t\tid: z$1.string()\n\t});\n}\nfunction DocumentEditorStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"DocumentEditorState\").optional(),\n\t\tdocumentTypes: z$1.array(z$1.lazy(() => DocumentTypeItemSchema())),\n\t\tname: z$1.string(),\n\t\tstatus: StatusTypeSchema\n\t});\n}\nfunction DocumentTypeItemSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"DocumentTypeItem\").optional(),\n\t\tdocumentType: z$1.string(),\n\t\tid: z$1.string()\n\t});\n}\nfunction RemoveDocumentTypeInputSchema() {\n\treturn z$1.object({ id: z$1.string() });\n}\nfunction SetEditorNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetEditorStatusInputSchema() {\n\treturn z$1.object({ status: StatusTypeSchema });\n}\n//#endregion\n//#region document-models/document-editor/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({\n\taddDocumentType: () => addDocumentType,\n\tremoveDocumentType: () => removeDocumentType,\n\tsetEditorName: () => setEditorName,\n\tsetEditorStatus: () => setEditorStatus\n});\nconst setEditorName = (input) => createAction(\"SET_EDITOR_NAME\", { ...input }, void 0, SetEditorNameInputSchema, \"global\");\nconst addDocumentType = (input) => createAction(\"ADD_DOCUMENT_TYPE\", { ...input }, void 0, AddDocumentTypeInputSchema, \"global\");\nconst removeDocumentType = (input) => createAction(\"REMOVE_DOCUMENT_TYPE\", { ...input }, void 0, RemoveDocumentTypeInputSchema, \"global\");\nconst setEditorStatus = (input) => createAction(\"SET_EDITOR_STATUS\", { ...input }, void 0, SetEditorStatusInputSchema, \"global\");\n//#endregion\n//#region document-models/document-editor/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the DocumentEditor document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/document-editor/v1/src/reducers/base-operations.ts\nconst documentEditorBaseOperationsOperations = {\n\tsetEditorNameOperation(state, action, _dispatch) {\n\t\tconst trimmedName = action.input.name.trim();\n\t\tif (trimmedName === \"\") throw new Error(\"Editor name cannot be empty\");\n\t\tstate.name = trimmedName;\n\t},\n\taddDocumentTypeOperation(state, action, _dispatch) {\n\t\tif (state.documentTypes.find((dt) => dt.id === action.input.id)) throw new Error(`Document type with id \"${action.input.id}\" already exists`);\n\t\tstate.documentTypes.push({\n\t\t\tid: action.input.id,\n\t\t\tdocumentType: action.input.documentType\n\t\t});\n\t},\n\tremoveDocumentTypeOperation(state, action, _dispatch) {\n\t\tstate.documentTypes = state.documentTypes.filter((documentType) => documentType.id !== action.input.id);\n\t},\n\tsetEditorStatusOperation(state, action, _dispatch) {\n\t\tstate.status = action.input.status;\n\t}\n};\n//#endregion\n//#region document-models/document-editor/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_EDITOR_NAME\":\n\t\t\tSetEditorNameInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.setEditorNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_DOCUMENT_TYPE\":\n\t\t\tAddDocumentTypeInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_DOCUMENT_TYPE\":\n\t\t\tRemoveDocumentTypeInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_EDITOR_STATUS\":\n\t\t\tSetEditorStatusInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.setEditorStatusOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/document-editor/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst documentEditorDocumentType = \"powerhouse/document-editor\";\n//#endregion\n//#region document-models/document-editor/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a DocumentEditor document */\nconst DocumentEditorDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(documentEditorDocumentType) });\n/** Schema for validating the state object of a DocumentEditor document */\nconst DocumentEditorPHStateSchema = BaseDocumentStateSchema.extend({ global: DocumentEditorStateSchema() });\nconst DocumentEditorDocumentSchema = z.object({\n\theader: DocumentEditorDocumentHeaderSchema,\n\tstate: DocumentEditorPHStateSchema,\n\tinitialState: DocumentEditorPHStateSchema\n});\n/** Simple helper function to check if a state object is a DocumentEditor document state object */\nfunction isDocumentEditorState(state) {\n\treturn DocumentEditorPHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a DocumentEditor document state object */\nfunction assertIsDocumentEditorState(state) {\n\tDocumentEditorPHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a DocumentEditor document */\nfunction isDocumentEditorDocument(document) {\n\treturn DocumentEditorDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a DocumentEditor document */\nfunction assertIsDocumentEditorDocument(document) {\n\tDocumentEditorDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/document-editor/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: \"\",\n\tdocumentTypes: [],\n\tstatus: \"DRAFT\"\n};\nconst initialLocalState = {};\nconst utils = {\n\tfileExtension: \".editor\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils.createState, state, documentEditorDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isDocumentEditorState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsDocumentEditorState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isDocumentEditorDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsDocumentEditorDocument(document);\n\t}\n};\n//#endregion\nexport { SetEditorNameInputSchema as C, isDefinedNonNullAny as D, definedNonNullAnySchema as E, RemoveDocumentTypeInputSchema as S, StatusTypeSchema as T, setEditorName as _, DocumentEditorDocumentSchema as a, DocumentEditorStateSchema as b, assertIsDocumentEditorState as c, documentEditorDocumentType as d, reducer as f, removeDocumentType as g, creators_exports as h, DocumentEditorDocumentHeaderSchema as i, isDocumentEditorDocument as l, addDocumentType as m, initialLocalState as n, DocumentEditorPHStateSchema as o, actions as p, utils as r, assertIsDocumentEditorDocument as s, initialGlobalState as t, isDocumentEditorState as u, setEditorStatus as v, SetEditorStatusInputSchema as w, DocumentTypeItemSchema as x, AddDocumentTypeInputSchema as y };\n\n//# sourceMappingURL=utils-D0ejTHeY.js.map","import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { f as reducer, p as actions, r as utils$1 } from \"./utils-D0ejTHeY.js\";\nimport { createState, defaultBaseState } from \"document-model\";\n//#region document-models/document-editor/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/document-editor\",\n\tname: \"Document Editor\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".editor\",\n\tdescription: \"Declares a document editor (a React UI for editing instances of one or more document models) shipped by a Vetra Reactor Package. Create one Document Editor document per editor, list the document types it can edit, then mark it CONFIRMED to trigger codegen of the editor scaffold under `editors/`. The boilerplate it produces is what you then customize.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nConfiguration for a document editor contributed by the package. The editor is\\nregistered against every document type listed in `documentTypes`; Connect picks\\nthe first matching editor when opening a document.\\n\\\"\\\"\\\"\\ntype DocumentEditorState {\\n \\\"\\\"\\\"Display name of the editor. Also determines the generated folder name under `editors/`.\\\"\\\"\\\"\\n name: String!\\n \\\"\\\"\\\"Document types this editor can edit. Each entry has a stable id so it can be removed individually.\\\"\\\"\\\"\\n documentTypes: [DocumentTypeItem!]!\\n \\\"\\\"\\\"Lifecycle status. While DRAFT the editor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\\\"\\\"\\\"\\n status: StatusType!\\n}\\n\\n\\\"\\\"\\\"A document type id (e.g. 'powerhouse/document-drive') attached to the editor with a stable entry id.\\\"\\\"\\\"\\ntype DocumentTypeItem {\\n \\\"\\\"\\\"Stable identifier for the entry; used to remove it.\\\"\\\"\\\"\\n id: OID!\\n \\\"\\\"\\\"Document type id this editor handles (e.g. 'my-org/invoice').\\\"\\\"\\\"\\n documentType: String!\\n}\\n\\n\\\"\\\"\\\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\\\"\\\"\\\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": \\\"\\\",\\n \\\"documentTypes\\\": [],\\n \\\"status\\\": \\\"DRAFT\\\"\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"73f6d103-47cb-4074-a736-a3eaf5d079bf\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Set the editor's identity, lifecycle status, and the document types it handles.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"50a16f00-d25a-4c97-9632-4ce3b951a402\",\n\t\t\t\t\tname: \"SET_EDITOR_NAME\",\n\t\t\t\t\tdescription: \"Set the display name of the editor. Also determines the generated folder name under `editors/`.\",\n\t\t\t\t\tschema: \"input SetEditorNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"acee4272-f29e-4a19-aaf9-bae2cb6652ab\",\n\t\t\t\t\tname: \"ADD_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Register a document type this editor can edit. Caller supplies a stable id so the entry can be removed later.\",\n\t\t\t\t\tschema: \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"6c549776-0fc3-4632-a6c7-8721fa6ee41c\",\n\t\t\t\t\tname: \"REMOVE_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Remove a registered document type entry by its id.\",\n\t\t\t\t\tschema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"e9aa7f08-553b-452f-a494-126ace6b15f7\",\n\t\t\t\t\tname: \"SET_EDITOR_STATUS\",\n\t\t\t\t\tdescription: \"Move the editor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED — leaving it DRAFT means no editor files are produced.\",\n\t\t\t\t\tschema: \"input SetEditorStatusInput {\\n status: StatusType!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/document-editor/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/document-editor/v1/utils.ts\n/** Utils for the DocumentEditor document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/document-editor/v1/module.ts\n/** Document model module for the DocumentEditor document type */\nconst DocumentEditor = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { utils as n, documentModel as r, DocumentEditor as t };\n\n//# sourceMappingURL=module-DP3bVbak.js.map"],"x_google_ignoreList":[0,1],"mappings":"wNAKA,IAAM,EAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,EAAoB,EAAE,CAAC,CAC/E,IAAM,EAAmBC,EAAS,CAAC,YAAa,QAAQ,CAAC,CACzD,SAAS,GAA6B,CACrC,OAAOC,EAAW,CACjB,aAAcC,GAAY,CAC1B,GAAIA,GAAY,CAChB,CAAC,CAEH,SAAS,GAA4B,CACpC,OAAOD,EAAW,CACjB,WAAYE,EAAY,sBAAsB,CAAC,UAAU,CACzD,cAAeC,EAAUC,MAAe,GAAwB,CAAC,CAAC,CAClE,KAAMH,GAAY,CAClB,OAAQ,EACR,CAAC,CAEH,SAAS,GAAyB,CACjC,OAAOD,EAAW,CACjB,WAAYE,EAAY,mBAAmB,CAAC,UAAU,CACtD,aAAcD,GAAY,CAC1B,GAAIA,GAAY,CAChB,CAAC,CAEH,SAAS,GAAgC,CACxC,OAAOD,EAAW,CAAE,GAAIC,GAAY,CAAE,CAAC,CAExC,SAAS,GAA2B,CACnC,OAAOD,EAAW,CAAE,KAAMC,GAAY,CAAE,CAAC,CAE1C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C,CAW7C,EAAiB,CACtB,QAAS,EACT,UACA,UACA,OAVA,GAAG,EACH,GAAG,EASH,CACA,cAAe,EAAY,GAAkB,CAAE,EAAc,CAC7D"}
1
+ {"version":3,"file":"module-DP3bVbak-VbUPIBZP.js","names":["z$1.any","z$1.enum","z$1.object","z$1.string","z$1.literal","z$1.array","z$1.lazy","z.literal","z.object","utils"],"sources":["../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/utils-D0ejTHeY.js","../../../../../node_modules/.pnpm/@powerhousedao+vetra@6.2.0-dev.23_@babel+runtime@7.29.2_@electric-sql+pglite@0.3.15_@pa_0c94680c61477a0a5c7bf05c9b5bc3fb/node_modules/@powerhousedao/vetra/dist/module-DP3bVbak.js"],"sourcesContent":["import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema, baseActions, baseCreateDocument, baseLoadFromInput, baseSaveToFileHandle, createAction, createReducer, defaultBaseState, isDocumentAction } from \"document-model\";\nimport * as z$1 from \"zod\";\nimport { z } from \"zod\";\n//#region document-models/document-editor/v1/gen/schema/zod.ts\nconst isDefinedNonNullAny = (v) => v !== void 0 && v !== null;\nconst definedNonNullAnySchema = z$1.any().refine((v) => isDefinedNonNullAny(v));\nconst StatusTypeSchema = z$1.enum([\"CONFIRMED\", \"DRAFT\"]);\nfunction AddDocumentTypeInputSchema() {\n\treturn z$1.object({\n\t\tdocumentType: z$1.string(),\n\t\tid: z$1.string()\n\t});\n}\nfunction DocumentEditorStateSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"DocumentEditorState\").optional(),\n\t\tdocumentTypes: z$1.array(z$1.lazy(() => DocumentTypeItemSchema())),\n\t\tname: z$1.string(),\n\t\tstatus: StatusTypeSchema\n\t});\n}\nfunction DocumentTypeItemSchema() {\n\treturn z$1.object({\n\t\t__typename: z$1.literal(\"DocumentTypeItem\").optional(),\n\t\tdocumentType: z$1.string(),\n\t\tid: z$1.string()\n\t});\n}\nfunction RemoveDocumentTypeInputSchema() {\n\treturn z$1.object({ id: z$1.string() });\n}\nfunction SetEditorNameInputSchema() {\n\treturn z$1.object({ name: z$1.string() });\n}\nfunction SetEditorStatusInputSchema() {\n\treturn z$1.object({ status: StatusTypeSchema });\n}\n//#endregion\n//#region document-models/document-editor/v1/gen/base-operations/creators.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nvar creators_exports = /* @__PURE__ */ __exportAll({\n\taddDocumentType: () => addDocumentType,\n\tremoveDocumentType: () => removeDocumentType,\n\tsetEditorName: () => setEditorName,\n\tsetEditorStatus: () => setEditorStatus\n});\nconst setEditorName = (input) => createAction(\"SET_EDITOR_NAME\", { ...input }, void 0, SetEditorNameInputSchema, \"global\");\nconst addDocumentType = (input) => createAction(\"ADD_DOCUMENT_TYPE\", { ...input }, void 0, AddDocumentTypeInputSchema, \"global\");\nconst removeDocumentType = (input) => createAction(\"REMOVE_DOCUMENT_TYPE\", { ...input }, void 0, RemoveDocumentTypeInputSchema, \"global\");\nconst setEditorStatus = (input) => createAction(\"SET_EDITOR_STATUS\", { ...input }, void 0, SetEditorStatusInputSchema, \"global\");\n//#endregion\n//#region document-models/document-editor/v1/actions.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Actions for the DocumentEditor document model */\nconst actions = {\n\t...baseActions,\n\t...creators_exports\n};\n//#endregion\n//#region document-models/document-editor/v1/src/reducers/base-operations.ts\nconst documentEditorBaseOperationsOperations = {\n\tsetEditorNameOperation(state, action, _dispatch) {\n\t\tconst trimmedName = action.input.name.trim();\n\t\tif (trimmedName === \"\") throw new Error(\"Editor name cannot be empty\");\n\t\tstate.name = trimmedName;\n\t},\n\taddDocumentTypeOperation(state, action, _dispatch) {\n\t\tif (state.documentTypes.find((dt) => dt.id === action.input.id)) throw new Error(`Document type with id \"${action.input.id}\" already exists`);\n\t\tstate.documentTypes.push({\n\t\t\tid: action.input.id,\n\t\t\tdocumentType: action.input.documentType\n\t\t});\n\t},\n\tremoveDocumentTypeOperation(state, action, _dispatch) {\n\t\tstate.documentTypes = state.documentTypes.filter((documentType) => documentType.id !== action.input.id);\n\t},\n\tsetEditorStatusOperation(state, action, _dispatch) {\n\t\tstate.status = action.input.status;\n\t}\n};\n//#endregion\n//#region document-models/document-editor/v1/gen/reducer.ts\nconst stateReducer = (state, action, dispatch) => {\n\tif (isDocumentAction(action)) return state;\n\tswitch (action.type) {\n\t\tcase \"SET_EDITOR_NAME\":\n\t\t\tSetEditorNameInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.setEditorNameOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"ADD_DOCUMENT_TYPE\":\n\t\t\tAddDocumentTypeInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.addDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"REMOVE_DOCUMENT_TYPE\":\n\t\t\tRemoveDocumentTypeInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.removeDocumentTypeOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tcase \"SET_EDITOR_STATUS\":\n\t\t\tSetEditorStatusInputSchema().parse(action.input);\n\t\t\tdocumentEditorBaseOperationsOperations.setEditorStatusOperation(state[action.scope], action, dispatch);\n\t\t\tbreak;\n\t\tdefault: return state;\n\t}\n};\nconst reducer = createReducer(stateReducer);\n//#endregion\n//#region document-models/document-editor/v1/gen/document-type.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\nconst documentEditorDocumentType = \"powerhouse/document-editor\";\n//#endregion\n//#region document-models/document-editor/v1/gen/document-schema.ts\n/**\n* WARNING: DO NOT EDIT\n* This file is auto-generated and updated by codegen\n*/\n/** Schema for validating the header object of a DocumentEditor document */\nconst DocumentEditorDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({ documentType: z.literal(documentEditorDocumentType) });\n/** Schema for validating the state object of a DocumentEditor document */\nconst DocumentEditorPHStateSchema = BaseDocumentStateSchema.extend({ global: DocumentEditorStateSchema() });\nconst DocumentEditorDocumentSchema = z.object({\n\theader: DocumentEditorDocumentHeaderSchema,\n\tstate: DocumentEditorPHStateSchema,\n\tinitialState: DocumentEditorPHStateSchema\n});\n/** Simple helper function to check if a state object is a DocumentEditor document state object */\nfunction isDocumentEditorState(state) {\n\treturn DocumentEditorPHStateSchema.safeParse(state).success;\n}\n/** Simple helper function to assert that a document state object is a DocumentEditor document state object */\nfunction assertIsDocumentEditorState(state) {\n\tDocumentEditorPHStateSchema.parse(state);\n}\n/** Simple helper function to check if a document is a DocumentEditor document */\nfunction isDocumentEditorDocument(document) {\n\treturn DocumentEditorDocumentSchema.safeParse(document).success;\n}\n/** Simple helper function to assert that a document is a DocumentEditor document */\nfunction assertIsDocumentEditorDocument(document) {\n\tDocumentEditorDocumentSchema.parse(document);\n}\n//#endregion\n//#region document-models/document-editor/v1/gen/utils.ts\nconst initialGlobalState = {\n\tname: \"\",\n\tdocumentTypes: [],\n\tstatus: \"DRAFT\"\n};\nconst initialLocalState = {};\nconst utils = {\n\tfileExtension: \".editor\",\n\tcreateState(state) {\n\t\treturn {\n\t\t\t...defaultBaseState(),\n\t\t\tglobal: {\n\t\t\t\t...initialGlobalState,\n\t\t\t\t...state?.global\n\t\t\t},\n\t\t\tlocal: {\n\t\t\t\t...initialLocalState,\n\t\t\t\t...state?.local\n\t\t\t}\n\t\t};\n\t},\n\tcreateDocument(state) {\n\t\treturn baseCreateDocument(utils.createState, state, documentEditorDocumentType);\n\t},\n\tsaveToFileHandle(document, input) {\n\t\treturn baseSaveToFileHandle(document, input);\n\t},\n\tloadFromInput(input) {\n\t\treturn baseLoadFromInput(input, reducer);\n\t},\n\tisStateOfType(state) {\n\t\treturn isDocumentEditorState(state);\n\t},\n\tassertIsStateOfType(state) {\n\t\treturn assertIsDocumentEditorState(state);\n\t},\n\tisDocumentOfType(document) {\n\t\treturn isDocumentEditorDocument(document);\n\t},\n\tassertIsDocumentOfType(document) {\n\t\treturn assertIsDocumentEditorDocument(document);\n\t}\n};\n//#endregion\nexport { SetEditorNameInputSchema as C, isDefinedNonNullAny as D, definedNonNullAnySchema as E, RemoveDocumentTypeInputSchema as S, StatusTypeSchema as T, setEditorName as _, DocumentEditorDocumentSchema as a, DocumentEditorStateSchema as b, assertIsDocumentEditorState as c, documentEditorDocumentType as d, reducer as f, removeDocumentType as g, creators_exports as h, DocumentEditorDocumentHeaderSchema as i, isDocumentEditorDocument as l, addDocumentType as m, initialLocalState as n, DocumentEditorPHStateSchema as o, actions as p, utils as r, assertIsDocumentEditorDocument as s, initialGlobalState as t, isDocumentEditorState as u, setEditorStatus as v, SetEditorStatusInputSchema as w, DocumentTypeItemSchema as x, AddDocumentTypeInputSchema as y };\n\n//# sourceMappingURL=utils-D0ejTHeY.js.map","import { t as __exportAll } from \"./chunk-pbuEa-1d.js\";\nimport { f as reducer, p as actions, r as utils$1 } from \"./utils-D0ejTHeY.js\";\nimport { createState, defaultBaseState } from \"document-model\";\n//#region document-models/document-editor/v1/gen/document-model.ts\nconst documentModel = {\n\tid: \"powerhouse/document-editor\",\n\tname: \"Document Editor\",\n\tauthor: {\n\t\tname: \"Powerhouse\",\n\t\twebsite: \"https://powerhouse.inc\"\n\t},\n\textension: \".editor\",\n\tdescription: \"Declares a document editor (a React UI for editing instances of one or more document models) shipped by a Vetra Reactor Package. Create one Document Editor document per editor, list the document types it can edit, then mark it CONFIRMED to trigger codegen of the editor scaffold under `editors/`. The boilerplate it produces is what you then customize.\",\n\tspecifications: [{\n\t\tstate: {\n\t\t\tlocal: {\n\t\t\t\tschema: \"\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"\"\n\t\t\t},\n\t\t\tglobal: {\n\t\t\t\tschema: \"\\\"\\\"\\\"\\nConfiguration for a document editor contributed by the package. The editor is\\nregistered against every document type listed in `documentTypes`; Connect picks\\nthe first matching editor when opening a document.\\n\\\"\\\"\\\"\\ntype DocumentEditorState {\\n \\\"\\\"\\\"Display name of the editor. Also determines the generated folder name under `editors/`.\\\"\\\"\\\"\\n name: String!\\n \\\"\\\"\\\"Document types this editor can edit. Each entry has a stable id so it can be removed individually.\\\"\\\"\\\"\\n documentTypes: [DocumentTypeItem!]!\\n \\\"\\\"\\\"Lifecycle status. While DRAFT the editor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\\\"\\\"\\\"\\n status: StatusType!\\n}\\n\\n\\\"\\\"\\\"A document type id (e.g. 'powerhouse/document-drive') attached to the editor with a stable entry id.\\\"\\\"\\\"\\ntype DocumentTypeItem {\\n \\\"\\\"\\\"Stable identifier for the entry; used to remove it.\\\"\\\"\\\"\\n id: OID!\\n \\\"\\\"\\\"Document type id this editor handles (e.g. 'my-org/invoice').\\\"\\\"\\\"\\n documentType: String!\\n}\\n\\n\\\"\\\"\\\"\\nLifecycle status of a module definition.\\n- DRAFT: still being edited; codegen does not run.\\n- CONFIRMED: locked in; codegen produces the corresponding scaffold.\\n\\\"\\\"\\\"\\nenum StatusType {\\n DRAFT\\n CONFIRMED\\n}\",\n\t\t\t\texamples: [],\n\t\t\t\tinitialValue: \"{\\n \\\"name\\\": \\\"\\\",\\n \\\"documentTypes\\\": [],\\n \\\"status\\\": \\\"DRAFT\\\"\\n}\"\n\t\t\t}\n\t\t},\n\t\tmodules: [{\n\t\t\tid: \"73f6d103-47cb-4074-a736-a3eaf5d079bf\",\n\t\t\tname: \"base_operations\",\n\t\t\tdescription: \"Set the editor's identity, lifecycle status, and the document types it handles.\",\n\t\t\toperations: [\n\t\t\t\t{\n\t\t\t\t\tid: \"50a16f00-d25a-4c97-9632-4ce3b951a402\",\n\t\t\t\t\tname: \"SET_EDITOR_NAME\",\n\t\t\t\t\tdescription: \"Set the display name of the editor. Also determines the generated folder name under `editors/`.\",\n\t\t\t\t\tschema: \"input SetEditorNameInput {\\n name: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"acee4272-f29e-4a19-aaf9-bae2cb6652ab\",\n\t\t\t\t\tname: \"ADD_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Register a document type this editor can edit. Caller supplies a stable id so the entry can be removed later.\",\n\t\t\t\t\tschema: \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"6c549776-0fc3-4632-a6c7-8721fa6ee41c\",\n\t\t\t\t\tname: \"REMOVE_DOCUMENT_TYPE\",\n\t\t\t\t\tdescription: \"Remove a registered document type entry by its id.\",\n\t\t\t\t\tschema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tid: \"e9aa7f08-553b-452f-a494-126ace6b15f7\",\n\t\t\t\t\tname: \"SET_EDITOR_STATUS\",\n\t\t\t\t\tdescription: \"Move the editor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED — leaving it DRAFT means no editor files are produced.\",\n\t\t\t\t\tschema: \"input SetEditorStatusInput {\\n status: StatusType!\\n}\",\n\t\t\t\t\ttemplate: \"\",\n\t\t\t\t\treducer: \"\",\n\t\t\t\t\terrors: [],\n\t\t\t\t\texamples: [],\n\t\t\t\t\tscope: \"global\"\n\t\t\t\t}\n\t\t\t]\n\t\t}],\n\t\tversion: 1,\n\t\tchangeLog: []\n\t}]\n};\n//#endregion\n//#region document-models/document-editor/v1/src/utils.ts\nvar utils_exports = /* @__PURE__ */ __exportAll({});\n//#endregion\n//#region document-models/document-editor/v1/utils.ts\n/** Utils for the DocumentEditor document model */\nconst utils = {\n\t...utils$1,\n\t...utils_exports\n};\n//#endregion\n//#region document-models/document-editor/v1/module.ts\n/** Document model module for the DocumentEditor document type */\nconst DocumentEditor = {\n\tversion: 1,\n\treducer,\n\tactions,\n\tutils,\n\tdocumentModel: createState(defaultBaseState(), documentModel)\n};\n//#endregion\nexport { utils as n, documentModel as r, DocumentEditor as t };\n\n//# sourceMappingURL=module-DP3bVbak.js.map"],"x_google_ignoreList":[0,1],"mappings":"wNAKA,IAAM,EAAuB,GAAM,GAAsB,KACzBA,GAAS,CAAC,OAAQ,GAAM,EAAoB,EAAE,CAAC,CAC/E,IAAM,EAAmBC,EAAS,CAAC,YAAa,QAAQ,CAAC,CACzD,SAAS,GAA6B,CACrC,OAAOC,EAAW,CACjB,aAAcC,GAAY,CAC1B,GAAIA,GAAY,CAChB,CAAC,CAEH,SAAS,GAA4B,CACpC,OAAOD,EAAW,CACjB,WAAYE,EAAY,sBAAsB,CAAC,UAAU,CACzD,cAAeC,EAAUC,MAAe,GAAwB,CAAC,CAAC,CAClE,KAAMH,GAAY,CAClB,OAAQ,EACR,CAAC,CAEH,SAAS,GAAyB,CACjC,OAAOD,EAAW,CACjB,WAAYE,EAAY,mBAAmB,CAAC,UAAU,CACtD,aAAcD,GAAY,CAC1B,GAAIA,GAAY,CAChB,CAAC,CAEH,SAAS,GAAgC,CACxC,OAAOD,EAAW,CAAE,GAAIC,GAAY,CAAE,CAAC,CAExC,SAAS,GAA2B,CACnC,OAAOD,EAAW,CAAE,KAAMC,GAAY,CAAE,CAAC,CAE1C,SAAS,GAA6B,CACrC,OAAOD,E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