@pikku/cli 0.12.114 → 0.12.116

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 (297) hide show
  1. package/CHANGELOG.md +273 -0
  2. package/console-app/assets/{abnfDiagram-N423BO3Z-Bltf5dmS.js → abnfDiagram-N423BO3Z-WNIAg_Oa.js} +1 -1
  3. package/console-app/assets/architecture-TIHT7OUA-CIT-Nug2.js +1 -0
  4. package/console-app/assets/{architectureDiagram-T3A2C74G-BTtx6R7-.js → architectureDiagram-T3A2C74G-DM698mgf.js} +1 -1
  5. package/console-app/assets/{blockDiagram-VBNYF7ZC-DgeTIOaM.js → blockDiagram-VBNYF7ZC-DPfy9K5S.js} +1 -1
  6. package/console-app/assets/{c4Diagram-5PPSVZJV-CaswnNob.js → c4Diagram-5PPSVZJV-DhLbbBbX.js} +1 -1
  7. package/console-app/assets/channel-DQC6cL1c.js +1 -0
  8. package/console-app/assets/{chunk-2GRJ4B5K-OnpnkpQT.js → chunk-2GRJ4B5K-C1RQ1gvs.js} +1 -1
  9. package/console-app/assets/{chunk-4I5QYGJK-CWmfNXFr.js → chunk-4I5QYGJK-BkzSdNc_.js} +1 -1
  10. package/console-app/assets/{chunk-5RXB4S5H-M8QmKeuk.js → chunk-5RXB4S5H-DZpBpdcU.js} +1 -1
  11. package/console-app/assets/{chunk-6Q2QTUOP-C_h5lS68.js → chunk-6Q2QTUOP-mZObxdld.js} +1 -1
  12. package/console-app/assets/{chunk-7Z6QIM7H-DSnVb09k.js → chunk-7Z6QIM7H-C0HbxZEa.js} +1 -1
  13. package/console-app/assets/{chunk-GF5L2VYU-BkX038sq.js → chunk-GF5L2VYU-DXPVwWqW.js} +1 -1
  14. package/console-app/assets/{chunk-I66GZJ75-b3yMIljX.js → chunk-I66GZJ75-pVpq9ckD.js} +1 -1
  15. package/console-app/assets/{chunk-JQJVKLGR-Bihcz4nv.js → chunk-JQJVKLGR-DJQ8K4wK.js} +1 -1
  16. package/console-app/assets/{chunk-KBJHAD2P-CS7eflbk.js → chunk-KBJHAD2P-B8XuxRCO.js} +1 -1
  17. package/console-app/assets/{chunk-NSK5VX7P-CfigFGDQ.js → chunk-NSK5VX7P-cYzQU4bD.js} +1 -1
  18. package/console-app/assets/{chunk-QR6OTTB3-BBy8NfTW.js → chunk-QR6OTTB3-CNoTFsqn.js} +1 -1
  19. package/console-app/assets/{chunk-RYQCIY6F-BCfZVQef.js → chunk-RYQCIY6F-DoKRUO_N.js} +1 -1
  20. package/console-app/assets/{chunk-UBXNYLIW-DkMKDHW4.js → chunk-UBXNYLIW-BqcIoUpU.js} +1 -1
  21. package/console-app/assets/{chunk-W5SLKNZC-BSLytTSJ.js → chunk-W5SLKNZC-p0Qalbjj.js} +1 -1
  22. package/console-app/assets/{chunk-WRU74C26-Dic7ZP8H.js → chunk-WRU74C26-DUMn96Dr.js} +1 -1
  23. package/console-app/assets/chunk-XXDRQBXY-Dgz5VbWO.js +1 -0
  24. package/console-app/assets/classDiagram-JCYQIIEL-1ASFocNV.js +1 -0
  25. package/console-app/assets/classDiagram-v2-OCEON4UE-1ASFocNV.js +1 -0
  26. package/console-app/assets/{cose-bilkent-JH36ORCC-CEpWcE3M.js → cose-bilkent-JH36ORCC-BCh3BlPI.js} +1 -1
  27. package/console-app/assets/{cynefin-VYW2F7L2-irPiPhgz.js → cynefin-VYW2F7L2-ZfghUZsD.js} +1 -1
  28. package/console-app/assets/{cynefinDiagram-MW4NZA55-CIkqQ912.js → cynefinDiagram-MW4NZA55-DcV3QXCe.js} +1 -1
  29. package/console-app/assets/{dagre-FZyyw3H3.js → dagre-BPFWXLBN.js} +1 -1
  30. package/console-app/assets/{dagre-VZM6K2ZE-Dxnnu7Rh.js → dagre-VZM6K2ZE-DETshBO-.js} +1 -1
  31. package/console-app/assets/{diagram-7IWD3JNH-DaT47sVs.js → diagram-7IWD3JNH-CsLX3P2o.js} +1 -1
  32. package/console-app/assets/{diagram-B4RE2ZJO-Dmht03tx.js → diagram-B4RE2ZJO-o2zcxm5S.js} +1 -1
  33. package/console-app/assets/{diagram-LBJQPF4R-B--jwILh.js → diagram-LBJQPF4R-BD2zKU21.js} +1 -1
  34. package/console-app/assets/{diagram-Q27KOJAE-D9H0euUr.js → diagram-Q27KOJAE-DHaacyna.js} +1 -1
  35. package/console-app/assets/{diagram-UB23O5K3-DloUQ8tO.js → diagram-UB23O5K3-pSLCMUyV.js} +1 -1
  36. package/console-app/assets/{ebnfDiagram-BXEA7PRR-gaOXzNBU.js → ebnfDiagram-BXEA7PRR-BDzawX3O.js} +1 -1
  37. package/console-app/assets/{erDiagram-JOGREHBK-3X9eTLsh.js → erDiagram-JOGREHBK-CyYnPmbN.js} +1 -1
  38. package/console-app/assets/eventmodeling-45OFAUF4-BYJ0A5k-.js +1 -0
  39. package/console-app/assets/flowDiagram-UKHOOZJN-CVn87uiP.js +1 -0
  40. package/console-app/assets/{ganttDiagram-PKOTCBZU-khAFwSBy.js → ganttDiagram-PKOTCBZU-3fhCBbPA.js} +1 -1
  41. package/console-app/assets/{gitGraph-TEB2WS4Q-Bb7uENmk.js → gitGraph-TEB2WS4Q-CdLRkVux.js} +1 -1
  42. package/console-app/assets/{gitGraphDiagram-DS77QQ5N-OkSBM0h0.js → gitGraphDiagram-DS77QQ5N-CC1epdKw.js} +1 -1
  43. package/console-app/assets/{index-Bn1BoT3w.js → index-BRmokG9t.js} +184 -184
  44. package/console-app/assets/{index-suVNAhyL.css → index-GruDnAhJ.css} +1 -1
  45. package/console-app/assets/{info-DKCQHKI2-BH5dbX2B.js → info-DKCQHKI2-BJs8WkzC.js} +1 -1
  46. package/console-app/assets/{infoDiagram-6WML65LV-IbUl8J2C.js → infoDiagram-6WML65LV-uoOwoIeI.js} +1 -1
  47. package/console-app/assets/{ishikawaDiagram-WSZJBQD7-CX0gA3de.js → ishikawaDiagram-WSZJBQD7-vCUJhwTi.js} +1 -1
  48. package/console-app/assets/{journeyDiagram-NVQOT4AX--k2etXu8.js → journeyDiagram-NVQOT4AX-D2QcIlLG.js} +1 -1
  49. package/console-app/assets/{kanban-definition-27J2QSJJ-D1FvtPpN.js → kanban-definition-27J2QSJJ-JwwKowmR.js} +1 -1
  50. package/console-app/assets/{line-JLMY_DDK.js → line-h2oRreYF.js} +1 -1
  51. package/console-app/assets/{linear-CSvLB3cd.js → linear-Dz002X_a.js} +1 -1
  52. package/console-app/assets/{mermaid-parser.core-CwwjcAjz.js → mermaid-parser.core-DTgmT0AA.js} +3 -3
  53. package/console-app/assets/{mermaid.core-hmS_M4K5.js → mermaid.core-1jSEDr-j.js} +4 -4
  54. package/console-app/assets/{mindmap-definition-FAOFIHXS-rTDa_CTp.js → mindmap-definition-FAOFIHXS-C3Txxhj4.js} +1 -1
  55. package/console-app/assets/{packet-7NZHBO7P-DBUJcYfI.js → packet-7NZHBO7P-BGG7zIK2.js} +1 -1
  56. package/console-app/assets/{pegDiagram-VL7TDLO6-D42PxXnS.js → pegDiagram-VL7TDLO6--g1r_rov.js} +1 -1
  57. package/console-app/assets/{pie-RZYD4A2V-dM0uFAE4.js → pie-RZYD4A2V-C5OepMH7.js} +1 -1
  58. package/console-app/assets/{pieDiagram-7S7Q4E2Y-wCln1ucl.js → pieDiagram-7S7Q4E2Y-DGD_LzGm.js} +1 -1
  59. package/console-app/assets/{quadrantDiagram-CIZ2JOQS-DrRwS1g5.js → quadrantDiagram-CIZ2JOQS-CyBQQlD2.js} +1 -1
  60. package/console-app/assets/{radar-I7S5WNFK-BW0V-EGR.js → radar-I7S5WNFK-CaBOAO95.js} +1 -1
  61. package/console-app/assets/{railroad-3IZDKUUU-FiTHaDbb.js → railroad-3IZDKUUU-2aTWN4Pw.js} +1 -1
  62. package/console-app/assets/railroad-abnf-AHOZXSZD-TU7k5gB_.js +1 -0
  63. package/console-app/assets/railroad-ebnf-EBAXGLYW-DbArPBkM.js +1 -0
  64. package/console-app/assets/railroad-peg-LSFZ7HO6-TzB93z4K.js +1 -0
  65. package/console-app/assets/{railroadDiagram-AXF67PYL-9ef7j5U7.js → railroadDiagram-AXF67PYL-3Nr0rlTp.js} +1 -1
  66. package/console-app/assets/{requirementDiagram-LRYGKXZP-Cu90DbEZ.js → requirementDiagram-LRYGKXZP-BN7sEwSa.js} +1 -1
  67. package/console-app/assets/{sankeyDiagram-W5VNT64P-Bhxmyxaw.js → sankeyDiagram-W5VNT64P-CXZR46wO.js} +1 -1
  68. package/console-app/assets/{sequenceDiagram-SI44F4Z6-CBsbRTz8.js → sequenceDiagram-SI44F4Z6-DNtmdJ4U.js} +1 -1
  69. package/console-app/assets/{src-BR8qR3lM.js → src-x1E3pJJ-.js} +1 -1
  70. package/console-app/assets/{stateDiagram-OKZ733FA-Dr0frETZ.js → stateDiagram-OKZ733FA-B_GyYdl_.js} +1 -1
  71. package/console-app/assets/stateDiagram-v2-UEYNNEHI-D7V_HITc.js +1 -0
  72. package/console-app/assets/{swimlanes-SLNWSIFB-CXMjvd_a.js → swimlanes-SLNWSIFB-D4N7VdF7.js} +1 -1
  73. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-C4XcIHKT.js +8 -0
  74. package/console-app/assets/{timeline-definition-Z64GVDOM-DpmEZPV0.js → timeline-definition-Z64GVDOM-DU5rsOWQ.js} +1 -1
  75. package/console-app/assets/{treeView-QDETBFTQ-CjmuinMk.js → treeView-QDETBFTQ-DaKM_9sB.js} +1 -1
  76. package/console-app/assets/{treemap-6X3UGDF4-BP_fU6Cn.js → treemap-6X3UGDF4-BabsKtZY.js} +1 -1
  77. package/console-app/assets/{vennDiagram-T6HMQDX7-DgZS7iuW.js → vennDiagram-T6HMQDX7-Dniftpq0.js} +1 -1
  78. package/console-app/assets/{wardley-OPB4EBWU-CgMPoouN.js → wardley-OPB4EBWU-BWffQNys.js} +1 -1
  79. package/console-app/assets/{wardleyDiagram-T6FBY63Y-6y-xxP1R.js → wardleyDiagram-T6FBY63Y-CQ74fVdn.js} +1 -1
  80. package/console-app/assets/{xychartDiagram-ELKLHX3M-DOeIQjYI.js → xychartDiagram-ELKLHX3M-D-XxbGIL.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 +42 -1
  89. package/dist/.pikku/agent/pikku-agent-types.gen.js +41 -0
  90. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  91. package/dist/.pikku/auth/index.d.ts +1 -1
  92. package/dist/.pikku/auth/index.js +1 -1
  93. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +2 -19
  94. package/dist/.pikku/auth/pikku-auth-types.gen.js +2 -19
  95. package/dist/.pikku/channel/index.d.ts +1 -1
  96. package/dist/.pikku/channel/index.js +1 -1
  97. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +10 -18
  98. package/dist/.pikku/channel/pikku-channel-types.gen.js +9 -1
  99. package/dist/.pikku/cli/index.d.ts +1 -1
  100. package/dist/.pikku/cli/index.js +1 -1
  101. package/dist/.pikku/cli/pikku-cli-channel.js +6 -6
  102. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  103. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  104. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  105. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  106. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +24 -23
  107. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +8 -7
  108. package/dist/.pikku/cli/pikku-cli-types.gen.js +8 -7
  109. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  110. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +51 -23
  111. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  112. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  113. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  114. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  115. package/dist/.pikku/error/index.d.ts +1 -1
  116. package/dist/.pikku/error/index.js +1 -1
  117. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  118. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  119. package/dist/.pikku/function/index.d.ts +1 -1
  120. package/dist/.pikku/function/index.js +1 -1
  121. package/dist/.pikku/function/pikku-function-types.gen.d.ts +36 -37
  122. package/dist/.pikku/function/pikku-function-types.gen.js +21 -9
  123. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  124. package/dist/.pikku/function/pikku-functions-meta.gen.json +34 -34
  125. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  126. package/dist/.pikku/gateway/index.d.ts +1 -1
  127. package/dist/.pikku/gateway/index.js +1 -1
  128. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  129. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  130. package/dist/.pikku/http/index.d.ts +1 -1
  131. package/dist/.pikku/http/index.js +1 -1
  132. package/dist/.pikku/http/pikku-http-types.gen.d.ts +7 -1
  133. package/dist/.pikku/http/pikku-http-types.gen.js +5 -1
  134. package/dist/.pikku/mcp/index.d.ts +1 -1
  135. package/dist/.pikku/mcp/index.js +1 -1
  136. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +11 -1
  137. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +5 -1
  138. package/dist/.pikku/middleware/index.d.ts +1 -1
  139. package/dist/.pikku/middleware/index.js +1 -1
  140. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +33 -24
  141. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +29 -24
  142. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  143. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  144. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  145. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  146. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  147. package/dist/.pikku/queue/index.d.ts +1 -1
  148. package/dist/.pikku/queue/index.js +1 -1
  149. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +3 -1
  150. package/dist/.pikku/queue/pikku-queue-types.gen.js +3 -1
  151. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  152. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  153. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  154. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  155. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -1
  156. package/dist/.pikku/scenarios/index.d.ts +1 -1
  157. package/dist/.pikku/scenarios/index.js +1 -1
  158. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +4 -0
  159. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  160. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  161. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  162. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +13 -1
  163. package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +4 -0
  164. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  165. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  166. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  167. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  168. package/dist/.pikku/scheduler/index.d.ts +1 -1
  169. package/dist/.pikku/scheduler/index.js +1 -1
  170. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +3 -1
  171. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +3 -1
  172. package/dist/.pikku/schemas/register.gen.js +5 -5
  173. package/dist/.pikku/schemas/schemas/DocInput.schema.json +1 -0
  174. package/dist/.pikku/schemas/schemas/DocOutput.schema.json +1 -0
  175. package/dist/.pikku/schemas/schemas/FabricDeployApplyInput.schema.json +1 -1
  176. package/dist/.pikku/schemas/schemas/FabricDeployApplyOutput.schema.json +1 -1
  177. package/dist/.pikku/schemas/schemas/FabricSecretsRotateOutput.schema.json +1 -1
  178. package/dist/.pikku/schemas/schemas/PikkuSkillsInstallInput.schema.json +1 -1
  179. package/dist/.pikku/scopes/index.d.ts +1 -1
  180. package/dist/.pikku/scopes/index.js +1 -1
  181. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  182. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  183. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  184. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  185. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  186. package/dist/.pikku/secrets/index.d.ts +1 -1
  187. package/dist/.pikku/secrets/index.js +1 -1
  188. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  189. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  190. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +9 -1
  191. package/dist/.pikku/secrets/pikku-secrets.gen.js +5 -1
  192. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  193. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  194. package/dist/.pikku/setup/index.d.ts +1 -1
  195. package/dist/.pikku/setup/index.js +1 -1
  196. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +7 -19
  197. package/dist/.pikku/setup/pikku-setup-types.gen.js +11 -19
  198. package/dist/.pikku/trigger/index.d.ts +1 -1
  199. package/dist/.pikku/trigger/index.js +1 -1
  200. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +5 -1
  201. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +5 -1
  202. package/dist/.pikku/variables/index.d.ts +1 -1
  203. package/dist/.pikku/variables/index.js +1 -1
  204. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  205. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  206. package/dist/.pikku/variables/pikku-variables.gen.d.ts +9 -1
  207. package/dist/.pikku/variables/pikku-variables.gen.js +5 -1
  208. package/dist/.pikku/workflow/index.d.ts +1 -1
  209. package/dist/.pikku/workflow/index.js +1 -1
  210. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +29 -1
  211. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +8 -1
  212. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  213. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  214. package/dist/bin/pikku-bin.mjs +2 -2
  215. package/dist/src/cli.wiring.js +21 -0
  216. package/dist/src/deploy/analyzer/analyzer.d.ts +1 -0
  217. package/dist/src/deploy/analyzer/analyzer.js +8 -6
  218. package/dist/src/deploy/build-pipeline.d.ts +1 -0
  219. package/dist/src/deploy/build-pipeline.js +1 -0
  220. package/dist/src/fabric/fabric-commands.d.ts +170 -54
  221. package/dist/src/fabric/fabric-commands.js +25 -20
  222. package/dist/src/fabric/functions/deploy.function.d.ts +246 -67
  223. package/dist/src/fabric/functions/deploy.function.js +316 -69
  224. package/dist/src/fabric/functions/init.function.js +1 -0
  225. package/dist/src/fabric/functions/link.function.js +4 -1
  226. package/dist/src/fabric/functions/secrets-rotate.function.d.ts +4 -4
  227. package/dist/src/fabric/functions/secrets-rotate.function.js +2 -2
  228. package/dist/src/fabric/functions/validate.function.js +123 -0
  229. package/dist/src/fabric/lib/deployment.d.ts +107 -0
  230. package/dist/src/fabric/lib/deployment.js +264 -0
  231. package/dist/src/fabric/sdk/pikku-fetch.gen.d.ts +1 -1
  232. package/dist/src/fabric/sdk/pikku-fetch.gen.js +1 -1
  233. package/dist/src/fabric/sdk/pikku-rpc.gen.d.ts +4 -1
  234. package/dist/src/fabric/sdk/pikku-rpc.gen.js +4 -1
  235. package/dist/src/functions/commands/deploy-apply.js +1 -0
  236. package/dist/src/functions/commands/deploy-plan.js +1 -0
  237. package/dist/src/functions/commands/doc.d.ts +22 -0
  238. package/dist/src/functions/commands/doc.js +25 -0
  239. package/dist/src/functions/commands/skills.d.ts +3 -0
  240. package/dist/src/functions/commands/skills.js +4 -2
  241. package/dist/src/functions/runtimes/tanstack-start/serialize-tanstack-start-shim.d.ts +3 -2
  242. package/dist/src/functions/runtimes/tanstack-start/serialize-tanstack-start-shim.js +33 -10
  243. package/dist/src/functions/surface/build-surface-doc.d.ts +8 -1
  244. package/dist/src/functions/surface/build-surface-doc.js +21 -8
  245. package/dist/src/functions/surface/collect-snippets.d.ts +13 -0
  246. package/dist/src/functions/surface/collect-snippets.js +83 -0
  247. package/dist/src/functions/surface/collect-surface.d.ts +27 -1
  248. package/dist/src/functions/surface/collect-surface.js +323 -13
  249. package/dist/src/functions/surface/generate-surface-doc.js +40 -5
  250. package/dist/src/functions/surface/render-surface-doc.d.ts +12 -0
  251. package/dist/src/functions/surface/render-surface-doc.js +209 -0
  252. package/dist/src/functions/surface/surface-doc.types.d.ts +15 -2
  253. package/dist/src/functions/surface/surface-editorial.d.ts +6 -0
  254. package/dist/src/functions/surface/surface-editorial.js +22 -1
  255. package/dist/src/functions/wirings/agent/serialize-agent-types.js +41 -0
  256. package/dist/src/functions/wirings/agent/serialize-public-agent.js +1 -1
  257. package/dist/src/functions/wirings/auth/serialize-auth-guards.js +1 -18
  258. package/dist/src/functions/wirings/auth/serialize-auth-types.js +7 -0
  259. package/dist/src/functions/wirings/channels/serialize-channel-types.js +9 -17
  260. package/dist/src/functions/wirings/cli/serialize-cli-types.js +7 -6
  261. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +1 -1
  262. package/dist/src/functions/wirings/functions/serialize-addon-refs.js +12 -0
  263. package/dist/src/functions/wirings/functions/serialize-function-types.js +23 -36
  264. package/dist/src/functions/wirings/http/serialize-http-types.js +6 -0
  265. package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +10 -0
  266. package/dist/src/functions/wirings/middleware/serialize-middleware-types.js +32 -23
  267. package/dist/src/functions/wirings/queue/serialize-queue-types.js +2 -0
  268. package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +2 -0
  269. package/dist/src/functions/wirings/secrets/serialize-secrets-types.js +8 -0
  270. package/dist/src/functions/wirings/setup/serialize-setup-types.d.ts +1 -1
  271. package/dist/src/functions/wirings/setup/serialize-setup-types.js +19 -19
  272. package/dist/src/functions/wirings/triggers/serialize-trigger-types.js +4 -0
  273. package/dist/src/functions/wirings/variables/serialize-variables-types.js +8 -0
  274. package/dist/src/functions/wirings/workflow/serialize-personas.js +4 -0
  275. package/dist/src/functions/wirings/workflow/serialize-scenario-types.js +12 -0
  276. package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +28 -0
  277. package/dist/src/services.js +8 -1
  278. package/dist/src/utils/persona-credentials.js +5 -1
  279. package/dist/tsconfig.tsbuildinfo +1 -1
  280. package/package.json +9 -7
  281. package/snippets-meta.json +131 -0
  282. package/snippets.json +131 -0
  283. package/surface.json +7393 -458
  284. package/console-app/assets/architecture-TIHT7OUA-DgRqRaqo.js +0 -1
  285. package/console-app/assets/channel-37lNznWk.js +0 -1
  286. package/console-app/assets/chunk-XXDRQBXY-B1prMCvW.js +0 -1
  287. package/console-app/assets/classDiagram-JCYQIIEL-BDCX9ZLm.js +0 -1
  288. package/console-app/assets/classDiagram-v2-OCEON4UE-BDCX9ZLm.js +0 -1
  289. package/console-app/assets/eventmodeling-45OFAUF4-BarrKD55.js +0 -1
  290. package/console-app/assets/flowDiagram-UKHOOZJN-B6RiRjcD.js +0 -1
  291. package/console-app/assets/railroad-abnf-AHOZXSZD-lmUjOixE.js +0 -1
  292. package/console-app/assets/railroad-ebnf-EBAXGLYW-ZjdA7OHp.js +0 -1
  293. package/console-app/assets/railroad-peg-LSFZ7HO6-VHSlvwI8.js +0 -1
  294. package/console-app/assets/stateDiagram-v2-UEYNNEHI-BSXWhCvf.js +0 -1
  295. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BUdsPDKC.js +0 -8
  296. package/dist/.pikku/schemas/schemas/FabricDeployPlanInput.schema.json +0 -1
  297. package/dist/.pikku/schemas/schemas/FabricDeployPlanOutput.schema.json +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  /**
@@ -11,6 +11,10 @@ import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/servic
11
11
  */
12
12
  import './pikku-secrets-meta.gen.json' with { type: 'json' };
13
13
  const CREDENTIALS_META = {};
14
+ /**
15
+ * The `secrets` service as this project sees it: `getSecret('NAME')` resolves
16
+ * the value's type from `CredentialsMap` instead of returning `unknown`.
17
+ */
14
18
  export class TypedSecretService extends CoreTypedSecretService {
15
19
  constructor(secrets) {
16
20
  super(secrets, CREDENTIALS_META);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export declare class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { LocalMetaService } from '@pikku/core/services/local-meta';
5
5
  export class PikkuMetaService extends LocalMetaService {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/setup` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -8,6 +8,10 @@ import { CreateWireServices } from '@pikku/core/types';
8
8
  import type { SingletonServices } from '../function/pikku-function-types.gen.js';
9
9
  import type { Config } from '../../types/application-types.d.js';
10
10
  import type { RequiredSingletonServices, RequiredWireServices } from '../pikku-services.gen.js';
11
+ /**
12
+ * This project's own config — whatever `createConfig` returns. Every singleton
13
+ * service is built from it.
14
+ */
11
15
  export type { Config };
12
16
  /**
13
17
  * Creates a Pikku config factory.
@@ -16,15 +20,7 @@ export type { Config };
16
20
  * @param func - Config factory function that returns your application's config
17
21
  * @returns The config factory function
18
22
  *
19
- * @example
20
- * ```typescript
21
- * export const createConfig = pikkuConfig(async () => {
22
- * return {
23
- * apiUrl: process.env.API_URL || 'http://localhost:3000',
24
- * dbUrl: process.env.DATABASE_URL
25
- * }
26
- * })
27
- * ```
23
+ * @example snippet: pikkuConfig
28
24
  */
29
25
  export declare const pikkuConfig: (func: (variables?: any, ...args: any[]) => Promise<Config>) => (variables?: any, ...args: any[]) => Promise<Config>;
30
26
  /**
@@ -53,14 +49,6 @@ export declare const pikkuServices: (func: (config: Config, existingServices: Pa
53
49
  * @param func - Wire services factory function
54
50
  * @returns The wire services factory function
55
51
  *
56
- * @example
57
- * ```typescript
58
- * export const createWireServices = pikkuWireServices(async (services, wire) => {
59
- * const session = await wire.session?.get()
60
- * return {
61
- * userCache: new UserCache(session?.userId)
62
- * }
63
- * })
64
- * ```
52
+ * @example snippet: shopWireServices
65
53
  */
66
54
  export declare const pikkuWireServices: (func: (services: SingletonServices, wire: any) => Promise<RequiredWireServices>) => CreateWireServices;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Config and service factory definitions, declared once per application
@@ -12,15 +12,7 @@ import { pikkuState as __pikkuState } from '@pikku/core/state';
12
12
  * @param func - Config factory function that returns your application's config
13
13
  * @returns The config factory function
14
14
  *
15
- * @example
16
- * ```typescript
17
- * export const createConfig = pikkuConfig(async () => {
18
- * return {
19
- * apiUrl: process.env.API_URL || 'http://localhost:3000',
20
- * dbUrl: process.env.DATABASE_URL
21
- * }
22
- * })
23
- * ```
15
+ * @example snippet: pikkuConfig
24
16
  */
25
17
  export const pikkuConfig = (func) => func;
26
18
  /**
@@ -45,6 +37,14 @@ export const pikkuServices = (func) => {
45
37
  return async (config, existingServices = {}) => {
46
38
  const createdServices = await func(config, existingServices);
47
39
  const services = { ...existingServices, ...createdServices };
40
+ const allowedToShadow = new Set([]);
41
+ const shadowed = Object.keys(createdServices).filter((name) => !allowedToShadow.has(name) &&
42
+ existingServices[name] !== undefined &&
43
+ existingServices[name] !== createdServices[name]);
44
+ if (shadowed.length > 0) {
45
+ ;
46
+ services.logger?.warn?.(`createSingletonServices returned its own ${shadowed.join(', ')}, discarding what the host passed in. A host only passes a service it has already configured — a \`secrets\` holding this deployment's values, a \`kysely\` bound to its database — so the replacement starts empty and fails later somewhere unrelated. Write \`existingServices.<name> ?? new Own...\` to take the host's when there is one and still work standalone, or list the name under \`allowShadowedServices\` in pikku.config.json if replacing it is deliberate.`);
47
+ }
48
48
  const authFactory = __pikkuState(null, 'package', 'authFactory');
49
49
  if (authFactory) {
50
50
  let authInstance;
@@ -70,15 +70,7 @@ export const pikkuServices = (func) => {
70
70
  * @param func - Wire services factory function
71
71
  * @returns The wire services factory function
72
72
  *
73
- * @example
74
- * ```typescript
75
- * export const createWireServices = pikkuWireServices(async (services, wire) => {
76
- * const session = await wire.session?.get()
77
- * return {
78
- * userCache: new UserCache(session?.userId)
79
- * }
80
- * })
81
- * ```
73
+ * @example snippet: shopWireServices
82
74
  */
83
75
  export const pikkuWireServices = (func) => {
84
76
  const factories = __pikkuState(null, 'package', 'factories');
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/trigger` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -100,6 +100,8 @@ export declare function pikkuTriggerFunc<TInput, TOutput = unknown>(triggerOrCon
100
100
  * Runs everywhere — inspector extracts at build time.
101
101
  *
102
102
  * @param trigger - Trigger definition with name and function config
103
+ *
104
+ * @example snippet: wireTrigger
103
105
  */
104
106
  export declare const wireTrigger: (trigger: TriggerWiring) => void;
105
107
  /**
@@ -108,6 +110,8 @@ export declare const wireTrigger: (trigger: TriggerWiring) => void;
108
110
  * Only imported in the trigger worker process.
109
111
  *
110
112
  * @param source - Trigger source with name, func, and input
113
+ *
114
+ * @example snippet: wireTriggerSource
111
115
  */
112
116
  export declare const wireTriggerSource: <TInput = unknown, TOutput = unknown>(source: TriggerSource<TInput, TOutput>) => void;
113
117
  export {};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -17,6 +17,8 @@ export function pikkuTriggerFunc(triggerOrConfig) {
17
17
  * Runs everywhere — inspector extracts at build time.
18
18
  *
19
19
  * @param trigger - Trigger definition with name and function config
20
+ *
21
+ * @example snippet: wireTrigger
20
22
  */
21
23
  export const wireTrigger = (trigger) => {
22
24
  wireTriggerCore(trigger);
@@ -27,6 +29,8 @@ export const wireTrigger = (trigger) => {
27
29
  * Only imported in the trigger worker process.
28
30
  *
29
31
  * @param source - Trigger source with name, func, and input
32
+ *
33
+ * @example snippet: wireTriggerSource
30
34
  */
31
35
  export const wireTriggerSource = (source) => {
32
36
  wireTriggerSourceCore(source);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/variables` resolves here.
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -11,8 +11,16 @@ import type { VariablesService } from '@pikku/core/services';
11
11
  * sidecar is not part of `#pikku/variables`.
12
12
  */
13
13
  import './pikku-variables-meta.gen.json';
14
+ /**
15
+ * Every variable this project declares with `defineVariable`, keyed by name. It
16
+ * is what gives `variables.get('NAME')` a real type.
17
+ */
14
18
  export interface VariablesMap {
15
19
  }
20
+ /**
21
+ * The `variables` service as this project sees it: `get('NAME')` resolves the
22
+ * value's type from `VariablesMap` instead of returning `unknown`.
23
+ */
16
24
  export declare class TypedVariablesService extends CoreTypedVariablesService<VariablesMap> {
17
25
  constructor(variables: VariablesService);
18
26
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService, } from '@pikku/core/services';
5
5
  /**
@@ -11,6 +11,10 @@ import { TypedVariablesService as CoreTypedVariablesService, } from '@pikku/core
11
11
  */
12
12
  import './pikku-variables-meta.gen.json' with { type: 'json' };
13
13
  const TYPED_VARIABLES_META = {};
14
+ /**
15
+ * The `variables` service as this project sees it: `get('NAME')` resolves the
16
+ * value's type from `VariablesMap` instead of returning `unknown`.
17
+ */
14
18
  export class TypedVariablesService extends CoreTypedVariablesService {
15
19
  constructor(variables) {
16
20
  super(variables, TYPED_VARIABLES_META);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  /**
5
5
  * Subpath entry — `#pikku/workflow` resolves here.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import type { PikkuWorkflowGraphConfig, PikkuWorkflowGraphResult } from '@pikku/core/workflow';
@@ -9,6 +9,10 @@ import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/
9
9
  import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js';
10
10
  import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js';
11
11
  import type { AgentMap as FlattenedAgentMap } from '../agent/pikku-agent-map.gen.d.js';
12
+ /**
13
+ * The wire a workflow step is handed: `step` to run one durably, plus sleeping,
14
+ * waiting for a signal and asking for approval.
15
+ */
12
16
  export interface TypedWorkflow extends PikkuWorkflowWire {
13
17
  do<K extends keyof FlattenedRPCMap>(stepName: string, rpcName: K, data: FlattenedRPCMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedRPCMap[K]['output']>;
14
18
  do<K extends keyof FlattenedWorkflowMap>(stepName: string, workflowName: K, data: FlattenedWorkflowMap[K]['input'], options?: WorkflowStepOptions): Promise<FlattenedWorkflowMap[K]['output']>;
@@ -21,6 +25,9 @@ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.j
21
25
  import type { ScopeId } from '../scopes/pikku-scopes.gen.js';
22
26
  import { PikkuError } from '@pikku/core/errors';
23
27
  import type { CorePermissionGroup } from '@pikku/core/function';
28
+ /**
29
+ * The shape of a workflow's body — services, input, and the workflow wire.
30
+ */
24
31
  export type PikkuFunctionWorkflow<In = unknown, Out = never> = PikkuFunctionSessionless<In, Out, 'workflow'>;
25
32
  type PikkuWorkflowConfigWithSchema<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined> = {
26
33
  title?: string;
@@ -50,8 +57,22 @@ type PikkuWorkflowConfigWithSchema<InputSchema extends StandardSchemaV1 | undefi
50
57
  scopes?: ScopeId[];
51
58
  permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined;
52
59
  };
60
+ /**
61
+ * Declares a workflow: the DSL form, where each step is awaited in order and
62
+ * the runner persists progress between them so a restart resumes rather than
63
+ * replays. The default choice for a workflow.
64
+ *
65
+ * @example snippet: workflowSteps
66
+ */
53
67
  export declare function pikkuWorkflowFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>;
54
68
  export declare function pikkuWorkflowFunc<In, Out = unknown>(func: PikkuFunctionWorkflow<In, Out> | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>): PikkuFunctionConfig<In, Out, 'workflow'>;
69
+ /**
70
+ * Declares a workflow whose control flow the DSL cannot express - a loop whose
71
+ * bound is only known at runtime, or branching that rejoins. An escape hatch:
72
+ * reach for `pikkuWorkflowFunc` unless the shape genuinely needs this.
73
+ *
74
+ * @example snippet: workflowComplexFunc
75
+ */
55
76
  export declare function pikkuWorkflowComplexFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>;
56
77
  export declare function pikkuWorkflowComplexFunc<In, Out = unknown>(func: PikkuFunctionWorkflow<In, Out> | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>): PikkuFunctionConfig<In, Out, 'workflow'>;
57
78
  type TypedRef<T> = {
@@ -102,4 +123,11 @@ type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | {
102
123
  then: NodeIds;
103
124
  else?: NodeIds;
104
125
  };
126
+ /**
127
+ * Declares a workflow as an explicit node graph, for a genuine cyclic
128
+ * dependency or a Node-only import the DSL cannot carry. The last resort of the
129
+ * three.
130
+ *
131
+ * @example snippet: workflowGraph
132
+ */
105
133
  export declare function pikkuWorkflowGraph<const FuncMap extends Record<string, (keyof FlattenedRPCMap & string) | (keyof FlattenedWorkflowMap & string) | (keyof FlattenedAgentMap & string)>>(config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>): PikkuWorkflowGraphResult;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { WorkflowCancelledException } from '@pikku/core/workflow';
5
5
  import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow';
@@ -10,6 +10,13 @@ export function pikkuWorkflowFunc(func) {
10
10
  export function pikkuWorkflowComplexFunc(func) {
11
11
  return typeof func === 'function' ? { func } : func;
12
12
  }
13
+ /**
14
+ * Declares a workflow as an explicit node graph, for a genuine cyclic
15
+ * dependency or a Node-only import the DSL cannot carry. The last resort of the
16
+ * three.
17
+ *
18
+ * @example snippet: workflowGraph
19
+ */
13
20
  export function pikkuWorkflowGraph(config) {
14
21
  return corePikkuWorkflowGraph(config);
15
22
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/state';
5
5
  import allWorkflowMeta from './meta/allWorkflow.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.114
2
+ * This file was generated by @pikku/cli@0.12.116
3
3
  */
4
4
  import { addWorkflow } from '@pikku/core/workflow';
5
5
  import './pikku-workflow-wirings-meta.gen.js';
@@ -11,8 +11,8 @@ async function checkForUpdate() {
11
11
  })
12
12
  if (!res.ok) return
13
13
  const { version: latest } = await res.json()
14
- if (latest !== '0.12.114') {
15
- process.stderr.write(`\n Update available 0.12.114 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
14
+ if (latest !== '0.12.116') {
15
+ process.stderr.write(`\n Update available 0.12.116 → ${latest}\n brew upgrade pikku or npm install -g @pikku/cli\n\n`)
16
16
  }
17
17
  } catch {}
18
18
  }
@@ -49,6 +49,7 @@ import { pikkuNewMiddleware } from './functions/commands/new-middleware.js';
49
49
  import { pikkuNewPermission } from './functions/commands/new-permission.js';
50
50
  import { pikkuNewAddon } from './functions/commands/new-addon.js';
51
51
  import { pikkuImportN8n } from './functions/commands/import-n8n.js';
52
+ import { doc, renderDoc } from './functions/commands/doc.js';
52
53
  import { pikkuInfoFunctions, pikkuInfoTags, pikkuInfoMiddleware, pikkuInfoPermissions, } from './functions/commands/info.js';
53
54
  import { enableRpc, enableConsole, enableScenarios, enableAgent, enableWorkflow, enableEvents, enableRemoteRpc, enableWebhook, } from './functions/commands/enable.js';
54
55
  import { pikkuRealtime } from './functions/wirings/realtime/pikku-command-realtime.js';
@@ -132,6 +133,22 @@ wireCLI({
132
133
  },
133
134
  },
134
135
  commands: {
136
+ doc: pikkuCLICommand({
137
+ func: doc,
138
+ render: renderDoc,
139
+ description: 'Print the API surface of the pikku installed here — the doors, what they export, and how each export is called',
140
+ parameters: '[topics...]',
141
+ options: {
142
+ ai: {
143
+ description: 'Name the skill that teaches each door, for an agent deciding whether it needs to load one',
144
+ default: false,
145
+ },
146
+ addon: {
147
+ description: 'Describe the addon surface instead of the application one',
148
+ default: false,
149
+ },
150
+ },
151
+ }),
135
152
  all: pikkuCLICommand({
136
153
  func: all,
137
154
  description: 'Generate all Pikku files (types, schemas, wirings, etc.)',
@@ -948,6 +965,10 @@ wireCLI({
948
965
  description: 'Install skills whose frontmatter includes installGroups: [fabric]',
949
966
  default: false,
950
967
  },
968
+ client: {
969
+ description: 'Install skills whose frontmatter includes installGroups: [client]',
970
+ default: false,
971
+ },
951
972
  update: {
952
973
  description: 'Overwrite existing skills if already installed',
953
974
  default: false,
@@ -33,6 +33,7 @@ export interface AnalyzerOptions {
33
33
  * Queues created via explicit `wireQueue(...)` user code are unaffected.
34
34
  */
35
35
  workflowQueues?: boolean;
36
+ globalHTTPPrefix?: string;
36
37
  }
37
38
  export declare function analyzeDeployment(state: InspectorState, options: AnalyzerOptions): DeploymentManifest;
38
39
  export declare function toSafeKebab(str: string): string;
@@ -13,6 +13,8 @@ export function analyzeDeployment(state, options) {
13
13
  const serverlessIncompatible = new Set(options.serverlessIncompatible ?? []);
14
14
  const defaultTarget = options.defaultTarget ?? 'serverless';
15
15
  const workflowQueues = options.workflowQueues ?? true;
16
+ const httpPrefix = (options.globalHTTPPrefix ?? '').replace(/\/+$/, '');
17
+ const prefixed = (route) => `${httpPrefix}${route}`;
16
18
  const units = [];
17
19
  const queues = [];
18
20
  const scheduledTasks = [];
@@ -94,7 +96,7 @@ export function analyzeDeployment(state, options) {
94
96
  const funcName = funcMeta.name ?? funcId;
95
97
  const rpcRoute = {
96
98
  method: 'post',
97
- route: `/rpc/${funcName}`,
99
+ route: prefixed(`/rpc/${funcName}`),
98
100
  pikkuFuncId: funcId,
99
101
  };
100
102
  const fetchHandler = handlers.find((h) => h.type === 'fetch');
@@ -109,7 +111,7 @@ export function analyzeDeployment(state, options) {
109
111
  const funcName = funcMeta.name ?? funcId;
110
112
  const remoteRoute = {
111
113
  method: 'post',
112
- route: `/remote/rpc/${funcName}`,
114
+ route: prefixed(`/remote/rpc/${funcName}`),
113
115
  pikkuFuncId: funcId,
114
116
  };
115
117
  const fetchHandler = handlers.find((h) => h.type === 'fetch');
@@ -153,22 +155,22 @@ export function analyzeDeployment(state, options) {
153
155
  const agentRoutes = [
154
156
  {
155
157
  method: 'post',
156
- route: `/rpc/agent/${agentName}`,
158
+ route: prefixed(`/rpc/agent/${agentName}`),
157
159
  pikkuFuncId: `agentRun:${agentName}`,
158
160
  },
159
161
  {
160
162
  method: 'post',
161
- route: `/rpc/agent/${agentName}/stream`,
163
+ route: prefixed(`/rpc/agent/${agentName}/stream`),
162
164
  pikkuFuncId: `agentStream:${agentName}`,
163
165
  },
164
166
  {
165
167
  method: 'post',
166
- route: `/rpc/agent/${agentName}/approve`,
168
+ route: prefixed(`/rpc/agent/${agentName}/approve`),
167
169
  pikkuFuncId: `agentApprove:${agentName}`,
168
170
  },
169
171
  {
170
172
  method: 'post',
171
- route: `/rpc/agent/${agentName}/resume`,
173
+ route: prefixed(`/rpc/agent/${agentName}/resume`),
172
174
  pikkuFuncId: `agentResume:${agentName}`,
173
175
  },
174
176
  ];
@@ -50,6 +50,7 @@ export declare function runBuildPipeline(options: {
50
50
  inspectorState: InspectorState;
51
51
  serverlessIncompatible?: string[];
52
52
  defaultTarget?: 'serverless' | 'server';
53
+ globalHTTPPrefix?: string;
53
54
  getEntryContext: (unitDir: string, pikkuDir: string, unit: DeploymentManifest['units'][0], state: InspectorState) => unknown;
54
55
  deployDir?: string;
55
56
  outDir?: string;
@@ -69,6 +69,7 @@ export async function runBuildPipeline(options) {
69
69
  projectId,
70
70
  serverlessIncompatible: options.serverlessIncompatible,
71
71
  defaultTarget: options.defaultTarget,
72
+ globalHTTPPrefix: options.globalHTTPPrefix,
72
73
  workflowQueues,
73
74
  });
74
75
  let bundled = [];