@pikku/addon-console 0.12.42 → 0.12.43

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 (934) hide show
  1. package/CHANGELOG.md +2002 -0
  2. package/dist/.pikku/addon/agent/index.d.ts +8 -0
  3. package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
  4. package/dist/.pikku/addon/agent/index.js +8 -0
  5. package/dist/.pikku/addon/agent/index.js.map +1 -0
  6. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -0
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +54 -0
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
  9. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js +20 -0
  10. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
  11. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts +2 -0
  12. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  13. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
  14. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
  15. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +8 -0
  16. package/dist/.pikku/addon/auth/auth.types.d.ts +5 -0
  17. package/dist/.pikku/addon/auth/auth.types.d.ts.map +1 -0
  18. package/dist/.pikku/addon/auth/auth.types.js +6 -0
  19. package/dist/.pikku/addon/auth/auth.types.js.map +1 -0
  20. package/dist/.pikku/addon/auth/index.d.ts +9 -0
  21. package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
  22. package/dist/.pikku/addon/auth/index.js +9 -0
  23. package/dist/.pikku/addon/auth/index.js.map +1 -0
  24. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +119 -0
  25. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
  26. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +93 -0
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
  28. package/dist/.pikku/addon/channel/index.d.ts +8 -0
  29. package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
  30. package/dist/.pikku/addon/channel/index.js +8 -0
  31. package/dist/.pikku/addon/channel/index.js.map +1 -0
  32. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts +91 -0
  33. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
  34. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js +43 -0
  35. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
  36. package/dist/.pikku/addon/error/index.d.ts +8 -0
  37. package/dist/.pikku/addon/error/index.d.ts.map +1 -0
  38. package/dist/.pikku/addon/error/index.js +8 -0
  39. package/dist/.pikku/addon/error/index.js.map +1 -0
  40. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
  41. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
  42. package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
  43. package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
  44. package/dist/.pikku/addon/function/index.d.ts +8 -0
  45. package/dist/.pikku/addon/function/index.d.ts.map +1 -0
  46. package/dist/.pikku/addon/function/index.js +8 -0
  47. package/dist/.pikku/addon/function/index.js.map +1 -0
  48. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +270 -0
  49. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
  50. package/dist/.pikku/addon/function/pikku-function-types.gen.js +117 -0
  51. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
  52. package/dist/.pikku/addon/function/pikku-functions-meta-verbose.gen.json +2146 -0
  53. package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts +2 -0
  54. package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
  55. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js +7 -0
  56. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
  57. package/dist/.pikku/addon/function/pikku-functions-meta.gen.json +1690 -0
  58. package/dist/.pikku/addon/function/pikku-functions.gen.d.ts +2 -0
  59. package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
  60. package/dist/.pikku/addon/function/pikku-functions.gen.js +126 -0
  61. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
  62. package/dist/.pikku/addon/http/index.d.ts +8 -0
  63. package/dist/.pikku/addon/http/index.d.ts.map +1 -0
  64. package/dist/.pikku/addon/http/index.js +8 -0
  65. package/dist/.pikku/addon/http/index.js.map +1 -0
  66. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +50 -0
  67. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
  68. package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
  69. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
  70. package/dist/.pikku/addon/index.d.ts +8 -0
  71. package/dist/.pikku/addon/index.d.ts.map +1 -0
  72. package/dist/.pikku/addon/index.js +8 -0
  73. package/dist/.pikku/addon/index.js.map +1 -0
  74. package/dist/.pikku/addon/mcp/index.d.ts +8 -0
  75. package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
  76. package/dist/.pikku/addon/mcp/index.js +8 -0
  77. package/dist/.pikku/addon/mcp/index.js.map +1 -0
  78. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts +102 -0
  79. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  80. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
  81. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
  82. package/dist/.pikku/addon/middleware/index.d.ts +8 -0
  83. package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
  84. package/dist/.pikku/addon/middleware/index.js +8 -0
  85. package/dist/.pikku/addon/middleware/index.js.map +1 -0
  86. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +118 -0
  87. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
  88. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +109 -0
  89. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
  90. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +2 -2
  91. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  92. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts +10 -0
  93. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  94. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js +10 -0
  95. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
  96. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts +10 -0
  97. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
  98. package/dist/.pikku/addon/pikku-bootstrap.gen.js +10 -0
  99. package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
  100. package/dist/.pikku/addon/pikku-package.gen.js +3 -3
  101. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  102. package/dist/.pikku/addon/pikku-services.gen.d.ts +50 -0
  103. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
  104. package/dist/.pikku/addon/pikku-services.gen.js +46 -0
  105. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
  106. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.gen.d.ts +251 -0
  107. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +253 -0
  108. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +184 -0
  109. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
  110. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  111. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
  112. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  113. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.json +62 -0
  114. package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
  115. package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
  116. package/dist/.pikku/addon/scenarios/index.js +8 -0
  117. package/dist/.pikku/addon/scenarios/index.js.map +1 -0
  118. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts +18 -0
  119. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
  120. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js +18 -0
  121. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
  122. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts +2 -0
  123. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  124. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js +11 -0
  125. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  126. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.json +1 -0
  127. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  128. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  129. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js +2 -0
  130. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts +311 -0
  132. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
  133. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js +72 -0
  134. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
  135. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts +2 -0
  136. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  137. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js +11 -0
  138. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  139. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  140. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  141. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js +2 -0
  142. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  143. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
  144. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
  145. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
  146. package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
  147. package/dist/.pikku/addon/schemas/register.gen.d.ts +2 -0
  148. package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
  149. package/dist/.pikku/addon/schemas/register.gen.js +201 -0
  150. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
  151. package/dist/.pikku/addon/schemas/schemas/AddonMetaPage.schema.json +1 -0
  152. package/dist/.pikku/addon/schemas/schemas/AddonMetaQuery.schema.json +1 -0
  153. package/dist/.pikku/addon/schemas/schemas/AddonPackageInfo.schema.json +1 -0
  154. package/dist/.pikku/addon/schemas/schemas/AddonReadinessInput.schema.json +1 -0
  155. package/dist/.pikku/addon/schemas/schemas/AddonReadinessOutput.schema.json +1 -0
  156. package/dist/.pikku/addon/schemas/schemas/AgentCredentialCheckInput.schema.json +1 -0
  157. package/dist/.pikku/addon/schemas/schemas/AgentCredentialCheckOutput.schema.json +1 -0
  158. package/dist/.pikku/addon/schemas/schemas/AllMeta.schema.json +1 -0
  159. package/dist/.pikku/addon/schemas/schemas/AuthProvidersMeta.schema.json +1 -0
  160. package/dist/.pikku/addon/schemas/schemas/ChannelSnippets.schema.json +1 -0
  161. package/dist/.pikku/addon/schemas/schemas/DbSchema.schema.json +1 -0
  162. package/dist/.pikku/addon/schemas/schemas/DeleteAgentThreadInput.schema.json +1 -0
  163. package/dist/.pikku/addon/schemas/schemas/DeleteAgentThreadOutput.schema.json +1 -0
  164. package/dist/.pikku/addon/schemas/schemas/DeleteScenarioRunInput.schema.json +1 -0
  165. package/dist/.pikku/addon/schemas/schemas/DeleteWorkflowRunInput.schema.json +1 -0
  166. package/dist/.pikku/addon/schemas/schemas/DeleteWorkflowRunOutput.schema.json +1 -0
  167. package/dist/.pikku/addon/schemas/schemas/GetAddonCategoriesOutput.schema.json +1 -0
  168. package/dist/.pikku/addon/schemas/schemas/GetAddonCommunityPackageInput.schema.json +1 -0
  169. package/dist/.pikku/addon/schemas/schemas/GetAddonIconInput.schema.json +1 -0
  170. package/dist/.pikku/addon/schemas/schemas/GetAddonInstalledPackageInput.schema.json +1 -0
  171. package/dist/.pikku/addon/schemas/schemas/GetAddonInstancesInput.schema.json +1 -0
  172. package/dist/.pikku/addon/schemas/schemas/GetAddonInstancesOutput.schema.json +1 -0
  173. package/dist/.pikku/addon/schemas/schemas/GetAgentRunScoresInput.schema.json +1 -0
  174. package/dist/.pikku/addon/schemas/schemas/GetAgentRunScoresOutput.schema.json +1 -0
  175. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadMessagesInput.schema.json +1 -0
  176. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadMessagesOutput.schema.json +1 -0
  177. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadRunsInput.schema.json +1 -0
  178. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadRunsOutput.schema.json +1 -0
  179. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadsInput.schema.json +1 -0
  180. package/dist/.pikku/addon/schemas/schemas/GetAgentThreadsOutput.schema.json +1 -0
  181. package/dist/.pikku/addon/schemas/schemas/GetChannelSnippetsInput.schema.json +1 -0
  182. package/dist/.pikku/addon/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -0
  183. package/dist/.pikku/addon/schemas/schemas/GetInstalledAddonsOutput.schema.json +1 -0
  184. package/dist/.pikku/addon/schemas/schemas/GetMyAccessOutput.schema.json +1 -0
  185. package/dist/.pikku/addon/schemas/schemas/GetOpenapiCategoriesOutput.schema.json +1 -0
  186. package/dist/.pikku/addon/schemas/schemas/GetOpenapiDetailInput.schema.json +1 -0
  187. package/dist/.pikku/addon/schemas/schemas/GetOpenapiDetailOutput.schema.json +1 -0
  188. package/dist/.pikku/addon/schemas/schemas/GetOpenapisInput.schema.json +1 -0
  189. package/dist/.pikku/addon/schemas/schemas/GetOpenapisOutput.schema.json +1 -0
  190. package/dist/.pikku/addon/schemas/schemas/GetScenarioArtifactInput.schema.json +1 -0
  191. package/dist/.pikku/addon/schemas/schemas/GetScenarioRunInput.schema.json +1 -0
  192. package/dist/.pikku/addon/schemas/schemas/GetSchemaInput.schema.json +1 -0
  193. package/dist/.pikku/addon/schemas/schemas/GetScorersOutput.schema.json +1 -0
  194. package/dist/.pikku/addon/schemas/schemas/GetStateDiffInput.schema.json +1 -0
  195. package/dist/.pikku/addon/schemas/schemas/GetWebhookDeliveryInput.schema.json +1 -0
  196. package/dist/.pikku/addon/schemas/schemas/GetWorkflowMetaByIdInput.schema.json +1 -0
  197. package/dist/.pikku/addon/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +1 -0
  198. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunHistoryInput.schema.json +1 -0
  199. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunHistoryOutput.schema.json +1 -0
  200. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunInput.schema.json +1 -0
  201. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunNamesOutput.schema.json +1 -0
  202. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunOutput.schema.json +1 -0
  203. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunStepsInput.schema.json +1 -0
  204. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunStepsOutput.schema.json +1 -0
  205. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunsInput.schema.json +1 -0
  206. package/dist/.pikku/addon/schemas/schemas/GetWorkflowRunsOutput.schema.json +1 -0
  207. package/dist/.pikku/addon/schemas/schemas/GetWorkflowVersionInput.schema.json +1 -0
  208. package/dist/.pikku/addon/schemas/schemas/GetWorkflowVersionOutput.schema.json +1 -0
  209. package/dist/.pikku/addon/schemas/schemas/InstallAddonInput.schema.json +1 -0
  210. package/dist/.pikku/addon/schemas/schemas/InstallAddonOutput.schema.json +1 -0
  211. package/dist/.pikku/addon/schemas/schemas/InstallOpenapiAddonInput.schema.json +1 -0
  212. package/dist/.pikku/addon/schemas/schemas/InstallOpenapiAddonOutput.schema.json +1 -0
  213. package/dist/.pikku/addon/schemas/schemas/JSONSchema7.schema.json +1 -0
  214. package/dist/.pikku/addon/schemas/schemas/KnowledgeBundle.schema.json +1 -0
  215. package/dist/.pikku/addon/schemas/schemas/ListScenarioRunsInput.schema.json +1 -0
  216. package/dist/.pikku/addon/schemas/schemas/ListScenarioRunsOutput.schema.json +1 -0
  217. package/dist/.pikku/addon/schemas/schemas/ListWebhookDeliveriesInput.schema.json +1 -0
  218. package/dist/.pikku/addon/schemas/schemas/ListWebhookDeliveriesOutput.schema.json +1 -0
  219. package/dist/.pikku/addon/schemas/schemas/PingOutput.schema.json +1 -0
  220. package/dist/.pikku/addon/schemas/schemas/ReadAgentSourceInput.schema.json +1 -0
  221. package/dist/.pikku/addon/schemas/schemas/ReadAgentSourceOutput.schema.json +1 -0
  222. package/dist/.pikku/addon/schemas/schemas/ReadFunctionBodyInput.schema.json +1 -0
  223. package/dist/.pikku/addon/schemas/schemas/ReadFunctionBodyOutput.schema.json +1 -0
  224. package/dist/.pikku/addon/schemas/schemas/ReadFunctionSourceInput.schema.json +1 -0
  225. package/dist/.pikku/addon/schemas/schemas/ReadFunctionSourceOutput.schema.json +1 -0
  226. package/dist/.pikku/addon/schemas/schemas/RenderEmailPreviewInput.schema.json +1 -0
  227. package/dist/.pikku/addon/schemas/schemas/RenderEmailPreviewOutput.schema.json +1 -0
  228. package/dist/.pikku/addon/schemas/schemas/ScenarioRunRecord.schema.json +1 -0
  229. package/dist/.pikku/addon/schemas/schemas/SecretGetInput.schema.json +1 -0
  230. package/dist/.pikku/addon/schemas/schemas/SecretGetOutput.schema.json +1 -0
  231. package/dist/.pikku/addon/schemas/schemas/SecretHasInput.schema.json +1 -0
  232. package/dist/.pikku/addon/schemas/schemas/SecretHasOutput.schema.json +1 -0
  233. package/dist/.pikku/addon/schemas/schemas/SecretSetInput.schema.json +1 -0
  234. package/dist/.pikku/addon/schemas/schemas/SecretSetOutput.schema.json +1 -0
  235. package/dist/.pikku/addon/schemas/schemas/SecurityAuditReport.schema.json +1 -0
  236. package/dist/.pikku/addon/schemas/schemas/StateDiff.schema.json +1 -0
  237. package/dist/.pikku/addon/schemas/schemas/StreamWorkflowRunInput.schema.json +1 -0
  238. package/dist/.pikku/addon/schemas/schemas/SurfaceResult.schema.json +1 -0
  239. package/dist/.pikku/addon/schemas/schemas/UpdateAgentConfigInput.schema.json +1 -0
  240. package/dist/.pikku/addon/schemas/schemas/UpdateAgentConfigOutput.schema.json +1 -0
  241. package/dist/.pikku/addon/schemas/schemas/UpdateDependencyInput.schema.json +1 -0
  242. package/dist/.pikku/addon/schemas/schemas/UpdateEmailTemplateInput.schema.json +1 -0
  243. package/dist/.pikku/addon/schemas/schemas/UpdateEmailTemplateOutput.schema.json +1 -0
  244. package/dist/.pikku/addon/schemas/schemas/UpdateFunctionBodyInput.schema.json +1 -0
  245. package/dist/.pikku/addon/schemas/schemas/UpdateFunctionBodyOutput.schema.json +1 -0
  246. package/dist/.pikku/addon/schemas/schemas/UpdateFunctionConfigInput.schema.json +1 -0
  247. package/dist/.pikku/addon/schemas/schemas/UpdateFunctionConfigOutput.schema.json +1 -0
  248. package/dist/.pikku/addon/schemas/schemas/WebhookDeliveryWithAttempts.schema.json +1 -0
  249. package/dist/.pikku/addon/scopes/index.d.ts +8 -0
  250. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
  251. package/dist/.pikku/addon/scopes/index.js +8 -0
  252. package/dist/.pikku/addon/scopes/index.js.map +1 -0
  253. package/dist/.pikku/addon/scopes/pikku-personas-meta.gen.json +1 -0
  254. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts +29 -0
  255. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
  256. package/dist/.pikku/addon/scopes/pikku-personas.gen.js +18 -0
  257. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
  258. package/dist/.pikku/addon/scopes/pikku-roles-meta.gen.json +1 -0
  259. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts +31 -0
  260. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
  261. package/dist/.pikku/addon/scopes/pikku-roles.gen.js +19 -0
  262. package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
  263. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
  264. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  265. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js +6 -0
  266. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
  267. package/dist/.pikku/addon/scopes/pikku-scopes-meta.gen.json +144 -0
  268. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts +36 -0
  269. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
  270. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js +30 -0
  271. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
  272. package/dist/.pikku/addon/secrets/index.d.ts +9 -0
  273. package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
  274. package/dist/.pikku/addon/secrets/index.js +9 -0
  275. package/dist/.pikku/addon/secrets/index.js.map +1 -0
  276. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
  277. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
  278. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
  279. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
  280. package/dist/.pikku/addon/secrets/pikku-secrets-meta.gen.json +1 -0
  281. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +18 -0
  282. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
  283. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +19 -0
  284. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
  285. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts +8 -0
  286. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
  287. package/dist/.pikku/addon/services/pikku-meta-service.gen.js +10 -0
  288. package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
  289. package/dist/.pikku/addon/setup/index.d.ts +9 -0
  290. package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
  291. package/dist/.pikku/addon/setup/index.js +9 -0
  292. package/dist/.pikku/addon/setup/index.js.map +1 -0
  293. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts +66 -0
  294. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
  295. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js +78 -0
  296. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
  297. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +67 -0
  298. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
  299. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +88 -0
  300. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
  301. package/dist/.pikku/addon/trigger/index.d.ts +8 -0
  302. package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
  303. package/dist/.pikku/addon/trigger/index.js +8 -0
  304. package/dist/.pikku/addon/trigger/index.js.map +1 -0
  305. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts +83 -0
  306. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
  307. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
  308. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
  309. package/dist/.pikku/addon/variables/index.d.ts +9 -0
  310. package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
  311. package/dist/.pikku/addon/variables/index.js +9 -0
  312. package/dist/.pikku/addon/variables/index.js.map +1 -0
  313. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
  314. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
  315. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
  316. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
  317. package/dist/.pikku/addon/variables/pikku-variables-meta.gen.json +1 -0
  318. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +19 -0
  319. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
  320. package/dist/.pikku/addon/variables/pikku-variables.gen.js +19 -0
  321. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
  322. package/dist/.pikku/addon/workflow/index.d.ts +8 -0
  323. package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
  324. package/dist/.pikku/addon/workflow/index.js +8 -0
  325. package/dist/.pikku/addon/workflow/index.js.map +1 -0
  326. package/dist/.pikku/addon/workflow/pikku-scenario-step-map.gen.d.ts +18 -0
  327. package/dist/.pikku/addon/workflow/pikku-workflow-map.gen.d.ts +38 -0
  328. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +106 -0
  329. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
  330. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +16 -0
  331. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
  332. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
  333. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
  334. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
  335. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
  336. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
  337. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
  338. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
  339. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
  340. package/dist/.pikku/agent/index.d.ts +8 -0
  341. package/dist/.pikku/agent/index.d.ts.map +1 -0
  342. package/dist/.pikku/agent/index.js +8 -0
  343. package/dist/.pikku/agent/index.js.map +1 -0
  344. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +8 -7
  345. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  346. package/dist/.pikku/agent/pikku-agent-types.gen.js +2 -3
  347. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  348. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  349. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -1
  350. package/dist/.pikku/auth/index.d.ts +9 -0
  351. package/dist/.pikku/auth/index.d.ts.map +1 -0
  352. package/dist/.pikku/auth/index.js +9 -0
  353. package/dist/.pikku/auth/index.js.map +1 -0
  354. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts +119 -0
  355. package/dist/.pikku/auth/pikku-auth-types.gen.d.ts.map +1 -0
  356. package/dist/.pikku/auth/pikku-auth-types.gen.js +93 -0
  357. package/dist/.pikku/auth/pikku-auth-types.gen.js.map +1 -0
  358. package/dist/.pikku/channel/index.d.ts +8 -0
  359. package/dist/.pikku/channel/index.d.ts.map +1 -0
  360. package/dist/.pikku/channel/index.js +8 -0
  361. package/dist/.pikku/channel/index.js.map +1 -0
  362. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +4 -25
  363. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -1
  364. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -19
  365. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -1
  366. package/dist/.pikku/credentials/index.d.ts +8 -0
  367. package/dist/.pikku/credentials/index.d.ts.map +1 -0
  368. package/dist/.pikku/credentials/index.js +8 -0
  369. package/dist/.pikku/credentials/index.js.map +1 -0
  370. package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts +5 -0
  371. package/dist/.pikku/credentials/pikku-credential-types.gen.d.ts.map +1 -0
  372. package/dist/.pikku/credentials/pikku-credential-types.gen.js +5 -0
  373. package/dist/.pikku/credentials/pikku-credential-types.gen.js.map +1 -0
  374. package/dist/.pikku/error/index.d.ts +8 -0
  375. package/dist/.pikku/error/index.d.ts.map +1 -0
  376. package/dist/.pikku/error/index.js +8 -0
  377. package/dist/.pikku/error/index.js.map +1 -0
  378. package/dist/.pikku/error/pikku-error-types.gen.d.ts +8 -0
  379. package/dist/.pikku/error/pikku-error-types.gen.d.ts.map +1 -0
  380. package/dist/.pikku/error/pikku-error-types.gen.js +8 -0
  381. package/dist/.pikku/error/pikku-error-types.gen.js.map +1 -0
  382. package/dist/.pikku/function/index.d.ts +8 -0
  383. package/dist/.pikku/function/index.d.ts.map +1 -0
  384. package/dist/.pikku/function/index.js +8 -0
  385. package/dist/.pikku/function/index.js.map +1 -0
  386. package/dist/.pikku/function/pikku-function-types.gen.d.ts +28 -262
  387. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  388. package/dist/.pikku/function/pikku-function-types.gen.js +1 -236
  389. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  390. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +201 -680
  391. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  392. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
  393. package/dist/.pikku/function/pikku-functions-meta.gen.json +159 -535
  394. package/dist/.pikku/function/pikku-functions.gen.js +10 -36
  395. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  396. package/dist/.pikku/gateway/index.d.ts +8 -0
  397. package/dist/.pikku/gateway/index.d.ts.map +1 -0
  398. package/dist/.pikku/gateway/index.js +8 -0
  399. package/dist/.pikku/gateway/index.js.map +1 -0
  400. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts +38 -0
  401. package/dist/.pikku/gateway/pikku-gateway-types.gen.d.ts.map +1 -0
  402. package/dist/.pikku/gateway/pikku-gateway-types.gen.js +26 -0
  403. package/dist/.pikku/gateway/pikku-gateway-types.gen.js.map +1 -0
  404. package/dist/.pikku/http/index.d.ts +8 -0
  405. package/dist/.pikku/http/index.d.ts.map +1 -0
  406. package/dist/.pikku/http/index.js +8 -0
  407. package/dist/.pikku/http/index.js.map +1 -0
  408. package/dist/.pikku/http/pikku-http-types.gen.d.ts +3 -51
  409. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  410. package/dist/.pikku/http/pikku-http-types.gen.js +1 -40
  411. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  412. package/dist/.pikku/mcp/index.d.ts +8 -0
  413. package/dist/.pikku/mcp/index.d.ts.map +1 -0
  414. package/dist/.pikku/mcp/index.js +8 -0
  415. package/dist/.pikku/mcp/index.js.map +1 -0
  416. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +5 -35
  417. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  418. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -22
  419. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -1
  420. package/dist/.pikku/middleware/index.d.ts +8 -0
  421. package/dist/.pikku/middleware/index.d.ts.map +1 -0
  422. package/dist/.pikku/middleware/index.js +8 -0
  423. package/dist/.pikku/middleware/index.js.map +1 -0
  424. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts +118 -0
  425. package/dist/.pikku/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
  426. package/dist/.pikku/middleware/pikku-middleware-types.gen.js +109 -0
  427. package/dist/.pikku/middleware/pikku-middleware-types.gen.js.map +1 -0
  428. package/dist/.pikku/pikku-services.gen.d.ts +6 -5
  429. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  430. package/dist/.pikku/pikku-services.gen.js +5 -4
  431. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  432. package/dist/.pikku/pikku-types.gen.d.ts +0 -1
  433. package/dist/.pikku/pikku-types.gen.d.ts.map +1 -1
  434. package/dist/.pikku/pikku-types.gen.js +0 -2
  435. package/dist/.pikku/pikku-types.gen.js.map +1 -1
  436. package/dist/.pikku/queue/index.d.ts +8 -0
  437. package/dist/.pikku/queue/index.d.ts.map +1 -0
  438. package/dist/.pikku/queue/index.js +8 -0
  439. package/dist/.pikku/queue/index.js.map +1 -0
  440. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  441. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -1
  442. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +16 -55
  443. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +17 -55
  444. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +11 -35
  445. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  446. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  447. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +5 -18
  448. package/dist/.pikku/scenarios/index.d.ts +8 -0
  449. package/dist/.pikku/scenarios/index.d.ts.map +1 -0
  450. package/dist/.pikku/scenarios/index.js +8 -0
  451. package/dist/.pikku/scenarios/index.js.map +1 -0
  452. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts +18 -0
  453. package/dist/.pikku/scenarios/pikku-personas.gen.d.ts.map +1 -0
  454. package/dist/.pikku/scenarios/pikku-personas.gen.js +18 -0
  455. package/dist/.pikku/scenarios/pikku-personas.gen.js.map +1 -0
  456. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  457. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -1
  458. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts +311 -0
  459. package/dist/.pikku/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
  460. package/dist/.pikku/scenarios/pikku-scenario-types.gen.js +72 -0
  461. package/dist/.pikku/scenarios/pikku-scenario-types.gen.js.map +1 -0
  462. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  463. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -1
  464. package/dist/.pikku/scheduler/index.d.ts +8 -0
  465. package/dist/.pikku/scheduler/index.d.ts.map +1 -0
  466. package/dist/.pikku/scheduler/index.js +8 -0
  467. package/dist/.pikku/scheduler/index.js.map +1 -0
  468. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  469. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -1
  470. package/dist/.pikku/schemas/register.gen.js +15 -65
  471. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  472. package/dist/.pikku/schemas/schemas/AddonMetaPage.schema.json +1 -1
  473. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
  474. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
  475. package/dist/.pikku/schemas/schemas/DeleteScenarioRunInput.schema.json +1 -0
  476. package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
  477. package/dist/.pikku/schemas/schemas/GetScenarioArtifactInput.schema.json +1 -0
  478. package/dist/.pikku/schemas/schemas/GetScenarioRunInput.schema.json +1 -0
  479. package/dist/.pikku/schemas/schemas/ListScenarioRunsInput.schema.json +1 -0
  480. package/dist/.pikku/schemas/schemas/ListScenarioRunsOutput.schema.json +1 -0
  481. package/dist/.pikku/schemas/schemas/ScenarioRunRecord.schema.json +1 -0
  482. package/dist/.pikku/schemas/schemas/SurfaceResult.schema.json +1 -0
  483. package/dist/.pikku/scopes/index.d.ts +8 -0
  484. package/dist/.pikku/scopes/index.d.ts.map +1 -0
  485. package/dist/.pikku/scopes/index.js +8 -0
  486. package/dist/.pikku/scopes/index.js.map +1 -0
  487. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +4 -13
  488. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -1
  489. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -1
  490. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  491. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -1
  492. package/dist/.pikku/scopes/pikku-roles.gen.js +1 -1
  493. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -1
  494. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +2 -4
  495. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  496. package/dist/.pikku/scopes/pikku-scope-types.gen.js +2 -2
  497. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -1
  498. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +13 -66
  499. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +2 -2
  500. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -1
  501. package/dist/.pikku/scopes/pikku-scopes.gen.js +1 -2
  502. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -1
  503. package/dist/.pikku/secrets/index.d.ts +9 -0
  504. package/dist/.pikku/secrets/index.d.ts.map +1 -0
  505. package/dist/.pikku/secrets/index.js +9 -0
  506. package/dist/.pikku/secrets/index.js.map +1 -0
  507. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -2
  508. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  509. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +7 -11
  510. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  511. package/dist/.pikku/secrets/pikku-secrets.gen.js +6 -8
  512. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  513. package/dist/.pikku/services/pikku-meta-service.gen.d.ts +8 -0
  514. package/dist/.pikku/services/pikku-meta-service.gen.d.ts.map +1 -0
  515. package/dist/.pikku/services/pikku-meta-service.gen.js +10 -0
  516. package/dist/.pikku/services/pikku-meta-service.gen.js.map +1 -0
  517. package/dist/.pikku/setup/index.d.ts +8 -0
  518. package/dist/.pikku/setup/index.d.ts.map +1 -0
  519. package/dist/.pikku/setup/index.js +8 -0
  520. package/dist/.pikku/setup/index.js.map +1 -0
  521. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts +67 -0
  522. package/dist/.pikku/setup/pikku-setup-types.gen.d.ts.map +1 -0
  523. package/dist/.pikku/setup/pikku-setup-types.gen.js +88 -0
  524. package/dist/.pikku/setup/pikku-setup-types.gen.js.map +1 -0
  525. package/dist/.pikku/trigger/index.d.ts +8 -0
  526. package/dist/.pikku/trigger/index.d.ts.map +1 -0
  527. package/dist/.pikku/trigger/index.js +8 -0
  528. package/dist/.pikku/trigger/index.js.map +1 -0
  529. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +5 -36
  530. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  531. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -21
  532. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -1
  533. package/dist/.pikku/variables/index.d.ts +9 -0
  534. package/dist/.pikku/variables/index.d.ts.map +1 -0
  535. package/dist/.pikku/variables/index.js +9 -0
  536. package/dist/.pikku/variables/index.js.map +1 -0
  537. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -1
  538. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  539. package/dist/.pikku/variables/pikku-variables.gen.d.ts +7 -10
  540. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  541. package/dist/.pikku/variables/pikku-variables.gen.js +7 -9
  542. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  543. package/dist/.pikku/workflow/index.d.ts +8 -0
  544. package/dist/.pikku/workflow/index.d.ts.map +1 -0
  545. package/dist/.pikku/workflow/index.js +8 -0
  546. package/dist/.pikku/workflow/index.js.map +1 -0
  547. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +14 -262
  548. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  549. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +0 -63
  550. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  551. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  552. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  553. package/dist/src/functions/addon-readiness.function.d.ts +4 -4
  554. package/dist/src/functions/addon-readiness.function.d.ts.map +1 -1
  555. package/dist/src/functions/addon-readiness.function.js +2 -2
  556. package/dist/src/functions/addon-readiness.function.js.map +1 -1
  557. package/dist/src/functions/agent-credential-check.function.d.ts +4 -4
  558. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -1
  559. package/dist/src/functions/agent-credential-check.function.js +2 -2
  560. package/dist/src/functions/agent-credential-check.function.js.map +1 -1
  561. package/dist/src/functions/credential-delete.function.d.ts +4 -4
  562. package/dist/src/functions/credential-delete.function.d.ts.map +1 -1
  563. package/dist/src/functions/credential-delete.function.js +1 -1
  564. package/dist/src/functions/credential-delete.function.js.map +1 -1
  565. package/dist/src/functions/credential-get.function.d.ts +4 -4
  566. package/dist/src/functions/credential-get.function.d.ts.map +1 -1
  567. package/dist/src/functions/credential-get.function.js +1 -1
  568. package/dist/src/functions/credential-get.function.js.map +1 -1
  569. package/dist/src/functions/credential-list-users.function.d.ts +4 -4
  570. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -1
  571. package/dist/src/functions/credential-list-users.function.js +1 -1
  572. package/dist/src/functions/credential-list-users.function.js.map +1 -1
  573. package/dist/src/functions/credential-set.function.d.ts +4 -4
  574. package/dist/src/functions/credential-set.function.d.ts.map +1 -1
  575. package/dist/src/functions/credential-set.function.js +1 -1
  576. package/dist/src/functions/credential-set.function.js.map +1 -1
  577. package/dist/src/functions/credential-status.function.d.ts +4 -4
  578. package/dist/src/functions/credential-status.function.d.ts.map +1 -1
  579. package/dist/src/functions/credential-status.function.js +1 -1
  580. package/dist/src/functions/credential-status.function.js.map +1 -1
  581. package/dist/src/functions/credential-users.function.d.ts +4 -4
  582. package/dist/src/functions/credential-users.function.d.ts.map +1 -1
  583. package/dist/src/functions/credential-users.function.js +1 -1
  584. package/dist/src/functions/credential-users.function.js.map +1 -1
  585. package/dist/src/functions/delete-agent-thread.function.d.ts +4 -4
  586. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  587. package/dist/src/functions/delete-agent-thread.function.js +1 -1
  588. package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
  589. package/dist/src/functions/delete-scenario-run.function.d.ts +8 -0
  590. package/dist/src/functions/delete-scenario-run.function.d.ts.map +1 -0
  591. package/dist/src/functions/delete-scenario-run.function.js +11 -0
  592. package/dist/src/functions/delete-scenario-run.function.js.map +1 -0
  593. package/dist/src/functions/delete-workflow-run.function.d.ts +4 -4
  594. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  595. package/dist/src/functions/delete-workflow-run.function.js +1 -1
  596. package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
  597. package/dist/src/functions/get-addon-categories.function.d.ts +1 -1
  598. package/dist/src/functions/get-addon-categories.function.d.ts.map +1 -1
  599. package/dist/src/functions/get-addon-categories.function.js +1 -1
  600. package/dist/src/functions/get-addon-categories.function.js.map +1 -1
  601. package/dist/src/functions/get-addon-icon.function.d.ts +4 -4
  602. package/dist/src/functions/get-addon-icon.function.d.ts.map +1 -1
  603. package/dist/src/functions/get-addon-icon.function.js +1 -1
  604. package/dist/src/functions/get-addon-icon.function.js.map +1 -1
  605. package/dist/src/functions/get-addon-instances.function.d.ts +4 -4
  606. package/dist/src/functions/get-addon-instances.function.d.ts.map +1 -1
  607. package/dist/src/functions/get-addon-instances.function.js +2 -2
  608. package/dist/src/functions/get-addon-instances.function.js.map +1 -1
  609. package/dist/src/functions/get-addon-meta.function.d.ts +1 -1
  610. package/dist/src/functions/get-addon-meta.function.d.ts.map +1 -1
  611. package/dist/src/functions/get-addon-meta.function.js +1 -1
  612. package/dist/src/functions/get-addon-meta.function.js.map +1 -1
  613. package/dist/src/functions/get-addon-package.function.d.ts +4 -4
  614. package/dist/src/functions/get-addon-package.function.d.ts.map +1 -1
  615. package/dist/src/functions/get-addon-package.function.js +1 -1
  616. package/dist/src/functions/get-addon-package.function.js.map +1 -1
  617. package/dist/src/functions/get-agent-run-scores.function.d.ts +4 -4
  618. package/dist/src/functions/get-agent-run-scores.function.d.ts.map +1 -1
  619. package/dist/src/functions/get-agent-run-scores.function.js +4 -3
  620. package/dist/src/functions/get-agent-run-scores.function.js.map +1 -1
  621. package/dist/src/functions/get-agent-thread-messages.function.d.ts +4 -4
  622. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  623. package/dist/src/functions/get-agent-thread-messages.function.js +1 -1
  624. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
  625. package/dist/src/functions/get-agent-thread-runs.function.d.ts +4 -4
  626. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  627. package/dist/src/functions/get-agent-thread-runs.function.js +3 -3
  628. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  629. package/dist/src/functions/get-agent-threads.function.d.ts +4 -4
  630. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  631. package/dist/src/functions/get-agent-threads.function.js +3 -3
  632. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  633. package/dist/src/functions/get-agent-threads.function.test.js +1 -1
  634. package/dist/src/functions/get-agent-threads.function.test.js.map +1 -1
  635. package/dist/src/functions/get-all-meta.function.d.ts +1 -1
  636. package/dist/src/functions/get-all-meta.function.d.ts.map +1 -1
  637. package/dist/src/functions/get-all-meta.function.js +1 -1
  638. package/dist/src/functions/get-all-meta.function.js.map +1 -1
  639. package/dist/src/functions/get-audit-filters.function.d.ts +1 -1
  640. package/dist/src/functions/get-audit-filters.function.d.ts.map +1 -1
  641. package/dist/src/functions/get-audit-filters.function.js +1 -1
  642. package/dist/src/functions/get-audit-filters.function.js.map +1 -1
  643. package/dist/src/functions/get-audits.function.d.ts +2 -2
  644. package/dist/src/functions/get-audits.function.d.ts.map +1 -1
  645. package/dist/src/functions/get-audits.function.js +1 -1
  646. package/dist/src/functions/get-audits.function.js.map +1 -1
  647. package/dist/src/functions/get-auth-providers.function.d.ts +1 -1
  648. package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -1
  649. package/dist/src/functions/get-auth-providers.function.js +1 -1
  650. package/dist/src/functions/get-auth-providers.function.js.map +1 -1
  651. package/dist/src/functions/get-channel-snippets.function.d.ts +4 -4
  652. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  653. package/dist/src/functions/get-channel-snippets.function.js +1 -1
  654. package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
  655. package/dist/src/functions/get-db-schema.function.d.ts +1 -1
  656. package/dist/src/functions/get-db-schema.function.d.ts.map +1 -1
  657. package/dist/src/functions/get-db-schema.function.js +2 -2
  658. package/dist/src/functions/get-db-schema.function.js.map +1 -1
  659. package/dist/src/functions/get-functions-meta.function.d.ts +1 -1
  660. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  661. package/dist/src/functions/get-functions-meta.function.js +1 -1
  662. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  663. package/dist/src/functions/get-installed-addons.function.d.ts +1 -1
  664. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  665. package/dist/src/functions/get-installed-addons.function.js +2 -2
  666. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  667. package/dist/src/functions/get-installed-package.function.d.ts +4 -4
  668. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  669. package/dist/src/functions/get-installed-package.function.js +11 -4
  670. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  671. package/dist/src/functions/get-installed-package.function.test.d.ts +2 -0
  672. package/dist/src/functions/get-installed-package.function.test.d.ts.map +1 -0
  673. package/dist/src/functions/get-installed-package.function.test.js +35 -0
  674. package/dist/src/functions/get-installed-package.function.test.js.map +1 -0
  675. package/dist/src/functions/get-knowledge.function.d.ts +1 -1
  676. package/dist/src/functions/get-knowledge.function.d.ts.map +1 -1
  677. package/dist/src/functions/get-knowledge.function.js +2 -2
  678. package/dist/src/functions/get-knowledge.function.js.map +1 -1
  679. package/dist/src/functions/get-knowledge.function.test.js +1 -1
  680. package/dist/src/functions/get-my-access.function.d.ts +4 -4
  681. package/dist/src/functions/get-my-access.function.d.ts.map +1 -1
  682. package/dist/src/functions/get-my-access.function.js +1 -1
  683. package/dist/src/functions/get-my-access.function.js.map +1 -1
  684. package/dist/src/functions/get-openapi-categories.function.d.ts +1 -1
  685. package/dist/src/functions/get-openapi-categories.function.d.ts.map +1 -1
  686. package/dist/src/functions/get-openapi-categories.function.js +1 -1
  687. package/dist/src/functions/get-openapi-categories.function.js.map +1 -1
  688. package/dist/src/functions/get-openapi-detail.function.d.ts +4 -4
  689. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -1
  690. package/dist/src/functions/get-openapi-detail.function.js +1 -1
  691. package/dist/src/functions/get-openapi-detail.function.js.map +1 -1
  692. package/dist/src/functions/get-openapis.function.d.ts +4 -4
  693. package/dist/src/functions/get-openapis.function.d.ts.map +1 -1
  694. package/dist/src/functions/get-openapis.function.js +1 -1
  695. package/dist/src/functions/get-openapis.function.js.map +1 -1
  696. package/dist/src/functions/get-scenario-artifact.function.d.ts +19 -0
  697. package/dist/src/functions/get-scenario-artifact.function.d.ts.map +1 -0
  698. package/dist/src/functions/get-scenario-artifact.function.js +30 -0
  699. package/dist/src/functions/get-scenario-artifact.function.js.map +1 -0
  700. package/dist/src/functions/get-scenario-run.function.d.ts +9 -0
  701. package/dist/src/functions/get-scenario-run.function.d.ts.map +1 -0
  702. package/dist/src/functions/get-scenario-run.function.js +14 -0
  703. package/dist/src/functions/get-scenario-run.function.js.map +1 -0
  704. package/dist/src/functions/get-schema.function.d.ts +4 -4
  705. package/dist/src/functions/get-schema.function.d.ts.map +1 -1
  706. package/dist/src/functions/get-schema.function.js +1 -1
  707. package/dist/src/functions/get-schema.function.js.map +1 -1
  708. package/dist/src/functions/get-scorers.function.d.ts +1 -1
  709. package/dist/src/functions/get-scorers.function.d.ts.map +1 -1
  710. package/dist/src/functions/get-scorers.function.js +2 -2
  711. package/dist/src/functions/get-scorers.function.js.map +1 -1
  712. package/dist/src/functions/get-security-audit.function.d.ts +2 -2
  713. package/dist/src/functions/get-security-audit.function.d.ts.map +1 -1
  714. package/dist/src/functions/get-security-audit.function.js +1 -1
  715. package/dist/src/functions/get-security-audit.function.js.map +1 -1
  716. package/dist/src/functions/get-state-diff.function.d.ts +4 -4
  717. package/dist/src/functions/get-state-diff.function.d.ts.map +1 -1
  718. package/dist/src/functions/get-state-diff.function.js +1 -1
  719. package/dist/src/functions/get-state-diff.function.js.map +1 -1
  720. package/dist/src/functions/get-surface.function.d.ts +3 -0
  721. package/dist/src/functions/get-surface.function.d.ts.map +1 -0
  722. package/dist/src/functions/get-surface.function.js +10 -0
  723. package/dist/src/functions/get-surface.function.js.map +1 -0
  724. package/dist/src/functions/get-webhook-delivery.function.d.ts +5 -5
  725. package/dist/src/functions/get-webhook-delivery.function.d.ts.map +1 -1
  726. package/dist/src/functions/get-webhook-delivery.function.js +1 -1
  727. package/dist/src/functions/get-webhook-delivery.function.js.map +1 -1
  728. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +13 -13
  729. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  730. package/dist/src/functions/get-workflow-meta-by-id.function.js +1 -1
  731. package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
  732. package/dist/src/functions/get-workflow-run-history.function.d.ts +4 -4
  733. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  734. package/dist/src/functions/get-workflow-run-history.function.js +1 -1
  735. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
  736. package/dist/src/functions/get-workflow-run-names.function.d.ts +1 -1
  737. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  738. package/dist/src/functions/get-workflow-run-names.function.js +1 -1
  739. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
  740. package/dist/src/functions/get-workflow-run-steps.function.d.ts +4 -4
  741. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  742. package/dist/src/functions/get-workflow-run-steps.function.js +1 -1
  743. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
  744. package/dist/src/functions/get-workflow-run.function.d.ts +4 -4
  745. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  746. package/dist/src/functions/get-workflow-run.function.js +1 -1
  747. package/dist/src/functions/get-workflow-run.function.js.map +1 -1
  748. package/dist/src/functions/get-workflow-runs.function.d.ts +4 -4
  749. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  750. package/dist/src/functions/get-workflow-runs.function.js +1 -1
  751. package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
  752. package/dist/src/functions/get-workflow-version.function.d.ts +4 -4
  753. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  754. package/dist/src/functions/get-workflow-version.function.js +1 -1
  755. package/dist/src/functions/get-workflow-version.function.js.map +1 -1
  756. package/dist/src/functions/install-addon.function.d.ts +4 -4
  757. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  758. package/dist/src/functions/install-addon.function.js +4 -4
  759. package/dist/src/functions/install-addon.function.js.map +1 -1
  760. package/dist/src/functions/install-addon.function.test.js +4 -4
  761. package/dist/src/functions/install-addon.function.test.js.map +1 -1
  762. package/dist/src/functions/install-openapi-addon.function.d.ts +4 -4
  763. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -1
  764. package/dist/src/functions/install-openapi-addon.function.js +3 -3
  765. package/dist/src/functions/install-openapi-addon.function.js.map +1 -1
  766. package/dist/src/functions/list-scenario-runs.function.d.ts +9 -0
  767. package/dist/src/functions/list-scenario-runs.function.d.ts.map +1 -0
  768. package/dist/src/functions/list-scenario-runs.function.js +14 -0
  769. package/dist/src/functions/list-scenario-runs.function.js.map +1 -0
  770. package/dist/src/functions/list-webhook-deliveries.function.d.ts +5 -5
  771. package/dist/src/functions/list-webhook-deliveries.function.d.ts.map +1 -1
  772. package/dist/src/functions/list-webhook-deliveries.function.js +1 -1
  773. package/dist/src/functions/list-webhook-deliveries.function.js.map +1 -1
  774. package/dist/src/functions/ping.function.d.ts +4 -4
  775. package/dist/src/functions/ping.function.d.ts.map +1 -1
  776. package/dist/src/functions/ping.function.js +1 -1
  777. package/dist/src/functions/ping.function.js.map +1 -1
  778. package/dist/src/functions/read-agent-source.function.d.ts +4 -4
  779. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
  780. package/dist/src/functions/read-agent-source.function.js +2 -2
  781. package/dist/src/functions/read-agent-source.function.js.map +1 -1
  782. package/dist/src/functions/read-function-body.function.d.ts +4 -4
  783. package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
  784. package/dist/src/functions/read-function-body.function.js +2 -2
  785. package/dist/src/functions/read-function-body.function.js.map +1 -1
  786. package/dist/src/functions/read-function-source.function.d.ts +4 -4
  787. package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
  788. package/dist/src/functions/read-function-source.function.js +2 -2
  789. package/dist/src/functions/read-function-source.function.js.map +1 -1
  790. package/dist/src/functions/render-email-preview.function.d.ts +1 -1
  791. package/dist/src/functions/render-email-preview.function.d.ts.map +1 -1
  792. package/dist/src/functions/render-email-preview.function.js +2 -2
  793. package/dist/src/functions/render-email-preview.function.js.map +1 -1
  794. package/dist/src/functions/render-email-preview.function.test.js +1 -1
  795. package/dist/src/functions/render-email-preview.function.test.js.map +1 -1
  796. package/dist/src/functions/render-email-template.utils.d.ts.map +1 -1
  797. package/dist/src/functions/render-email-template.utils.js.map +1 -1
  798. package/dist/src/functions/render-email-template.utils.test.js.map +1 -1
  799. package/dist/src/functions/run-security-audit.function.d.ts +2 -2
  800. package/dist/src/functions/run-security-audit.function.d.ts.map +1 -1
  801. package/dist/src/functions/run-security-audit.function.js +1 -1
  802. package/dist/src/functions/run-security-audit.function.js.map +1 -1
  803. package/dist/src/functions/run-security-audit.function.test.d.ts +2 -0
  804. package/dist/src/functions/run-security-audit.function.test.d.ts.map +1 -0
  805. package/dist/src/functions/run-security-audit.function.test.js +98 -0
  806. package/dist/src/functions/run-security-audit.function.test.js.map +1 -0
  807. package/dist/src/functions/scope-add-scope-to-user.function.d.ts +4 -4
  808. package/dist/src/functions/scope-add-scope-to-user.function.d.ts.map +1 -1
  809. package/dist/src/functions/scope-add-scope-to-user.function.js +1 -1
  810. package/dist/src/functions/scope-add-scope-to-user.function.js.map +1 -1
  811. package/dist/src/functions/scope-add-user-to-role.function.d.ts +4 -4
  812. package/dist/src/functions/scope-add-user-to-role.function.d.ts.map +1 -1
  813. package/dist/src/functions/scope-add-user-to-role.function.js +1 -1
  814. package/dist/src/functions/scope-add-user-to-role.function.js.map +1 -1
  815. package/dist/src/functions/scope-create-role.function.d.ts +4 -4
  816. package/dist/src/functions/scope-create-role.function.d.ts.map +1 -1
  817. package/dist/src/functions/scope-create-role.function.js +1 -1
  818. package/dist/src/functions/scope-create-role.function.js.map +1 -1
  819. package/dist/src/functions/scope-delete-role.function.d.ts +4 -4
  820. package/dist/src/functions/scope-delete-role.function.d.ts.map +1 -1
  821. package/dist/src/functions/scope-delete-role.function.js +1 -1
  822. package/dist/src/functions/scope-delete-role.function.js.map +1 -1
  823. package/dist/src/functions/scope-list-declared.function.d.ts +4 -4
  824. package/dist/src/functions/scope-list-declared.function.d.ts.map +1 -1
  825. package/dist/src/functions/scope-list-declared.function.js +1 -1
  826. package/dist/src/functions/scope-list-declared.function.js.map +1 -1
  827. package/dist/src/functions/scope-list-roles.function.d.ts +5 -5
  828. package/dist/src/functions/scope-list-roles.function.d.ts.map +1 -1
  829. package/dist/src/functions/scope-list-roles.function.js +1 -1
  830. package/dist/src/functions/scope-list-roles.function.js.map +1 -1
  831. package/dist/src/functions/scope-list-user-roles.function.d.ts +4 -4
  832. package/dist/src/functions/scope-list-user-roles.function.d.ts.map +1 -1
  833. package/dist/src/functions/scope-list-user-roles.function.js +1 -1
  834. package/dist/src/functions/scope-list-user-roles.function.js.map +1 -1
  835. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts +4 -4
  836. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts.map +1 -1
  837. package/dist/src/functions/scope-remove-scope-from-user.function.js +1 -1
  838. package/dist/src/functions/scope-remove-scope-from-user.function.js.map +1 -1
  839. package/dist/src/functions/scope-remove-user-from-role.function.d.ts +4 -4
  840. package/dist/src/functions/scope-remove-user-from-role.function.d.ts.map +1 -1
  841. package/dist/src/functions/scope-remove-user-from-role.function.js +1 -1
  842. package/dist/src/functions/scope-remove-user-from-role.function.js.map +1 -1
  843. package/dist/src/functions/scope-set-role-scopes.function.d.ts +4 -4
  844. package/dist/src/functions/scope-set-role-scopes.function.d.ts.map +1 -1
  845. package/dist/src/functions/scope-set-role-scopes.function.js +1 -1
  846. package/dist/src/functions/scope-set-role-scopes.function.js.map +1 -1
  847. package/dist/src/functions/secret-get.function.d.ts +4 -4
  848. package/dist/src/functions/secret-get.function.d.ts.map +1 -1
  849. package/dist/src/functions/secret-get.function.js +1 -1
  850. package/dist/src/functions/secret-get.function.js.map +1 -1
  851. package/dist/src/functions/secret-has.function.d.ts +4 -4
  852. package/dist/src/functions/secret-has.function.d.ts.map +1 -1
  853. package/dist/src/functions/secret-has.function.js +1 -1
  854. package/dist/src/functions/secret-has.function.js.map +1 -1
  855. package/dist/src/functions/secret-set.function.d.ts +4 -4
  856. package/dist/src/functions/secret-set.function.d.ts.map +1 -1
  857. package/dist/src/functions/secret-set.function.js +1 -1
  858. package/dist/src/functions/secret-set.function.js.map +1 -1
  859. package/dist/src/functions/stream-workflow-run.function.d.ts +4 -4
  860. package/dist/src/functions/stream-workflow-run.function.d.ts.map +1 -1
  861. package/dist/src/functions/stream-workflow-run.function.js +1 -1
  862. package/dist/src/functions/stream-workflow-run.function.js.map +1 -1
  863. package/dist/src/functions/update-agent-config.function.d.ts +4 -4
  864. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
  865. package/dist/src/functions/update-agent-config.function.js +2 -2
  866. package/dist/src/functions/update-agent-config.function.js.map +1 -1
  867. package/dist/src/functions/update-dependency.function.d.ts +5 -5
  868. package/dist/src/functions/update-dependency.function.d.ts.map +1 -1
  869. package/dist/src/functions/update-dependency.function.js +1 -1
  870. package/dist/src/functions/update-dependency.function.js.map +1 -1
  871. package/dist/src/functions/update-dependency.function.test.d.ts +2 -0
  872. package/dist/src/functions/update-dependency.function.test.d.ts.map +1 -0
  873. package/dist/src/functions/update-dependency.function.test.js +181 -0
  874. package/dist/src/functions/update-dependency.function.test.js.map +1 -0
  875. package/dist/src/functions/update-email-template.function.d.ts +4 -4
  876. package/dist/src/functions/update-email-template.function.d.ts.map +1 -1
  877. package/dist/src/functions/update-email-template.function.js +2 -3
  878. package/dist/src/functions/update-email-template.function.js.map +1 -1
  879. package/dist/src/functions/update-function-body.function.d.ts +4 -4
  880. package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
  881. package/dist/src/functions/update-function-body.function.js +2 -2
  882. package/dist/src/functions/update-function-body.function.js.map +1 -1
  883. package/dist/src/functions/update-function-config.function.d.ts +4 -4
  884. package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
  885. package/dist/src/functions/update-function-config.function.js +2 -2
  886. package/dist/src/functions/update-function-config.function.js.map +1 -1
  887. package/dist/src/lib/addon-readiness.test.js +1 -1
  888. package/dist/src/lib/audit-exec.d.ts +2 -2
  889. package/dist/src/lib/audit-exec.d.ts.map +1 -1
  890. package/dist/src/lib/audit-exec.test.d.ts +2 -0
  891. package/dist/src/lib/audit-exec.test.d.ts.map +1 -0
  892. package/dist/src/lib/audit-exec.test.js +97 -0
  893. package/dist/src/lib/audit-exec.test.js.map +1 -0
  894. package/dist/src/lib/derive-instance-overrides.js +1 -1
  895. package/dist/src/lib/resolve-audit-users.d.ts +1 -1
  896. package/dist/src/lib/resolve-audit-users.d.ts.map +1 -1
  897. package/dist/src/lib/resolve-package-manager.d.ts +11 -0
  898. package/dist/src/lib/resolve-package-manager.d.ts.map +1 -1
  899. package/dist/src/lib/resolve-package-manager.js +49 -20
  900. package/dist/src/lib/resolve-package-manager.js.map +1 -1
  901. package/dist/src/lib/resolve-package-manager.test.js +39 -1
  902. package/dist/src/lib/resolve-package-manager.test.js.map +1 -1
  903. package/dist/src/lib/surface.d.ts +30 -0
  904. package/dist/src/lib/surface.d.ts.map +1 -0
  905. package/dist/src/lib/surface.js +47 -0
  906. package/dist/src/lib/surface.js.map +1 -0
  907. package/dist/src/lib/surface.test.d.ts +2 -0
  908. package/dist/src/lib/surface.test.d.ts.map +1 -0
  909. package/dist/src/lib/surface.test.js +99 -0
  910. package/dist/src/lib/surface.test.js.map +1 -0
  911. package/dist/src/lib/surface.types.d.ts +59 -0
  912. package/dist/src/lib/surface.types.d.ts.map +1 -0
  913. package/dist/src/lib/surface.types.js +2 -0
  914. package/dist/src/lib/surface.types.js.map +1 -0
  915. package/dist/src/scopes.js +21 -59
  916. package/dist/src/scopes.js.map +1 -1
  917. package/dist/src/services/addon-readiness.service.d.ts +2 -1
  918. package/dist/src/services/addon-readiness.service.d.ts.map +1 -1
  919. package/dist/src/services/addon-readiness.service.js.map +1 -1
  920. package/dist/src/services/addon.service.d.ts +5 -5
  921. package/dist/src/services/addon.service.d.ts.map +1 -1
  922. package/dist/src/services/db-schema.service.d.ts +1 -1
  923. package/dist/src/services/db-schema.service.d.ts.map +1 -1
  924. package/dist/src/services/wiring.service.d.ts +7 -7
  925. package/dist/src/services/wiring.service.d.ts.map +1 -1
  926. package/dist/src/services.d.ts +1 -1
  927. package/dist/src/services.d.ts.map +1 -1
  928. package/dist/src/services.js +12 -9
  929. package/dist/src/services.js.map +1 -1
  930. package/dist/types/application-types.d.ts +10 -2
  931. package/package.json +17 -20
  932. package/dist/.pikku/schemas/schemas/GetAuditFiltersOutput.schema.json +0 -1
  933. package/dist/.pikku/schemas/schemas/GetAuditsInput.schema.json +0 -1
  934. package/dist/.pikku/schemas/schemas/GetAuditsOutput.schema.json +0 -1
@@ -1,21 +1,21 @@
1
1
  import type { AgentConfigChanges } from '../services/code-edit.service.js';
2
- export declare const updateAgentConfig: import("#pikku").PikkuFunctionConfig<{
2
+ export declare const updateAgentConfig: import("#pikku/addon/function").PikkuFunctionConfig<{
3
3
  sourceFile: string;
4
4
  exportedName: string;
5
5
  changes: AgentConfigChanges;
6
6
  }, {
7
7
  success: boolean;
8
- }, "rpc" | "session", import("#pikku").PikkuFunction<{
8
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
9
9
  sourceFile: string;
10
10
  exportedName: string;
11
11
  changes: AgentConfigChanges;
12
12
  }, {
13
13
  success: boolean;
14
- }, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunctionSessionless<{
14
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
15
15
  sourceFile: string;
16
16
  exportedName: string;
17
17
  changes: AgentConfigChanges;
18
18
  }, {
19
19
  success: boolean;
20
- }, "rpc" | "session", import("#pikku").WiredServices, unknown>, undefined, undefined>;
20
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
21
21
  //# sourceMappingURL=update-agent-config.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-agent-config.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-agent-config.function.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1E,eAAO,MAAM,iBAAiB;gBAEd,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;qFAgBlB,CAAA"}
1
+ {"version":3,"file":"update-agent-config.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-agent-config.function.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1E,eAAO,MAAM,iBAAiB;gBAEd,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,kBAAkB;;aAElB,OAAO;oGAgBlB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { LocalEnvironmentOnlyError } from '@pikku/core/errors';
2
- import { pikkuFunc } from '#pikku';
1
+ import { LocalEnvironmentOnlyError } from '#pikku/addon/error';
2
+ import { pikkuFunc } from '#pikku/addon/function';
3
3
  export const updateAgentConfig = pikkuFunc({
4
4
  title: 'Update Agent Config',
5
5
  description: 'Updates the config properties of a pikku AI agent definition in source code and triggers a rebuild.',
@@ -1 +1 @@
1
- {"version":3,"file":"update-agent-config.function.js","sourceRoot":"","sources":["../../../src/functions/update-agent-config.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAOxC;IACA,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,qGAAqG;IACvG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,6BAA6B,CAAC;IACvC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,iBAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA;QAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"update-agent-config.function.js","sourceRoot":"","sources":["../../../src/functions/update-agent-config.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAOxC;IACA,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,qGAAqG;IACvG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,6BAA6B,CAAC;IACvC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,iBAAiB,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,CAAC,CAAA;QAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -1,12 +1,12 @@
1
- import type { SecurityAuditReport } from '@pikku/core/ecosystem/types';
2
- export declare const updateDependency: import("#pikku").PikkuFunctionConfig<{
1
+ import type { SecurityAuditReport } from '@pikku/core/types';
2
+ export declare const updateDependency: import("#pikku/addon/function").PikkuFunctionConfig<{
3
3
  package: string;
4
4
  version: string;
5
- }, SecurityAuditReport | null, "rpc" | "session", import("#pikku").PikkuFunction<{
5
+ }, SecurityAuditReport | null, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
6
6
  package: string;
7
7
  version: string;
8
- }, SecurityAuditReport | null, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunctionSessionless<{
8
+ }, SecurityAuditReport | null, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
9
9
  package: string;
10
10
  version: string;
11
- }, SecurityAuditReport | null, "rpc" | "session", import("#pikku").WiredServices, unknown>, undefined, undefined>;
11
+ }, SecurityAuditReport | null, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
12
12
  //# sourceMappingURL=update-dependency.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-dependency.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAgDtE,eAAO,MAAM,gBAAgB;aAChB,MAAM;aAAW,MAAM;;aAAvB,MAAM;aAAW,MAAM;;aAAvB,MAAM;aAAW,MAAM;iHAoClC,CAAA"}
1
+ {"version":3,"file":"update-dependency.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAgD5D,eAAO,MAAM,gBAAgB;aAChB,MAAM;aAAW,MAAM;;aAAvB,MAAM;aAAW,MAAM;;aAAvB,MAAM;aAAW,MAAM;gIAoClC,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { join, dirname } from 'node:path';
3
- import { pikkuFunc } from '#pikku';
3
+ import { pikkuFunc } from '#pikku/addon/function';
4
4
  import { readAuditReport, runPikkuAudit, spawnProcess, } from '../lib/audit-exec.js';
5
5
  const DEP_SECTIONS = [
6
6
  'dependencies',
@@ -1 +1 @@
1
- {"version":3,"file":"update-dependency.function.js","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,GACb,MAAM,sBAAsB,CAAA;AAE7B,MAAM,YAAY,GAAG;IACnB,cAAc;IACd,iBAAiB;IACjB,sBAAsB;IACtB,kBAAkB;CACV,CAAA;AAEV,yEAAyE;AACzE,6EAA6E;AAC7E,SAAS,eAAe,CACtB,OAAe,EACf,GAAW,EACX,OAAe;IAEf,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAA;IAC3D,KAAK,MAAM,OAAO,IA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CAAA;QACH,CAAC;QACD,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAA;QACH,CAAC;QACD,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAA;QAChD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,EAAE,CAAC,CAAA;QACzD,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,sEAAsE,CAC7E,CAAA;QACH,CAAC;QACD,0EAA0E;QAC1E,yEAAyE;QACzE,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC3E,qDAAqD;QACrD,MAAM,aAAa,CAAC,UAAU,CAAC,CAAA;QAC/B,OAAO,eAAe,CAAC,WAAW,CAAC,CAAA;IACrC,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"update-dependency.function.js","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,OAAO,EACL,eAAe,EACf,aAAa,EACb,YAAY,GACb,MAAM,sBAAsB,CAAA;AAE7B,MAAM,YAAY,GAAG;IACnB,cAAc;IACd,iBAAiB;IACjB,sBAAsB;IACtB,kBAAkB;CAC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KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE;QACzD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CACb,oBAAoB,OAAO,4CAA4C,CACxE,CAAA;QACH,CAAC;QACD,IAAI,CAAC,WAAW,EAAE,QAAQ,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,wFAAwF,CACzF,CAAA;QACH,CAAC;QACD,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAA;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,CAAA;QAChD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,EAAE,CAAC,CAAA;QACzD,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CACb,GAAG,GAAG,sEAAsE,CAC7E,CAAA;QACH,CAAC;QACD,0EAA0E;QAC1E,yEAAyE;QACzE,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC3E,qDAAqD;QACrD,MAAM,aAAa,CAAC,UAAU,CAAC,CAAA;QAC/B,OAAO,eAAe,CAAC,WAAW,CAAC,CAAA;IACrC,CAAC;CACF,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=update-dependency.function.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-dependency.function.test.d.ts","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,181 @@
1
+ import { describe, test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync, } from 'node:fs';
4
+ import { tmpdir } from 'node:os';
5
+ import { join } from 'node:path';
6
+ import { updateDependency } from './update-dependency.function.js';
7
+ /**
8
+ * A throwaway project with a stub `bun` and a stub `pikku` so the whole
9
+ * bump → install → re-audit chain runs without a registry. Both stubs record
10
+ * that they were called, and in which order, by appending to `calls.log`.
11
+ */
12
+ const project = (manifest) => {
13
+ const root = mkdtempSync(join(tmpdir(), 'pikku-update-dep-'));
14
+ const pkgPath = join(root, 'package.json');
15
+ writeFileSync(pkgPath, `${JSON.stringify(manifest, null, 2)}\n`);
16
+ const log = join(root, 'calls.log');
17
+ const bin = join(root, 'bin');
18
+ mkdirSync(bin, { recursive: true });
19
+ const bun = join(bin, 'bun');
20
+ // Records the manifest as it stood when install ran, proving the bump landed
21
+ // on disk before the lockfile was resolved against it.
22
+ writeFileSync(bun, `#!/bin/sh\necho "bun $* $(cat '${pkgPath}' | tr -d '\\n ')" >> '${log}'\n`);
23
+ chmodSync(bun, 0o755);
24
+ const pikkuBin = join(root, 'node_modules', '.bin', 'pikku');
25
+ mkdirSync(join(root, 'node_modules', '.bin'), { recursive: true });
26
+ const report = {
27
+ schemaVersion: 1,
28
+ tool: 'bun',
29
+ generatedAt: '2026-08-15T00:00:00.000Z',
30
+ issues: [],
31
+ updates: [],
32
+ summary: {
33
+ totalIssues: 0,
34
+ critical: 0,
35
+ high: 0,
36
+ moderate: 0,
37
+ low: 0,
38
+ totalUpdates: 0,
39
+ major: 0,
40
+ minor: 0,
41
+ patch: 0,
42
+ },
43
+ };
44
+ const auditPath = join(root, '.pikku', 'audit.json');
45
+ writeFileSync(pikkuBin, `import { mkdirSync, writeFileSync, appendFileSync } from 'node:fs'\n` +
46
+ `appendFileSync(${JSON.stringify(log)}, 'pikku ' + process.argv.slice(2).join(' ') + '\\n')\n` +
47
+ `mkdirSync(${JSON.stringify(join(root, '.pikku'))}, { recursive: true })\n` +
48
+ `writeFileSync(${JSON.stringify(auditPath)}, ${JSON.stringify(JSON.stringify(report))})\n`);
49
+ const metaService = {
50
+ basePath: join(root, '.pikku'),
51
+ readFile: async (relativePath) => {
52
+ const path = join(root, '.pikku', relativePath);
53
+ return existsSync(path) ? readFileSync(path, 'utf-8') : null;
54
+ },
55
+ };
56
+ return {
57
+ root,
58
+ bin,
59
+ metaService,
60
+ manifest: () => JSON.parse(readFileSync(pkgPath, 'utf-8')),
61
+ calls: () => (existsSync(log) ? readFileSync(log, 'utf-8') : ''),
62
+ };
63
+ };
64
+ const invoke = async (metaService, input, bin) => {
65
+ const previousPath = process.env.PATH;
66
+ if (bin)
67
+ process.env.PATH = `${bin}:${previousPath}`;
68
+ try {
69
+ return (await updateDependency.func({ metaService }, input, {}));
70
+ }
71
+ finally {
72
+ process.env.PATH = previousPath;
73
+ }
74
+ };
75
+ describe('updateDependency version guard', () => {
76
+ // The version reaches `bun install` and package.json, so anything that is not
77
+ // a concrete semver is an install specifier the caller should not control.
78
+ test('refuses anything that is not a concrete semver', async () => {
79
+ for (const version of [
80
+ 'latest',
81
+ '^1.2.3',
82
+ '~1.2.3',
83
+ '>=1.2.3',
84
+ '1.2',
85
+ '../evil',
86
+ 'file:../evil',
87
+ 'https://evil.test/pkg.tgz',
88
+ 'npm:other@1.0.0',
89
+ '1.2.3 && rm -rf /',
90
+ '',
91
+ ]) {
92
+ await assert.rejects(invoke({ basePath: '/tmp/.pikku' }, { package: 'lodash', version }), /Invalid version/, version);
93
+ }
94
+ });
95
+ test('accepts a plain semver and a prerelease or build tag', async () => {
96
+ for (const version of ['1.2.3', '1.2.3-rc.1', '1.2.3+build.5']) {
97
+ // Rejected later for a missing package.json — but past the version guard,
98
+ // which is what this asserts.
99
+ await assert.rejects(invoke({
100
+ basePath: join(mkdtempSync(join(tmpdir(), 'pikku-none-')), '.pikku'),
101
+ }, { package: 'lodash', version }), /package.json not found/, version);
102
+ }
103
+ });
104
+ });
105
+ describe('updateDependency preconditions', () => {
106
+ test('refuses to run without a configured meta service', async () => {
107
+ await assert.rejects(invoke(undefined, { package: 'lodash', version: '1.2.3' }), /Meta service is not configured/);
108
+ await assert.rejects(invoke({}, { package: 'lodash', version: '1.2.3' }), /Meta service is not configured/);
109
+ });
110
+ test('refuses a package that is not a direct dependency', async () => {
111
+ const p = project({ name: 'app', dependencies: { zod: '^3.0.0' } });
112
+ await assert.rejects(invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin), /not a direct dependency/);
113
+ assert.equal(p.calls(), '', 'nothing should have been installed');
114
+ });
115
+ // A workspace:/file:/git specifier carries resolution semantics that a bare
116
+ // version silently destroys — refusing beats clobbering the manifest.
117
+ test('refuses to overwrite a non-semver specifier', async () => {
118
+ for (const specifier of [
119
+ 'workspace:*',
120
+ 'file:../core',
121
+ 'link:../core',
122
+ 'git+https://github.com/x/y.git',
123
+ 'github:x/y',
124
+ 'https://example.test/x.tgz',
125
+ 'npm:other@1.0.0',
126
+ ]) {
127
+ const p = project({ name: 'app', dependencies: { core: specifier } });
128
+ await assert.rejects(invoke(p.metaService, { package: 'core', version: '1.2.3' }, p.bin), /non-semver specifier/, specifier);
129
+ assert.equal(p.manifest().dependencies.core, specifier, specifier);
130
+ }
131
+ });
132
+ });
133
+ describe('updateDependency bump', () => {
134
+ test('bumps the version while keeping the range operator', async () => {
135
+ for (const [before, after] of [
136
+ ['^4.17.20', '^4.17.21'],
137
+ ['~4.17.20', '~4.17.21'],
138
+ ['4.17.20', '4.17.21'],
139
+ ]) {
140
+ const p = project({ name: 'app', dependencies: { lodash: before } });
141
+ await invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin);
142
+ assert.equal(p.manifest().dependencies.lodash, after, before);
143
+ }
144
+ });
145
+ test('finds the package in whichever dependency section holds it', async () => {
146
+ for (const section of [
147
+ 'dependencies',
148
+ 'devDependencies',
149
+ 'optionalDependencies',
150
+ 'peerDependencies',
151
+ ]) {
152
+ const p = project({ name: 'app', [section]: { lodash: '^4.17.20' } });
153
+ await invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin);
154
+ assert.equal(p.manifest()[section].lodash, '^4.17.21', section);
155
+ }
156
+ });
157
+ test('installs against the already-bumped manifest, then re-audits', async () => {
158
+ const p = project({ name: 'app', dependencies: { lodash: '^4.17.20' } });
159
+ await invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin);
160
+ const calls = p.calls().trim().split('\n');
161
+ assert.match(calls[0], /^bun install/);
162
+ assert.match(calls[0], /4\.17\.21/);
163
+ assert.ok(!calls[0].includes('4.17.20'));
164
+ assert.match(calls[1], /^pikku .*audit --outdated/);
165
+ });
166
+ test('returns the report regenerated by the re-audit', async () => {
167
+ const p = project({ name: 'app', dependencies: { lodash: '^4.17.20' } });
168
+ const report = await invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin);
169
+ assert.equal(report?.summary.totalIssues, 0);
170
+ assert.equal(report?.tool, 'bun');
171
+ });
172
+ // A failed install leaves the lockfile and node_modules disagreeing with the
173
+ // manifest, so it has to surface rather than resolve into a fresh report.
174
+ test('surfaces a failed install instead of reporting success', async () => {
175
+ const p = project({ name: 'app', dependencies: { lodash: '^4.17.20' } });
176
+ writeFileSync(join(p.bin, 'bun'), '#!/bin/sh\necho "error: no version matching 4.17.21" >&2\nexit 1\n');
177
+ chmodSync(join(p.bin, 'bun'), 0o755);
178
+ await assert.rejects(invoke(p.metaService, { package: 'lodash', version: '4.17.21' }, p.bin), /no version matching 4\.17\.21/);
179
+ });
180
+ });
181
+ //# sourceMappingURL=update-dependency.function.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-dependency.function.test.js","sourceRoot":"","sources":["../../../src/functions/update-dependency.function.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAA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AA;QACD,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,CAAA;QAEpC,MAAM,MAAM,CAAC,OAAO,CAClB,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,EACvE,+BAA+B,CAChC,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,17 +1,17 @@
1
- export declare const updateEmailTemplate: import("#pikku").PikkuFunctionConfig<{
1
+ export declare const updateEmailTemplate: import("#pikku/addon/function").PikkuFunctionConfig<{
2
2
  templateName: string;
3
3
  source: string;
4
4
  }, {
5
5
  success: boolean;
6
- }, "rpc" | "session", import("#pikku").PikkuFunction<{
6
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
7
7
  templateName: string;
8
8
  source: string;
9
9
  }, {
10
10
  success: boolean;
11
- }, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunctionSessionless<{
11
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
12
12
  templateName: string;
13
13
  source: string;
14
14
  }, {
15
15
  success: boolean;
16
- }, "rpc" | "session", import("#pikku").WiredServices, unknown>, undefined, undefined>;
16
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
17
17
  //# sourceMappingURL=update-email-template.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-email-template.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-email-template.function.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;kBAEd,MAAM;YACZ,MAAM;;aAEL,OAAO;;kBAHF,MAAM;YACZ,MAAM;;aAEL,OAAO;;kBAHF,MAAM;YACZ,MAAM;;aAEL,OAAO;qFA6BlB,CAAA"}
1
+ {"version":3,"file":"update-email-template.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-email-template.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB;kBAEd,MAAM;YACZ,MAAM;;aAEL,OAAO;;kBAHF,MAAM;YACZ,MAAM;;aAEL,OAAO;;kBAHF,MAAM;YACZ,MAAM;;aAEL,OAAO;oGA6BlB,CAAA"}
@@ -1,6 +1,5 @@
1
- import { NotFoundError } from '@pikku/core';
2
- import { LocalEnvironmentOnlyError } from '@pikku/core/errors';
3
- import { pikkuFunc } from '#pikku';
1
+ import { LocalEnvironmentOnlyError, NotFoundError } from '#pikku/addon/error';
2
+ import { pikkuFunc } from '#pikku/addon/function';
4
3
  export const updateEmailTemplate = pikkuFunc({
5
4
  title: 'Update Email Template',
6
5
  description: 'Overwrites an email template HTML source file (templates/<name>.html) so small edits can be made from the console.',
@@ -1 +1 @@
1
- {"version":3,"file":"update-email-template.function.js","sourceRoot":"","sources":["../../../src/functions/update-email-template.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAM1C;IACA,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oHAAoH;IACtH,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,4BAA4B,CAAC;IACtC,IAAI,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,WAAW,CAAC,YAAY,EAAE,CAAA;QACnD,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;YACpB,MAAM,IAAI,aAAa,CACrB,iEAAiE,CAClE,CAAA;QACH,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;YACxC,MAAM,IAAI,aAAa,CAAC,2BAA2B,YAAY,EAAE,CAAC,CAAA;QACpE,CAAC;QACD,MAAM,eAAe,CAAC,mBAAmB,CACvC,UAAU,CAAC,GAAG,EACd,YAAY,EACZ,MAAM,CACP,CAAA;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"update-email-template.function.js","sourceRoot":"","sources":["../../../src/functions/update-email-template.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAM1C;IACA,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EACT,oHAAoH;IACtH,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,4BAA4B,CAAC;IACtC,IAAI,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE,EAAE,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,WAAW,CAAC,YAAY,EAAE,CAAA;QACnD,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;YACpB,MAAM,IAAI,aAAa,CACrB,iEAAiE,CAClE,CAAA;QACH,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;YACxC,MAAM,IAAI,aAAa,CAAC,2BAA2B,YAAY,EAAE,CAAC,CAAA;QACpE,CAAC;QACD,MAAM,eAAe,CAAC,mBAAmB,CACvC,UAAU,CAAC,GAAG,EACd,YAAY,EACZ,MAAM,CACP,CAAA;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -1,20 +1,20 @@
1
- export declare const updateFunctionBody: import("#pikku").PikkuFunctionConfig<{
1
+ export declare const updateFunctionBody: import("#pikku/addon/function").PikkuFunctionConfig<{
2
2
  sourceFile: string;
3
3
  exportedName: string;
4
4
  body: string;
5
5
  }, {
6
6
  success: boolean;
7
- }, "rpc" | "session", import("#pikku").PikkuFunction<{
7
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
8
8
  sourceFile: string;
9
9
  exportedName: string;
10
10
  body: string;
11
11
  }, {
12
12
  success: boolean;
13
- }, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunctionSessionless<{
13
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
14
14
  sourceFile: string;
15
15
  exportedName: string;
16
16
  body: string;
17
17
  }, {
18
18
  success: boolean;
19
- }, "rpc" | "session", import("#pikku").WiredServices, unknown>, undefined, undefined>;
19
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
20
20
  //# sourceMappingURL=update-function-body.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-function-body.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-function-body.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;gBAEf,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;qFAgBlB,CAAA"}
1
+ {"version":3,"file":"update-function-body.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-function-body.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;gBAEf,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;UACd,MAAM;;aAEH,OAAO;oGAgBlB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { LocalEnvironmentOnlyError } from '@pikku/core/errors';
2
- import { pikkuFunc } from '#pikku';
1
+ import { LocalEnvironmentOnlyError } from '#pikku/addon/error';
2
+ import { pikkuFunc } from '#pikku/addon/function';
3
3
  export const updateFunctionBody = pikkuFunc({
4
4
  title: 'Update Function Body',
5
5
  description: 'Replaces the function body of a pikku function definition in source code and triggers a rebuild.',
@@ -1 +1 @@
1
- {"version":3,"file":"update-function-body.function.js","sourceRoot":"","sources":["../../../src/functions/update-function-body.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAOzC;IACA,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,kGAAkG;IACpG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,0BAA0B,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE;QACtE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"update-function-body.function.js","sourceRoot":"","sources":["../../../src/functions/update-function-body.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAOzC;IACA,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,kGAAkG;IACpG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,0BAA0B,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,EAAE;QACtE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;QACxE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -1,21 +1,21 @@
1
1
  import type { FunctionConfigChanges } from '../services/code-edit.service.js';
2
- export declare const updateFunctionConfig: import("#pikku").PikkuFunctionConfig<{
2
+ export declare const updateFunctionConfig: import("#pikku/addon/function").PikkuFunctionConfig<{
3
3
  sourceFile: string;
4
4
  exportedName: string;
5
5
  changes: FunctionConfigChanges;
6
6
  }, {
7
7
  success: boolean;
8
- }, "rpc" | "session", import("#pikku").PikkuFunction<{
8
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunction<{
9
9
  sourceFile: string;
10
10
  exportedName: string;
11
11
  changes: FunctionConfigChanges;
12
12
  }, {
13
13
  success: boolean;
14
- }, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunctionSessionless<{
14
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices> | import("#pikku/addon/function").PikkuFunctionSessionless<{
15
15
  sourceFile: string;
16
16
  exportedName: string;
17
17
  changes: FunctionConfigChanges;
18
18
  }, {
19
19
  success: boolean;
20
- }, "rpc" | "session", import("#pikku").WiredServices, unknown>, undefined, undefined>;
20
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown>, undefined, undefined>;
21
21
  //# sourceMappingURL=update-function-config.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-function-config.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-function-config.function.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAE7E,eAAO,MAAM,oBAAoB;gBAEjB,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;qFAoBlB,CAAA"}
1
+ {"version":3,"file":"update-function-config.function.d.ts","sourceRoot":"","sources":["../../../src/functions/update-function-config.function.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAE7E,eAAO,MAAM,oBAAoB;gBAEjB,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;;gBAJJ,MAAM;kBACJ,MAAM;aACX,qBAAqB;;aAErB,OAAO;oGAoBlB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { LocalEnvironmentOnlyError } from '@pikku/core/errors';
2
- import { pikkuFunc } from '#pikku';
1
+ import { LocalEnvironmentOnlyError } from '#pikku/addon/error';
2
+ import { pikkuFunc } from '#pikku/addon/function';
3
3
  export const updateFunctionConfig = pikkuFunc({
4
4
  title: 'Update Function Config',
5
5
  description: 'Updates the config properties of a pikku function definition in source code and triggers a rebuild.',
@@ -1 +1 @@
1
- {"version":3,"file":"update-function-config.function.js","sourceRoot":"","sources":["../../../src/functions/update-function-config.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAGlC,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAO3C;IACA,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,qGAAqG;IACvG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,0BAA0B,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,oBAAoB,CACxC,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAA;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"update-function-config.function.js","sourceRoot":"","sources":["../../../src/functions/update-function-config.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAO3C;IACA,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EACT,qGAAqG;IACvG,MAAM,EAAE,IAAI;IACZ,MAAM,EAAE,CAAC,0BAA0B,CAAC;IACpC,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;QACzE,IAAI,CAAC,eAAe,EAAE,CAAC;YACrB,MAAM,IAAI,yBAAyB,CACjC,0CAA0C,CAC3C,CAAA;QACH,CAAC;QACD,MAAM,eAAe,CAAC,oBAAoB,CACxC,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAA;QACD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -99,7 +99,7 @@ test('a package with no declarations is ready', async () => {
99
99
  test('reads the override names out of the instance wiring file', async () => {
100
100
  await withRoot(async (root) => {
101
101
  const wiringFile = join(root, 'widget-promo.addon.ts');
102
- await writeFile(wiringFile, `import { wireAddon } from '#pikku/pikku-types.gen.js'
102
+ await writeFile(wiringFile, `import { wireAddon } from '#pikku/addon'
103
103
 
104
104
  wireAddon({
105
105
  name: 'widget-promo',
@@ -1,5 +1,5 @@
1
- import type { MetaService } from '@pikku/core/ecosystem/services';
2
- import type { SecurityAuditReport } from '@pikku/core/ecosystem/types';
1
+ import type { MetaService } from '@pikku/core/services';
2
+ import type { SecurityAuditReport } from '@pikku/core/types';
3
3
  export declare function findBin(name: string, searchFrom: string): string;
4
4
  export declare function readAuditReport(metaService: MetaService): Promise<SecurityAuditReport | null>;
5
5
  export declare function spawnProcess(command: string, args: string[], cwd: string, { failOnNonZero, timeoutMs, }?: {
@@ -1 +1 @@
1
- {"version":3,"file":"audit-exec.d.ts","sourceRoot":"","sources":["../../../src/lib/audit-exec.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAItE,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAUhE;AAID,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAQrC;AAQD,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,EACX,EACE,aAAqB,EACrB,SAAsB,GACvB,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,IAAI,CAAC,CAmCf;AAGD,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrE"}
1
+ {"version":3,"file":"audit-exec.d.ts","sourceRoot":"","sources":["../../../src/lib/audit-exec.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAI5D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAUhE;AAID,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAQrC;AAQD,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,GAAG,EAAE,MAAM,EACX,EACE,aAAqB,EACrB,SAAsB,GACvB,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,IAAI,CAAC,CAmCf;AAGD,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAOrE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=audit-exec.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-exec.test.d.ts","sourceRoot":"","sources":["../../../src/lib/audit-exec.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,97 @@
1
+ import { describe, test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { chmodSync, mkdirSync, mkdtempSync, writeFileSync } from 'node:fs';
4
+ import { tmpdir } from 'node:os';
5
+ import { join } from 'node:path';
6
+ import { findBin, readAuditReport, spawnProcess } from './audit-exec.js';
7
+ const scratch = () => mkdtempSync(join(tmpdir(), 'pikku-audit-exec-'));
8
+ const executable = (dir, name, body) => {
9
+ mkdirSync(dir, { recursive: true });
10
+ const path = join(dir, name);
11
+ writeFileSync(path, body);
12
+ chmodSync(path, 0o755);
13
+ return path;
14
+ };
15
+ describe('findBin', () => {
16
+ test('finds the binary in the nearest node_modules/.bin', () => {
17
+ const root = scratch();
18
+ const nested = join(root, 'packages', 'api');
19
+ mkdirSync(nested, { recursive: true });
20
+ const bin = executable(join(nested, 'node_modules', '.bin'), 'pikku', '');
21
+ assert.equal(findBin('pikku', nested), bin);
22
+ });
23
+ test('walks up to a hoisted binary in the workspace root', () => {
24
+ const root = scratch();
25
+ const nested = join(root, 'packages', 'api', 'src');
26
+ mkdirSync(nested, { recursive: true });
27
+ const bin = executable(join(root, 'node_modules', '.bin'), 'pikku', '');
28
+ assert.equal(findBin('pikku', nested), bin);
29
+ });
30
+ test('prefers the closest binary over the hoisted one', () => {
31
+ const root = scratch();
32
+ const nested = join(root, 'packages', 'api');
33
+ mkdirSync(nested, { recursive: true });
34
+ executable(join(root, 'node_modules', '.bin'), 'pikku', '');
35
+ const local = executable(join(nested, 'node_modules', '.bin'), 'pikku', '');
36
+ assert.equal(findBin('pikku', nested), local);
37
+ });
38
+ // Falling back to the bare name lets PATH resolve it — a globally installed
39
+ // CLI still works rather than the call failing outright.
40
+ test('falls back to the bare name when nothing is installed', () => {
41
+ assert.equal(findBin('pikku', scratch()), 'pikku');
42
+ });
43
+ });
44
+ describe('spawnProcess', () => {
45
+ const sh = (body) => {
46
+ const dir = scratch();
47
+ return executable(dir, 'script.sh', `#!/bin/sh\n${body}`);
48
+ };
49
+ test('resolves when the process succeeds', async () => {
50
+ await spawnProcess(sh('exit 0'), [], scratch());
51
+ });
52
+ // `pikku audit` exits non-zero precisely when it finds advisories, having
53
+ // written a perfectly valid report — rejecting there would hide findings.
54
+ test('is lenient about a non-zero exit by default', async () => {
55
+ await spawnProcess(sh('exit 3'), [], scratch());
56
+ });
57
+ test('rejects on a non-zero exit when asked to', async () => {
58
+ await assert.rejects(spawnProcess(sh('exit 3'), [], scratch(), { failOnNonZero: true }), /exit 3/);
59
+ });
60
+ test('includes stderr so the failure is diagnosable', async () => {
61
+ await assert.rejects(spawnProcess(sh('echo "no matching version" >&2; exit 1'), [], scratch(), {
62
+ failOnNonZero: true,
63
+ }), /no matching version/);
64
+ });
65
+ test('rejects when the command does not exist', async () => {
66
+ await assert.rejects(spawnProcess(join(scratch(), 'nope'), [], scratch()), /ENOENT/);
67
+ });
68
+ // A hung `bun install` must not hold the console request open forever.
69
+ test('kills and rejects a process that outruns its timeout', async () => {
70
+ const started = Date.now();
71
+ await assert.rejects(spawnProcess(sh('sleep 30'), [], scratch(), { timeoutMs: 250 }), /timed out after 250ms/);
72
+ assert.ok(Date.now() - started < 5_000);
73
+ });
74
+ test('does not fire the timeout for a process that finished in time', async () => {
75
+ await spawnProcess(sh('exit 0'), [], scratch(), { timeoutMs: 10_000 });
76
+ });
77
+ });
78
+ describe('readAuditReport', () => {
79
+ const metaService = (readFile) => ({ readFile });
80
+ test('parses the report', async () => {
81
+ const report = await readAuditReport(metaService(async () => JSON.stringify({ schemaVersion: 1, tool: 'bun' })));
82
+ assert.equal(report?.tool, 'bun');
83
+ });
84
+ test('is null when there is no report yet', async () => {
85
+ assert.equal(await readAuditReport(metaService(async () => null)), null);
86
+ assert.equal(await readAuditReport(metaService(async () => '')), null);
87
+ });
88
+ test('is null rather than throwing on a malformed report', async () => {
89
+ assert.equal(await readAuditReport(metaService(async () => '{ truncated')), null);
90
+ });
91
+ test('is null rather than throwing when the read itself fails', async () => {
92
+ assert.equal(await readAuditReport(metaService(async () => {
93
+ throw new Error('EACCES');
94
+ })), null);
95
+ });
96
+ });
97
+ //# sourceMappingURL=audit-exec.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-exec.test.js","sourceRoot":"","sources":["../../../src/lib/audit-exec.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,MAAM,MAAM,oBAAoB,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAExE,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,mBAAmB,CAAC,CAAC,CAAA;AAEtE,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,IAAY,EAAE,IAAY,EAAE,EAAE;IAC7D,SAAS,CAAC,GAAG,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IACnC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC5B,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IACzB,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACtB,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,CAAC,mDAAmD,EAAE,GAAG,EAAE;QAC7D,MAAM,IAAI,GAAG,OAAO,EAAE,CAAA;QACtB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;QAC5C,SAAS,CAAC,MAAM,EAAE,EAA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,MAAM,MAAM,GAAG,MAAM,eAAe,CAClC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAC3E,CAAA;QACD,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IACnC,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,qCAAqC,EAAE,KAAK,IAAI,EAAE;QACrD,MAAM,CAAC,KAAK,CAAC,MAAM,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;QACxE,MAAM,CAAC,KAAK,CAAC,MAAM,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;IACxE,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,oDAAoD,EAAE,KAAK,IAAI,EAAE;QACpE,MAAM,CAAC,KAAK,CACV,MAAM,eAAe,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,aAAa,CAAC,CAAC,EAC7D,IAAI,CACL,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,IAAI,CAAC,yDAAyD,EAAE,KAAK,IAAI,EAAE;QACzE,MAAM,CAAC,KAAK,CACV,MAAM,eAAe,CACnB,WAAW,CAAC,KAAK,IAAI,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAA;QAC3B,CAAC,CAAC,CACH,EACD,IAAI,CACL,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { existsSync } from 'node:fs';
3
3
  import { join, resolve, sep } from 'node:path';
4
- import { BadRequestError } from '@pikku/core/errors';
4
+ import { BadRequestError } from '#pikku/addon/error';
5
5
  /** Anchoring the first character on npm's no-leading-dot rule is what excludes
6
6
  * `.` and `..`; a trailing `[a-z0-9._-]+` alone matches both. */
7
7
  const VALID_PACKAGE_NAME = /^(@[a-z0-9-]+\/)?[a-z0-9-][a-z0-9._-]*$/;
@@ -1,5 +1,5 @@
1
1
  import type { BetterAuthInstance } from '@pikku/better-auth';
2
- import type { CoreSingletonServices } from '@pikku/core';
2
+ import type { CoreSingletonServices } from '@pikku/core/types';
3
3
  /** Who a user id belongs to. */
4
4
  export type AuditUserProfile = {
5
5
  name?: string;