@powerhousedao/vetra 6.0.0-dev.256 → 6.0.0-dev.258

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 (117) hide show
  1. package/dist/app-module-D_cAVvt0.js +48 -0
  2. package/dist/app-module-D_cAVvt0.js.map +1 -0
  3. package/dist/codegen/index.d.ts +117 -0
  4. package/dist/codegen/index.d.ts.map +1 -0
  5. package/dist/codegen/index.js +793 -0
  6. package/dist/codegen/index.js.map +1 -0
  7. package/dist/{connect-CTIucT0o.js → connect-BRlVKs1s.js} +1 -1
  8. package/dist/{connect-CTIucT0o.js.map → connect-BRlVKs1s.js.map} +1 -1
  9. package/dist/document-editor-1NFr9t3a.js +48 -0
  10. package/dist/document-editor-1NFr9t3a.js.map +1 -0
  11. package/dist/document-models/app-module/index.d.ts +1 -1
  12. package/dist/document-models/app-module/index.js +4 -2
  13. package/dist/document-models/document-editor/index.d.ts +1 -1
  14. package/dist/document-models/document-editor/index.js +4 -2
  15. package/dist/document-models/index.d.ts +5 -5
  16. package/dist/document-models/index.js +5 -5
  17. package/dist/document-models/processor-module/index.d.ts +1 -1
  18. package/dist/document-models/processor-module/index.js +4 -2
  19. package/dist/document-models/subgraph-module/index.d.ts +1 -1
  20. package/dist/document-models/subgraph-module/index.js +4 -2
  21. package/dist/document-models/vetra-package/index.d.ts +1 -1
  22. package/dist/document-models/vetra-package/index.js +2 -2
  23. package/dist/{editor-CbtrPBTP.js → editor-BwbJ65NZ.js} +4 -4
  24. package/dist/{editor-CbtrPBTP.js.map → editor-BwbJ65NZ.js.map} +1 -1
  25. package/dist/{editor-BSQfwcdz.js → editor-CJAn9WTA.js} +4 -4
  26. package/dist/{editor-BSQfwcdz.js.map → editor-CJAn9WTA.js.map} +1 -1
  27. package/dist/{editor-D70FYIwV.js → editor-CLERZjRS.js} +1 -1
  28. package/dist/{editor-D70FYIwV.js.map → editor-CLERZjRS.js.map} +1 -1
  29. package/dist/{editor-Dtg8STyT.js → editor-DWufJcmG.js} +4 -4
  30. package/dist/{editor-Dtg8STyT.js.map → editor-DWufJcmG.js.map} +1 -1
  31. package/dist/{editor-SfVorwsP.js → editor-DabfMxkF.js} +4 -4
  32. package/dist/{editor-SfVorwsP.js.map → editor-DabfMxkF.js.map} +1 -1
  33. package/dist/{editor-Bku8e2dr.js → editor-WWMGVelM.js} +4 -4
  34. package/dist/{editor-Bku8e2dr.js.map → editor-WWMGVelM.js.map} +1 -1
  35. package/dist/editors/hooks/index.js +1 -1
  36. package/dist/editors/index.js +1 -1
  37. package/dist/{factory-D8ZDOMP3.js → factory-Bd_0OaF8.js} +2 -2
  38. package/dist/{factory-D8ZDOMP3.js.map → factory-Bd_0OaF8.js.map} +1 -1
  39. package/dist/{factory-BBzu0pRO.js → factory-CEzh-u5J.js} +5 -5
  40. package/dist/{factory-BBzu0pRO.js.map → factory-CEzh-u5J.js.map} +1 -1
  41. package/dist/{hooks-Xexr33XS.js → hooks-Btogj1f0.js} +1 -1
  42. package/dist/{hooks-Xexr33XS.js.map → hooks-Btogj1f0.js.map} +1 -1
  43. package/dist/{module-BYEvqA47.d.ts → index-BPoF8P3O.d.ts} +57 -57
  44. package/dist/index-BPoF8P3O.d.ts.map +1 -0
  45. package/dist/{module-CpP8D2Hl.d.ts → index-BoGed4Fa.d.ts} +88 -88
  46. package/dist/index-BoGed4Fa.d.ts.map +1 -0
  47. package/dist/{index-BfK0fsx4.d.ts → index-C4s0aLv3.d.ts} +49 -49
  48. package/dist/index-C4s0aLv3.d.ts.map +1 -0
  49. package/dist/{index-BdmD5tsW.d.ts → index-ClaOdn_F.d.ts} +46 -46
  50. package/dist/index-ClaOdn_F.d.ts.map +1 -0
  51. package/dist/index.d.ts +5 -5
  52. package/dist/index.js +6 -6
  53. package/dist/{logger-BLNtquAC.js → logger-CYkStoEb.js} +1 -1
  54. package/dist/{logger-BLNtquAC.js.map → logger-CYkStoEb.js.map} +1 -1
  55. package/dist/module-DPyV2vUY.js +138 -0
  56. package/dist/module-DPyV2vUY.js.map +1 -0
  57. package/dist/{module-CCqD26Hf.d.ts → module-Drla4Vmn.d.ts} +1 -1
  58. package/dist/{module-CCqD26Hf.d.ts.map → module-Drla4Vmn.d.ts.map} +1 -1
  59. package/dist/{module-CZLiUtDI.js → module-dDKBr6QY.js} +1 -1
  60. package/dist/{module-CZLiUtDI.js.map → module-dDKBr6QY.js.map} +1 -1
  61. package/dist/{module-CXIFrq-R.js → module-jWN6gsmi.js} +7 -7
  62. package/dist/{module-CXIFrq-R.js.map → module-jWN6gsmi.js.map} +1 -1
  63. package/dist/module-pK0hpO6c.js +131 -0
  64. package/dist/module-pK0hpO6c.js.map +1 -0
  65. package/dist/module-ryHOwQp-.js +105 -0
  66. package/dist/module-ryHOwQp-.js.map +1 -0
  67. package/dist/module-x2Liyk0-.js +80 -0
  68. package/dist/module-x2Liyk0-.js.map +1 -0
  69. package/dist/ph-factories-B0_E6LY6.js +53 -0
  70. package/dist/ph-factories-B0_E6LY6.js.map +1 -0
  71. package/dist/ph-factories-B6PSPkPQ.js +52 -0
  72. package/dist/ph-factories-B6PSPkPQ.js.map +1 -0
  73. package/dist/ph-factories-Bn_HTUfT.js +50 -0
  74. package/dist/ph-factories-Bn_HTUfT.js.map +1 -0
  75. package/dist/ph-factories-CJXfT_Z1.js +51 -0
  76. package/dist/ph-factories-CJXfT_Z1.js.map +1 -0
  77. package/dist/processor-module-B7IAItXQ.js +48 -0
  78. package/dist/processor-module-B7IAItXQ.js.map +1 -0
  79. package/dist/processors/codegen/index.d.ts +3 -21305
  80. package/dist/processors/codegen/index.d.ts.map +1 -1
  81. package/dist/processors/codegen/index.js +1 -1
  82. package/dist/processors/index.js +1 -1
  83. package/dist/processors/vetra-read-model/index.js +1 -1
  84. package/dist/subgraph-module-CfzSZTNC.js +48 -0
  85. package/dist/subgraph-module-CfzSZTNC.js.map +1 -0
  86. package/dist/switchboard-CIUZkhea.js +8 -0
  87. package/dist/{switchboard-D69j45OO.js.map → switchboard-CIUZkhea.js.map} +1 -1
  88. package/dist/{useVetraDocument-DoAwvHVi.js → useVetraDocument-BQKyels4.js} +1 -1
  89. package/dist/{useVetraDocument-DoAwvHVi.js.map → useVetraDocument-BQKyels4.js.map} +1 -1
  90. package/dist/{module-CTPfENDU.js → utils-BRx88WW3.js} +5 -130
  91. package/dist/utils-BRx88WW3.js.map +1 -0
  92. package/dist/{module-BWlCj_0C.js → utils-Byjf33qt.js} +5 -137
  93. package/dist/utils-Byjf33qt.js.map +1 -0
  94. package/dist/{module-BoGgbKmO.js → utils-CWO5kDus.js} +5 -79
  95. package/dist/utils-CWO5kDus.js.map +1 -0
  96. package/dist/{module-D0SK3Nds.js → utils-CnZc-0E4.js} +5 -104
  97. package/dist/utils-CnZc-0E4.js.map +1 -0
  98. package/dist/{vetra-package-YNLxEA-U.js → vetra-package-BgTjv343.js} +2 -2
  99. package/dist/{vetra-package-YNLxEA-U.js.map → vetra-package-BgTjv343.js.map} +1 -1
  100. package/package.json +12 -8
  101. package/dist/app-module-Bbj7PI-S.js +0 -94
  102. package/dist/app-module-Bbj7PI-S.js.map +0 -1
  103. package/dist/document-editor-DS-bZMKx.js +0 -93
  104. package/dist/document-editor-DS-bZMKx.js.map +0 -1
  105. package/dist/index-BdmD5tsW.d.ts.map +0 -1
  106. package/dist/index-BfK0fsx4.d.ts.map +0 -1
  107. package/dist/module-BWlCj_0C.js.map +0 -1
  108. package/dist/module-BYEvqA47.d.ts.map +0 -1
  109. package/dist/module-BoGgbKmO.js.map +0 -1
  110. package/dist/module-CTPfENDU.js.map +0 -1
  111. package/dist/module-CpP8D2Hl.d.ts.map +0 -1
  112. package/dist/module-D0SK3Nds.js.map +0 -1
  113. package/dist/processor-module-D0lRrrpW.js +0 -95
  114. package/dist/processor-module-D0lRrrpW.js.map +0 -1
  115. package/dist/subgraph-module-B3ipwOza.js +0 -92
  116. package/dist/subgraph-module-B3ipwOza.js.map +0 -1
  117. package/dist/switchboard-D69j45OO.js +0 -8
@@ -1 +0,0 @@
1
- {"version":3,"file":"document-editor-DS-bZMKx.js","names":["createState"],"sources":["../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/gen/ph-factories.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/upgrades/versions.ts","../document-models/document-editor/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { DocumentEditor } from \"../module.js\";\nimport type { DocumentEditorAction, DocumentEditorPHState } from \"./types.js\";\n\nexport const DocumentEditorController = PHDocumentController.forDocumentModel<\n DocumentEditorPHState,\n DocumentEditorAction\n>(DocumentEditor);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating DocumentEditorDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n DocumentEditorDocument,\n DocumentEditorGlobalState,\n DocumentEditorLocalState,\n DocumentEditorPHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): DocumentEditorGlobalState {\n return {\n name: \"\",\n documentTypes: [],\n status: \"DRAFT\",\n };\n}\n\nexport function defaultLocalState(): DocumentEditorLocalState {\n return {};\n}\n\nexport function defaultPHState(): DocumentEditorPHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<DocumentEditorGlobalState>,\n): DocumentEditorGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<DocumentEditorLocalState>,\n): DocumentEditorLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as DocumentEditorLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<DocumentEditorGlobalState>,\n localState?: Partial<DocumentEditorLocalState>,\n): DocumentEditorPHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a DocumentEditorDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createDocumentEditorDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<DocumentEditorGlobalState>;\n local?: Partial<DocumentEditorLocalState>;\n }>,\n): DocumentEditorDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n DocumentEditorAction,\n DocumentEditorDocument,\n} from \"document-models/document-editor/v1\";\nimport {\n assertIsDocumentEditorDocument,\n isDocumentEditorDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a DocumentEditor document by its id */\nexport function useDocumentEditorDocumentById(\n documentId: string | null | undefined,\n):\n | [DocumentEditorDocument, DocumentDispatch<DocumentEditorAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isDocumentEditorDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected DocumentEditor document */\nexport function useSelectedDocumentEditorDocument(): [\n DocumentEditorDocument,\n DocumentDispatch<DocumentEditorAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsDocumentEditorDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all DocumentEditor documents in the selected drive */\nexport function useDocumentEditorDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isDocumentEditorDocument);\n}\n\n/** Hook to get all DocumentEditor documents in the selected folder */\nexport function useDocumentEditorDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isDocumentEditorDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const documentEditorUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/document-editor\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;ACIjB,SAAgB,qBAAgD;AAC9D,QAAO;EACL,MAAM;EACN,eAAe,EAAE;EACjB,QAAQ;EACT;;AAGH,SAAgB,oBAA8C;AAC5D,QAAO,EAAE;;AAGX,SAAgB,iBAAwC;AACtD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OAC2B;AAC3B,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OAC0B;AAC1B,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACuB;AACvB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,6BACd,OAMwB;AAWxB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;ACjEH,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BdmD5tsW.d.ts","names":[],"sources":["../document-models/document-editor/v1/actions.ts","../document-models/document-editor/v1/gen/schema/types.ts","../document-models/document-editor/v1/gen/types.ts","../document-models/document-editor/v1/gen/base-operations/actions.ts","../document-models/document-editor/v1/gen/actions.ts","../document-models/document-editor/v1/gen/base-operations/operations.ts","../document-models/document-editor/v1/gen/controller.ts","../document-models/document-editor/v1/gen/base-operations/creators.ts","../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/gen/document-schema.ts","../document-models/document-editor/v1/gen/document-type.ts","../document-models/document-editor/v1/gen/ph-factories.ts","../document-models/document-editor/v1/gen/reducer.ts","../document-models/document-editor/v1/gen/schema/zod.ts","../document-models/document-editor/v1/gen/utils.ts","../document-models/document-editor/v1/hooks.ts","../document-models/document-editor/v1/module.ts","../document-models/document-editor/v1/utils.ts"],"mappings":";;;;;;;;cASa,OAAA;kBAIuO,KAAA,EADnP,kBAAA,KAC4Q,mBAAA;oBAAoL,KAAA,EAApL,oBAAA,KAA+M,qBAAA;uBAA6L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,wBAAA;sBAAmM,KAAA,EAAnM,oBAAA,KAA8N,qBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAs+U,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA;;;;;;cCV90W,KAAA,EAAO,kBAAA,CAAmB,qBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BfK0fsx4.d.ts","names":[],"sources":["../document-models/app-module/v1/actions.ts","../document-models/app-module/v1/gen/schema/types.ts","../document-models/app-module/v1/gen/types.ts","../document-models/app-module/v1/gen/base-operations/actions.ts","../document-models/app-module/v1/gen/dnd-operations/actions.ts","../document-models/app-module/v1/gen/actions.ts","../document-models/app-module/v1/gen/base-operations/operations.ts","../document-models/app-module/v1/gen/controller.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/operations.ts","../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/gen/ph-factories.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-module/v1/gen/utils.ts","../document-models/app-module/v1/hooks.ts","../document-models/app-module/v1/module.ts","../document-models/app-module/v1/utils.ts"],"mappings":";;;;;;;;cAYa,OAAA;0BAGV,KAAA,EACF,0BAAA,KAAD,2BAAA;eACwP,KAAA,EADxP,eAAA,KAC8Q,gBAAA;iBAAwK,KAAA,EAAxK,iBAAA,KAAgM,kBAAA;oBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;uBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;qBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;QAA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A+B,GAAA,CAAE,SAAA,CAC/C,UAAA,CAAW,qBAAA;AAAA,iBAOG,gCAAA,CAAA,GAAoC,GAAA,CAAE,SAAA,CACpD,UAAA,CAAW,0BAAA;;;cCxDA,kBAAA,EAAoB,cAAA;AAAA,cAMpB,iBAAA,EAAmB,mBAAA;;;;iBCXhB,wBAAA,CACd,UAAA,+BAEG,iBAAA,EAAmB,gBAAA,CAAiB,eAAA;AlBZzC;AAAA,iBkBoBgB,4BAAA,CAAA,IACd,iBAAA,EACA,gBAAA,CAAiB,eAAA;;iBASH,oCAAA,CAAA,GAAoC,iBAAA;;iBAMpC,qCAAA,CAAA,GAAqC,iBAAA;;;;cCpCxC,SAAA;EAAA;;;4BAJM,KAAA,iCAAiC,2BAAA;iBAUxC,KAAA,EAVwC,eAAA,KAUlB,gBAAA;mBAC4G,KAAA,EAD5G,iBAAA,KACoI,kBAAA;sBAAiL,KAAA,EAAjL,oBAAA,KAA4M,qBAAA;yBAA6L,KAAA,EAA7L,uBAAA,KAA2N,wBAAA;uBAAoM,KAAA,EAApM,qBAAA,KAAgO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAA6uU,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA;;;;;;cCVl2W,KAAA,EAAO,kBAAA,CAAmB,gBAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-BWlCj_0C.js","names":["z","processorModuleBaseOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/processor-module/v1/gen/schema/zod.ts","../document-models/processor-module/v1/gen/base-operations/creators.ts","../document-models/processor-module/v1/actions.ts","../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/src/reducers/base-operations.ts","../document-models/processor-module/v1/gen/reducer.ts","../document-models/processor-module/v1/gen/document-type.ts","../document-models/processor-module/v1/gen/document-schema.ts","../document-models/processor-module/v1/gen/utils.ts","../document-models/processor-module/v1/src/utils.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/module.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n AddDocumentTypeInput,\n AddProcessorAppInput,\n DocumentTypeItem,\n ProcessorModuleState,\n RemoveDocumentTypeInput,\n RemoveProcessorAppInput,\n SetProcessorNameInput,\n SetProcessorStatusInput,\n SetProcessorTypeInput,\n StatusType,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function AddDocumentTypeInputSchema(): z.ZodObject<\n Properties<AddDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n id: z.string(),\n });\n}\n\nexport function AddProcessorAppInputSchema(): z.ZodObject<\n Properties<AddProcessorAppInput>\n> {\n return z.object({\n processorApp: z.string(),\n });\n}\n\nexport function DocumentTypeItemSchema(): z.ZodObject<\n Properties<DocumentTypeItem>\n> {\n return z.object({\n __typename: z.literal(\"DocumentTypeItem\").optional(),\n documentType: z.string(),\n id: z.string(),\n });\n}\n\nexport function ProcessorModuleStateSchema(): z.ZodObject<\n Properties<ProcessorModuleState>\n> {\n return z.object({\n __typename: z.literal(\"ProcessorModuleState\").optional(),\n documentTypes: z.array(z.lazy(() => DocumentTypeItemSchema())),\n name: z.string(),\n processorApps: z.array(z.string()),\n status: StatusTypeSchema,\n type: z.string(),\n });\n}\n\nexport function RemoveDocumentTypeInputSchema(): z.ZodObject<\n Properties<RemoveDocumentTypeInput>\n> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemoveProcessorAppInputSchema(): z.ZodObject<\n Properties<RemoveProcessorAppInput>\n> {\n return z.object({\n processorApp: z.string(),\n });\n}\n\nexport function SetProcessorNameInputSchema(): z.ZodObject<\n Properties<SetProcessorNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetProcessorStatusInputSchema(): z.ZodObject<\n Properties<SetProcessorStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n\nexport function SetProcessorTypeInputSchema(): z.ZodObject<\n Properties<SetProcessorTypeInput>\n> {\n return z.object({\n type: z.string(),\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n AddDocumentTypeInputSchema,\n AddProcessorAppInputSchema,\n RemoveDocumentTypeInputSchema,\n RemoveProcessorAppInputSchema,\n SetProcessorNameInputSchema,\n SetProcessorStatusInputSchema,\n SetProcessorTypeInputSchema,\n} from \"../schema/zod.js\";\nimport type {\n AddDocumentTypeInput,\n AddProcessorAppInput,\n RemoveDocumentTypeInput,\n RemoveProcessorAppInput,\n SetProcessorNameInput,\n SetProcessorStatusInput,\n SetProcessorTypeInput,\n} from \"../types.js\";\nimport type {\n AddDocumentTypeAction,\n AddProcessorAppAction,\n RemoveDocumentTypeAction,\n RemoveProcessorAppAction,\n SetProcessorNameAction,\n SetProcessorStatusAction,\n SetProcessorTypeAction,\n} from \"./actions.js\";\n\nexport const setProcessorName = (input: SetProcessorNameInput) =>\n createAction<SetProcessorNameAction>(\n \"SET_PROCESSOR_NAME\",\n { ...input },\n undefined,\n SetProcessorNameInputSchema,\n \"global\",\n );\n\nexport const setProcessorType = (input: SetProcessorTypeInput) =>\n createAction<SetProcessorTypeAction>(\n \"SET_PROCESSOR_TYPE\",\n { ...input },\n undefined,\n SetProcessorTypeInputSchema,\n \"global\",\n );\n\nexport const addDocumentType = (input: AddDocumentTypeInput) =>\n createAction<AddDocumentTypeAction>(\n \"ADD_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n AddDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const removeDocumentType = (input: RemoveDocumentTypeInput) =>\n createAction<RemoveDocumentTypeAction>(\n \"REMOVE_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n RemoveDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const addProcessorApp = (input: AddProcessorAppInput) =>\n createAction<AddProcessorAppAction>(\n \"ADD_PROCESSOR_APP\",\n { ...input },\n undefined,\n AddProcessorAppInputSchema,\n \"global\",\n );\n\nexport const removeProcessorApp = (input: RemoveProcessorAppInput) =>\n createAction<RemoveProcessorAppAction>(\n \"REMOVE_PROCESSOR_APP\",\n { ...input },\n undefined,\n RemoveProcessorAppInputSchema,\n \"global\",\n );\n\nexport const setProcessorStatus = (input: SetProcessorStatusInput) =>\n createAction<SetProcessorStatusAction>(\n \"SET_PROCESSOR_STATUS\",\n { ...input },\n undefined,\n SetProcessorStatusInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport { processorModuleBaseOperationsActions } from \"./gen/creators.js\";\n\n/** Actions for the ProcessorModule document model */\n\nexport const actions = {\n ...baseActions,\n ...processorModuleBaseOperationsActions,\n};\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/processor\",\n name: \"Processor Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".processor\",\n description:\n \"Declares a processor (a server-side function that reacts to document operations to build read models, send notifications, sync to external systems, etc.) shipped by a Vetra Reactor Package. Create one Processor Module document per processor: pick the processor type, list the document types it subscribes to, attach it to any drive apps that should run it, and mark it CONFIRMED to trigger codegen of the processor scaffold under `processors/`.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a processor contributed by the package. A processor receives\\noperations from documents of matching types and runs server-side logic (e.g.\\nbuilding a read model, indexing, syncing to an external system).\\n\"\"\"\\ntype ProcessorModuleState {\\n \"\"\"Display name of the processor. Also determines the generated folder name under `processors/`.\"\"\"\\n name: String!\\n \"\"\"Processor implementation kind (e.g. \\'read-model\\', \\'relational-db\\'). Determines which scaffold codegen emits.\"\"\"\\n type: String!\\n \"\"\"Document types this processor subscribes to. Each entry has a stable id so it can be removed individually.\"\"\"\\n documentTypes: [DocumentTypeItem!]!\\n \"\"\"Lifecycle status. While DRAFT the processor definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\\n status: StatusType!\\n \"\"\"Drive-app names this processor is attached to. The processor runs in the context of each listed app.\"\"\"\\n processorApps: [String!]!\\n}\\n\\n\"\"\"A document type id (e.g. \\'my-org/invoice\\') attached to the processor 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 processor subscribes to.\"\"\"\\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 examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"type\": \"\",\\n \"documentTypes\": [],\\n \"status\": \"DRAFT\",\\n \"processorApps\": []\\n}',\n },\n },\n modules: [\n {\n id: \"91ad39c1-4e8b-4127-b3c8-e835b85e6360\",\n name: \"base_operations\",\n description:\n \"Set the processor's identity, kind, lifecycle status, subscribed document types, and attached drive apps.\",\n operations: [\n {\n id: \"6f3a5c90-39f2-4302-a073-6195a71c5054\",\n name: \"SET_PROCESSOR_NAME\",\n description:\n \"Set the display name of the processor. Also determines the generated folder name under `processors/`.\",\n schema: \"input SetProcessorNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"b8f28bb4-c6ae-40e6-86fa-29ef14ff8667\",\n name: \"SET_PROCESSOR_TYPE\",\n description:\n \"Set the processor implementation kind (e.g. 'read-model', 'relational-db'). Determines which scaffold codegen emits.\",\n schema: \"input SetProcessorTypeInput {\\n type: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"fbbd7a71-c495-4efc-b8f6-1e57798dbbb4\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Subscribe the processor to a document type. Caller supplies a stable id so the entry can be removed later.\",\n schema:\n \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"544d413f-423c-4d97-9570-84a19bffeab9\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description:\n \"Unsubscribe the processor from a document type by removing its entry id.\",\n schema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"df5eb500-7308-498c-9b80-028878ee198b\",\n name: \"ADD_PROCESSOR_APP\",\n description:\n \"Attach the processor to a drive app by name. The processor will run in the context of that app.\",\n schema:\n \"input AddProcessorAppInput {\\n processorApp: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"07e4168f-1a7b-41ef-953d-219028be7bb9\",\n name: \"REMOVE_PROCESSOR_APP\",\n description:\n \"Detach the processor from a drive app by name. No-op if the app is not currently attached.\",\n schema:\n \"input RemoveProcessorAppInput {\\n processorApp: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"7b6706eb-5e25-4d64-829a-e3a251380fd1\",\n name: \"SET_PROCESSOR_STATUS\",\n description:\n \"Move the processor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema:\n \"input SetProcessorStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","import {\n PROCESSOR_APPS,\n type ProcessorApp,\n} from \"@powerhousedao/shared/processors\";\nimport type { ProcessorModuleBaseOperationsOperations } from \"document-models/processor-module/v1\";\n\nexport const processorModuleBaseOperationsOperations: ProcessorModuleBaseOperationsOperations =\n {\n setProcessorNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"Processor name cannot be empty\");\n }\n state.name = trimmedName;\n },\n setProcessorTypeOperation(state, action, dispatch) {\n const trimmedType = action.input.type.trim();\n if (trimmedType === \"\") {\n throw new Error(\"Processor type cannot be empty\");\n }\n state.type = trimmedType;\n },\n addDocumentTypeOperation(state, action, dispatch) {\n // Check for duplicate ID\n const existingId = state.documentTypes.find(\n (dt) => dt.id === action.input.id,\n );\n if (existingId) {\n throw new Error(\n `Document type with id \"${action.input.id}\" already exists`,\n );\n }\n\n state.documentTypes.push({\n id: action.input.id,\n documentType: action.input.documentType,\n });\n },\n removeDocumentTypeOperation(state, action, dispatch) {\n state.documentTypes = state.documentTypes.filter(\n (documentType) => documentType.id !== action.input.id,\n );\n },\n setProcessorStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n addProcessorAppOperation(state, action) {\n const { processorApp } = action.input;\n if (!PROCESSOR_APPS.includes(processorApp as ProcessorApp)) {\n throw new Error(\n `${processorApp} is not a valid processor app. Must be one of ${PROCESSOR_APPS.join(\", \")}.`,\n );\n }\n state.processorApps = [\n ...new Set([...state.processorApps, processorApp]),\n ];\n },\n removeProcessorAppOperation(state, action) {\n const { processorApp } = action.input;\n state.processorApps = state.processorApps.filter(\n (p) => p !== processorApp,\n );\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { ProcessorModulePHState } from \"document-models/processor-module/v1\";\n\nimport { processorModuleBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\n\nimport {\n AddDocumentTypeInputSchema,\n AddProcessorAppInputSchema,\n RemoveDocumentTypeInputSchema,\n RemoveProcessorAppInputSchema,\n SetProcessorNameInputSchema,\n SetProcessorStatusInputSchema,\n SetProcessorTypeInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<ProcessorModulePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_PROCESSOR_NAME\": {\n SetProcessorNameInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.setProcessorNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PROCESSOR_TYPE\": {\n SetProcessorTypeInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.setProcessorTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_DOCUMENT_TYPE\": {\n AddDocumentTypeInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.addDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_DOCUMENT_TYPE\": {\n RemoveDocumentTypeInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.removeDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_PROCESSOR_APP\": {\n AddProcessorAppInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.addProcessorAppOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_PROCESSOR_APP\": {\n RemoveProcessorAppInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.removeProcessorAppOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PROCESSOR_STATUS\": {\n SetProcessorStatusInputSchema().parse(action.input);\n\n processorModuleBaseOperationsOperations.setProcessorStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<ProcessorModulePHState> =\n createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const processorModuleDocumentType = \"powerhouse/processor\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { processorModuleDocumentType } from \"./document-type.js\";\nimport { ProcessorModuleStateSchema } from \"./schema/zod.js\";\nimport type {\n ProcessorModuleDocument,\n ProcessorModulePHState,\n} from \"./types.js\";\n\n/** Schema for validating the header object of a ProcessorModule document */\nexport const ProcessorModuleDocumentHeaderSchema =\n BaseDocumentHeaderSchema.extend({\n documentType: z.literal(processorModuleDocumentType),\n });\n\n/** Schema for validating the state object of a ProcessorModule document */\nexport const ProcessorModulePHStateSchema = BaseDocumentStateSchema.extend({\n global: ProcessorModuleStateSchema(),\n});\n\nexport const ProcessorModuleDocumentSchema = z.object({\n header: ProcessorModuleDocumentHeaderSchema,\n state: ProcessorModulePHStateSchema,\n initialState: ProcessorModulePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a ProcessorModule document state object */\nexport function isProcessorModuleState(\n state: unknown,\n): state is ProcessorModulePHState {\n return ProcessorModulePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a ProcessorModule document state object */\nexport function assertIsProcessorModuleState(\n state: unknown,\n): asserts state is ProcessorModulePHState {\n ProcessorModulePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a ProcessorModule document */\nexport function isProcessorModuleDocument(\n document: unknown,\n): document is ProcessorModuleDocument {\n return ProcessorModuleDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a ProcessorModule document */\nexport function assertIsProcessorModuleDocument(\n document: unknown,\n): asserts document is ProcessorModuleDocument {\n ProcessorModuleDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsProcessorModuleDocument,\n assertIsProcessorModuleState,\n isProcessorModuleDocument,\n isProcessorModuleState,\n} from \"./document-schema.js\";\nimport { processorModuleDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n ProcessorModuleGlobalState,\n ProcessorModuleLocalState,\n ProcessorModulePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: ProcessorModuleGlobalState = {\n name: \"\",\n type: \"\",\n documentTypes: [],\n status: \"DRAFT\",\n processorApps: [],\n};\nexport const initialLocalState: ProcessorModuleLocalState = {};\n\nexport const utils: DocumentModelUtils<ProcessorModulePHState> = {\n fileExtension: \".processor\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = processorModuleDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isProcessorModuleState(state);\n },\n assertIsStateOfType(state) {\n return assertIsProcessorModuleState(state);\n },\n isDocumentOfType(document) {\n return isProcessorModuleDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsProcessorModuleDocument(document);\n },\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { ProcessorModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the ProcessorModule document model */\nexport const utils: DocumentModelUtils<ProcessorModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { ProcessorModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the ProcessorModule document type */\nexport const ProcessorModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<ProcessorModulePHState>;\n"],"mappings":";;;;;;AAsBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,MAAa,mBAAmBA,IAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;AAE9D,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO;EACd,cAAcA,IAAE,QAAQ;EACxB,IAAIA,IAAE,QAAQ;EACf,CAAC;;AAGJ,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO,EACd,cAAcA,IAAE,QAAQ,EACzB,CAAC;;AAGJ,SAAgB,yBAEd;AACA,QAAOA,IAAE,OAAO;EACd,YAAYA,IAAE,QAAQ,mBAAmB,CAAC,UAAU;EACpD,cA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actions.ts","../document-models/subgraph-module/v1/gen/actions.ts","../document-models/subgraph-module/v1/gen/schema/types.ts","../document-models/subgraph-module/v1/gen/types.ts","../document-models/subgraph-module/v1/actions.ts","../document-models/subgraph-module/v1/gen/base-operations/operations.ts","../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/gen/base-operations/creators.ts","../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/gen/document-schema.ts","../document-models/subgraph-module/v1/gen/document-type.ts","../document-models/subgraph-module/v1/gen/ph-factories.ts","../document-models/subgraph-module/v1/gen/reducer.ts","../document-models/subgraph-module/v1/gen/schema/zod.ts","../document-models/subgraph-module/v1/gen/utils.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/module.ts"],"mappings":";;;;;;;KAOY,qBAAA,GAAwB,MAAA;EAClC,IAAA;EACA,KAAA,EAAO,oBAAA;AAAA;AAAA,KAEG,uBAAA,GAA0B,MAAA;EACpC,IAAA;EACA,KAAA,EAAO,sBAAA;AAAA;AAAA,KAGG,kCAAA,GACR,qBAAA,GACA,uBAAA;;;KCVQ,oBAAA,GAAuB,kCAAA;;;KCRvB,KAAA,MAAW,CAAA;AAAA,KACX,UAAA,MAAgB,CAAA;AAAA,KAChB,KAAA;EAAA,CAAmB,GAAA;AAAA,mBACjB,CAAA,GAAI,CAAA,CAAE,CAAA;AAAA,KAER,YAAA,oBAAgC,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBAC5C,CAAA,IAAK,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEd,SAAA,oBAA6B,CAAA,IAAK,IAAA,CAAK,CAAA,EAAG,CAAA,iBACzC,CAAA,GAAI,KAAA,CAAM,CAAA,CAAE,MAAA;AAAA,KAEb,SAAA;EAAA,CACG,GAAA;AAAA,mBACG,CAAA,YACN,CAAA;AAAA,KACA,WAAA,MACR,CAAA,iBAEc,CAAA,IAAK,CAA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GrC,uBAAA,EAAuB,GAAA,CAAA,MAAA,GAAA,GAAA,CAAA,OAAA,CAAA,iBAAA,OAAA,GAAA,CAAA,IAAA,CAAA,iBAAA,CAAA,iBAAA;AAAA,cAIvB,gBAAA,EAAgB,GAAA,CAAA,OAAA;;;;iBAEb,0BAAA,CAAA,GAA8B,GAAA,CAAE,SAAA,CAC9C,UAAA,CAAW,oBAAA;AAAA,iBAOG,4BAAA,CAAA,GAAgC,GAAA,CAAE,SAAA,CAChD,UAAA,CAAW,sBAAA;AAAA,iBAOG,yBAAA,CAAA,GAA6B,GAAA,CAAE,SAAA,CAC7C,UAAA,CAAW,mBAAA;;;cChBA,kBAAA,EAAoB,mBAAA;AAAA,cAIpB,iBAAA,EAAmB,wBAAA;;;;iBCThB,6BAAA,CACd,UAAA,+BAEG,sBAAA,EAAwB,gBAAA,CAAiB,oBAAA;AfjB9C;AAAA,iBeyBgB,iCAAA,CAAA,IACd,sBAAA,EACA,gBAAA,CAAiB,oBAAA;;iBASH,yCAAA,CAAA,GAAyC,sBAAA;;iBAMzC,0CAAA,CAAA,GAA0C,sBAAA;;;;cCvC7C,KAAA,EAAO,kBAAA,CAAmB,qBAAA;;;;cCG1B,cAAA;EAAA;;;sBAHU,KAAA,2BAEV,qBAAA;wBAM6C,KAAA,EAN7C,sBAAA,KAOS,uBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BACg/V,KAAA,8BAAgB,UAAA;2BAA0C,KAAA,cAA1C,eAAA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-BoGgbKmO.js","names":["z","subgraphModuleBaseOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/subgraph-module/v1/gen/schema/zod.ts","../document-models/subgraph-module/v1/gen/base-operations/creators.ts","../document-models/subgraph-module/v1/actions.ts","../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/src/reducers/base-operations.ts","../document-models/subgraph-module/v1/gen/reducer.ts","../document-models/subgraph-module/v1/gen/document-type.ts","../document-models/subgraph-module/v1/gen/document-schema.ts","../document-models/subgraph-module/v1/gen/utils.ts","../document-models/subgraph-module/v1/src/utils.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/module.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n SetSubgraphNameInput,\n SetSubgraphStatusInput,\n StatusType,\n SubgraphModuleState,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function SetSubgraphNameInputSchema(): z.ZodObject<\n Properties<SetSubgraphNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetSubgraphStatusInputSchema(): z.ZodObject<\n Properties<SetSubgraphStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n\nexport function SubgraphModuleStateSchema(): z.ZodObject<\n Properties<SubgraphModuleState>\n> {\n return z.object({\n __typename: z.literal(\"SubgraphModuleState\").optional(),\n name: z.string(),\n status: StatusTypeSchema,\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n SetSubgraphNameInputSchema,\n SetSubgraphStatusInputSchema,\n} from \"../schema/zod.js\";\nimport type { SetSubgraphNameInput, SetSubgraphStatusInput } from \"../types.js\";\nimport type {\n SetSubgraphNameAction,\n SetSubgraphStatusAction,\n} from \"./actions.js\";\n\nexport const setSubgraphName = (input: SetSubgraphNameInput) =>\n createAction<SetSubgraphNameAction>(\n \"SET_SUBGRAPH_NAME\",\n { ...input },\n undefined,\n SetSubgraphNameInputSchema,\n \"global\",\n );\n\nexport const setSubgraphStatus = (input: SetSubgraphStatusInput) =>\n createAction<SetSubgraphStatusAction>(\n \"SET_SUBGRAPH_STATUS\",\n { ...input },\n undefined,\n SetSubgraphStatusInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport { subgraphModuleBaseOperationsActions } from \"./gen/creators.js\";\n\n/** Actions for the SubgraphModule document model */\n\nexport const actions = {\n ...baseActions,\n ...subgraphModuleBaseOperationsActions,\n};\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/subgraph\",\n name: \"Subgraph Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".subgraph\",\n description:\n \"Declares a GraphQL subgraph (a slice of the Switchboard API contributed by the package) shipped by a Vetra Reactor Package. Create one Subgraph Module document per subgraph, then mark it CONFIRMED to trigger codegen of the subgraph scaffold under `subgraphs/` \\u2014 the resolvers and schema you flesh out there are stitched into the Switchboard graph at runtime.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nConfiguration for a GraphQL subgraph contributed by the package. The subgraph\\nis served by Switchboard and stitched into the unified Powerhouse API.\\n\"\"\"\\ntype SubgraphModuleState {\\n \"\"\"Display name of the subgraph. Also determines the generated folder name under `subgraphs/` and the route segment Switchboard mounts it at.\"\"\"\\n name: String!\\n \"\"\"Lifecycle status. While DRAFT the subgraph definition is editable and codegen is skipped; switching to CONFIRMED triggers scaffold generation.\"\"\"\\n status: StatusType!\\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 examples: [],\n initialValue: '{\\n \"name\": \"\",\\n \"status\": \"DRAFT\"\\n}',\n },\n },\n modules: [\n {\n id: \"8af5bda9-6fc7-4427-bfed-1d32d76a552f\",\n name: \"base_operations\",\n description: \"Set the subgraph's identity and lifecycle status.\",\n operations: [\n {\n id: \"d7cd6b6b-01ea-42c8-97e2-288e04b50b42\",\n name: \"SET_SUBGRAPH_NAME\",\n description:\n \"Set the display name of the subgraph. Also determines the generated folder under `subgraphs/` and the route segment Switchboard mounts it at.\",\n schema: \"input SetSubgraphNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"5a20e641-dc36-428e-8924-ecb07f3f1b94\",\n name: \"SET_SUBGRAPH_STATUS\",\n description:\n \"Move the subgraph between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema:\n \"input SetSubgraphStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","import type { SubgraphModuleBaseOperationsOperations } from \"document-models/subgraph-module/v1\";\n\nexport const subgraphModuleBaseOperationsOperations: SubgraphModuleBaseOperationsOperations =\n {\n setSubgraphNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"Subgraph name cannot be empty\");\n }\n state.name = trimmedName;\n },\n setSubgraphStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { SubgraphModulePHState } from \"document-models/subgraph-module/v1\";\n\nimport { subgraphModuleBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\n\nimport {\n SetSubgraphNameInputSchema,\n SetSubgraphStatusInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<SubgraphModulePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_SUBGRAPH_NAME\": {\n SetSubgraphNameInputSchema().parse(action.input);\n\n subgraphModuleBaseOperationsOperations.setSubgraphNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_SUBGRAPH_STATUS\": {\n SetSubgraphStatusInputSchema().parse(action.input);\n\n subgraphModuleBaseOperationsOperations.setSubgraphStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<SubgraphModulePHState> =\n createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const subgraphModuleDocumentType = \"powerhouse/subgraph\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { subgraphModuleDocumentType } from \"./document-type.js\";\nimport { SubgraphModuleStateSchema } from \"./schema/zod.js\";\nimport type { SubgraphModuleDocument, SubgraphModulePHState } from \"./types.js\";\n\n/** Schema for validating the header object of a SubgraphModule document */\nexport const SubgraphModuleDocumentHeaderSchema =\n BaseDocumentHeaderSchema.extend({\n documentType: z.literal(subgraphModuleDocumentType),\n });\n\n/** Schema for validating the state object of a SubgraphModule document */\nexport const SubgraphModulePHStateSchema = BaseDocumentStateSchema.extend({\n global: SubgraphModuleStateSchema(),\n});\n\nexport const SubgraphModuleDocumentSchema = z.object({\n header: SubgraphModuleDocumentHeaderSchema,\n state: SubgraphModulePHStateSchema,\n initialState: SubgraphModulePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a SubgraphModule document state object */\nexport function isSubgraphModuleState(\n state: unknown,\n): state is SubgraphModulePHState {\n return SubgraphModulePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a SubgraphModule document state object */\nexport function assertIsSubgraphModuleState(\n state: unknown,\n): asserts state is SubgraphModulePHState {\n SubgraphModulePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a SubgraphModule document */\nexport function isSubgraphModuleDocument(\n document: unknown,\n): document is SubgraphModuleDocument {\n return SubgraphModuleDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a SubgraphModule document */\nexport function assertIsSubgraphModuleDocument(\n document: unknown,\n): asserts document is SubgraphModuleDocument {\n SubgraphModuleDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsSubgraphModuleDocument,\n assertIsSubgraphModuleState,\n isSubgraphModuleDocument,\n isSubgraphModuleState,\n} from \"./document-schema.js\";\nimport { subgraphModuleDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n SubgraphModuleGlobalState,\n SubgraphModuleLocalState,\n SubgraphModulePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: SubgraphModuleGlobalState = {\n name: \"\",\n status: \"DRAFT\",\n};\nexport const initialLocalState: SubgraphModuleLocalState = {};\n\nexport const utils: DocumentModelUtils<SubgraphModulePHState> = {\n fileExtension: \".subgraph\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = subgraphModuleDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isSubgraphModuleState(state);\n },\n assertIsStateOfType(state) {\n return assertIsSubgraphModuleState(state);\n },\n isDocumentOfType(document) {\n return isSubgraphModuleDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsSubgraphModuleDocument(document);\n },\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { SubgraphModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the SubgraphModule document model */\nexport const utils: DocumentModelUtils<SubgraphModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { SubgraphModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the SubgraphModule document type */\nexport const SubgraphModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<SubgraphModulePHState>;\n"],"mappings":";;;;;AAgBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,MAAa,mBAAmBA,IAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;AAE9D,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO,E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AAO;IAAO;GACjD;;CAEH,eAAe,OAAO;EACpB,MAAM,WAAW,mBAAmBA,QAAM,aAAa,MAAM;AAE7D,WAAS,OAAO,eAAe;AAG/B,WAAS,OAAO,KAAK,YAAY;AAEjC,SAAO;;CAET,iBAAiB,UAAU,OAAO;AAChC,SAAO,qBAAqB,UAAU,MAAM;;CAE9C,cAAc,OAAO;AACnB,SAAO,kBAAkB,OAAO,QAAQ;;CAE1C,cAAc,OAAO;AACnB,SAAO,sBAAsB,MAAM;;CAErC,oBAAoB,OAAO;AACzB,SAAO,4BAA4B,MAAM;;CAE3C,iBAAiB,UAAU;AACzB,SAAO,yBAAyB,SAAS;;CAE3C,uBAAuB,UAAU;AAC/B,SAAO,+BAA+B,SAAS;;CAElD;;;;;;;AE3DD,MAAa,QAAmD;CAC9D,GAAGC;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-CTPfENDU.js","names":["z","appModuleBaseOperationsActions","appModuleDndOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/app-module/v1/gen/schema/zod.ts","../document-models/app-module/v1/gen/base-operations/creators.ts","../document-models/app-module/v1/gen/dnd-operations/creators.ts","../document-models/app-module/v1/actions.ts","../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/src/reducers/base-operations.ts","../document-models/app-module/v1/src/reducers/dnd-operations.ts","../document-models/app-module/v1/gen/reducer.ts","../document-models/app-module/v1/gen/document-type.ts","../document-models/app-module/v1/gen/document-schema.ts","../document-models/app-module/v1/gen/utils.ts","../document-models/app-module/v1/src/utils.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/module.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n AddDocumentTypeInput,\n AppModuleState,\n RemoveDocumentTypeInput,\n SetAppNameInput,\n SetAppStatusInput,\n SetDocumentTypesInput,\n SetDragAndDropEnabledInput,\n StatusType,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function AddDocumentTypeInputSchema(): z.ZodObject<\n Properties<AddDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n });\n}\n\nexport function AppModuleStateSchema(): z.ZodObject<\n Properties<AppModuleState>\n> {\n return z.object({\n __typename: z.literal(\"AppModuleState\").optional(),\n allowedDocumentTypes: z.array(z.string()).nullish(),\n isDragAndDropEnabled: z.boolean(),\n name: z.string(),\n status: StatusTypeSchema,\n });\n}\n\nexport function RemoveDocumentTypeInputSchema(): z.ZodObject<\n Properties<RemoveDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n });\n}\n\nexport function SetAppNameInputSchema(): z.ZodObject<\n Properties<SetAppNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetAppStatusInputSchema(): z.ZodObject<\n Properties<SetAppStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n\nexport function SetDocumentTypesInputSchema(): z.ZodObject<\n Properties<SetDocumentTypesInput>\n> {\n return z.object({\n documentTypes: z.array(z.string()),\n });\n}\n\nexport function SetDragAndDropEnabledInputSchema(): z.ZodObject<\n Properties<SetDragAndDropEnabledInput>\n> {\n return z.object({\n enabled: z.boolean(),\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetAppNameInputSchema,\n SetAppStatusInputSchema,\n SetDocumentTypesInputSchema,\n} from \"../schema/zod.js\";\nimport type {\n AddDocumentTypeInput,\n RemoveDocumentTypeInput,\n SetAppNameInput,\n SetAppStatusInput,\n SetDocumentTypesInput,\n} from \"../types.js\";\nimport type {\n AddDocumentTypeAction,\n RemoveDocumentTypeAction,\n SetAppNameAction,\n SetAppStatusAction,\n SetDocumentTypesAction,\n} from \"./actions.js\";\n\nexport const setAppName = (input: SetAppNameInput) =>\n createAction<SetAppNameAction>(\n \"SET_APP_NAME\",\n { ...input },\n undefined,\n SetAppNameInputSchema,\n \"global\",\n );\n\nexport const setAppStatus = (input: SetAppStatusInput) =>\n createAction<SetAppStatusAction>(\n \"SET_APP_STATUS\",\n { ...input },\n undefined,\n SetAppStatusInputSchema,\n \"global\",\n );\n\nexport const addDocumentType = (input: AddDocumentTypeInput) =>\n createAction<AddDocumentTypeAction>(\n \"ADD_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n AddDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const removeDocumentType = (input: RemoveDocumentTypeInput) =>\n createAction<RemoveDocumentTypeAction>(\n \"REMOVE_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n RemoveDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const setDocumentTypes = (input: SetDocumentTypesInput) =>\n createAction<SetDocumentTypesAction>(\n \"SET_DOCUMENT_TYPES\",\n { ...input },\n undefined,\n SetDocumentTypesInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport { SetDragAndDropEnabledInputSchema } from \"../schema/zod.js\";\nimport type { SetDragAndDropEnabledInput } from \"../types.js\";\nimport type { SetDragAndDropEnabledAction } from \"./actions.js\";\n\nexport const setDragAndDropEnabled = (input: SetDragAndDropEnabledInput) =>\n createAction<SetDragAndDropEnabledAction>(\n \"SET_DRAG_AND_DROP_ENABLED\",\n { ...input },\n undefined,\n SetDragAndDropEnabledInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport {\n appModuleBaseOperationsActions,\n appModuleDndOperationsActions,\n} from \"./gen/creators.js\";\n\n/** Actions for the AppModule document model */\n\nexport const actions = {\n ...baseActions,\n ...appModuleBaseOperationsActions,\n ...appModuleDndOperationsActions,\n};\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/app\",\n name: \"App Module\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".app\",\n description:\n \"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 specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\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 examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"status\": \"DRAFT\",\\n \"allowedDocumentTypes\": null,\\n \"isDragAndDropEnabled\": true\\n}',\n },\n },\n modules: [\n {\n id: \"d274599a-ceb5-4f2b-8651-b25787306734\",\n name: \"base_operations\",\n description:\n \"Set the app's identity, lifecycle status, and the document types it handles.\",\n operations: [\n {\n id: \"f2ba2ddc-8527-4162-93bd-e045e9932013\",\n name: \"SET_APP_NAME\",\n description:\n \"Set the display name of the drive app. Also determines the generated folder name under `apps/`.\",\n schema: \"input SetAppNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"c842efa4-154c-4fd9-9d12-42bec51af4e9\",\n name: \"SET_APP_STATUS\",\n description:\n \"Move the app between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED.\",\n schema: \"input SetAppStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"7376f168-695f-4aef-94d0-6e381666358c\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Append a document type id to the list of types this app handles. Initializes the list if it was `null` (accept-any).\",\n schema:\n \"input AddDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"310e4e5b-3f14-4e9a-8e09-5583c7698a65\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description:\n \"Remove a document type id from the handled list. No-op if the type is not present.\",\n schema:\n \"input RemoveDocumentTypeInput {\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"b365727a-7df3-48f0-a4f8-02362f02ad1d\",\n name: \"SET_DOCUMENT_TYPES\",\n description:\n \"Replace the entire allowed-document-types list in one call. Pass an empty list to accept none.\",\n schema:\n \"input SetDocumentTypesInput {\\n documentTypes: [String!]!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n {\n id: \"270faa10-92e9-40d0-b128-2de32704bcb5\",\n name: \"dnd_operations\",\n description:\n \"Toggle drag-and-drop file handling for the app surface.\",\n operations: [\n {\n id: \"077b1ab8-cb32-4b4e-a1fa-76178188c6a1\",\n name: \"SET_DRAG_AND_DROP_ENABLED\",\n description:\n \"Enable or disable drag-and-drop file handling on the app surface.\",\n schema:\n \"input SetDragAndDropEnabledInput {\\n enabled: Boolean!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","import type { AppModuleBaseOperationsOperations } from \"document-models/app-module/v1\";\n\nexport const appModuleBaseOperationsOperations: AppModuleBaseOperationsOperations =\n {\n setAppNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"App name cannot be empty\");\n }\n state.name = trimmedName;\n },\n setAppStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n addDocumentTypeOperation(state, action, dispatch) {\n const existingAllowedDocumentTypes = state.allowedDocumentTypes ?? [];\n const newDocumentType = action.input.documentType;\n const newAllowedDocumentTypesSet = new Set(\n existingAllowedDocumentTypes,\n ).add(newDocumentType);\n const newAllowedDocumentTypes = [...newAllowedDocumentTypesSet];\n state.allowedDocumentTypes = newAllowedDocumentTypes;\n },\n removeDocumentTypeOperation(state, action, dispatch) {\n const existingAllowedDocumentTypes = state.allowedDocumentTypes;\n const documentTypeToRemove = action.input.documentType;\n const newAllowedDocumentTypes = existingAllowedDocumentTypes?.filter(\n (dt) => dt !== documentTypeToRemove,\n );\n state.allowedDocumentTypes = newAllowedDocumentTypes ?? [];\n },\n setDocumentTypesOperation(state, action, dispatch) {\n state.allowedDocumentTypes = action.input.documentTypes;\n },\n };\n","import type { AppModuleDndOperationsOperations } from \"document-models/app-module/v1\";\n\nexport const appModuleDndOperationsOperations: AppModuleDndOperationsOperations =\n {\n setDragAndDropEnabledOperation(state, action, dispatch) {\n state.isDragAndDropEnabled = action.input.enabled;\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { AppModulePHState } from \"document-models/app-module/v1\";\n\nimport { appModuleBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\nimport { appModuleDndOperationsOperations } from \"../src/reducers/dnd-operations.js\";\n\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetAppNameInputSchema,\n SetAppStatusInputSchema,\n SetDocumentTypesInputSchema,\n SetDragAndDropEnabledInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<AppModulePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_APP_NAME\": {\n SetAppNameInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setAppNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_APP_STATUS\": {\n SetAppStatusInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setAppStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_DOCUMENT_TYPE\": {\n AddDocumentTypeInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.addDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_DOCUMENT_TYPE\": {\n RemoveDocumentTypeInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.removeDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_DOCUMENT_TYPES\": {\n SetDocumentTypesInputSchema().parse(action.input);\n\n appModuleBaseOperationsOperations.setDocumentTypesOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_DRAG_AND_DROP_ENABLED\": {\n SetDragAndDropEnabledInputSchema().parse(action.input);\n\n appModuleDndOperationsOperations.setDragAndDropEnabledOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<AppModulePHState> = createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const appModuleDocumentType = \"powerhouse/app\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { appModuleDocumentType } from \"./document-type.js\";\nimport { AppModuleStateSchema } from \"./schema/zod.js\";\nimport type { AppModuleDocument, AppModulePHState } from \"./types.js\";\n\n/** Schema for validating the header object of a AppModule document */\nexport const AppModuleDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({\n documentType: z.literal(appModuleDocumentType),\n});\n\n/** Schema for validating the state object of a AppModule document */\nexport const AppModulePHStateSchema = BaseDocumentStateSchema.extend({\n global: AppModuleStateSchema(),\n});\n\nexport const AppModuleDocumentSchema = z.object({\n header: AppModuleDocumentHeaderSchema,\n state: AppModulePHStateSchema,\n initialState: AppModulePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a AppModule document state object */\nexport function isAppModuleState(state: unknown): state is AppModulePHState {\n return AppModulePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a AppModule document state object */\nexport function assertIsAppModuleState(\n state: unknown,\n): asserts state is AppModulePHState {\n AppModulePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a AppModule document */\nexport function isAppModuleDocument(\n document: unknown,\n): document is AppModuleDocument {\n return AppModuleDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a AppModule document */\nexport function assertIsAppModuleDocument(\n document: unknown,\n): asserts document is AppModuleDocument {\n AppModuleDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsAppModuleDocument,\n assertIsAppModuleState,\n isAppModuleDocument,\n isAppModuleState,\n} from \"./document-schema.js\";\nimport { appModuleDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n AppModuleGlobalState,\n AppModuleLocalState,\n AppModulePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: AppModuleGlobalState = {\n name: \"\",\n status: \"DRAFT\",\n allowedDocumentTypes: null,\n isDragAndDropEnabled: true,\n};\nexport const initialLocalState: AppModuleLocalState = {};\n\nexport const utils: DocumentModelUtils<AppModulePHState> = {\n fileExtension: \".app\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = appModuleDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isAppModuleState(state);\n },\n assertIsStateOfType(state) {\n return assertIsAppModuleState(state);\n },\n isDocumentOfType(document) {\n return isAppModuleDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsAppModuleDocument(document);\n },\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { AppModulePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the AppModule document model */\nexport const utils: DocumentModelUtils<AppModulePHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { AppModulePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the AppModule document type */\nexport const AppModule = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<AppModulePHState>;\n"],"mappings":";;;;;AAoBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,MAAa,mBAAmBA,IAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;AAE9D,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO,EACd,cAAcA,IAAE,QAAQ,EACzB,CAAC;;AAGJ,SAAgB,uBAEd;AACA,QAAOA,IAAE,OAAO;EACd,YAAYA,IAAE,QAAQ,iBAAiB,CAAC,UAAU;EAClD,sBAAsBA,IAAE,MAAMA,IAAE,QAAQ,CAAC,CAAC,SAAS;EACnD,sBAAsBA,IAAE,SAAS;EACjC,MAAMA,IAAE,QAAQ;EAChB,QAAQ;EACT,CAAC;;AAGJ,SAAgB,gCAEd;AACA,QAAOA,IAAE,OAAO,EACd,cAAcA,IAAE,QAAQ,EACzB,CAAC;;AAGJ,SAAgB,wBAEd;AACA,QAAOA,IAAE,OAAO,EACd,MAAMA,IAAE,QAAQ,EACjB,CAAC;;AAGJ,SAAgB,0BAEd;AACA,QAAOA,IAA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9D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-CpP8D2Hl.d.ts","names":[],"sources":["../document-models/processor-module/v1/gen/base-operations/actions.ts","../document-models/processor-module/v1/gen/actions.ts","../document-models/processor-module/v1/gen/schema/types.ts","../document-models/processor-module/v1/gen/types.ts","../document-models/processor-module/v1/actions.ts","../document-models/processor-module/v1/gen/base-operations/operations.ts","../document-models/processor-module/v1/gen/controller.ts","../document-models/processor-module/v1/gen/base-operations/creators.ts","../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/gen/document-schema.ts","../document-models/processor-module/v1/gen/document-type.ts","../document-models/processor-module/v1/gen/ph-factories.ts","../document-models/processor-module/v1/gen/reducer.ts","../document-models/processor-module/v1/gen/schema/zod.ts","../document-models/processor-module/v1/gen/utils.ts","../document-models/processor-module/v1/hooks.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/module.ts"],"mappings":";;;;;;;KAeY,sBAAA,GAAyB,MAAA;EACnC,IAAA;EACA,KAAA,EAAO,qBAAA;AAAA;AAAA,KAEG,sBAAA,GAAyB,MAAA;EACnC,IAAA;EACA,KAAA,EAAO,qBAAA;AAAA;AAAA,KAEG,qBAAA,GAAwB,MAAA;EAClC,IAAA;EACA,KAAA,EAAO,oBAAA;AAAA;AAAA,KAEG,wBAAA,GAA2B,MAAA;EACrC,IAAA;EACA,KAAA,EAAO,uBAAA;AAAA;AAAA,KAEG,qBAAA,GAAwB,MAAA;EAClC,IAAA;EACA,KAAA,EAAO,oBAAA;AAAA;AAAA,KAEG,wBAAA,GAA2B,MAAA;EACrC,IAAA;EACA,KAAA,EAAO,uBAAA;AAAA;AAAA,KAEG,wBAAA,GAA2B,MAAA;EACrC,IAAA;EACA,KAAA,EAAO,uBAAA;AAAA;AAAA,KAGG,mCAAA,GACR,sBAAA,GACA,sBAAA,GACA,qBAAA,GACA,wBAAA,GACA,qBAAA,GACA,wBAAA,GACA,wBAAA;;;KC3CQ,qBAAA,GAAwB,mCAAA;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version":3,"file":"module-D0SK3Nds.js","names":["z","documentEditorBaseOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/document-editor/v1/gen/schema/zod.ts","../document-models/document-editor/v1/gen/base-operations/creators.ts","../document-models/document-editor/v1/actions.ts","../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/src/reducers/base-operations.ts","../document-models/document-editor/v1/gen/reducer.ts","../document-models/document-editor/v1/gen/document-type.ts","../document-models/document-editor/v1/gen/document-schema.ts","../document-models/document-editor/v1/gen/utils.ts","../document-models/document-editor/v1/src/utils.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/module.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-object-type */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport * as z from \"zod\";\nimport type {\n AddDocumentTypeInput,\n DocumentEditorState,\n DocumentTypeItem,\n RemoveDocumentTypeInput,\n SetEditorNameInput,\n SetEditorStatusInput,\n StatusType,\n} from \"./types.js\";\n\ntype Properties<T> = Required<{\n [K in keyof T]: z.ZodType<T[K]>;\n}>;\n\ntype definedNonNullAny = {};\n\nexport const isDefinedNonNullAny = (v: any): v is definedNonNullAny =>\n v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z\n .any()\n .refine((v) => isDefinedNonNullAny(v));\n\nexport const StatusTypeSchema = z.enum([\"CONFIRMED\", \"DRAFT\"]);\n\nexport function AddDocumentTypeInputSchema(): z.ZodObject<\n Properties<AddDocumentTypeInput>\n> {\n return z.object({\n documentType: z.string(),\n id: z.string(),\n });\n}\n\nexport function DocumentEditorStateSchema(): z.ZodObject<\n Properties<DocumentEditorState>\n> {\n return z.object({\n __typename: z.literal(\"DocumentEditorState\").optional(),\n documentTypes: z.array(z.lazy(() => DocumentTypeItemSchema())),\n name: z.string(),\n status: StatusTypeSchema,\n });\n}\n\nexport function DocumentTypeItemSchema(): z.ZodObject<\n Properties<DocumentTypeItem>\n> {\n return z.object({\n __typename: z.literal(\"DocumentTypeItem\").optional(),\n documentType: z.string(),\n id: z.string(),\n });\n}\n\nexport function RemoveDocumentTypeInputSchema(): z.ZodObject<\n Properties<RemoveDocumentTypeInput>\n> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function SetEditorNameInputSchema(): z.ZodObject<\n Properties<SetEditorNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetEditorStatusInputSchema(): z.ZodObject<\n Properties<SetEditorStatusInput>\n> {\n return z.object({\n status: StatusTypeSchema,\n });\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from \"document-model\";\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetEditorNameInputSchema,\n SetEditorStatusInputSchema,\n} from \"../schema/zod.js\";\nimport type {\n AddDocumentTypeInput,\n RemoveDocumentTypeInput,\n SetEditorNameInput,\n SetEditorStatusInput,\n} from \"../types.js\";\nimport type {\n AddDocumentTypeAction,\n RemoveDocumentTypeAction,\n SetEditorNameAction,\n SetEditorStatusAction,\n} from \"./actions.js\";\n\nexport const setEditorName = (input: SetEditorNameInput) =>\n createAction<SetEditorNameAction>(\n \"SET_EDITOR_NAME\",\n { ...input },\n undefined,\n SetEditorNameInputSchema,\n \"global\",\n );\n\nexport const addDocumentType = (input: AddDocumentTypeInput) =>\n createAction<AddDocumentTypeAction>(\n \"ADD_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n AddDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const removeDocumentType = (input: RemoveDocumentTypeInput) =>\n createAction<RemoveDocumentTypeAction>(\n \"REMOVE_DOCUMENT_TYPE\",\n { ...input },\n undefined,\n RemoveDocumentTypeInputSchema,\n \"global\",\n );\n\nexport const setEditorStatus = (input: SetEditorStatusInput) =>\n createAction<SetEditorStatusAction>(\n \"SET_EDITOR_STATUS\",\n { ...input },\n undefined,\n SetEditorStatusInputSchema,\n \"global\",\n );\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from \"document-model\";\nimport { documentEditorBaseOperationsActions } from \"./gen/creators.js\";\n\n/** Actions for the DocumentEditor document model */\n\nexport const actions = {\n ...baseActions,\n ...documentEditorBaseOperationsActions,\n};\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/document-editor\",\n name: \"Document Editor\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".editor\",\n description:\n \"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 specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\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 examples: [],\n initialValue:\n '{\\n \"name\": \"\",\\n \"documentTypes\": [],\\n \"status\": \"DRAFT\"\\n}',\n },\n },\n modules: [\n {\n id: \"73f6d103-47cb-4074-a736-a3eaf5d079bf\",\n name: \"base_operations\",\n description:\n \"Set the editor's identity, lifecycle status, and the document types it handles.\",\n operations: [\n {\n id: \"50a16f00-d25a-4c97-9632-4ce3b951a402\",\n name: \"SET_EDITOR_NAME\",\n description:\n \"Set the display name of the editor. Also determines the generated folder name under `editors/`.\",\n schema: \"input SetEditorNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"acee4272-f29e-4a19-aaf9-bae2cb6652ab\",\n name: \"ADD_DOCUMENT_TYPE\",\n description:\n \"Register a document type this editor can edit. Caller supplies a stable id so the entry can be removed later.\",\n schema:\n \"input AddDocumentTypeInput {\\n id: OID!\\n documentType: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"6c549776-0fc3-4632-a6c7-8721fa6ee41c\",\n name: \"REMOVE_DOCUMENT_TYPE\",\n description: \"Remove a registered document type entry by its id.\",\n schema: \"input RemoveDocumentTypeInput {\\n id: OID!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"e9aa7f08-553b-452f-a494-126ace6b15f7\",\n name: \"SET_EDITOR_STATUS\",\n description:\n \"Move the editor between DRAFT and CONFIRMED. Codegen only runs once the status is CONFIRMED \\u2014 leaving it DRAFT means no editor files are produced.\",\n schema: \"input SetEditorStatusInput {\\n status: StatusType!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n ],\n },\n ],\n version: 1,\n changeLog: [],\n },\n ],\n};\n","import type { DocumentEditorBaseOperationsOperations } from \"document-models/document-editor/v1\";\n\nexport const documentEditorBaseOperationsOperations: DocumentEditorBaseOperationsOperations =\n {\n setEditorNameOperation(state, action, dispatch) {\n const trimmedName = action.input.name.trim();\n if (trimmedName === \"\") {\n throw new Error(\"Editor name cannot be empty\");\n }\n state.name = trimmedName;\n },\n addDocumentTypeOperation(state, action, dispatch) {\n // Check for duplicate ID\n const existingId = state.documentTypes.find(\n (dt) => dt.id === action.input.id,\n );\n if (existingId) {\n throw new Error(\n `Document type with id \"${action.input.id}\" already exists`,\n );\n }\n\n state.documentTypes.push({\n id: action.input.id,\n documentType: action.input.documentType,\n });\n },\n removeDocumentTypeOperation(state, action, dispatch) {\n state.documentTypes = state.documentTypes.filter(\n (documentType) => documentType.id !== action.input.id,\n );\n },\n setEditorStatusOperation(state, action, dispatch) {\n state.status = action.input.status;\n },\n };\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-argument */\nimport type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { DocumentEditorPHState } from \"document-models/document-editor/v1\";\n\nimport { documentEditorBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\n\nimport {\n AddDocumentTypeInputSchema,\n RemoveDocumentTypeInputSchema,\n SetEditorNameInputSchema,\n SetEditorStatusInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<DocumentEditorPHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_EDITOR_NAME\": {\n SetEditorNameInputSchema().parse(action.input);\n\n documentEditorBaseOperationsOperations.setEditorNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_DOCUMENT_TYPE\": {\n AddDocumentTypeInputSchema().parse(action.input);\n\n documentEditorBaseOperationsOperations.addDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_DOCUMENT_TYPE\": {\n RemoveDocumentTypeInputSchema().parse(action.input);\n\n documentEditorBaseOperationsOperations.removeDocumentTypeOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_EDITOR_STATUS\": {\n SetEditorStatusInputSchema().parse(action.input);\n\n documentEditorBaseOperationsOperations.setEditorStatusOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n default:\n return state;\n }\n};\n\nexport const reducer: Reducer<DocumentEditorPHState> =\n createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const documentEditorDocumentType = \"powerhouse/document-editor\";\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport {\n BaseDocumentHeaderSchema,\n BaseDocumentStateSchema,\n} from \"document-model\";\nimport { z } from \"zod\";\nimport { documentEditorDocumentType } from \"./document-type.js\";\nimport { DocumentEditorStateSchema } from \"./schema/zod.js\";\nimport type { DocumentEditorDocument, DocumentEditorPHState } from \"./types.js\";\n\n/** Schema for validating the header object of a DocumentEditor document */\nexport const DocumentEditorDocumentHeaderSchema =\n BaseDocumentHeaderSchema.extend({\n documentType: z.literal(documentEditorDocumentType),\n });\n\n/** Schema for validating the state object of a DocumentEditor document */\nexport const DocumentEditorPHStateSchema = BaseDocumentStateSchema.extend({\n global: DocumentEditorStateSchema(),\n});\n\nexport const DocumentEditorDocumentSchema = z.object({\n header: DocumentEditorDocumentHeaderSchema,\n state: DocumentEditorPHStateSchema,\n initialState: DocumentEditorPHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a DocumentEditor document state object */\nexport function isDocumentEditorState(\n state: unknown,\n): state is DocumentEditorPHState {\n return DocumentEditorPHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a DocumentEditor document state object */\nexport function assertIsDocumentEditorState(\n state: unknown,\n): asserts state is DocumentEditorPHState {\n DocumentEditorPHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a DocumentEditor document */\nexport function isDocumentEditorDocument(\n document: unknown,\n): document is DocumentEditorDocument {\n return DocumentEditorDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a DocumentEditor document */\nexport function assertIsDocumentEditorDocument(\n document: unknown,\n): asserts document is DocumentEditorDocument {\n DocumentEditorDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport {\n baseCreateDocument,\n baseLoadFromInput,\n baseSaveToFileHandle,\n defaultBaseState,\n generateId,\n} from \"document-model\";\nimport {\n assertIsDocumentEditorDocument,\n assertIsDocumentEditorState,\n isDocumentEditorDocument,\n isDocumentEditorState,\n} from \"./document-schema.js\";\nimport { documentEditorDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n DocumentEditorGlobalState,\n DocumentEditorLocalState,\n DocumentEditorPHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: DocumentEditorGlobalState = {\n name: \"\",\n documentTypes: [],\n status: \"DRAFT\",\n};\nexport const initialLocalState: DocumentEditorLocalState = {};\n\nexport const utils: DocumentModelUtils<DocumentEditorPHState> = {\n fileExtension: \".editor\",\n createState(state) {\n return {\n ...defaultBaseState(),\n global: { ...initialGlobalState, ...state?.global },\n local: { ...initialLocalState, ...state?.local },\n };\n },\n createDocument(state) {\n const document = baseCreateDocument(utils.createState, state);\n\n document.header.documentType = documentEditorDocumentType;\n\n // for backwards compatibility, but this is NOT a valid signed document id\n document.header.id = generateId();\n\n return document;\n },\n saveToFileHandle(document, input) {\n return baseSaveToFileHandle(document, input);\n },\n loadFromInput(input) {\n return baseLoadFromInput(input, reducer);\n },\n isStateOfType(state) {\n return isDocumentEditorState(state);\n },\n assertIsStateOfType(state) {\n return assertIsDocumentEditorState(state);\n },\n isDocumentOfType(document) {\n return isDocumentEditorDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsDocumentEditorDocument(document);\n },\n};\n","export {};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelUtils } from \"document-model\";\nimport type { DocumentEditorPHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the DocumentEditor document model */\nexport const utils: DocumentModelUtils<DocumentEditorPHState> = {\n ...genUtils,\n ...customUtils,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentModelModule } from \"document-model\";\nimport { createState, defaultBaseState } from \"document-model\";\nimport { actions } from \"./actions.js\";\nimport { documentModel } from \"./gen/document-model.js\";\nimport { reducer } from \"./gen/reducer.js\";\nimport type { DocumentEditorPHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the DocumentEditor document type */\nexport const DocumentEditor = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<DocumentEditorPHState>;\n"],"mappings":";;;;;AAmBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,MAAa,mBAAmBA,IAAE,KAAK,CAAC,aAAa,QAAQ,CAAC;AAE9D,SAAgB,6BAEd;AACA,QAAOA,IAAE,OAAO;EACd,cAAcA,IAAE,QAAQ;EACxB,IAAIA,IAAE,QAAQ;EACf,CAAC;;AAGJ,SAAgB,4BAEd;AACA,QAAOA,IAAE,OAAO;EACd,YAAYA,IAAE,QAAQ,sBAAsB,CAAC,UAAU;EACvD,eAAeA,IAAE,MAAMA,IAAE,WAAW,wBAAwB,CAAC,CAAC;EAC9D,MAAMA,IAAE,QAAQ;EAChB,QAAQ;EACT,CAAC;;AAGJ,SAAgB,yBAEd;AACA,QAAOA,IAAE,OAAO;EACd,YAAYA,IAAE,QAAQ,mBAAmB,CAAC,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UAAU,OAAO;AAChC,SAAO,qBAAqB,UAAU,MAAM;;CAE9C,cAAc,OAAO;AACnB,SAAO,kBAAkB,OAAO,QAAQ;;CAE1C,cAAc,OAAO;AACnB,SAAO,sBAAsB,MAAM;;CAErC,oBAAoB,OAAO;AACzB,SAAO,4BAA4B,MAAM;;CAE3C,iBAAiB,UAAU;AACzB,SAAO,yBAAyB,SAAS;;CAE3C,uBAAuB,UAAU;AAC/B,SAAO,+BAA+B,SAAS;;CAElD;;;;;;;AE5DD,MAAa,QAAmD;CAC9D,GAAGC;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -1,95 +0,0 @@
1
- import { a as utils, d as isProcessorModuleDocument, l as assertIsProcessorModuleDocument, t as ProcessorModule } from "./module-BWlCj_0C.js";
2
- import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
3
- import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
4
- //#region document-models/processor-module/v1/gen/controller.ts
5
- /**
6
- * WARNING: DO NOT EDIT
7
- * This file is auto-generated and updated by codegen
8
- */
9
- const ProcessorModuleController = PHDocumentController.forDocumentModel(ProcessorModule);
10
- //#endregion
11
- //#region document-models/processor-module/v1/gen/ph-factories.ts
12
- function defaultGlobalState() {
13
- return {
14
- name: "",
15
- type: "",
16
- documentTypes: [],
17
- status: "DRAFT",
18
- processorApps: []
19
- };
20
- }
21
- function defaultLocalState() {
22
- return {};
23
- }
24
- function defaultPHState() {
25
- return {
26
- ...defaultBaseState(),
27
- global: defaultGlobalState(),
28
- local: defaultLocalState()
29
- };
30
- }
31
- function createGlobalState(state) {
32
- return {
33
- ...defaultGlobalState(),
34
- ...state || {}
35
- };
36
- }
37
- function createLocalState(state) {
38
- return {
39
- ...defaultLocalState(),
40
- ...state || {}
41
- };
42
- }
43
- function createState$1(baseState, globalState, localState) {
44
- return {
45
- ...createBaseState(baseState?.auth, baseState?.document),
46
- global: createGlobalState(globalState),
47
- local: createLocalState(localState)
48
- };
49
- }
50
- /**
51
- * Creates a ProcessorModuleDocument with custom global and local state
52
- * This properly handles the PHBaseState requirements while allowing
53
- * document-specific state to be set.
54
- */
55
- function createProcessorModuleDocument(state) {
56
- return utils.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
57
- }
58
- //#endregion
59
- //#region document-models/processor-module/v1/hooks.ts
60
- /** Hook to get a ProcessorModule document by its id */
61
- function useProcessorModuleDocumentById(documentId) {
62
- const [document, dispatch] = useDocumentById(documentId);
63
- if (!isProcessorModuleDocument(document)) return [void 0, void 0];
64
- return [document, dispatch];
65
- }
66
- /** Hook to get the selected ProcessorModule document */
67
- function useSelectedProcessorModuleDocument() {
68
- const [document, dispatch] = useSelectedDocument();
69
- assertIsProcessorModuleDocument(document);
70
- return [document, dispatch];
71
- }
72
- /** Hook to get all ProcessorModule documents in the selected drive */
73
- function useProcessorModuleDocumentsInSelectedDrive() {
74
- return useDocumentsInSelectedDrive()?.filter(isProcessorModuleDocument);
75
- }
76
- /** Hook to get all ProcessorModule documents in the selected folder */
77
- function useProcessorModuleDocumentsInSelectedFolder() {
78
- return useDocumentsInSelectedFolder()?.filter(isProcessorModuleDocument);
79
- }
80
- //#endregion
81
- //#region document-models/processor-module/upgrades/versions.ts
82
- const supportedVersions = [1];
83
- const latestVersion = supportedVersions[0];
84
- //#endregion
85
- //#region document-models/processor-module/upgrades/upgrade-manifest.ts
86
- const processorModuleUpgradeManifest = {
87
- documentType: "powerhouse/processor",
88
- latestVersion,
89
- supportedVersions,
90
- upgrades: {}
91
- };
92
- //#endregion
93
- export { useProcessorModuleDocumentsInSelectedDrive as a, createProcessorModuleDocument as c, defaultLocalState as d, defaultPHState as f, useProcessorModuleDocumentById as i, createState$1 as l, latestVersion as n, useProcessorModuleDocumentsInSelectedFolder as o, ProcessorModuleController as p, supportedVersions as r, useSelectedProcessorModuleDocument as s, processorModuleUpgradeManifest as t, defaultGlobalState as u };
94
-
95
- //# sourceMappingURL=processor-module-D0lRrrpW.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"processor-module-D0lRrrpW.js","names":["createState"],"sources":["../document-models/processor-module/v1/gen/controller.ts","../document-models/processor-module/v1/gen/ph-factories.ts","../document-models/processor-module/v1/hooks.ts","../document-models/processor-module/upgrades/versions.ts","../document-models/processor-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { ProcessorModule } from \"../module.js\";\nimport type { ProcessorModuleAction, ProcessorModulePHState } from \"./types.js\";\n\nexport const ProcessorModuleController = PHDocumentController.forDocumentModel<\n ProcessorModulePHState,\n ProcessorModuleAction\n>(ProcessorModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating ProcessorModuleDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n ProcessorModuleDocument,\n ProcessorModuleGlobalState,\n ProcessorModuleLocalState,\n ProcessorModulePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): ProcessorModuleGlobalState {\n return {\n name: \"\",\n type: \"\",\n documentTypes: [],\n status: \"DRAFT\",\n processorApps: [],\n };\n}\n\nexport function defaultLocalState(): ProcessorModuleLocalState {\n return {};\n}\n\nexport function defaultPHState(): ProcessorModulePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<ProcessorModuleGlobalState>,\n): ProcessorModuleGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<ProcessorModuleLocalState>,\n): ProcessorModuleLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as ProcessorModuleLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<ProcessorModuleGlobalState>,\n localState?: Partial<ProcessorModuleLocalState>,\n): ProcessorModulePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a ProcessorModuleDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createProcessorModuleDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<ProcessorModuleGlobalState>;\n local?: Partial<ProcessorModuleLocalState>;\n }>,\n): ProcessorModuleDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n ProcessorModuleAction,\n ProcessorModuleDocument,\n} from \"document-models/processor-module/v1\";\nimport {\n assertIsProcessorModuleDocument,\n isProcessorModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a ProcessorModule document by its id */\nexport function useProcessorModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [ProcessorModuleDocument, DocumentDispatch<ProcessorModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isProcessorModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected ProcessorModule document */\nexport function useSelectedProcessorModuleDocument(): [\n ProcessorModuleDocument,\n DocumentDispatch<ProcessorModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsProcessorModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all ProcessorModule documents in the selected drive */\nexport function useProcessorModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isProcessorModuleDocument);\n}\n\n/** Hook to get all ProcessorModule documents in the selected folder */\nexport function useProcessorModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isProcessorModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const processorModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/processor\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,4BAA4B,qBAAqB,iBAG5D,gBAAgB;;;ACIlB,SAAgB,qBAAiD;AAC/D,QAAO;EACL,MAAM;EACN,MAAM;EACN,eAAe,EAAE;EACjB,QAAQ;EACR,eAAe,EAAE;EAClB;;AAGH,SAAgB,oBAA+C;AAC7D,QAAO,EAAE;;AAGX,SAAgB,iBAAyC;AACvD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OAC4B;AAC5B,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OAC2B;AAC3B,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACwB;AACxB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,8BACd,OAMyB;AAWzB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;ACnEH,SAAgB,+BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,0BAA0B,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACvE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,qCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,iCAAgC,SAAS;AACzC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,6CAA6C;AAE3D,QADiC,6BAA6B,EAC7B,OAAO,0BAA0B;;;AAIpE,SAAgB,8CAA8C;AAE5D,QADkC,8BAA8B,EAC9B,OAAO,0BAA0B;;;;ACnDrE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,iCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
@@ -1,92 +0,0 @@
1
- import { a as utils, d as isSubgraphModuleDocument, l as assertIsSubgraphModuleDocument, t as SubgraphModule } from "./module-BoGgbKmO.js";
2
- import { PHDocumentController, createBaseState, defaultBaseState } from "document-model";
3
- import { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from "@powerhousedao/reactor-browser";
4
- //#region document-models/subgraph-module/v1/gen/controller.ts
5
- /**
6
- * WARNING: DO NOT EDIT
7
- * This file is auto-generated and updated by codegen
8
- */
9
- const SubgraphModuleController = PHDocumentController.forDocumentModel(SubgraphModule);
10
- //#endregion
11
- //#region document-models/subgraph-module/v1/gen/ph-factories.ts
12
- function defaultGlobalState() {
13
- return {
14
- name: "",
15
- status: "DRAFT"
16
- };
17
- }
18
- function defaultLocalState() {
19
- return {};
20
- }
21
- function defaultPHState() {
22
- return {
23
- ...defaultBaseState(),
24
- global: defaultGlobalState(),
25
- local: defaultLocalState()
26
- };
27
- }
28
- function createGlobalState(state) {
29
- return {
30
- ...defaultGlobalState(),
31
- ...state || {}
32
- };
33
- }
34
- function createLocalState(state) {
35
- return {
36
- ...defaultLocalState(),
37
- ...state || {}
38
- };
39
- }
40
- function createState$1(baseState, globalState, localState) {
41
- return {
42
- ...createBaseState(baseState?.auth, baseState?.document),
43
- global: createGlobalState(globalState),
44
- local: createLocalState(localState)
45
- };
46
- }
47
- /**
48
- * Creates a SubgraphModuleDocument with custom global and local state
49
- * This properly handles the PHBaseState requirements while allowing
50
- * document-specific state to be set.
51
- */
52
- function createSubgraphModuleDocument(state) {
53
- return utils.createDocument(state ? createState$1(createBaseState(state.auth, state.document), state.global, state.local) : void 0);
54
- }
55
- //#endregion
56
- //#region document-models/subgraph-module/v1/hooks.ts
57
- /** Hook to get a SubgraphModule document by its id */
58
- function useSubgraphModuleDocumentById(documentId) {
59
- const [document, dispatch] = useDocumentById(documentId);
60
- if (!isSubgraphModuleDocument(document)) return [void 0, void 0];
61
- return [document, dispatch];
62
- }
63
- /** Hook to get the selected SubgraphModule document */
64
- function useSelectedSubgraphModuleDocument() {
65
- const [document, dispatch] = useSelectedDocument();
66
- assertIsSubgraphModuleDocument(document);
67
- return [document, dispatch];
68
- }
69
- /** Hook to get all SubgraphModule documents in the selected drive */
70
- function useSubgraphModuleDocumentsInSelectedDrive() {
71
- return useDocumentsInSelectedDrive()?.filter(isSubgraphModuleDocument);
72
- }
73
- /** Hook to get all SubgraphModule documents in the selected folder */
74
- function useSubgraphModuleDocumentsInSelectedFolder() {
75
- return useDocumentsInSelectedFolder()?.filter(isSubgraphModuleDocument);
76
- }
77
- //#endregion
78
- //#region document-models/subgraph-module/upgrades/versions.ts
79
- const supportedVersions = [1];
80
- const latestVersion = supportedVersions[0];
81
- //#endregion
82
- //#region document-models/subgraph-module/upgrades/upgrade-manifest.ts
83
- const subgraphModuleUpgradeManifest = {
84
- documentType: "powerhouse/subgraph",
85
- latestVersion,
86
- supportedVersions,
87
- upgrades: {}
88
- };
89
- //#endregion
90
- export { useSubgraphModuleDocumentById as a, createState$1 as c, defaultLocalState as d, defaultPHState as f, useSelectedSubgraphModuleDocument as i, createSubgraphModuleDocument as l, latestVersion as n, useSubgraphModuleDocumentsInSelectedDrive as o, SubgraphModuleController as p, supportedVersions as r, useSubgraphModuleDocumentsInSelectedFolder as s, subgraphModuleUpgradeManifest as t, defaultGlobalState as u };
91
-
92
- //# sourceMappingURL=subgraph-module-B3ipwOza.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subgraph-module-B3ipwOza.js","names":["createState"],"sources":["../document-models/subgraph-module/v1/gen/controller.ts","../document-models/subgraph-module/v1/gen/ph-factories.ts","../document-models/subgraph-module/v1/hooks.ts","../document-models/subgraph-module/upgrades/versions.ts","../document-models/subgraph-module/upgrades/upgrade-manifest.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { PHDocumentController } from \"document-model\";\nimport { SubgraphModule } from \"../module.js\";\nimport type { SubgraphModuleAction, SubgraphModulePHState } from \"./types.js\";\n\nexport const SubgraphModuleController = PHDocumentController.forDocumentModel<\n SubgraphModulePHState,\n SubgraphModuleAction\n>(SubgraphModule);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating SubgraphModuleDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n SubgraphModuleDocument,\n SubgraphModuleGlobalState,\n SubgraphModuleLocalState,\n SubgraphModulePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): SubgraphModuleGlobalState {\n return {\n name: \"\",\n status: \"DRAFT\",\n };\n}\n\nexport function defaultLocalState(): SubgraphModuleLocalState {\n return {};\n}\n\nexport function defaultPHState(): SubgraphModulePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<SubgraphModuleGlobalState>,\n): SubgraphModuleGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<SubgraphModuleLocalState>,\n): SubgraphModuleLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as SubgraphModuleLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<SubgraphModuleGlobalState>,\n localState?: Partial<SubgraphModuleLocalState>,\n): SubgraphModulePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a SubgraphModuleDocument with custom global and local state\n * This properly handles the PHBaseState requirements while allowing\n * document-specific state to be set.\n */\nexport function createSubgraphModuleDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<SubgraphModuleGlobalState>;\n local?: Partial<SubgraphModuleLocalState>;\n }>,\n): SubgraphModuleDocument {\n const document = utils.createDocument(\n state\n ? createState(\n createBaseState(state.auth, state.document),\n state.global,\n state.local,\n )\n : undefined,\n );\n\n return document;\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from \"@powerhousedao/reactor-browser\";\nimport {\n useDocumentById,\n useDocumentsInSelectedDrive,\n useDocumentsInSelectedFolder,\n useSelectedDocument,\n} from \"@powerhousedao/reactor-browser\";\nimport type {\n SubgraphModuleAction,\n SubgraphModuleDocument,\n} from \"document-models/subgraph-module/v1\";\nimport {\n assertIsSubgraphModuleDocument,\n isSubgraphModuleDocument,\n} from \"./gen/document-schema.js\";\n\n/** Hook to get a SubgraphModule document by its id */\nexport function useSubgraphModuleDocumentById(\n documentId: string | null | undefined,\n):\n | [SubgraphModuleDocument, DocumentDispatch<SubgraphModuleAction>]\n | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isSubgraphModuleDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected SubgraphModule document */\nexport function useSelectedSubgraphModuleDocument(): [\n SubgraphModuleDocument,\n DocumentDispatch<SubgraphModuleAction>,\n] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsSubgraphModuleDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all SubgraphModule documents in the selected drive */\nexport function useSubgraphModuleDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isSubgraphModuleDocument);\n}\n\n/** Hook to get all SubgraphModule documents in the selected folder */\nexport function useSubgraphModuleDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isSubgraphModuleDocument);\n}\n","export const supportedVersions = [1] as const;\n\nexport const latestVersion = supportedVersions[0];\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { UpgradeManifest } from \"document-model\";\nimport { latestVersion, supportedVersions } from \"./versions.js\";\n\nexport const subgraphModuleUpgradeManifest: UpgradeManifest<\n typeof supportedVersions\n> = {\n documentType: \"powerhouse/subgraph\",\n latestVersion,\n supportedVersions,\n upgrades: {},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,2BAA2B,qBAAqB,iBAG3D,eAAe;;;ACIjB,SAAgB,qBAAgD;AAC9D,QAAO;EACL,MAAM;EACN,QAAQ;EACT;;AAGH,SAAgB,oBAA8C;AAC5D,QAAO,EAAE;;AAGX,SAAgB,iBAAwC;AACtD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OAC2B;AAC3B,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OAC0B;AAC1B,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACuB;AACvB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,6BACd,OAMwB;AAWxB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL;;;;;AChEH,SAAgB,8BACd,YAGyB;CACzB,MAAM,CAAC,UAAU,YAAY,gBAAgB,WAAW;AACxD,KAAI,CAAC,yBAAyB,SAAS,CAAE,QAAO,CAAC,KAAA,GAAW,KAAA,EAAU;AACtE,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,oCAGd;CACA,MAAM,CAAC,UAAU,YAAY,qBAAqB;AAElD,gCAA+B,SAAS;AACxC,QAAO,CAAC,UAAU,SAAS;;;AAI7B,SAAgB,4CAA4C;AAE1D,QADiC,6BAA6B,EAC7B,OAAO,yBAAyB;;;AAInE,SAAgB,6CAA6C;AAE3D,QADkC,8BAA8B,EAC9B,OAAO,yBAAyB;;;;ACnDpE,MAAa,oBAAoB,CAAC,EAAE;AAEpC,MAAa,gBAAgB,kBAAkB;;;ACK/C,MAAa,gCAET;CACF,cAAc;CACd;CACA;CACA,UAAU,EAAE;CACb"}
@@ -1,8 +0,0 @@
1
- import { t as codegenFactoryBuilder } from "./factory-BBzu0pRO.js";
2
- import { t as vetraReadModelFactoryBuilder } from "./factory-D8ZDOMP3.js";
3
- //#region processors/switchboard.ts
4
- const processorFactoryBuilders = [vetraReadModelFactoryBuilder, codegenFactoryBuilder];
5
- //#endregion
6
- export { processorFactoryBuilders };
7
-
8
- //# sourceMappingURL=switchboard-D69j45OO.js.map