@pikku/cli 0.12.123 → 0.12.125

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 (262) hide show
  1. package/CHANGELOG.md +158 -0
  2. package/console-app/assets/{abnfDiagram-N423BO3Z-BR5_-R36.js → abnfDiagram-N423BO3Z-B2suyn6i.js} +1 -1
  3. package/console-app/assets/architecture-TIHT7OUA-DmG0bXDT.js +1 -0
  4. package/console-app/assets/{architectureDiagram-T3A2C74G-PWMb8XVe.js → architectureDiagram-T3A2C74G-BQ5Dfvpo.js} +1 -1
  5. package/console-app/assets/{blockDiagram-VBNYF7ZC-BRFlIAtN.js → blockDiagram-VBNYF7ZC-D4pVRDiF.js} +1 -1
  6. package/console-app/assets/{c4Diagram-5PPSVZJV-DnxGac5c.js → c4Diagram-5PPSVZJV-Da04jGpq.js} +1 -1
  7. package/console-app/assets/channel-BgCT5gon.js +1 -0
  8. package/console-app/assets/{chunk-2GRJ4B5K-B09NFK9f.js → chunk-2GRJ4B5K-CwODIPP4.js} +1 -1
  9. package/console-app/assets/{chunk-4I5QYGJK-Di1FL5uh.js → chunk-4I5QYGJK-Bep4akjR.js} +1 -1
  10. package/console-app/assets/{chunk-5RXB4S5H-BkFSNR63.js → chunk-5RXB4S5H-CGyCRU9L.js} +1 -1
  11. package/console-app/assets/{chunk-6Q2QTUOP-L6D94YxI.js → chunk-6Q2QTUOP-D0IK0SMT.js} +1 -1
  12. package/console-app/assets/{chunk-7Z6QIM7H-DfzYcuKW.js → chunk-7Z6QIM7H-D12vS1jX.js} +1 -1
  13. package/console-app/assets/{chunk-GF5L2VYU-CA5m-Xs7.js → chunk-GF5L2VYU-kOLwTzIA.js} +1 -1
  14. package/console-app/assets/{chunk-I66GZJ75-Hl61byF7.js → chunk-I66GZJ75-Cb2nDoa3.js} +1 -1
  15. package/console-app/assets/{chunk-JQJVKLGR-CgLeeXhv.js → chunk-JQJVKLGR-B3a_ctfQ.js} +1 -1
  16. package/console-app/assets/{chunk-KBJHAD2P-9mRl0jD6.js → chunk-KBJHAD2P-DeP2Lqwp.js} +1 -1
  17. package/console-app/assets/{chunk-NSK5VX7P-D7NmS_w1.js → chunk-NSK5VX7P-BO8vlGrO.js} +1 -1
  18. package/console-app/assets/{chunk-QR6OTTB3-KdKTpLyy.js → chunk-QR6OTTB3-sX5V0Lok.js} +1 -1
  19. package/console-app/assets/{chunk-RYQCIY6F-DeEpMb3d.js → chunk-RYQCIY6F-DoCObEhk.js} +1 -1
  20. package/console-app/assets/{chunk-UBXNYLIW-DKYUw71c.js → chunk-UBXNYLIW-BndMXU5r.js} +1 -1
  21. package/console-app/assets/{chunk-W5SLKNZC-B2fxVl1I.js → chunk-W5SLKNZC--VrZN8EC.js} +1 -1
  22. package/console-app/assets/{chunk-WRU74C26-CHP8CDJx.js → chunk-WRU74C26-DdS0mzXO.js} +1 -1
  23. package/console-app/assets/chunk-XXDRQBXY-EP2C9tTO.js +1 -0
  24. package/console-app/assets/classDiagram-JCYQIIEL-D9wGqB4J.js +1 -0
  25. package/console-app/assets/classDiagram-v2-OCEON4UE-D9wGqB4J.js +1 -0
  26. package/console-app/assets/{cose-bilkent-JH36ORCC-Bv8nl8zW.js → cose-bilkent-JH36ORCC-C5EnHkFn.js} +1 -1
  27. package/console-app/assets/{cynefin-VYW2F7L2-CSj7rmbq.js → cynefin-VYW2F7L2-9irdkTt4.js} +1 -1
  28. package/console-app/assets/{cynefinDiagram-MW4NZA55-C3xwJ3tQ.js → cynefinDiagram-MW4NZA55-DY19660c.js} +1 -1
  29. package/console-app/assets/{dagre-VZM6K2ZE-B_2qJCCS.js → dagre-VZM6K2ZE-BYFZSaSb.js} +1 -1
  30. package/console-app/assets/{dagre-DUPxteSi.js → dagre-nXgDYqvf.js} +1 -1
  31. package/console-app/assets/{diagram-7IWD3JNH-IH1BOccH.js → diagram-7IWD3JNH-oDftiTp1.js} +1 -1
  32. package/console-app/assets/{diagram-B4RE2ZJO-BVvJvAvO.js → diagram-B4RE2ZJO-Cbj-pPbH.js} +1 -1
  33. package/console-app/assets/{diagram-LBJQPF4R-CyDL-OzR.js → diagram-LBJQPF4R-Ch53oSKw.js} +1 -1
  34. package/console-app/assets/{diagram-Q27KOJAE-BwUGm_12.js → diagram-Q27KOJAE-DA7K814v.js} +1 -1
  35. package/console-app/assets/{diagram-UB23O5K3-TPo3mAAN.js → diagram-UB23O5K3-B-_C-ctS.js} +1 -1
  36. package/console-app/assets/{ebnfDiagram-BXEA7PRR-D3zthE3L.js → ebnfDiagram-BXEA7PRR-DsOdsKXy.js} +1 -1
  37. package/console-app/assets/{erDiagram-JOGREHBK-DrJSdPyj.js → erDiagram-JOGREHBK-XB1mP5_A.js} +1 -1
  38. package/console-app/assets/eventmodeling-45OFAUF4-NKFCZ8Fj.js +1 -0
  39. package/console-app/assets/flowDiagram-UKHOOZJN-BpdPkmum.js +1 -0
  40. package/console-app/assets/{ganttDiagram-PKOTCBZU-xWWCXZUc.js → ganttDiagram-PKOTCBZU-knk0XSHi.js} +1 -1
  41. package/console-app/assets/{gitGraph-TEB2WS4Q-DqccwZ0r.js → gitGraph-TEB2WS4Q-COJnK2tM.js} +1 -1
  42. package/console-app/assets/{gitGraphDiagram-DS77QQ5N-BrQMGv-z.js → gitGraphDiagram-DS77QQ5N-sF0v605q.js} +1 -1
  43. package/console-app/assets/{index-Mq-YbqNO.css → index-C8MC-uMB.css} +1 -1
  44. package/console-app/assets/{index-BP1o9ux1.js → index-DMnbsgzs.js} +175 -175
  45. package/console-app/assets/{info-DKCQHKI2-DYYsb_ec.js → info-DKCQHKI2-Cbatr0w6.js} +1 -1
  46. package/console-app/assets/{infoDiagram-6WML65LV-B659BK5Z.js → infoDiagram-6WML65LV-93TFPCu2.js} +1 -1
  47. package/console-app/assets/{ishikawaDiagram-WSZJBQD7-nAST6NVR.js → ishikawaDiagram-WSZJBQD7-BBR8_Qms.js} +1 -1
  48. package/console-app/assets/{journeyDiagram-NVQOT4AX-DvMfDp0L.js → journeyDiagram-NVQOT4AX-zG55yDoc.js} +1 -1
  49. package/console-app/assets/{kanban-definition-27J2QSJJ-XSWRq0KN.js → kanban-definition-27J2QSJJ-DonGcEAY.js} +1 -1
  50. package/console-app/assets/{line-BhOX1huR.js → line-D1WdVm1S.js} +1 -1
  51. package/console-app/assets/{linear-DmCFkJVF.js → linear-D2GQL4Cm.js} +1 -1
  52. package/console-app/assets/{mermaid-parser.core-3dL4TN1f.js → mermaid-parser.core-b4yKyO56.js} +3 -3
  53. package/console-app/assets/{mermaid.core-DaXl8RjK.js → mermaid.core-Cwfec1gr.js} +4 -4
  54. package/console-app/assets/{mindmap-definition-FAOFIHXS-BVSaEdh8.js → mindmap-definition-FAOFIHXS-D0G4yKgw.js} +1 -1
  55. package/console-app/assets/{packet-7NZHBO7P-DmXSSPjQ.js → packet-7NZHBO7P-DDa4HL2T.js} +1 -1
  56. package/console-app/assets/{pegDiagram-VL7TDLO6-Cd94zu6b.js → pegDiagram-VL7TDLO6-fPdN5VZs.js} +1 -1
  57. package/console-app/assets/{pie-RZYD4A2V-BfIstVk8.js → pie-RZYD4A2V-DRHURUqo.js} +1 -1
  58. package/console-app/assets/{pieDiagram-7S7Q4E2Y-Jxlih0Om.js → pieDiagram-7S7Q4E2Y-DMYn8ga_.js} +1 -1
  59. package/console-app/assets/{quadrantDiagram-CIZ2JOQS-DMa-9Zmv.js → quadrantDiagram-CIZ2JOQS-C190OamC.js} +1 -1
  60. package/console-app/assets/{radar-I7S5WNFK-BhvNZ__k.js → radar-I7S5WNFK-Djvqzz9A.js} +1 -1
  61. package/console-app/assets/{railroad-3IZDKUUU-C7yHVxVy.js → railroad-3IZDKUUU-C9YvFeFq.js} +1 -1
  62. package/console-app/assets/railroad-abnf-AHOZXSZD-B3CYVW4p.js +1 -0
  63. package/console-app/assets/railroad-ebnf-EBAXGLYW-DrZ2yF62.js +1 -0
  64. package/console-app/assets/railroad-peg-LSFZ7HO6-CWAmMyxd.js +1 -0
  65. package/console-app/assets/{railroadDiagram-AXF67PYL-DsBXjXIE.js → railroadDiagram-AXF67PYL-IRFg1VrU.js} +1 -1
  66. package/console-app/assets/{requirementDiagram-LRYGKXZP-C5JX79TM.js → requirementDiagram-LRYGKXZP-L-7ubbcT.js} +1 -1
  67. package/console-app/assets/{sankeyDiagram-W5VNT64P-DFGcEBC2.js → sankeyDiagram-W5VNT64P-DBttV6Gt.js} +1 -1
  68. package/console-app/assets/{sequenceDiagram-SI44F4Z6-BUa6ak9R.js → sequenceDiagram-SI44F4Z6-Bg15oKAB.js} +1 -1
  69. package/console-app/assets/{src-BJFofs4v.js → src-DUC7tLWb.js} +1 -1
  70. package/console-app/assets/{stateDiagram-OKZ733FA-DFbCY_t8.js → stateDiagram-OKZ733FA-PWl0XGs5.js} +1 -1
  71. package/console-app/assets/stateDiagram-v2-UEYNNEHI-Celbgz4u.js +1 -0
  72. package/console-app/assets/{swimlanes-SLNWSIFB-Cl9G39FU.js → swimlanes-SLNWSIFB-CyXEtGBV.js} +1 -1
  73. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-zxpNaB4U.js +8 -0
  74. package/console-app/assets/{timeline-definition-Z64GVDOM-ClWBr3pJ.js → timeline-definition-Z64GVDOM-BLA-DhBt.js} +1 -1
  75. package/console-app/assets/{treeView-QDETBFTQ-DIQ61Y8k.js → treeView-QDETBFTQ-Bfnmn2UY.js} +1 -1
  76. package/console-app/assets/{treemap-6X3UGDF4-KbZtNSyG.js → treemap-6X3UGDF4-DTA0wveO.js} +1 -1
  77. package/console-app/assets/{vennDiagram-T6HMQDX7-BY367OUV.js → vennDiagram-T6HMQDX7-CLXYZln0.js} +1 -1
  78. package/console-app/assets/{wardley-OPB4EBWU-BZc1RNrx.js → wardley-OPB4EBWU-zwxqisG0.js} +1 -1
  79. package/console-app/assets/{wardleyDiagram-T6FBY63Y-D45un7IA.js → wardleyDiagram-T6FBY63Y-hKtKvNlv.js} +1 -1
  80. package/console-app/assets/{xychartDiagram-ELKLHX3M-Ci5YwcnQ.js → xychartDiagram-ELKLHX3M-BGf8p4bo.js} +1 -1
  81. package/console-app/index.html +2 -2
  82. package/dist/.pikku/addon/index.d.ts +1 -1
  83. package/dist/.pikku/addon/index.js +1 -1
  84. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  85. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  86. package/dist/.pikku/agent/index.d.ts +1 -1
  87. package/dist/.pikku/agent/index.js +1 -1
  88. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  89. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  90. package/dist/.pikku/auth/index.d.ts +1 -1
  91. package/dist/.pikku/auth/index.js +1 -1
  92. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
  93. package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
  94. package/dist/.pikku/channel/index.d.ts +1 -1
  95. package/dist/.pikku/channel/index.js +1 -1
  96. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  97. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  98. package/dist/.pikku/cli/index.d.ts +1 -1
  99. package/dist/.pikku/cli/index.js +1 -1
  100. package/dist/.pikku/cli/pikku-cli-channel.js +6 -1
  101. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  102. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  103. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  104. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  105. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +7 -0
  106. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  107. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  108. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  109. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +14 -0
  110. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  111. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  112. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  113. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  114. package/dist/.pikku/error/index.d.ts +1 -1
  115. package/dist/.pikku/error/index.js +1 -1
  116. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  117. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  118. package/dist/.pikku/function/index.d.ts +1 -1
  119. package/dist/.pikku/function/index.js +1 -1
  120. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  121. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  122. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  123. package/dist/.pikku/function/pikku-functions-meta.gen.json +25 -6
  124. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  125. package/dist/.pikku/gateway/index.d.ts +1 -1
  126. package/dist/.pikku/gateway/index.js +1 -1
  127. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  128. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  129. package/dist/.pikku/http/index.d.ts +1 -1
  130. package/dist/.pikku/http/index.js +1 -1
  131. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  132. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  133. package/dist/.pikku/mcp/index.d.ts +1 -1
  134. package/dist/.pikku/mcp/index.js +1 -1
  135. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  136. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  137. package/dist/.pikku/middleware/index.d.ts +1 -1
  138. package/dist/.pikku/middleware/index.js +1 -1
  139. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +2 -2
  140. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +2 -2
  141. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  142. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  143. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  144. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  145. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  146. package/dist/.pikku/queue/index.d.ts +1 -1
  147. package/dist/.pikku/queue/index.js +1 -1
  148. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  149. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  150. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  151. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  152. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  153. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  154. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -0
  155. package/dist/.pikku/scenarios/index.d.ts +1 -1
  156. package/dist/.pikku/scenarios/index.js +1 -1
  157. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  158. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  159. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  160. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  161. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  162. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  163. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  164. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  165. package/dist/.pikku/scheduler/index.d.ts +1 -1
  166. package/dist/.pikku/scheduler/index.js +1 -1
  167. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  168. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  169. package/dist/.pikku/schemas/register.gen.js +5 -1
  170. package/dist/.pikku/schemas/schemas/DeployApplyInput.schema.json +1 -1
  171. package/dist/.pikku/schemas/schemas/FabricProjectsListInput.schema.json +1 -0
  172. package/dist/.pikku/schemas/schemas/FabricProjectsListOutput.schema.json +1 -0
  173. package/dist/.pikku/scopes/index.d.ts +1 -1
  174. package/dist/.pikku/scopes/index.js +1 -1
  175. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  176. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  177. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  178. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  179. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  180. package/dist/.pikku/secrets/index.d.ts +1 -1
  181. package/dist/.pikku/secrets/index.js +1 -1
  182. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  183. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  184. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  185. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  186. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  187. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  188. package/dist/.pikku/setup/index.d.ts +1 -1
  189. package/dist/.pikku/setup/index.js +1 -1
  190. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
  191. package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
  192. package/dist/.pikku/trigger/index.d.ts +1 -1
  193. package/dist/.pikku/trigger/index.js +1 -1
  194. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  195. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  196. package/dist/.pikku/variables/index.d.ts +1 -1
  197. package/dist/.pikku/variables/index.js +1 -1
  198. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  199. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  200. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  201. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  202. package/dist/.pikku/workflow/index.d.ts +1 -1
  203. package/dist/.pikku/workflow/index.js +1 -1
  204. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  205. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  206. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  207. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  208. package/dist/bin/pikku-bin.mjs +2 -2
  209. package/dist/src/cli.wiring.js +7 -0
  210. package/dist/src/deploy/build-pipeline.d.ts +10 -0
  211. package/dist/src/deploy/build-pipeline.js +16 -1
  212. package/dist/src/deploy/bundler/bundler.js +1 -15
  213. package/dist/src/deploy/bundler/service-module-map.d.ts +17 -0
  214. package/dist/src/deploy/bundler/service-module-map.js +19 -0
  215. package/dist/src/deploy/frontend-assets.d.ts +50 -0
  216. package/dist/src/deploy/frontend-assets.js +82 -0
  217. package/dist/src/fabric/fabric-commands.d.ts +40 -0
  218. package/dist/src/fabric/fabric-commands.js +6 -0
  219. package/dist/src/fabric/functions/projects-list.function.d.ts +72 -0
  220. package/dist/src/fabric/functions/projects-list.function.js +63 -0
  221. package/dist/src/fabric/functions/validate.function.js +70 -7
  222. package/dist/src/functions/commands/deploy-apply.d.ts +10 -0
  223. package/dist/src/functions/commands/deploy-apply.js +8 -0
  224. package/dist/src/functions/commands/deploy-plan.js +1 -0
  225. package/dist/src/functions/commands/dev.js +13 -2
  226. package/dist/src/functions/commands/environment.d.ts +10 -0
  227. package/dist/src/functions/commands/environment.js +24 -0
  228. package/dist/src/functions/commands/serve-frontend.d.ts +11 -0
  229. package/dist/src/functions/commands/serve-frontend.js +17 -0
  230. package/dist/src/functions/commands/serve.js +16 -3
  231. package/dist/src/functions/db/annotation-parser.d.ts +8 -0
  232. package/dist/src/functions/db/annotation-parser.js +2 -0
  233. package/dist/src/functions/db/db-codegen.js +20 -1
  234. package/dist/src/functions/validate/shared-checks.d.ts +25 -0
  235. package/dist/src/functions/validate/shared-checks.js +86 -2
  236. package/dist/src/functions/wirings/middleware/serialize-middleware-types.js +1 -1
  237. package/dist/src/functions/wirings/variables/serialize-variables-types.js +5 -1
  238. package/dist/src/functions/wirings/virtual-user/serialize-virtual-user-functions.js +6 -3
  239. package/dist/src/server/dev-server-runner.interface.d.ts +9 -0
  240. package/dist/src/server/node-server-runner.js +3 -0
  241. package/dist/src/server/server-ready.d.ts +6 -9
  242. package/dist/src/server/server-ready.js +6 -9
  243. package/dist/src/utils/frontend.d.ts +9 -0
  244. package/dist/src/utils/frontend.js +18 -0
  245. package/dist/src/utils/pikku-cli-config.d.ts +10 -1
  246. package/dist/src/utils/pikku-cli-config.js +27 -0
  247. package/dist/tsconfig.tsbuildinfo +1 -1
  248. package/package.json +9 -9
  249. package/snippets.json +2 -2
  250. package/surface.json +88 -7
  251. package/console-app/assets/architecture-TIHT7OUA-B-7dd9iF.js +0 -1
  252. package/console-app/assets/channel-eaKvL3e5.js +0 -1
  253. package/console-app/assets/chunk-XXDRQBXY-CJZ5XPXr.js +0 -1
  254. package/console-app/assets/classDiagram-JCYQIIEL-CSV3IvA1.js +0 -1
  255. package/console-app/assets/classDiagram-v2-OCEON4UE-CSV3IvA1.js +0 -1
  256. package/console-app/assets/eventmodeling-45OFAUF4-TV8Whj2Z.js +0 -1
  257. package/console-app/assets/flowDiagram-UKHOOZJN-C0682uBh.js +0 -1
  258. package/console-app/assets/railroad-abnf-AHOZXSZD-BbrGgpop.js +0 -1
  259. package/console-app/assets/railroad-ebnf-EBAXGLYW-BMxBKnfa.js +0 -1
  260. package/console-app/assets/railroad-peg-LSFZ7HO6-i24YvrZ1.js +0 -1
  261. package/console-app/assets/stateDiagram-v2-UEYNNEHI-Ds7kyy87.js +0 -1
  262. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BAuvqF_W.js +0 -8
package/surface.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.123",
2
+ "version": "0.12.125",
3
3
  "entryPoints": [
4
4
  {
5
5
  "id": "app",
@@ -2080,6 +2080,23 @@
2080
2080
  "examples": [
2081
2081
  "export const auditMiddleware = pikkuMiddlewareFactory(\n (action: string) =>\n async ({ logger }, _data, next) => {\n const start = Date.now()\n const result = await next()\n logger.info({ event: 'audit', action, ms: Date.now() - start })\n return result\n }\n)"
2082
2082
  ]
2083
+ },
2084
+ {
2085
+ "name": "requireOrigin",
2086
+ "kind": "function",
2087
+ "origin": {
2088
+ "via": "core",
2089
+ "subpath": "./middleware"
2090
+ },
2091
+ "summary": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.",
2092
+ "docs": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.\n\nThis is not what `cors()` does. CORS sets response headers and is enforced by the\nbrowser, so a non-browser client ignores them and the request still runs; this rejects\nbefore the function body. It stops another site's page from posting to an unauthed\nroute — it is not flood control, because `Origin` is trusted from nobody but a browser.\nA missing `Origin` is rejected too: a real browser sets one on a cross-origin-capable POST.",
2093
+ "signature": "CorePikkuMiddlewareFactory<{ origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>); }, CoreSingletonServices<{ logLevel?: LogLevel; secrets?: { requireAllowedHosts?: boolean; }; workflow?: WorkflowServiceConfig; webhook?: WebhookServiceConfig; postgres?: PostgresConfig; }>, CoreUserSession>",
2094
+ "members": [
2095
+ {
2096
+ "line": "origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>)",
2097
+ "doc": "Extra allowed origins beyond the request's own host, or a resolver for them."
2098
+ }
2099
+ ]
2083
2100
  }
2084
2101
  ]
2085
2102
  },
@@ -2172,7 +2189,8 @@
2172
2189
  "line": "getMissing: () => Promise<CredentialStatus[]>"
2173
2190
  },
2174
2191
  {
2175
- "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }"
2192
+ "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }",
2193
+ "doc": "Throws if the secret is not found, unless `defineSecret` declared it `optional` — then absence resolves `undefined`. Unwrap the result with `.reveal()`."
2176
2194
  },
2177
2195
  {
2178
2196
  "line": "getSecrets: <T extends Record<string, unknown> = Record<string, unknown>>(keys: (keyof T & string)[]) => Promise<Partial<SecretValues<T>>>",
@@ -2266,7 +2284,8 @@
2266
2284
  "line": "getAllStatus: () => Promise<VariableStatus[]>"
2267
2285
  },
2268
2286
  {
2269
- "line": "getMissing: () => Promise<VariableStatus[]>"
2287
+ "line": "getMissing: () => Promise<VariableStatus[]>",
2288
+ "doc": "What a deployment still has to be told. A variable that defaults is not on this list — it has a value, just not one anybody has to supply."
2270
2289
  },
2271
2290
  {
2272
2291
  "line": "getVariables: <T extends Record<string, unknown> = Record<string, unknown>>(names: (keyof T & string)[]) => Promise<Partial<T>> | Partial<T>",
@@ -2275,6 +2294,10 @@
2275
2294
  {
2276
2295
  "line": "has: (name: string) => Promise<boolean> | boolean"
2277
2296
  },
2297
+ {
2298
+ "line": "resolveDefault: any",
2299
+ "doc": "The value the declaration answers with when the host set nothing, or `undefined` when it does not answer for itself."
2300
+ },
2278
2301
  {
2279
2302
  "line": "set: (name: string, value: unknown) => Promise<void> | void"
2280
2303
  },
@@ -2283,6 +2306,10 @@
2283
2306
  },
2284
2307
  {
2285
2308
  "line": "variablesMeta: any"
2309
+ },
2310
+ {
2311
+ "line": "withDefaults: any",
2312
+ "doc": "Kept synchronous when the defaults resolve synchronously, so a caller that did not await `getVariables` before does not have to start."
2286
2313
  }
2287
2314
  ]
2288
2315
  },
@@ -8177,6 +8204,23 @@
8177
8204
  "examples": [
8178
8205
  "export const auditMiddleware = pikkuMiddlewareFactory(\n (action: string) =>\n async ({ logger }, _data, next) => {\n const start = Date.now()\n const result = await next()\n logger.info({ event: 'audit', action, ms: Date.now() - start })\n return result\n }\n)"
8179
8206
  ]
8207
+ },
8208
+ {
8209
+ "name": "requireOrigin",
8210
+ "kind": "function",
8211
+ "origin": {
8212
+ "via": "core",
8213
+ "subpath": "./middleware"
8214
+ },
8215
+ "summary": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.",
8216
+ "docs": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.\n\nThis is not what `cors()` does. CORS sets response headers and is enforced by the\nbrowser, so a non-browser client ignores them and the request still runs; this rejects\nbefore the function body. It stops another site's page from posting to an unauthed\nroute — it is not flood control, because `Origin` is trusted from nobody but a browser.\nA missing `Origin` is rejected too: a real browser sets one on a cross-origin-capable POST.",
8217
+ "signature": "CorePikkuMiddlewareFactory<{ origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>); }, CoreSingletonServices<{ logLevel?: LogLevel; secrets?: { requireAllowedHosts?: boolean; }; workflow?: WorkflowServiceConfig; webhook?: WebhookServiceConfig; postgres?: PostgresConfig; }>, CoreUserSession>",
8218
+ "members": [
8219
+ {
8220
+ "line": "origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>)",
8221
+ "doc": "Extra allowed origins beyond the request's own host, or a resolver for them."
8222
+ }
8223
+ ]
8180
8224
  }
8181
8225
  ]
8182
8226
  },
@@ -8482,6 +8526,23 @@
8482
8526
  "examples": [
8483
8527
  "export const auditMiddleware = pikkuMiddlewareFactory(\n (action: string) =>\n async ({ logger }, _data, next) => {\n const start = Date.now()\n const result = await next()\n logger.info({ event: 'audit', action, ms: Date.now() - start })\n return result\n }\n)"
8484
8528
  ]
8529
+ },
8530
+ {
8531
+ "name": "requireOrigin",
8532
+ "kind": "function",
8533
+ "origin": {
8534
+ "via": "core",
8535
+ "subpath": "./middleware"
8536
+ },
8537
+ "summary": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.",
8538
+ "docs": "Rejects a request with a 403 unless its `Origin` is this app's own or explicitly allowed.\n\nThis is not what `cors()` does. CORS sets response headers and is enforced by the\nbrowser, so a non-browser client ignores them and the request still runs; this rejects\nbefore the function body. It stops another site's page from posting to an unauthed\nroute — it is not flood control, because `Origin` is trusted from nobody but a browser.\nA missing `Origin` is rejected too: a real browser sets one on a cross-origin-capable POST.",
8539
+ "signature": "CorePikkuMiddlewareFactory<{ origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>); }, CoreSingletonServices<{ logLevel?: LogLevel; secrets?: { requireAllowedHosts?: boolean; }; workflow?: WorkflowServiceConfig; webhook?: WebhookServiceConfig; postgres?: PostgresConfig; }>, CoreUserSession>",
8540
+ "members": [
8541
+ {
8542
+ "line": "origins?: string[] | ((services: CoreSingletonServices) => string[] | Promise<string[]>)",
8543
+ "doc": "Extra allowed origins beyond the request's own host, or a resolver for them."
8544
+ }
8545
+ ]
8485
8546
  }
8486
8547
  ]
8487
8548
  },
@@ -8574,7 +8635,8 @@
8574
8635
  "line": "getMissing: () => Promise<CredentialStatus[]>"
8575
8636
  },
8576
8637
  {
8577
- "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }"
8638
+ "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }",
8639
+ "doc": "Throws if the secret is not found, unless `defineSecret` declared it `optional` — then absence resolves `undefined`. Unwrap the result with `.reveal()`."
8578
8640
  },
8579
8641
  {
8580
8642
  "line": "getSecrets: <T extends Record<string, unknown> = Record<string, unknown>>(keys: (keyof T & string)[]) => Promise<Partial<SecretValues<T>>>",
@@ -8685,7 +8747,8 @@
8685
8747
  "line": "getMissing: () => Promise<CredentialStatus[]>"
8686
8748
  },
8687
8749
  {
8688
- "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }"
8750
+ "line": "getSecret: { <K>(key: K): Promise<SecretResult<CredentialsMap[K]>>; <T>(key: string): Promise<SecretValue<T>>; }",
8751
+ "doc": "Throws if the secret is not found, unless `defineSecret` declared it `optional` — then absence resolves `undefined`. Unwrap the result with `.reveal()`."
8689
8752
  },
8690
8753
  {
8691
8754
  "line": "getSecrets: <T extends Record<string, unknown> = Record<string, unknown>>(keys: (keyof T & string)[]) => Promise<Partial<SecretValues<T>>>",
@@ -8779,7 +8842,8 @@
8779
8842
  "line": "getAllStatus: () => Promise<VariableStatus[]>"
8780
8843
  },
8781
8844
  {
8782
- "line": "getMissing: () => Promise<VariableStatus[]>"
8845
+ "line": "getMissing: () => Promise<VariableStatus[]>",
8846
+ "doc": "What a deployment still has to be told. A variable that defaults is not on this list — it has a value, just not one anybody has to supply."
8783
8847
  },
8784
8848
  {
8785
8849
  "line": "getVariables: <T extends Record<string, unknown> = Record<string, unknown>>(names: (keyof T & string)[]) => Promise<Partial<T>> | Partial<T>",
@@ -8788,6 +8852,10 @@
8788
8852
  {
8789
8853
  "line": "has: (name: string) => Promise<boolean> | boolean"
8790
8854
  },
8855
+ {
8856
+ "line": "resolveDefault: any",
8857
+ "doc": "The value the declaration answers with when the host set nothing, or `undefined` when it does not answer for itself."
8858
+ },
8791
8859
  {
8792
8860
  "line": "set: (name: string, value: unknown) => Promise<void> | void"
8793
8861
  },
@@ -8796,6 +8864,10 @@
8796
8864
  },
8797
8865
  {
8798
8866
  "line": "variablesMeta: any"
8867
+ },
8868
+ {
8869
+ "line": "withDefaults: any",
8870
+ "doc": "Kept synchronous when the defaults resolve synchronously, so a caller that did not await `getVariables` before does not have to start."
8799
8871
  }
8800
8872
  ]
8801
8873
  },
@@ -8885,7 +8957,8 @@
8885
8957
  "line": "getAllStatus: () => Promise<VariableStatus[]>"
8886
8958
  },
8887
8959
  {
8888
- "line": "getMissing: () => Promise<VariableStatus[]>"
8960
+ "line": "getMissing: () => Promise<VariableStatus[]>",
8961
+ "doc": "What a deployment still has to be told. A variable that defaults is not on this list — it has a value, just not one anybody has to supply."
8889
8962
  },
8890
8963
  {
8891
8964
  "line": "getVariables: <T extends Record<string, unknown> = Record<string, unknown>>(names: (keyof T & string)[]) => Promise<Partial<T>> | Partial<T>",
@@ -8894,6 +8967,10 @@
8894
8967
  {
8895
8968
  "line": "has: (name: string) => Promise<boolean> | boolean"
8896
8969
  },
8970
+ {
8971
+ "line": "resolveDefault: any",
8972
+ "doc": "The value the declaration answers with when the host set nothing, or `undefined` when it does not answer for itself."
8973
+ },
8897
8974
  {
8898
8975
  "line": "set: (name: string, value: unknown) => Promise<void> | void"
8899
8976
  },
@@ -8902,6 +8979,10 @@
8902
8979
  },
8903
8980
  {
8904
8981
  "line": "variablesMeta: any"
8982
+ },
8983
+ {
8984
+ "line": "withDefaults: any",
8985
+ "doc": "Kept synchronous when the defaults resolve synchronously, so a caller that did not await `getVariables` before does not have to start."
8905
8986
  }
8906
8987
  ]
8907
8988
  },
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-BICK3FdT.js";import{M as e}from"./mermaid-parser.core-3dL4TN1f.js";export{e as createArchitectureServices};
@@ -1 +0,0 @@
1
- import{at as e,ot as t}from"./chunk-I66GZJ75-Hl61byF7.js";var n=(n,r)=>t.lang.round(e.parse(n)[r]);export{n as t};
@@ -1 +0,0 @@
1
- import{p as e}from"./index-BP1o9ux1.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BJFofs4v.js";var n=t((t,n)=>{let r;return n===`sandbox`&&(r=e(`#i`+t)),e(n===`sandbox`?r.nodes()[0].contentDocument.body:`body`).select(`[id="${t}"]`)},`getDiagramElement`);export{n as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BJFofs4v.js";import"./chunk-I66GZJ75-Hl61byF7.js";import"./chunk-NSK5VX7P-D7NmS_w1.js";import"./chunk-4I5QYGJK-Di1FL5uh.js";import"./chunk-WRU74C26-CHP8CDJx.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-UBXNYLIW-DKYUw71c.js";import"./chunk-2GRJ4B5K-B09NFK9f.js";import"./chunk-XXDRQBXY-CJZ5XPXr.js";import"./chunk-KBJHAD2P-9mRl0jD6.js";import"./chunk-W5SLKNZC-B2fxVl1I.js";import"./chunk-QR6OTTB3-KdKTpLyy.js";import"./chunk-7Z6QIM7H-DfzYcuKW.js";import{i as t,n,r,t as i}from"./chunk-GF5L2VYU-CA5m-Xs7.js";import"./mermaid.core-DaXl8RjK.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BJFofs4v.js";import"./chunk-I66GZJ75-Hl61byF7.js";import"./chunk-NSK5VX7P-D7NmS_w1.js";import"./chunk-4I5QYGJK-Di1FL5uh.js";import"./chunk-WRU74C26-CHP8CDJx.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-UBXNYLIW-DKYUw71c.js";import"./chunk-2GRJ4B5K-B09NFK9f.js";import"./chunk-XXDRQBXY-CJZ5XPXr.js";import"./chunk-KBJHAD2P-9mRl0jD6.js";import"./chunk-W5SLKNZC-B2fxVl1I.js";import"./chunk-QR6OTTB3-KdKTpLyy.js";import"./chunk-7Z6QIM7H-DfzYcuKW.js";import{i as t,n,r,t as i}from"./chunk-GF5L2VYU-CA5m-Xs7.js";import"./mermaid.core-DaXl8RjK.js";var a={parser:n,get db(){return new i},renderer:r,styles:t,init:e(e=>{e.class||={},e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-BICK3FdT.js";import{O as e}from"./mermaid-parser.core-3dL4TN1f.js";export{e as createEventModelingServices};
@@ -1 +0,0 @@
1
- import"./src-BJFofs4v.js";import"./chunk-I66GZJ75-Hl61byF7.js";import"./chunk-NSK5VX7P-D7NmS_w1.js";import"./chunk-4I5QYGJK-Di1FL5uh.js";import"./chunk-WRU74C26-CHP8CDJx.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-UBXNYLIW-DKYUw71c.js";import"./chunk-2GRJ4B5K-B09NFK9f.js";import"./chunk-XXDRQBXY-CJZ5XPXr.js";import"./chunk-KBJHAD2P-9mRl0jD6.js";import"./chunk-W5SLKNZC-B2fxVl1I.js";import"./chunk-QR6OTTB3-KdKTpLyy.js";import"./chunk-7Z6QIM7H-DfzYcuKW.js";import{n as e}from"./chunk-JQJVKLGR-CgLeeXhv.js";import"./mermaid.core-DaXl8RjK.js";export{e as diagram};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-BICK3FdT.js";import{m as e}from"./mermaid-parser.core-3dL4TN1f.js";export{e as createRailroadAbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-BICK3FdT.js";import{f as e}from"./mermaid-parser.core-3dL4TN1f.js";export{e as createRailroadEbnfServices};
@@ -1 +0,0 @@
1
- import"./chunk-KEIR6QF5-BICK3FdT.js";import{u as e}from"./mermaid-parser.core-3dL4TN1f.js";export{e as createRailroadPegServices};
@@ -1 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BJFofs4v.js";import"./chunk-I66GZJ75-Hl61byF7.js";import"./chunk-NSK5VX7P-D7NmS_w1.js";import"./chunk-4I5QYGJK-Di1FL5uh.js";import"./chunk-WRU74C26-CHP8CDJx.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-UBXNYLIW-DKYUw71c.js";import"./chunk-2GRJ4B5K-B09NFK9f.js";import"./chunk-XXDRQBXY-CJZ5XPXr.js";import"./chunk-KBJHAD2P-9mRl0jD6.js";import"./chunk-W5SLKNZC-B2fxVl1I.js";import"./chunk-QR6OTTB3-KdKTpLyy.js";import"./chunk-7Z6QIM7H-DfzYcuKW.js";import{i as t,n,r,t as i}from"./chunk-5RXB4S5H-BkFSNR63.js";import"./mermaid.core-DaXl8RjK.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1,8 +0,0 @@
1
- import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import"./src-BJFofs4v.js";import"./chunk-I66GZJ75-Hl61byF7.js";import"./chunk-NSK5VX7P-D7NmS_w1.js";import"./chunk-4I5QYGJK-Di1FL5uh.js";import"./chunk-WRU74C26-CHP8CDJx.js";import"./chunk-7BUUIJ7U-Bb538aSH.js";import"./chunk-UBXNYLIW-DKYUw71c.js";import"./chunk-2GRJ4B5K-B09NFK9f.js";import"./chunk-XXDRQBXY-CJZ5XPXr.js";import"./chunk-KBJHAD2P-9mRl0jD6.js";import"./chunk-W5SLKNZC-B2fxVl1I.js";import"./chunk-QR6OTTB3-KdKTpLyy.js";import"./chunk-7Z6QIM7H-DfzYcuKW.js";import{r as t,t as n}from"./chunk-JQJVKLGR-CgLeeXhv.js";import"./mermaid.core-DaXl8RjK.js";var r=n({defaultLayout:`swimlane`,styles:e(e=>`${t(e)}
2
- .swimlane.cluster rect {
3
- stroke: ${e.clusterBorder} !important;
4
- }
5
- [data-look="neo"].cluster rect {
6
- filter: none;
7
- }
8
- `,`getStyles`)});export{r as diagram};