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

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 (525) hide show
  1. package/dist/browser/connect-ayTpkZ7D.js.map +1 -1
  2. package/dist/browser/document-models/index.js +1 -1
  3. package/dist/browser/document-models/ph-clint-project/index.js +2 -2
  4. package/dist/browser/{editor-Bp2wUo8R.js → editor-BmNIZjpu.js} +3 -3
  5. package/dist/browser/{editor-Bp2wUo8R.js.map → editor-BmNIZjpu.js.map} +1 -1
  6. package/dist/browser/editors/ph-clint-project-editor/module.js +1 -1
  7. package/dist/browser/factory-6X-atFO0.js.map +1 -1
  8. package/dist/browser/index.js +6 -2
  9. package/dist/browser/index.js.map +1 -1
  10. package/dist/browser/{module-B16ZT36n.js → module-BzVWlfCE.js} +19 -7
  11. package/dist/browser/module-BzVWlfCE.js.map +1 -0
  12. package/dist/browser/{ph-clint-project-CHq59BKL.js → ph-clint-project-1Xn2yUDQ.js} +3 -15
  13. package/dist/browser/ph-clint-project-1Xn2yUDQ.js.map +1 -0
  14. package/dist/browser/subgraphs/index.js +8 -0
  15. package/dist/browser/subgraphs/index.js.map +1 -0
  16. package/dist/browser/switchboard-DyNO-2Mk.js.map +1 -1
  17. package/dist/connect/__react__/chunks/chunk-DV4czemZ.js +1 -0
  18. package/dist/connect/__react__/chunks/{react-DInDUHsR.js → react-6__-7Yi6.js} +1 -1
  19. package/dist/connect/__react__/chunks/{react-dom-QyonbUot.js → react-dom-D8SQgl6v.js} +1 -1
  20. package/dist/connect/__react__/chunks/{react-dom-server-legacy.browser.production-KSpBOUM7.js → react-dom-server-legacy.browser.production-tEo0fxOJ.js} +2 -2
  21. package/dist/connect/__react__/chunks/{react-dom-server.browser.production-NeoI_ldE.js → react-dom-server.browser.production-CWSDDfJ2.js} +2 -2
  22. package/dist/connect/__react__/chunks/{react-dom-server.edge.production-Djx8cQAo.js → react-dom-server.edge.production-K2OjKVH3.js} +2 -2
  23. package/dist/connect/__react__/chunks/{scheduler-CxGS3ZcN.js → scheduler-C_FnfDtC.js} +1 -1
  24. package/dist/connect/__react__/chunks/server.browser-Bu7JkTx-.js +1 -0
  25. package/dist/connect/__react__/chunks/static.browser-C6ypYl2H.js +1 -0
  26. package/dist/connect/__react__/react/compiler-runtime.js +1 -1
  27. package/dist/connect/__react__/react/jsx-dev-runtime.js +1 -1
  28. package/dist/connect/__react__/react/jsx-runtime.js +1 -1
  29. package/dist/connect/__react__/react-dom/client.js +1 -1
  30. package/dist/connect/__react__/react-dom/profiling.js +1 -1
  31. package/dist/connect/__react__/react-dom/server.browser.js +1 -1
  32. package/dist/connect/__react__/react-dom/server.edge.js +1 -1
  33. package/dist/connect/__react__/react-dom/server.js +1 -1
  34. package/dist/connect/__react__/react-dom/static.browser.js +1 -1
  35. package/dist/connect/__react__/react-dom/static.edge.js +1 -1
  36. package/dist/connect/__react__/react-dom/static.js +1 -1
  37. package/dist/connect/__react__/react-dom/test-utils.js +1 -1
  38. package/dist/connect/__react__/react-dom.js +1 -1
  39. package/dist/connect/__react__/react.js +1 -1
  40. package/dist/connect/assets/{ClearStorageModal-CXoNWmRe-D3ifKRm-.js → ClearStorageModal-CXoNWmRe-UB24DImi.js} +2 -2
  41. package/dist/connect/assets/{ClearStorageModal-CXoNWmRe-D3ifKRm-.js.map → ClearStorageModal-CXoNWmRe-UB24DImi.js.map} +1 -1
  42. package/dist/connect/assets/{DebugSettingsModal-5SDhy5gt-DLMPdDQB.js → DebugSettingsModal-5SDhy5gt-D0iQimch.js} +2 -2
  43. package/dist/connect/assets/{DebugSettingsModal-5SDhy5gt-DLMPdDQB.js.map → DebugSettingsModal-5SDhy5gt-D0iQimch.js.map} +1 -1
  44. package/dist/connect/assets/{InspectorModal-BsSihzuc-B0n5gbGB.js → InspectorModal-BsSihzuc-Bavb3r9J.js} +2 -2
  45. package/dist/connect/assets/{InspectorModal-BsSihzuc-B0n5gbGB.js.map → InspectorModal-BsSihzuc-Bavb3r9J.js.map} +1 -1
  46. package/dist/connect/assets/{SettingsModal-S_A5qf95-uzigz0nk.js → SettingsModal-S_A5qf95-q6y3kJdv.js} +2 -2
  47. package/dist/connect/assets/{SettingsModal-S_A5qf95-uzigz0nk.js.map → SettingsModal-S_A5qf95-q6y3kJdv.js.map} +1 -1
  48. package/dist/connect/assets/{components-ByEUkO4U-xPZUVkzr.js → components-ByEUkO4U-BWcOYd4s.js} +4 -4
  49. package/dist/connect/assets/{components-ByEUkO4U-xPZUVkzr.js.map → components-ByEUkO4U-BWcOYd4s.js.map} +1 -1
  50. package/dist/connect/assets/connect-DGfzdELb.js.map +1 -1
  51. package/dist/connect/assets/{connect.config-Bt4pvvWV-Dj3FkjaZ.js → connect.config-Bt4pvvWV-CRF9MQO6.js} +2 -2
  52. package/dist/connect/assets/{connect.config-Bt4pvvWV-Dj3FkjaZ.js.map → connect.config-Bt4pvvWV-CRF9MQO6.js.map} +1 -1
  53. package/dist/connect/assets/editor-Bds50MuL.js +2 -0
  54. package/dist/connect/assets/{editor-BaQ62r3i.js.map → editor-Bds50MuL.js.map} +1 -1
  55. package/dist/connect/assets/hooks-CE3gZpe3.js +2 -0
  56. package/dist/connect/assets/hooks-CE3gZpe3.js.map +1 -0
  57. package/dist/connect/assets/{ph-clint-project-p1zY6e17.js → index-D8arPQE9.js} +4 -3
  58. package/dist/connect/assets/index-D8arPQE9.js.map +1 -0
  59. package/dist/connect/assets/index-Skfhz8KO.css +2 -0
  60. package/dist/connect/assets/{load-BWibkoFV-CDRjWwYQ.js → load-BWibkoFV-CryaAPih.js} +2 -2
  61. package/dist/connect/assets/{load-BWibkoFV-CDRjWwYQ.js.map → load-BWibkoFV-CryaAPih.js.map} +1 -1
  62. package/dist/connect/assets/{module-7zCQE1MC.js → module-BA2WsOHG.js} +2 -2
  63. package/dist/connect/assets/{module-7zCQE1MC.js.map → module-BA2WsOHG.js.map} +1 -1
  64. package/dist/connect/assets/{pglite-seed-BWk7yOwr-b2F0oJiP.js → pglite-seed-BWk7yOwr-CPFa41Bn.js} +2 -2
  65. package/dist/connect/assets/{pglite-seed-BWk7yOwr-b2F0oJiP.js.map → pglite-seed-BWk7yOwr-CPFa41Bn.js.map} +1 -1
  66. package/dist/connect/assets/{reactor-BxNvHOKC-CeMF1M2u.js → reactor-BxNvHOKC-DRYvJVeI.js} +2 -2
  67. package/dist/connect/assets/{reactor-BxNvHOKC-CeMF1M2u.js.map → reactor-BxNvHOKC-DRYvJVeI.js.map} +1 -1
  68. package/dist/connect/assets/{registerServiceWorker-D9l1kja7-DG3DqQna.js → registerServiceWorker-D9l1kja7-BDpTOs18.js} +2 -2
  69. package/dist/connect/assets/{registerServiceWorker-D9l1kja7-DG3DqQna.js.map → registerServiceWorker-D9l1kja7-BDpTOs18.js.map} +1 -1
  70. package/dist/connect/assets/switchboard-CPQzDmSh.js.map +1 -1
  71. package/dist/connect/index.html +6 -9
  72. package/dist/connect/powerhouse.config.json +3 -2
  73. package/dist/node/connect-CIR7GJmj.mjs.map +1 -1
  74. package/dist/node/document-models/index.mjs +1 -1
  75. package/dist/node/document-models/ph-clint-project/index.mjs +2 -2
  76. package/dist/node/{editor-BC9t7D3T.mjs → editor-8cCevQVX.mjs} +3 -3
  77. package/dist/node/{editor-BC9t7D3T.mjs.map → editor-8cCevQVX.mjs.map} +1 -1
  78. package/dist/node/editors/ph-clint-project-editor/module.mjs +1 -1
  79. package/dist/node/factory-BV9KTFaw.mjs.map +1 -1
  80. package/dist/node/index.mjs +6 -2
  81. package/dist/node/index.mjs.map +1 -1
  82. package/dist/node/{module-BPw40Ypp.mjs → module-CJId0WUE.mjs} +19 -7
  83. package/dist/node/module-CJId0WUE.mjs.map +1 -0
  84. package/dist/node/{ph-clint-project-B5IjiXbp.mjs → ph-clint-project-CqqaE1LT.mjs} +3 -15
  85. package/dist/node/ph-clint-project-CqqaE1LT.mjs.map +1 -0
  86. package/dist/node/subgraphs/index.mjs +8 -0
  87. package/dist/node/subgraphs/index.mjs.map +1 -0
  88. package/dist/node/switchboard-kqcv15ax.mjs.map +1 -1
  89. package/dist/powerhouse.manifest.json +26 -26
  90. package/dist/style.css +198 -178
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/dist/types/document-models/document-models.d.ts +30 -15
  93. package/dist/types/document-models/document-models.d.ts.map +1 -1
  94. package/dist/types/document-models/index.d.ts +1 -1
  95. package/dist/types/document-models/ph-clint-project/gen/schema/types.d.ts.map +1 -0
  96. package/dist/types/document-models/ph-clint-project/gen/schema/zod.d.ts.map +1 -0
  97. package/dist/types/document-models/ph-clint-project/index.d.ts +2 -2
  98. package/dist/types/document-models/ph-clint-project/upgrades/index.d.ts +2 -2
  99. package/dist/types/document-models/ph-clint-project/upgrades/upgrade-manifest.d.ts +2 -2
  100. package/dist/types/document-models/ph-clint-project/upgrades/upgrade-manifest.d.ts.map +1 -1
  101. package/dist/types/document-models/ph-clint-project/v1/actions.d.ts +30 -15
  102. package/dist/types/document-models/ph-clint-project/v1/actions.d.ts.map +1 -1
  103. package/dist/types/document-models/ph-clint-project/v1/gen/actions.d.ts +29 -19
  104. package/dist/types/document-models/ph-clint-project/v1/gen/actions.d.ts.map +1 -1
  105. package/dist/types/document-models/ph-clint-project/v1/gen/controller.d.ts +2 -2
  106. package/dist/types/document-models/ph-clint-project/v1/gen/controller.d.ts.map +1 -1
  107. package/dist/types/document-models/ph-clint-project/v1/gen/creators.d.ts +28 -18
  108. package/dist/types/document-models/ph-clint-project/v1/gen/creators.d.ts.map +1 -1
  109. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/actions.d.ts +10 -6
  110. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/actions.d.ts.map +1 -1
  111. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/creators.d.ts +3 -2
  112. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/creators.d.ts.map +1 -1
  113. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/error.d.ts +1 -1
  114. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/operations.d.ts +4 -3
  115. package/dist/types/document-models/ph-clint-project/v1/gen/deployment/operations.d.ts.map +1 -1
  116. package/dist/types/document-models/ph-clint-project/v1/gen/document-model.d.ts +1 -1
  117. package/dist/types/document-models/ph-clint-project/v1/gen/document-model.d.ts.map +1 -1
  118. package/dist/types/document-models/ph-clint-project/v1/gen/document-schema.d.ts +2 -2
  119. package/dist/types/document-models/ph-clint-project/v1/gen/document-schema.d.ts.map +1 -1
  120. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/actions.d.ts +6 -6
  121. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/actions.d.ts.map +1 -1
  122. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/creators.d.ts +2 -2
  123. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/creators.d.ts.map +1 -1
  124. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/error.d.ts +1 -1
  125. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/error.d.ts.map +1 -1
  126. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/operations.d.ts +3 -3
  127. package/dist/types/document-models/ph-clint-project/v1/gen/external-skills/operations.d.ts.map +1 -1
  128. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/actions.d.ts +6 -54
  129. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/actions.d.ts.map +1 -1
  130. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/creators.d.ts +2 -14
  131. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/creators.d.ts.map +1 -1
  132. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/error.d.ts +1 -78
  133. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/error.d.ts.map +1 -1
  134. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/operations.d.ts +3 -15
  135. package/dist/types/document-models/ph-clint-project/v1/gen/features-mastra/operations.d.ts.map +1 -1
  136. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/actions.d.ts +3 -3
  137. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/creators.d.ts +2 -2
  138. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/creators.d.ts.map +1 -1
  139. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/error.d.ts +1 -1
  140. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/operations.d.ts +3 -3
  141. package/dist/types/document-models/ph-clint-project/v1/gen/features-powerhouse/operations.d.ts.map +1 -1
  142. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/actions.d.ts +4 -4
  143. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/actions.d.ts.map +1 -1
  144. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/creators.d.ts +2 -2
  145. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/creators.d.ts.map +1 -1
  146. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/operations.d.ts +3 -3
  147. package/dist/types/document-models/ph-clint-project/v1/gen/features-routine/operations.d.ts.map +1 -1
  148. package/dist/types/document-models/ph-clint-project/v1/gen/identity/actions.d.ts +5 -5
  149. package/dist/types/document-models/ph-clint-project/v1/gen/identity/actions.d.ts.map +1 -1
  150. package/dist/types/document-models/ph-clint-project/v1/gen/identity/creators.d.ts +2 -2
  151. package/dist/types/document-models/ph-clint-project/v1/gen/identity/creators.d.ts.map +1 -1
  152. package/dist/types/document-models/ph-clint-project/v1/gen/identity/error.d.ts +1 -1
  153. package/dist/types/document-models/ph-clint-project/v1/gen/identity/error.d.ts.map +1 -1
  154. package/dist/types/document-models/ph-clint-project/v1/gen/identity/operations.d.ts +3 -3
  155. package/dist/types/document-models/ph-clint-project/v1/gen/identity/operations.d.ts.map +1 -1
  156. package/dist/types/document-models/ph-clint-project/v1/gen/index.d.ts +25 -20
  157. package/dist/types/document-models/ph-clint-project/v1/gen/index.d.ts.map +1 -1
  158. package/dist/types/document-models/ph-clint-project/v1/gen/lifecycle/actions.d.ts +3 -3
  159. package/dist/types/document-models/ph-clint-project/v1/gen/lifecycle/creators.d.ts +2 -2
  160. package/dist/types/document-models/ph-clint-project/v1/gen/lifecycle/creators.d.ts.map +1 -1
  161. package/dist/types/document-models/ph-clint-project/v1/gen/lifecycle/operations.d.ts +3 -3
  162. package/dist/types/document-models/ph-clint-project/v1/gen/lifecycle/operations.d.ts.map +1 -1
  163. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/actions.d.ts.map +1 -0
  164. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/creators.d.ts.map +1 -0
  165. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/error.d.ts.map +1 -0
  166. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/operations.d.ts.map +1 -0
  167. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-main-agent/actions.d.ts.map +1 -0
  168. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-main-agent/creators.d.ts.map +1 -0
  169. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-main-agent/error.d.ts.map +1 -0
  170. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-main-agent/operations.d.ts.map +1 -0
  171. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-models/actions.d.ts.map +1 -0
  172. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-models/creators.d.ts.map +1 -0
  173. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-models/error.d.ts.map +1 -0
  174. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-models/operations.d.ts.map +1 -0
  175. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-profiles/actions.d.ts.map +1 -0
  176. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-profiles/creators.d.ts.map +1 -0
  177. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-profiles/error.d.ts.map +1 -0
  178. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-profiles/operations.d.ts.map +1 -0
  179. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-sub-agents/actions.d.ts.map +1 -0
  180. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-sub-agents/creators.d.ts.map +1 -0
  181. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-sub-agents/error.d.ts.map +1 -0
  182. package/dist/types/document-models/ph-clint-project/v1/gen/mastra-sub-agents/operations.d.ts.map +1 -0
  183. package/dist/types/document-models/ph-clint-project/v1/gen/ph-factories.d.ts +2 -2
  184. package/dist/types/document-models/ph-clint-project/v1/gen/ph-factories.d.ts.map +1 -1
  185. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/actions.d.ts +7 -7
  186. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/actions.d.ts.map +1 -1
  187. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/creators.d.ts +2 -2
  188. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/creators.d.ts.map +1 -1
  189. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/error.d.ts +1 -1
  190. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/error.d.ts.map +1 -1
  191. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/operations.d.ts +3 -3
  192. package/dist/types/document-models/ph-clint-project/v1/gen/powerhouse-packages/operations.d.ts.map +1 -1
  193. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/actions.d.ts +7 -7
  194. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/actions.d.ts.map +1 -1
  195. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/creators.d.ts +2 -2
  196. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/creators.d.ts.map +1 -1
  197. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/error.d.ts +1 -1
  198. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/operations.d.ts +3 -3
  199. package/dist/types/document-models/ph-clint-project/v1/gen/publishing/operations.d.ts.map +1 -1
  200. package/dist/types/document-models/ph-clint-project/v1/gen/reducer.d.ts +2 -2
  201. package/dist/types/document-models/ph-clint-project/v1/gen/reducer.d.ts.map +1 -1
  202. package/dist/types/document-models/ph-clint-project/v1/gen/schema/index.d.ts +2 -2
  203. package/dist/types/document-models/ph-clint-project/v1/gen/schema/types.d.ts +215 -131
  204. package/dist/types/document-models/ph-clint-project/v1/gen/schema/types.d.ts.map +1 -1
  205. package/dist/types/document-models/ph-clint-project/v1/gen/schema/zod.d.ts +24 -8
  206. package/dist/types/document-models/ph-clint-project/v1/gen/schema/zod.d.ts.map +1 -1
  207. package/dist/types/document-models/ph-clint-project/v1/gen/types.d.ts +5 -5
  208. package/dist/types/document-models/ph-clint-project/v1/gen/types.d.ts.map +1 -1
  209. package/dist/types/document-models/ph-clint-project/v1/gen/utils.d.ts +2 -2
  210. package/dist/types/document-models/ph-clint-project/v1/gen/utils.d.ts.map +1 -1
  211. package/dist/types/document-models/ph-clint-project/v1/hooks.d.ts +3 -6
  212. package/dist/types/document-models/ph-clint-project/v1/hooks.d.ts.map +1 -1
  213. package/dist/types/document-models/ph-clint-project/v1/index.d.ts +6 -6
  214. package/dist/types/document-models/ph-clint-project/v1/module.d.ts +31 -16
  215. package/dist/types/document-models/ph-clint-project/v1/module.d.ts.map +1 -1
  216. package/dist/types/document-models/ph-clint-project/v1/src/index.d.ts +1 -1
  217. package/dist/types/document-models/ph-clint-project/v1/src/reducers/deployment.d.ts +1 -1
  218. package/dist/types/document-models/ph-clint-project/v1/src/reducers/deployment.d.ts.map +1 -1
  219. package/dist/types/document-models/ph-clint-project/v1/src/reducers/external-skills.d.ts +1 -1
  220. package/dist/types/document-models/ph-clint-project/v1/src/reducers/external-skills.d.ts.map +1 -1
  221. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-mastra.d.ts +1 -1
  222. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-mastra.d.ts.map +1 -1
  223. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-powerhouse.d.ts +1 -1
  224. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-powerhouse.d.ts.map +1 -1
  225. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-routine.d.ts +1 -1
  226. package/dist/types/document-models/ph-clint-project/v1/src/reducers/features-routine.d.ts.map +1 -1
  227. package/dist/types/document-models/ph-clint-project/v1/src/reducers/identity.d.ts +1 -1
  228. package/dist/types/document-models/ph-clint-project/v1/src/reducers/identity.d.ts.map +1 -1
  229. package/dist/types/document-models/ph-clint-project/v1/src/reducers/lifecycle.d.ts +1 -1
  230. package/dist/types/document-models/ph-clint-project/v1/src/reducers/lifecycle.d.ts.map +1 -1
  231. package/dist/types/document-models/ph-clint-project/v1/src/reducers/mastra-agent-bindings.d.ts.map +1 -0
  232. package/dist/types/document-models/ph-clint-project/v1/src/reducers/mastra-main-agent.d.ts.map +1 -0
  233. package/dist/types/document-models/ph-clint-project/v1/src/reducers/mastra-models.d.ts.map +1 -0
  234. package/dist/types/document-models/ph-clint-project/v1/src/reducers/mastra-profiles.d.ts.map +1 -0
  235. package/dist/types/document-models/ph-clint-project/v1/src/reducers/mastra-sub-agents.d.ts.map +1 -0
  236. package/dist/types/document-models/ph-clint-project/v1/src/reducers/powerhouse-packages.d.ts +1 -1
  237. package/dist/types/document-models/ph-clint-project/v1/src/reducers/powerhouse-packages.d.ts.map +1 -1
  238. package/dist/types/document-models/ph-clint-project/v1/src/reducers/publishing.d.ts +1 -1
  239. package/dist/types/document-models/ph-clint-project/v1/src/reducers/publishing.d.ts.map +1 -1
  240. package/dist/types/document-models/ph-clint-project/v1/tests/mastra-agent-bindings.test.d.ts.map +1 -0
  241. package/dist/types/document-models/ph-clint-project/v1/tests/mastra-main-agent.test.d.ts.map +1 -0
  242. package/dist/types/document-models/ph-clint-project/v1/tests/mastra-models.test.d.ts.map +1 -0
  243. package/dist/types/document-models/ph-clint-project/v1/tests/mastra-profiles.test.d.ts.map +1 -0
  244. package/dist/types/document-models/ph-clint-project/v1/tests/mastra-sub-agents.test.d.ts.map +1 -0
  245. package/dist/types/document-models/ph-clint-project/v1/utils.d.ts +2 -2
  246. package/dist/types/document-models/upgrade-manifests.d.ts +1 -1
  247. package/dist/types/document-models/upgrade-manifests.d.ts.map +1 -1
  248. package/dist/types/editors/editors.d.ts +1 -5
  249. package/dist/types/editors/editors.d.ts.map +1 -1
  250. package/dist/types/editors/index.d.ts +1 -1
  251. package/dist/types/editors/ph-clint-project-editor/editor.d.ts.map +1 -1
  252. package/dist/types/editors/ph-clint-project-editor/module.d.ts +1 -5
  253. package/dist/types/editors/ph-clint-project-editor/module.d.ts.map +1 -1
  254. package/dist/types/index.d.ts +7 -9
  255. package/dist/types/index.d.ts.map +1 -1
  256. package/dist/types/processors/connect.d.ts +1 -1
  257. package/dist/types/processors/factory.d.ts +2 -2
  258. package/dist/types/processors/factory.d.ts.map +1 -1
  259. package/dist/types/processors/index.d.ts +1 -1
  260. package/dist/types/processors/switchboard.d.ts +1 -1
  261. package/package.json +38 -27
  262. package/dist/browser/module-B16ZT36n.js.map +0 -1
  263. package/dist/browser/ph-clint-project-CHq59BKL.js.map +0 -1
  264. package/dist/connect/__react__/chunks/chunk-BUAv4yFm.js +0 -1
  265. package/dist/connect/__react__/chunks/server.browser-Ds-0IcTb.js +0 -1
  266. package/dist/connect/__react__/chunks/static.browser-CL3g4nOE.js +0 -1
  267. package/dist/connect/assets/editor-BaQ62r3i.js +0 -2
  268. package/dist/connect/assets/index-NB86TKkT.js +0 -3
  269. package/dist/connect/assets/index-NB86TKkT.js.map +0 -1
  270. package/dist/connect/assets/index-vlKMuf0A.css +0 -2
  271. package/dist/connect/assets/ph-clint-project-p1zY6e17.js.map +0 -1
  272. package/dist/document-models/document-models.d.ts +0 -7
  273. package/dist/document-models/document-models.d.ts.map +0 -1
  274. package/dist/document-models/index.d.ts +0 -2
  275. package/dist/document-models/index.d.ts.map +0 -1
  276. package/dist/document-models/ph-clint-project/gen/schema/types.d.ts.map +0 -1
  277. package/dist/document-models/ph-clint-project/gen/schema/zod.d.ts.map +0 -1
  278. package/dist/document-models/ph-clint-project/index.d.ts +0 -3
  279. package/dist/document-models/ph-clint-project/index.d.ts.map +0 -1
  280. package/dist/document-models/ph-clint-project/upgrades/index.d.ts +0 -3
  281. package/dist/document-models/ph-clint-project/upgrades/index.d.ts.map +0 -1
  282. package/dist/document-models/ph-clint-project/upgrades/upgrade-manifest.d.ts +0 -8
  283. package/dist/document-models/ph-clint-project/upgrades/upgrade-manifest.d.ts.map +0 -1
  284. package/dist/document-models/ph-clint-project/upgrades/versions.d.ts +0 -3
  285. package/dist/document-models/ph-clint-project/upgrades/versions.d.ts.map +0 -1
  286. package/dist/document-models/ph-clint-project/v1/actions.d.ts +0 -68
  287. package/dist/document-models/ph-clint-project/v1/actions.d.ts.map +0 -1
  288. package/dist/document-models/ph-clint-project/v1/gen/actions.d.ts +0 -34
  289. package/dist/document-models/ph-clint-project/v1/gen/actions.d.ts.map +0 -1
  290. package/dist/document-models/ph-clint-project/v1/gen/controller.d.ts +0 -8
  291. package/dist/document-models/ph-clint-project/v1/gen/controller.d.ts.map +0 -1
  292. package/dist/document-models/ph-clint-project/v1/gen/creators.d.ts +0 -33
  293. package/dist/document-models/ph-clint-project/v1/gen/creators.d.ts.map +0 -1
  294. package/dist/document-models/ph-clint-project/v1/gen/deployment/actions.d.ts +0 -24
  295. package/dist/document-models/ph-clint-project/v1/gen/deployment/actions.d.ts.map +0 -1
  296. package/dist/document-models/ph-clint-project/v1/gen/deployment/creators.d.ts +0 -7
  297. package/dist/document-models/ph-clint-project/v1/gen/deployment/creators.d.ts.map +0 -1
  298. package/dist/document-models/ph-clint-project/v1/gen/deployment/error.d.ts +0 -21
  299. package/dist/document-models/ph-clint-project/v1/gen/deployment/error.d.ts.map +0 -1
  300. package/dist/document-models/ph-clint-project/v1/gen/deployment/operations.d.ts +0 -14
  301. package/dist/document-models/ph-clint-project/v1/gen/deployment/operations.d.ts.map +0 -1
  302. package/dist/document-models/ph-clint-project/v1/gen/document-model.d.ts +0 -3
  303. package/dist/document-models/ph-clint-project/v1/gen/document-model.d.ts.map +0 -1
  304. package/dist/document-models/ph-clint-project/v1/gen/document-schema.d.ts +0 -68
  305. package/dist/document-models/ph-clint-project/v1/gen/document-schema.d.ts.map +0 -1
  306. package/dist/document-models/ph-clint-project/v1/gen/document-type.d.ts +0 -6
  307. package/dist/document-models/ph-clint-project/v1/gen/document-type.d.ts.map +0 -1
  308. package/dist/document-models/ph-clint-project/v1/gen/external-skills/actions.d.ts +0 -24
  309. package/dist/document-models/ph-clint-project/v1/gen/external-skills/actions.d.ts.map +0 -1
  310. package/dist/document-models/ph-clint-project/v1/gen/external-skills/creators.d.ts +0 -7
  311. package/dist/document-models/ph-clint-project/v1/gen/external-skills/creators.d.ts.map +0 -1
  312. package/dist/document-models/ph-clint-project/v1/gen/external-skills/error.d.ts +0 -34
  313. package/dist/document-models/ph-clint-project/v1/gen/external-skills/error.d.ts.map +0 -1
  314. package/dist/document-models/ph-clint-project/v1/gen/external-skills/operations.d.ts +0 -14
  315. package/dist/document-models/ph-clint-project/v1/gen/external-skills/operations.d.ts.map +0 -1
  316. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/actions.d.ts +0 -20
  317. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/actions.d.ts.map +0 -1
  318. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/creators.d.ts +0 -6
  319. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/creators.d.ts.map +0 -1
  320. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/error.d.ts +0 -31
  321. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/error.d.ts.map +0 -1
  322. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/operations.d.ts +0 -13
  323. package/dist/document-models/ph-clint-project/v1/gen/features-mastra/operations.d.ts.map +0 -1
  324. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/actions.d.ts +0 -12
  325. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/actions.d.ts.map +0 -1
  326. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/creators.d.ts +0 -4
  327. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/creators.d.ts.map +0 -1
  328. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/error.d.ts +0 -14
  329. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/error.d.ts.map +0 -1
  330. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/operations.d.ts +0 -11
  331. package/dist/document-models/ph-clint-project/v1/gen/features-powerhouse/operations.d.ts.map +0 -1
  332. package/dist/document-models/ph-clint-project/v1/gen/features-routine/actions.d.ts +0 -16
  333. package/dist/document-models/ph-clint-project/v1/gen/features-routine/actions.d.ts.map +0 -1
  334. package/dist/document-models/ph-clint-project/v1/gen/features-routine/creators.d.ts +0 -5
  335. package/dist/document-models/ph-clint-project/v1/gen/features-routine/creators.d.ts.map +0 -1
  336. package/dist/document-models/ph-clint-project/v1/gen/features-routine/error.d.ts +0 -2
  337. package/dist/document-models/ph-clint-project/v1/gen/features-routine/error.d.ts.map +0 -1
  338. package/dist/document-models/ph-clint-project/v1/gen/features-routine/operations.d.ts +0 -12
  339. package/dist/document-models/ph-clint-project/v1/gen/features-routine/operations.d.ts.map +0 -1
  340. package/dist/document-models/ph-clint-project/v1/gen/identity/actions.d.ts +0 -20
  341. package/dist/document-models/ph-clint-project/v1/gen/identity/actions.d.ts.map +0 -1
  342. package/dist/document-models/ph-clint-project/v1/gen/identity/creators.d.ts +0 -6
  343. package/dist/document-models/ph-clint-project/v1/gen/identity/creators.d.ts.map +0 -1
  344. package/dist/document-models/ph-clint-project/v1/gen/identity/error.d.ts +0 -21
  345. package/dist/document-models/ph-clint-project/v1/gen/identity/error.d.ts.map +0 -1
  346. package/dist/document-models/ph-clint-project/v1/gen/identity/operations.d.ts +0 -13
  347. package/dist/document-models/ph-clint-project/v1/gen/identity/operations.d.ts.map +0 -1
  348. package/dist/document-models/ph-clint-project/v1/gen/index.d.ts +0 -30
  349. package/dist/document-models/ph-clint-project/v1/gen/index.d.ts.map +0 -1
  350. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/actions.d.ts +0 -12
  351. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/actions.d.ts.map +0 -1
  352. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/creators.d.ts +0 -4
  353. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/creators.d.ts.map +0 -1
  354. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/error.d.ts +0 -8
  355. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/error.d.ts.map +0 -1
  356. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/operations.d.ts +0 -11
  357. package/dist/document-models/ph-clint-project/v1/gen/lifecycle/operations.d.ts.map +0 -1
  358. package/dist/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/actions.d.ts.map +0 -1
  359. package/dist/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/creators.d.ts.map +0 -1
  360. package/dist/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/error.d.ts.map +0 -1
  361. package/dist/document-models/ph-clint-project/v1/gen/mastra-agent-bindings/operations.d.ts.map +0 -1
  362. package/dist/document-models/ph-clint-project/v1/gen/mastra-main-agent/actions.d.ts.map +0 -1
  363. package/dist/document-models/ph-clint-project/v1/gen/mastra-main-agent/creators.d.ts.map +0 -1
  364. package/dist/document-models/ph-clint-project/v1/gen/mastra-main-agent/error.d.ts.map +0 -1
  365. package/dist/document-models/ph-clint-project/v1/gen/mastra-main-agent/operations.d.ts.map +0 -1
  366. package/dist/document-models/ph-clint-project/v1/gen/mastra-models/actions.d.ts.map +0 -1
  367. package/dist/document-models/ph-clint-project/v1/gen/mastra-models/creators.d.ts.map +0 -1
  368. package/dist/document-models/ph-clint-project/v1/gen/mastra-models/error.d.ts.map +0 -1
  369. package/dist/document-models/ph-clint-project/v1/gen/mastra-models/operations.d.ts.map +0 -1
  370. package/dist/document-models/ph-clint-project/v1/gen/mastra-profiles/actions.d.ts.map +0 -1
  371. package/dist/document-models/ph-clint-project/v1/gen/mastra-profiles/creators.d.ts.map +0 -1
  372. package/dist/document-models/ph-clint-project/v1/gen/mastra-profiles/error.d.ts.map +0 -1
  373. package/dist/document-models/ph-clint-project/v1/gen/mastra-profiles/operations.d.ts.map +0 -1
  374. package/dist/document-models/ph-clint-project/v1/gen/mastra-sub-agents/actions.d.ts.map +0 -1
  375. package/dist/document-models/ph-clint-project/v1/gen/mastra-sub-agents/creators.d.ts.map +0 -1
  376. package/dist/document-models/ph-clint-project/v1/gen/mastra-sub-agents/error.d.ts.map +0 -1
  377. package/dist/document-models/ph-clint-project/v1/gen/mastra-sub-agents/operations.d.ts.map +0 -1
  378. package/dist/document-models/ph-clint-project/v1/gen/ph-factories.d.ts +0 -25
  379. package/dist/document-models/ph-clint-project/v1/gen/ph-factories.d.ts.map +0 -1
  380. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/actions.d.ts +0 -28
  381. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/actions.d.ts.map +0 -1
  382. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/creators.d.ts +0 -8
  383. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/creators.d.ts.map +0 -1
  384. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/error.d.ts +0 -60
  385. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/error.d.ts.map +0 -1
  386. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/operations.d.ts +0 -15
  387. package/dist/document-models/ph-clint-project/v1/gen/powerhouse-packages/operations.d.ts.map +0 -1
  388. package/dist/document-models/ph-clint-project/v1/gen/publishing/actions.d.ts +0 -28
  389. package/dist/document-models/ph-clint-project/v1/gen/publishing/actions.d.ts.map +0 -1
  390. package/dist/document-models/ph-clint-project/v1/gen/publishing/creators.d.ts +0 -8
  391. package/dist/document-models/ph-clint-project/v1/gen/publishing/creators.d.ts.map +0 -1
  392. package/dist/document-models/ph-clint-project/v1/gen/publishing/error.d.ts +0 -21
  393. package/dist/document-models/ph-clint-project/v1/gen/publishing/error.d.ts.map +0 -1
  394. package/dist/document-models/ph-clint-project/v1/gen/publishing/operations.d.ts +0 -15
  395. package/dist/document-models/ph-clint-project/v1/gen/publishing/operations.d.ts.map +0 -1
  396. package/dist/document-models/ph-clint-project/v1/gen/reducer.d.ts +0 -4
  397. package/dist/document-models/ph-clint-project/v1/gen/reducer.d.ts.map +0 -1
  398. package/dist/document-models/ph-clint-project/v1/gen/schema/index.d.ts +0 -7
  399. package/dist/document-models/ph-clint-project/v1/gen/schema/index.d.ts.map +0 -1
  400. package/dist/document-models/ph-clint-project/v1/gen/schema/types.d.ts +0 -475
  401. package/dist/document-models/ph-clint-project/v1/gen/schema/types.d.ts.map +0 -1
  402. package/dist/document-models/ph-clint-project/v1/gen/schema/zod.d.ts +0 -97
  403. package/dist/document-models/ph-clint-project/v1/gen/schema/zod.d.ts.map +0 -1
  404. package/dist/document-models/ph-clint-project/v1/gen/types.d.ts +0 -16
  405. package/dist/document-models/ph-clint-project/v1/gen/types.d.ts.map +0 -1
  406. package/dist/document-models/ph-clint-project/v1/gen/utils.d.ts +0 -10
  407. package/dist/document-models/ph-clint-project/v1/gen/utils.d.ts.map +0 -1
  408. package/dist/document-models/ph-clint-project/v1/hooks.d.ts +0 -15
  409. package/dist/document-models/ph-clint-project/v1/hooks.d.ts.map +0 -1
  410. package/dist/document-models/ph-clint-project/v1/index.d.ts +0 -11
  411. package/dist/document-models/ph-clint-project/v1/index.d.ts.map +0 -1
  412. package/dist/document-models/ph-clint-project/v1/module.d.ts +0 -75
  413. package/dist/document-models/ph-clint-project/v1/module.d.ts.map +0 -1
  414. package/dist/document-models/ph-clint-project/v1/src/index.d.ts +0 -6
  415. package/dist/document-models/ph-clint-project/v1/src/index.d.ts.map +0 -1
  416. package/dist/document-models/ph-clint-project/v1/src/reducers/deployment.d.ts +0 -3
  417. package/dist/document-models/ph-clint-project/v1/src/reducers/deployment.d.ts.map +0 -1
  418. package/dist/document-models/ph-clint-project/v1/src/reducers/external-skills.d.ts +0 -3
  419. package/dist/document-models/ph-clint-project/v1/src/reducers/external-skills.d.ts.map +0 -1
  420. package/dist/document-models/ph-clint-project/v1/src/reducers/features-mastra.d.ts +0 -3
  421. package/dist/document-models/ph-clint-project/v1/src/reducers/features-mastra.d.ts.map +0 -1
  422. package/dist/document-models/ph-clint-project/v1/src/reducers/features-powerhouse.d.ts +0 -3
  423. package/dist/document-models/ph-clint-project/v1/src/reducers/features-powerhouse.d.ts.map +0 -1
  424. package/dist/document-models/ph-clint-project/v1/src/reducers/features-routine.d.ts +0 -3
  425. package/dist/document-models/ph-clint-project/v1/src/reducers/features-routine.d.ts.map +0 -1
  426. package/dist/document-models/ph-clint-project/v1/src/reducers/identity.d.ts +0 -3
  427. package/dist/document-models/ph-clint-project/v1/src/reducers/identity.d.ts.map +0 -1
  428. package/dist/document-models/ph-clint-project/v1/src/reducers/lifecycle.d.ts +0 -3
  429. package/dist/document-models/ph-clint-project/v1/src/reducers/lifecycle.d.ts.map +0 -1
  430. package/dist/document-models/ph-clint-project/v1/src/reducers/mastra-agent-bindings.d.ts.map +0 -1
  431. package/dist/document-models/ph-clint-project/v1/src/reducers/mastra-main-agent.d.ts.map +0 -1
  432. package/dist/document-models/ph-clint-project/v1/src/reducers/mastra-models.d.ts.map +0 -1
  433. package/dist/document-models/ph-clint-project/v1/src/reducers/mastra-profiles.d.ts.map +0 -1
  434. package/dist/document-models/ph-clint-project/v1/src/reducers/mastra-sub-agents.d.ts.map +0 -1
  435. package/dist/document-models/ph-clint-project/v1/src/reducers/powerhouse-packages.d.ts +0 -3
  436. package/dist/document-models/ph-clint-project/v1/src/reducers/powerhouse-packages.d.ts.map +0 -1
  437. package/dist/document-models/ph-clint-project/v1/src/reducers/publishing.d.ts +0 -3
  438. package/dist/document-models/ph-clint-project/v1/src/reducers/publishing.d.ts.map +0 -1
  439. package/dist/document-models/ph-clint-project/v1/src/utils.d.ts +0 -2
  440. package/dist/document-models/ph-clint-project/v1/src/utils.d.ts.map +0 -1
  441. package/dist/document-models/ph-clint-project/v1/tests/deployment.test.d.ts +0 -2
  442. package/dist/document-models/ph-clint-project/v1/tests/deployment.test.d.ts.map +0 -1
  443. package/dist/document-models/ph-clint-project/v1/tests/document-model.test.d.ts +0 -10
  444. package/dist/document-models/ph-clint-project/v1/tests/document-model.test.d.ts.map +0 -1
  445. package/dist/document-models/ph-clint-project/v1/tests/external-skills.test.d.ts +0 -2
  446. package/dist/document-models/ph-clint-project/v1/tests/external-skills.test.d.ts.map +0 -1
  447. package/dist/document-models/ph-clint-project/v1/tests/features-mastra.test.d.ts +0 -2
  448. package/dist/document-models/ph-clint-project/v1/tests/features-mastra.test.d.ts.map +0 -1
  449. package/dist/document-models/ph-clint-project/v1/tests/features-powerhouse.test.d.ts +0 -2
  450. package/dist/document-models/ph-clint-project/v1/tests/features-powerhouse.test.d.ts.map +0 -1
  451. package/dist/document-models/ph-clint-project/v1/tests/features-routine.test.d.ts +0 -2
  452. package/dist/document-models/ph-clint-project/v1/tests/features-routine.test.d.ts.map +0 -1
  453. package/dist/document-models/ph-clint-project/v1/tests/identity.test.d.ts +0 -2
  454. package/dist/document-models/ph-clint-project/v1/tests/identity.test.d.ts.map +0 -1
  455. package/dist/document-models/ph-clint-project/v1/tests/lifecycle.test.d.ts +0 -2
  456. package/dist/document-models/ph-clint-project/v1/tests/lifecycle.test.d.ts.map +0 -1
  457. package/dist/document-models/ph-clint-project/v1/tests/mastra-agent-bindings.test.d.ts.map +0 -1
  458. package/dist/document-models/ph-clint-project/v1/tests/mastra-main-agent.test.d.ts.map +0 -1
  459. package/dist/document-models/ph-clint-project/v1/tests/mastra-models.test.d.ts.map +0 -1
  460. package/dist/document-models/ph-clint-project/v1/tests/mastra-profiles.test.d.ts.map +0 -1
  461. package/dist/document-models/ph-clint-project/v1/tests/mastra-sub-agents.test.d.ts.map +0 -1
  462. package/dist/document-models/ph-clint-project/v1/tests/powerhouse-packages.test.d.ts +0 -2
  463. package/dist/document-models/ph-clint-project/v1/tests/powerhouse-packages.test.d.ts.map +0 -1
  464. package/dist/document-models/ph-clint-project/v1/tests/publishing.test.d.ts +0 -2
  465. package/dist/document-models/ph-clint-project/v1/tests/publishing.test.d.ts.map +0 -1
  466. package/dist/document-models/ph-clint-project/v1/utils.d.ts +0 -9
  467. package/dist/document-models/ph-clint-project/v1/utils.d.ts.map +0 -1
  468. package/dist/document-models/upgrade-manifests.d.ts +0 -7
  469. package/dist/document-models/upgrade-manifests.d.ts.map +0 -1
  470. package/dist/editors/editors.d.ts +0 -3
  471. package/dist/editors/editors.d.ts.map +0 -1
  472. package/dist/editors/index.d.ts +0 -2
  473. package/dist/editors/index.d.ts.map +0 -1
  474. package/dist/editors/ph-clint-project-editor/editor.d.ts +0 -2
  475. package/dist/editors/ph-clint-project-editor/editor.d.ts.map +0 -1
  476. package/dist/editors/ph-clint-project-editor/module.d.ts +0 -4
  477. package/dist/editors/ph-clint-project-editor/module.d.ts.map +0 -1
  478. package/dist/index.d.ts +0 -9
  479. package/dist/index.d.ts.map +0 -1
  480. package/dist/main.d.ts +0 -2
  481. package/dist/main.d.ts.map +0 -1
  482. package/dist/node/module-BPw40Ypp.mjs.map +0 -1
  483. package/dist/node/ph-clint-project-B5IjiXbp.mjs.map +0 -1
  484. package/dist/processors/connect.d.ts +0 -3
  485. package/dist/processors/connect.d.ts.map +0 -1
  486. package/dist/processors/factory.d.ts +0 -8
  487. package/dist/processors/factory.d.ts.map +0 -1
  488. package/dist/processors/index.d.ts +0 -6
  489. package/dist/processors/index.d.ts.map +0 -1
  490. package/dist/processors/switchboard.d.ts +0 -3
  491. package/dist/processors/switchboard.d.ts.map +0 -1
  492. package/dist/subgraphs/index.d.ts +0 -2
  493. package/dist/subgraphs/index.d.ts.map +0 -1
  494. /package/dist/{document-models → types/document-models}/ph-clint-project/gen/schema/types.d.ts +0 -0
  495. /package/dist/{document-models → types/document-models}/ph-clint-project/gen/schema/zod.d.ts +0 -0
  496. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-agent-bindings/actions.d.ts +0 -0
  497. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-agent-bindings/creators.d.ts +0 -0
  498. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-agent-bindings/error.d.ts +0 -0
  499. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-agent-bindings/operations.d.ts +0 -0
  500. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-main-agent/actions.d.ts +0 -0
  501. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-main-agent/creators.d.ts +0 -0
  502. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-main-agent/error.d.ts +0 -0
  503. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-main-agent/operations.d.ts +0 -0
  504. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-models/actions.d.ts +0 -0
  505. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-models/creators.d.ts +0 -0
  506. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-models/error.d.ts +0 -0
  507. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-models/operations.d.ts +0 -0
  508. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-profiles/actions.d.ts +0 -0
  509. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-profiles/creators.d.ts +0 -0
  510. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-profiles/error.d.ts +0 -0
  511. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-profiles/operations.d.ts +0 -0
  512. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-sub-agents/actions.d.ts +0 -0
  513. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-sub-agents/creators.d.ts +0 -0
  514. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-sub-agents/error.d.ts +0 -0
  515. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/gen/mastra-sub-agents/operations.d.ts +0 -0
  516. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/src/reducers/mastra-agent-bindings.d.ts +0 -0
  517. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/src/reducers/mastra-main-agent.d.ts +0 -0
  518. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/src/reducers/mastra-models.d.ts +0 -0
  519. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/src/reducers/mastra-profiles.d.ts +0 -0
  520. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/src/reducers/mastra-sub-agents.d.ts +0 -0
  521. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/tests/mastra-agent-bindings.test.d.ts +0 -0
  522. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/tests/mastra-main-agent.test.d.ts +0 -0
  523. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/tests/mastra-models.test.d.ts +0 -0
  524. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/tests/mastra-profiles.test.d.ts +0 -0
  525. /package/dist/{document-models → types/document-models}/ph-clint-project/v1/tests/mastra-sub-agents.test.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-CE3gZpe3.js","names":[],"sources":["../../../document-models/ph-clint-project/v1/gen/schema/zod.ts","../../../document-models/ph-clint-project/v1/gen/deployment/creators.ts","../../../document-models/ph-clint-project/v1/gen/external-skills/creators.ts","../../../document-models/ph-clint-project/v1/gen/features-mastra/creators.ts","../../../document-models/ph-clint-project/v1/gen/features-powerhouse/creators.ts","../../../document-models/ph-clint-project/v1/gen/features-routine/creators.ts","../../../document-models/ph-clint-project/v1/gen/identity/creators.ts","../../../document-models/ph-clint-project/v1/gen/lifecycle/creators.ts","../../../document-models/ph-clint-project/v1/gen/mastra-agent-bindings/creators.ts","../../../document-models/ph-clint-project/v1/gen/mastra-main-agent/creators.ts","../../../document-models/ph-clint-project/v1/gen/mastra-models/creators.ts","../../../document-models/ph-clint-project/v1/gen/mastra-profiles/creators.ts","../../../document-models/ph-clint-project/v1/gen/mastra-sub-agents/creators.ts","../../../document-models/ph-clint-project/v1/gen/powerhouse-packages/creators.ts","../../../document-models/ph-clint-project/v1/gen/publishing/creators.ts","../../../document-models/ph-clint-project/v1/actions.ts","../../../document-models/ph-clint-project/v1/gen/document-type.ts","../../../document-models/ph-clint-project/v1/gen/document-schema.ts","../../../document-models/ph-clint-project/v1/hooks.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 AddAgentProfileRefInput,\n AddAgentSkillInput,\n AddAgentToolPatternInput,\n AddExternalSkillInput,\n AddModelInput,\n AddPackageDocumentTypeInput,\n AddPowerhousePackageInput,\n AddProfileInput,\n AddSubAgentInput,\n AddSupportedResourceInput,\n BumpVersionInput,\n ClearMainAgentDescriptionInput,\n ClearMainAgentImageInput,\n DisableMastraInput,\n DisableRoutineInput,\n EnableMastraInput,\n EnableRoutineInput,\n ExternalSkill,\n ImportMainAgentInput,\n ImportModelInput,\n ImportPackageInput,\n ImportProfileInput,\n ImportSkillInput,\n ImportSpecInput,\n ImportSubAgentInput,\n PhClintAgentModel,\n PhClintAgentProfile,\n PhClintDeployment,\n PhClintFeatures,\n PhClintMainAgent,\n PhClintMastraCommon,\n PhClintMastraFeature,\n PhClintProjectState,\n PhClintRoutineFeature,\n PhClintSubAgent,\n PowerhouseLevel,\n PowerhousePackage,\n PublishDevInput,\n PublishProductionInput,\n PublishRecord,\n PublishStagingInput,\n PublishStatus,\n PublishTag,\n RemoveAgentProfileRefInput,\n RemoveAgentSkillInput,\n RemoveAgentToolPatternInput,\n RemoveExternalSkillInput,\n RemoveModelInput,\n RemovePackageDocumentTypeInput,\n RemovePowerhousePackageInput,\n RemoveProfileInput,\n RemoveSubAgentInput,\n RemoveSupportedResourceInput,\n ReorderAgentProfileRefsInput,\n ReorderProfilesInput,\n SetAgentModelInput,\n SetDescriptionInput,\n SetEnableChatInput,\n SetExternalSkillGithubUrlInput,\n SetExternalSkillNameInput,\n SetMainAgentDescriptionInput,\n SetMainAgentImageInput,\n SetMainAgentNameInput,\n SetObservabilityEnabledInput,\n SetPackageIdentifierInput,\n SetPackageVersionInput,\n SetPowerhouseLevelInput,\n SetProxyEnabledInput,\n SetPublishStatusInput,\n SetSubAgentDescriptionInput,\n SetSubAgentNameInput,\n SetVersionInput,\n UpdateProfileInput,\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 => v !== undefined && v !== null;\n\nexport const definedNonNullAnySchema = z.any().refine((v) => isDefinedNonNullAny(v));\n\nexport const PowerhouseLevelSchema = z.enum(['Connect', 'Disabled', 'Reactor', 'Switchboard']);\n\nexport const PublishStatusSchema = z.enum(['Failed', 'InProgress', 'Pending', 'Succeeded']);\n\nexport const PublishTagSchema = z.enum(['Dev', 'Production', 'Staging']);\n\nexport function AddAgentProfileRefInputSchema(): z.ZodObject<Properties<AddAgentProfileRefInput>> {\n return z.object({\n agentId: z.string(),\n insertBefore: z.string().nullish(),\n profileId: z.string(),\n });\n}\n\nexport function AddAgentSkillInputSchema(): z.ZodObject<Properties<AddAgentSkillInput>> {\n return z.object({\n agentId: z.string(),\n name: z.string(),\n });\n}\n\nexport function AddAgentToolPatternInputSchema(): z.ZodObject<Properties<AddAgentToolPatternInput>> {\n return z.object({\n agentId: z.string(),\n pattern: z.string(),\n });\n}\n\nexport function AddExternalSkillInputSchema(): z.ZodObject<Properties<AddExternalSkillInput>> {\n return z.object({\n githubUrl: z.url(),\n id: z.string(),\n name: z.string(),\n });\n}\n\nexport function AddModelInputSchema(): z.ZodObject<Properties<AddModelInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function AddPackageDocumentTypeInputSchema(): z.ZodObject<Properties<AddPackageDocumentTypeInput>> {\n return z.object({\n documentType: z.string(),\n packageId: z.string(),\n });\n}\n\nexport function AddPowerhousePackageInputSchema(): z.ZodObject<Properties<AddPowerhousePackageInput>> {\n return z.object({\n id: z.string(),\n packageName: z.string(),\n });\n}\n\nexport function AddProfileInputSchema(): z.ZodObject<Properties<AddProfileInput>> {\n return z.object({\n content: z.string(),\n id: z.string(),\n insertBefore: z.string().nullish(),\n title: z.string(),\n });\n}\n\nexport function AddSubAgentInputSchema(): z.ZodObject<Properties<AddSubAgentInput>> {\n return z.object({\n description: z.string(),\n id: z.string(),\n modelId: z.string(),\n name: z.string(),\n });\n}\n\nexport function AddSupportedResourceInputSchema(): z.ZodObject<Properties<AddSupportedResourceInput>> {\n return z.object({\n resource: z.string(),\n });\n}\n\nexport function BumpVersionInputSchema(): z.ZodObject<Properties<BumpVersionInput>> {\n return z.object({\n version: z.string(),\n });\n}\n\nexport function ClearMainAgentDescriptionInputSchema(): z.ZodObject<Properties<ClearMainAgentDescriptionInput>> {\n return z.object({\n _: z.boolean().nullish(),\n });\n}\n\nexport function ClearMainAgentImageInputSchema(): z.ZodObject<Properties<ClearMainAgentImageInput>> {\n return z.object({\n _: z.boolean().nullish(),\n });\n}\n\nexport function DisableMastraInputSchema(): z.ZodObject<Properties<DisableMastraInput>> {\n return z.object({\n _: z.boolean().nullish(),\n });\n}\n\nexport function DisableRoutineInputSchema(): z.ZodObject<Properties<DisableRoutineInput>> {\n return z.object({\n _: z.boolean().nullish(),\n });\n}\n\nexport function EnableMastraInputSchema(): z.ZodObject<Properties<EnableMastraInput>> {\n return z.object({\n agentId: z.string(),\n agentName: z.string(),\n });\n}\n\nexport function EnableRoutineInputSchema(): z.ZodObject<Properties<EnableRoutineInput>> {\n return z.object({\n _: z.boolean().nullish(),\n });\n}\n\nexport function ExternalSkillSchema(): z.ZodObject<Properties<ExternalSkill>> {\n return z.object({\n __typename: z.literal('ExternalSkill').optional(),\n githubUrl: z.url(),\n id: z.string(),\n name: z.string(),\n });\n}\n\nexport function ImportMainAgentInputSchema(): z.ZodObject<Properties<ImportMainAgentInput>> {\n return z.object({\n attachment: z.string().nullish(),\n description: z.string().nullish(),\n id: z.string(),\n modelId: z.string(),\n name: z.string(),\n profileIds: z.array(z.string()),\n skills: z.array(z.string()),\n toolPatterns: z.array(z.string()),\n });\n}\n\nexport function ImportModelInputSchema(): z.ZodObject<Properties<ImportModelInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function ImportPackageInputSchema(): z.ZodObject<Properties<ImportPackageInput>> {\n return z.object({\n documentTypes: z.array(z.string()),\n id: z.string(),\n packageName: z.string(),\n version: z.string().nullish(),\n });\n}\n\nexport function ImportProfileInputSchema(): z.ZodObject<Properties<ImportProfileInput>> {\n return z.object({\n content: z.string(),\n id: z.string(),\n title: z.string(),\n });\n}\n\nexport function ImportSkillInputSchema(): z.ZodObject<Properties<ImportSkillInput>> {\n return z.object({\n githubUrl: z.url(),\n id: z.string(),\n name: z.string(),\n });\n}\n\nexport function ImportSpecInputSchema(): z.ZodObject<Properties<ImportSpecInput>> {\n return z.object({\n description: z.string(),\n enableChat: z.boolean().nullish(),\n externalSkills: z.array(z.lazy(() => ImportSkillInputSchema())),\n mainAgent: z.lazy(() => ImportMainAgentInputSchema().nullish()),\n mastraEnabled: z.boolean(),\n models: z.array(z.lazy(() => ImportModelInputSchema())),\n name: z.string(),\n observabilityEnabled: z.boolean().nullish(),\n packages: z.array(z.lazy(() => ImportPackageInputSchema())),\n powerhouse: PowerhouseLevelSchema,\n profiles: z.array(z.lazy(() => ImportProfileInputSchema())),\n proxyEnabled: z.boolean().nullish(),\n routineEnabled: z.boolean(),\n scope: z.string().nullish(),\n subAgents: z.array(z.lazy(() => ImportSubAgentInputSchema())),\n supportedResources: z.array(z.string()).nullish(),\n version: z.string(),\n });\n}\n\nexport function ImportSubAgentInputSchema(): z.ZodObject<Properties<ImportSubAgentInput>> {\n return z.object({\n description: z.string(),\n id: z.string(),\n modelId: z.string(),\n name: z.string(),\n profileIds: z.array(z.string()),\n skills: z.array(z.string()),\n toolPatterns: z.array(z.string()),\n });\n}\n\nexport function PhClintAgentModelSchema(): z.ZodObject<Properties<PhClintAgentModel>> {\n return z.object({\n __typename: z.literal('PhClintAgentModel').optional(),\n id: z.string(),\n });\n}\n\nexport function PhClintAgentProfileSchema(): z.ZodObject<Properties<PhClintAgentProfile>> {\n return z.object({\n __typename: z.literal('PhClintAgentProfile').optional(),\n content: z.string(),\n id: z.string(),\n title: z.string(),\n });\n}\n\nexport function PhClintDeploymentSchema(): z.ZodObject<Properties<PhClintDeployment>> {\n return z.object({\n __typename: z.literal('PhClintDeployment').optional(),\n observabilityEnabled: z.boolean(),\n proxyEnabled: z.boolean(),\n supportedResources: z.array(z.string()),\n });\n}\n\nexport function PhClintFeaturesSchema(): z.ZodObject<Properties<PhClintFeatures>> {\n return z.object({\n __typename: z.literal('PhClintFeatures').optional(),\n mastra: z.lazy(() => PhClintMastraFeatureSchema()),\n powerhouse: PowerhouseLevelSchema,\n routine: z.lazy(() => PhClintRoutineFeatureSchema()),\n });\n}\n\nexport function PhClintMainAgentSchema(): z.ZodObject<Properties<PhClintMainAgent>> {\n return z.object({\n __typename: z.literal('PhClintMainAgent').optional(),\n attachment: z.string().nullish(),\n description: z.string().nullish(),\n id: z.string(),\n modelId: z.string(),\n name: z.string(),\n profileIds: z.array(z.string()),\n skills: z.array(z.string()),\n toolPatterns: z.array(z.string()),\n });\n}\n\nexport function PhClintMastraCommonSchema(): z.ZodObject<Properties<PhClintMastraCommon>> {\n return z.object({\n __typename: z.literal('PhClintMastraCommon').optional(),\n enableChat: z.boolean(),\n });\n}\n\nexport function PhClintMastraFeatureSchema(): z.ZodObject<Properties<PhClintMastraFeature>> {\n return z.object({\n __typename: z.literal('PhClintMastraFeature').optional(),\n common: z.lazy(() => PhClintMastraCommonSchema()),\n enabled: z.boolean(),\n mainAgent: z.lazy(() => PhClintMainAgentSchema().nullish()),\n models: z.array(z.lazy(() => PhClintAgentModelSchema())),\n profiles: z.array(z.lazy(() => PhClintAgentProfileSchema())),\n subAgents: z.array(z.lazy(() => PhClintSubAgentSchema())),\n });\n}\n\nexport function PhClintProjectStateSchema(): z.ZodObject<Properties<PhClintProjectState>> {\n return z.object({\n __typename: z.literal('PhClintProjectState').optional(),\n deployment: z.lazy(() => PhClintDeploymentSchema()),\n description: z.string(),\n externalSkills: z.array(z.lazy(() => ExternalSkillSchema())),\n features: z.lazy(() => PhClintFeaturesSchema()),\n name: z.string().nullish(),\n packages: z.array(z.lazy(() => PowerhousePackageSchema())),\n publishHistory: z.array(z.lazy(() => PublishRecordSchema())),\n scope: z.string().nullish(),\n version: z.string(),\n });\n}\n\nexport function PhClintRoutineFeatureSchema(): z.ZodObject<Properties<PhClintRoutineFeature>> {\n return z.object({\n __typename: z.literal('PhClintRoutineFeature').optional(),\n enabled: z.boolean(),\n });\n}\n\nexport function PhClintSubAgentSchema(): z.ZodObject<Properties<PhClintSubAgent>> {\n return z.object({\n __typename: z.literal('PhClintSubAgent').optional(),\n description: z.string(),\n id: z.string(),\n modelId: z.string(),\n name: z.string(),\n profileIds: z.array(z.string()),\n skills: z.array(z.string()),\n toolPatterns: z.array(z.string()),\n });\n}\n\nexport function PowerhousePackageSchema(): z.ZodObject<Properties<PowerhousePackage>> {\n return z.object({\n __typename: z.literal('PowerhousePackage').optional(),\n documentTypes: z.array(z.string()),\n id: z.string(),\n managed: z.boolean(),\n packageName: z.string(),\n version: z.string().nullish(),\n });\n}\n\nexport function PublishDevInputSchema(): z.ZodObject<Properties<PublishDevInput>> {\n return z.object({\n id: z.string(),\n timestamp: z.iso.datetime(),\n });\n}\n\nexport function PublishProductionInputSchema(): z.ZodObject<Properties<PublishProductionInput>> {\n return z.object({\n id: z.string(),\n timestamp: z.iso.datetime(),\n });\n}\n\nexport function PublishRecordSchema(): z.ZodObject<Properties<PublishRecord>> {\n return z.object({\n __typename: z.literal('PublishRecord').optional(),\n id: z.string(),\n status: PublishStatusSchema,\n tag: PublishTagSchema,\n timestamp: z.iso.datetime(),\n version: z.string(),\n });\n}\n\nexport function PublishStagingInputSchema(): z.ZodObject<Properties<PublishStagingInput>> {\n return z.object({\n id: z.string(),\n timestamp: z.iso.datetime(),\n });\n}\n\nexport function RemoveAgentProfileRefInputSchema(): z.ZodObject<Properties<RemoveAgentProfileRefInput>> {\n return z.object({\n agentId: z.string(),\n profileId: z.string(),\n });\n}\n\nexport function RemoveAgentSkillInputSchema(): z.ZodObject<Properties<RemoveAgentSkillInput>> {\n return z.object({\n agentId: z.string(),\n name: z.string(),\n });\n}\n\nexport function RemoveAgentToolPatternInputSchema(): z.ZodObject<Properties<RemoveAgentToolPatternInput>> {\n return z.object({\n agentId: z.string(),\n pattern: z.string(),\n });\n}\n\nexport function RemoveExternalSkillInputSchema(): z.ZodObject<Properties<RemoveExternalSkillInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemoveModelInputSchema(): z.ZodObject<Properties<RemoveModelInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemovePackageDocumentTypeInputSchema(): z.ZodObject<Properties<RemovePackageDocumentTypeInput>> {\n return z.object({\n documentType: z.string(),\n packageId: z.string(),\n });\n}\n\nexport function RemovePowerhousePackageInputSchema(): z.ZodObject<Properties<RemovePowerhousePackageInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemoveProfileInputSchema(): z.ZodObject<Properties<RemoveProfileInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemoveSubAgentInputSchema(): z.ZodObject<Properties<RemoveSubAgentInput>> {\n return z.object({\n id: z.string(),\n });\n}\n\nexport function RemoveSupportedResourceInputSchema(): z.ZodObject<Properties<RemoveSupportedResourceInput>> {\n return z.object({\n resource: z.string(),\n });\n}\n\nexport function ReorderAgentProfileRefsInputSchema(): z.ZodObject<Properties<ReorderAgentProfileRefsInput>> {\n return z.object({\n agentId: z.string(),\n ids: z.array(z.string()),\n insertBefore: z.string().nullish(),\n });\n}\n\nexport function ReorderProfilesInputSchema(): z.ZodObject<Properties<ReorderProfilesInput>> {\n return z.object({\n ids: z.array(z.string()),\n insertBefore: z.string().nullish(),\n });\n}\n\nexport function SetAgentModelInputSchema(): z.ZodObject<Properties<SetAgentModelInput>> {\n return z.object({\n agentId: z.string(),\n modelId: z.string(),\n });\n}\n\nexport function SetDescriptionInputSchema(): z.ZodObject<Properties<SetDescriptionInput>> {\n return z.object({\n description: z.string(),\n });\n}\n\nexport function SetEnableChatInputSchema(): z.ZodObject<Properties<SetEnableChatInput>> {\n return z.object({\n enabled: z.boolean(),\n });\n}\n\nexport function SetExternalSkillGithubUrlInputSchema(): z.ZodObject<Properties<SetExternalSkillGithubUrlInput>> {\n return z.object({\n githubUrl: z.url(),\n id: z.string(),\n });\n}\n\nexport function SetExternalSkillNameInputSchema(): z.ZodObject<Properties<SetExternalSkillNameInput>> {\n return z.object({\n id: z.string(),\n name: z.string(),\n });\n}\n\nexport function SetMainAgentDescriptionInputSchema(): z.ZodObject<Properties<SetMainAgentDescriptionInput>> {\n return z.object({\n description: z.string(),\n });\n}\n\nexport function SetMainAgentImageInputSchema(): z.ZodObject<Properties<SetMainAgentImageInput>> {\n return z.object({\n attachment: z.string(),\n });\n}\n\nexport function SetMainAgentNameInputSchema(): z.ZodObject<Properties<SetMainAgentNameInput>> {\n return z.object({\n name: z.string(),\n });\n}\n\nexport function SetObservabilityEnabledInputSchema(): z.ZodObject<Properties<SetObservabilityEnabledInput>> {\n return z.object({\n enabled: z.boolean(),\n });\n}\n\nexport function SetPackageIdentifierInputSchema(): z.ZodObject<Properties<SetPackageIdentifierInput>> {\n return z.object({\n identifier: z.string(),\n });\n}\n\nexport function SetPackageVersionInputSchema(): z.ZodObject<Properties<SetPackageVersionInput>> {\n return z.object({\n packageId: z.string(),\n version: z.string().nullish(),\n });\n}\n\nexport function SetPowerhouseLevelInputSchema(): z.ZodObject<Properties<SetPowerhouseLevelInput>> {\n return z.object({\n level: PowerhouseLevelSchema,\n skipAutoProxy: z.boolean().nullish(),\n });\n}\n\nexport function SetProxyEnabledInputSchema(): z.ZodObject<Properties<SetProxyEnabledInput>> {\n return z.object({\n enabled: z.boolean(),\n });\n}\n\nexport function SetPublishStatusInputSchema(): z.ZodObject<Properties<SetPublishStatusInput>> {\n return z.object({\n id: z.string(),\n status: PublishStatusSchema,\n });\n}\n\nexport function SetSubAgentDescriptionInputSchema(): z.ZodObject<Properties<SetSubAgentDescriptionInput>> {\n return z.object({\n description: z.string(),\n id: z.string(),\n });\n}\n\nexport function SetSubAgentNameInputSchema(): z.ZodObject<Properties<SetSubAgentNameInput>> {\n return z.object({\n id: z.string(),\n name: z.string(),\n });\n}\n\nexport function SetVersionInputSchema(): z.ZodObject<Properties<SetVersionInput>> {\n return z.object({\n version: z.string(),\n });\n}\n\nexport function UpdateProfileInputSchema(): z.ZodObject<Properties<UpdateProfileInput>> {\n return z.object({\n content: z.string().nullish(),\n id: z.string(),\n title: z.string().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 { AddSupportedResourceInputSchema, RemoveSupportedResourceInputSchema, SetObservabilityEnabledInputSchema, SetProxyEnabledInputSchema } from '../schema/zod.js';\nimport type { AddSupportedResourceInput, RemoveSupportedResourceInput, SetObservabilityEnabledInput, SetProxyEnabledInput } from '../types.js';\nimport type { AddSupportedResourceAction, RemoveSupportedResourceAction, SetObservabilityEnabledAction, SetProxyEnabledAction } from './actions.js';\n\nexport const addSupportedResource = (input: AddSupportedResourceInput) => createAction<AddSupportedResourceAction>('ADD_SUPPORTED_RESOURCE', { ...input }, undefined, AddSupportedResourceInputSchema, 'global');\n\nexport const removeSupportedResource = (input: RemoveSupportedResourceInput) => createAction<RemoveSupportedResourceAction>('REMOVE_SUPPORTED_RESOURCE', { ...input }, undefined, RemoveSupportedResourceInputSchema, 'global');\n\nexport const setProxyEnabled = (input: SetProxyEnabledInput) => createAction<SetProxyEnabledAction>('SET_PROXY_ENABLED', { ...input }, undefined, SetProxyEnabledInputSchema, 'global');\n\nexport const setObservabilityEnabled = (input: SetObservabilityEnabledInput) => createAction<SetObservabilityEnabledAction>('SET_OBSERVABILITY_ENABLED', { ...input }, undefined, SetObservabilityEnabledInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { AddExternalSkillInputSchema, RemoveExternalSkillInputSchema, SetExternalSkillGithubUrlInputSchema, SetExternalSkillNameInputSchema } from '../schema/zod.js';\nimport type { AddExternalSkillInput, RemoveExternalSkillInput, SetExternalSkillGithubUrlInput, SetExternalSkillNameInput } from '../types.js';\nimport type { AddExternalSkillAction, RemoveExternalSkillAction, SetExternalSkillGithubUrlAction, SetExternalSkillNameAction } from './actions.js';\n\nexport const addExternalSkill = (input: AddExternalSkillInput) => createAction<AddExternalSkillAction>('ADD_EXTERNAL_SKILL', { ...input }, undefined, AddExternalSkillInputSchema, 'global');\n\nexport const removeExternalSkill = (input: RemoveExternalSkillInput) => createAction<RemoveExternalSkillAction>('REMOVE_EXTERNAL_SKILL', { ...input }, undefined, RemoveExternalSkillInputSchema, 'global');\n\nexport const setExternalSkillName = (input: SetExternalSkillNameInput) => createAction<SetExternalSkillNameAction>('SET_EXTERNAL_SKILL_NAME', { ...input }, undefined, SetExternalSkillNameInputSchema, 'global');\n\nexport const setExternalSkillGithubUrl = (input: SetExternalSkillGithubUrlInput) => createAction<SetExternalSkillGithubUrlAction>('SET_EXTERNAL_SKILL_GITHUB_URL', { ...input }, undefined, SetExternalSkillGithubUrlInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { DisableMastraInputSchema, EnableMastraInputSchema, SetEnableChatInputSchema } from '../schema/zod.js';\nimport type { DisableMastraInput, EnableMastraInput, SetEnableChatInput } from '../types.js';\nimport type { DisableMastraAction, EnableMastraAction, SetEnableChatAction } from './actions.js';\n\nexport const enableMastra = (input: EnableMastraInput) => createAction<EnableMastraAction>('ENABLE_MASTRA', { ...input }, undefined, EnableMastraInputSchema, 'global');\n\nexport const disableMastra = (input: DisableMastraInput) => createAction<DisableMastraAction>('DISABLE_MASTRA', { ...input }, undefined, DisableMastraInputSchema, 'global');\n\nexport const setEnableChat = (input: SetEnableChatInput) => createAction<SetEnableChatAction>('SET_ENABLE_CHAT', { ...input }, undefined, SetEnableChatInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { SetPowerhouseLevelInputSchema } from '../schema/zod.js';\nimport type { SetPowerhouseLevelInput } from '../types.js';\nimport type { SetPowerhouseLevelAction } from './actions.js';\n\nexport const setPowerhouseLevel = (input: SetPowerhouseLevelInput) => createAction<SetPowerhouseLevelAction>('SET_POWERHOUSE_LEVEL', { ...input }, undefined, SetPowerhouseLevelInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { DisableRoutineInputSchema, EnableRoutineInputSchema } from '../schema/zod.js';\nimport type { DisableRoutineInput, EnableRoutineInput } from '../types.js';\nimport type { DisableRoutineAction, EnableRoutineAction } from './actions.js';\n\nexport const enableRoutine = (input: EnableRoutineInput) => createAction<EnableRoutineAction>('ENABLE_ROUTINE', { ...input }, undefined, EnableRoutineInputSchema, 'global');\n\nexport const disableRoutine = (input: DisableRoutineInput) => createAction<DisableRoutineAction>('DISABLE_ROUTINE', { ...input }, undefined, DisableRoutineInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { SetDescriptionInputSchema, SetPackageIdentifierInputSchema, SetVersionInputSchema } from '../schema/zod.js';\nimport type { SetDescriptionInput, SetPackageIdentifierInput, SetVersionInput } from '../types.js';\nimport type { SetDescriptionAction, SetPackageIdentifierAction, SetVersionAction } from './actions.js';\n\nexport const setDescription = (input: SetDescriptionInput) => createAction<SetDescriptionAction>('SET_DESCRIPTION', { ...input }, undefined, SetDescriptionInputSchema, 'global');\n\nexport const setVersion = (input: SetVersionInput) => createAction<SetVersionAction>('SET_VERSION', { ...input }, undefined, SetVersionInputSchema, 'global');\n\nexport const setPackageIdentifier = (input: SetPackageIdentifierInput) => createAction<SetPackageIdentifierAction>('SET_PACKAGE_IDENTIFIER', { ...input }, undefined, SetPackageIdentifierInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { ImportSpecInputSchema } from '../schema/zod.js';\nimport type { ImportSpecInput } from '../types.js';\nimport type { ImportSpecAction } from './actions.js';\n\nexport const importSpec = (input: ImportSpecInput) => createAction<ImportSpecAction>('IMPORT_SPEC', { ...input }, undefined, ImportSpecInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport {\n AddAgentProfileRefInputSchema,\n AddAgentSkillInputSchema,\n AddAgentToolPatternInputSchema,\n RemoveAgentProfileRefInputSchema,\n RemoveAgentSkillInputSchema,\n RemoveAgentToolPatternInputSchema,\n ReorderAgentProfileRefsInputSchema,\n SetAgentModelInputSchema,\n} from '../schema/zod.js';\nimport type { AddAgentProfileRefInput, AddAgentSkillInput, AddAgentToolPatternInput, RemoveAgentProfileRefInput, RemoveAgentSkillInput, RemoveAgentToolPatternInput, ReorderAgentProfileRefsInput, SetAgentModelInput } from '../types.js';\nimport type { AddAgentProfileRefAction, AddAgentSkillAction, AddAgentToolPatternAction, RemoveAgentProfileRefAction, RemoveAgentSkillAction, RemoveAgentToolPatternAction, ReorderAgentProfileRefsAction, SetAgentModelAction } from './actions.js';\n\nexport const setAgentModel = (input: SetAgentModelInput) => createAction<SetAgentModelAction>('SET_AGENT_MODEL', { ...input }, undefined, SetAgentModelInputSchema, 'global');\n\nexport const addAgentProfileRef = (input: AddAgentProfileRefInput) => createAction<AddAgentProfileRefAction>('ADD_AGENT_PROFILE_REF', { ...input }, undefined, AddAgentProfileRefInputSchema, 'global');\n\nexport const removeAgentProfileRef = (input: RemoveAgentProfileRefInput) => createAction<RemoveAgentProfileRefAction>('REMOVE_AGENT_PROFILE_REF', { ...input }, undefined, RemoveAgentProfileRefInputSchema, 'global');\n\nexport const reorderAgentProfileRefs = (input: ReorderAgentProfileRefsInput) => createAction<ReorderAgentProfileRefsAction>('REORDER_AGENT_PROFILE_REFS', { ...input }, undefined, ReorderAgentProfileRefsInputSchema, 'global');\n\nexport const addAgentSkill = (input: AddAgentSkillInput) => createAction<AddAgentSkillAction>('ADD_AGENT_SKILL', { ...input }, undefined, AddAgentSkillInputSchema, 'global');\n\nexport const removeAgentSkill = (input: RemoveAgentSkillInput) => createAction<RemoveAgentSkillAction>('REMOVE_AGENT_SKILL', { ...input }, undefined, RemoveAgentSkillInputSchema, 'global');\n\nexport const addAgentToolPattern = (input: AddAgentToolPatternInput) => createAction<AddAgentToolPatternAction>('ADD_AGENT_TOOL_PATTERN', { ...input }, undefined, AddAgentToolPatternInputSchema, 'global');\n\nexport const removeAgentToolPattern = (input: RemoveAgentToolPatternInput) => createAction<RemoveAgentToolPatternAction>('REMOVE_AGENT_TOOL_PATTERN', { ...input }, undefined, RemoveAgentToolPatternInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { ClearMainAgentDescriptionInputSchema, ClearMainAgentImageInputSchema, SetMainAgentDescriptionInputSchema, SetMainAgentImageInputSchema, SetMainAgentNameInputSchema } from '../schema/zod.js';\nimport type { ClearMainAgentDescriptionInput, ClearMainAgentImageInput, SetMainAgentDescriptionInput, SetMainAgentImageInput, SetMainAgentNameInput } from '../types.js';\nimport type { ClearMainAgentDescriptionAction, ClearMainAgentImageAction, SetMainAgentDescriptionAction, SetMainAgentImageAction, SetMainAgentNameAction } from './actions.js';\n\nexport const setMainAgentName = (input: SetMainAgentNameInput) => createAction<SetMainAgentNameAction>('SET_MAIN_AGENT_NAME', { ...input }, undefined, SetMainAgentNameInputSchema, 'global');\n\nexport const setMainAgentDescription = (input: SetMainAgentDescriptionInput) => createAction<SetMainAgentDescriptionAction>('SET_MAIN_AGENT_DESCRIPTION', { ...input }, undefined, SetMainAgentDescriptionInputSchema, 'global');\n\nexport const clearMainAgentDescription = (input: ClearMainAgentDescriptionInput) => createAction<ClearMainAgentDescriptionAction>('CLEAR_MAIN_AGENT_DESCRIPTION', { ...input }, undefined, ClearMainAgentDescriptionInputSchema, 'global');\n\nexport const setMainAgentImage = (input: SetMainAgentImageInput) => createAction<SetMainAgentImageAction>('SET_MAIN_AGENT_IMAGE', { ...input }, undefined, SetMainAgentImageInputSchema, 'global');\n\nexport const clearMainAgentImage = (input: ClearMainAgentImageInput) => createAction<ClearMainAgentImageAction>('CLEAR_MAIN_AGENT_IMAGE', { ...input }, undefined, ClearMainAgentImageInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { AddModelInputSchema, RemoveModelInputSchema } from '../schema/zod.js';\nimport type { AddModelInput, RemoveModelInput } from '../types.js';\nimport type { AddModelAction, RemoveModelAction } from './actions.js';\n\nexport const addModel = (input: AddModelInput) => createAction<AddModelAction>('ADD_MODEL', { ...input }, undefined, AddModelInputSchema, 'global');\n\nexport const removeModel = (input: RemoveModelInput) => createAction<RemoveModelAction>('REMOVE_MODEL', { ...input }, undefined, RemoveModelInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { AddProfileInputSchema, RemoveProfileInputSchema, ReorderProfilesInputSchema, UpdateProfileInputSchema } from '../schema/zod.js';\nimport type { AddProfileInput, RemoveProfileInput, ReorderProfilesInput, UpdateProfileInput } from '../types.js';\nimport type { AddProfileAction, RemoveProfileAction, ReorderProfilesAction, UpdateProfileAction } from './actions.js';\n\nexport const addProfile = (input: AddProfileInput) => createAction<AddProfileAction>('ADD_PROFILE', { ...input }, undefined, AddProfileInputSchema, 'global');\n\nexport const updateProfile = (input: UpdateProfileInput) => createAction<UpdateProfileAction>('UPDATE_PROFILE', { ...input }, undefined, UpdateProfileInputSchema, 'global');\n\nexport const removeProfile = (input: RemoveProfileInput) => createAction<RemoveProfileAction>('REMOVE_PROFILE', { ...input }, undefined, RemoveProfileInputSchema, 'global');\n\nexport const reorderProfiles = (input: ReorderProfilesInput) => createAction<ReorderProfilesAction>('REORDER_PROFILES', { ...input }, undefined, ReorderProfilesInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { AddSubAgentInputSchema, RemoveSubAgentInputSchema, SetSubAgentDescriptionInputSchema, SetSubAgentNameInputSchema } from '../schema/zod.js';\nimport type { AddSubAgentInput, RemoveSubAgentInput, SetSubAgentDescriptionInput, SetSubAgentNameInput } from '../types.js';\nimport type { AddSubAgentAction, RemoveSubAgentAction, SetSubAgentDescriptionAction, SetSubAgentNameAction } from './actions.js';\n\nexport const addSubAgent = (input: AddSubAgentInput) => createAction<AddSubAgentAction>('ADD_SUB_AGENT', { ...input }, undefined, AddSubAgentInputSchema, 'global');\n\nexport const removeSubAgent = (input: RemoveSubAgentInput) => createAction<RemoveSubAgentAction>('REMOVE_SUB_AGENT', { ...input }, undefined, RemoveSubAgentInputSchema, 'global');\n\nexport const setSubAgentName = (input: SetSubAgentNameInput) => createAction<SetSubAgentNameAction>('SET_SUB_AGENT_NAME', { ...input }, undefined, SetSubAgentNameInputSchema, 'global');\n\nexport const setSubAgentDescription = (input: SetSubAgentDescriptionInput) => createAction<SetSubAgentDescriptionAction>('SET_SUB_AGENT_DESCRIPTION', { ...input }, undefined, SetSubAgentDescriptionInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { AddPackageDocumentTypeInputSchema, AddPowerhousePackageInputSchema, RemovePackageDocumentTypeInputSchema, RemovePowerhousePackageInputSchema, SetPackageVersionInputSchema } from '../schema/zod.js';\nimport type { AddPackageDocumentTypeInput, AddPowerhousePackageInput, RemovePackageDocumentTypeInput, RemovePowerhousePackageInput, SetPackageVersionInput } from '../types.js';\nimport type { AddPackageDocumentTypeAction, AddPowerhousePackageAction, RemovePackageDocumentTypeAction, RemovePowerhousePackageAction, SetPackageVersionAction } from './actions.js';\n\nexport const addPowerhousePackage = (input: AddPowerhousePackageInput) => createAction<AddPowerhousePackageAction>('ADD_POWERHOUSE_PACKAGE', { ...input }, undefined, AddPowerhousePackageInputSchema, 'global');\n\nexport const removePowerhousePackage = (input: RemovePowerhousePackageInput) => createAction<RemovePowerhousePackageAction>('REMOVE_POWERHOUSE_PACKAGE', { ...input }, undefined, RemovePowerhousePackageInputSchema, 'global');\n\nexport const addPackageDocumentType = (input: AddPackageDocumentTypeInput) => createAction<AddPackageDocumentTypeAction>('ADD_PACKAGE_DOCUMENT_TYPE', { ...input }, undefined, AddPackageDocumentTypeInputSchema, 'global');\n\nexport const removePackageDocumentType = (input: RemovePackageDocumentTypeInput) => createAction<RemovePackageDocumentTypeAction>('REMOVE_PACKAGE_DOCUMENT_TYPE', { ...input }, undefined, RemovePackageDocumentTypeInputSchema, 'global');\n\nexport const setPackageVersion = (input: SetPackageVersionInput) => createAction<SetPackageVersionAction>('SET_PACKAGE_VERSION', { ...input }, undefined, SetPackageVersionInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { createAction } from 'document-model';\nimport { BumpVersionInputSchema, PublishDevInputSchema, PublishProductionInputSchema, PublishStagingInputSchema, SetPublishStatusInputSchema } from '../schema/zod.js';\nimport type { BumpVersionInput, PublishDevInput, PublishProductionInput, PublishStagingInput, SetPublishStatusInput } from '../types.js';\nimport type { BumpVersionAction, PublishDevAction, PublishProductionAction, PublishStagingAction, SetPublishStatusAction } from './actions.js';\n\nexport const bumpVersion = (input: BumpVersionInput) => createAction<BumpVersionAction>('BUMP_VERSION', { ...input }, undefined, BumpVersionInputSchema, 'global');\n\nexport const publishDev = (input: PublishDevInput) => createAction<PublishDevAction>('PUBLISH_DEV', { ...input }, undefined, PublishDevInputSchema, 'global');\n\nexport const publishStaging = (input: PublishStagingInput) => createAction<PublishStagingAction>('PUBLISH_STAGING', { ...input }, undefined, PublishStagingInputSchema, 'global');\n\nexport const publishProduction = (input: PublishProductionInput) => createAction<PublishProductionAction>('PUBLISH_PRODUCTION', { ...input }, undefined, PublishProductionInputSchema, 'global');\n\nexport const setPublishStatus = (input: SetPublishStatusInput) => createAction<SetPublishStatusAction>('SET_PUBLISH_STATUS', { ...input }, undefined, SetPublishStatusInputSchema, 'global');\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { baseActions } from 'document-model';\nimport {\n phClintProjectDeploymentActions,\n phClintProjectExternalSkillsActions,\n phClintProjectFeaturesMastraActions,\n phClintProjectFeaturesPowerhouseActions,\n phClintProjectFeaturesRoutineActions,\n phClintProjectIdentityActions,\n phClintProjectLifecycleActions,\n phClintProjectMastraAgentBindingsActions,\n phClintProjectMastraMainAgentActions,\n phClintProjectMastraModelsActions,\n phClintProjectMastraProfilesActions,\n phClintProjectMastraSubAgentsActions,\n phClintProjectPowerhousePackagesActions,\n phClintProjectPublishingActions,\n} from './gen/creators.js';\n\n/** Actions for the PhClintProject document model */\n\nexport const actions = {\n ...baseActions,\n ...phClintProjectIdentityActions,\n ...phClintProjectFeaturesPowerhouseActions,\n ...phClintProjectFeaturesRoutineActions,\n ...phClintProjectPowerhousePackagesActions,\n ...phClintProjectExternalSkillsActions,\n ...phClintProjectPublishingActions,\n ...phClintProjectLifecycleActions,\n ...phClintProjectDeploymentActions,\n ...phClintProjectFeaturesMastraActions,\n ...phClintProjectMastraModelsActions,\n ...phClintProjectMastraProfilesActions,\n ...phClintProjectMastraMainAgentActions,\n ...phClintProjectMastraSubAgentsActions,\n ...phClintProjectMastraAgentBindingsActions,\n};\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nexport const phClintProjectDocumentType = 'powerhouse/ph-clint-project';\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport { BaseDocumentHeaderSchema, BaseDocumentStateSchema } from 'document-model';\nimport { z } from 'zod';\nimport { phClintProjectDocumentType } from './document-type.js';\nimport { PhClintProjectStateSchema } from './schema/zod.js';\nimport type { PhClintProjectDocument, PhClintProjectPHState } from './types.js';\n\n/** Schema for validating the header object of a PhClintProject document */\nexport const PhClintProjectDocumentHeaderSchema = BaseDocumentHeaderSchema.extend({\n documentType: z.literal(phClintProjectDocumentType),\n});\n\n/** Schema for validating the state object of a PhClintProject document */\nexport const PhClintProjectPHStateSchema = BaseDocumentStateSchema.extend({\n global: PhClintProjectStateSchema(),\n});\n\nexport const PhClintProjectDocumentSchema = z.object({\n header: PhClintProjectDocumentHeaderSchema,\n state: PhClintProjectPHStateSchema,\n initialState: PhClintProjectPHStateSchema,\n});\n\n/** Simple helper function to check if a state object is a PhClintProject document state object */\nexport function isPhClintProjectState(state: unknown): state is PhClintProjectPHState {\n return PhClintProjectPHStateSchema.safeParse(state).success;\n}\n\n/** Simple helper function to assert that a document state object is a PhClintProject document state object */\nexport function assertIsPhClintProjectState(state: unknown): asserts state is PhClintProjectPHState {\n PhClintProjectPHStateSchema.parse(state);\n}\n\n/** Simple helper function to check if a document is a PhClintProject document */\nexport function isPhClintProjectDocument(document: unknown): document is PhClintProjectDocument {\n return PhClintProjectDocumentSchema.safeParse(document).success;\n}\n\n/** Simple helper function to assert that a document is a PhClintProject document */\nexport function assertIsPhClintProjectDocument(document: unknown): asserts document is PhClintProjectDocument {\n PhClintProjectDocumentSchema.parse(document);\n}\n","/**\n * WARNING: DO NOT EDIT\n * This file is auto-generated and updated by codegen\n */\nimport type { DocumentDispatch } from '@powerhousedao/reactor-browser';\nimport { useDocumentById, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useSelectedDocument } from '@powerhousedao/reactor-browser';\nimport type { PhClintProjectAction, PhClintProjectDocument } from 'document-models/ph-clint-project/v1';\nimport { assertIsPhClintProjectDocument, isPhClintProjectDocument } from './gen/document-schema.js';\n\n/** Hook to get a PhClintProject document by its id */\nexport function usePhClintProjectDocumentById(documentId: string | null | undefined): [PhClintProjectDocument, DocumentDispatch<PhClintProjectAction>] | [undefined, undefined] {\n const [document, dispatch] = useDocumentById(documentId);\n if (!isPhClintProjectDocument(document)) return [undefined, undefined];\n return [document, dispatch];\n}\n\n/** Hook to get the selected PhClintProject document */\nexport function useSelectedPhClintProjectDocument(): [PhClintProjectDocument, DocumentDispatch<PhClintProjectAction>] {\n const [document, dispatch] = useSelectedDocument();\n\n assertIsPhClintProjectDocument(document);\n return [document, dispatch] as const;\n}\n\n/** Hook to get all PhClintProject documents in the selected drive */\nexport function usePhClintProjectDocumentsInSelectedDrive() {\n const documentsInSelectedDrive = useDocumentsInSelectedDrive();\n return documentsInSelectedDrive?.filter(isPhClintProjectDocument);\n}\n\n/** Hook to get all PhClintProject documents in the selected folder */\nexport function usePhClintProjectDocumentsInSelectedFolder() {\n const documentsInSelectedFolder = useDocumentsInSelectedFolder();\n return documentsInSelectedFolder?.filter(isPhClintProjectDocument);\n}\n"],"mappings":"iQAqFA,IAAa,GAAuB,GAAmC,GAAyB,KAEnF,GAA0B,IAAO,CAAC,OAAQ,GAAM,GAAoB,EAAE,CAAC,CAEvE,EAAwB,EAAO,CAAC,UAAW,WAAY,UAAW,cAAc,CAAC,CAEjF,EAAsB,EAAO,CAAC,SAAU,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,EAAS,CADqB,CAAC,IAAA,GAAW,IAAA,GAAU,CAKxE,SAAgB,IAAsG,CACpH,GAAM,CAAC,EAAU,GAAY,GAAqB,CAGlD,OADA,EAA+B,EAAS,CACjC,CAAC,EAAU,EAAS,CAI7B,SAAgB,IAA4C,CAE1D,OADiC,GAC1B,EAA0B,OAAO,EAAyB,CAInE,SAAgB,IAA6C,CAE3D,OADkC,IAC3B,EAA2B,OAAO,EAAyB"}
@@ -1,4 +1,5 @@
1
- import{r as e}from"./chunk-BNv3lrIs.js";import{Ct as t,et as n,on as r,tt as i}from"./dist-t-ezfpxv.js";import{$ as a,C as ee,P as te,Q as ne,X as re,Z as ie,_ as o,b as ae,d as oe,et as s,f as se,h as ce,i as le,it as c,nt as l,ot as u,p as ue,r as de,rt as d,st as f,tt as p,v as fe,x as pe}from"./types-CxSpmNGK-BaNo7EHQ.js";import{n as me}from"./dist-Cb4AoJ-8.js";var he=e=>e!=null,ge=ne().refine(e=>he(e)),m=ie([`Connect`,`Disabled`,`Reactor`,`Switchboard`]),_e=ie([`Failed`,`InProgress`,`Pending`,`Succeeded`]),ve=ie([`Dev`,`Production`,`Staging`]);function ye(){return d({agentId:c(),insertBefore:c().nullish(),profileId:c()})}function be(){return d({agentId:c(),name:c()})}function xe(){return d({agentId:c(),pattern:c()})}function Se(){return d({githubUrl:u(),id:c(),name:c()})}function Ce(){return d({id:c()})}function we(){return d({documentType:c(),packageId:c()})}function Te(){return d({id:c(),packageName:c()})}function Ee(){return d({content:c(),id:c(),insertBefore:c().nullish(),title:c()})}function De(){return d({description:c(),id:c(),modelId:c(),name:c()})}function Oe(){return d({resource:c()})}function ke(){return d({version:c()})}function Ae(){return d({_:s().nullish()})}function je(){return d({_:s().nullish()})}function Me(){return d({_:s().nullish()})}function Ne(){return d({_:s().nullish()})}function Pe(){return d({agentId:c(),agentName:c()})}function Fe(){return d({_:s().nullish()})}function Ie(){return d({__typename:l(`ExternalSkill`).optional(),githubUrl:u(),id:c(),name:c()})}function Le(){return d({attachment:c().nullish(),description:c().nullish(),id:c(),modelId:c(),name:c(),profileIds:a(c()),skills:a(c()),toolPatterns:a(c())})}function Re(){return d({id:c()})}function ze(){return d({documentTypes:a(c()),id:c(),packageName:c(),version:c().nullish()})}function Be(){return d({content:c(),id:c(),title:c()})}function Ve(){return d({githubUrl:u(),id:c(),name:c()})}function He(){return d({description:c(),enableChat:s().nullish(),externalSkills:a(p(()=>Ve())),mainAgent:p(()=>Le().nullish()),mastraEnabled:s(),models:a(p(()=>Re())),name:c(),observabilityEnabled:s().nullish(),packages:a(p(()=>ze())),powerhouse:m,profiles:a(p(()=>Be())),proxyEnabled:s().nullish(),routineEnabled:s(),scope:c().nullish(),subAgents:a(p(()=>Ue())),supportedResources:a(c()).nullish(),version:c()})}function Ue(){return d({description:c(),id:c(),modelId:c(),name:c(),profileIds:a(c()),skills:a(c()),toolPatterns:a(c())})}function We(){return d({__typename:l(`PhClintAgentModel`).optional(),id:c()})}function Ge(){return d({__typename:l(`PhClintAgentProfile`).optional(),content:c(),id:c(),title:c()})}function Ke(){return d({__typename:l(`PhClintDeployment`).optional(),observabilityEnabled:s(),proxyEnabled:s(),supportedResources:a(c())})}function qe(){return d({__typename:l(`PhClintFeatures`).optional(),mastra:p(()=>Xe()),powerhouse:m,routine:p(()=>Qe())})}function Je(){return d({__typename:l(`PhClintMainAgent`).optional(),attachment:c().nullish(),description:c().nullish(),id:c(),modelId:c(),name:c(),profileIds:a(c()),skills:a(c()),toolPatterns:a(c())})}function Ye(){return d({__typename:l(`PhClintMastraCommon`).optional(),enableChat:s()})}function Xe(){return d({__typename:l(`PhClintMastraFeature`).optional(),common:p(()=>Ye()),enabled:s(),mainAgent:p(()=>Je().nullish()),models:a(p(()=>We())),profiles:a(p(()=>Ge())),subAgents:a(p(()=>$e()))})}function Ze(){return d({__typename:l(`PhClintProjectState`).optional(),deployment:p(()=>Ke()),description:c(),externalSkills:a(p(()=>Ie())),features:p(()=>qe()),name:c().nullish(),packages:a(p(()=>et())),publishHistory:a(p(()=>rt())),scope:c().nullish(),version:c()})}function Qe(){return d({__typename:l(`PhClintRoutineFeature`).optional(),enabled:s()})}function $e(){return d({__typename:l(`PhClintSubAgent`).optional(),description:c(),id:c(),modelId:c(),name:c(),profileIds:a(c()),skills:a(c()),toolPatterns:a(c())})}function et(){return d({__typename:l(`PowerhousePackage`).optional(),documentTypes:a(c()),id:c(),managed:s(),packageName:c(),version:c().nullish()})}function tt(){return d({id:c(),timestamp:f()})}function nt(){return d({id:c(),timestamp:f()})}function rt(){return d({__typename:l(`PublishRecord`).optional(),id:c(),status:_e,tag:ve,timestamp:f(),version:c()})}function h(){return d({id:c(),timestamp:f()})}function g(){return d({agentId:c(),profileId:c()})}function _(){return d({agentId:c(),name:c()})}function v(){return d({agentId:c(),pattern:c()})}function y(){return d({id:c()})}function b(){return d({id:c()})}function x(){return d({documentType:c(),packageId:c()})}function S(){return d({id:c()})}function C(){return d({id:c()})}function w(){return d({id:c()})}function T(){return d({resource:c()})}function E(){return d({agentId:c(),ids:a(c()),insertBefore:c().nullish()})}function D(){return d({ids:a(c()),insertBefore:c().nullish()})}function O(){return d({agentId:c(),modelId:c()})}function k(){return d({description:c()})}function A(){return d({enabled:s()})}function j(){return d({githubUrl:u(),id:c()})}function M(){return d({id:c(),name:c()})}function it(){return d({description:c()})}function at(){return d({attachment:c()})}function ot(){return d({name:c()})}function st(){return d({enabled:s()})}function ct(){return d({identifier:c()})}function lt(){return d({packageId:c(),version:c().nullish()})}function ut(){return d({level:m,skipAutoProxy:s().nullish()})}function dt(){return d({enabled:s()})}function ft(){return d({id:c(),status:_e})}function pt(){return d({description:c(),id:c()})}function N(){return d({id:c(),name:c()})}function mt(){return d({version:c()})}function ht(){return d({content:c().nullish(),id:c(),title:c().nullish()})}var gt=e({addSupportedResource:()=>_t,removeSupportedResource:()=>vt,setObservabilityEnabled:()=>bt,setProxyEnabled:()=>yt}),_t=e=>o(`ADD_SUPPORTED_RESOURCE`,{...e},void 0,Oe,`global`),vt=e=>o(`REMOVE_SUPPORTED_RESOURCE`,{...e},void 0,T,`global`),yt=e=>o(`SET_PROXY_ENABLED`,{...e},void 0,dt,`global`),bt=e=>o(`SET_OBSERVABILITY_ENABLED`,{...e},void 0,st,`global`),xt=e({addExternalSkill:()=>St,removeExternalSkill:()=>Ct,setExternalSkillGithubUrl:()=>Tt,setExternalSkillName:()=>wt}),St=e=>o(`ADD_EXTERNAL_SKILL`,{...e},void 0,Se,`global`),Ct=e=>o(`REMOVE_EXTERNAL_SKILL`,{...e},void 0,y,`global`),wt=e=>o(`SET_EXTERNAL_SKILL_NAME`,{...e},void 0,M,`global`),Tt=e=>o(`SET_EXTERNAL_SKILL_GITHUB_URL`,{...e},void 0,j,`global`),Et=e({disableMastra:()=>Ot,enableMastra:()=>Dt,setEnableChat:()=>kt}),Dt=e=>o(`ENABLE_MASTRA`,{...e},void 0,Pe,`global`),Ot=e=>o(`DISABLE_MASTRA`,{...e},void 0,Me,`global`),kt=e=>o(`SET_ENABLE_CHAT`,{...e},void 0,A,`global`),At=e({setPowerhouseLevel:()=>jt}),jt=e=>o(`SET_POWERHOUSE_LEVEL`,{...e},void 0,ut,`global`),Mt=e({disableRoutine:()=>Pt,enableRoutine:()=>Nt}),Nt=e=>o(`ENABLE_ROUTINE`,{...e},void 0,Fe,`global`),Pt=e=>o(`DISABLE_ROUTINE`,{...e},void 0,Ne,`global`),Ft=e({setDescription:()=>It,setPackageIdentifier:()=>Rt,setVersion:()=>Lt}),It=e=>o(`SET_DESCRIPTION`,{...e},void 0,k,`global`),Lt=e=>o(`SET_VERSION`,{...e},void 0,mt,`global`),Rt=e=>o(`SET_PACKAGE_IDENTIFIER`,{...e},void 0,ct,`global`),zt=e({importSpec:()=>Bt}),Bt=e=>o(`IMPORT_SPEC`,{...e},void 0,He,`global`),Vt=e({addAgentProfileRef:()=>Ut,addAgentSkill:()=>Kt,addAgentToolPattern:()=>Jt,removeAgentProfileRef:()=>Wt,removeAgentSkill:()=>qt,removeAgentToolPattern:()=>Yt,reorderAgentProfileRefs:()=>Gt,setAgentModel:()=>Ht}),Ht=e=>o(`SET_AGENT_MODEL`,{...e},void 0,O,`global`),Ut=e=>o(`ADD_AGENT_PROFILE_REF`,{...e},void 0,ye,`global`),Wt=e=>o(`REMOVE_AGENT_PROFILE_REF`,{...e},void 0,g,`global`),Gt=e=>o(`REORDER_AGENT_PROFILE_REFS`,{...e},void 0,E,`global`),Kt=e=>o(`ADD_AGENT_SKILL`,{...e},void 0,be,`global`),qt=e=>o(`REMOVE_AGENT_SKILL`,{...e},void 0,_,`global`),Jt=e=>o(`ADD_AGENT_TOOL_PATTERN`,{...e},void 0,xe,`global`),Yt=e=>o(`REMOVE_AGENT_TOOL_PATTERN`,{...e},void 0,v,`global`),Xt=e({clearMainAgentDescription:()=>$t,clearMainAgentImage:()=>tn,setMainAgentDescription:()=>Qt,setMainAgentImage:()=>en,setMainAgentName:()=>Zt}),Zt=e=>o(`SET_MAIN_AGENT_NAME`,{...e},void 0,ot,`global`),Qt=e=>o(`SET_MAIN_AGENT_DESCRIPTION`,{...e},void 0,it,`global`),$t=e=>o(`CLEAR_MAIN_AGENT_DESCRIPTION`,{...e},void 0,Ae,`global`),en=e=>o(`SET_MAIN_AGENT_IMAGE`,{...e},void 0,at,`global`),tn=e=>o(`CLEAR_MAIN_AGENT_IMAGE`,{...e},void 0,je,`global`),nn=e({addModel:()=>rn,removeModel:()=>an}),rn=e=>o(`ADD_MODEL`,{...e},void 0,Ce,`global`),an=e=>o(`REMOVE_MODEL`,{...e},void 0,b,`global`),on=e({addProfile:()=>sn,removeProfile:()=>ln,reorderProfiles:()=>un,updateProfile:()=>cn}),sn=e=>o(`ADD_PROFILE`,{...e},void 0,Ee,`global`),cn=e=>o(`UPDATE_PROFILE`,{...e},void 0,ht,`global`),ln=e=>o(`REMOVE_PROFILE`,{...e},void 0,C,`global`),un=e=>o(`REORDER_PROFILES`,{...e},void 0,D,`global`),dn=e({addSubAgent:()=>fn,removeSubAgent:()=>pn,setSubAgentDescription:()=>hn,setSubAgentName:()=>mn}),fn=e=>o(`ADD_SUB_AGENT`,{...e},void 0,De,`global`),pn=e=>o(`REMOVE_SUB_AGENT`,{...e},void 0,w,`global`),mn=e=>o(`SET_SUB_AGENT_NAME`,{...e},void 0,N,`global`),hn=e=>o(`SET_SUB_AGENT_DESCRIPTION`,{...e},void 0,pt,`global`),gn=e({addPackageDocumentType:()=>yn,addPowerhousePackage:()=>_n,removePackageDocumentType:()=>bn,removePowerhousePackage:()=>vn,setPackageVersion:()=>xn}),_n=e=>o(`ADD_POWERHOUSE_PACKAGE`,{...e},void 0,Te,`global`),vn=e=>o(`REMOVE_POWERHOUSE_PACKAGE`,{...e},void 0,S,`global`),yn=e=>o(`ADD_PACKAGE_DOCUMENT_TYPE`,{...e},void 0,we,`global`),bn=e=>o(`REMOVE_PACKAGE_DOCUMENT_TYPE`,{...e},void 0,x,`global`),xn=e=>o(`SET_PACKAGE_VERSION`,{...e},void 0,lt,`global`),Sn=e({bumpVersion:()=>Cn,publishDev:()=>wn,publishProduction:()=>En,publishStaging:()=>Tn,setPublishStatus:()=>Dn}),Cn=e=>o(`BUMP_VERSION`,{...e},void 0,ke,`global`),wn=e=>o(`PUBLISH_DEV`,{...e},void 0,tt,`global`),Tn=e=>o(`PUBLISH_STAGING`,{...e},void 0,h,`global`),En=e=>o(`PUBLISH_PRODUCTION`,{...e},void 0,nt,`global`),Dn=e=>o(`SET_PUBLISH_STATUS`,{...e},void 0,ft,`global`),On={...oe,...Ft,...At,...Mt,...gn,...xt,...Sn,...zt,...gt,...Et,...nn,...on,...Xt,...dn,...Vt},kn={id:`powerhouse/ph-clint-project`,name:`PhClintProject`,author:{name:`Powerhouse Inc.`,website:`https://powerhouse.inc`},extension:`pcp`,description:`A ph-clint implementation project specification. Drives code generation of a ph-clint CLI project: identity fields (name, scope, version, description, bin) plus three feature toggles (Powerhouse, Mastra, Routine). Enabling Powerhouse is irreversible; enabling Mastra auto-enables Routine; disabling Routine is blocked while Mastra is on.`,specifications:[{state:{local:{schema:``,examples:[],initialValue:``},global:{schema:`type PhClintProjectState {
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/components-ByEUkO4U-BWcOYd4s.js","assets/preload-helper-ca-nBW7U.js","assets/connect-CGvtDtZh.js","assets/chunk-BNv3lrIs.js","assets/dist-t-ezfpxv.js","assets/hmac-wnxCe4SN.js","assets/worker-XYrQaEmt-w0FhumYk.js","assets/error-info-Cpu4OY3o-DJ8lg6ye.js","assets/types-CxSpmNGK-BaNo7EHQ.js","assets/esm-0nAQjFUV.js","assets/errors-D3S6Eysd-DUmQAeoG.js","assets/dist-Cb4AoJ-8.js","assets/clsx-CtFH8AOT.js","assets/dist-DC27BFRa.js","assets/chunk-3WWIVTCY-Dk4atnGX.js","assets/chunk-QY3QWFKW-Dw6-Hpdq.js","assets/chunk-F2DQ4FIK-B5wKwnbU.js","assets/chunk-VBDAOXYI-BWd303gi.js","assets/connect.config-Bt4pvvWV-CRF9MQO6.js","assets/runtime-config-DL3QjcfM-D9g4VFtY.js","assets/module-BA2WsOHG.js","assets/registerServiceWorker-D9l1kja7-BDpTOs18.js","assets/toast-BEy42aYx-Dg_jZf6v.js","assets/Trans-DDyWfeQm.js","assets/i18next-kqPoxo7u.js","assets/useTranslation-DQCCLfKw.js","assets/editor-Bds50MuL.js","assets/hooks-CE3gZpe3.js"])))=>i.map(i=>d[i]);
2
+ import{r as e}from"./chunk-BNv3lrIs.js";import{r as t}from"./runtime-config-DL3QjcfM-D9g4VFtY.js";import{t as n}from"./preload-helper-ca-nBW7U.js";import{C as r,P as i,b as a,f as ee,h as te,m as ne,v as re,x as ie}from"./types-CxSpmNGK-BaNo7EHQ.js";import{n as ae}from"./dist-Cb4AoJ-8.js";import{$ as oe,$t as se,A as ce,An as le,At as o,B as ue,Bn as de,Bt as fe,C as pe,Cn as me,Ct as he,D as ge,Dn as _e,Dt as ve,E as ye,En as be,Et as xe,F as Se,Fn as Ce,Ft as we,G as Te,Gn as Ee,Gt as De,H as Oe,Hn as ke,Ht as Ae,I as je,In as Me,It as Ne,J as Pe,Jt as Fe,K as Ie,Kt as Le,L as Re,Ln as ze,Lt as Be,M as Ve,Mn as He,Mt as Ue,N as We,Nn as Ge,Nt as Ke,O as qe,On as Je,Ot as Ye,P as Xe,Pn as Ze,Pt as Qe,Q as $e,Qt as et,R as tt,Rn as nt,Rt as rt,S as it,Sn as at,St as ot,T as st,Tn as ct,Tt as lt,U as ut,Un as dt,Ut as ft,V as pt,Vn as s,Vt as c,W as mt,Wn as ht,Wt as gt,X as _t,Xt as vt,Y as yt,Yt as bt,Z as xt,Zt as St,_ as Ct,_n as l,_t as wt,a as Tt,an as Et,at as Dt,b as Ot,bn as u,bt as kt,c as d,cn as f,ct as At,d as p,dn as m,dt as jt,en as Mt,et as Nt,f as h,fn as Pt,ft as Ft,g as It,gn as g,gt as Lt,h as Rt,hn as _,ht as zt,i as Bt,in as Vt,it as Ht,j as Ut,jn as v,jt as y,k as Wt,kn as b,kt as x,l as S,ln as C,lt as Gt,m as Kt,mn as w,mt as qt,n as Jt,nn as Yt,nt as Xt,o as Zt,on as Qt,ot as $t,p as en,pn as tn,pt as nn,q as rn,qt as an,r as on,rn as sn,rt as cn,s as ln,sn as un,st as dn,t as fn,tn as pn,tt as mn,u as hn,un as gn,ut as _n,v as vn,vn as yn,vt as bn,w as xn,wn as Sn,wt as Cn,x as wn,xn as Tn,xt as En,y as Dn,yn as On,yt as kn,z as An,zn as jn,zt as Mn}from"./hooks-CE3gZpe3.js";import{createRoot as Nn}from"react-dom/client";import{jsx as Pn}from"react/jsx-runtime";import{lazy as Fn}from"react";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})(),(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2f8a11cf-bc6b-5fbf-9031-7723d0609b7b`)}catch{}})(),await t();var{AppLoader:In}=await n(async()=>{let{AppLoader:e}=await import(`./components-ByEUkO4U-BWcOYd4s.js`);return{AppLoader:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]));function Ln(e){window.ph?.vetraPackageManager?.updateLocalPackage(e)}function Rn(e){return window.ph||(window.ph={}),Nn(document.getElementById(`root`)).render(Pn(In,{localPackage:e})),{updateLocalPackage:Ln}}var zn={name:`ph-clint-app`,description:``,category:``,publisher:{name:``,url:``},documentModels:[{id:`powerhouse/ph-clint-project`,name:`PhClintProject`}],apps:[],editors:[{id:`ph-clint-project-editor`,name:`PhClintProjectEditor`,documentTypes:[`powerhouse/ph-clint-project`]}],processors:[],subgraphs:[],config:[]},Bn={id:`powerhouse/ph-clint-project`,name:`PhClintProject`,author:{name:`Powerhouse Inc.`,website:`https://powerhouse.inc`},extension:`pcp`,description:`A ph-clint implementation project specification. Drives code generation of a ph-clint CLI project: identity fields (name, scope, version, description, bin) plus three feature toggles (Powerhouse, Mastra, Routine). Enabling Powerhouse is irreversible; enabling Mastra auto-enables Routine; disabling Routine is blocked while Mastra is on.`,specifications:[{state:{local:{schema:``,examples:[],initialValue:``},global:{schema:`type PhClintProjectState {
2
3
  name: String
3
4
  scope: String
4
5
  version: String!
@@ -1099,5 +1100,5 @@ if (idx === -1) {
1099
1100
  \`Tool pattern not on agent: \${action.input.pattern}\`,
1100
1101
  );
1101
1102
  }
1102
- agent.toolPatterns.splice(idx, 1);`,errors:[{id:`e-remove-pattern-not-enabled`,name:`MastraNotEnabledError`,code:`MASTRA_NOT_ENABLED`,description:`Mastra must be enabled.`,template:``},{id:`e-remove-pattern-agent-not-found`,name:`AgentNotFoundError`,code:`AGENT_NOT_FOUND`,description:`The specified agentId was not found.`,template:``},{id:`e-remove-pattern-not-found`,name:`ToolPatternNotFoundError`,code:`TOOL_PATTERN_NOT_FOUND`,description:`The tool pattern is not on this agent.`,template:``}],examples:[],scope:`global`}]}],version:1,changeLog:[]}]},An=class extends Error{errorCode=`DuplicateResourceError`;constructor(e=`DuplicateResourceError`){super(e)}},jn=class extends Error{errorCode=`ResourceNotFoundError`;constructor(e=`ResourceNotFoundError`){super(e)}},P={addSupportedResourceOperation(e,t){if(e.deployment.supportedResources.includes(t.input.resource))throw new An(`Resource already exists: ${t.input.resource}`);e.deployment.supportedResources.push(t.input.resource)},removeSupportedResourceOperation(e,t){let n=e.deployment.supportedResources.indexOf(t.input.resource);if(n===-1)throw new jn(`Resource not found: ${t.input.resource}`);e.deployment.supportedResources.splice(n,1)},setProxyEnabledOperation(e,t){e.deployment.proxyEnabled=t.input.enabled},setObservabilityEnabledOperation(e,t){e.deployment.observabilityEnabled=t.input.enabled}},Mn=class extends Error{errorCode=`InvalidSkillNameError`;constructor(e=`InvalidSkillNameError`){super(e)}},Nn=class extends Error{errorCode=`DuplicateSkillError`;constructor(e=`DuplicateSkillError`){super(e)}},Pn=class extends Error{errorCode=`SkillNotFoundError`;constructor(e=`SkillNotFoundError`){super(e)}},F={addExternalSkillOperation(e,t){if(!/^[a-z][a-z0-9-]*$/.test(t.input.name))throw new Mn(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);if(e.externalSkills.find(e=>e.id===t.input.id||e.name===t.input.name))throw new Nn(`Skill already exists: ${t.input.name}`);e.externalSkills.push({id:t.input.id,name:t.input.name,githubUrl:t.input.githubUrl})},removeExternalSkillOperation(e,t){let n=e.externalSkills.findIndex(e=>e.id===t.input.id);if(n===-1)throw new Pn(`Skill not found: ${t.input.id}`);e.externalSkills.splice(n,1)},setExternalSkillNameOperation(e,t){let n=e.externalSkills.find(e=>e.id===t.input.id);if(!n)throw new Pn(`Skill not found: ${t.input.id}`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.name))throw new Mn(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);if(e.externalSkills.find(e=>e.name===t.input.name&&e.id!==t.input.id))throw new Nn(`Skill name already in use: ${t.input.name}`);n.name=t.input.name},setExternalSkillGithubUrlOperation(e,t){let n=e.externalSkills.find(e=>e.id===t.input.id);if(!n)throw new Pn(`Skill not found: ${t.input.id}`);n.githubUrl=t.input.githubUrl}},Fn=class extends Error{errorCode=`InvalidAgentIdError`;constructor(e=`InvalidAgentIdError`){super(e)}},In=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},Ln=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},Rn=class extends Error{errorCode=`PowerhouseNotEnabledError`;constructor(e=`PowerhouseNotEnabledError`){super(e)}},zn={enableMastraOperation(e,t){if(!/^[a-z][a-z0-9-]*$/.test(t.input.agentId))throw new Fn(`Invalid agent ID: ${t.input.agentId}. Must be lowercase kebab-case.`);let n=t.input.agentName.trim();if(!n)throw new In(`Agent name must not be empty.`);e.features.mastra.enabled=!0,e.features.mastra.models.length===0&&e.features.mastra.models.push({id:`clint/demo-agent`}),e.features.mastra.profiles.length===0&&e.features.mastra.profiles.push({id:`base`,title:`Base Profile`,content:`You are a helpful assistant.`});let r=e.features.mastra.mainAgent;r?(r.id=t.input.agentId,r.name=n):e.features.mastra.mainAgent={id:t.input.agentId,name:n,description:null,attachment:null,modelId:`clint/demo-agent`,profileIds:[`base`],skills:[],toolPatterns:[]}},disableMastraOperation(e){e.features.mastra.enabled=!1,e.features.mastra.mainAgent=null,e.features.mastra.subAgents=[],e.features.mastra.models=[],e.features.mastra.profiles=[],e.features.mastra.common.enableChat=!1;let t=e.packages.findIndex(e=>e.packageName===`@powerhousedao/clint-common`&&e.managed);t!==-1&&e.packages.splice(t,1)},setEnableChatOperation(e,t){if(!e.features.mastra.enabled)throw new Ln(`Cannot toggle chat when Mastra is disabled.`);if(e.features.powerhouse===`Disabled`)throw new Rn(`Cannot toggle chat when Powerhouse is disabled.`);e.features.mastra.common.enableChat=t.input.enabled;let n=`@powerhousedao/clint-common`,r=`powerhouse/chat-session`;if(t.input.enabled){let t=e.packages.find(e=>e.packageName===n);t?t.documentTypes.includes(r)||t.documentTypes.push(r):e.packages.push({id:`pkg-clint-common`,packageName:n,documentTypes:[r],version:null,managed:!0})}else{let t=e.packages.findIndex(e=>e.packageName===n&&e.managed);if(t!==-1){let n=e.packages[t];if(n.documentTypes.length===1&&n.documentTypes[0]===r)e.packages.splice(t,1);else{let e=n.documentTypes.indexOf(r);e!==-1&&n.documentTypes.splice(e,1)}}}}},Bn=class extends Error{errorCode=`CannotLowerPowerhouseError`;constructor(e=`CannotLowerPowerhouseError`){super(e)}},Vn=[`Disabled`,`Reactor`,`Switchboard`,`Connect`],Hn={setPowerhouseLevelOperation(e,t){let n=Vn.indexOf(e.features.powerhouse),r=Vn.indexOf(t.input.level);if(n>=1&&r<1)throw new Bn(`Cannot lower Powerhouse level below Reactor once enabled`);if(e.features.powerhouse=t.input.level,n===0&&r>=1&&!e.packages.some(e=>e.managed)){let t=e.name?e.name.replace(/-cli$/,`-app`):`app`,n=e.scope&&e.name?`${e.scope}/${t}`:t;e.packages.push({id:`app-${e.name||`managed`}`,packageName:n,documentTypes:[`*/*`],version:null,managed:!0})}r>=2&&!t.input.skipAutoProxy&&(e.deployment.proxyEnabled=!0)}},Un={enableRoutineOperation(e){e.features.routine.enabled=!0},disableRoutineOperation(e){e.features.routine.enabled=!1}},Wn=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},I=class extends Error{errorCode=`InvalidPackageIdentifierError`;constructor(e=`InvalidPackageIdentifierError`){super(e)}},Gn=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/,Kn=/^[a-z][a-z0-9-]*$/,qn={setVersionOperation(e,t){if(!Gn.test(t.input.version))throw new Wn(`Invalid version: ${t.input.version}`);e.version=t.input.version},setDescriptionOperation(e,t){e.description=t.input.description},setPackageIdentifierOperation(e,t){let n=t.input.identifier.trim();if(!n)throw new I(`Package identifier must not be empty`);let r=null,i=n;if(n.includes(`/`)){let e=n.split(`/`);if(e.length!==2||!e[0]||!e[1])throw new I(`Invalid package identifier: ${n}`);r=e[0].replace(/^@/,``),i=e[1]}if(r!==null&&!Kn.test(r))throw new I(`Invalid scope: ${r}`);if(i.endsWith(`-cli`)||(i+=`-cli`),!Kn.test(i))throw new I(`Invalid package name: ${i}`);e.scope=r?`@${r}`:null,e.name=i;let a=e.packages.find(e=>e.managed);if(a){let e=i.replace(/-cli$/,`-app`);a.packageName=r?`@${r}/${e}`:e,a.id=`app-${i}`}}},Jn={importSpecOperation(e,t){e.name=t.input.name,e.scope=t.input.scope||null,e.version=t.input.version,e.description=t.input.description,e.features.powerhouse=t.input.powerhouse,e.features.mastra.enabled=t.input.mastraEnabled,e.features.routine.enabled=t.input.routineEnabled;let n=t.input.name.replace(/-cli$/,`-app`),r=t.input.scope?`${t.input.scope}/${n}`:n,i=t.input.powerhouse!==`Disabled`;if(e.packages=t.input.packages.map(e=>({id:e.id,packageName:e.packageName,documentTypes:[...e.documentTypes],version:e.version||null,managed:i&&e.packageName===r})),e.externalSkills=t.input.externalSkills.map(e=>({id:e.id,name:e.name,githubUrl:e.githubUrl})),e.features.mastra.models=t.input.models.map(e=>({id:e.id})),e.features.mastra.profiles=t.input.profiles.map(e=>({id:e.id,title:e.title,content:e.content})),t.input.mainAgent&&e.features.mastra.enabled){let n=t.input.mainAgent;e.features.mastra.mainAgent={id:n.id,name:n.name,description:n.description||null,attachment:n.attachment||null,modelId:n.modelId,profileIds:[...n.profileIds],skills:[...n.skills],toolPatterns:[...n.toolPatterns]}}else e.features.mastra.mainAgent=null;if(e.features.mastra.enabled?e.features.mastra.subAgents=t.input.subAgents.map(e=>({id:e.id,name:e.name,description:e.description,modelId:e.modelId,profileIds:[...e.profileIds],skills:[...e.skills],toolPatterns:[...e.toolPatterns]})):e.features.mastra.subAgents=[],t.input.enableChat&&e.features.mastra.enabled&&e.features.powerhouse!==`Disabled`){e.features.mastra.common.enableChat=!0;let t=`@powerhousedao/clint-common`,n=`powerhouse/chat-session`,r=e.packages.find(e=>e.packageName===t);r?r.documentTypes.includes(n)||r.documentTypes.push(n):e.packages.push({id:`pkg-clint-common`,packageName:t,documentTypes:[n],version:null,managed:!0})}else e.features.mastra.common.enableChat=!1;e.deployment.proxyEnabled=t.input.proxyEnabled??!1,e.deployment.observabilityEnabled=t.input.observabilityEnabled??!1,e.deployment.supportedResources=t.input.supportedResources?[...t.input.supportedResources]:[]}},L=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},R=class extends Error{errorCode=`AgentNotFoundError`;constructor(e=`AgentNotFoundError`){super(e)}},Yn=class extends Error{errorCode=`ModelReferenceNotFoundError`;constructor(e=`ModelReferenceNotFoundError`){super(e)}},z=class extends Error{errorCode=`ProfileReferenceNotFoundError`;constructor(e=`ProfileReferenceNotFoundError`){super(e)}},Xn=class extends Error{errorCode=`InvalidSkillNameError`;constructor(e=`InvalidSkillNameError`){super(e)}},Zn=class extends Error{errorCode=`SkillNotFoundError`;constructor(e=`SkillNotFoundError`){super(e)}},Qn=class extends Error{errorCode=`InvalidToolPatternError`;constructor(e=`InvalidToolPatternError`){super(e)}},$n=class extends Error{errorCode=`ToolPatternNotFoundError`;constructor(e=`ToolPatternNotFoundError`){super(e)}};function B(e,t,n){return e&&e.id===n?e:t.find(e=>e.id===n)}var V={setAgentModelOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot set agent model when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);if(!e.features.mastra.models.find(e=>e.id===t.input.modelId))throw new Yn(`Model not in library: ${t.input.modelId}`);n.modelId=t.input.modelId},addAgentProfileRefOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot add profile ref when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);if(!e.features.mastra.profiles.find(e=>e.id===t.input.profileId))throw new z(`Profile not in library: ${t.input.profileId}`);if(!n.profileIds.includes(t.input.profileId))if(t.input.insertBefore){let e=n.profileIds.indexOf(t.input.insertBefore);if(e===-1)throw new z(`insertBefore profile not in agent's profileIds: ${t.input.insertBefore}`);n.profileIds.splice(e,0,t.input.profileId)}else n.profileIds.push(t.input.profileId)},removeAgentProfileRefOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot remove profile ref when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);let r=n.profileIds.indexOf(t.input.profileId);if(r===-1)throw new z(`Profile not in agent's profileIds: ${t.input.profileId}`);n.profileIds.splice(r,1)},reorderAgentProfileRefsOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot reorder profile refs when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);for(let e of t.input.ids)if(!n.profileIds.includes(e))throw new z(`Profile not in agent's profileIds: ${e}`);let r=n.profileIds.filter(e=>!t.input.ids.includes(e));if(t.input.insertBefore){let e=r.indexOf(t.input.insertBefore);if(e===-1)throw new z(`insertBefore profile not in agent's profileIds: ${t.input.insertBefore}`);r.splice(e,0,...t.input.ids)}else r.push(...t.input.ids);n.profileIds=r},addAgentSkillOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot add skill when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);let r=t.input.name.trim();if(!/^[a-z][a-z0-9-]*$/.test(r))throw new Xn(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);n.skills.includes(r)||n.skills.push(r)},removeAgentSkillOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot remove skill when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);let r=n.skills.indexOf(t.input.name);if(r===-1)throw new Zn(`Skill not on agent: ${t.input.name}`);n.skills.splice(r,1)},addAgentToolPatternOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot add tool pattern when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);let r=t.input.pattern.trim();if(!r)throw new Qn(`Tool pattern must not be empty after trimming.`);n.toolPatterns.includes(r)||n.toolPatterns.push(r)},removeAgentToolPatternOperation(e,t){if(!e.features.mastra.enabled)throw new L(`Cannot remove tool pattern when Mastra is disabled.`);let n=B(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new R(`Agent not found: ${t.input.agentId}`);let r=n.toolPatterns.indexOf(t.input.pattern);if(r===-1)throw new $n(`Tool pattern not on agent: ${t.input.pattern}`);n.toolPatterns.splice(r,1)}},H=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},er=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},tr=class extends Error{errorCode=`InvalidAgentImageError`;constructor(e=`InvalidAgentImageError`){super(e)}},U={setMainAgentNameOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new H(`Cannot set main agent name when Mastra is disabled.`);let r=t.input.name.trim();if(!r)throw new er(`Agent name must not be empty.`);n.name=r},setMainAgentDescriptionOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new H(`Cannot set main agent description when Mastra is disabled.`);n.description=t.input.description},clearMainAgentDescriptionOperation(e){let t=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!t)throw new H(`Cannot clear main agent description when Mastra is disabled.`);t.description=null},setMainAgentImageOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new H(`Cannot set main agent image when Mastra is disabled.`);if(!t.input.attachment.startsWith(`attachment://`))throw new tr(`Agent image must be an attachment ref (attachment://...)`);n.attachment=t.input.attachment},clearMainAgentImageOperation(e){let t=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!t)throw new H(`Cannot clear main agent image when Mastra is disabled.`);t.attachment=null}},nr=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},rr=class extends Error{errorCode=`InvalidModelIdError`;constructor(e=`InvalidModelIdError`){super(e)}},ir=class extends Error{errorCode=`DuplicateModelError`;constructor(e=`DuplicateModelError`){super(e)}},ar=class extends Error{errorCode=`ModelNotFoundError`;constructor(e=`ModelNotFoundError`){super(e)}},or=class extends Error{errorCode=`ModelInUseError`;constructor(e=`ModelInUseError`){super(e)}},sr={addModelOperation(e,t){if(!e.features.mastra.enabled)throw new nr(`Cannot add model when Mastra is disabled.`);if(!/^[a-z0-9-]+\/[a-z0-9._-]+$/.test(t.input.id))throw new rr(`Invalid model ID: ${t.input.id}. Must be provider/model-name format.`);if(e.features.mastra.models.find(e=>e.id===t.input.id))throw new ir(`Model already exists: ${t.input.id}`);e.features.mastra.models.push({id:t.input.id})},removeModelOperation(e,t){if(!e.features.mastra.enabled)throw new nr(`Cannot remove model when Mastra is disabled.`);let n=e.features.mastra.models.findIndex(e=>e.id===t.input.id);if(n===-1)throw new ar(`Model not found: ${t.input.id}`);let r=e.features.mastra.mainAgent,i=!!r&&r.modelId===t.input.id,a=e.features.mastra.subAgents.some(e=>e.modelId===t.input.id);if(i||a)throw new or(`Model ${t.input.id} is in use by an agent.`);e.features.mastra.models.splice(n,1)}},W=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},cr=class extends Error{errorCode=`InvalidProfileIdError`;constructor(e=`InvalidProfileIdError`){super(e)}},lr=class extends Error{errorCode=`DuplicateProfileError`;constructor(e=`DuplicateProfileError`){super(e)}},G=class extends Error{errorCode=`ProfileNotFoundError`;constructor(e=`ProfileNotFoundError`){super(e)}},ur=class extends Error{errorCode=`ProfileInUseError`;constructor(e=`ProfileInUseError`){super(e)}},K={addProfileOperation(e,t){if(!e.features.mastra.enabled)throw new W(`Cannot add profile when Mastra is disabled.`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.id))throw new cr(`Invalid profile ID: ${t.input.id}. Must be lowercase kebab-case.`);if(e.features.mastra.profiles.find(e=>e.id===t.input.id))throw new lr(`Profile already exists: ${t.input.id}`);let n={id:t.input.id,title:t.input.title,content:t.input.content};if(t.input.insertBefore){let r=e.features.mastra.profiles.findIndex(e=>e.id===t.input.insertBefore);if(r===-1)throw new G(`insertBefore profile not found: ${t.input.insertBefore}`);e.features.mastra.profiles.splice(r,0,n)}else e.features.mastra.profiles.push(n)},updateProfileOperation(e,t){if(!e.features.mastra.enabled)throw new W(`Cannot update profile when Mastra is disabled.`);let n=e.features.mastra.profiles.find(e=>e.id===t.input.id);if(!n)throw new G(`Profile not found: ${t.input.id}`);t.input.title&&(n.title=t.input.title),t.input.content&&(n.content=t.input.content)},removeProfileOperation(e,t){if(!e.features.mastra.enabled)throw new W(`Cannot remove profile when Mastra is disabled.`);let n=e.features.mastra.profiles.findIndex(e=>e.id===t.input.id);if(n===-1)throw new G(`Profile not found: ${t.input.id}`);let r=e.features.mastra.mainAgent,i=!!r&&r.profileIds.includes(t.input.id),a=e.features.mastra.subAgents.some(e=>e.profileIds.includes(t.input.id));if(i||a)throw new ur(`Profile ${t.input.id} is in use by an agent.`);e.features.mastra.profiles.splice(n,1)},reorderProfilesOperation(e,t){if(!e.features.mastra.enabled)throw new W(`Cannot reorder profiles when Mastra is disabled.`);let n=[];for(let r of t.input.ids){let t=e.features.mastra.profiles.find(e=>e.id===r);if(!t)throw new G(`Profile not found: ${r}`);n.push(t)}if(e.features.mastra.profiles=e.features.mastra.profiles.filter(e=>!t.input.ids.includes(e.id)),t.input.insertBefore){let r=e.features.mastra.profiles.findIndex(e=>e.id===t.input.insertBefore);if(r===-1)throw new G(`insertBefore profile not found: ${t.input.insertBefore}`);e.features.mastra.profiles.splice(r,0,...n)}else e.features.mastra.profiles.push(...n)}},q=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},dr=class extends Error{errorCode=`InvalidAgentIdError`;constructor(e=`InvalidAgentIdError`){super(e)}},fr=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},pr=class extends Error{errorCode=`DuplicateAgentIdError`;constructor(e=`DuplicateAgentIdError`){super(e)}},mr=class extends Error{errorCode=`ModelReferenceNotFoundError`;constructor(e=`ModelReferenceNotFoundError`){super(e)}},hr=class extends Error{errorCode=`AgentNotFoundError`;constructor(e=`AgentNotFoundError`){super(e)}},J={addSubAgentOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new q(`Cannot add sub-agent when Mastra is disabled.`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.id))throw new dr(`Invalid sub-agent ID: ${t.input.id}. Must be lowercase kebab-case.`);let r=t.input.name.trim();if(!r)throw new fr(`Sub-agent name must not be empty.`);if(n.id===t.input.id)throw new pr(`Agent ID already taken by main agent: ${t.input.id}`);if(e.features.mastra.subAgents.find(e=>e.id===t.input.id))throw new pr(`Sub-agent already exists: ${t.input.id}`);if(!e.features.mastra.models.find(e=>e.id===t.input.modelId))throw new mr(`Model not in library: ${t.input.modelId}`);e.features.mastra.subAgents.push({id:t.input.id,name:r,description:t.input.description,modelId:t.input.modelId,profileIds:[],skills:[],toolPatterns:[]})},removeSubAgentOperation(e,t){if(!e.features.mastra.enabled)throw new q(`Cannot remove sub-agent when Mastra is disabled.`);let n=e.features.mastra.subAgents.findIndex(e=>e.id===t.input.id);if(n===-1)throw new hr(`Sub-agent not found: ${t.input.id}`);e.features.mastra.subAgents.splice(n,1)},setSubAgentNameOperation(e,t){if(!e.features.mastra.enabled)throw new q(`Cannot set sub-agent name when Mastra is disabled.`);let n=e.features.mastra.subAgents.find(e=>e.id===t.input.id);if(!n)throw new hr(`Sub-agent not found: ${t.input.id}`);let r=t.input.name.trim();if(!r)throw new fr(`Sub-agent name must not be empty.`);n.name=r},setSubAgentDescriptionOperation(e,t){if(!e.features.mastra.enabled)throw new q(`Cannot set sub-agent description when Mastra is disabled.`);let n=e.features.mastra.subAgents.find(e=>e.id===t.input.id);if(!n)throw new hr(`Sub-agent not found: ${t.input.id}`);n.description=t.input.description}},gr=class extends Error{errorCode=`DuplicatePackageError`;constructor(e=`DuplicatePackageError`){super(e)}},Y=class extends Error{errorCode=`PackageNotFoundError`;constructor(e=`PackageNotFoundError`){super(e)}},_r=class extends Error{errorCode=`CannotRemoveManagedPackageError`;constructor(e=`CannotRemoveManagedPackageError`){super(e)}},vr=class extends Error{errorCode=`InvalidDocumentTypeError`;constructor(e=`InvalidDocumentTypeError`){super(e)}},yr=class extends Error{errorCode=`DuplicateDocumentTypeError`;constructor(e=`DuplicateDocumentTypeError`){super(e)}},br=class extends Error{errorCode=`DocumentTypeNotFoundError`;constructor(e=`DocumentTypeNotFoundError`){super(e)}},xr=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},Sr=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/,X={addPowerhousePackageOperation(e,t){if(e.packages.find(e=>e.id===t.input.id||e.packageName===t.input.packageName))throw new gr(`Package already exists: ${t.input.packageName}`);e.packages.push({id:t.input.id,packageName:t.input.packageName,documentTypes:[],version:null,managed:!1})},removePowerhousePackageOperation(e,t){let n=e.packages.findIndex(e=>e.id===t.input.id);if(n===-1)throw new Y(`Package not found: ${t.input.id}`);if(e.packages[n].managed)throw new _r(`Cannot remove a managed package`);e.packages.splice(n,1)},addPackageDocumentTypeOperation(e,t){if(t.input.documentType!==`*/*`&&!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(t.input.documentType))throw new vr(`Invalid document type format: ${t.input.documentType}. Expected org/name.`);let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new Y(`Package not found: ${t.input.packageId}`);if(t.input.documentType===`*/*`){n.documentTypes.length=0,n.documentTypes.push(`*/*`);return}if(!n.documentTypes.includes(`*/*`)){if(n.documentTypes.includes(t.input.documentType))throw new yr(`Document type already registered: ${t.input.documentType}`);n.documentTypes.push(t.input.documentType)}},removePackageDocumentTypeOperation(e,t){let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new Y(`Package not found: ${t.input.packageId}`);let r=n.documentTypes.indexOf(t.input.documentType);if(r===-1)throw new br(`Document type not found: ${t.input.documentType}`);n.documentTypes.splice(r,1)},setPackageVersionOperation(e,t){let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new Y(`Package not found: ${t.input.packageId}`);if(t.input.version!=null&&!Sr.test(t.input.version))throw new xr(`Invalid version: ${t.input.version}`);n.version=t.input.version||null}},Cr=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},wr=class extends Error{errorCode=`PublishRecordNotFoundError`;constructor(e=`PublishRecordNotFoundError`){super(e)}},Z={bumpVersionOperation(e,t){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(t.input.version))throw new Cr(`Invalid version: ${t.input.version}`);e.version=t.input.version},publishDevOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Dev`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},publishStagingOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Staging`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},publishProductionOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Production`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},setPublishStatusOperation(e,t){let n=e.publishHistory.find(e=>e.id===t.input.id);if(!n)throw new wr(`Publish record not found: ${t.input.id}`);n.status=t.input.status}},Tr=ae((e,t,n)=>{if(te(t))return e;switch(t.type){case`SET_DESCRIPTION`:k().parse(t.input),qn.setDescriptionOperation(e[t.scope],t,n);break;case`SET_VERSION`:mt().parse(t.input),qn.setVersionOperation(e[t.scope],t,n);break;case`SET_PACKAGE_IDENTIFIER`:ct().parse(t.input),qn.setPackageIdentifierOperation(e[t.scope],t,n);break;case`SET_POWERHOUSE_LEVEL`:ut().parse(t.input),Hn.setPowerhouseLevelOperation(e[t.scope],t,n);break;case`ENABLE_ROUTINE`:Fe().parse(t.input),Un.enableRoutineOperation(e[t.scope],t,n);break;case`DISABLE_ROUTINE`:Ne().parse(t.input),Un.disableRoutineOperation(e[t.scope],t,n);break;case`ADD_POWERHOUSE_PACKAGE`:Te().parse(t.input),X.addPowerhousePackageOperation(e[t.scope],t,n);break;case`REMOVE_POWERHOUSE_PACKAGE`:S().parse(t.input),X.removePowerhousePackageOperation(e[t.scope],t,n);break;case`ADD_PACKAGE_DOCUMENT_TYPE`:we().parse(t.input),X.addPackageDocumentTypeOperation(e[t.scope],t,n);break;case`REMOVE_PACKAGE_DOCUMENT_TYPE`:x().parse(t.input),X.removePackageDocumentTypeOperation(e[t.scope],t,n);break;case`SET_PACKAGE_VERSION`:lt().parse(t.input),X.setPackageVersionOperation(e[t.scope],t,n);break;case`ADD_EXTERNAL_SKILL`:Se().parse(t.input),F.addExternalSkillOperation(e[t.scope],t,n);break;case`REMOVE_EXTERNAL_SKILL`:y().parse(t.input),F.removeExternalSkillOperation(e[t.scope],t,n);break;case`SET_EXTERNAL_SKILL_NAME`:M().parse(t.input),F.setExternalSkillNameOperation(e[t.scope],t,n);break;case`SET_EXTERNAL_SKILL_GITHUB_URL`:j().parse(t.input),F.setExternalSkillGithubUrlOperation(e[t.scope],t,n);break;case`BUMP_VERSION`:ke().parse(t.input),Z.bumpVersionOperation(e[t.scope],t,n);break;case`PUBLISH_DEV`:tt().parse(t.input),Z.publishDevOperation(e[t.scope],t,n);break;case`PUBLISH_STAGING`:h().parse(t.input),Z.publishStagingOperation(e[t.scope],t,n);break;case`PUBLISH_PRODUCTION`:nt().parse(t.input),Z.publishProductionOperation(e[t.scope],t,n);break;case`SET_PUBLISH_STATUS`:ft().parse(t.input),Z.setPublishStatusOperation(e[t.scope],t,n);break;case`IMPORT_SPEC`:He().parse(t.input),Jn.importSpecOperation(e[t.scope],t,n);break;case`ADD_SUPPORTED_RESOURCE`:Oe().parse(t.input),P.addSupportedResourceOperation(e[t.scope],t,n);break;case`REMOVE_SUPPORTED_RESOURCE`:T().parse(t.input),P.removeSupportedResourceOperation(e[t.scope],t,n);break;case`SET_PROXY_ENABLED`:dt().parse(t.input),P.setProxyEnabledOperation(e[t.scope],t,n);break;case`SET_OBSERVABILITY_ENABLED`:st().parse(t.input),P.setObservabilityEnabledOperation(e[t.scope],t,n);break;case`ENABLE_MASTRA`:Pe().parse(t.input),zn.enableMastraOperation(e[t.scope],t,n);break;case`DISABLE_MASTRA`:Me().parse(t.input),zn.disableMastraOperation(e[t.scope],t,n);break;case`SET_ENABLE_CHAT`:A().parse(t.input),zn.setEnableChatOperation(e[t.scope],t,n);break;case`ADD_MODEL`:Ce().parse(t.input),sr.addModelOperation(e[t.scope],t,n);break;case`REMOVE_MODEL`:b().parse(t.input),sr.removeModelOperation(e[t.scope],t,n);break;case`ADD_PROFILE`:Ee().parse(t.input),K.addProfileOperation(e[t.scope],t,n);break;case`UPDATE_PROFILE`:ht().parse(t.input),K.updateProfileOperation(e[t.scope],t,n);break;case`REMOVE_PROFILE`:C().parse(t.input),K.removeProfileOperation(e[t.scope],t,n);break;case`REORDER_PROFILES`:D().parse(t.input),K.reorderProfilesOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_NAME`:ot().parse(t.input),U.setMainAgentNameOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_DESCRIPTION`:it().parse(t.input),U.setMainAgentDescriptionOperation(e[t.scope],t,n);break;case`CLEAR_MAIN_AGENT_DESCRIPTION`:Ae().parse(t.input),U.clearMainAgentDescriptionOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_IMAGE`:at().parse(t.input),U.setMainAgentImageOperation(e[t.scope],t,n);break;case`CLEAR_MAIN_AGENT_IMAGE`:je().parse(t.input),U.clearMainAgentImageOperation(e[t.scope],t,n);break;case`ADD_SUB_AGENT`:De().parse(t.input),J.addSubAgentOperation(e[t.scope],t,n);break;case`REMOVE_SUB_AGENT`:w().parse(t.input),J.removeSubAgentOperation(e[t.scope],t,n);break;case`SET_SUB_AGENT_NAME`:N().parse(t.input),J.setSubAgentNameOperation(e[t.scope],t,n);break;case`SET_SUB_AGENT_DESCRIPTION`:pt().parse(t.input),J.setSubAgentDescriptionOperation(e[t.scope],t,n);break;case`SET_AGENT_MODEL`:O().parse(t.input),V.setAgentModelOperation(e[t.scope],t,n);break;case`ADD_AGENT_PROFILE_REF`:ye().parse(t.input),V.addAgentProfileRefOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_PROFILE_REF`:g().parse(t.input),V.removeAgentProfileRefOperation(e[t.scope],t,n);break;case`REORDER_AGENT_PROFILE_REFS`:E().parse(t.input),V.reorderAgentProfileRefsOperation(e[t.scope],t,n);break;case`ADD_AGENT_SKILL`:be().parse(t.input),V.addAgentSkillOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_SKILL`:_().parse(t.input),V.removeAgentSkillOperation(e[t.scope],t,n);break;case`ADD_AGENT_TOOL_PATTERN`:xe().parse(t.input),V.addAgentToolPatternOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_TOOL_PATTERN`:v().parse(t.input),V.removeAgentToolPatternOperation(e[t.scope],t,n);break;default:return e}}),Er=`powerhouse/ph-clint-project`,Dr=de.extend({documentType:l(Er)}),Q=le.extend({global:Ze()}),Or=d({header:Dr,state:Q,initialState:Q});function kr(e){return Q.safeParse(e).success}function Ar(e){Q.parse(e)}function $(e){return Or.safeParse(e).success}function jr(e){Or.parse(e)}var Mr={name:null,scope:null,version:`0.1.0`,description:``,features:{powerhouse:`Disabled`,mastra:{enabled:!1,mainAgent:null,subAgents:[],models:[],profiles:[],common:{enableChat:!1}},routine:{enabled:!1}},packages:[],externalSkills:[],publishHistory:[],deployment:{proxyEnabled:!1,observabilityEnabled:!1,supportedResources:[`vetra-agent-s`,`vetra-agent-m`,`vetra-agent-l`,`vetra-agent-xl`,`vetra-agent-xxl`]}},Nr={},Pr={fileExtension:`pcp`,createState(e){return{...ee(),global:{...Mr,...e?.global},local:{...Nr,...e?.local}}},createDocument(e){let t=se(Pr.createState,e);return t.header.documentType=Er,t.header.id=re(),t},saveToFileHandle(e,t){return ce(e,t)},loadFromInput(e){return ue(e,Tr)},isStateOfType(e){return kr(e)},assertIsStateOfType(e){return Ar(e)},isDocumentOfType(e){return $(e)},assertIsDocumentOfType(e){return jr(e)}},Fr=e({}),Ir={...Pr,...Fr},Lr={version:1,reducer:Tr,actions:On,utils:Ir,documentModel:pe(ee(),kn)},Rr=me.forDocumentModel(Lr);function zr(){return{name:null,scope:null,version:`0.1.0`,description:``,features:{powerhouse:`Disabled`,mastra:{enabled:!1,mainAgent:null,subAgents:[],models:[],profiles:[],common:{enableChat:!1}},routine:{enabled:!1}},packages:[],externalSkills:[],publishHistory:[],deployment:{proxyEnabled:!1,observabilityEnabled:!1,supportedResources:[`vetra-agent-s`,`vetra-agent-m`,`vetra-agent-l`,`vetra-agent-xl`,`vetra-agent-xxl`]}}}function Br(){return{}}function Vr(){return{...ee(),global:zr(),local:Br()}}function Hr(e){return{...zr(),...e||{}}}function Ur(e){return{...Br(),...e||{}}}function Wr(e,t,n){return{...fe(e?.auth,e?.document),global:Hr(t),local:Ur(n)}}function Gr(e){return Pr.createDocument(e?Wr(fe(e.auth,e.document),e.global,e.local):void 0)}function Kr(e){let[t,n]=r(e);return $(t)?[t,n]:[void 0,void 0]}function qr(){let[e,n]=t();return jr(e),[e,n]}function Jr(){return n()?.filter($)}function Yr(){return i()?.filter($)}var Xr=[1],Zr=Xr[0],Qr={documentType:`powerhouse/ph-clint-project`,latestVersion:Zr,supportedVersions:Xr,upgrades:{}};export{an as $,dt as $n,Me as $t,Sn as A,_ as An,St as At,xn as B,D as Bn,ye as Bt,$ as C,tt as Cn,Nt as Ct,kn as D,_e as Dn,Ot as Dt,Tr as E,h as En,Et,yn as F,S as Fn,_t as Ft,mn as G,M as Gn,we as Gt,dn as H,k as Hn,xe as Ht,_n as I,C as In,gt as It,ln as J,ot as Jn,De as Jt,sn as K,it as Kn,Te as Kt,gn as L,w as Ln,vt as Lt,En as M,y as Mn,Ct as Mt,Tn as N,b as Nn,Tt as Nt,On as O,ve as On,Dt as Ot,Dn as P,x as Pn,wt as Pt,nn as Q,ut as Qn,je as Qt,bn as R,T as Rn,bt as Rt,Ar as S,et as Sn,Pt as St,Er as T,rt as Tn,jt as Tt,pn as U,A as Un,Se as Ut,fn as V,O as Vn,be as Vt,hn as W,j as Wn,Ce as Wt,cn as X,ct as Xn,ke as Xt,un as Y,st as Yn,Oe as Yt,rn as Z,lt as Zn,Ae as Zt,Nr as _,Xe as _n,Ft as _t,Jr as a,Re as an,ge as ar,Zt as at,Q as b,$e as bn,Lt as bt,Gr as c,Ve as cn,Jt as ct,Br as d,We as dn,qt as dt,Ne as en,ft as er,$t as et,Vr as f,Ge as fn,Yt as ft,Mr as g,Ye as gn,Bt as gt,Ir as h,Je as hn,zt as ht,Kr as i,Le as in,ht as ir,en as it,wn as j,v as jn,xt as jt,Cn as k,g as kn,kt,Wr as l,He as ln,Vt as lt,Lr as m,qe as mn,Ht as mt,Zr as n,Fe as nn,N as nr,Xt as nt,Yr as o,ze as on,he as or,Ut as ot,Rr as p,Ke as pn,Gt as pt,on as q,at as qn,Ee as qt,Xr as r,Ie as rn,mt as rr,Qt as rt,qr as s,Be as sn,Kt as st,Qr as t,Pe as tn,pt as tr,tn as tt,zr as u,Ue as un,Wt as ut,Dr as v,Ze as vn,It as vt,kr as w,nt as wn,At as wt,jr as x,m as xn,Mt as xt,Or as y,Qe as yn,Rt as yt,vn as z,E as zn,yt as zt};
1103
- //# sourceMappingURL=ph-clint-project-p1zY6e17.js.map
1103
+ agent.toolPatterns.splice(idx, 1);`,errors:[{id:`e-remove-pattern-not-enabled`,name:`MastraNotEnabledError`,code:`MASTRA_NOT_ENABLED`,description:`Mastra must be enabled.`,template:``},{id:`e-remove-pattern-agent-not-found`,name:`AgentNotFoundError`,code:`AGENT_NOT_FOUND`,description:`The specified agentId was not found.`,template:``},{id:`e-remove-pattern-not-found`,name:`ToolPatternNotFoundError`,code:`TOOL_PATTERN_NOT_FOUND`,description:`The tool pattern is not on this agent.`,template:``}],examples:[],scope:`global`}]}],version:1,changeLog:[]}]},Vn=class extends Error{errorCode=`DuplicateResourceError`;constructor(e=`DuplicateResourceError`){super(e)}},Hn=class extends Error{errorCode=`ResourceNotFoundError`;constructor(e=`ResourceNotFoundError`){super(e)}},T={addSupportedResourceOperation(e,t){if(e.deployment.supportedResources.includes(t.input.resource))throw new Vn(`Resource already exists: ${t.input.resource}`);e.deployment.supportedResources.push(t.input.resource)},removeSupportedResourceOperation(e,t){let n=e.deployment.supportedResources.indexOf(t.input.resource);if(n===-1)throw new Hn(`Resource not found: ${t.input.resource}`);e.deployment.supportedResources.splice(n,1)},setProxyEnabledOperation(e,t){e.deployment.proxyEnabled=t.input.enabled},setObservabilityEnabledOperation(e,t){e.deployment.observabilityEnabled=t.input.enabled}},Un=class extends Error{errorCode=`InvalidSkillNameError`;constructor(e=`InvalidSkillNameError`){super(e)}},Wn=class extends Error{errorCode=`DuplicateSkillError`;constructor(e=`DuplicateSkillError`){super(e)}},E=class extends Error{errorCode=`SkillNotFoundError`;constructor(e=`SkillNotFoundError`){super(e)}},D={addExternalSkillOperation(e,t){if(!/^[a-z][a-z0-9-]*$/.test(t.input.name))throw new Un(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);if(e.externalSkills.find(e=>e.id===t.input.id||e.name===t.input.name))throw new Wn(`Skill already exists: ${t.input.name}`);e.externalSkills.push({id:t.input.id,name:t.input.name,githubUrl:t.input.githubUrl})},removeExternalSkillOperation(e,t){let n=e.externalSkills.findIndex(e=>e.id===t.input.id);if(n===-1)throw new E(`Skill not found: ${t.input.id}`);e.externalSkills.splice(n,1)},setExternalSkillNameOperation(e,t){let n=e.externalSkills.find(e=>e.id===t.input.id);if(!n)throw new E(`Skill not found: ${t.input.id}`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.name))throw new Un(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);if(e.externalSkills.find(e=>e.name===t.input.name&&e.id!==t.input.id))throw new Wn(`Skill name already in use: ${t.input.name}`);n.name=t.input.name},setExternalSkillGithubUrlOperation(e,t){let n=e.externalSkills.find(e=>e.id===t.input.id);if(!n)throw new E(`Skill not found: ${t.input.id}`);n.githubUrl=t.input.githubUrl}},Gn=class extends Error{errorCode=`InvalidAgentIdError`;constructor(e=`InvalidAgentIdError`){super(e)}},Kn=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},qn=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},Jn=class extends Error{errorCode=`PowerhouseNotEnabledError`;constructor(e=`PowerhouseNotEnabledError`){super(e)}},O={enableMastraOperation(e,t){if(!/^[a-z][a-z0-9-]*$/.test(t.input.agentId))throw new Gn(`Invalid agent ID: ${t.input.agentId}. Must be lowercase kebab-case.`);let n=t.input.agentName.trim();if(!n)throw new Kn(`Agent name must not be empty.`);e.features.mastra.enabled=!0,e.features.mastra.models.length===0&&e.features.mastra.models.push({id:`clint/demo-agent`}),e.features.mastra.profiles.length===0&&e.features.mastra.profiles.push({id:`base`,title:`Base Profile`,content:`You are a helpful assistant.`});let r=e.features.mastra.mainAgent;r?(r.id=t.input.agentId,r.name=n):e.features.mastra.mainAgent={id:t.input.agentId,name:n,description:null,attachment:null,modelId:`clint/demo-agent`,profileIds:[`base`],skills:[],toolPatterns:[]}},disableMastraOperation(e){e.features.mastra.enabled=!1,e.features.mastra.mainAgent=null,e.features.mastra.subAgents=[],e.features.mastra.models=[],e.features.mastra.profiles=[],e.features.mastra.common.enableChat=!1;let t=e.packages.findIndex(e=>e.packageName===`@powerhousedao/clint-common`&&e.managed);t!==-1&&e.packages.splice(t,1)},setEnableChatOperation(e,t){if(!e.features.mastra.enabled)throw new qn(`Cannot toggle chat when Mastra is disabled.`);if(e.features.powerhouse===`Disabled`)throw new Jn(`Cannot toggle chat when Powerhouse is disabled.`);e.features.mastra.common.enableChat=t.input.enabled;let n=`@powerhousedao/clint-common`,r=`powerhouse/chat-session`;if(t.input.enabled){let t=e.packages.find(e=>e.packageName===n);t?t.documentTypes.includes(r)||t.documentTypes.push(r):e.packages.push({id:`pkg-clint-common`,packageName:n,documentTypes:[r],version:null,managed:!0})}else{let t=e.packages.findIndex(e=>e.packageName===n&&e.managed);if(t!==-1){let n=e.packages[t];if(n.documentTypes.length===1&&n.documentTypes[0]===r)e.packages.splice(t,1);else{let e=n.documentTypes.indexOf(r);e!==-1&&n.documentTypes.splice(e,1)}}}}},Yn=class extends Error{errorCode=`CannotLowerPowerhouseError`;constructor(e=`CannotLowerPowerhouseError`){super(e)}},Xn=[`Disabled`,`Reactor`,`Switchboard`,`Connect`],Zn={setPowerhouseLevelOperation(e,t){let n=Xn.indexOf(e.features.powerhouse),r=Xn.indexOf(t.input.level);if(n>=1&&r<1)throw new Yn(`Cannot lower Powerhouse level below Reactor once enabled`);if(e.features.powerhouse=t.input.level,n===0&&r>=1&&!e.packages.some(e=>e.managed)){let t=e.name?e.name.replace(/-cli$/,`-app`):`app`,n=e.scope&&e.name?`${e.scope}/${t}`:t;e.packages.push({id:`app-${e.name||`managed`}`,packageName:n,documentTypes:[`*/*`],version:null,managed:!0})}r>=2&&!t.input.skipAutoProxy&&(e.deployment.proxyEnabled=!0)}},Qn={enableRoutineOperation(e){e.features.routine.enabled=!0},disableRoutineOperation(e){e.features.routine.enabled=!1}},$n=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},k=class extends Error{errorCode=`InvalidPackageIdentifierError`;constructor(e=`InvalidPackageIdentifierError`){super(e)}},er=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/,tr=/^[a-z][a-z0-9-]*$/,A={setVersionOperation(e,t){if(!er.test(t.input.version))throw new $n(`Invalid version: ${t.input.version}`);e.version=t.input.version},setDescriptionOperation(e,t){e.description=t.input.description},setPackageIdentifierOperation(e,t){let n=t.input.identifier.trim();if(!n)throw new k(`Package identifier must not be empty`);let r=null,i=n;if(n.includes(`/`)){let e=n.split(`/`);if(e.length!==2||!e[0]||!e[1])throw new k(`Invalid package identifier: ${n}`);r=e[0].replace(/^@/,``),i=e[1]}if(r!==null&&!tr.test(r))throw new k(`Invalid scope: ${r}`);if(i.endsWith(`-cli`)||(i+=`-cli`),!tr.test(i))throw new k(`Invalid package name: ${i}`);e.scope=r?`@${r}`:null,e.name=i;let a=e.packages.find(e=>e.managed);if(a){let e=i.replace(/-cli$/,`-app`);a.packageName=r?`@${r}/${e}`:e,a.id=`app-${i}`}}},nr={importSpecOperation(e,t){e.name=t.input.name,e.scope=t.input.scope||null,e.version=t.input.version,e.description=t.input.description,e.features.powerhouse=t.input.powerhouse,e.features.mastra.enabled=t.input.mastraEnabled,e.features.routine.enabled=t.input.routineEnabled;let n=t.input.name.replace(/-cli$/,`-app`),r=t.input.scope?`${t.input.scope}/${n}`:n,i=t.input.powerhouse!==`Disabled`;if(e.packages=t.input.packages.map(e=>({id:e.id,packageName:e.packageName,documentTypes:[...e.documentTypes],version:e.version||null,managed:i&&e.packageName===r})),e.externalSkills=t.input.externalSkills.map(e=>({id:e.id,name:e.name,githubUrl:e.githubUrl})),e.features.mastra.models=t.input.models.map(e=>({id:e.id})),e.features.mastra.profiles=t.input.profiles.map(e=>({id:e.id,title:e.title,content:e.content})),t.input.mainAgent&&e.features.mastra.enabled){let n=t.input.mainAgent;e.features.mastra.mainAgent={id:n.id,name:n.name,description:n.description||null,attachment:n.attachment||null,modelId:n.modelId,profileIds:[...n.profileIds],skills:[...n.skills],toolPatterns:[...n.toolPatterns]}}else e.features.mastra.mainAgent=null;if(e.features.mastra.enabled?e.features.mastra.subAgents=t.input.subAgents.map(e=>({id:e.id,name:e.name,description:e.description,modelId:e.modelId,profileIds:[...e.profileIds],skills:[...e.skills],toolPatterns:[...e.toolPatterns]})):e.features.mastra.subAgents=[],t.input.enableChat&&e.features.mastra.enabled&&e.features.powerhouse!==`Disabled`){e.features.mastra.common.enableChat=!0;let t=`@powerhousedao/clint-common`,n=`powerhouse/chat-session`,r=e.packages.find(e=>e.packageName===t);r?r.documentTypes.includes(n)||r.documentTypes.push(n):e.packages.push({id:`pkg-clint-common`,packageName:t,documentTypes:[n],version:null,managed:!0})}else e.features.mastra.common.enableChat=!1;e.deployment.proxyEnabled=t.input.proxyEnabled??!1,e.deployment.observabilityEnabled=t.input.observabilityEnabled??!1,e.deployment.supportedResources=t.input.supportedResources?[...t.input.supportedResources]:[]}},j=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},M=class extends Error{errorCode=`AgentNotFoundError`;constructor(e=`AgentNotFoundError`){super(e)}},rr=class extends Error{errorCode=`ModelReferenceNotFoundError`;constructor(e=`ModelReferenceNotFoundError`){super(e)}},N=class extends Error{errorCode=`ProfileReferenceNotFoundError`;constructor(e=`ProfileReferenceNotFoundError`){super(e)}},ir=class extends Error{errorCode=`InvalidSkillNameError`;constructor(e=`InvalidSkillNameError`){super(e)}},ar=class extends Error{errorCode=`SkillNotFoundError`;constructor(e=`SkillNotFoundError`){super(e)}},or=class extends Error{errorCode=`InvalidToolPatternError`;constructor(e=`InvalidToolPatternError`){super(e)}},sr=class extends Error{errorCode=`ToolPatternNotFoundError`;constructor(e=`ToolPatternNotFoundError`){super(e)}};function P(e,t,n){return e&&e.id===n?e:t.find(e=>e.id===n)}var F={setAgentModelOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot set agent model when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);if(!e.features.mastra.models.find(e=>e.id===t.input.modelId))throw new rr(`Model not in library: ${t.input.modelId}`);n.modelId=t.input.modelId},addAgentProfileRefOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot add profile ref when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);if(!e.features.mastra.profiles.find(e=>e.id===t.input.profileId))throw new N(`Profile not in library: ${t.input.profileId}`);if(!n.profileIds.includes(t.input.profileId))if(t.input.insertBefore){let e=n.profileIds.indexOf(t.input.insertBefore);if(e===-1)throw new N(`insertBefore profile not in agent's profileIds: ${t.input.insertBefore}`);n.profileIds.splice(e,0,t.input.profileId)}else n.profileIds.push(t.input.profileId)},removeAgentProfileRefOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot remove profile ref when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);let r=n.profileIds.indexOf(t.input.profileId);if(r===-1)throw new N(`Profile not in agent's profileIds: ${t.input.profileId}`);n.profileIds.splice(r,1)},reorderAgentProfileRefsOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot reorder profile refs when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);for(let e of t.input.ids)if(!n.profileIds.includes(e))throw new N(`Profile not in agent's profileIds: ${e}`);let r=n.profileIds.filter(e=>!t.input.ids.includes(e));if(t.input.insertBefore){let e=r.indexOf(t.input.insertBefore);if(e===-1)throw new N(`insertBefore profile not in agent's profileIds: ${t.input.insertBefore}`);r.splice(e,0,...t.input.ids)}else r.push(...t.input.ids);n.profileIds=r},addAgentSkillOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot add skill when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);let r=t.input.name.trim();if(!/^[a-z][a-z0-9-]*$/.test(r))throw new ir(`Invalid skill name: ${t.input.name}. Must be lowercase kebab-case.`);n.skills.includes(r)||n.skills.push(r)},removeAgentSkillOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot remove skill when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);let r=n.skills.indexOf(t.input.name);if(r===-1)throw new ar(`Skill not on agent: ${t.input.name}`);n.skills.splice(r,1)},addAgentToolPatternOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot add tool pattern when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);let r=t.input.pattern.trim();if(!r)throw new or(`Tool pattern must not be empty after trimming.`);n.toolPatterns.includes(r)||n.toolPatterns.push(r)},removeAgentToolPatternOperation(e,t){if(!e.features.mastra.enabled)throw new j(`Cannot remove tool pattern when Mastra is disabled.`);let n=P(e.features.mastra.mainAgent,e.features.mastra.subAgents,t.input.agentId);if(!n)throw new M(`Agent not found: ${t.input.agentId}`);let r=n.toolPatterns.indexOf(t.input.pattern);if(r===-1)throw new sr(`Tool pattern not on agent: ${t.input.pattern}`);n.toolPatterns.splice(r,1)}},I=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},cr=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},lr=class extends Error{errorCode=`InvalidAgentImageError`;constructor(e=`InvalidAgentImageError`){super(e)}},L={setMainAgentNameOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new I(`Cannot set main agent name when Mastra is disabled.`);let r=t.input.name.trim();if(!r)throw new cr(`Agent name must not be empty.`);n.name=r},setMainAgentDescriptionOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new I(`Cannot set main agent description when Mastra is disabled.`);n.description=t.input.description},clearMainAgentDescriptionOperation(e){let t=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!t)throw new I(`Cannot clear main agent description when Mastra is disabled.`);t.description=null},setMainAgentImageOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new I(`Cannot set main agent image when Mastra is disabled.`);if(!t.input.attachment.startsWith(`attachment://`))throw new lr(`Agent image must be an attachment ref (attachment://...)`);n.attachment=t.input.attachment},clearMainAgentImageOperation(e){let t=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!t)throw new I(`Cannot clear main agent image when Mastra is disabled.`);t.attachment=null}},ur=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},dr=class extends Error{errorCode=`InvalidModelIdError`;constructor(e=`InvalidModelIdError`){super(e)}},fr=class extends Error{errorCode=`DuplicateModelError`;constructor(e=`DuplicateModelError`){super(e)}},pr=class extends Error{errorCode=`ModelNotFoundError`;constructor(e=`ModelNotFoundError`){super(e)}},mr=class extends Error{errorCode=`ModelInUseError`;constructor(e=`ModelInUseError`){super(e)}},hr={addModelOperation(e,t){if(!e.features.mastra.enabled)throw new ur(`Cannot add model when Mastra is disabled.`);if(!/^[a-z0-9-]+\/[a-z0-9._-]+$/.test(t.input.id))throw new dr(`Invalid model ID: ${t.input.id}. Must be provider/model-name format.`);if(e.features.mastra.models.find(e=>e.id===t.input.id))throw new fr(`Model already exists: ${t.input.id}`);e.features.mastra.models.push({id:t.input.id})},removeModelOperation(e,t){if(!e.features.mastra.enabled)throw new ur(`Cannot remove model when Mastra is disabled.`);let n=e.features.mastra.models.findIndex(e=>e.id===t.input.id);if(n===-1)throw new pr(`Model not found: ${t.input.id}`);let r=e.features.mastra.mainAgent,i=!!r&&r.modelId===t.input.id,a=e.features.mastra.subAgents.some(e=>e.modelId===t.input.id);if(i||a)throw new mr(`Model ${t.input.id} is in use by an agent.`);e.features.mastra.models.splice(n,1)}},R=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},gr=class extends Error{errorCode=`InvalidProfileIdError`;constructor(e=`InvalidProfileIdError`){super(e)}},_r=class extends Error{errorCode=`DuplicateProfileError`;constructor(e=`DuplicateProfileError`){super(e)}},z=class extends Error{errorCode=`ProfileNotFoundError`;constructor(e=`ProfileNotFoundError`){super(e)}},vr=class extends Error{errorCode=`ProfileInUseError`;constructor(e=`ProfileInUseError`){super(e)}},B={addProfileOperation(e,t){if(!e.features.mastra.enabled)throw new R(`Cannot add profile when Mastra is disabled.`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.id))throw new gr(`Invalid profile ID: ${t.input.id}. Must be lowercase kebab-case.`);if(e.features.mastra.profiles.find(e=>e.id===t.input.id))throw new _r(`Profile already exists: ${t.input.id}`);let n={id:t.input.id,title:t.input.title,content:t.input.content};if(t.input.insertBefore){let r=e.features.mastra.profiles.findIndex(e=>e.id===t.input.insertBefore);if(r===-1)throw new z(`insertBefore profile not found: ${t.input.insertBefore}`);e.features.mastra.profiles.splice(r,0,n)}else e.features.mastra.profiles.push(n)},updateProfileOperation(e,t){if(!e.features.mastra.enabled)throw new R(`Cannot update profile when Mastra is disabled.`);let n=e.features.mastra.profiles.find(e=>e.id===t.input.id);if(!n)throw new z(`Profile not found: ${t.input.id}`);t.input.title&&(n.title=t.input.title),t.input.content&&(n.content=t.input.content)},removeProfileOperation(e,t){if(!e.features.mastra.enabled)throw new R(`Cannot remove profile when Mastra is disabled.`);let n=e.features.mastra.profiles.findIndex(e=>e.id===t.input.id);if(n===-1)throw new z(`Profile not found: ${t.input.id}`);let r=e.features.mastra.mainAgent,i=!!r&&r.profileIds.includes(t.input.id),a=e.features.mastra.subAgents.some(e=>e.profileIds.includes(t.input.id));if(i||a)throw new vr(`Profile ${t.input.id} is in use by an agent.`);e.features.mastra.profiles.splice(n,1)},reorderProfilesOperation(e,t){if(!e.features.mastra.enabled)throw new R(`Cannot reorder profiles when Mastra is disabled.`);let n=[];for(let r of t.input.ids){let t=e.features.mastra.profiles.find(e=>e.id===r);if(!t)throw new z(`Profile not found: ${r}`);n.push(t)}if(e.features.mastra.profiles=e.features.mastra.profiles.filter(e=>!t.input.ids.includes(e.id)),t.input.insertBefore){let r=e.features.mastra.profiles.findIndex(e=>e.id===t.input.insertBefore);if(r===-1)throw new z(`insertBefore profile not found: ${t.input.insertBefore}`);e.features.mastra.profiles.splice(r,0,...n)}else e.features.mastra.profiles.push(...n)}},V=class extends Error{errorCode=`MastraNotEnabledError`;constructor(e=`MastraNotEnabledError`){super(e)}},yr=class extends Error{errorCode=`InvalidAgentIdError`;constructor(e=`InvalidAgentIdError`){super(e)}},br=class extends Error{errorCode=`InvalidAgentNameError`;constructor(e=`InvalidAgentNameError`){super(e)}},xr=class extends Error{errorCode=`DuplicateAgentIdError`;constructor(e=`DuplicateAgentIdError`){super(e)}},Sr=class extends Error{errorCode=`ModelReferenceNotFoundError`;constructor(e=`ModelReferenceNotFoundError`){super(e)}},H=class extends Error{errorCode=`AgentNotFoundError`;constructor(e=`AgentNotFoundError`){super(e)}},U={addSubAgentOperation(e,t){let n=e.features.mastra.mainAgent;if(!e.features.mastra.enabled||!n)throw new V(`Cannot add sub-agent when Mastra is disabled.`);if(!/^[a-z][a-z0-9-]*$/.test(t.input.id))throw new yr(`Invalid sub-agent ID: ${t.input.id}. Must be lowercase kebab-case.`);let r=t.input.name.trim();if(!r)throw new br(`Sub-agent name must not be empty.`);if(n.id===t.input.id)throw new xr(`Agent ID already taken by main agent: ${t.input.id}`);if(e.features.mastra.subAgents.find(e=>e.id===t.input.id))throw new xr(`Sub-agent already exists: ${t.input.id}`);if(!e.features.mastra.models.find(e=>e.id===t.input.modelId))throw new Sr(`Model not in library: ${t.input.modelId}`);e.features.mastra.subAgents.push({id:t.input.id,name:r,description:t.input.description,modelId:t.input.modelId,profileIds:[],skills:[],toolPatterns:[]})},removeSubAgentOperation(e,t){if(!e.features.mastra.enabled)throw new V(`Cannot remove sub-agent when Mastra is disabled.`);let n=e.features.mastra.subAgents.findIndex(e=>e.id===t.input.id);if(n===-1)throw new H(`Sub-agent not found: ${t.input.id}`);e.features.mastra.subAgents.splice(n,1)},setSubAgentNameOperation(e,t){if(!e.features.mastra.enabled)throw new V(`Cannot set sub-agent name when Mastra is disabled.`);let n=e.features.mastra.subAgents.find(e=>e.id===t.input.id);if(!n)throw new H(`Sub-agent not found: ${t.input.id}`);let r=t.input.name.trim();if(!r)throw new br(`Sub-agent name must not be empty.`);n.name=r},setSubAgentDescriptionOperation(e,t){if(!e.features.mastra.enabled)throw new V(`Cannot set sub-agent description when Mastra is disabled.`);let n=e.features.mastra.subAgents.find(e=>e.id===t.input.id);if(!n)throw new H(`Sub-agent not found: ${t.input.id}`);n.description=t.input.description}},Cr=class extends Error{errorCode=`DuplicatePackageError`;constructor(e=`DuplicatePackageError`){super(e)}},W=class extends Error{errorCode=`PackageNotFoundError`;constructor(e=`PackageNotFoundError`){super(e)}},wr=class extends Error{errorCode=`CannotRemoveManagedPackageError`;constructor(e=`CannotRemoveManagedPackageError`){super(e)}},Tr=class extends Error{errorCode=`InvalidDocumentTypeError`;constructor(e=`InvalidDocumentTypeError`){super(e)}},Er=class extends Error{errorCode=`DuplicateDocumentTypeError`;constructor(e=`DuplicateDocumentTypeError`){super(e)}},Dr=class extends Error{errorCode=`DocumentTypeNotFoundError`;constructor(e=`DocumentTypeNotFoundError`){super(e)}},Or=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},kr=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/,G={addPowerhousePackageOperation(e,t){if(e.packages.find(e=>e.id===t.input.id||e.packageName===t.input.packageName))throw new Cr(`Package already exists: ${t.input.packageName}`);e.packages.push({id:t.input.id,packageName:t.input.packageName,documentTypes:[],version:null,managed:!1})},removePowerhousePackageOperation(e,t){let n=e.packages.findIndex(e=>e.id===t.input.id);if(n===-1)throw new W(`Package not found: ${t.input.id}`);if(e.packages[n].managed)throw new wr(`Cannot remove a managed package`);e.packages.splice(n,1)},addPackageDocumentTypeOperation(e,t){if(t.input.documentType!==`*/*`&&!/^[a-z0-9-]+\/[a-z0-9-]+$/.test(t.input.documentType))throw new Tr(`Invalid document type format: ${t.input.documentType}. Expected org/name.`);let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new W(`Package not found: ${t.input.packageId}`);if(t.input.documentType===`*/*`){n.documentTypes.length=0,n.documentTypes.push(`*/*`);return}if(!n.documentTypes.includes(`*/*`)){if(n.documentTypes.includes(t.input.documentType))throw new Er(`Document type already registered: ${t.input.documentType}`);n.documentTypes.push(t.input.documentType)}},removePackageDocumentTypeOperation(e,t){let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new W(`Package not found: ${t.input.packageId}`);let r=n.documentTypes.indexOf(t.input.documentType);if(r===-1)throw new Dr(`Document type not found: ${t.input.documentType}`);n.documentTypes.splice(r,1)},setPackageVersionOperation(e,t){let n=e.packages.find(e=>e.id===t.input.packageId);if(!n)throw new W(`Package not found: ${t.input.packageId}`);if(t.input.version!=null&&!kr.test(t.input.version))throw new Or(`Invalid version: ${t.input.version}`);n.version=t.input.version||null}},Ar=class extends Error{errorCode=`InvalidVersionError`;constructor(e=`InvalidVersionError`){super(e)}},jr=class extends Error{errorCode=`PublishRecordNotFoundError`;constructor(e=`PublishRecordNotFoundError`){super(e)}},K={bumpVersionOperation(e,t){if(!/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(t.input.version))throw new Ar(`Invalid version: ${t.input.version}`);e.version=t.input.version},publishDevOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Dev`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},publishStagingOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Staging`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},publishProductionOperation(e,t){e.publishHistory.push({id:t.input.id,tag:`Production`,version:e.version,timestamp:t.input.timestamp,status:`Pending`})},setPublishStatusOperation(e,t){let n=e.publishHistory.find(e=>e.id===t.input.id);if(!n)throw new jr(`Publish record not found: ${t.input.id}`);n.status=t.input.status}},q=a((e,t,n)=>{if(i(t))return e;switch(t.type){case`SET_DESCRIPTION`:_e().parse(t.input),A.setDescriptionOperation(e[t.scope],t,n);break;case`SET_VERSION`:ke().parse(t.input),A.setVersionOperation(e[t.scope],t,n);break;case`SET_PACKAGE_IDENTIFIER`:Ce().parse(t.input),A.setPackageIdentifierOperation(e[t.scope],t,n);break;case`SET_POWERHOUSE_LEVEL`:ze().parse(t.input),Zn.setPowerhouseLevelOperation(e[t.scope],t,n);break;case`ENABLE_ROUTINE`:c().parse(t.input),Qn.enableRoutineOperation(e[t.scope],t,n);break;case`DISABLE_ROUTINE`:Mn().parse(t.input),Qn.disableRoutineOperation(e[t.scope],t,n);break;case`ADD_POWERHOUSE_PACKAGE`:y().parse(t.input),G.addPowerhousePackageOperation(e[t.scope],t,n);break;case`REMOVE_POWERHOUSE_PACKAGE`:u().parse(t.input),G.removePowerhousePackageOperation(e[t.scope],t,n);break;case`ADD_PACKAGE_DOCUMENT_TYPE`:o().parse(t.input),G.addPackageDocumentTypeOperation(e[t.scope],t,n);break;case`REMOVE_PACKAGE_DOCUMENT_TYPE`:On().parse(t.input),G.removePackageDocumentTypeOperation(e[t.scope],t,n);break;case`SET_PACKAGE_VERSION`:Me().parse(t.input),G.setPackageVersionOperation(e[t.scope],t,n);break;case`ADD_EXTERNAL_SKILL`:Ye().parse(t.input),D.addExternalSkillOperation(e[t.scope],t,n);break;case`REMOVE_EXTERNAL_SKILL`:l().parse(t.input),D.removeExternalSkillOperation(e[t.scope],t,n);break;case`SET_EXTERNAL_SKILL_NAME`:le().parse(t.input),D.setExternalSkillNameOperation(e[t.scope],t,n);break;case`SET_EXTERNAL_SKILL_GITHUB_URL`:b().parse(t.input),D.setExternalSkillGithubUrlOperation(e[t.scope],t,n);break;case`BUMP_VERSION`:we().parse(t.input),K.bumpVersionOperation(e[t.scope],t,n);break;case`PUBLISH_DEV`:f().parse(t.input),K.publishDevOperation(e[t.scope],t,n);break;case`PUBLISH_STAGING`:m().parse(t.input),K.publishStagingOperation(e[t.scope],t,n);break;case`PUBLISH_PRODUCTION`:C().parse(t.input),K.publishProductionOperation(e[t.scope],t,n);break;case`SET_PUBLISH_STATUS`:jn().parse(t.input),K.setPublishStatusOperation(e[t.scope],t,n);break;case`IMPORT_SPEC`:Fe().parse(t.input),nr.importSpecOperation(e[t.scope],t,n);break;case`ADD_SUPPORTED_RESOURCE`:Qe().parse(t.input),T.addSupportedResourceOperation(e[t.scope],t,n);break;case`REMOVE_SUPPORTED_RESOURCE`:me().parse(t.input),T.removeSupportedResourceOperation(e[t.scope],t,n);break;case`SET_PROXY_ENABLED`:nt().parse(t.input),T.setProxyEnabledOperation(e[t.scope],t,n);break;case`SET_OBSERVABILITY_ENABLED`:Ze().parse(t.input),T.setObservabilityEnabledOperation(e[t.scope],t,n);break;case`ENABLE_MASTRA`:fe().parse(t.input),O.enableMastraOperation(e[t.scope],t,n);break;case`DISABLE_MASTRA`:rt().parse(t.input),O.disableMastraOperation(e[t.scope],t,n);break;case`SET_ENABLE_CHAT`:Je().parse(t.input),O.setEnableChatOperation(e[t.scope],t,n);break;case`ADD_MODEL`:x().parse(t.input),hr.addModelOperation(e[t.scope],t,n);break;case`REMOVE_MODEL`:yn().parse(t.input),hr.removeModelOperation(e[t.scope],t,n);break;case`ADD_PROFILE`:Ue().parse(t.input),B.addProfileOperation(e[t.scope],t,n);break;case`UPDATE_PROFILE`:dt().parse(t.input),B.updateProfileOperation(e[t.scope],t,n);break;case`REMOVE_PROFILE`:Tn().parse(t.input),B.removeProfileOperation(e[t.scope],t,n);break;case`REORDER_PROFILES`:ct().parse(t.input),B.reorderProfilesOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_NAME`:Ge().parse(t.input),L.setMainAgentNameOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_DESCRIPTION`:v().parse(t.input),L.setMainAgentDescriptionOperation(e[t.scope],t,n);break;case`CLEAR_MAIN_AGENT_DESCRIPTION`:Ne().parse(t.input),L.clearMainAgentDescriptionOperation(e[t.scope],t,n);break;case`SET_MAIN_AGENT_IMAGE`:He().parse(t.input),L.setMainAgentImageOperation(e[t.scope],t,n);break;case`CLEAR_MAIN_AGENT_IMAGE`:Be().parse(t.input),L.clearMainAgentImageOperation(e[t.scope],t,n);break;case`ADD_SUB_AGENT`:Ke().parse(t.input),U.addSubAgentOperation(e[t.scope],t,n);break;case`REMOVE_SUB_AGENT`:at().parse(t.input),U.removeSubAgentOperation(e[t.scope],t,n);break;case`SET_SUB_AGENT_NAME`:s().parse(t.input),U.setSubAgentNameOperation(e[t.scope],t,n);break;case`SET_SUB_AGENT_DESCRIPTION`:de().parse(t.input),U.setSubAgentDescriptionOperation(e[t.scope],t,n);break;case`SET_AGENT_MODEL`:be().parse(t.input),F.setAgentModelOperation(e[t.scope],t,n);break;case`ADD_AGENT_PROFILE_REF`:lt().parse(t.input),F.addAgentProfileRefOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_PROFILE_REF`:w().parse(t.input),F.removeAgentProfileRefOperation(e[t.scope],t,n);break;case`REORDER_AGENT_PROFILE_REFS`:Sn().parse(t.input),F.reorderAgentProfileRefsOperation(e[t.scope],t,n);break;case`ADD_AGENT_SKILL`:xe().parse(t.input),F.addAgentSkillOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_SKILL`:_().parse(t.input),F.removeAgentSkillOperation(e[t.scope],t,n);break;case`ADD_AGENT_TOOL_PATTERN`:ve().parse(t.input),F.addAgentToolPatternOperation(e[t.scope],t,n);break;case`REMOVE_AGENT_TOOL_PATTERN`:g().parse(t.input),F.removeAgentToolPatternOperation(e[t.scope],t,n);break;default:return e}}),J=[1],Mr=J[0],Y={documentType:`powerhouse/ph-clint-project`,latestVersion:Mr,supportedVersions:J,upgrades:{}},Nr={name:null,scope:null,version:`0.1.0`,description:``,features:{powerhouse:`Disabled`,mastra:{enabled:!1,mainAgent:null,subAgents:[],models:[],profiles:[],common:{enableChat:!1}},routine:{enabled:!1}},packages:[],externalSkills:[],publishHistory:[],deployment:{proxyEnabled:!1,observabilityEnabled:!1,supportedResources:[`vetra-agent-s`,`vetra-agent-m`,`vetra-agent-l`,`vetra-agent-xl`,`vetra-agent-xxl`]}},Pr={},X={fileExtension:`pcp`,createState(e){return{...r(),global:{...Nr,...e?.global},local:{...Pr,...e?.local}}},createDocument(e){return ee(X.createState,e,h)},saveToFileHandle(e,t){return te(e,t)},loadFromInput(e){return ne(e,{reducers:{1:q},upgradeManifest:Y})},isStateOfType(e){return p(e)},assertIsStateOfType(e){return S(e)},isDocumentOfType(e){return hn(e)},assertIsDocumentOfType(e){return d(e)}},Fr=e({}),Ir={...X,...Fr},Z={version:1,reducer:q,actions:en,utils:Ir,documentModel:ie(r(),Bn)},Lr=ae.forDocumentModel(Z);function Q(){return{name:null,scope:null,version:`0.1.0`,description:``,features:{powerhouse:`Disabled`,mastra:{enabled:!1,mainAgent:null,subAgents:[],models:[],profiles:[],common:{enableChat:!1}},routine:{enabled:!1}},packages:[],externalSkills:[],publishHistory:[],deployment:{proxyEnabled:!1,observabilityEnabled:!1,supportedResources:[`vetra-agent-s`,`vetra-agent-m`,`vetra-agent-l`,`vetra-agent-xl`,`vetra-agent-xxl`]}}}function $(){return{}}function Rr(){return{...r(),global:Q(),local:$()}}function zr(e){return{...Q(),...e||{}}}function Br(e){return{...$(),...e||{}}}function Vr(e,t,n){return{...re(e?.auth,e?.document),global:zr(t),local:Br(n)}}function Hr(e){return X.createDocument(e?Vr(re(e.auth,e.document),e.global,e.local):void 0)}var Ur=[Z],Wr=[Y],Gr=[{Component:Fn(()=>n(()=>import(`./editor-Bds50MuL.js`),__vite__mapDeps([26,3,2,1,4,5,6,7,8,9,10,11,12,27]))),documentTypes:[`powerhouse/ph-clint-project`],config:{id:`ph-clint-project-editor`,name:`PhClintProjectEditor`}}],Kr=async e=>{let{processorFactoryBuilders:t}=e.processorApp===`connect`?await n(()=>import(`./connect-DGfzdELb.js`),[]):await n(()=>import(`./switchboard-CPQzDmSh.js`),[]),r=await Promise.all(t.map(async t=>await t(e)));return async t=>{let n=[];for(let i of r){let r=await i(t,e.processorApp);n.push(...r)}return n}},qr=e({AddAgentProfileRefInputSchema:()=>lt,AddAgentSkillInputSchema:()=>xe,AddAgentToolPatternInputSchema:()=>ve,AddExternalSkillInputSchema:()=>Ye,AddModelInputSchema:()=>x,AddPackageDocumentTypeInputSchema:()=>o,AddPowerhousePackageInputSchema:()=>y,AddProfileInputSchema:()=>Ue,AddSubAgentInputSchema:()=>Ke,AddSupportedResourceInputSchema:()=>Qe,BumpVersionInputSchema:()=>we,ClearMainAgentDescriptionInputSchema:()=>Ne,ClearMainAgentImageInputSchema:()=>Be,DisableMastraInputSchema:()=>rt,DisableRoutineInputSchema:()=>Mn,EnableMastraInputSchema:()=>fe,EnableRoutineInputSchema:()=>c,ExternalSkillSchema:()=>Ae,ImportMainAgentInputSchema:()=>ft,ImportModelInputSchema:()=>gt,ImportPackageInputSchema:()=>De,ImportProfileInputSchema:()=>Le,ImportSkillInputSchema:()=>an,ImportSpecInputSchema:()=>Fe,ImportSubAgentInputSchema:()=>bt,PhClintAgentModelSchema:()=>vt,PhClintAgentProfileSchema:()=>St,PhClintDeploymentSchema:()=>et,PhClintFeaturesSchema:()=>se,PhClintMainAgentSchema:()=>Mt,PhClintMastraCommonSchema:()=>pn,PhClintMastraFeatureSchema:()=>Yt,PhClintProject:()=>Z,PhClintProjectController:()=>Lr,PhClintProjectDocumentHeaderSchema:()=>Tt,PhClintProjectDocumentSchema:()=>Zt,PhClintProjectPHStateSchema:()=>ln,PhClintProjectStateSchema:()=>sn,PhClintRoutineFeatureSchema:()=>Vt,PhClintSubAgentSchema:()=>Et,PowerhouseLevelSchema:()=>Qt,PowerhousePackageSchema:()=>un,PublishDevInputSchema:()=>f,PublishProductionInputSchema:()=>C,PublishRecordSchema:()=>gn,PublishStagingInputSchema:()=>m,PublishStatusSchema:()=>Pt,PublishTagSchema:()=>tn,RemoveAgentProfileRefInputSchema:()=>w,RemoveAgentSkillInputSchema:()=>_,RemoveAgentToolPatternInputSchema:()=>g,RemoveExternalSkillInputSchema:()=>l,RemoveModelInputSchema:()=>yn,RemovePackageDocumentTypeInputSchema:()=>On,RemovePowerhousePackageInputSchema:()=>u,RemoveProfileInputSchema:()=>Tn,RemoveSubAgentInputSchema:()=>at,RemoveSupportedResourceInputSchema:()=>me,ReorderAgentProfileRefsInputSchema:()=>Sn,ReorderProfilesInputSchema:()=>ct,SetAgentModelInputSchema:()=>be,SetDescriptionInputSchema:()=>_e,SetEnableChatInputSchema:()=>Je,SetExternalSkillGithubUrlInputSchema:()=>b,SetExternalSkillNameInputSchema:()=>le,SetMainAgentDescriptionInputSchema:()=>v,SetMainAgentImageInputSchema:()=>He,SetMainAgentNameInputSchema:()=>Ge,SetObservabilityEnabledInputSchema:()=>Ze,SetPackageIdentifierInputSchema:()=>Ce,SetPackageVersionInputSchema:()=>Me,SetPowerhouseLevelInputSchema:()=>ze,SetProxyEnabledInputSchema:()=>nt,SetPublishStatusInputSchema:()=>jn,SetSubAgentDescriptionInputSchema:()=>de,SetSubAgentNameInputSchema:()=>s,SetVersionInputSchema:()=>ke,UpdateProfileInputSchema:()=>dt,actions:()=>en,addAgentProfileRef:()=>Te,addAgentSkill:()=>Ie,addAgentToolPattern:()=>rn,addExternalSkill:()=>zt,addModel:()=>je,addPackageDocumentType:()=>Ot,addPowerhousePackage:()=>wn,addProfile:()=>Ut,addSubAgent:()=>ye,addSupportedResource:()=>kt,assertIsPhClintProjectDocument:()=>d,assertIsPhClintProjectState:()=>S,bumpVersion:()=>Kt,clearMainAgentDescription:()=>An,clearMainAgentImage:()=>ue,createPhClintProjectDocument:()=>Hr,createState:()=>Vr,defaultGlobalState:()=>Q,defaultLocalState:()=>$,defaultPHState:()=>Rr,definedNonNullAnySchema:()=>ht,disableMastra:()=>Ft,disableRoutine:()=>dn,documentModel:()=>Bn,documentModels:()=>Ur,editors:()=>Gr,enableMastra:()=>nn,enableRoutine:()=>At,importSpec:()=>mn,initialGlobalState:()=>Nr,initialLocalState:()=>Pr,isDefinedNonNullAny:()=>Ee,isPhClintProjectDocument:()=>hn,isPhClintProjectState:()=>p,latestVersion:()=>Mr,manifest:()=>Jr,phClintProjectDeploymentActions:()=>En,phClintProjectDocumentType:()=>h,phClintProjectExternalSkillsActions:()=>Lt,phClintProjectFeaturesMastraActions:()=>jt,phClintProjectFeaturesPowerhouseActions:()=>Gt,phClintProjectFeaturesRoutineActions:()=>$t,phClintProjectIdentityActions:()=>Xt,phClintProjectLifecycleActions:()=>Nt,phClintProjectMastraAgentBindingsActions:()=>Pe,phClintProjectMastraMainAgentActions:()=>pt,phClintProjectMastraModelsActions:()=>Re,phClintProjectMastraProfilesActions:()=>Ve,phClintProjectMastraSubAgentsActions:()=>ge,phClintProjectPowerhousePackagesActions:()=>it,phClintProjectPublishingActions:()=>Rt,phClintProjectUpgradeManifest:()=>Y,processorFactory:()=>Kr,publishDev:()=>It,publishProduction:()=>Ct,publishStaging:()=>vn,reducer:()=>q,removeAgentProfileRef:()=>yt,removeAgentSkill:()=>_t,removeAgentToolPattern:()=>xt,removeExternalSkill:()=>wt,removeModel:()=>tt,removePackageDocumentType:()=>pe,removePowerhousePackage:()=>xn,removeProfile:()=>We,removeSubAgent:()=>qe,removeSupportedResource:()=>ot,reorderAgentProfileRefs:()=>$e,reorderProfiles:()=>Xe,setAgentModel:()=>oe,setDescription:()=>cn,setEnableChat:()=>qt,setExternalSkillGithubUrl:()=>bn,setExternalSkillName:()=>kn,setMainAgentDescription:()=>Oe,setMainAgentImage:()=>ut,setMainAgentName:()=>mt,setObservabilityEnabled:()=>he,setPackageIdentifier:()=>Ht,setPackageVersion:()=>st,setPowerhouseLevel:()=>_n,setProxyEnabled:()=>Cn,setPublishStatus:()=>Dn,setSubAgentDescription:()=>Wt,setSubAgentName:()=>ce,setVersion:()=>Dt,supportedVersions:()=>J,updateProfile:()=>Se,upgradeManifests:()=>Wr,usePhClintProjectDocumentById:()=>fn,usePhClintProjectDocumentsInSelectedDrive:()=>Jt,usePhClintProjectDocumentsInSelectedFolder:()=>on,useSelectedPhClintProjectDocument:()=>Bt,utils:()=>Ir}),Jr=zn,{updateLocalPackage:Yr}=Rn(qr);(void 0)?.accept([`./index.js`],([e])=>{e&&Yr(e)});
1104
+ //# sourceMappingURL=index-D8arPQE9.js.map