@pikku/cli 0.12.127 → 0.12.133

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 (289) hide show
  1. package/CHANGELOG.md +322 -0
  2. package/console-app/assets/{abnfDiagram-N423BO3Z-BY2LM8wi.js → abnfDiagram-N423BO3Z-BQPUva28.js} +1 -1
  3. package/console-app/assets/architecture-TIHT7OUA-G_ldr-C2.js +1 -0
  4. package/console-app/assets/{architectureDiagram-T3A2C74G-CeqjY3Kw.js → architectureDiagram-T3A2C74G-Cjzy66o9.js} +1 -1
  5. package/console-app/assets/{blockDiagram-VBNYF7ZC-BW5174xj.js → blockDiagram-VBNYF7ZC-DVasSXpX.js} +1 -1
  6. package/console-app/assets/{c4Diagram-5PPSVZJV-B7zXAFL0.js → c4Diagram-5PPSVZJV-FB0YMoOr.js} +1 -1
  7. package/console-app/assets/channel-CuDpOUYn.js +1 -0
  8. package/console-app/assets/{chunk-2GRJ4B5K-BfRYzQ4t.js → chunk-2GRJ4B5K-BLGsmyy4.js} +1 -1
  9. package/console-app/assets/{chunk-4I5QYGJK-DBA7-Nu4.js → chunk-4I5QYGJK-DCgTj78f.js} +1 -1
  10. package/console-app/assets/{chunk-5RXB4S5H-D03lNzwi.js → chunk-5RXB4S5H-CX9hS68x.js} +1 -1
  11. package/console-app/assets/{chunk-6Q2QTUOP-DloGRHJZ.js → chunk-6Q2QTUOP-xrgFRP4Y.js} +1 -1
  12. package/console-app/assets/{chunk-7Z6QIM7H-DH3uHtl2.js → chunk-7Z6QIM7H-CbBMe7ej.js} +1 -1
  13. package/console-app/assets/{chunk-GF5L2VYU-Cu252lza.js → chunk-GF5L2VYU-BXraqZ7w.js} +1 -1
  14. package/console-app/assets/{chunk-I66GZJ75-DH54FcuO.js → chunk-I66GZJ75-CbpQtX8e.js} +1 -1
  15. package/console-app/assets/{chunk-JQJVKLGR-CeFuTL-V.js → chunk-JQJVKLGR-Cp9FHSH6.js} +1 -1
  16. package/console-app/assets/{chunk-KBJHAD2P-B-prFo0-.js → chunk-KBJHAD2P-Brvmen34.js} +1 -1
  17. package/console-app/assets/{chunk-NSK5VX7P-C10iA4GS.js → chunk-NSK5VX7P-Bo-dbDZD.js} +1 -1
  18. package/console-app/assets/{chunk-QR6OTTB3-Cd8apAsA.js → chunk-QR6OTTB3-B5Al5KEo.js} +1 -1
  19. package/console-app/assets/{chunk-RYQCIY6F-rfPUp2Fj.js → chunk-RYQCIY6F-WOZyn5It.js} +1 -1
  20. package/console-app/assets/{chunk-UBXNYLIW-D25wqJBc.js → chunk-UBXNYLIW-D9OoHV5X.js} +1 -1
  21. package/console-app/assets/{chunk-W5SLKNZC-CJvxkxuK.js → chunk-W5SLKNZC-BNTcVpi3.js} +1 -1
  22. package/console-app/assets/{chunk-WRU74C26-B9Wju92P.js → chunk-WRU74C26-DXijYjrx.js} +1 -1
  23. package/console-app/assets/chunk-XXDRQBXY-DRMEt0Gf.js +1 -0
  24. package/console-app/assets/classDiagram-JCYQIIEL-Bjgk6QkN.js +1 -0
  25. package/console-app/assets/classDiagram-v2-OCEON4UE-Bjgk6QkN.js +1 -0
  26. package/console-app/assets/{cose-bilkent-JH36ORCC-CwA1VCP5.js → cose-bilkent-JH36ORCC-CPN5VkQC.js} +1 -1
  27. package/console-app/assets/{cynefin-VYW2F7L2-C_qsD7eR.js → cynefin-VYW2F7L2-CuBPO3Z0.js} +1 -1
  28. package/console-app/assets/{cynefinDiagram-MW4NZA55-CkSLreFW.js → cynefinDiagram-MW4NZA55-BYc2PGXv.js} +1 -1
  29. package/console-app/assets/{dagre-WqgBlKb7.js → dagre-7HV9Jfb_.js} +1 -1
  30. package/console-app/assets/{dagre-VZM6K2ZE-0ssqLoHs.js → dagre-VZM6K2ZE-BpPyuM7i.js} +1 -1
  31. package/console-app/assets/{diagram-7IWD3JNH-DmRL3lmL.js → diagram-7IWD3JNH-DTH9ID9z.js} +1 -1
  32. package/console-app/assets/{diagram-B4RE2ZJO-Bsr9wG4I.js → diagram-B4RE2ZJO-DwZb9gPm.js} +1 -1
  33. package/console-app/assets/{diagram-LBJQPF4R-DdMw1FSY.js → diagram-LBJQPF4R-DfvBayzk.js} +1 -1
  34. package/console-app/assets/{diagram-Q27KOJAE-TPx5TB2B.js → diagram-Q27KOJAE-hksFpSxs.js} +1 -1
  35. package/console-app/assets/{diagram-UB23O5K3-e_1zSlZR.js → diagram-UB23O5K3-5hEVCouO.js} +1 -1
  36. package/console-app/assets/{ebnfDiagram-BXEA7PRR-BACajh2b.js → ebnfDiagram-BXEA7PRR-D0v6RJvf.js} +1 -1
  37. package/console-app/assets/{erDiagram-JOGREHBK-CojomKqL.js → erDiagram-JOGREHBK-DGps-M4l.js} +1 -1
  38. package/console-app/assets/eventmodeling-45OFAUF4-DWRslJcU.js +1 -0
  39. package/console-app/assets/flowDiagram-UKHOOZJN-CE3qN_pH.js +1 -0
  40. package/console-app/assets/{ganttDiagram-PKOTCBZU-yoOX4Xj2.js → ganttDiagram-PKOTCBZU-Dok7ME1t.js} +1 -1
  41. package/console-app/assets/{gitGraph-TEB2WS4Q-BcUY5hIc.js → gitGraph-TEB2WS4Q-8492lYYh.js} +1 -1
  42. package/console-app/assets/{gitGraphDiagram-DS77QQ5N-BtuIPjuB.js → gitGraphDiagram-DS77QQ5N-sPOnBy5f.js} +1 -1
  43. package/console-app/assets/{index-CzWW052c.js → index-DqNqujdF.js} +184 -184
  44. package/console-app/assets/{info-DKCQHKI2-B-iR9PUz.js → info-DKCQHKI2-U4uEmX4H.js} +1 -1
  45. package/console-app/assets/{infoDiagram-6WML65LV-CuXKIFH2.js → infoDiagram-6WML65LV-CNV12_Nx.js} +1 -1
  46. package/console-app/assets/{ishikawaDiagram-WSZJBQD7-CSueMFD6.js → ishikawaDiagram-WSZJBQD7-CcnTBGLj.js} +1 -1
  47. package/console-app/assets/{journeyDiagram-NVQOT4AX-kvnKStZp.js → journeyDiagram-NVQOT4AX-MX-UQBJ7.js} +1 -1
  48. package/console-app/assets/{kanban-definition-27J2QSJJ-CGGDEz30.js → kanban-definition-27J2QSJJ-BXh1Eu4D.js} +1 -1
  49. package/console-app/assets/{line-mtMM5-xO.js → line-2B2dlQbw.js} +1 -1
  50. package/console-app/assets/{linear-CLSje0O_.js → linear-DAVRH-Dp.js} +1 -1
  51. package/console-app/assets/{mermaid-parser.core-Cx6yvn3j.js → mermaid-parser.core-DxPo1qbR.js} +3 -3
  52. package/console-app/assets/{mermaid.core-BebGyklS.js → mermaid.core-DpvXaF3y.js} +4 -4
  53. package/console-app/assets/{mindmap-definition-FAOFIHXS-C2_WUUJ9.js → mindmap-definition-FAOFIHXS-wIEKn4qe.js} +1 -1
  54. package/console-app/assets/{packet-7NZHBO7P-Dh5yNCA8.js → packet-7NZHBO7P-CXySycDQ.js} +1 -1
  55. package/console-app/assets/{pegDiagram-VL7TDLO6-XgUxesi8.js → pegDiagram-VL7TDLO6-CDGkzO6q.js} +1 -1
  56. package/console-app/assets/{pie-RZYD4A2V-D2x2RAXI.js → pie-RZYD4A2V-9woSahH7.js} +1 -1
  57. package/console-app/assets/{pieDiagram-7S7Q4E2Y-Bbor0KbG.js → pieDiagram-7S7Q4E2Y-DLoZWnVF.js} +1 -1
  58. package/console-app/assets/{quadrantDiagram-CIZ2JOQS-DZmnMHpM.js → quadrantDiagram-CIZ2JOQS-NBGRoga7.js} +1 -1
  59. package/console-app/assets/{radar-I7S5WNFK-CPeriDtN.js → radar-I7S5WNFK-BYhW66ZA.js} +1 -1
  60. package/console-app/assets/{railroad-3IZDKUUU-2iKAyaie.js → railroad-3IZDKUUU-BqHXlwF5.js} +1 -1
  61. package/console-app/assets/railroad-abnf-AHOZXSZD-BfGOy69e.js +1 -0
  62. package/console-app/assets/railroad-ebnf-EBAXGLYW-BbGv9WfS.js +1 -0
  63. package/console-app/assets/railroad-peg-LSFZ7HO6-CCiPI8BL.js +1 -0
  64. package/console-app/assets/{railroadDiagram-AXF67PYL-DVEqCXoo.js → railroadDiagram-AXF67PYL-FYQaHJ6A.js} +1 -1
  65. package/console-app/assets/{requirementDiagram-LRYGKXZP-CSgSNL8p.js → requirementDiagram-LRYGKXZP-ihhW1kgC.js} +1 -1
  66. package/console-app/assets/{sankeyDiagram-W5VNT64P-CFk11odN.js → sankeyDiagram-W5VNT64P-Dw2EbW8v.js} +1 -1
  67. package/console-app/assets/{sequenceDiagram-SI44F4Z6-Cb5u6FsJ.js → sequenceDiagram-SI44F4Z6-C6i_U4QX.js} +1 -1
  68. package/console-app/assets/{src-LceHEY_Q.js → src-DF-84qwJ.js} +1 -1
  69. package/console-app/assets/{stateDiagram-OKZ733FA-DM1jWlkU.js → stateDiagram-OKZ733FA-xH4wcMO4.js} +1 -1
  70. package/console-app/assets/stateDiagram-v2-UEYNNEHI-BJln5PLd.js +1 -0
  71. package/console-app/assets/{swimlanes-SLNWSIFB-DD6MchlE.js → swimlanes-SLNWSIFB-CkFlU1Qc.js} +1 -1
  72. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-CSLhmtbh.js +8 -0
  73. package/console-app/assets/{timeline-definition-Z64GVDOM-zu5cNnVv.js → timeline-definition-Z64GVDOM-BQE9-7mm.js} +1 -1
  74. package/console-app/assets/{treeView-QDETBFTQ-D_4IbvCG.js → treeView-QDETBFTQ-C4hse2Wn.js} +1 -1
  75. package/console-app/assets/{treemap-6X3UGDF4-DNc6bjUc.js → treemap-6X3UGDF4-Bi7ORgq6.js} +1 -1
  76. package/console-app/assets/{vennDiagram-T6HMQDX7-DfqoG28f.js → vennDiagram-T6HMQDX7-DbUdNREA.js} +1 -1
  77. package/console-app/assets/{wardley-OPB4EBWU-BqpI2Lx-.js → wardley-OPB4EBWU-BHqXIxRe.js} +1 -1
  78. package/console-app/assets/{wardleyDiagram-T6FBY63Y-CLIZSvNi.js → wardleyDiagram-T6FBY63Y-1VOvM_bb.js} +1 -1
  79. package/console-app/assets/{xychartDiagram-ELKLHX3M-Cni-XXa6.js → xychartDiagram-ELKLHX3M-C3DVfSR9.js} +1 -1
  80. package/console-app/index.html +1 -1
  81. package/dist/.pikku/addon/index.d.ts +1 -1
  82. package/dist/.pikku/addon/index.js +1 -1
  83. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  84. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  85. package/dist/.pikku/agent/index.d.ts +1 -1
  86. package/dist/.pikku/agent/index.js +1 -1
  87. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  88. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  89. package/dist/.pikku/auth/index.d.ts +1 -1
  90. package/dist/.pikku/auth/index.js +1 -1
  91. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +1 -1
  92. package/dist/.pikku/auth/pikku-auth-types.gen.js +1 -1
  93. package/dist/.pikku/channel/index.d.ts +1 -1
  94. package/dist/.pikku/channel/index.js +1 -1
  95. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  96. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  97. package/dist/.pikku/cli/index.d.ts +1 -1
  98. package/dist/.pikku/cli/index.js +1 -1
  99. package/dist/.pikku/cli/pikku-cli-channel.js +36 -1
  100. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  101. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  102. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  103. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  104. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +21 -0
  105. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  106. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  107. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  108. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +122 -1
  109. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  110. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  111. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  112. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  113. package/dist/.pikku/error/index.d.ts +1 -1
  114. package/dist/.pikku/error/index.js +1 -1
  115. package/dist/.pikku/error/pikku-error-types.gen.d.ts +1 -1
  116. package/dist/.pikku/error/pikku-error-types.gen.js +1 -1
  117. package/dist/.pikku/function/index.d.ts +1 -1
  118. package/dist/.pikku/function/index.js +1 -1
  119. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  120. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  121. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  122. package/dist/.pikku/function/pikku-functions-meta.gen.json +137 -6
  123. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  124. package/dist/.pikku/gateway/index.d.ts +1 -1
  125. package/dist/.pikku/gateway/index.js +1 -1
  126. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +1 -1
  127. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +1 -1
  128. package/dist/.pikku/http/index.d.ts +1 -1
  129. package/dist/.pikku/http/index.js +1 -1
  130. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  131. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  132. package/dist/.pikku/mcp/index.d.ts +1 -1
  133. package/dist/.pikku/mcp/index.js +1 -1
  134. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  135. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  136. package/dist/.pikku/middleware/index.d.ts +1 -1
  137. package/dist/.pikku/middleware/index.js +1 -1
  138. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +1 -1
  139. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +1 -1
  140. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  141. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  142. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  143. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  144. package/dist/.pikku/pikku-services.gen.d.ts +1 -1
  145. package/dist/.pikku/queue/index.d.ts +1 -1
  146. package/dist/.pikku/queue/index.js +1 -1
  147. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  148. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  149. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  150. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  151. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  152. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  153. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +7 -0
  154. package/dist/.pikku/scenarios/index.d.ts +1 -1
  155. package/dist/.pikku/scenarios/index.js +1 -1
  156. package/dist/.pikku/scenarios/pikku-personas.gen.js +1 -1
  157. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  158. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  159. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +1 -1
  160. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  161. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  162. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  163. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  164. package/dist/.pikku/scheduler/index.d.ts +1 -1
  165. package/dist/.pikku/scheduler/index.js +1 -1
  166. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  167. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  168. package/dist/.pikku/schemas/register.gen.js +27 -1
  169. package/dist/.pikku/schemas/schemas/FabricSecretsDeleteInput.schema.json +1 -0
  170. package/dist/.pikku/schemas/schemas/FabricSecretsDeleteOutput.schema.json +1 -0
  171. package/dist/.pikku/schemas/schemas/KnowledgePlanDeferInput.schema.json +1 -0
  172. package/dist/.pikku/schemas/schemas/KnowledgePlanDeferOutput.schema.json +1 -0
  173. package/dist/.pikku/schemas/schemas/KnowledgePlanProgressInput.schema.json +1 -0
  174. package/dist/.pikku/schemas/schemas/KnowledgePlanProgressOutput.schema.json +1 -0
  175. package/dist/.pikku/schemas/schemas/KnowledgePlanSchemaInput.schema.json +1 -0
  176. package/dist/.pikku/schemas/schemas/KnowledgePlanSchemaOutput.schema.json +1 -0
  177. package/dist/.pikku/schemas/schemas/KnowledgePlanSetInput.schema.json +1 -0
  178. package/dist/.pikku/schemas/schemas/KnowledgePlanSetOutput.schema.json +1 -0
  179. package/dist/.pikku/schemas/schemas/KnowledgePlanShowInput.schema.json +1 -0
  180. package/dist/.pikku/schemas/schemas/KnowledgePlanShowOutput.schema.json +1 -0
  181. package/dist/.pikku/schemas/schemas/PikkuDistInput.schema.json +1 -0
  182. package/dist/.pikku/schemas/schemas/PikkuNewAddonInput.schema.json +1 -1
  183. package/dist/.pikku/scopes/index.d.ts +1 -1
  184. package/dist/.pikku/scopes/index.js +1 -1
  185. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  186. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  187. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  188. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  189. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +1 -1
  190. package/dist/.pikku/secrets/index.d.ts +1 -1
  191. package/dist/.pikku/secrets/index.js +1 -1
  192. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  193. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  194. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  195. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  196. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +1 -1
  197. package/dist/.pikku/services/pikku-meta-service.gen.js +1 -1
  198. package/dist/.pikku/setup/index.d.ts +1 -1
  199. package/dist/.pikku/setup/index.js +1 -1
  200. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +1 -1
  201. package/dist/.pikku/setup/pikku-setup-types.gen.js +1 -1
  202. package/dist/.pikku/trigger/index.d.ts +1 -1
  203. package/dist/.pikku/trigger/index.js +1 -1
  204. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  205. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  206. package/dist/.pikku/variables/index.d.ts +1 -1
  207. package/dist/.pikku/variables/index.js +1 -1
  208. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  209. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  210. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  211. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  212. package/dist/.pikku/workflow/index.d.ts +1 -1
  213. package/dist/.pikku/workflow/index.js +1 -1
  214. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  215. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  216. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  217. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  218. package/dist/bin/pikku-bin.mjs +2 -2
  219. package/dist/src/cli.wiring.js +63 -1
  220. package/dist/src/deploy/analyzer/analyzer.js +42 -6
  221. package/dist/src/deploy/build-pipeline.js +92 -4
  222. package/dist/src/deploy/codegen/per-unit-codegen.d.ts +10 -0
  223. package/dist/src/deploy/codegen/per-unit-codegen.js +12 -1
  224. package/dist/src/deploy/server-entry.js +14 -1
  225. package/dist/src/fabric/fabric-commands.d.ts +25 -0
  226. package/dist/src/fabric/fabric-commands.js +13 -0
  227. package/dist/src/fabric/functions/secrets-delete.function.d.ts +36 -0
  228. package/dist/src/fabric/functions/secrets-delete.function.js +51 -0
  229. package/dist/src/functions/commands/dev.js +2 -1
  230. package/dist/src/functions/commands/dist.d.ts +28 -0
  231. package/dist/src/functions/commands/dist.js +58 -0
  232. package/dist/src/functions/commands/knowledge-plan.d.ts +112 -0
  233. package/dist/src/functions/commands/knowledge-plan.js +35 -0
  234. package/dist/src/functions/commands/new-addon.d.ts +30 -0
  235. package/dist/src/functions/commands/new-addon.js +81 -3
  236. package/dist/src/functions/commands/persona-sync.d.ts +5 -4
  237. package/dist/src/functions/commands/persona-sync.js +6 -5
  238. package/dist/src/functions/commands/persona.js +6 -2
  239. package/dist/src/functions/db/local-db.d.ts +1 -1
  240. package/dist/src/functions/db/local-db.js +5 -5
  241. package/dist/src/functions/db/postgres/postgres-introspector.js +1 -1
  242. package/dist/src/functions/db/sqlite/dev-seed.d.ts +1 -1
  243. package/dist/src/functions/db/sqlite/sqlite-introspector.d.ts +1 -1
  244. package/dist/src/functions/db/sqlite/sqlite-introspector.js +1 -1
  245. package/dist/src/functions/db/sqlite/sqlite-kysely.d.ts +1 -1
  246. package/dist/src/functions/knowledge/render.d.ts +6 -1
  247. package/dist/src/functions/knowledge/render.js +74 -0
  248. package/dist/src/functions/knowledge/schemas.d.ts +45 -0
  249. package/dist/src/functions/knowledge/schemas.js +11 -1
  250. package/dist/src/functions/surface/surface-editorial.js +12 -12
  251. package/dist/src/functions/validate/auth-plugin-checks.js +3 -2
  252. package/dist/src/functions/validate/persona-checks.js +2 -1
  253. package/dist/src/functions/validate/shared-checks.js +1 -1
  254. package/dist/src/functions/wirings/realtime/serialize-events-scaffold.d.ts +1 -1
  255. package/dist/src/functions/wirings/realtime/serialize-events-scaffold.js +2 -2
  256. package/dist/src/utils/persona-credentials.d.ts +0 -2
  257. package/dist/src/utils/persona-credentials.js +1 -8
  258. package/dist/tsconfig.tsbuildinfo +1 -1
  259. package/package.json +11 -10
  260. package/snippets.json +1 -1
  261. package/surface.json +1245 -4866
  262. package/console-app/assets/architecture-TIHT7OUA-CWwmvxZF.js +0 -1
  263. package/console-app/assets/channel-pOkwZ_Ot.js +0 -1
  264. package/console-app/assets/chunk-XXDRQBXY-BU_UP6f5.js +0 -1
  265. package/console-app/assets/classDiagram-JCYQIIEL-CLBKUuxj.js +0 -1
  266. package/console-app/assets/classDiagram-v2-OCEON4UE-CLBKUuxj.js +0 -1
  267. package/console-app/assets/eventmodeling-45OFAUF4-DkN2KCrT.js +0 -1
  268. package/console-app/assets/flowDiagram-UKHOOZJN-DL0M9lBc.js +0 -1
  269. package/console-app/assets/railroad-abnf-AHOZXSZD-D26xz4MM.js +0 -1
  270. package/console-app/assets/railroad-ebnf-EBAXGLYW-CCAiMPWc.js +0 -1
  271. package/console-app/assets/railroad-peg-LSFZ7HO6-BA1zcisq.js +0 -1
  272. package/console-app/assets/stateDiagram-v2-UEYNNEHI-COVnPYic.js +0 -1
  273. package/console-app/assets/swimlanesDiagram-ULZ7WXOC-B5q8iRCQ.js +0 -8
  274. package/dist/src/functions/db/db-migrator.d.ts +0 -63
  275. package/dist/src/functions/db/db-migrator.js +0 -136
  276. package/dist/src/functions/db/migration-identifiers.d.ts +0 -58
  277. package/dist/src/functions/db/migration-identifiers.js +0 -262
  278. package/dist/src/functions/db/postgres/postgres-migrator.d.ts +0 -15
  279. package/dist/src/functions/db/postgres/postgres-migrator.js +0 -40
  280. package/dist/src/functions/db/schema-sql.d.ts +0 -43
  281. package/dist/src/functions/db/schema-sql.js +0 -135
  282. package/dist/src/functions/db/sqlite/sqlite-migrator.d.ts +0 -11
  283. package/dist/src/functions/db/sqlite/sqlite-migrator.js +0 -41
  284. package/dist/src/functions/db/sqlite/sqlite-runtime-bun.d.ts +0 -2
  285. package/dist/src/functions/db/sqlite/sqlite-runtime-bun.js +0 -62
  286. package/dist/src/functions/db/sqlite/sqlite-runtime-node.d.ts +0 -2
  287. package/dist/src/functions/db/sqlite/sqlite-runtime-node.js +0 -78
  288. package/dist/src/functions/db/sqlite/sqlite-runtime.d.ts +0 -20
  289. package/dist/src/functions/db/sqlite/sqlite-runtime.js +0 -13
@@ -1,43 +0,0 @@
1
- /**
2
- * Reading a schema source's own SQL back out, one table at a time.
3
- *
4
- * A source hands `db generate` both what must exist (`tables`) and what creates
5
- * it (`sql`). The column map is a comparison surface — it answers "is this
6
- * table there, and does it have these columns" — and it is deliberately lossy:
7
- * primary keys, foreign keys, uniqueness, check constraints and indexes are all
8
- * absent from it. So the moment the generator has to *create* something, the
9
- * only honest source is the SQL, and this is what pulls the relevant part of it
10
- * out.
11
- */
12
- /**
13
- * Split a SQL script into its top-level statements, semicolons included.
14
- *
15
- * A naive `split(';')` is wrong in a way that only shows up later: a semicolon
16
- * inside a string literal, a quoted identifier or a comment is not a statement
17
- * boundary, and cutting there yields two fragments that are each valid-looking
18
- * and neither of which does what the original did.
19
- */
20
- export declare function splitStatements(sql: string): string[];
21
- /**
22
- * Reduce a written table name to the form two sources can be compared on.
23
- *
24
- * The same table is `two_factor` to one writer, `"two_factor"` to Kysely and
25
- * `public.two_factor` to Postgres introspection. Dropping the schema qualifier,
26
- * the quoting and the case is the only shape all three agree on.
27
- */
28
- export declare function bareTableName(name: string): string;
29
- /**
30
- * Every statement in `sql` that builds `table`, in the order the source wrote
31
- * them.
32
- *
33
- * The `CREATE TABLE` and its indexes, plus any `ALTER TABLE` the source uses to
34
- * hang a constraint on it afterwards — which together are what the column list
35
- * cannot express. Source order is preserved because it is load-bearing: an
36
- * index cannot precede its table, and a table cannot precede one it references.
37
- *
38
- * An empty result means the source's SQL does not visibly create the table.
39
- * That is a real answer rather than a failure — a source may create a table
40
- * from something other than a literal `CREATE TABLE` — and the caller is
41
- * expected to fall back rather than emit nothing.
42
- */
43
- export declare function tableCreationSql(sql: string, table: string): string[];
@@ -1,135 +0,0 @@
1
- /**
2
- * Reading a schema source's own SQL back out, one table at a time.
3
- *
4
- * A source hands `db generate` both what must exist (`tables`) and what creates
5
- * it (`sql`). The column map is a comparison surface — it answers "is this
6
- * table there, and does it have these columns" — and it is deliberately lossy:
7
- * primary keys, foreign keys, uniqueness, check constraints and indexes are all
8
- * absent from it. So the moment the generator has to *create* something, the
9
- * only honest source is the SQL, and this is what pulls the relevant part of it
10
- * out.
11
- */
12
- /**
13
- * Split a SQL script into its top-level statements, semicolons included.
14
- *
15
- * A naive `split(';')` is wrong in a way that only shows up later: a semicolon
16
- * inside a string literal, a quoted identifier or a comment is not a statement
17
- * boundary, and cutting there yields two fragments that are each valid-looking
18
- * and neither of which does what the original did.
19
- */
20
- export function splitStatements(sql) {
21
- const statements = [];
22
- let start = 0;
23
- let i = 0;
24
- const closeQuote = (quote) => {
25
- i++;
26
- while (i < sql.length) {
27
- if (sql[i] === '\\' && quote === "'") {
28
- i += 2;
29
- continue;
30
- }
31
- if (sql[i] === quote) {
32
- // A doubled quote is an escaped one, not the end of the literal.
33
- if (sql[i + 1] === quote) {
34
- i += 2;
35
- continue;
36
- }
37
- i++;
38
- return;
39
- }
40
- i++;
41
- }
42
- };
43
- while (i < sql.length) {
44
- const ch = sql[i];
45
- if (ch === "'" || ch === '"' || ch === '`') {
46
- closeQuote(ch);
47
- continue;
48
- }
49
- if (ch === '-' && sql[i + 1] === '-') {
50
- const end = sql.indexOf('\n', i);
51
- i = end === -1 ? sql.length : end + 1;
52
- continue;
53
- }
54
- if (ch === '/' && sql[i + 1] === '*') {
55
- const end = sql.indexOf('*/', i + 2);
56
- i = end === -1 ? sql.length : end + 2;
57
- continue;
58
- }
59
- // Postgres dollar quoting: everything between `$tag$` and its twin is a
60
- // literal, and a function body written that way is full of semicolons.
61
- if (ch === '$') {
62
- const tag = /^\$[A-Za-z_0-9]*\$/.exec(sql.slice(i));
63
- if (tag) {
64
- const end = sql.indexOf(tag[0], i + tag[0].length);
65
- i = end === -1 ? sql.length : end + tag[0].length;
66
- continue;
67
- }
68
- }
69
- if (ch === ';') {
70
- const statement = sql.slice(start, i + 1).trim();
71
- if (statement.length > 1)
72
- statements.push(statement);
73
- start = i + 1;
74
- }
75
- i++;
76
- }
77
- // A script whose last statement has no trailing semicolon still ran it.
78
- const tail = sql.slice(start).trim();
79
- if (tail.length > 0)
80
- statements.push(tail);
81
- return statements;
82
- }
83
- /**
84
- * Reduce a written table name to the form two sources can be compared on.
85
- *
86
- * The same table is `two_factor` to one writer, `"two_factor"` to Kysely and
87
- * `public.two_factor` to Postgres introspection. Dropping the schema qualifier,
88
- * the quoting and the case is the only shape all three agree on.
89
- */
90
- export function bareTableName(name) {
91
- const last = name.split('.').pop() ?? name;
92
- return last.replace(/^["'`[]|["'`\]]$/g, '').toLowerCase();
93
- }
94
- const CREATE_TABLE = /^CREATE\s+(?:TEMP(?:ORARY)?\s+|UNLOGGED\s+)*TABLE\s+(?:IF\s+NOT\s+EXISTS\s+)?([^\s(]+)/i;
95
- const CREATE_INDEX = /^CREATE\s+(?:UNIQUE\s+)?INDEX\s+(?:CONCURRENTLY\s+)?(?:IF\s+NOT\s+EXISTS\s+)?\S+\s+ON\s+(?:ONLY\s+)?([^\s(]+)/i;
96
- const ALTER_TABLE = /^ALTER\s+TABLE\s+(?:IF\s+EXISTS\s+)?(?:ONLY\s+)?([^\s(]+)/i;
97
- /**
98
- * Every statement in `sql` that builds `table`, in the order the source wrote
99
- * them.
100
- *
101
- * The `CREATE TABLE` and its indexes, plus any `ALTER TABLE` the source uses to
102
- * hang a constraint on it afterwards — which together are what the column list
103
- * cannot express. Source order is preserved because it is load-bearing: an
104
- * index cannot precede its table, and a table cannot precede one it references.
105
- *
106
- * An empty result means the source's SQL does not visibly create the table.
107
- * That is a real answer rather than a failure — a source may create a table
108
- * from something other than a literal `CREATE TABLE` — and the caller is
109
- * expected to fall back rather than emit nothing.
110
- */
111
- export function tableCreationSql(sql, table) {
112
- const wanted = bareTableName(table);
113
- const statements = [];
114
- let creates = false;
115
- for (const statement of splitStatements(sql)) {
116
- const create = CREATE_TABLE.exec(statement);
117
- if (create && bareTableName(create[1]) === wanted) {
118
- creates = true;
119
- statements.push(statement);
120
- continue;
121
- }
122
- const index = CREATE_INDEX.exec(statement);
123
- if (index && bareTableName(index[1]) === wanted) {
124
- statements.push(statement);
125
- continue;
126
- }
127
- const alter = ALTER_TABLE.exec(statement);
128
- if (alter && bareTableName(alter[1]) === wanted) {
129
- statements.push(statement);
130
- }
131
- }
132
- // Indexes and alters without the table they belong to would fail on their own,
133
- // and their presence says the table came from somewhere this cannot read.
134
- return creates ? statements : [];
135
- }
@@ -1,11 +0,0 @@
1
- import type { MigrationExecutor, AppliedMigration } from '../db-migrator.js';
2
- import type { SyncSqliteDatabase } from './sqlite-runtime.js';
3
- export declare class SqliteMigrationExecutor implements MigrationExecutor {
4
- private readonly db;
5
- constructor(db: SyncSqliteDatabase);
6
- ensureTrackingTable(): Promise<void>;
7
- getApplied(): Promise<AppliedMigration[]>;
8
- recordMigration(name: string, hash: string): Promise<void>;
9
- runMigration(sql: string, name: string, hash: string): Promise<void>;
10
- }
11
- export declare function dropTrackingTable(db: SyncSqliteDatabase): void;
@@ -1,41 +0,0 @@
1
- import { MIGRATION_TRACKING_TABLE as TRACKING_TABLE } from '../db-migrator.js';
2
- export class SqliteMigrationExecutor {
3
- db;
4
- constructor(db) {
5
- this.db = db;
6
- }
7
- async ensureTrackingTable() {
8
- this.db.exec(`CREATE TABLE IF NOT EXISTS ${TRACKING_TABLE} (
9
- name TEXT PRIMARY KEY,
10
- hash TEXT NOT NULL,
11
- applied_at TEXT NOT NULL DEFAULT (datetime('now'))
12
- )`);
13
- }
14
- async getApplied() {
15
- return this.db
16
- .prepare(`SELECT name, hash, applied_at FROM ${TRACKING_TABLE} ORDER BY name`)
17
- .all();
18
- }
19
- async recordMigration(name, hash) {
20
- this.db
21
- .prepare(`INSERT INTO ${TRACKING_TABLE} (name, hash) VALUES (?, ?)`)
22
- .run(name, hash);
23
- }
24
- async runMigration(sql, name, hash) {
25
- this.db.exec('BEGIN');
26
- try {
27
- this.db.exec(sql);
28
- this.db
29
- .prepare(`INSERT INTO ${TRACKING_TABLE} (name, hash) VALUES (?, ?)`)
30
- .run(name, hash);
31
- this.db.exec('COMMIT');
32
- }
33
- catch (err) {
34
- this.db.exec('ROLLBACK');
35
- throw err;
36
- }
37
- }
38
- }
39
- export function dropTrackingTable(db) {
40
- db.exec(`DROP TABLE IF EXISTS ${TRACKING_TABLE}`);
41
- }
@@ -1,2 +0,0 @@
1
- import type { SqliteRuntime } from './sqlite-runtime.js';
2
- export declare const bunSqliteRuntime: SqliteRuntime;
@@ -1,62 +0,0 @@
1
- import { Database } from 'bun:sqlite';
2
- class BunSqliteStatement {
3
- stmt;
4
- reader;
5
- constructor(stmt, reader) {
6
- this.stmt = stmt;
7
- this.reader = reader;
8
- }
9
- all(...parameters) {
10
- return this.stmt.all(...parameters);
11
- }
12
- get(...parameters) {
13
- return (this.stmt.get(...parameters) ?? null);
14
- }
15
- iterate(...parameters) {
16
- return this.stmt.iterate(...parameters);
17
- }
18
- run(...parameters) {
19
- const result = this.stmt.run(...parameters);
20
- return {
21
- changes: result.changes,
22
- lastInsertRowid: result.lastInsertRowid,
23
- };
24
- }
25
- }
26
- class BunSqliteDatabase {
27
- db;
28
- constructor(db) {
29
- this.db = db;
30
- }
31
- exec(sql) {
32
- // bun:sqlite throws "no valid SQL statement" on comment-only/empty input
33
- // (e.g. a placeholder dev-seed.sql); node:sqlite silently no-ops. Match node's
34
- // tolerance by skipping when nothing executable remains after stripping
35
- // comments. The original `sql` is still exec'd verbatim when non-empty.
36
- const executable = sql
37
- .replace(/--[^\n]*/g, '')
38
- .replace(/\/\*[\s\S]*?\*\//g, '')
39
- .trim();
40
- if (executable.length === 0)
41
- return;
42
- this.db.exec(sql);
43
- }
44
- prepare(sql) {
45
- return new BunSqliteStatement(this.db.prepare(sql), isReaderSql(sql));
46
- }
47
- close() {
48
- this.db.close();
49
- }
50
- }
51
- function isReaderSql(sql) {
52
- const normalized = sql.trimStart().toUpperCase();
53
- return (normalized.startsWith('SELECT') ||
54
- normalized.startsWith('WITH') ||
55
- normalized.startsWith('PRAGMA') ||
56
- normalized.startsWith('EXPLAIN'));
57
- }
58
- export const bunSqliteRuntime = {
59
- open(filename) {
60
- return new BunSqliteDatabase(new Database(filename));
61
- },
62
- };
@@ -1,2 +0,0 @@
1
- import type { SqliteRuntime } from './sqlite-runtime.js';
2
- export declare function createNodeSqliteRuntime(): Promise<SqliteRuntime>;
@@ -1,78 +0,0 @@
1
- class NodeSqliteStatement {
2
- stmt;
3
- reader;
4
- constructor(stmt, sql) {
5
- this.stmt = stmt;
6
- // node:sqlite StatementSync does not have a .reader property
7
- // (that's a better-sqlite3 API). Fall back to SQL inspection when absent.
8
- if (stmt.reader !== undefined) {
9
- this.reader = Boolean(stmt.reader);
10
- }
11
- else {
12
- const upper = sql.trimStart().toUpperCase();
13
- this.reader =
14
- upper.startsWith('SELECT') ||
15
- upper.startsWith('WITH') ||
16
- upper.startsWith('PRAGMA') ||
17
- upper.startsWith('EXPLAIN') ||
18
- upper.startsWith('VALUES') ||
19
- /\bRETURNING\b/.test(upper);
20
- }
21
- }
22
- all(...parameters) {
23
- return this.stmt.all(...parameters);
24
- }
25
- get(...parameters) {
26
- return this.stmt.get(...parameters) ?? null;
27
- }
28
- iterate(...parameters) {
29
- return this.stmt.iterate(...parameters);
30
- }
31
- run(...parameters) {
32
- const result = this.stmt.run(...parameters);
33
- return {
34
- changes: result.changes,
35
- lastInsertRowid: result.lastInsertRowid,
36
- };
37
- }
38
- }
39
- class NodeSqliteDatabase {
40
- db;
41
- constructor(db) {
42
- this.db = db;
43
- }
44
- exec(sql) {
45
- this.db.exec(sql);
46
- }
47
- prepare(sql) {
48
- return new NodeSqliteStatement(this.db.prepare(sql), sql);
49
- }
50
- close() {
51
- this.db.close();
52
- }
53
- }
54
- async function importNodeSqlite() {
55
- const dynamicImport = new Function('return import("node:sqlite")');
56
- try {
57
- return await dynamicImport();
58
- }
59
- catch (error) {
60
- // node ships node:sqlite unflagged only from 24. The raw failure is
61
- // ERR_UNKNOWN_BUILTIN_MODULE, which reads like a broken install rather than
62
- // a runtime that is simply too old — so say which it is and how to get past it.
63
- if (error?.code === 'ERR_UNKNOWN_BUILTIN_MODULE') {
64
- throw new Error(`This needs node:sqlite, which Node ${process.versions.node} does not provide ` +
65
- `(it is unflagged from Node 24). Either upgrade Node, or run the CLI on bun, ` +
66
- `which has it: \`bunx --bun pikku <command>\`.`, { cause: error });
67
- }
68
- throw error;
69
- }
70
- }
71
- export async function createNodeSqliteRuntime() {
72
- const { DatabaseSync } = await importNodeSqlite();
73
- return {
74
- open(filename) {
75
- return new NodeSqliteDatabase(new DatabaseSync(filename));
76
- },
77
- };
78
- }
@@ -1,20 +0,0 @@
1
- export interface SyncSqliteChanges {
2
- changes: number | bigint;
3
- lastInsertRowid: number | bigint;
4
- }
5
- export interface SyncSqliteStatement {
6
- reader: boolean;
7
- all(...parameters: unknown[]): unknown[];
8
- get(...parameters: unknown[]): unknown | null;
9
- iterate(...parameters: unknown[]): IterableIterator<unknown>;
10
- run(...parameters: unknown[]): SyncSqliteChanges;
11
- }
12
- export interface SyncSqliteDatabase {
13
- exec(sql: string): void;
14
- prepare(sql: string): SyncSqliteStatement;
15
- close(): void;
16
- }
17
- export interface SqliteRuntime {
18
- open(filename: string): SyncSqliteDatabase;
19
- }
20
- export declare function loadSqliteRuntime(): Promise<SqliteRuntime>;
@@ -1,13 +0,0 @@
1
- let runtimePromise;
2
- export async function loadSqliteRuntime() {
3
- runtimePromise ??= (async () => {
4
- const isBunRuntime = typeof globalThis.Bun !== 'undefined';
5
- if (isBunRuntime) {
6
- const { bunSqliteRuntime } = await import('./sqlite-runtime-bun.js');
7
- return bunSqliteRuntime;
8
- }
9
- const { createNodeSqliteRuntime } = await import('./sqlite-runtime-node.js');
10
- return createNodeSqliteRuntime();
11
- })();
12
- return runtimePromise;
13
- }