@powerhousedao/vetra 6.1.0-dev.1 → 6.1.0-dev.11

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 (82) hide show
  1. package/dist/{app-module-D_cAVvt0.js → app-module-CHTbm_9a.js} +3 -3
  2. package/dist/{app-module-D_cAVvt0.js.map → app-module-CHTbm_9a.js.map} +1 -1
  3. package/dist/codegen/index.js +8 -8
  4. package/dist/{document-editor-1NFr9t3a.js → document-editor--pHInvi3.js} +3 -3
  5. package/dist/{document-editor-1NFr9t3a.js.map → document-editor--pHInvi3.js.map} +1 -1
  6. package/dist/document-models/app-module/index.js +4 -4
  7. package/dist/document-models/document-editor/index.js +4 -4
  8. package/dist/document-models/index.js +5 -5
  9. package/dist/document-models/processor-module/index.js +4 -4
  10. package/dist/document-models/subgraph-module/index.js +4 -4
  11. package/dist/document-models/vetra-package/index.js +2 -2
  12. package/dist/{editor-BwbJ65NZ.js → editor-Bba0kIIP.js} +4 -4
  13. package/dist/editor-Bba0kIIP.js.map +1 -0
  14. package/dist/{editor-DWufJcmG.js → editor-BsM-iHdN.js} +2 -2
  15. package/dist/{editor-DWufJcmG.js.map → editor-BsM-iHdN.js.map} +1 -1
  16. package/dist/{editor-CJAn9WTA.js → editor-BuV8eJum.js} +3 -3
  17. package/dist/{editor-CJAn9WTA.js.map → editor-BuV8eJum.js.map} +1 -1
  18. package/dist/{editor-DabfMxkF.js → editor-CsLmxkXj.js} +11 -11
  19. package/dist/{editor-DabfMxkF.js.map → editor-CsLmxkXj.js.map} +1 -1
  20. package/dist/{editor-WWMGVelM.js → editor-D-IzvjvS.js} +2 -2
  21. package/dist/{editor-WWMGVelM.js.map → editor-D-IzvjvS.js.map} +1 -1
  22. package/dist/editors/index.js +1 -1
  23. package/dist/{factory-CjFOr45i.js → factory-4o53XqHE.js} +3 -3
  24. package/dist/{factory-CjFOr45i.js.map → factory-4o53XqHE.js.map} +1 -1
  25. package/dist/{factory-KNJv2C2k.js → factory-Dexxeo5C.js} +5 -4
  26. package/dist/factory-Dexxeo5C.js.map +1 -0
  27. package/dist/index-BPoF8P3O.d.ts.map +1 -1
  28. package/dist/index-BoGed4Fa.d.ts.map +1 -1
  29. package/dist/index-C4s0aLv3.d.ts.map +1 -1
  30. package/dist/index-ClaOdn_F.d.ts.map +1 -1
  31. package/dist/index.js +6 -6
  32. package/dist/{logger-DLnGUZk9.js → logger-CYkStoEb.js} +1 -1
  33. package/dist/{logger-DLnGUZk9.js.map → logger-CYkStoEb.js.map} +1 -1
  34. package/dist/{module-pK0hpO6c.js → module-BAE-Cdy6.js} +2 -2
  35. package/dist/{module-pK0hpO6c.js.map → module-BAE-Cdy6.js.map} +1 -1
  36. package/dist/{module-ryHOwQp-.js → module-BSpVJEfF.js} +2 -2
  37. package/dist/{module-ryHOwQp-.js.map → module-BSpVJEfF.js.map} +1 -1
  38. package/dist/{module-dDKBr6QY.js → module-BV5uKc_X.js} +11 -11
  39. package/dist/module-BV5uKc_X.js.map +1 -0
  40. package/dist/{module-jWN6gsmi.js → module-CC1BnDod.js} +6 -6
  41. package/dist/{module-jWN6gsmi.js.map → module-CC1BnDod.js.map} +1 -1
  42. package/dist/{module-x2Liyk0-.js → module-D8H1Oetz.js} +2 -2
  43. package/dist/{module-x2Liyk0-.js.map → module-D8H1Oetz.js.map} +1 -1
  44. package/dist/module-Drla4Vmn.d.ts.map +1 -1
  45. package/dist/{module-DPyV2vUY.js → module-wcMEGEcg.js} +2 -2
  46. package/dist/{module-DPyV2vUY.js.map → module-wcMEGEcg.js.map} +1 -1
  47. package/dist/{ph-factories-B6PSPkPQ.js → ph-factories-4ifueM1H.js} +2 -2
  48. package/dist/{ph-factories-B6PSPkPQ.js.map → ph-factories-4ifueM1H.js.map} +1 -1
  49. package/dist/{ph-factories-CJXfT_Z1.js → ph-factories-BIe1kTJb.js} +2 -2
  50. package/dist/{ph-factories-CJXfT_Z1.js.map → ph-factories-BIe1kTJb.js.map} +1 -1
  51. package/dist/{ph-factories-B0_E6LY6.js → ph-factories-Bep45EPP.js} +2 -2
  52. package/dist/{ph-factories-B0_E6LY6.js.map → ph-factories-Bep45EPP.js.map} +1 -1
  53. package/dist/{ph-factories-Bn_HTUfT.js → ph-factories-D6cQKmns.js} +2 -2
  54. package/dist/{ph-factories-Bn_HTUfT.js.map → ph-factories-D6cQKmns.js.map} +1 -1
  55. package/dist/{processor-module-B7IAItXQ.js → processor-module-D7kxj_HT.js} +3 -3
  56. package/dist/{processor-module-B7IAItXQ.js.map → processor-module-D7kxj_HT.js.map} +1 -1
  57. package/dist/processors/codegen/index.js +1 -1
  58. package/dist/processors/index.js +1 -1
  59. package/dist/processors/vetra-read-model/index.js +1 -1
  60. package/dist/{subgraph-module-CfzSZTNC.js → subgraph-module-DqsecQjc.js} +3 -3
  61. package/dist/{subgraph-module-CfzSZTNC.js.map → subgraph-module-DqsecQjc.js.map} +1 -1
  62. package/dist/switchboard-C2L9IAfe.js +8 -0
  63. package/dist/{switchboard-Ciqw67L4.js.map → switchboard-C2L9IAfe.js.map} +1 -1
  64. package/dist/{utils-BRx88WW3.js → utils-A2M9gfq4.js} +7 -7
  65. package/dist/utils-A2M9gfq4.js.map +1 -0
  66. package/dist/{utils-Byjf33qt.js → utils-CSA5LPj9.js} +6 -6
  67. package/dist/utils-CSA5LPj9.js.map +1 -0
  68. package/dist/{utils-CnZc-0E4.js → utils-D3lwZ3L6.js} +5 -5
  69. package/dist/utils-D3lwZ3L6.js.map +1 -0
  70. package/dist/{utils-CWO5kDus.js → utils-DL6w0tV1.js} +3 -3
  71. package/dist/utils-DL6w0tV1.js.map +1 -0
  72. package/dist/{vetra-package-BgTjv343.js → vetra-package-C0hmmUZX.js} +2 -2
  73. package/dist/{vetra-package-BgTjv343.js.map → vetra-package-C0hmmUZX.js.map} +1 -1
  74. package/package.json +10 -8
  75. package/dist/editor-BwbJ65NZ.js.map +0 -1
  76. package/dist/factory-KNJv2C2k.js.map +0 -1
  77. package/dist/module-dDKBr6QY.js.map +0 -1
  78. package/dist/switchboard-Ciqw67L4.js +0 -8
  79. package/dist/utils-BRx88WW3.js.map +0 -1
  80. package/dist/utils-Byjf33qt.js.map +0 -1
  81. package/dist/utils-CWO5kDus.js.map +0 -1
  82. package/dist/utils-CnZc-0E4.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"module-pK0hpO6c.js","names":["genUtils","customUtils"],"sources":["../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/src/utils.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM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"}
1
+ {"version":3,"file":"module-BAE-Cdy6.js","names":["genUtils","customUtils"],"sources":["../document-models/app-module/v1/gen/document-model.ts","../document-models/app-module/v1/src/utils.ts","../document-models/app-module/v1/utils.ts","../document-models/app-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cACE;IACH;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACF;GACF,EACD;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY,CACV;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QACE;IACF,UAAU;IACV,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO;IACR,CACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AEpHD,MAAa,QAA8C;CACzD,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,YAAY;CACvB,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
- import { f as reducer, p as actions, r as utils$1 } from "./utils-CnZc-0E4.js";
2
+ import { f as reducer, p as actions, r as utils$1 } from "./utils-D3lwZ3L6.js";
3
3
  import { createState, defaultBaseState } from "document-model";
4
4
  //#region document-models/document-editor/v1/gen/document-model.ts
5
5
  const documentModel = {
@@ -102,4 +102,4 @@ const DocumentEditor = {
102
102
  //#endregion
103
103
  export { utils as n, documentModel as r, DocumentEditor as t };
104
104
 
105
- //# sourceMappingURL=module-ryHOwQp-.js.map
105
+ //# sourceMappingURL=module-BSpVJEfF.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-ryHOwQp-.js","names":["genUtils","customUtils"],"sources":["../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/src/utils.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cACE;IACH;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aAAa;KACb,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AEhFD,MAAa,QAAmD;CAC9D,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
1
+ {"version":3,"file":"module-BSpVJEfF.js","names":["genUtils","customUtils"],"sources":["../document-models/document-editor/v1/gen/document-model.ts","../document-models/document-editor/v1/src/utils.ts","../document-models/document-editor/v1/utils.ts","../document-models/document-editor/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cACE;IACH;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aAAa;KACb,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AEhFD,MAAa,QAAmD;CAC9D,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -254,38 +254,38 @@ const documentModel = {
254
254
  //#endregion
255
255
  //#region document-models/vetra-package/v1/src/reducers/base-operations.ts
256
256
  const vetraPackageBaseOperationsOperations = {
257
- setPackageNameOperation(state, action, dispatch) {
257
+ setPackageNameOperation(state, action, _dispatch) {
258
258
  state.name = action.input.name;
259
259
  },
260
- setPackageDescriptionOperation(state, action, dispatch) {
260
+ setPackageDescriptionOperation(state, action, _dispatch) {
261
261
  state.description = action.input.description;
262
262
  },
263
- setPackageCategoryOperation(state, action, dispatch) {
263
+ setPackageCategoryOperation(state, action, _dispatch) {
264
264
  state.category = action.input.category;
265
265
  },
266
- setPackageAuthorOperation(state, action, dispatch) {
266
+ setPackageAuthorOperation(state, action, _dispatch) {
267
267
  state.author = {
268
268
  name: action.input.name ?? null,
269
269
  website: action.input.website ?? null
270
270
  };
271
271
  },
272
- setPackageAuthorNameOperation(state, action, dispatch) {
272
+ setPackageAuthorNameOperation(state, action, _dispatch) {
273
273
  state.author.name = action.input.name;
274
274
  },
275
- setPackageAuthorWebsiteOperation(state, action, dispatch) {
275
+ setPackageAuthorWebsiteOperation(state, action, _dispatch) {
276
276
  state.author.website = action.input.website;
277
277
  },
278
- addPackageKeywordOperation(state, action, dispatch) {
278
+ addPackageKeywordOperation(state, action, _dispatch) {
279
279
  if (state.keywords.find((keyword) => keyword.id === action.input.id)) throw new Error(`Keyword with id "${action.input.id}" already exists`);
280
280
  state.keywords.push(action.input);
281
281
  },
282
- removePackageKeywordOperation(state, action, dispatch) {
282
+ removePackageKeywordOperation(state, action, _dispatch) {
283
283
  state.keywords = state.keywords.filter((keyword) => keyword.id !== action.input.id);
284
284
  },
285
- setPackageGithubUrlOperation(state, action, dispatch) {
285
+ setPackageGithubUrlOperation(state, action, _dispatch) {
286
286
  state.githubUrl = action.input.url;
287
287
  },
288
- setPackageNpmUrlOperation(state, action, dispatch) {
288
+ setPackageNpmUrlOperation(state, action, _dispatch) {
289
289
  state.npmUrl = action.input.url;
290
290
  }
291
291
  };
@@ -454,4 +454,4 @@ const VetraPackage = {
454
454
  //#endregion
455
455
  export { KeywordSchema as A, VetraPackageStateSchema as B, setPackageCategory as C, setPackageNpmUrl as D, setPackageName as E, SetPackageCategoryInputSchema as F, isDefinedNonNullAny as H, SetPackageDescriptionInputSchema as I, SetPackageGithubUrlInputSchema as L, SetPackageAuthorInputSchema as M, SetPackageAuthorNameInputSchema as N, AddPackageKeywordInputSchema as O, SetPackageAuthorWebsiteInputSchema as P, SetPackageNameInputSchema as R, setPackageAuthorWebsite as S, setPackageGithubUrl as T, definedNonNullAnySchema as V, addPackageKeyword as _, utils$1 as a, setPackageAuthor as b, VetraPackagePHStateSchema as c, isVetraPackageDocument as d, isVetraPackageState as f, actions as g, documentModel as h, initialLocalState as i, RemovePackageKeywordInputSchema as j, AuthorSchema as k, assertIsVetraPackageDocument as l, reducer as m, utils as n, VetraPackageDocumentHeaderSchema as o, vetraPackageDocumentType as p, initialGlobalState as r, VetraPackageDocumentSchema as s, VetraPackage as t, assertIsVetraPackageState as u, creators_exports as v, setPackageDescription as w, setPackageAuthorName as x, removePackageKeyword as y, SetPackageNpmUrlInputSchema as z };
456
456
 
457
- //# sourceMappingURL=module-dDKBr6QY.js.map
457
+ //# sourceMappingURL=module-BV5uKc_X.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module-BV5uKc_X.js","names":["z","vetraPackageBaseOperationsActions","utils","genUtils","customUtils"],"sources":["../document-models/vetra-package/v1/gen/schema/zod.ts","../document-models/vetra-package/v1/gen/base-operations/creators.ts","../document-models/vetra-package/v1/actions.ts","../document-models/vetra-package/v1/gen/document-model.ts","../document-models/vetra-package/v1/src/reducers/base-operations.ts","../document-models/vetra-package/v1/gen/reducer.ts","../document-models/vetra-package/v1/gen/document-type.ts","../document-models/vetra-package/v1/gen/document-schema.ts","../document-models/vetra-package/v1/gen/utils.ts","../document-models/vetra-package/v1/src/utils.ts","../document-models/vetra-package/v1/utils.ts","../document-models/vetra-package/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 AddPackageKeywordInput,\n Author,\n Keyword,\n RemovePackageKeywordInput,\n SetPackageAuthorInput,\n SetPackageAuthorNameInput,\n SetPackageAuthorWebsiteInput,\n SetPackageCategoryInput,\n SetPackageDescriptionInput,\n SetPackageGithubUrlInput,\n SetPackageNameInput,\n SetPackageNpmUrlInput,\n VetraPackageState,\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 function AddPackageKeywordInputSchema(): z.ZodObject<\n Properties<AddPackageKeywordInput>\n> {\n return z.object({\n id: z.string(),\n label: z.string(),\n });\n}\n\nexport function AuthorSchema(): z.ZodObject<Properties<Author>> {\n return z.object({\n __typename: z.literal(\"Author\").optional(),\n name: z.string().nullish(),\n website: z.url().nullish(),\n });\n}\n\nexport function KeywordSchema(): z.ZodObject<Properties<Keyword>> {\n return z.object({\n __typename: z.literal(\"Keyword\").optional(),\n id: z.string(),\n label: z.string(),\n });\n}\n\nexport function RemovePackageKeywordInputSchema(): z.ZodObject<\n Properties<RemovePackageKeywordInput>\n> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function SetPackageAuthorInputSchema(): z.ZodObject<\n Properties<SetPackageAuthorInput>\n> {\n return z.object({\n name: z.string().nullish(),\n website: z.url().nullish(),\n });\n}\n\nexport function SetPackageAuthorNameInputSchema(): z.ZodObject<\n Properties<SetPackageAuthorNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetPackageAuthorWebsiteInputSchema(): z.ZodObject<\n Properties<SetPackageAuthorWebsiteInput>\n> {\n return z.object({\n website: z.url(),\n });\n}\n\nexport function SetPackageCategoryInputSchema(): z.ZodObject<\n Properties<SetPackageCategoryInput>\n> {\n return z.object({\n category: z.string(),\n });\n}\n\nexport function SetPackageDescriptionInputSchema(): z.ZodObject<\n Properties<SetPackageDescriptionInput>\n> {\n return z.object({\n description: z.string(),\n });\n}\n\nexport function SetPackageGithubUrlInputSchema(): z.ZodObject<\n Properties<SetPackageGithubUrlInput>\n> {\n return z.object({\n url: z.url(),\n });\n}\n\nexport function SetPackageNameInputSchema(): z.ZodObject<\n Properties<SetPackageNameInput>\n> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetPackageNpmUrlInputSchema(): z.ZodObject<\n Properties<SetPackageNpmUrlInput>\n> {\n return z.object({\n url: z.url(),\n });\n}\n\nexport function VetraPackageStateSchema(): z.ZodObject<\n Properties<VetraPackageState>\n> {\n return z.object({\n __typename: z.literal(\"VetraPackageState\").optional(),\n author: z.lazy(() => AuthorSchema()),\n category: z.string().nullish(),\n description: z.string().nullish(),\n githubUrl: z.url().nullish(),\n keywords: z.array(z.lazy(() => KeywordSchema())),\n name: z.string().nullish(),\n npmUrl: z.url().nullish(),\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 AddPackageKeywordInputSchema,\n RemovePackageKeywordInputSchema,\n SetPackageAuthorInputSchema,\n SetPackageAuthorNameInputSchema,\n SetPackageAuthorWebsiteInputSchema,\n SetPackageCategoryInputSchema,\n SetPackageDescriptionInputSchema,\n SetPackageGithubUrlInputSchema,\n SetPackageNameInputSchema,\n SetPackageNpmUrlInputSchema,\n} from \"../schema/zod.js\";\nimport type {\n AddPackageKeywordInput,\n RemovePackageKeywordInput,\n SetPackageAuthorInput,\n SetPackageAuthorNameInput,\n SetPackageAuthorWebsiteInput,\n SetPackageCategoryInput,\n SetPackageDescriptionInput,\n SetPackageGithubUrlInput,\n SetPackageNameInput,\n SetPackageNpmUrlInput,\n} from \"../types.js\";\nimport type {\n AddPackageKeywordAction,\n RemovePackageKeywordAction,\n SetPackageAuthorAction,\n SetPackageAuthorNameAction,\n SetPackageAuthorWebsiteAction,\n SetPackageCategoryAction,\n SetPackageDescriptionAction,\n SetPackageGithubUrlAction,\n SetPackageNameAction,\n SetPackageNpmUrlAction,\n} from \"./actions.js\";\n\nexport const setPackageName = (input: SetPackageNameInput) =>\n createAction<SetPackageNameAction>(\n \"SET_PACKAGE_NAME\",\n { ...input },\n undefined,\n SetPackageNameInputSchema,\n \"global\",\n );\n\nexport const setPackageDescription = (input: SetPackageDescriptionInput) =>\n createAction<SetPackageDescriptionAction>(\n \"SET_PACKAGE_DESCRIPTION\",\n { ...input },\n undefined,\n SetPackageDescriptionInputSchema,\n \"global\",\n );\n\nexport const setPackageCategory = (input: SetPackageCategoryInput) =>\n createAction<SetPackageCategoryAction>(\n \"SET_PACKAGE_CATEGORY\",\n { ...input },\n undefined,\n SetPackageCategoryInputSchema,\n \"global\",\n );\n\nexport const setPackageAuthor = (input: SetPackageAuthorInput) =>\n createAction<SetPackageAuthorAction>(\n \"SET_PACKAGE_AUTHOR\",\n { ...input },\n undefined,\n SetPackageAuthorInputSchema,\n \"global\",\n );\n\nexport const setPackageAuthorName = (input: SetPackageAuthorNameInput) =>\n createAction<SetPackageAuthorNameAction>(\n \"SET_PACKAGE_AUTHOR_NAME\",\n { ...input },\n undefined,\n SetPackageAuthorNameInputSchema,\n \"global\",\n );\n\nexport const setPackageAuthorWebsite = (input: SetPackageAuthorWebsiteInput) =>\n createAction<SetPackageAuthorWebsiteAction>(\n \"SET_PACKAGE_AUTHOR_WEBSITE\",\n { ...input },\n undefined,\n SetPackageAuthorWebsiteInputSchema,\n \"global\",\n );\n\nexport const addPackageKeyword = (input: AddPackageKeywordInput) =>\n createAction<AddPackageKeywordAction>(\n \"ADD_PACKAGE_KEYWORD\",\n { ...input },\n undefined,\n AddPackageKeywordInputSchema,\n \"global\",\n );\n\nexport const removePackageKeyword = (input: RemovePackageKeywordInput) =>\n createAction<RemovePackageKeywordAction>(\n \"REMOVE_PACKAGE_KEYWORD\",\n { ...input },\n undefined,\n RemovePackageKeywordInputSchema,\n \"global\",\n );\n\nexport const setPackageGithubUrl = (input: SetPackageGithubUrlInput) =>\n createAction<SetPackageGithubUrlAction>(\n \"SET_PACKAGE_GITHUB_URL\",\n { ...input },\n undefined,\n SetPackageGithubUrlInputSchema,\n \"global\",\n );\n\nexport const setPackageNpmUrl = (input: SetPackageNpmUrlInput) =>\n createAction<SetPackageNpmUrlAction>(\n \"SET_PACKAGE_NPM_URL\",\n { ...input },\n undefined,\n SetPackageNpmUrlInputSchema,\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 { vetraPackageBaseOperationsActions } from \"./gen/creators.js\";\n\n/** Actions for the VetraPackage document model */\n\nexport const actions = { ...baseActions, ...vetraPackageBaseOperationsActions };\n","import type { DocumentModelGlobalState } from \"document-model\";\n\nexport const documentModel: DocumentModelGlobalState = {\n id: \"powerhouse/package\",\n name: \"Vetra Package\",\n author: {\n name: \"Powerhouse\",\n website: \"https://powerhouse.inc\",\n },\n extension: \".pkg\",\n description:\n \"Manifest for a Vetra Reactor Package: bundles the metadata (name, description, category, author, keywords, source links) used to publish and discover the package in the Powerhouse ecosystem. Create one Vetra Package document per project; the document models, editors, processors, and subgraphs you add to the project are registered against this package at build time.\",\n specifications: [\n {\n state: {\n local: {\n schema: \"\",\n examples: [],\n initialValue: \"\",\n },\n global: {\n schema:\n '\"\"\"\\nPackage metadata used to publish a Vetra Reactor Package to npm and surface\\nit inside Connect/Switchboard. All fields are optional so a package can be\\ncreated empty and filled in incrementally during development.\\n\"\"\"\\ntype VetraPackageState {\\n \"\"\"Human-readable package name (e.g. \\'Pizza Plaza\\'). Distinct from the npm package id.\"\"\"\\n name: String\\n \"\"\"One-paragraph summary of what the package provides. Shown on package listing pages.\"\"\"\\n description: String\\n \"\"\"Free-form category label used to group packages in directories (e.g. \\'Finance\\', \\'Productivity\\').\"\"\"\\n category: String\\n \"\"\"Author/maintainer information surfaced in the published package metadata.\"\"\"\\n author: Author!\\n \"\"\"Search keywords associated with the package. Each keyword has a stable id so it can be removed individually.\"\"\"\\n keywords: [Keyword!]!\\n \"\"\"Public source code URL (typically a GitHub repository).\"\"\"\\n githubUrl: URL\\n \"\"\"Published npm package URL. Set once the package has been released.\"\"\"\\n npmUrl: URL\\n}\\n\\n\"\"\"Author/maintainer of the Vetra Package.\"\"\"\\ntype Author {\\n \"\"\"Display name of the author or organization.\"\"\"\\n name: String\\n \"\"\"Author\\'s website URL.\"\"\"\\n website: URL\\n}\\n\\n\"\"\"A single search keyword attached to the package.\"\"\"\\ntype Keyword {\\n \"\"\"Stable identifier for the keyword entry; used to remove it.\"\"\"\\n id: OID!\\n \"\"\"Display label for the keyword (e.g. \\'invoicing\\', \\'defi\\').\"\"\"\\n label: String!\\n}',\n examples: [],\n initialValue:\n '{\\n \"name\": null,\\n \"description\": null,\\n \"category\": null,\\n \"author\": {\\n \"name\": null,\\n \"website\": null\\n },\\n \"keywords\": [],\\n \"githubUrl\": null,\\n \"npmUrl\": null\\n}',\n },\n },\n modules: [\n {\n id: \"a6156f32-8120-43a5-be8b-51c7feaa3460\",\n name: \"base_operations\",\n description:\n \"Setters for the package's identity, author, keywords, and source/distribution links.\",\n operations: [\n {\n id: \"33f2eab7-9e07-497f-a4e6-53e50968c3c9\",\n name: \"SET_PACKAGE_NAME\",\n description:\n \"Set the human-readable package name shown in listings and the Connect UI.\",\n schema: \"input SetPackageNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"a07bee80-c2a8-40d7-891b-822ee298d7d9\",\n name: \"SET_PACKAGE_DESCRIPTION\",\n description:\n \"Set the one-paragraph summary describing what the package does.\",\n schema:\n \"input SetPackageDescriptionInput {\\n description: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"f3ad82f8-580a-4c6e-b930-e203cda998bb\",\n name: \"SET_PACKAGE_CATEGORY\",\n description:\n 'Set the category label used to group the package in directories (e.g. \"Finance\", \"Productivity\").',\n schema: \"input SetPackageCategoryInput {\\n category: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"67f43579-ce98-47e6-bf48-27c0f44818b9\",\n name: \"SET_PACKAGE_AUTHOR\",\n description:\n \"Replace the author block in a single call. Either field may be omitted to clear it.\",\n schema:\n \"input SetPackageAuthorInput {\\n name: OID\\n website: URL\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"94ba44c4-9627-405e-9ea2-34e9da1c283a\",\n name: \"SET_PACKAGE_AUTHOR_NAME\",\n description:\n \"Set only the author's display name without touching the website field.\",\n schema: \"input SetPackageAuthorNameInput {\\n name: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"3d5c08df-6c14-480b-915b-875941979fd0\",\n name: \"SET_PACKAGE_AUTHOR_WEBSITE\",\n description:\n \"Set only the author's website URL without touching the name field.\",\n schema:\n \"input SetPackageAuthorWebsiteInput {\\n website: URL!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"ed95f841-6fd0-4552-898d-e915599b7495\",\n name: \"ADD_PACKAGE_KEYWORD\",\n description:\n \"Append a search keyword. Caller supplies a stable id so the entry can be removed later.\",\n schema:\n \"input AddPackageKeywordInput {\\n id: String!\\n label: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"83c4db24-bd2f-424d-9e26-751580d6307b\",\n name: \"REMOVE_PACKAGE_KEYWORD\",\n description:\n \"Remove a keyword by its id. No-op if the id does not exist.\",\n schema: \"input RemovePackageKeywordInput {\\n id: String!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"83a90530-8535-4ea7-ab53-7865532398f7\",\n name: \"SET_PACKAGE_GITHUB_URL\",\n description:\n \"Set the public source code URL (typically a GitHub repository).\",\n schema: \"input SetPackageGithubUrlInput {\\n url: URL!\\n}\",\n template: \"\",\n reducer: \"\",\n errors: [],\n examples: [],\n scope: \"global\",\n },\n {\n id: \"e789859a-01ee-4b60-8e7e-a3ad928a26d1\",\n name: \"SET_PACKAGE_NPM_URL\",\n description:\n \"Set the published npm package URL once the package has been released.\",\n schema: \"input SetPackageNpmUrlInput {\\n url: URL!\\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 { VetraPackageBaseOperationsOperations } from \"document-models/vetra-package/v1\";\n\nexport const vetraPackageBaseOperationsOperations: VetraPackageBaseOperationsOperations =\n {\n setPackageNameOperation(state, action, _dispatch) {\n state.name = action.input.name;\n },\n setPackageDescriptionOperation(state, action, _dispatch) {\n state.description = action.input.description;\n },\n setPackageCategoryOperation(state, action, _dispatch) {\n state.category = action.input.category;\n },\n setPackageAuthorOperation(state, action, _dispatch) {\n state.author = {\n name: action.input.name ?? null,\n website: action.input.website ?? null,\n };\n },\n setPackageAuthorNameOperation(state, action, _dispatch) {\n state.author.name = action.input.name;\n },\n setPackageAuthorWebsiteOperation(state, action, _dispatch) {\n state.author.website = action.input.website;\n },\n addPackageKeywordOperation(state, action, _dispatch) {\n // Check for duplicate ID\n const existingId = state.keywords.find(\n (keyword) => keyword.id === action.input.id,\n );\n if (existingId) {\n throw new Error(`Keyword with id \"${action.input.id}\" already exists`);\n }\n\n state.keywords.push(action.input);\n },\n removePackageKeywordOperation(state, action, _dispatch) {\n state.keywords = state.keywords.filter(\n (keyword) => keyword.id !== action.input.id,\n );\n },\n setPackageGithubUrlOperation(state, action, _dispatch) {\n state.githubUrl = action.input.url;\n },\n setPackageNpmUrlOperation(state, action, _dispatch) {\n state.npmUrl = action.input.url;\n },\n };\n","import type { Reducer, StateReducer } from \"document-model\";\nimport { createReducer, isDocumentAction } from \"document-model\";\nimport type { VetraPackagePHState } from \"document-models/vetra-package/v1\";\n\nimport { vetraPackageBaseOperationsOperations } from \"../src/reducers/base-operations.js\";\n\nimport {\n AddPackageKeywordInputSchema,\n RemovePackageKeywordInputSchema,\n SetPackageAuthorInputSchema,\n SetPackageAuthorNameInputSchema,\n SetPackageAuthorWebsiteInputSchema,\n SetPackageCategoryInputSchema,\n SetPackageDescriptionInputSchema,\n SetPackageGithubUrlInputSchema,\n SetPackageNameInputSchema,\n SetPackageNpmUrlInputSchema,\n} from \"./schema/zod.js\";\n\nconst stateReducer: StateReducer<VetraPackagePHState> = (\n state,\n action,\n dispatch,\n) => {\n if (isDocumentAction(action)) {\n return state;\n }\n switch (action.type) {\n case \"SET_PACKAGE_NAME\": {\n SetPackageNameInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_DESCRIPTION\": {\n SetPackageDescriptionInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageDescriptionOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_CATEGORY\": {\n SetPackageCategoryInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageCategoryOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_AUTHOR\": {\n SetPackageAuthorInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageAuthorOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_AUTHOR_NAME\": {\n SetPackageAuthorNameInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageAuthorNameOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_AUTHOR_WEBSITE\": {\n SetPackageAuthorWebsiteInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageAuthorWebsiteOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"ADD_PACKAGE_KEYWORD\": {\n AddPackageKeywordInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.addPackageKeywordOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"REMOVE_PACKAGE_KEYWORD\": {\n RemovePackageKeywordInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.removePackageKeywordOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_GITHUB_URL\": {\n SetPackageGithubUrlInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageGithubUrlOperation(\n (state as any)[action.scope],\n action as any,\n dispatch,\n );\n\n break;\n }\n\n case \"SET_PACKAGE_NPM_URL\": {\n SetPackageNpmUrlInputSchema().parse(action.input);\n\n vetraPackageBaseOperationsOperations.setPackageNpmUrlOperation(\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<VetraPackagePHState> =\n createReducer(stateReducer);\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const vetraPackageDocumentType = \"powerhouse/package\";\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 { vetraPackageDocumentType } from \"./document-type.js\";\nimport { VetraPackageStateSchema } from \"./schema/zod.js\";\nimport type { VetraPackageDocument, VetraPackagePHState } from \"./types.js\";\n\n/** Schema for validating the header object of a VetraPackage document */\nexport const VetraPackageDocumentHeaderSchema = BaseDocumentHeaderSchema.extend(\n {\n documentType: z.literal(vetraPackageDocumentType),\n },\n);\n\n/** Schema for validating the state object of a VetraPackage document */\nexport const VetraPackagePHStateSchema = BaseDocumentStateSchema.extend({\n global: VetraPackageStateSchema(),\n});\n\nexport const VetraPackageDocumentSchema = z.object({\n header: VetraPackageDocumentHeaderSchema,\n state: VetraPackagePHStateSchema,\n initialState: VetraPackagePHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a VetraPackage document state object */\nexport function isVetraPackageState(\n state: unknown,\n): state is VetraPackagePHState {\n return VetraPackagePHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a VetraPackage document state object */\nexport function assertIsVetraPackageState(\n state: unknown,\n): asserts state is VetraPackagePHState {\n VetraPackagePHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a VetraPackage document */\nexport function isVetraPackageDocument(\n document: unknown,\n): document is VetraPackageDocument {\n return VetraPackageDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a VetraPackage document */\nexport function assertIsVetraPackageDocument(\n document: unknown,\n): asserts document is VetraPackageDocument {\n VetraPackageDocumentSchema.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 assertIsVetraPackageDocument,\n assertIsVetraPackageState,\n isVetraPackageDocument,\n isVetraPackageState,\n} from \"./document-schema.js\";\nimport { vetraPackageDocumentType } from \"./document-type.js\";\nimport { reducer } from \"./reducer.js\";\nimport type {\n VetraPackageGlobalState,\n VetraPackageLocalState,\n VetraPackagePHState,\n} from \"./types.js\";\n\nexport const initialGlobalState: VetraPackageGlobalState = {\n name: null,\n description: null,\n category: null,\n author: {\n name: null,\n website: null,\n },\n keywords: [],\n githubUrl: null,\n npmUrl: null,\n};\nexport const initialLocalState: VetraPackageLocalState = {};\n\nexport const utils: DocumentModelUtils<VetraPackagePHState> = {\n fileExtension: \".pkg\",\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 = vetraPackageDocumentType;\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 isVetraPackageState(state);\n },\n assertIsStateOfType(state) {\n return assertIsVetraPackageState(state);\n },\n isDocumentOfType(document) {\n return isVetraPackageDocument(document);\n },\n assertIsDocumentOfType(document) {\n return assertIsVetraPackageDocument(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 { VetraPackagePHState } from \"./gen/types.js\";\nimport { utils as genUtils } from \"./gen/utils.js\";\nimport * as customUtils from \"./src/utils.js\";\n\n/** Utils for the VetraPackage document model */\nexport const utils: DocumentModelUtils<VetraPackagePHState> = {\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 { VetraPackagePHState } from \"./gen/types.js\";\nimport { utils } from \"./utils.js\";\n\n/** Document model module for the VetraPackage document type */\nexport const VetraPackage = {\n version: 1,\n reducer,\n actions,\n utils,\n documentModel: createState(defaultBaseState(), documentModel),\n} as const satisfies DocumentModelModule<VetraPackagePHState>;\n"],"mappings":";;;;;AAyBA,MAAa,uBAAuB,MAClC,MAAM,KAAA,KAAa,MAAM;AAE3B,MAAa,0BAA0BA,IACpC,KAAK,CACL,QAAQ,MAAM,oBAAoB,EAAE,CAAC;AAExC,SAAgB,+BAEd;AACA,QAAOA,IAAE,OAAO;EACd,IAAIA,IAAE,QAAQ;EACd,OAAOA,IAAE,QAAQ;EAClB,CAAC;;AAGJ,SAAgB,eAAgD;AAC9D,Q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B,SAAS;;CAEzC,uBAAuB,UAAU;AAC/B,SAAO,6BAA6B,SAAS;;CAEhD;;;;;;;AEnED,MAAa,QAAiD;CAC5D,GAAGC;CACH,GAAGC;CACJ;;;;ACAD,MAAa,eAAe;CAC1B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -2,7 +2,7 @@ import { lazy } from "react";
2
2
  //#region editors/app-editor/module.ts
3
3
  /** Document editor module for the "powerhouse/app" document type */
4
4
  const AppEditor = {
5
- Component: lazy(() => import("./editor-BwbJ65NZ.js")),
5
+ Component: lazy(() => import("./editor-Bba0kIIP.js")),
6
6
  documentTypes: ["powerhouse/app"],
7
7
  config: {
8
8
  id: "app-editor",
@@ -13,7 +13,7 @@ const AppEditor = {
13
13
  //#region editors/document-editor/module.ts
14
14
  /** Document editor module for the "powerhouse/document-editor" document type */
15
15
  const DocumentEditorEditor = {
16
- Component: lazy(() => import("./editor-CJAn9WTA.js")),
16
+ Component: lazy(() => import("./editor-BuV8eJum.js")),
17
17
  documentTypes: ["powerhouse/document-editor"],
18
18
  config: {
19
19
  id: "document-editor-editor",
@@ -24,7 +24,7 @@ const DocumentEditorEditor = {
24
24
  //#region editors/processor-editor/module.ts
25
25
  /** Document editor module for the "powerhouse/processor" document type */
26
26
  const ProcessorModuleEditor = {
27
- Component: lazy(() => import("./editor-WWMGVelM.js")),
27
+ Component: lazy(() => import("./editor-D-IzvjvS.js")),
28
28
  documentTypes: ["powerhouse/processor"],
29
29
  config: {
30
30
  id: "processor-module-editor",
@@ -35,7 +35,7 @@ const ProcessorModuleEditor = {
35
35
  //#region editors/subgraph-editor/module.ts
36
36
  /** Document editor module for the "powerhouse/subgraph" document type */
37
37
  const SubgraphModuleEditor = {
38
- Component: lazy(() => import("./editor-DWufJcmG.js")),
38
+ Component: lazy(() => import("./editor-BsM-iHdN.js")),
39
39
  documentTypes: ["powerhouse/subgraph"],
40
40
  config: {
41
41
  id: "subgraph-module-editor",
@@ -56,7 +56,7 @@ const VetraDriveApp = {
56
56
  //#region editors/vetra-package/module.ts
57
57
  /** Document editor module for the "powerhouse/package" document type */
58
58
  const VetraPackageEditor = {
59
- Component: lazy(() => import("./editor-DabfMxkF.js")),
59
+ Component: lazy(() => import("./editor-CsLmxkXj.js")),
60
60
  documentTypes: ["powerhouse/package"],
61
61
  config: {
62
62
  id: "vetra-package-editor",
@@ -66,4 +66,4 @@ const VetraPackageEditor = {
66
66
  //#endregion
67
67
  export { DocumentEditorEditor as a, ProcessorModuleEditor as i, VetraDriveApp as n, AppEditor as o, SubgraphModuleEditor as r, VetraPackageEditor as t };
68
68
 
69
- //# sourceMappingURL=module-jWN6gsmi.js.map
69
+ //# sourceMappingURL=module-CC1BnDod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-jWN6gsmi.js","names":[],"sources":["../editors/app-editor/module.ts","../editors/document-editor/module.ts","../editors/processor-editor/module.ts","../editors/subgraph-editor/module.ts","../editors/vetra-drive-app/module.ts","../editors/vetra-package/module.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/app\" document type */\nexport const AppEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/app\"],\n config: {\n id: \"app-editor\",\n name: \"AppEditor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/document-editor\" document type */\nexport const DocumentEditorEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-editor\"],\n config: {\n id: \"document-editor-editor\",\n name: \"Document Editor Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/processor\" document type */\nexport const ProcessorModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/processor\"],\n config: {\n id: \"processor-module-editor\",\n name: \"Processor Module Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/subgraph\" document type */\nexport const SubgraphModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/subgraph\"],\n config: {\n id: \"subgraph-module-editor\",\n name: \"Subgraph Module Editor\",\n },\n};\n","import type { EditorModule } from \"@powerhousedao/shared/document-model\";\nimport { lazy } from \"react\";\n\nexport const VetraDriveApp: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-drive\"],\n config: {\n id: \"vetra-drive-app\",\n name: \"Vetra Drive App\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/package\" document type */\nexport const VetraPackageEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/package\"],\n config: {\n id: \"vetra-package-editor\",\n name: \"Vetra Package Editor\",\n },\n};\n"],"mappings":";;;AAQA,MAAa,YAA0B;CACrC,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,iBAAiB;CACjC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,6BAA6B;CAC7C,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,wBAAsC;CACjD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,uBAAuB;CACvC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,sBAAsB;CACtC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;ACZD,MAAa,gBAA8B;CACzC,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,4BAA4B;CAC5C,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACFD,MAAa,qBAAmC;CAC9C,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,qBAAqB;CACrC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF"}
1
+ {"version":3,"file":"module-CC1BnDod.js","names":[],"sources":["../editors/app-editor/module.ts","../editors/document-editor/module.ts","../editors/processor-editor/module.ts","../editors/subgraph-editor/module.ts","../editors/vetra-drive-app/module.ts","../editors/vetra-package/module.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/app\" document type */\nexport const AppEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/app\"],\n config: {\n id: \"app-editor\",\n name: \"AppEditor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/document-editor\" document type */\nexport const DocumentEditorEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-editor\"],\n config: {\n id: \"document-editor-editor\",\n name: \"Document Editor Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/processor\" document type */\nexport const ProcessorModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/processor\"],\n config: {\n id: \"processor-module-editor\",\n name: \"Processor Module Editor\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/subgraph\" document type */\nexport const SubgraphModuleEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/subgraph\"],\n config: {\n id: \"subgraph-module-editor\",\n name: \"Subgraph Module Editor\",\n },\n};\n","import type { EditorModule } from \"@powerhousedao/shared/document-model\";\nimport { lazy } from \"react\";\n\nexport const VetraDriveApp: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/document-drive\"],\n config: {\n id: \"vetra-drive-app\",\n name: \"Vetra Drive App\",\n },\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { EditorModule } from \"document-model\";\nimport { lazy } from \"react\";\n\n/** Document editor module for the \"powerhouse/package\" document type */\nexport const VetraPackageEditor: EditorModule = {\n Component: lazy(() => import(\"./editor.js\")),\n documentTypes: [\"powerhouse/package\"],\n config: {\n id: \"vetra-package-editor\",\n name: \"Vetra Package Editor\",\n },\n};\n"],"mappings":";;;AAQA,MAAa,YAA0B;CACrC,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,iBAAiB;CACjC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,6BAA6B;CAC7C,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,wBAAsC;CACjD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,uBAAuB;CACvC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACPD,MAAa,uBAAqC;CAChD,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,sBAAsB;CACtC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;ACZD,MAAa,gBAA8B;CACzC,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,4BAA4B;CAC5C,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF;;;;ACFD,MAAa,qBAAmC;CAC9C,WAAW,WAAW,OAAO,wBAAe;CAC5C,eAAe,CAAC,qBAAqB;CACrC,QAAQ;EACN,IAAI;EACJ,MAAM;EACP;CACF"}
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
- import { f as reducer, p as actions, r as utils$1 } from "./utils-CWO5kDus.js";
2
+ import { f as reducer, p as actions, r as utils$1 } from "./utils-DL6w0tV1.js";
3
3
  import { createState, defaultBaseState } from "document-model";
4
4
  //#region document-models/subgraph-module/v1/gen/document-model.ts
5
5
  const documentModel = {
@@ -77,4 +77,4 @@ const SubgraphModule = {
77
77
  //#endregion
78
78
  export { utils as n, documentModel as r, SubgraphModule as t };
79
79
 
80
- //# sourceMappingURL=module-x2Liyk0-.js.map
80
+ //# sourceMappingURL=module-D8H1Oetz.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-x2Liyk0-.js","names":["genUtils","customUtils"],"sources":["../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/src/utils.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cAAc;IACf;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACb,YAAY,CACV;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QAAQ;IACR,UAAU;IACV,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO;IACR,EACD;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QACE;IACF,UAAU;IACV,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO;IACR,CACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AEvDD,MAAa,QAAmD;CAC9D,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
1
+ {"version":3,"file":"module-D8H1Oetz.js","names":["genUtils","customUtils"],"sources":["../document-models/subgraph-module/v1/gen/document-model.ts","../document-models/subgraph-module/v1/src/utils.ts","../document-models/subgraph-module/v1/utils.ts","../document-models/subgraph-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cAAc;IACf;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aAAa;GACb,YAAY,CACV;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QAAQ;IACR,UAAU;IACV,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO;IACR,EACD;IACE,IAAI;IACJ,MAAM;IACN,aACE;IACF,QACE;IACF,UAAU;IACV,SAAS;IACT,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,OAAO;IACR,CACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AEvDD,MAAa,QAAmD;CAC9D,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,iBAAiB;CAC5B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"module-Drla4Vmn.d.ts","names":[],"sources":["../document-models/vetra-package/v1/gen/base-operations/actions.ts","../document-models/vetra-package/v1/gen/actions.ts","../document-models/vetra-package/v1/gen/schema/types.ts","../document-models/vetra-package/v1/gen/types.ts","../document-models/vetra-package/v1/actions.ts","../document-models/vetra-package/v1/gen/base-operations/operations.ts","../document-models/vetra-package/v1/gen/controller.ts","../document-models/vetra-package/v1/gen/base-operations/creators.ts","../document-models/vetra-package/v1/gen/document-model.ts","../document-models/vetra-package/v1/gen/document-schema.ts","../document-models/vetra-package/v1/gen/document-type.ts","../document-models/vetra-package/v1/gen/ph-factories.ts","../document-models/vetra-package/v1/gen/reducer.ts","../document-models/vetra-package/v1/gen/schema/zod.ts","../document-models/vetra-package/v1/gen/utils.ts","../document-models/vetra-package/v1/hooks.ts","../document-models/vetra-package/v1/utils.ts","../document-models/vetra-package/v1/module.ts"],"mappings":";;;;;;;KAkBY,oBAAA,GAAuB,MAAA;EACjC,IAAA;EACA,KAAA,EAAO,mBAAA;AAAA;AAAA,KAEG,2BAAA,GAA8B,MAAA;EACxC,IAAA;EACA,KAAA,EAAO,0BAAA;AAAA;AAAA,KAEG,wBAAA,GAA2B,MAAA;EACrC,IAAA;EACA,KAAA,EAAO,uBAAA;AAAA;AAAA,KAEG,sBAAA,GAAyB,MAAA;EACnC,IAAA;EACA,KAAA,EAAO,qBAAA;AAAA;AAAA,KAEG,0BAAA,GAA6B,MAAA;EACvC,IAAA;EACA,KAAA,EAAO,yBAAA;AAAA;AAAA,KAEG,6BAAA,GAAgC,MAAA;EAC1C,IAAA;EACA,KAAA,EAAO,4BAAA;AAAA;AAAA,KAEG,uBAAA,GAA0B,MAAA;EACpC,IAAA;EACA,KAAA,EAAO,sBAAA;AAAA;AAAA,KAEG,0BAAA,GAA6B,MAAA;EACvC,IAAA;EACA,KAAA,EAAO,yBAAA;AAAA;AAAA,KAEG,yBAAA,GAA4B,MAAA;EACtC,IAAA;EACA,KAAA,EAAO,wBAAA;AAAA;AAAA,KAEG,sBAAA,GAAyB,MAAA;EACnC,IAAA;EACA,KAAA,EAAO,qBAAA;AAAA;AAAA,KAGG,gCAAA,GACR,oBAAA,GACA,2BAAA,GACA,wBAAA,GACA,sBAAA,GACA,0BAAA,GACA,6BAAA,GACA,uBAAA,GACA,0BAAA,GACA,yBAAA,GACA,sBAAA;;;KC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AA,CAA0D,UAAA;4BAA2C,GAAA,WAAc,KAAA,cAAzD,eAAA,CAAyE,iBAAA;+BAAA,eAAA,CAAA,WAAA;;;8CAAkM,UAAA;EAAA;EAAA"}
1
+ {"version":3,"file":"module-Drla4Vmn.d.ts","names":[],"sources":["../document-models/vetra-package/v1/gen/base-operations/actions.ts","../document-models/vetra-package/v1/gen/actions.ts","../document-models/vetra-package/v1/gen/schema/types.ts","../document-models/vetra-package/v1/gen/types.ts","../document-models/vetra-package/v1/actions.ts","../document-models/vetra-package/v1/gen/base-operations/operations.ts","../document-models/vetra-package/v1/gen/controller.ts","../document-models/vetra-package/v1/gen/base-operations/creators.ts","../document-models/vetra-package/v1/gen/document-model.ts","../document-models/vetra-package/v1/gen/document-schema.ts","../document-models/vetra-package/v1/gen/document-type.ts","../document-models/vetra-package/v1/gen/ph-factories.ts","../document-models/vetra-package/v1/gen/reducer.ts","../document-models/vetra-package/v1/gen/schema/zod.ts","../document-models/vetra-package/v1/gen/utils.ts","../document-models/vetra-package/v1/hooks.ts","../document-models/vetra-package/v1/utils.ts","../document-models/vetra-package/v1/module.ts"],"mappings":";;;;;;;KAkBY,oBAAA,GAAuB,MAAA;EACjC,IAAA;EACA,KAAA,EAAO,mBAAA;AAAA;AAAA,KAEG,2BAAA,GAA8B,MAAA;EACxC,IAAA;EACA,KAAA,EAAO,0BAAA;AAAA;AAAA,KAEG,wBAAA,GAA2B,MAAA;EACrC,IAAA;EACA,KAAA,EAAO,uBAAA;AAAA;AAAA,KAEG,sBAAA,GAAyB,MAAA;EACnC,IAAA;EACA,KAAA,EAAO,qBAAA;AAAA;AAAA,KAEG,0BAAA,GAA6B,MAAA;EACvC,IAAA;EACA,KAAA,EAAO,yBAAA;AAAA;AAAA,KAEG,6BAAA,GAAgC,MAAA;EAC1C,IAAA;EACA,KAAA,EAAO,4BAAA;AAAA;AAAA,KAEG,uBAAA,GAA0B,MAAA;EACpC,IAAA;EACA,KAAA,EAAO,sBAAA;AAAA;AAAA,K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AAA,KAAgO,sBAAA;2BAAkM,KAAA,EAAlM,yBAAA,KAAkO,0BAAA;8BAAkN,KAAA,EAAlN,4BAAA,KAAqP,6BAAA;wBAAqN,KAAA,EAArN,sBAAA,KAAkP,uBAAA;2BAAqM,KAAA,EAArM,yBAAA,KAAqO,0BAAA;0BAA6M,KAAA,EAA7M,wBAAA,KAA4O,yBAAA;uBAAwM,KAAA,EAAxM,qBAAA,KAAoO,sBAAA;;;UAAA,eAAA,CAAA,aAAA;;;;2BAAsgR,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,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-pbuEa-1d.js";
2
- import { f as reducer, p as actions, r as utils$1 } from "./utils-Byjf33qt.js";
2
+ import { f as reducer, p as actions, r as utils$1 } from "./utils-CSA5LPj9.js";
3
3
  import { createState, defaultBaseState } from "document-model";
4
4
  //#region document-models/processor-module/v1/gen/document-model.ts
5
5
  const documentModel = {
@@ -135,4 +135,4 @@ const ProcessorModule = {
135
135
  //#endregion
136
136
  export { utils as n, documentModel as r, ProcessorModule as t };
137
137
 
138
- //# sourceMappingURL=module-DPyV2vUY.js.map
138
+ //# sourceMappingURL=module-wcMEGEcg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"module-DPyV2vUY.js","names":["genUtils","customUtils"],"sources":["../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/src/utils.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,O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;CAC9D"}
1
+ {"version":3,"file":"module-wcMEGEcg.js","names":["genUtils","customUtils"],"sources":["../document-models/processor-module/v1/gen/document-model.ts","../document-models/processor-module/v1/src/utils.ts","../document-models/processor-module/v1/utils.ts","../document-models/processor-module/v1/module.ts"],"sourcesContent":["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","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":";;;;AAEA,MAAa,gBAA0C;CACrD,IAAI;CACJ,MAAM;CACN,QAAQ;EACN,MAAM;EACN,SAAS;EACV;CACD,WAAW;CACX,aACE;CACF,gBAAgB,CACd;EACE,OAAO;GACL,OAAO;IACL,QAAQ;IACR,UAAU,EAAE;IACZ,cAAc;IACf;GACD,QAAQ;IACN,QACE;IACF,UAAU,EAAE;IACZ,cACE;IACH;GACF;EACD,SAAS,CACP;GACE,IAAI;GACJ,MAAM;GACN,aACE;GACF,YAAY;IACV;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QAAQ;KACR,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACD;KACE,IAAI;KACJ,MAAM;KACN,aACE;KACF,QACE;KACF,UAAU;KACV,SAAS;KACT,QAAQ,EAAE;KACV,UAAU,EAAE;KACZ,OAAO;KACR;IACF;GACF,CACF;EACD,SAAS;EACT,WAAW,EAAE;EACd,CACF;CACF;;;;;;;AExHD,MAAa,QAAoD;CAC/D,GAAGA;CACH,GAAGC;CACJ;;;;ACAD,MAAa,kBAAkB;CAC7B,SAAS;CACT;CACA;CACA;CACA,eAAe,YAAY,kBAAkB,EAAE,cAAc;CAC9D"}
@@ -1,4 +1,4 @@
1
- import { r as utils } from "./utils-BRx88WW3.js";
1
+ import { r as utils } from "./utils-A2M9gfq4.js";
2
2
  import { createBaseState, defaultBaseState } from "document-model";
3
3
  //#region document-models/app-module/v1/gen/ph-factories.ts
4
4
  function defaultGlobalState() {
@@ -49,4 +49,4 @@ function createAppModuleDocument(state) {
49
49
  //#endregion
50
50
  export { defaultPHState as a, defaultLocalState as i, createState$1 as n, defaultGlobalState as r, createAppModuleDocument as t };
51
51
 
52
- //# sourceMappingURL=ph-factories-B6PSPkPQ.js.map
52
+ //# sourceMappingURL=ph-factories-4ifueM1H.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ph-factories-B6PSPkPQ.js","names":["createState"],"sources":["../document-models/app-module/v1/gen/ph-factories.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating AppModuleDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n AppModuleDocument,\n AppModuleGlobalState,\n AppModuleLocalState,\n AppModulePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): AppModuleGlobalState {\n return {\n name: \"\",\n status: \"DRAFT\",\n allowedDocumentTypes: null,\n isDragAndDropEnabled: true,\n };\n}\n\nexport function defaultLocalState(): AppModuleLocalState {\n return {};\n}\n\nexport function defaultPHState(): AppModulePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<AppModuleGlobalState>,\n): AppModuleGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<AppModuleLocalState>,\n): AppModuleLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as AppModuleLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<AppModuleGlobalState>,\n localState?: Partial<AppModuleLocalState>,\n): AppModulePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a AppModuleDocument 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 createAppModuleDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<AppModuleGlobalState>;\n local?: Partial<AppModuleLocalState>;\n }>,\n): AppModuleDocument {\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"],"mappings":";;;AAeA,SAAgB,qBAA2C;AACzD,QAAO;EACL,MAAM;EACN,QAAQ;EACR,sBAAsB;EACtB,sBAAsB;EACvB;;AAGH,SAAgB,oBAAyC;AACvD,QAAO,EAAE;;AAGX,SAAgB,iBAAmC;AACjD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OACsB;AACtB,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OACqB;AACrB,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACkB;AAClB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,wBACd,OAMmB;AAWnB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL"}
1
+ {"version":3,"file":"ph-factories-4ifueM1H.js","names":["createState"],"sources":["../document-models/app-module/v1/gen/ph-factories.ts"],"sourcesContent":["/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n * Factory methods for creating AppModuleDocument instances\n */\nimport type { PHAuthState, PHBaseState, PHDocumentState } from \"document-model\";\nimport { createBaseState, defaultBaseState } from \"document-model\";\nimport type {\n AppModuleDocument,\n AppModuleGlobalState,\n AppModuleLocalState,\n AppModulePHState,\n} from \"./types.js\";\nimport { utils } from \"./utils.js\";\n\nexport function defaultGlobalState(): AppModuleGlobalState {\n return {\n name: \"\",\n status: \"DRAFT\",\n allowedDocumentTypes: null,\n isDragAndDropEnabled: true,\n };\n}\n\nexport function defaultLocalState(): AppModuleLocalState {\n return {};\n}\n\nexport function defaultPHState(): AppModulePHState {\n return {\n ...defaultBaseState(),\n global: defaultGlobalState(),\n local: defaultLocalState(),\n };\n}\n\nexport function createGlobalState(\n state?: Partial<AppModuleGlobalState>,\n): AppModuleGlobalState {\n return {\n ...defaultGlobalState(),\n ...(state || {}),\n };\n}\n\nexport function createLocalState(\n state?: Partial<AppModuleLocalState>,\n): AppModuleLocalState {\n return {\n ...defaultLocalState(),\n ...(state || {}),\n } as AppModuleLocalState;\n}\n\nexport function createState(\n baseState?: Partial<PHBaseState>,\n globalState?: Partial<AppModuleGlobalState>,\n localState?: Partial<AppModuleLocalState>,\n): AppModulePHState {\n return {\n ...createBaseState(baseState?.auth, baseState?.document),\n global: createGlobalState(globalState),\n local: createLocalState(localState),\n };\n}\n\n/**\n * Creates a AppModuleDocument 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 createAppModuleDocument(\n state?: Partial<{\n auth?: Partial<PHAuthState>;\n document?: Partial<PHDocumentState>;\n global?: Partial<AppModuleGlobalState>;\n local?: Partial<AppModuleLocalState>;\n }>,\n): AppModuleDocument {\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"],"mappings":";;;AAeA,SAAgB,qBAA2C;AACzD,QAAO;EACL,MAAM;EACN,QAAQ;EACR,sBAAsB;EACtB,sBAAsB;EACvB;;AAGH,SAAgB,oBAAyC;AACvD,QAAO,EAAE;;AAGX,SAAgB,iBAAmC;AACjD,QAAO;EACL,GAAG,kBAAkB;EACrB,QAAQ,oBAAoB;EAC5B,OAAO,mBAAmB;EAC3B;;AAGH,SAAgB,kBACd,OACsB;AACtB,QAAO;EACL,GAAG,oBAAoB;EACvB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgB,iBACd,OACqB;AACrB,QAAO;EACL,GAAG,mBAAmB;EACtB,GAAI,SAAS,EAAE;EAChB;;AAGH,SAAgBA,cACd,WACA,aACA,YACkB;AAClB,QAAO;EACL,GAAG,gBAAgB,WAAW,MAAM,WAAW,SAAS;EACxD,QAAQ,kBAAkB,YAAY;EACtC,OAAO,iBAAiB,WAAW;EACpC;;;;;;;AAQH,SAAgB,wBACd,OAMmB;AAWnB,QAViB,MAAM,eACrB,QACIA,cACE,gBAAgB,MAAM,MAAM,MAAM,SAAS,EAC3C,MAAM,QACN,MAAM,MACP,GACD,KAAA,EACL"}
@@ -1,4 +1,4 @@
1
- import { r as utils } from "./utils-CnZc-0E4.js";
1
+ import { r as utils } from "./utils-D3lwZ3L6.js";
2
2
  import { createBaseState, defaultBaseState } from "document-model";
3
3
  //#region document-models/document-editor/v1/gen/ph-factories.ts
4
4
  function defaultGlobalState() {
@@ -48,4 +48,4 @@ function createDocumentEditorDocument(state) {
48
48
  //#endregion
49
49
  export { defaultPHState as a, defaultLocalState as i, createState$1 as n, defaultGlobalState as r, createDocumentEditorDocument as t };
50
50
 
51
- //# sourceMappingURL=ph-factories-CJXfT_Z1.js.map
51
+ //# sourceMappingURL=ph-factories-BIe1kTJb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ph-factories-CJXfT_Z1.js","names":["createState"],"sources":["../document-models/document-editor/v1/gen/ph-factories.ts"],"sourcesContent":["/**\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"],"mappings":";;;AAeA,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"}
1
+ {"version":3,"file":"ph-factories-BIe1kTJb.js","names":["createState"],"sources":["../document-models/document-editor/v1/gen/ph-factories.ts"],"sourcesContent":["/**\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"],"mappings":";;;AAeA,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"}
@@ -1,4 +1,4 @@
1
- import { r as utils } from "./utils-Byjf33qt.js";
1
+ import { r as utils } from "./utils-CSA5LPj9.js";
2
2
  import { createBaseState, defaultBaseState } from "document-model";
3
3
  //#region document-models/processor-module/v1/gen/ph-factories.ts
4
4
  function defaultGlobalState() {
@@ -50,4 +50,4 @@ function createProcessorModuleDocument(state) {
50
50
  //#endregion
51
51
  export { defaultPHState as a, defaultLocalState as i, createState$1 as n, defaultGlobalState as r, createProcessorModuleDocument as t };
52
52
 
53
- //# sourceMappingURL=ph-factories-B0_E6LY6.js.map
53
+ //# sourceMappingURL=ph-factories-Bep45EPP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ph-factories-B0_E6LY6.js","names":["createState"],"sources":["../document-models/processor-module/v1/gen/ph-factories.ts"],"sourcesContent":["/**\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"],"mappings":";;;AAeA,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"}
1
+ {"version":3,"file":"ph-factories-Bep45EPP.js","names":["createState"],"sources":["../document-models/processor-module/v1/gen/ph-factories.ts"],"sourcesContent":["/**\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"],"mappings":";;;AAeA,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"}