@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
  /**
5
5
  * Core function types for all wirings
@@ -23,8 +23,21 @@ import type { TypedPikkuRPC, FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-ma
23
23
  import type { RequiredSingletonServices } from '../pikku-services.gen.js';
24
24
  import type { TypedWorkflow } from '../workflow/pikku-workflow-types.gen.js';
25
25
  import type { TypedScenario, TypedPersonas } from '../scenarios/pikku-scenario-types.gen.js';
26
+ /**
27
+ * The services that live for the process — the ones built once in `createConfig`/
28
+ * `createSingletonServices` and shared by every request.
29
+ */
26
30
  export type { SingletonServices as SingletonServices };
31
+ /**
32
+ * Everything a function is handed as its first argument: the singleton services
33
+ * plus whatever is built per request. This is the type to widen when you add a
34
+ * service.
35
+ */
27
36
  export type { Services as Services };
37
+ /**
38
+ * The signed-in user as this project defines it. Reached on the wire as
39
+ * `session`, and replaced with `setSession`.
40
+ */
28
41
  export type Session = UserSession;
29
42
  /**
30
43
  * The services a wired function actually receives. The inspector records which
@@ -149,24 +162,17 @@ type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 | undefi
149
162
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
150
163
  * @returns The normalized configuration object
151
164
  *
152
- * @example
153
- * ```typescript
154
- * const createUserInput = z.object({ name: z.string(), email: z.string() })
155
- * const createUserOutput = z.object({ id: z.number() })
156
- *
157
- * const createUser = pikkuFunc({
158
- * input: createUserInput,
159
- * output: createUserOutput,
160
- * func: async ({db}, input) => {
161
- * // input is typed as { name: string, email: string }
162
- * const user = await db.users.create(input)
163
- * return { id: user.id } // must match output schema
164
- * }
165
- * })
166
- * ```
165
+ * @example snippet: sessionFunction
167
166
  */
168
167
  export declare function pikkuFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined>(config: PikkuFunctionConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc'>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
169
168
  export declare function pikkuFunc<In, Out = unknown>(func: PikkuFunction<In, Out, 'session' | 'rpc'> | PikkuFunctionConfig<In, Out, 'session' | 'rpc'>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
169
+ /**
170
+ * A `pikkuFunc` whose input and output are already the shared list shape —
171
+ * filters, sort, paging in; rows and a total out — so a listing endpoint pages
172
+ * the same way everywhere.
173
+ *
174
+ * @example snippet: listFunction
175
+ */
170
176
  export declare const pikkuListFunc: <F extends Record<string, unknown> = {}, Row = unknown, S extends string = never>(config: PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">) => PikkuFunctionConfig<ListInput<F, S>, ListOutput<Row>, "session" | "rpc">;
171
177
  /**
172
178
  * Configuration object for sessionless Pikku functions with Zod schema validation.
@@ -194,19 +200,7 @@ type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends StandardSchema
194
200
  * @param config - Function definition with `input`/`output` Zod schemas and `func`.
195
201
  * @returns The normalized configuration object
196
202
  *
197
- * @example
198
- * ```typescript
199
- * const greetInput = z.object({ name: z.string() })
200
- * const greetOutput = z.object({ message: z.string() })
201
- *
202
- * const greet = pikkuSessionlessFunc({
203
- * input: greetInput,
204
- * output: greetOutput,
205
- * func: async (_services, { name }) => {
206
- * return { message: `Hello, ${name}!` }
207
- * }
208
- * })
209
- * ```
203
+ * @example snippet: readFunction
210
204
  */
211
205
  export declare function pikkuSessionlessFunc<InputSchema extends StandardSchemaV1 | undefined = undefined, OutputSchema extends StandardSchemaV1 | undefined = undefined, RequiredServices extends SecretlessServices<Services> = WiredServices>(config: PikkuFunctionSessionlessConfigWithSchema<InputSchema, OutputSchema, 'session' | 'rpc', RequiredServices>): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'session' | 'rpc'>;
212
206
  export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices extends SecretlessServices<Services> = WiredServices>(func: PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices> | PikkuFunctionSessionlessConfig<In, Out, 'session' | 'rpc', PikkuFunctionSessionless<In, Out, 'session' | 'rpc', RequiredServices>>): PikkuFunctionConfig<In, Out, 'session' | 'rpc'>;
@@ -217,14 +211,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown, RequiredServices
217
211
  * @param func - Function definition, either direct function or configuration object
218
212
  * @returns The normalized configuration object
219
213
  *
220
- * @example
221
- * ```typescript
222
- * const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
223
- * logger.info('Starting cleanup of temporary files')
224
- * await fileSystem.deleteDirectory('/tmp/uploads')
225
- * logger.info('Cleanup completed')
226
- * })
227
- * ```
214
+ * @example snippet: cleanupFunction
228
215
  */
229
216
  export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionSessionlessConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc">;
230
217
  /**
@@ -272,8 +259,20 @@ export declare function pikkuRemoteChannelFunc<InputSchema extends StandardSchem
272
259
  declare const __addonHttp: {};
273
260
  declare const __addonChannel: {};
274
261
  declare const __addonCli: {};
262
+ /**
263
+ * Names an HTTP route an installed addon wires, so you can link or redirect to
264
+ * it without hardcoding a path the addon may move.
265
+ */
275
266
  export declare const refHTTP: <Name extends keyof typeof __addonHttp>(name: Name, options?: {
276
267
  basePath?: string;
277
268
  }) => (typeof __addonHttp)[Name];
269
+ /**
270
+ * Names a channel an installed addon wires, for connecting to it without
271
+ * hardcoding its name.
272
+ */
278
273
  export declare const refChannel: <Name extends keyof typeof __addonChannel>(name: Name) => (typeof __addonChannel)[Name];
274
+ /**
275
+ * Names a CLI command an installed addon wires, for invoking it without
276
+ * hardcoding its name.
277
+ */
279
278
  export declare const refCLI: <Name extends keyof typeof __addonCli>(name: Name) => (typeof __addonCli)[Name];
@@ -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
  * Core function types for all wirings
@@ -23,6 +23,13 @@ export const pikkuApprovalDescription = (fn) => {
23
23
  export function pikkuFunc(func) {
24
24
  return typeof func === 'function' ? { func } : func;
25
25
  }
26
+ /**
27
+ * A `pikkuFunc` whose input and output are already the shared list shape —
28
+ * filters, sort, paging in; rows and a total out — so a listing endpoint pages
29
+ * the same way everywhere.
30
+ *
31
+ * @example snippet: listFunction
32
+ */
26
33
  export const pikkuListFunc = (config) => {
27
34
  return pikkuFunc(config);
28
35
  };
@@ -36,14 +43,7 @@ export function pikkuSessionlessFunc(func) {
36
43
  * @param func - Function definition, either direct function or configuration object
37
44
  * @returns The normalized configuration object
38
45
  *
39
- * @example
40
- * ```typescript
41
- * const cleanupTempFiles = pikkuVoidFunc(async ({fileSystem, logger}) => {
42
- * logger.info('Starting cleanup of temporary files')
43
- * await fileSystem.deleteDirectory('/tmp/uploads')
44
- * logger.info('Cleanup completed')
45
- * })
46
- * ```
46
+ * @example snippet: cleanupFunction
47
47
  */
48
48
  export const pikkuVoidFunc = (func) => {
49
49
  return typeof func === 'function' ? { func } : func;
@@ -106,11 +106,23 @@ export function pikkuRemoteChannelFunc(config) {
106
106
  const __addonHttp = {};
107
107
  const __addonChannel = {};
108
108
  const __addonCli = {};
109
+ /**
110
+ * Names an HTTP route an installed addon wires, so you can link or redirect to
111
+ * it without hardcoding a path the addon may move.
112
+ */
109
113
  export const refHTTP = (name, options) => {
110
114
  const contract = __addonHttp[name];
111
115
  return (options?.basePath !== undefined
112
116
  ? { ...contract, basePath: options.basePath }
113
117
  : contract);
114
118
  };
119
+ /**
120
+ * Names a channel an installed addon wires, for connecting to it without
121
+ * hardcoding its name.
122
+ */
115
123
  export const refChannel = (name) => __addonChannel[name];
124
+ /**
125
+ * Names a CLI command an installed addon wires, for invoking it without
126
+ * hardcoding its name.
127
+ */
116
128
  export const refCLI = (name) => __addonCli[name];
@@ -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 metaData from './pikku-functions-meta.gen.json' with { type: 'json' };
@@ -94,25 +94,6 @@
94
94
  "inputHash": "0d9fecc6",
95
95
  "outputHash": "53f9b0f4"
96
96
  },
97
- "FabricDeployPlan": {
98
- "pikkuFuncId": "FabricDeployPlan",
99
- "functionType": "user",
100
- "funcWrapper": "pikkuSessionlessFunc",
101
- "sessionless": true,
102
- "name": "FabricDeployPlan",
103
- "inputSchemaName": "FabricDeployPlanInput",
104
- "outputSchemaName": "FabricDeployPlanOutput",
105
- "inputs": [
106
- "FabricDeployPlanInput"
107
- ],
108
- "outputs": [
109
- "FabricDeployPlanOutput"
110
- ],
111
- "implementationHash": "5b2993ff2b99bde8",
112
- "contractHash": "1f19149a5a41398e",
113
- "inputHash": "8fd1bbb5",
114
- "outputHash": "c3eaf5b9"
115
- },
116
97
  "FabricDeployApply": {
117
98
  "pikkuFuncId": "FabricDeployApply",
118
99
  "functionType": "user",
@@ -127,10 +108,10 @@
127
108
  "outputs": [
128
109
  "FabricDeployApplyOutput"
129
110
  ],
130
- "implementationHash": "45f5a8926e0bbd89",
131
- "contractHash": "a3efc7c947c40c34",
132
- "inputHash": "eb0e905e",
133
- "outputHash": "0cc6a239"
111
+ "implementationHash": "29af90c2e0014ec5",
112
+ "contractHash": "c6880cdb39fc7786",
113
+ "inputHash": "06fcf5de",
114
+ "outputHash": "8133c760"
134
115
  },
135
116
  "FabricDomainsAdd": {
136
117
  "pikkuFuncId": "FabricDomainsAdd",
@@ -222,7 +203,7 @@
222
203
  "outputs": [
223
204
  "FabricInitOutput"
224
205
  ],
225
- "implementationHash": "af5225360e5de4f9",
206
+ "implementationHash": "07d961208ba099c1",
226
207
  "contractHash": "b2e147aae8fa11dc",
227
208
  "inputHash": "05039012",
228
209
  "outputHash": "57ad379a"
@@ -241,7 +222,7 @@
241
222
  "outputs": [
242
223
  "FabricLinkOutput"
243
224
  ],
244
- "implementationHash": "428e661fe3b9b091",
225
+ "implementationHash": "8055b31d4f51883b",
245
226
  "contractHash": "1385559220019a47",
246
227
  "inputHash": "28003777",
247
228
  "outputHash": "41a4d17a"
@@ -393,10 +374,10 @@
393
374
  "outputs": [
394
375
  "FabricSecretsRotateOutput"
395
376
  ],
396
- "implementationHash": "346816bed87deec6",
397
- "contractHash": "ea64632c9e870545",
377
+ "implementationHash": "7276d4bd40963325",
378
+ "contractHash": "431c9b05e828f3f5",
398
379
  "inputHash": "c4a580d9",
399
- "outputHash": "4cc0b805"
380
+ "outputHash": "d1cc036e"
400
381
  },
401
382
  "FabricSecretsSet": {
402
383
  "pikkuFuncId": "FabricSecretsSet",
@@ -685,7 +666,7 @@
685
666
  "DeployApplyInput"
686
667
  ],
687
668
  "outputs": [],
688
- "implementationHash": "32a1425d0427ac15",
669
+ "implementationHash": "c4590df513ebc614",
689
670
  "contractHash": "e095a77f7d02be4e",
690
671
  "inputHash": "344acae5",
691
672
  "outputHash": "2b614932"
@@ -717,7 +698,7 @@
717
698
  "DeployPlanInput"
718
699
  ],
719
700
  "outputs": [],
720
- "implementationHash": "ae081f4d2d8ec0ac",
701
+ "implementationHash": "9fc16e03881100e1",
721
702
  "contractHash": "27db78888aa7bb8b",
722
703
  "inputHash": "8137f6d2",
723
704
  "outputHash": "e6e7d2ab"
@@ -737,6 +718,25 @@
737
718
  "remote": true,
738
719
  "implementationHash": "2bf1484d363794f3"
739
720
  },
721
+ "doc": {
722
+ "pikkuFuncId": "doc",
723
+ "functionType": "user",
724
+ "funcWrapper": "pikkuSessionlessFunc",
725
+ "sessionless": true,
726
+ "name": "doc",
727
+ "inputSchemaName": "DocInput",
728
+ "outputSchemaName": "DocOutput",
729
+ "inputs": [
730
+ "DocInput"
731
+ ],
732
+ "outputs": [
733
+ "DocOutput"
734
+ ],
735
+ "implementationHash": "6f2699ce4f87e313",
736
+ "contractHash": "3ee018d0c324022f",
737
+ "inputHash": "897f55af",
738
+ "outputHash": "98fc9036"
739
+ },
740
740
  "pikkuEmailsInit": {
741
741
  "pikkuFuncId": "pikkuEmailsInit",
742
742
  "functionType": "user",
@@ -1692,9 +1692,9 @@
1692
1692
  "PikkuSkillsInstallInput"
1693
1693
  ],
1694
1694
  "outputs": [],
1695
- "implementationHash": "fdc12152733c53ec",
1696
- "contractHash": "3eb84a1491c58f86",
1697
- "inputHash": "8dfd97bd",
1695
+ "implementationHash": "6e454d000a5dd89f",
1696
+ "contractHash": "a34372d753be78d0",
1697
+ "inputHash": "991904e6",
1698
1698
  "outputHash": "2486db2e"
1699
1699
  },
1700
1700
  "pikkuUpdate": {
@@ -2322,7 +2322,7 @@
2322
2322
  "PikkuFunctionTypesSplitInput"
2323
2323
  ],
2324
2324
  "outputs": [],
2325
- "implementationHash": "9655e4ec7b5ee088",
2325
+ "implementationHash": "23ec1a1938035fef",
2326
2326
  "middleware": [
2327
2327
  {
2328
2328
  "type": "wire",
@@ -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 and register functions used by RPCs */
5
5
  import { addFunction } from '@pikku/core/function';
@@ -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/gateway` 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/gateway` 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
  * Gateway-specific type definitions for tree-shaking optimization
@@ -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
  * Gateway-specific type definitions for tree-shaking optimization
@@ -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/http` 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/http` 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
  * HTTP-specific type definitions for tree-shaking optimization
@@ -25,6 +25,8 @@ type HTTPWiring<In, Out, Route extends string> = CoreHTTPFunctionWiring<In, Out,
25
25
  * @template Out - Output type for the HTTP wiring
26
26
  * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
27
27
  * @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
28
+ *
29
+ * @example snippet: httpSingleRoute
28
30
  */
29
31
  export declare const wireHTTP: <In, Out, Route extends string>(httpWiring: HTTPWiring<In, Out, Route> & AssertHTTPWiringParams<In, Route>) => void;
30
32
  /**
@@ -67,6 +69,8 @@ type TypedWireHTTPRoutesConfig = TypedHTTPRoutesGroupConfig & {
67
69
  };
68
70
  /**
69
71
  * Type-safe helper for defining route contracts that can be composed.
72
+ *
73
+ * @example snippet: wireHttp
70
74
  */
71
75
  export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(routes: T): TypedHTTPRouteContract<T>;
72
76
  export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: TypedHTTPRoutesGroupConfig & {
@@ -74,6 +78,8 @@ export declare function defineHTTPRoutes<T extends TypedHTTPRouteMap>(config: Ty
74
78
  }): TypedHTTPRouteContract<T>;
75
79
  /**
76
80
  * Wires multiple HTTP routes from a nested map or array configuration.
81
+ *
82
+ * @example snippet: httpRoutesWiring
77
83
  */
78
84
  export declare const wireHTTPRoutes: (config: TypedWireHTTPRoutesConfig) => void;
79
85
  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
  * HTTP-specific type definitions for tree-shaking optimization
@@ -12,6 +12,8 @@ import { wireHTTP as wireHTTPCore, wireHTTPRoutes as wireHTTPRoutesCore, defineH
12
12
  * @template Out - Output type for the HTTP wiring
13
13
  * @template Route - String literal type for the HTTP path (e.g., "/users/:id")
14
14
  * @param httpWiring - HTTP wiring definition with handler, method, and optional middleware
15
+ *
16
+ * @example snippet: httpSingleRoute
15
17
  */
16
18
  export const wireHTTP = (httpWiring) => {
17
19
  wireHTTPCore(httpWiring);
@@ -21,6 +23,8 @@ export function defineHTTPRoutes(configOrRoutes) {
21
23
  }
22
24
  /**
23
25
  * Wires multiple HTTP routes from a nested map or array configuration.
26
+ *
27
+ * @example snippet: httpRoutesWiring
24
28
  */
25
29
  export const wireHTTPRoutes = (config) => {
26
30
  wireHTTPRoutesCore(config);
@@ -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/mcp` 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/mcp` 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
  * MCP-specific type definitions for tree-shaking optimization
@@ -33,6 +33,8 @@ type MCPPromptWiring<In> = CoreMCPPrompt<PikkuFunctionConfig<In, MCPPromptRespon
33
33
  * @template In - Input type for the resource request
34
34
  * @template URI - URI template string for compile-time parameter validation
35
35
  * @param mcpResource - MCP resource definition with data provider function
36
+ *
37
+ * @example snippet: mcpResource
36
38
  */
37
39
  export declare const wireMCPResource: <In, URI extends string>(mcpResource: MCPResourceWiring<In, URI> & AssertMCPResourceURIParams<In, URI>) => void;
38
40
  /**
@@ -41,6 +43,8 @@ export declare const wireMCPResource: <In, URI extends string>(mcpResource: MCPR
41
43
  *
42
44
  * @template In - Input type for the prompt parameters
43
45
  * @param mcpPrompt - MCP prompt definition with template function
46
+ *
47
+ * @example snippet: mcpPrompt
44
48
  */
45
49
  export declare const wireMCPPrompt: <In>(mcpPrompt: MCPPromptWiring<In>) => void;
46
50
  /**
@@ -62,6 +66,8 @@ type MCPPromptFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
62
66
  * @template In - Input type for the prompt parameters (inferred from schema if provided)
63
67
  * @param func - Function definition, either direct function or configuration object
64
68
  * @returns The unwrapped function for internal use
69
+ *
70
+ * @example snippet: mcpPrompt
65
71
  */
66
72
  export declare function pikkuMCPPromptFunc<InputSchema extends StandardSchemaV1>(config: MCPPromptFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPPromptResponse, 'mcp' | 'rpc'>;
67
73
  export declare function pikkuMCPPromptFunc<In>(func: PikkuFunctionSessionless<In, MCPPromptResponse, 'mcp' | 'rpc'> | {
@@ -93,6 +99,8 @@ type MCPToolFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
93
99
  * @template In - Input type for the tool invocation (inferred from schema if provided)
94
100
  * @param func - Function definition, either direct function or configuration object
95
101
  * @returns The unwrapped function for internal use
102
+ *
103
+ * @example snippet: mcpSingleTool
96
104
  */
97
105
  export declare function pikkuMCPToolFunc<InputSchema extends StandardSchemaV1>(config: MCPToolFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPToolResponse, 'mcp' | 'rpc'>;
98
106
  export declare function pikkuMCPToolFunc<In>(func: PikkuFunctionSessionless<In, MCPToolResponse, 'mcp' | 'rpc'> | {
@@ -124,6 +132,8 @@ type MCPResourceFuncConfigWithSchema<InputSchema extends StandardSchemaV1> = {
124
132
  * @template In - Input type for the resource request (inferred from schema if provided)
125
133
  * @param func - Function definition, either direct function or configuration object
126
134
  * @returns The unwrapped function for internal use
135
+ *
136
+ * @example snippet: mcpResource
127
137
  */
128
138
  export declare function pikkuMCPResourceFunc<InputSchema extends StandardSchemaV1>(config: MCPResourceFuncConfigWithSchema<InputSchema>): PikkuFunctionConfig<InferSchemaOutput<InputSchema>, MCPResourceResponse, 'mcp' | 'rpc'>;
129
139
  export declare function pikkuMCPResourceFunc<In>(func: PikkuFunctionSessionless<In, MCPResourceResponse, 'mcp' | 'rpc'> | {
@@ -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
  * MCP-specific type definitions for tree-shaking optimization
@@ -12,6 +12,8 @@ import { wireMCPResource as wireMCPResourceCore, wireMCPPrompt as wireMCPPromptC
12
12
  * @template In - Input type for the resource request
13
13
  * @template URI - URI template string for compile-time parameter validation
14
14
  * @param mcpResource - MCP resource definition with data provider function
15
+ *
16
+ * @example snippet: mcpResource
15
17
  */
16
18
  export const wireMCPResource = (mcpResource) => {
17
19
  wireMCPResourceCore(mcpResource);
@@ -22,6 +24,8 @@ export const wireMCPResource = (mcpResource) => {
22
24
  *
23
25
  * @template In - Input type for the prompt parameters
24
26
  * @param mcpPrompt - MCP prompt definition with template function
27
+ *
28
+ * @example snippet: mcpPrompt
25
29
  */
26
30
  export const wireMCPPrompt = (mcpPrompt) => {
27
31
  wireMCPPromptCore(mcpPrompt);
@@ -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/middleware` 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/middleware` 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
  * Middleware type definitions and registration for all wirings
@@ -9,7 +9,7 @@ import { CorePikkuChannelMiddleware, CorePikkuChannelMiddlewareFactory } from '@
9
9
  import type { PikkuAgentMiddlewareHooks } from '@pikku/core/agent';
10
10
  import type { Services, SingletonServices } from '../function/pikku-function-types.gen.js';
11
11
  import type { RequiredSingletonServices } from '../pikku-services.gen.js';
12
- export { cors } from '@pikku/core/middleware';
12
+ export { cors, authAPIKey, authBearer, authCookie } from '@pikku/core/middleware';
13
13
  export type { MiddlewarePriority };
14
14
  /**
15
15
  * Derived here rather than imported: nothing outside a generated leaf ever
@@ -66,18 +66,7 @@ export declare const pikkuMiddleware: <RequiredServices extends SingletonService
66
66
  * Factory function for creating middleware factories
67
67
  * Use this when your middleware needs configuration/input parameters
68
68
  *
69
- * @example
70
- * ```typescript
71
- * export const logMiddleware = pikkuMiddlewareFactory<LogOptions>(({
72
- * message,
73
- * level = 'info'
74
- * }) => {
75
- * return pikkuMiddleware(async ({ logger }, next) => {
76
- * logger[level](message)
77
- * await next()
78
- * })
79
- * })
80
- * ```
69
+ * @example snippet: middlewareFactory
81
70
  */
82
71
  export declare const pikkuMiddlewareFactory: <In = any>(factory: (input: In) => PikkuMiddleware) => ((input: In) => PikkuMiddleware);
83
72
  /**
@@ -93,8 +82,7 @@ export declare const addGlobalMiddleware: (middleware: PikkuMiddleware[]) => voi
93
82
  /**
94
83
  * Tag-scoped middleware. Applies to any wiring that carries the matching tag.
95
84
  *
96
- * @example
97
- * addTagMiddleware('admin', [adminMiddleware])
85
+ * @example snippet: tagMiddleware
98
86
  */
99
87
  export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware[]) => void;
100
88
  /**
@@ -107,18 +95,39 @@ export declare const addTagMiddleware: (tag: string, middleware: PikkuMiddleware
107
95
  * @param routeOrMiddleware - Either a global middleware array or a route pattern string
108
96
  * @param middleware - The middleware array to apply when a route pattern is specified
109
97
  *
110
- * @example
111
- * ```typescript
112
- * // Add global HTTP middleware
113
- * addHTTPMiddleware([authMiddleware, loggingMiddleware])
114
- *
115
- * // Add route-specific middleware
116
- * addHTTPMiddleware('/api/admin/*', [adminAuthMiddleware])
117
- * ```
98
+ * @example snippet: httpMiddleware
118
99
  */
119
100
  export declare const addHTTPMiddleware: (routeOrMiddleware: PikkuMiddleware[] | string, middleware?: PikkuMiddleware[]) => void;
101
+ /**
102
+ * The shape of channel middleware — it runs around the connection and its
103
+ * messages rather than around a single request.
104
+ */
120
105
  export type PikkuChannelMiddleware<RequiredServices extends Services = Services, Event = unknown> = CorePikkuChannelMiddleware<RequiredServices, Event>;
106
+ /**
107
+ * Declares middleware for a channel — it runs around the connection and its
108
+ * messages rather than around a single request.
109
+ *
110
+ * @example snippet: channelMiddleware
111
+ */
121
112
  export declare const pikkuChannelMiddleware: <RequiredServices extends Services = Services, Event = unknown>(middleware: PikkuChannelMiddleware<RequiredServices, Event>) => PikkuChannelMiddleware<RequiredServices, Event>;
113
+ /**
114
+ * Declares channel middleware that takes options, so one definition can be
115
+ * wired several times with different configuration.
116
+ *
117
+ * @example snippet: channelMiddlewareFactory
118
+ */
122
119
  export declare const pikkuChannelMiddlewareFactory: <In = any>(factory: CorePikkuChannelMiddlewareFactory<In>) => CorePikkuChannelMiddlewareFactory<In>;
120
+ /**
121
+ * Attaches channel middleware to every channel carrying the given tag, so the
122
+ * channels themselves stay free of the wiring.
123
+ *
124
+ * @example snippet: addChannelMiddleware
125
+ */
123
126
  export declare const addChannelMiddleware: (tag: string, middleware: PikkuChannelMiddleware[]) => CorePikkuChannelMiddleware[];
127
+ /**
128
+ * Declares middleware for an agent run — hooks around the model call, its tool
129
+ * calls and the run's state.
130
+ *
131
+ * @example snippet: agentMiddleware
132
+ */
124
133
  export declare const pikkuAgentMiddleware: <State extends Record<string, unknown> = Record<string, unknown>, RequiredServices extends SingletonServices = WiredSingletonServices>(hooks: PikkuAgentMiddlewareHooks<State, RequiredServices>) => PikkuAgentMiddlewareHooks<State, RequiredServices>;