@pikku/cli 0.12.145 → 0.12.152

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 (551) hide show
  1. package/console-app/assets/HelpPanel-CxjgE40i.js +1 -0
  2. package/console-app/assets/{abnfDiagram-N423BO3Z-BIPJyOId.js → abnfDiagram-VCTEODGH-UPW1PlxM.js} +1 -1
  3. package/console-app/assets/architecture-7GRP2DOG-BQN972Vc.js +1 -0
  4. package/console-app/assets/architectureDiagram-5GKGNRK7-B3XFrvZk.js +36 -0
  5. package/console-app/assets/blockDiagram-I7D4REHJ-Ca0v9UJQ.js +129 -0
  6. package/console-app/assets/c4Diagram-7LVT6UL2-CLewVsj_.js +38 -0
  7. package/console-app/assets/channel-B8xtOmL3.js +1 -0
  8. package/console-app/assets/chunk-4HAMMTFA-BwhbhOD9.js +62 -0
  9. package/console-app/assets/{chunk-NSK5VX7P-VK0slsok.js → chunk-75Z2AOVW-C7nAgNk0.js} +1 -1
  10. package/console-app/assets/chunk-DU6HZSFF-D4yYAcHt.js +127 -0
  11. package/console-app/assets/{chunk-2GRJ4B5K-pBREt5-Y.js → chunk-F27PBJKO-UHllOPps.js} +1 -1
  12. package/console-app/assets/{chunk-KEIR6QF5-BICK3FdT.js → chunk-FOHPRMQF-CoA4358r.js} +9 -9
  13. package/console-app/assets/chunk-GMAD6QVW-C0l_vm7T.js +72 -0
  14. package/console-app/assets/chunk-GVQU2GXP-h-H2Oird.js +1 -0
  15. package/console-app/assets/{chunk-5RXB4S5H-wo8Xtqiv.js → chunk-IMKFNOWR-DJ_W9CSg.js} +2 -2
  16. package/console-app/assets/chunk-L3NEJ4N5-Ce9oniwE.js +1 -0
  17. package/console-app/assets/chunk-OSK3NFVY-CdGE5qxS.js +10 -0
  18. package/console-app/assets/chunk-P2QGCYS3-DK1pHDdz.js +1 -0
  19. package/console-app/assets/{chunk-KBJHAD2P-PiPaopal.js → chunk-POPQ4Y6H-DjevEFNo.js} +1 -1
  20. package/console-app/assets/{chunk-4I5QYGJK-SmJ1Rqsn.js → chunk-PWAF6VOD-BVF5N1No.js} +1 -1
  21. package/console-app/assets/chunk-SHT3W25Y-BX8We-wN.js +168 -0
  22. package/console-app/assets/{chunk-6Q2QTUOP-B6uqaxr0.js → chunk-SVP7TREG-Cl0GgAPC.js} +1 -1
  23. package/console-app/assets/{chunk-GF5L2VYU-Cw7tsTe6.js → chunk-TICWLB2K-IWZAWDhu.js} +2 -2
  24. package/console-app/assets/chunk-XXDRQBXY-CGWcS5Ol.js +1 -0
  25. package/console-app/assets/classDiagram-ZZMXUADV-OGsmOlmO.js +1 -0
  26. package/console-app/assets/classDiagram-v2-VYDZK3BY-OGsmOlmO.js +1 -0
  27. package/console-app/assets/cose-bilkent-JH36ORCC-GsQ0JAnL.js +1 -0
  28. package/console-app/assets/cynefin-OW5HDTMX-hZsAZp_5.js +1 -0
  29. package/console-app/assets/{cynefinDiagram-MW4NZA55-BzFWEf8Y.js → cynefinDiagram-5FMLGOSQ-CsyMovx1.js} +1 -1
  30. package/console-app/assets/cytoscape.esm-B-1iW2ft.js +321 -0
  31. package/console-app/assets/dagre-BP8XEFz-.js +1 -0
  32. package/console-app/assets/dagre-GXQ25YYZ-Jg5285rx.js +4 -0
  33. package/console-app/assets/{diagram-7IWD3JNH-C58VaHJt.js → diagram-S7CK7UJ4-n9JiR8HK.js} +4 -4
  34. package/console-app/assets/{diagram-UB23O5K3-CmRNd5vm.js → diagram-UQ7AKVKN-Cde-dgbI.js} +1 -1
  35. package/console-app/assets/{diagram-B4RE2ZJO-B3w3TcXn.js → diagram-VSXAHHWV-CPZUg4FP.js} +1 -1
  36. package/console-app/assets/{diagram-Q27KOJAE-7oaP3D-d.js → diagram-VX7I27RA-B2rCDWvn.js} +1 -1
  37. package/console-app/assets/{diagram-LBJQPF4R-L1ZkDsab.js → diagram-Z3DM3KII-UwO0hte3.js} +1 -1
  38. package/console-app/assets/{ebnfDiagram-BXEA7PRR-D0rxzLaa.js → ebnfDiagram-PWID7BFC-BGJ_PBlS.js} +1 -1
  39. package/console-app/assets/erDiagram-RLTQ6QDP-CKsTScr3.js +99 -0
  40. package/console-app/assets/eventmodeling-NTZA5JFV-CnZOTLz3.js +1 -0
  41. package/console-app/assets/flowDiagram-HODETNUW-TYMCrte8.js +1 -0
  42. package/console-app/assets/ganttDiagram-EL5Y4UJY-koeTkIEA.js +292 -0
  43. package/console-app/assets/gitGraph-4MIJSDKK-DyRPbcM4.js +1 -0
  44. package/console-app/assets/{gitGraphDiagram-DS77QQ5N-JaW7OYCY.js → gitGraphDiagram-WWUBYQGX-DSIejrYw.js} +1 -1
  45. package/console-app/assets/graphlib-BpQ_697T.js +1 -0
  46. package/console-app/assets/index-BbJGr-r1.css +1 -0
  47. package/console-app/assets/index-Du9_fRSw.js +262 -0
  48. package/console-app/assets/info-A6RAGUB7-C63f9an_.js +1 -0
  49. package/console-app/assets/{infoDiagram-6WML65LV-DIbMcTbW.js → infoDiagram-27XIBGKW-Dz5gMcUF.js} +1 -1
  50. package/console-app/assets/{ishikawaDiagram-WSZJBQD7-mozqgfxi.js → ishikawaDiagram-5VMMS53U-m-nTAZTH.js} +1 -1
  51. package/console-app/assets/{journeyDiagram-NVQOT4AX-CKDrjPz5.js → journeyDiagram-3NMN7TZE-C7mjFY7i.js} +2 -2
  52. package/console-app/assets/{kanban-definition-27J2QSJJ-B9shPbST.js → kanban-definition-UXKFOSKX-Cm7PqOOP.js} +2 -2
  53. package/console-app/assets/{katex-CXMH3UgJ.js → katex-ZlcWpGUi.js} +2 -2
  54. package/console-app/assets/{line-DLrnl2PN.js → line-RZNRGurC.js} +1 -1
  55. package/console-app/assets/linear-C2IGWMlF.js +1 -0
  56. package/console-app/assets/{mermaid-parser.core-ElI_yw4f.js → mermaid-parser.core-DN1yDqgB.js} +3 -3
  57. package/console-app/assets/mermaid.core-DDRs3TbC.js +44 -0
  58. package/console-app/assets/{mindmap-definition-FAOFIHXS-BTvmLZE7.js → mindmap-definition-YA3MSWOX-o6riOwlF.js} +1 -1
  59. package/console-app/assets/packet-AYTQ26CC-B89F6gXG.js +1 -0
  60. package/console-app/assets/{pegDiagram-VL7TDLO6-1hBiUSmO.js → pegDiagram-XKGWAZYB-BQ1AAIaV.js} +1 -1
  61. package/console-app/assets/pie-WAS4IAKB-CzuwQlQz.js +1 -0
  62. package/console-app/assets/{pieDiagram-7S7Q4E2Y-vvgYfdFq.js → pieDiagram-E7YTZNPT-DlcGHWGT.js} +1 -1
  63. package/console-app/assets/{quadrantDiagram-CIZ2JOQS-B_emxK6O.js → quadrantDiagram-AXDQQJYC-DdITwqw-.js} +1 -1
  64. package/console-app/assets/radar-RG4KPBEZ-DlJ29jAN.js +1 -0
  65. package/console-app/assets/railroad-74A4TZTK-BL49fdM8.js +1 -0
  66. package/console-app/assets/railroad-abnf-HS5TGJTU-D9Ej_sin.js +1 -0
  67. package/console-app/assets/railroad-ebnf-LZEXJU2U-CjzlC3qv.js +1 -0
  68. package/console-app/assets/railroad-peg-WCYAUIDC-BPa6lIrj.js +1 -0
  69. package/console-app/assets/{railroadDiagram-AXF67PYL-IXXj_KlB.js → railroadDiagram-O6MQD6OU-BNgQGtF5.js} +1 -1
  70. package/console-app/assets/{requirementDiagram-LRYGKXZP-B15ZEbec.js → requirementDiagram-BXWQKSXE-48lE_WeD.js} +2 -2
  71. package/console-app/assets/{sankeyDiagram-W5VNT64P-w-sj_WN8.js → sankeyDiagram-P5KCCOFB-WmTardCP.js} +1 -1
  72. package/console-app/assets/{sequenceDiagram-SI44F4Z6-BP1UgEbX.js → sequenceDiagram-WJ2MYXX4-Bd5cHDMs.js} +1 -1
  73. package/console-app/assets/src-BTXg_NtK.js +1 -0
  74. package/console-app/assets/{stateDiagram-OKZ733FA-DE4L-y3n.js → stateDiagram-D77RDMKH-DBoCkqGv.js} +1 -1
  75. package/console-app/assets/stateDiagram-v2-MP3YSRHH-BLbaZawL.js +1 -0
  76. package/console-app/assets/swimlanes-42K2YHIH-lecUPBaK.js +1 -0
  77. package/console-app/assets/swimlanesDiagram-VR7AAH4N-CM_5HS_7.js +8 -0
  78. package/console-app/assets/{timeline-definition-Z64GVDOM-Cc8M2qee.js → timeline-definition-24CTP7MA-CWq0OWm1.js} +1 -1
  79. package/console-app/assets/treeView-Q6P3EWNA-C7lEeqUz.js +1 -0
  80. package/console-app/assets/treemap-WGGIJYW6-Bkx2DAoI.js +1 -0
  81. package/console-app/assets/{vennDiagram-T6HMQDX7-dpGyGzMg.js → vennDiagram-4TSXK5OY-Bw_kGRL3.js} +1 -1
  82. package/console-app/assets/wardley-WFR3VGLG-V0zki2L0.js +1 -0
  83. package/console-app/assets/{wardleyDiagram-T6FBY63Y-CBvRf8GJ.js → wardleyDiagram-VM6X3IG4-C5vrwEHM.js} +1 -1
  84. package/console-app/assets/{xychartDiagram-ELKLHX3M-UlPqx-ve.js → xychartDiagram-S5SC5T6Z-B9uA0moC.js} +3 -3
  85. package/console-app/index.html +2 -3
  86. package/dist/.pikku/addon/index.d.ts +1 -1
  87. package/dist/.pikku/addon/index.js +1 -1
  88. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  89. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  90. package/dist/.pikku/agent/index.d.ts +1 -1
  91. package/dist/.pikku/agent/index.js +1 -1
  92. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
  93. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  94. package/dist/.pikku/analytics/index.d.ts +7 -0
  95. package/dist/.pikku/analytics/index.js +7 -0
  96. package/dist/.pikku/analytics/pikku-analytics-types.gen.d.ts +5 -0
  97. package/dist/.pikku/analytics/pikku-analytics-types.gen.js +4 -0
  98. package/dist/.pikku/auth/auth.types.d.ts +1 -1
  99. package/dist/.pikku/auth/auth.types.js +1 -1
  100. package/dist/.pikku/auth/index.d.ts +1 -1
  101. package/dist/.pikku/auth/index.js +1 -1
  102. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
  103. package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
  104. package/dist/.pikku/channel/index.d.ts +1 -1
  105. package/dist/.pikku/channel/index.js +1 -1
  106. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
  107. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  108. package/dist/.pikku/cli/index.d.ts +1 -1
  109. package/dist/.pikku/cli/index.js +1 -1
  110. package/dist/.pikku/cli/pikku-cli-channel.d.ts +7 -7
  111. package/dist/.pikku/cli/pikku-cli-channel.js +36 -1
  112. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  113. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  114. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  115. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  116. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +207 -0
  117. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +2 -2
  118. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  119. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  120. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +207 -0
  121. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  122. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  123. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  124. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  125. package/dist/.pikku/error/index.d.ts +1 -1
  126. package/dist/.pikku/error/index.js +1 -1
  127. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  128. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  129. package/dist/.pikku/function/index.d.ts +1 -1
  130. package/dist/.pikku/function/index.js +1 -1
  131. package/dist/.pikku/function/pikku-function-types.gen.d.ts +8 -7
  132. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  133. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  134. package/dist/.pikku/function/pikku-functions-meta.gen.json +253 -26
  135. package/dist/.pikku/function/pikku-functions.gen.js +9 -1
  136. package/dist/.pikku/gateway/index.d.ts +1 -1
  137. package/dist/.pikku/gateway/index.js +1 -1
  138. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  139. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  140. package/dist/.pikku/http/index.d.ts +1 -1
  141. package/dist/.pikku/http/index.js +1 -1
  142. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  143. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  144. package/dist/.pikku/mcp/index.d.ts +1 -1
  145. package/dist/.pikku/mcp/index.js +1 -1
  146. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  147. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  148. package/dist/.pikku/middleware/index.d.ts +1 -1
  149. package/dist/.pikku/middleware/index.js +1 -1
  150. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
  151. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
  152. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  153. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  154. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  155. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  156. package/dist/.pikku/pikku-services.gen.d.ts +5 -1
  157. package/dist/.pikku/pikku-services.gen.js +4 -0
  158. package/dist/.pikku/queue/index.d.ts +1 -1
  159. package/dist/.pikku/queue/index.js +1 -1
  160. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  161. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  162. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  163. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  164. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  165. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  166. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +11 -0
  167. package/dist/.pikku/scenarios/index.d.ts +1 -1
  168. package/dist/.pikku/scenarios/index.js +1 -1
  169. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +1 -1
  170. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  171. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  172. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  173. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  174. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  175. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  176. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  177. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  178. package/dist/.pikku/scheduler/index.d.ts +1 -1
  179. package/dist/.pikku/scheduler/index.js +1 -1
  180. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  181. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  182. package/dist/.pikku/schemas/register.gen.js +35 -1
  183. package/dist/.pikku/schemas/schemas/FabricChangesAskInput.schema.json +1 -0
  184. package/dist/.pikku/schemas/schemas/FabricChangesAskOutput.schema.json +1 -0
  185. package/dist/.pikku/schemas/schemas/FabricChangesClaimInput.schema.json +1 -0
  186. package/dist/.pikku/schemas/schemas/FabricChangesClaimOutput.schema.json +1 -0
  187. package/dist/.pikku/schemas/schemas/FabricChangesDoneInput.schema.json +1 -0
  188. package/dist/.pikku/schemas/schemas/FabricChangesDoneOutput.schema.json +1 -0
  189. package/dist/.pikku/schemas/schemas/FabricChangesFileInput.schema.json +1 -0
  190. package/dist/.pikku/schemas/schemas/FabricChangesFileOutput.schema.json +1 -0
  191. package/dist/.pikku/schemas/schemas/FabricChangesListInput.schema.json +1 -0
  192. package/dist/.pikku/schemas/schemas/FabricChangesListOutput.schema.json +1 -0
  193. package/dist/.pikku/schemas/schemas/FabricChangesShotInput.schema.json +1 -0
  194. package/dist/.pikku/schemas/schemas/FabricChangesShotOutput.schema.json +1 -0
  195. package/dist/.pikku/schemas/schemas/FabricChangesShowInput.schema.json +1 -0
  196. package/dist/.pikku/schemas/schemas/FabricChangesShowOutput.schema.json +1 -0
  197. package/dist/.pikku/schemas/schemas/FabricDeployApplyOutput.schema.json +1 -1
  198. package/dist/.pikku/schemas/schemas/FabricFindingsListOutput.schema.json +1 -1
  199. package/dist/.pikku/schemas/schemas/FabricProjectsListOutput.schema.json +1 -1
  200. package/dist/.pikku/schemas/schemas/FabricPublishOutput.schema.json +1 -1
  201. package/dist/.pikku/schemas/schemas/FabricRollbackOutput.schema.json +1 -1
  202. package/dist/.pikku/schemas/schemas/FabricSecretsDeleteOutput.schema.json +1 -1
  203. package/dist/.pikku/schemas/schemas/FabricSecretsRotateOutput.schema.json +1 -1
  204. package/dist/.pikku/schemas/schemas/PikkuAnalyticsOutput.schema.json +1 -0
  205. package/dist/.pikku/schemas/schemas/PikkuFeatureFlagsScaffoldOutput.schema.json +1 -0
  206. package/dist/.pikku/schemas/schemas/PikkuFlagsInput.schema.json +1 -0
  207. package/dist/.pikku/scopes/index.d.ts +2 -1
  208. package/dist/.pikku/scopes/index.js +2 -1
  209. package/dist/.pikku/scopes/pikku-flags-meta.gen.json +1 -0
  210. package/dist/.pikku/scopes/pikku-flags.gen.d.ts +41 -0
  211. package/dist/.pikku/scopes/pikku-flags.gen.js +34 -0
  212. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  213. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  214. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +2 -1
  215. package/dist/.pikku/scopes/pikku-scope-types.gen.js +2 -1
  216. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  217. package/dist/.pikku/secrets/index.d.ts +1 -1
  218. package/dist/.pikku/secrets/index.js +1 -1
  219. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  220. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  221. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  222. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  223. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  224. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  225. package/dist/.pikku/setup/index.d.ts +1 -1
  226. package/dist/.pikku/setup/index.js +1 -1
  227. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +2 -2
  228. package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
  229. package/dist/.pikku/trigger/index.d.ts +1 -1
  230. package/dist/.pikku/trigger/index.js +1 -1
  231. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  232. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  233. package/dist/.pikku/variables/index.d.ts +1 -1
  234. package/dist/.pikku/variables/index.js +1 -1
  235. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  236. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  237. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  238. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  239. package/dist/.pikku/workflow/index.d.ts +1 -1
  240. package/dist/.pikku/workflow/index.js +1 -1
  241. package/dist/.pikku/workflow/meta/allWorkflow.gen.json +42 -6
  242. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  243. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  244. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  245. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  246. package/dist/bin/pikku-bin.mjs +2 -2
  247. package/dist/src/deploy/analyzer/analyzer.d.ts +1 -1
  248. package/dist/src/deploy/analyzer/analyzer.js +40 -2
  249. package/dist/src/deploy/analyzer/grouping.d.ts +41 -7
  250. package/dist/src/deploy/analyzer/grouping.js +76 -2
  251. package/dist/src/deploy/build-pipeline.js +4 -0
  252. package/dist/src/fabric/fabric-commands.d.ts +360 -138
  253. package/dist/src/fabric/fabric-commands.js +166 -0
  254. package/dist/src/fabric/functions/add.function.d.ts +3 -3
  255. package/dist/src/fabric/functions/addon-verify.function.d.ts +9 -9
  256. package/dist/src/fabric/functions/changes-ask.function.d.ts +34 -0
  257. package/dist/src/fabric/functions/changes-ask.function.js +30 -0
  258. package/dist/src/fabric/functions/changes-claim.function.d.ts +50 -0
  259. package/dist/src/fabric/functions/changes-claim.function.js +43 -0
  260. package/dist/src/fabric/functions/changes-done.function.d.ts +55 -0
  261. package/dist/src/fabric/functions/changes-done.function.js +59 -0
  262. package/dist/src/fabric/functions/changes-file.function.d.ts +64 -0
  263. package/dist/src/fabric/functions/changes-file.function.js +56 -0
  264. package/dist/src/fabric/functions/changes-list.function.d.ts +60 -0
  265. package/dist/src/fabric/functions/changes-list.function.js +82 -0
  266. package/dist/src/fabric/functions/changes-shot.function.d.ts +66 -0
  267. package/dist/src/fabric/functions/changes-shot.function.js +56 -0
  268. package/dist/src/fabric/functions/changes-show.function.d.ts +41 -0
  269. package/dist/src/fabric/functions/changes-show.function.js +80 -0
  270. package/dist/src/fabric/functions/db-schema.function.d.ts +3 -3
  271. package/dist/src/fabric/functions/deploy-list.function.d.ts +3 -3
  272. package/dist/src/fabric/functions/deploy-units.function.d.ts +3 -3
  273. package/dist/src/fabric/functions/deploy.function.d.ts +12 -12
  274. package/dist/src/fabric/functions/deploy.function.js +6 -5
  275. package/dist/src/fabric/functions/domains-add.function.d.ts +7 -7
  276. package/dist/src/fabric/functions/domains-list.function.d.ts +3 -3
  277. package/dist/src/fabric/functions/domains-remove.function.d.ts +3 -3
  278. package/dist/src/fabric/functions/errors.function.d.ts +3 -3
  279. package/dist/src/fabric/functions/findings-clear.function.d.ts +3 -3
  280. package/dist/src/fabric/functions/findings-flush.function.d.ts +3 -3
  281. package/dist/src/fabric/functions/findings-list.function.d.ts +3 -3
  282. package/dist/src/fabric/functions/init.function.d.ts +3 -3
  283. package/dist/src/fabric/functions/link.function.d.ts +3 -3
  284. package/dist/src/fabric/functions/link.function.js +3 -2
  285. package/dist/src/fabric/functions/llm-key.function.d.ts +9 -9
  286. package/dist/src/fabric/functions/login.function.d.ts +3 -3
  287. package/dist/src/fabric/functions/logs.function.d.ts +3 -3
  288. package/dist/src/fabric/functions/logs.function.js +2 -1
  289. package/dist/src/fabric/functions/metrics.function.d.ts +3 -3
  290. package/dist/src/fabric/functions/projects-list.function.d.ts +3 -3
  291. package/dist/src/fabric/functions/publish.function.d.ts +3 -3
  292. package/dist/src/fabric/functions/report.function.d.ts +15 -15
  293. package/dist/src/fabric/functions/rollback.function.d.ts +9 -9
  294. package/dist/src/fabric/functions/secrets-delete.function.d.ts +3 -3
  295. package/dist/src/fabric/functions/secrets-list.function.d.ts +3 -3
  296. package/dist/src/fabric/functions/secrets-rotate.function.d.ts +3 -3
  297. package/dist/src/fabric/functions/secrets-set.function.d.ts +3 -3
  298. package/dist/src/fabric/functions/smoke.function.d.ts +3 -3
  299. package/dist/src/fabric/functions/status.function.d.ts +3 -3
  300. package/dist/src/fabric/functions/trace.function.d.ts +3 -3
  301. package/dist/src/fabric/functions/validate.function.d.ts +7 -7
  302. package/dist/src/fabric/functions/variables-get.function.d.ts +3 -3
  303. package/dist/src/fabric/functions/variables-set.function.d.ts +6 -6
  304. package/dist/src/fabric/lib/changes.d.ts +38 -0
  305. package/dist/src/fabric/lib/changes.js +70 -0
  306. package/dist/src/fabric/lib/errors.d.ts +21 -0
  307. package/dist/src/fabric/lib/errors.js +21 -0
  308. package/dist/src/fabric/lib/finding.d.ts +3 -3
  309. package/dist/src/fabric/lib/git.d.ts +3 -2
  310. package/dist/src/fabric/lib/git.js +10 -8
  311. package/dist/src/fabric/lib/output.d.ts +20 -0
  312. package/dist/src/fabric/lib/output.js +32 -7
  313. package/dist/src/functions/commands/all.d.ts +1 -1
  314. package/dist/src/functions/commands/audit.d.ts +1 -1
  315. package/dist/src/functions/commands/binary.d.ts +3 -3
  316. package/dist/src/functions/commands/bootstrap.d.ts +1 -1
  317. package/dist/src/functions/commands/bootstrap.js +3 -0
  318. package/dist/src/functions/commands/db-audit.d.ts +1 -1
  319. package/dist/src/functions/commands/db-baseline.d.ts +1 -1
  320. package/dist/src/functions/commands/db-check.d.ts +1 -1
  321. package/dist/src/functions/commands/db-codegen.d.ts +1 -1
  322. package/dist/src/functions/commands/db-export.d.ts +1 -1
  323. package/dist/src/functions/commands/db-generate.d.ts +1 -1
  324. package/dist/src/functions/commands/db-migrate.d.ts +1 -1
  325. package/dist/src/functions/commands/db-reset.d.ts +3 -3
  326. package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
  327. package/dist/src/functions/commands/deploy-apply.js +35 -3
  328. package/dist/src/functions/commands/deploy-info.d.ts +1 -1
  329. package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
  330. package/dist/src/functions/commands/deploy-plan.js +1 -0
  331. package/dist/src/functions/commands/dev-agent-runner.d.ts +9 -7
  332. package/dist/src/functions/commands/dev-agent-runner.js +56 -12
  333. package/dist/src/functions/commands/dev.d.ts +3 -3
  334. package/dist/src/functions/commands/dev.js +60 -6
  335. package/dist/src/functions/commands/dist.d.ts +3 -3
  336. package/dist/src/functions/commands/dist.js +2 -9
  337. package/dist/src/functions/commands/doc.d.ts +3 -3
  338. package/dist/src/functions/commands/emails-init.d.ts +1 -1
  339. package/dist/src/functions/commands/enable.d.ts +9 -9
  340. package/dist/src/functions/commands/import-n8n.d.ts +3 -3
  341. package/dist/src/functions/commands/info.d.ts +4 -4
  342. package/dist/src/functions/commands/init-or-warn.d.ts +19 -0
  343. package/dist/src/functions/commands/init-or-warn.js +25 -0
  344. package/dist/src/functions/commands/knowledge-index.d.ts +6 -6
  345. package/dist/src/functions/commands/knowledge-plan.d.ts +15 -15
  346. package/dist/src/functions/commands/knowledge-reconcile.d.ts +6 -6
  347. package/dist/src/functions/commands/knowledge-validate.d.ts +6 -6
  348. package/dist/src/functions/commands/login.d.ts +7 -7
  349. package/dist/src/functions/commands/meta.d.ts +34 -34
  350. package/dist/src/functions/commands/new-addon.d.ts +3 -3
  351. package/dist/src/functions/commands/new-function.d.ts +3 -3
  352. package/dist/src/functions/commands/new-middleware.d.ts +3 -3
  353. package/dist/src/functions/commands/new-permission.d.ts +3 -3
  354. package/dist/src/functions/commands/new-wiring.d.ts +3 -3
  355. package/dist/src/functions/commands/persona-sync.d.ts +3 -3
  356. package/dist/src/functions/commands/persona.d.ts +7 -7
  357. package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
  358. package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
  359. package/dist/src/functions/commands/roles-audit.d.ts +1 -1
  360. package/dist/src/functions/commands/roles-prune.d.ts +3 -3
  361. package/dist/src/functions/commands/scenario.d.ts +7 -7
  362. package/dist/src/functions/commands/scopes-audit.d.ts +1 -1
  363. package/dist/src/functions/commands/scopes-prune.d.ts +3 -3
  364. package/dist/src/functions/commands/semver.d.ts +1 -1
  365. package/dist/src/functions/commands/serve.d.ts +3 -3
  366. package/dist/src/functions/commands/serve.js +40 -3
  367. package/dist/src/functions/commands/skills.d.ts +6 -6
  368. package/dist/src/functions/commands/update.d.ts +1 -1
  369. package/dist/src/functions/commands/validate.d.ts +6 -6
  370. package/dist/src/functions/commands/versions-check.d.ts +1 -1
  371. package/dist/src/functions/commands/versions-init.d.ts +3 -3
  372. package/dist/src/functions/commands/versions-update.d.ts +1 -1
  373. package/dist/src/functions/commands/watch.d.ts +3 -3
  374. package/dist/src/functions/db/zod-codegen.d.ts +19 -19
  375. package/dist/src/functions/knowledge/schemas.d.ts +5 -5
  376. package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
  377. package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
  378. package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
  379. package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
  380. package/dist/src/functions/surface/build-surface-doc.js +1 -1
  381. package/dist/src/functions/surface/surface-doc.types.d.ts +1 -1
  382. package/dist/src/functions/surface/surface-editorial.js +5 -0
  383. package/dist/src/functions/validate/pikku-barrel-checks.js +2 -22
  384. package/dist/src/functions/validate/validate.d.ts +2 -2
  385. package/dist/src/functions/validate/websocket-deps-checks.d.ts +1 -1
  386. package/dist/src/functions/wirings/agent/pikku-command-agent-types.d.ts +1 -1
  387. package/dist/src/functions/wirings/agent/pikku-command-agent.d.ts +1 -1
  388. package/dist/src/functions/wirings/agent/pikku-command-public-agent.d.ts +1 -1
  389. package/dist/src/functions/wirings/agent-scorer/pikku-command-agent-scorer.d.ts +1 -1
  390. package/dist/src/functions/wirings/analytics/pikku-command-analytics.d.ts +11 -0
  391. package/dist/src/functions/wirings/analytics/pikku-command-analytics.js +66 -0
  392. package/dist/src/functions/wirings/analytics/serialize-analytics.d.ts +30 -0
  393. package/dist/src/functions/wirings/analytics/serialize-analytics.js +141 -0
  394. package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +3 -3
  395. package/dist/src/functions/wirings/auth/pikku-command-auth.js +2 -6
  396. package/dist/src/functions/wirings/auth/serialize-auth-gen.d.ts +1 -1
  397. package/dist/src/functions/wirings/auth/serialize-auth-gen.js +15 -36
  398. package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
  399. package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
  400. package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
  401. package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -1
  402. package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
  403. package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
  404. package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
  405. package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
  406. package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
  407. package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
  408. package/dist/src/functions/wirings/errors/pikku-command-error-types.d.ts +1 -1
  409. package/dist/src/functions/wirings/flags/pikku-command-feature-flags-scaffold.d.ts +1 -0
  410. package/dist/src/functions/wirings/flags/pikku-command-feature-flags-scaffold.js +36 -0
  411. package/dist/src/functions/wirings/flags/pikku-command-flags.d.ts +7 -0
  412. package/dist/src/functions/wirings/flags/pikku-command-flags.js +36 -0
  413. package/dist/src/functions/wirings/flags/serialize-feature-flags-scaffold.d.ts +13 -0
  414. package/dist/src/functions/wirings/flags/serialize-feature-flags-scaffold.js +73 -0
  415. package/dist/src/functions/wirings/flags/serialize-flags-types.d.ts +14 -0
  416. package/dist/src/functions/wirings/flags/serialize-flags-types.js +68 -0
  417. package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
  418. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +3 -3
  419. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +1 -1
  420. package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
  421. package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.d.ts +2 -2
  422. package/dist/src/functions/wirings/functions/pikku-command-leaf-indexes.js +2 -1
  423. package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
  424. package/dist/src/functions/wirings/functions/pikku-command-services.js +9 -2
  425. package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
  426. package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
  427. package/dist/src/functions/wirings/functions/serialize-function-types.js +9 -4
  428. package/dist/src/functions/wirings/gateway/pikku-command-gateway-types.d.ts +3 -3
  429. package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
  430. package/dist/src/functions/wirings/graph/pikku-command-graph-wirings.d.ts +1 -1
  431. package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
  432. package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
  433. package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
  434. package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
  435. package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
  436. package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
  437. package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
  438. package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
  439. package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +4 -3
  440. package/dist/src/functions/wirings/package/pikku-command-package-types.js +14 -1
  441. package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
  442. package/dist/src/functions/wirings/package/serialize-package-types.d.ts +1 -0
  443. package/dist/src/functions/wirings/package/serialize-package-types.js +15 -0
  444. package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
  445. package/dist/src/functions/wirings/personas/pikku-command-personas.d.ts +3 -3
  446. package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
  447. package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -1
  448. package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -1
  449. package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
  450. package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -1
  451. package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
  452. package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
  453. package/dist/src/functions/wirings/remote-jobs/pikku-command-remote-jobs.d.ts +1 -1
  454. package/dist/src/functions/wirings/roles/pikku-command-roles.d.ts +3 -3
  455. package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
  456. package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
  457. package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
  458. package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -1
  459. package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +3 -3
  460. package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -1
  461. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
  462. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
  463. package/dist/src/functions/wirings/scopes/pikku-command-scopes.d.ts +3 -3
  464. package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
  465. package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +3 -3
  466. package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
  467. package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
  468. package/dist/src/functions/wirings/virtual-user/pikku-command-virtual-user-functions.d.ts +1 -1
  469. package/dist/src/functions/wirings/webhook/pikku-command-webhook.d.ts +1 -1
  470. package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
  471. package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
  472. package/dist/src/functions/workflows/all.workflow.js +34 -9
  473. package/dist/src/services.js +7 -0
  474. package/dist/src/utils/analytics-schemas-file.d.ts +6 -0
  475. package/dist/src/utils/analytics-schemas-file.js +9 -0
  476. package/dist/src/utils/file-import-path.js +4 -1
  477. package/dist/src/utils/pikku-cli-config.d.ts +2 -2
  478. package/dist/src/utils/pikku-cli-config.js +28 -0
  479. package/dist/src/utils/remove-legacy-scaffold-file.js +4 -0
  480. package/dist/src/utils/resolve-from-project.d.ts +5 -0
  481. package/dist/src/utils/resolve-from-project.js +8 -2
  482. package/dist/src/utils/tsc-check.d.ts +11 -15
  483. package/dist/src/utils/tsc-check.js +97 -86
  484. package/dist/tsconfig.tsbuildinfo +1 -1
  485. package/package.json +32 -25
  486. package/snippets.json +1 -1
  487. package/surface.json +743 -27
  488. package/CHANGELOG.md +0 -9620
  489. package/console-app/assets/HelpPanel-nYO2hRY5.js +0 -1
  490. package/console-app/assets/architecture-TIHT7OUA-B-c05-x5.js +0 -1
  491. package/console-app/assets/architectureDiagram-T3A2C74G-BAH1O4B7.js +0 -36
  492. package/console-app/assets/blockDiagram-VBNYF7ZC-T3kmcPgj.js +0 -132
  493. package/console-app/assets/c4Diagram-5PPSVZJV-DRva89Br.js +0 -10
  494. package/console-app/assets/channel-DJ3jfSNX.js +0 -1
  495. package/console-app/assets/chunk-7BUUIJ7U-Bb538aSH.js +0 -1
  496. package/console-app/assets/chunk-7Z6QIM7H-uxzNGOHh.js +0 -10
  497. package/console-app/assets/chunk-I66GZJ75-DksrbEtn.js +0 -127
  498. package/console-app/assets/chunk-JQJVKLGR-BnRvPhDK.js +0 -156
  499. package/console-app/assets/chunk-QR6OTTB3-CgQotuzQ.js +0 -62
  500. package/console-app/assets/chunk-RYQCIY6F-Cei0abOq.js +0 -1
  501. package/console-app/assets/chunk-UBXNYLIW-B55XJk4O.js +0 -1
  502. package/console-app/assets/chunk-W5SLKNZC-gFa01tuI.js +0 -1
  503. package/console-app/assets/chunk-WRU74C26-C3ESZQ-F.js +0 -70
  504. package/console-app/assets/chunk-XXDRQBXY-D0tL6SVk.js +0 -1
  505. package/console-app/assets/classDiagram-JCYQIIEL-BqEwCDi8.js +0 -1
  506. package/console-app/assets/classDiagram-v2-OCEON4UE-BqEwCDi8.js +0 -1
  507. package/console-app/assets/cose-bilkent-JH36ORCC-CUxqwjs-.js +0 -1
  508. package/console-app/assets/cynefin-VYW2F7L2-Dh1yOBBs.js +0 -1
  509. package/console-app/assets/cytoscape.esm-B-NFISlW.js +0 -321
  510. package/console-app/assets/dagre-DKjebq_c.js +0 -1
  511. package/console-app/assets/dagre-VZM6K2ZE-BllFBMe9.js +0 -4
  512. package/console-app/assets/erDiagram-JOGREHBK-Bg0FPLS0.js +0 -85
  513. package/console-app/assets/eventmodeling-45OFAUF4-CVovwmpS.js +0 -1
  514. package/console-app/assets/flowDiagram-UKHOOZJN-DwRgEyXD.js +0 -1
  515. package/console-app/assets/ganttDiagram-PKOTCBZU-BBxxHrPG.js +0 -292
  516. package/console-app/assets/gitGraph-TEB2WS4Q-Cn1MjFvM.js +0 -1
  517. package/console-app/assets/graphlib-IlWVLY3o.js +0 -1
  518. package/console-app/assets/index-C8MC-uMB.css +0 -1
  519. package/console-app/assets/index-Deds7K2I.js +0 -290
  520. package/console-app/assets/info-DKCQHKI2-C2R7hV-y.js +0 -1
  521. package/console-app/assets/isUndefined-T4snU1Mx.js +0 -1
  522. package/console-app/assets/linear-BQOZezXu.js +0 -1
  523. package/console-app/assets/map-BmPfXn7V.js +0 -1
  524. package/console-app/assets/mermaid.core-B02bSmuz.js +0 -42
  525. package/console-app/assets/packet-7NZHBO7P-CkYMF0Cd.js +0 -1
  526. package/console-app/assets/pie-RZYD4A2V-BFMvieVM.js +0 -1
  527. package/console-app/assets/radar-I7S5WNFK-C_2tp7_w.js +0 -1
  528. package/console-app/assets/railroad-3IZDKUUU-DwlFJLv5.js +0 -1
  529. package/console-app/assets/railroad-abnf-AHOZXSZD-Cyu_rpdZ.js +0 -1
  530. package/console-app/assets/railroad-ebnf-EBAXGLYW-BLiwK-H7.js +0 -1
  531. package/console-app/assets/railroad-peg-LSFZ7HO6-BUDTDYmP.js +0 -1
  532. package/console-app/assets/src-BI35UZf8.js +0 -1
  533. package/console-app/assets/stateDiagram-v2-UEYNNEHI-BsP8TwKV.js +0 -1
  534. package/console-app/assets/swimlanes-SLNWSIFB-DvAJxCGQ.js +0 -2
  535. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-BAXO3Id2.js +0 -8
  536. package/console-app/assets/treeView-QDETBFTQ-DnlS0s0_.js +0 -1
  537. package/console-app/assets/treemap-6X3UGDF4-CiUoxlJe.js +0 -1
  538. package/console-app/assets/wardley-OPB4EBWU-DrTySJtR.js +0 -1
  539. package/dist/.pikku/console/index.d.ts +0 -1
  540. package/dist/.pikku/console/index.js +0 -1
  541. package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -6
  542. package/dist/.pikku/console/pikku-node-types.gen.js +0 -1
  543. package/dist/.pikku/pikku-meta-service.gen.d.ts +0 -7
  544. package/dist/.pikku/pikku-meta-service.gen.js +0 -9
  545. package/dist/.pikku/pikku-types.gen.d.ts +0 -17
  546. package/dist/.pikku/pikku-types.gen.js +0 -28
  547. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +0 -15
  548. package/dist/.pikku/workflow/pikku-personas.gen.js +0 -17
  549. package/dist/src/functions/surface/collect-surface.d.ts +0 -58
  550. package/dist/src/functions/surface/collect-surface.js +0 -613
  551. /package/console-app/assets/{sizeCapture-X5ZJPWSS-B0uUizjq.js → sizeCapture-INFHLROL-B0uUizjq.js} +0 -0
@@ -43,6 +43,13 @@ import { FabricDomainsList } from './functions/domains-list.function.js';
43
43
  import { FabricDomainsAdd } from './functions/domains-add.function.js';
44
44
  import { FabricDomainsRemove } from './functions/domains-remove.function.js';
45
45
  import { FabricLLMKey, renderLLMKey } from './functions/llm-key.function.js';
46
+ import { FabricChangesList, renderChangesList, } from './functions/changes-list.function.js';
47
+ import { FabricChangesShow, renderChangesShow, } from './functions/changes-show.function.js';
48
+ import { FabricChangesFile, renderChangesFile, } from './functions/changes-file.function.js';
49
+ import { FabricChangesClaim, renderChangesClaim, } from './functions/changes-claim.function.js';
50
+ import { FabricChangesAsk, renderChangesAsk, } from './functions/changes-ask.function.js';
51
+ import { FabricChangesShot, renderChangesShot, } from './functions/changes-shot.function.js';
52
+ import { FabricChangesDone, renderChangesDone, } from './functions/changes-done.function.js';
46
53
  import { FabricValidate, renderValidate, } from './functions/validate.function.js';
47
54
  import { FabricSmoke, renderSmoke } from './functions/smoke.function.js';
48
55
  import { FabricPublish } from './functions/publish.function.js';
@@ -475,6 +482,165 @@ export const fabricCommands = defineCLICommands({
475
482
  }),
476
483
  },
477
484
  },
485
+ changes: {
486
+ description: 'The todo list filed from inside a deployed stage: read what is open, file what was decided elsewhere, claim a batch, ask what you need to know, and tick items off',
487
+ subcommands: {
488
+ list: pikkuCLICommand({
489
+ func: FabricChangesList,
490
+ render: renderChangesList,
491
+ description: 'Open changes for a project, grouped the way they will be worked',
492
+ options: {
493
+ projectId: {
494
+ description: 'Project to read (defaults to the linked checkout)',
495
+ short: 'p',
496
+ },
497
+ stageId: { description: 'Only changes filed on this stage' },
498
+ route: {
499
+ description: 'Only changes filed on this route, e.g. /checkout',
500
+ },
501
+ groupId: { description: 'Only changes in this group' },
502
+ pickupOnly: {
503
+ description: 'Skip items still held for the person who just filed them',
504
+ default: false,
505
+ },
506
+ includeDone: {
507
+ description: 'Also return done and dismissed items',
508
+ default: false,
509
+ },
510
+ limit: {
511
+ description: 'How many to return (default 50, max 200)',
512
+ type: 'number',
513
+ },
514
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
515
+ },
516
+ }),
517
+ show: pikkuCLICommand({
518
+ func: FabricChangesShow,
519
+ render: renderChangesShow,
520
+ description: 'One change with its thread, its circled elements and the build it was filed against',
521
+ options: {
522
+ changeId: {
523
+ description: 'The change to read, from `pikku fabric changes list`',
524
+ },
525
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
526
+ },
527
+ }),
528
+ file: pikkuCLICommand({
529
+ func: FabricChangesFile,
530
+ render: renderChangesFile,
531
+ description: 'File an item from outside the panel — the words, without the screenshot the panel would have attached',
532
+ options: {
533
+ projectId: {
534
+ description: 'Project to file against (defaults to the linked checkout)',
535
+ short: 'p',
536
+ },
537
+ stageId: {
538
+ description: 'Stage to file against (defaults to the only stage)',
539
+ },
540
+ branch: {
541
+ description: 'Resolve the stage from this branch instead',
542
+ },
543
+ title: {
544
+ description: 'The requirement, in one line',
545
+ short: 't',
546
+ },
547
+ body: { description: 'The detail, if a line is not enough' },
548
+ bodyFile: {
549
+ description: 'Read the body from a file — use this when it has newlines',
550
+ },
551
+ route: {
552
+ description: 'The route it is about, e.g. /admin/rota',
553
+ },
554
+ locale: { description: 'Locale it was seen in, e.g. de' },
555
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
556
+ },
557
+ }),
558
+ claim: pikkuCLICommand({
559
+ func: FabricChangesClaim,
560
+ render: renderChangesClaim,
561
+ description: 'Take a batch of items as one job under a lease. Naming items without a group creates the group',
562
+ options: {
563
+ projectId: {
564
+ description: 'Project the items belong to',
565
+ short: 'p',
566
+ },
567
+ groupId: {
568
+ description: 'Claim an existing group instead of forming one',
569
+ },
570
+ changeIds: {
571
+ description: 'The items to take, comma-separated or repeated',
572
+ type: 'string[]',
573
+ },
574
+ title: { description: 'What to call the group being formed' },
575
+ claimedBy: {
576
+ description: 'Who is taking it — shown in the panel while the lease is held',
577
+ },
578
+ leaseMinutes: {
579
+ description: 'How long to hold it before it returns to the queue (default 30)',
580
+ type: 'number',
581
+ },
582
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
583
+ },
584
+ }),
585
+ ask: pikkuCLICommand({
586
+ func: FabricChangesAsk,
587
+ render: renderChangesAsk,
588
+ description: 'Ask the person who filed an item what you need to know. The question is parked, not blocking',
589
+ options: {
590
+ changeId: { description: 'The item the question is about' },
591
+ question: {
592
+ description: 'One decision, in the filer’s vocabulary, with the options named',
593
+ short: 'q',
594
+ },
595
+ authorName: { description: 'Who is asking, e.g. claude-code' },
596
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
597
+ },
598
+ }),
599
+ shot: pikkuCLICommand({
600
+ func: FabricChangesShot,
601
+ render: renderChangesShot,
602
+ description: 'Attach a rendered option to an item’s thread. The panel turns a set of them into a pick-one',
603
+ options: {
604
+ changeId: { description: 'The item the options belong to' },
605
+ label: {
606
+ description: 'What to call this variant in the picker, e.g. “Grouped totals”',
607
+ },
608
+ image: { description: 'Path to the image file to attach' },
609
+ imageBase64: {
610
+ description: 'The image itself, base64, instead of --image',
611
+ },
612
+ contentType: {
613
+ description: 'image/png, image/jpeg or image/webp (inferred from --image)',
614
+ },
615
+ kind: {
616
+ description: 'option (a variant to choose between) or evidence (something to look at)',
617
+ default: 'option',
618
+ },
619
+ authorName: { description: 'Who rendered it, e.g. claude-code' },
620
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
621
+ },
622
+ }),
623
+ done: pikkuCLICommand({
624
+ func: FabricChangesDone,
625
+ render: renderChangesDone,
626
+ description: 'Tick an item off, recording the branch and commit that closed it so the panel can strike it through',
627
+ options: {
628
+ changeId: { description: 'The item that is done' },
629
+ branch: {
630
+ description: 'Branch the fix landed on (defaults to this checkout)',
631
+ },
632
+ headCommit: {
633
+ description: 'Commit that closed it (defaults to this checkout)',
634
+ },
635
+ note: {
636
+ description: 'What was done, for whoever reads the thread later',
637
+ },
638
+ authorName: { description: 'Who did it, e.g. claude-code' },
639
+ apiUrl: { description: 'Override the fabric-api URL for this call' },
640
+ },
641
+ }),
642
+ },
643
+ },
478
644
  llm: {
479
645
  description: 'Fabric AI gateway developer key commands',
480
646
  subcommands: {
@@ -29,7 +29,7 @@ export declare const FabricAdd: import("../../../.pikku/function/pikku-function-
29
29
  name: string;
30
30
  version: string;
31
31
  path: string;
32
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
32
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
33
33
  id: string;
34
34
  dir?: string | undefined;
35
35
  apiUrl?: string | undefined;
@@ -38,7 +38,7 @@ export declare const FabricAdd: import("../../../.pikku/function/pikku-function-
38
38
  name: string;
39
39
  version: string;
40
40
  path: string;
41
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
41
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
42
42
  id: string;
43
43
  dir?: string | undefined;
44
44
  apiUrl?: string | undefined;
@@ -47,4 +47,4 @@ export declare const FabricAdd: import("../../../.pikku/function/pikku-function-
47
47
  name: string;
48
48
  version: string;
49
49
  path: string;
50
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
50
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
@@ -19,36 +19,36 @@ export declare const FabricAddonVerify: import("../../../.pikku/function/pikku-f
19
19
  }, {
20
20
  ok: boolean;
21
21
  addonDir: string;
22
+ packageName?: string | undefined;
23
+ version?: string | undefined;
22
24
  checks: {
23
25
  name: string;
24
26
  ok: boolean;
25
27
  detail?: string | undefined;
26
28
  }[];
27
- packageName?: string | undefined;
28
- version?: string | undefined;
29
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
29
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
30
30
  dir?: string | undefined;
31
31
  }, {
32
32
  ok: boolean;
33
33
  addonDir: string;
34
+ packageName?: string | undefined;
35
+ version?: string | undefined;
34
36
  checks: {
35
37
  name: string;
36
38
  ok: boolean;
37
39
  detail?: string | undefined;
38
40
  }[];
39
- packageName?: string | undefined;
40
- version?: string | undefined;
41
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
41
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
42
42
  dir?: string | undefined;
43
43
  }, {
44
44
  ok: boolean;
45
45
  addonDir: string;
46
+ packageName?: string | undefined;
47
+ version?: string | undefined;
46
48
  checks: {
47
49
  name: string;
48
50
  ok: boolean;
49
51
  detail?: string | undefined;
50
52
  }[];
51
- packageName?: string | undefined;
52
- version?: string | undefined;
53
- }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices>, undefined, undefined>;
53
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
54
54
  export declare function renderAddonVerify(_s: unknown, result: FabricAddonVerifyOutput): void;
@@ -0,0 +1,34 @@
1
+ import { z } from 'zod';
2
+ import type { AskChangeQuestionOutput } from '../sdk/rpc-map.gen.d.js';
3
+ export declare const FabricChangesAskInput: z.ZodObject<{
4
+ apiUrl: z.ZodOptional<z.ZodString>;
5
+ changeId: z.ZodString;
6
+ question: z.ZodString;
7
+ authorName: z.ZodOptional<z.ZodString>;
8
+ }, z.core.$strip>;
9
+ export declare const FabricChangesAskOutput: z.ZodObject<{
10
+ message: z.ZodAny;
11
+ }, z.core.$strip>;
12
+ export declare const FabricChangesAsk: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
13
+ apiUrl?: string | undefined;
14
+ changeId: string;
15
+ question: string;
16
+ authorName?: string | undefined;
17
+ }, {
18
+ message: any;
19
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
20
+ apiUrl?: string | undefined;
21
+ changeId: string;
22
+ question: string;
23
+ authorName?: string | undefined;
24
+ }, {
25
+ message: any;
26
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
27
+ apiUrl?: string | undefined;
28
+ changeId: string;
29
+ question: string;
30
+ authorName?: string | undefined;
31
+ }, {
32
+ message: any;
33
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
34
+ export declare const renderChangesAsk: (_s: unknown, { message }: AskChangeQuestionOutput) => void;
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
3
+ import { changesContext } from '../lib/changes.js';
4
+ import { dim, safeBlock } from '../lib/output.js';
5
+ export const FabricChangesAskInput = z.object({
6
+ apiUrl: z.string().optional(),
7
+ changeId: z.string(),
8
+ question: z.string().trim().min(1, 'Ask something — the question is empty.'),
9
+ authorName: z.string().optional(),
10
+ });
11
+ export const FabricChangesAskOutput = z.object({
12
+ message: z.any(),
13
+ });
14
+ export const FabricChangesAsk = pikkuSessionlessFunc({
15
+ description: 'Ask the person who filed a change what you need to know.',
16
+ input: FabricChangesAskInput,
17
+ output: FabricChangesAskOutput,
18
+ func: async (_services, input) => {
19
+ const { rpc } = await changesContext(input.apiUrl);
20
+ return await rpc.invoke('askChangeQuestion', {
21
+ changeId: input.changeId,
22
+ question: input.question,
23
+ authorName: input.authorName ?? 'pikku-cli',
24
+ });
25
+ },
26
+ });
27
+ export const renderChangesAsk = (_s, { message }) => {
28
+ console.log('Asked — the item now shows as needing an answer in the panel.');
29
+ console.log(dim(` ${safeBlock(message.body)}`));
30
+ };
@@ -0,0 +1,50 @@
1
+ import { z } from 'zod';
2
+ import type { ClaimChangesOutput } from '../sdk/rpc-map.gen.d.js';
3
+ export declare const FabricChangesClaimInput: z.ZodObject<{
4
+ apiUrl: z.ZodOptional<z.ZodString>;
5
+ projectId: z.ZodOptional<z.ZodString>;
6
+ groupId: z.ZodOptional<z.ZodString>;
7
+ changeIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
+ title: z.ZodOptional<z.ZodString>;
9
+ claimedBy: z.ZodOptional<z.ZodString>;
10
+ leaseMinutes: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ export declare const FabricChangesClaimOutput: z.ZodObject<{
13
+ group: z.ZodAny;
14
+ changes: z.ZodAny;
15
+ }, z.core.$strip>;
16
+ export declare const FabricChangesClaim: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
17
+ apiUrl?: string | undefined;
18
+ projectId?: string | undefined;
19
+ groupId?: string | undefined;
20
+ changeIds?: string[] | undefined;
21
+ title?: string | undefined;
22
+ claimedBy?: string | undefined;
23
+ leaseMinutes?: number | undefined;
24
+ }, {
25
+ group: any;
26
+ changes: any;
27
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
28
+ apiUrl?: string | undefined;
29
+ projectId?: string | undefined;
30
+ groupId?: string | undefined;
31
+ changeIds?: string[] | undefined;
32
+ title?: string | undefined;
33
+ claimedBy?: string | undefined;
34
+ leaseMinutes?: number | undefined;
35
+ }, {
36
+ group: any;
37
+ changes: any;
38
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
39
+ apiUrl?: string | undefined;
40
+ projectId?: string | undefined;
41
+ groupId?: string | undefined;
42
+ changeIds?: string[] | undefined;
43
+ title?: string | undefined;
44
+ claimedBy?: string | undefined;
45
+ leaseMinutes?: number | undefined;
46
+ }, {
47
+ group: any;
48
+ changes: any;
49
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
50
+ export declare const renderChangesClaim: (_s: unknown, { group, changes }: ClaimChangesOutput) => void;
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
3
+ import { changesContext, idList, requireProjectId } from '../lib/changes.js';
4
+ import { dim, safe } from '../lib/output.js';
5
+ export const FabricChangesClaimInput = z.object({
6
+ apiUrl: z.string().optional(),
7
+ projectId: z.string().optional(),
8
+ groupId: z.string().optional(),
9
+ changeIds: z.array(z.string()).optional(),
10
+ title: z.string().optional(),
11
+ claimedBy: z.string().optional(),
12
+ leaseMinutes: z.number().optional(),
13
+ });
14
+ export const FabricChangesClaimOutput = z.object({
15
+ group: z.any(),
16
+ changes: z.any(),
17
+ });
18
+ export const FabricChangesClaim = pikkuSessionlessFunc({
19
+ description: 'Take a batch of changes as one job under a lease.',
20
+ input: FabricChangesClaimInput,
21
+ output: FabricChangesClaimOutput,
22
+ func: async (_services, input) => {
23
+ const { rpc, projectId } = await changesContext(input.apiUrl, input.projectId);
24
+ return await rpc.invoke('claimChanges', {
25
+ projectId: requireProjectId(projectId),
26
+ groupId: input.groupId,
27
+ changeIds: idList(input.changeIds),
28
+ title: input.title,
29
+ claimedBy: input.claimedBy ?? 'pikku-cli',
30
+ leaseMinutes: input.leaseMinutes ?? 30,
31
+ });
32
+ },
33
+ });
34
+ export const renderChangesClaim = (_s, { group, changes }) => {
35
+ console.log(`Claimed ${changes.length} item(s) as “${safe(group.title)}”`);
36
+ console.log(dim(`group ${safe(group.groupId)}`));
37
+ if (group.claimExpiresAt) {
38
+ console.log(dim(`lease until ${new Date(group.claimExpiresAt).toISOString()}`));
39
+ }
40
+ for (const change of changes) {
41
+ console.log(` #${safe(change.shortId)} ${safe(change.title)} ${dim(safe(change.changeId))}`);
42
+ }
43
+ };
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ import type { CompleteChangeOutput } from '../sdk/rpc-map.gen.d.js';
3
+ export declare const FabricChangesDoneInput: z.ZodObject<{
4
+ apiUrl: z.ZodOptional<z.ZodString>;
5
+ changeId: z.ZodString;
6
+ branch: z.ZodOptional<z.ZodString>;
7
+ headCommit: z.ZodOptional<z.ZodString>;
8
+ note: z.ZodOptional<z.ZodString>;
9
+ authorName: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export declare const FabricChangesDoneOutput: z.ZodObject<{
12
+ change: z.ZodAny;
13
+ }, z.core.$strip>;
14
+ /**
15
+ * `rev-parse --abbrev-ref HEAD` answers the literal 'HEAD' in a detached
16
+ * checkout. Recording that would strike the item through against a branch
17
+ * nobody can open, so it is dropped — the sha read alongside it is still real,
18
+ * and is enough to say where the fix landed.
19
+ */
20
+ export declare const namedBranch: (head: string) => string | undefined;
21
+ /**
22
+ * Branch and commit default to the checkout this runs in. They are what strikes
23
+ * the item through on the page it was filed from, and a hand-typed sha that
24
+ * does not exist points the filer at nothing — so read them from git unless the
25
+ * caller has a reason to say otherwise.
26
+ */
27
+ export declare const FabricChangesDone: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
28
+ apiUrl?: string | undefined;
29
+ changeId: string;
30
+ branch?: string | undefined;
31
+ headCommit?: string | undefined;
32
+ note?: string | undefined;
33
+ authorName?: string | undefined;
34
+ }, {
35
+ change: any;
36
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
37
+ apiUrl?: string | undefined;
38
+ changeId: string;
39
+ branch?: string | undefined;
40
+ headCommit?: string | undefined;
41
+ note?: string | undefined;
42
+ authorName?: string | undefined;
43
+ }, {
44
+ change: any;
45
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
46
+ apiUrl?: string | undefined;
47
+ changeId: string;
48
+ branch?: string | undefined;
49
+ headCommit?: string | undefined;
50
+ note?: string | undefined;
51
+ authorName?: string | undefined;
52
+ }, {
53
+ change: any;
54
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
55
+ export declare const renderChangesDone: (_s: unknown, { change }: CompleteChangeOutput) => void;
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
3
+ import { changesContext } from '../lib/changes.js';
4
+ import { currentBranch, headSha, isGitRepo } from '../lib/git.js';
5
+ import { dim, safe } from '../lib/output.js';
6
+ export const FabricChangesDoneInput = z.object({
7
+ apiUrl: z.string().optional(),
8
+ changeId: z.string(),
9
+ branch: z.string().optional(),
10
+ headCommit: z.string().optional(),
11
+ note: z.string().optional(),
12
+ authorName: z.string().optional(),
13
+ });
14
+ export const FabricChangesDoneOutput = z.object({
15
+ change: z.any(),
16
+ });
17
+ /**
18
+ * `rev-parse --abbrev-ref HEAD` answers the literal 'HEAD' in a detached
19
+ * checkout. Recording that would strike the item through against a branch
20
+ * nobody can open, so it is dropped — the sha read alongside it is still real,
21
+ * and is enough to say where the fix landed.
22
+ */
23
+ export const namedBranch = (head) => head === 'HEAD' || head === '' ? undefined : head;
24
+ /**
25
+ * Branch and commit default to the checkout this runs in. They are what strikes
26
+ * the item through on the page it was filed from, and a hand-typed sha that
27
+ * does not exist points the filer at nothing — so read them from git unless the
28
+ * caller has a reason to say otherwise.
29
+ */
30
+ export const FabricChangesDone = pikkuSessionlessFunc({
31
+ description: 'Tick a change off, recording the commit that closed it.',
32
+ input: FabricChangesDoneInput,
33
+ output: FabricChangesDoneOutput,
34
+ func: async (_services, input) => {
35
+ let branch = input.branch;
36
+ let headCommit = input.headCommit;
37
+ if ((!branch || !headCommit) && (await isGitRepo())) {
38
+ branch ??= await currentBranch()
39
+ .then(namedBranch)
40
+ .catch(() => undefined);
41
+ headCommit ??= await headSha().catch(() => undefined);
42
+ }
43
+ const { rpc } = await changesContext(input.apiUrl);
44
+ return await rpc.invoke('completeChange', {
45
+ changeId: input.changeId,
46
+ branch,
47
+ headCommit,
48
+ note: input.note,
49
+ authorName: input.authorName ?? 'pikku-cli',
50
+ });
51
+ },
52
+ });
53
+ export const renderChangesDone = (_s, { change }) => {
54
+ const at = [change.branch, change.headCommit?.slice(0, 7)]
55
+ .map((part) => (part ? safe(part) : part))
56
+ .filter(Boolean)
57
+ .join(' @ ');
58
+ console.log(`#${safe(change.shortId)} done${at ? dim(` ${at}`) : ''}`);
59
+ };
@@ -0,0 +1,64 @@
1
+ import { z } from 'zod';
2
+ import type { CreateChangeOutput } from '../sdk/rpc-map.gen.d.js';
3
+ export declare const FabricChangesFileInput: z.ZodObject<{
4
+ apiUrl: z.ZodOptional<z.ZodString>;
5
+ projectId: z.ZodOptional<z.ZodString>;
6
+ stageId: z.ZodOptional<z.ZodString>;
7
+ branch: z.ZodOptional<z.ZodString>;
8
+ title: z.ZodString;
9
+ body: z.ZodOptional<z.ZodString>;
10
+ bodyFile: z.ZodOptional<z.ZodString>;
11
+ route: z.ZodOptional<z.ZodString>;
12
+ locale: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ export declare const FabricChangesFileOutput: z.ZodObject<{
15
+ change: z.ZodAny;
16
+ }, z.core.$strip>;
17
+ /**
18
+ * An item filed from a terminal carries no screenshot, no circled elements and
19
+ * no build — the panel supplies those and nothing here can invent them. What it
20
+ * does carry is the words, which the skill already treats as the requirement
21
+ * and every other address as evidence, so a written item is a thinner but not a
22
+ * malformed one.
23
+ *
24
+ * `--body-file` because a real item's body is a paragraph with newlines in it,
25
+ * and putting that through shell quoting is where it gets mangled.
26
+ */
27
+ export declare const FabricChangesFile: import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionConfig<{
28
+ apiUrl?: string | undefined;
29
+ projectId?: string | undefined;
30
+ stageId?: string | undefined;
31
+ branch?: string | undefined;
32
+ title: string;
33
+ body?: string | undefined;
34
+ bodyFile?: string | undefined;
35
+ route?: string | undefined;
36
+ locale?: string | undefined;
37
+ }, {
38
+ change: any;
39
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunction<{
40
+ apiUrl?: string | undefined;
41
+ projectId?: string | undefined;
42
+ stageId?: string | undefined;
43
+ branch?: string | undefined;
44
+ title: string;
45
+ body?: string | undefined;
46
+ bodyFile?: string | undefined;
47
+ route?: string | undefined;
48
+ locale?: string | undefined;
49
+ }, {
50
+ change: any;
51
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices> | import("../../../.pikku/function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
52
+ apiUrl?: string | undefined;
53
+ projectId?: string | undefined;
54
+ stageId?: string | undefined;
55
+ branch?: string | undefined;
56
+ title: string;
57
+ body?: string | undefined;
58
+ bodyFile?: string | undefined;
59
+ route?: string | undefined;
60
+ locale?: string | undefined;
61
+ }, {
62
+ change: any;
63
+ }, "rpc" | "session", import("../../../.pikku/function/pikku-function-types.gen.js").WiredServices, unknown>, undefined, undefined>;
64
+ export declare const renderChangesFile: (_s: unknown, { change }: CreateChangeOutput) => void;
@@ -0,0 +1,56 @@
1
+ import { readFile } from 'node:fs/promises';
2
+ import { z } from 'zod';
3
+ import { pikkuSessionlessFunc } from '../../../.pikku/function/index.js';
4
+ import { changesContext, requireProjectId } from '../lib/changes.js';
5
+ import { resolveStageId } from '../lib/stage.js';
6
+ import { dim, safe } from '../lib/output.js';
7
+ export const FabricChangesFileInput = z.object({
8
+ apiUrl: z.string().optional(),
9
+ projectId: z.string().optional(),
10
+ stageId: z.string().optional(),
11
+ branch: z.string().optional(),
12
+ title: z.string().trim().min(1, 'Give the item a title.'),
13
+ body: z.string().optional(),
14
+ bodyFile: z.string().optional(),
15
+ route: z.string().optional(),
16
+ locale: z.string().optional(),
17
+ });
18
+ export const FabricChangesFileOutput = z.object({
19
+ change: z.any(),
20
+ });
21
+ /**
22
+ * An item filed from a terminal carries no screenshot, no circled elements and
23
+ * no build — the panel supplies those and nothing here can invent them. What it
24
+ * does carry is the words, which the skill already treats as the requirement
25
+ * and every other address as evidence, so a written item is a thinner but not a
26
+ * malformed one.
27
+ *
28
+ * `--body-file` because a real item's body is a paragraph with newlines in it,
29
+ * and putting that through shell quoting is where it gets mangled.
30
+ */
31
+ export const FabricChangesFile = pikkuSessionlessFunc({
32
+ description: 'File a change against a stage from outside the panel.',
33
+ input: FabricChangesFileInput,
34
+ output: FabricChangesFileOutput,
35
+ func: async (_services, input) => {
36
+ if (input.body && input.bodyFile)
37
+ throw new Error('Pass --body or --body-file, not both.');
38
+ const { rpc, projectId } = await changesContext(input.apiUrl, input.projectId);
39
+ const stageId = input.stageId ??
40
+ (await resolveStageId(rpc, requireProjectId(projectId), input.branch));
41
+ const body = input.bodyFile
42
+ ? await readFile(input.bodyFile, 'utf8')
43
+ : input.body;
44
+ return await rpc.invoke('createChange', {
45
+ stageId,
46
+ title: input.title,
47
+ body: body?.trim() || undefined,
48
+ route: input.route,
49
+ locale: input.locale,
50
+ });
51
+ },
52
+ });
53
+ export const renderChangesFile = (_s, { change }) => {
54
+ console.log(`Filed #${safe(change.shortId)} ${safe(change.title)}`);
55
+ console.log(dim(` ${safe(change.changeId)}`));
56
+ };