@pikku/addon-console 0.12.40 → 0.12.42

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 (364) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -2
  2. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  3. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  4. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  5. package/dist/.pikku/addon/pikku-package.gen.js +2 -2
  6. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  7. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +12 -12
  9. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  10. package/dist/.pikku/agent/pikku-agent-types.gen.js +6 -6
  11. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  12. package/dist/.pikku/agent/pikku-model-aliases.gen.js +1 -1
  13. package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +1 -1
  14. package/dist/.pikku/auth/auth.types.d.ts +1 -1
  15. package/dist/.pikku/auth/auth.types.js +1 -1
  16. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +4 -4
  17. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -1
  18. package/dist/.pikku/channel/pikku-channel-types.gen.js +3 -2
  19. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -1
  20. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  21. package/dist/.pikku/function/pikku-function-types.gen.d.ts +9 -7
  22. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  23. package/dist/.pikku/function/pikku-function-types.gen.js +5 -4
  24. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  25. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +381 -192
  26. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  27. package/dist/.pikku/function/pikku-functions-meta.gen.json +267 -85
  28. package/dist/.pikku/function/pikku-functions.gen.js +3 -1
  29. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  30. package/dist/.pikku/http/pikku-http-types.gen.d.ts +3 -3
  31. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -1
  32. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  33. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -1
  34. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +4 -3
  35. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -1
  36. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  37. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -1
  38. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  39. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  40. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  41. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  42. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  43. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  44. package/dist/.pikku/pikku-services.gen.d.ts +7 -6
  45. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  46. package/dist/.pikku/pikku-services.gen.js +5 -4
  47. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  48. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  49. package/dist/.pikku/pikku-types.gen.js +1 -1
  50. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +2 -2
  51. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -1
  52. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  53. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -1
  54. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +10 -7
  55. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +10 -7
  56. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +9 -7
  57. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  58. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +1 -0
  59. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +1 -1
  60. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  61. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +1 -1
  62. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  63. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  64. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  65. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
  66. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -1
  67. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  68. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -1
  69. package/dist/.pikku/schemas/register.gen.js +6 -2
  70. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  71. package/dist/.pikku/schemas/schemas/AddonReadinessInput.schema.json +1 -0
  72. package/dist/.pikku/schemas/schemas/AddonReadinessOutput.schema.json +1 -0
  73. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
  74. package/dist/.pikku/schemas/schemas/InstallAddonOutput.schema.json +1 -1
  75. package/dist/.pikku/scopes/pikku-personas.gen.d.ts +2 -1
  76. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +1 -1
  77. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  78. package/dist/.pikku/scopes/pikku-personas.gen.js.map +1 -1
  79. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +2 -2
  80. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +1 -1
  81. package/dist/.pikku/scopes/pikku-roles.gen.js +1 -1
  82. package/dist/.pikku/scopes/pikku-roles.gen.js.map +1 -1
  83. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +5 -5
  84. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +1 -1
  85. package/dist/.pikku/scopes/pikku-scope-types.gen.js +3 -3
  86. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +1 -1
  87. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +140 -14
  88. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +3 -3
  89. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -1
  90. package/dist/.pikku/scopes/pikku-scopes.gen.js +1 -1
  91. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -1
  92. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +3 -2
  93. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -1
  94. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  95. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  96. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -1
  97. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  98. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -1
  99. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +3 -3
  100. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -1
  101. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  102. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -1
  103. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +2 -2
  104. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -1
  105. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  106. package/dist/.pikku/variables/pikku-variables.gen.d.ts +3 -3
  107. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -1
  108. package/dist/.pikku/variables/pikku-variables.gen.js +2 -2
  109. package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -1
  110. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +3 -1
  111. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -1
  112. package/dist/.pikku/workflow/pikku-personas.gen.js +2 -2
  113. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -1
  114. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  115. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  116. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +6 -5
  117. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  118. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +3 -3
  119. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  120. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  121. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  122. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  123. package/dist/src/functions/addon-readiness.function.d.ts +23 -0
  124. package/dist/src/functions/addon-readiness.function.d.ts.map +1 -0
  125. package/dist/src/functions/addon-readiness.function.js +41 -0
  126. package/dist/src/functions/addon-readiness.function.js.map +1 -0
  127. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -1
  128. package/dist/src/functions/agent-credential-check.function.js +1 -0
  129. package/dist/src/functions/agent-credential-check.function.js.map +1 -1
  130. package/dist/src/functions/credential-delete.function.d.ts.map +1 -1
  131. package/dist/src/functions/credential-delete.function.js +1 -0
  132. package/dist/src/functions/credential-delete.function.js.map +1 -1
  133. package/dist/src/functions/credential-get.function.d.ts.map +1 -1
  134. package/dist/src/functions/credential-get.function.js +1 -0
  135. package/dist/src/functions/credential-get.function.js.map +1 -1
  136. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -1
  137. package/dist/src/functions/credential-list-users.function.js +1 -0
  138. package/dist/src/functions/credential-list-users.function.js.map +1 -1
  139. package/dist/src/functions/credential-set.function.d.ts.map +1 -1
  140. package/dist/src/functions/credential-set.function.js +1 -0
  141. package/dist/src/functions/credential-set.function.js.map +1 -1
  142. package/dist/src/functions/credential-status.function.d.ts.map +1 -1
  143. package/dist/src/functions/credential-status.function.js +1 -0
  144. package/dist/src/functions/credential-status.function.js.map +1 -1
  145. package/dist/src/functions/credential-users.function.d.ts.map +1 -1
  146. package/dist/src/functions/credential-users.function.js +1 -0
  147. package/dist/src/functions/credential-users.function.js.map +1 -1
  148. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  149. package/dist/src/functions/delete-agent-thread.function.js +1 -0
  150. package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
  151. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  152. package/dist/src/functions/delete-workflow-run.function.js +1 -0
  153. package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
  154. package/dist/src/functions/get-addon-categories.function.d.ts.map +1 -1
  155. package/dist/src/functions/get-addon-categories.function.js +1 -0
  156. package/dist/src/functions/get-addon-categories.function.js.map +1 -1
  157. package/dist/src/functions/get-addon-icon.function.d.ts.map +1 -1
  158. package/dist/src/functions/get-addon-icon.function.js +1 -0
  159. package/dist/src/functions/get-addon-icon.function.js.map +1 -1
  160. package/dist/src/functions/get-addon-instances.function.d.ts.map +1 -1
  161. package/dist/src/functions/get-addon-instances.function.js +1 -0
  162. package/dist/src/functions/get-addon-instances.function.js.map +1 -1
  163. package/dist/src/functions/get-addon-meta.function.d.ts.map +1 -1
  164. package/dist/src/functions/get-addon-meta.function.js +1 -0
  165. package/dist/src/functions/get-addon-meta.function.js.map +1 -1
  166. package/dist/src/functions/get-addon-package.function.d.ts.map +1 -1
  167. package/dist/src/functions/get-addon-package.function.js +1 -0
  168. package/dist/src/functions/get-addon-package.function.js.map +1 -1
  169. package/dist/src/functions/get-agent-run-scores.function.js +4 -4
  170. package/dist/src/functions/get-agent-run-scores.function.js.map +1 -1
  171. package/dist/src/functions/get-agent-run-scores.function.test.js +2 -2
  172. package/dist/src/functions/get-agent-run-scores.function.test.js.map +1 -1
  173. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  174. package/dist/src/functions/get-agent-thread-messages.function.js +1 -0
  175. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
  176. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  177. package/dist/src/functions/get-agent-thread-runs.function.js +2 -1
  178. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  179. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  180. package/dist/src/functions/get-agent-threads.function.js +2 -1
  181. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  182. package/dist/src/functions/get-agent-threads.function.test.js +10 -2
  183. package/dist/src/functions/get-agent-threads.function.test.js.map +1 -1
  184. package/dist/src/functions/get-all-meta.function.d.ts.map +1 -1
  185. package/dist/src/functions/get-all-meta.function.js +1 -0
  186. package/dist/src/functions/get-all-meta.function.js.map +1 -1
  187. package/dist/src/functions/get-audit-filters.function.js +1 -1
  188. package/dist/src/functions/get-audit-filters.function.js.map +1 -1
  189. package/dist/src/functions/get-audits.function.d.ts +1 -1
  190. package/dist/src/functions/get-audits.function.d.ts.map +1 -1
  191. package/dist/src/functions/get-audits.function.js +1 -1
  192. package/dist/src/functions/get-audits.function.js.map +1 -1
  193. package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -1
  194. package/dist/src/functions/get-auth-providers.function.js +1 -0
  195. package/dist/src/functions/get-auth-providers.function.js.map +1 -1
  196. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  197. package/dist/src/functions/get-channel-snippets.function.js +1 -0
  198. package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
  199. package/dist/src/functions/get-db-schema.function.d.ts.map +1 -1
  200. package/dist/src/functions/get-db-schema.function.js +1 -0
  201. package/dist/src/functions/get-db-schema.function.js.map +1 -1
  202. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  203. package/dist/src/functions/get-functions-meta.function.js +1 -0
  204. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  205. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  206. package/dist/src/functions/get-installed-addons.function.js +1 -0
  207. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  208. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  209. package/dist/src/functions/get-installed-package.function.js +1 -0
  210. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  211. package/dist/src/functions/get-knowledge.function.d.ts.map +1 -1
  212. package/dist/src/functions/get-knowledge.function.js +1 -0
  213. package/dist/src/functions/get-knowledge.function.js.map +1 -1
  214. package/dist/src/functions/get-openapi-categories.function.d.ts.map +1 -1
  215. package/dist/src/functions/get-openapi-categories.function.js +1 -0
  216. package/dist/src/functions/get-openapi-categories.function.js.map +1 -1
  217. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -1
  218. package/dist/src/functions/get-openapi-detail.function.js +1 -0
  219. package/dist/src/functions/get-openapi-detail.function.js.map +1 -1
  220. package/dist/src/functions/get-openapis.function.d.ts.map +1 -1
  221. package/dist/src/functions/get-openapis.function.js +1 -0
  222. package/dist/src/functions/get-openapis.function.js.map +1 -1
  223. package/dist/src/functions/get-schema.function.d.ts.map +1 -1
  224. package/dist/src/functions/get-schema.function.js +1 -0
  225. package/dist/src/functions/get-schema.function.js.map +1 -1
  226. package/dist/src/functions/get-security-audit.function.d.ts +1 -1
  227. package/dist/src/functions/get-security-audit.function.d.ts.map +1 -1
  228. package/dist/src/functions/get-security-audit.function.js +1 -0
  229. package/dist/src/functions/get-security-audit.function.js.map +1 -1
  230. package/dist/src/functions/get-security-audit.function.test.js +3 -1
  231. package/dist/src/functions/get-security-audit.function.test.js.map +1 -1
  232. package/dist/src/functions/get-state-diff.function.d.ts.map +1 -1
  233. package/dist/src/functions/get-state-diff.function.js +1 -0
  234. package/dist/src/functions/get-state-diff.function.js.map +1 -1
  235. package/dist/src/functions/get-webhook-delivery.function.d.ts +1 -1
  236. package/dist/src/functions/get-webhook-delivery.function.d.ts.map +1 -1
  237. package/dist/src/functions/get-webhook-delivery.function.js +1 -0
  238. package/dist/src/functions/get-webhook-delivery.function.js.map +1 -1
  239. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +6 -6
  240. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  241. package/dist/src/functions/get-workflow-meta-by-id.function.js +1 -0
  242. package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
  243. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  244. package/dist/src/functions/get-workflow-run-history.function.js +1 -0
  245. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
  246. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  247. package/dist/src/functions/get-workflow-run-names.function.js +1 -0
  248. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
  249. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  250. package/dist/src/functions/get-workflow-run-steps.function.js +1 -0
  251. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
  252. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  253. package/dist/src/functions/get-workflow-run.function.js +1 -0
  254. package/dist/src/functions/get-workflow-run.function.js.map +1 -1
  255. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  256. package/dist/src/functions/get-workflow-runs.function.js +1 -0
  257. package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
  258. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  259. package/dist/src/functions/get-workflow-version.function.js +1 -0
  260. package/dist/src/functions/get-workflow-version.function.js.map +1 -1
  261. package/dist/src/functions/install-addon.function.d.ts +15 -0
  262. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  263. package/dist/src/functions/install-addon.function.js +19 -9
  264. package/dist/src/functions/install-addon.function.js.map +1 -1
  265. package/dist/src/functions/install-addon.function.test.js +56 -4
  266. package/dist/src/functions/install-addon.function.test.js.map +1 -1
  267. package/dist/src/functions/install-openapi-addon.function.js +1 -1
  268. package/dist/src/functions/install-openapi-addon.function.js.map +1 -1
  269. package/dist/src/functions/list-webhook-deliveries.function.d.ts +1 -1
  270. package/dist/src/functions/list-webhook-deliveries.function.d.ts.map +1 -1
  271. package/dist/src/functions/list-webhook-deliveries.function.js +1 -0
  272. package/dist/src/functions/list-webhook-deliveries.function.js.map +1 -1
  273. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
  274. package/dist/src/functions/read-agent-source.function.js +1 -0
  275. package/dist/src/functions/read-agent-source.function.js.map +1 -1
  276. package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
  277. package/dist/src/functions/read-function-body.function.js +1 -0
  278. package/dist/src/functions/read-function-body.function.js.map +1 -1
  279. package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
  280. package/dist/src/functions/read-function-source.function.js +1 -0
  281. package/dist/src/functions/read-function-source.function.js.map +1 -1
  282. package/dist/src/functions/render-email-preview.function.d.ts.map +1 -1
  283. package/dist/src/functions/render-email-preview.function.js +1 -0
  284. package/dist/src/functions/render-email-preview.function.js.map +1 -1
  285. package/dist/src/functions/run-security-audit.function.d.ts +1 -1
  286. package/dist/src/functions/run-security-audit.function.d.ts.map +1 -1
  287. package/dist/src/functions/run-security-audit.function.js +1 -0
  288. package/dist/src/functions/run-security-audit.function.js.map +1 -1
  289. package/dist/src/functions/scope-add-scope-to-user.function.js +2 -2
  290. package/dist/src/functions/scope-add-scope-to-user.function.js.map +1 -1
  291. package/dist/src/functions/scope-add-user-to-role.function.js +2 -2
  292. package/dist/src/functions/scope-add-user-to-role.function.js.map +1 -1
  293. package/dist/src/functions/scope-create-role.function.js +1 -1
  294. package/dist/src/functions/scope-create-role.function.js.map +1 -1
  295. package/dist/src/functions/scope-delete-role.function.js +1 -1
  296. package/dist/src/functions/scope-delete-role.function.js.map +1 -1
  297. package/dist/src/functions/scope-list-declared.function.js +1 -1
  298. package/dist/src/functions/scope-list-declared.function.js.map +1 -1
  299. package/dist/src/functions/scope-list-roles.function.d.ts +1 -1
  300. package/dist/src/functions/scope-list-roles.function.d.ts.map +1 -1
  301. package/dist/src/functions/scope-list-roles.function.js +1 -1
  302. package/dist/src/functions/scope-list-roles.function.js.map +1 -1
  303. package/dist/src/functions/scope-list-user-roles.function.js +1 -1
  304. package/dist/src/functions/scope-list-user-roles.function.js.map +1 -1
  305. package/dist/src/functions/scope-remove-scope-from-user.function.js +2 -2
  306. package/dist/src/functions/scope-remove-scope-from-user.function.js.map +1 -1
  307. package/dist/src/functions/scope-remove-user-from-role.function.js +2 -2
  308. package/dist/src/functions/scope-remove-user-from-role.function.js.map +1 -1
  309. package/dist/src/functions/scope-set-role-scopes.function.js +2 -2
  310. package/dist/src/functions/scope-set-role-scopes.function.js.map +1 -1
  311. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
  312. package/dist/src/functions/update-agent-config.function.js +1 -0
  313. package/dist/src/functions/update-agent-config.function.js.map +1 -1
  314. package/dist/src/functions/update-dependency.function.d.ts +1 -1
  315. package/dist/src/functions/update-dependency.function.d.ts.map +1 -1
  316. package/dist/src/functions/update-dependency.function.js +2 -1
  317. package/dist/src/functions/update-dependency.function.js.map +1 -1
  318. package/dist/src/functions/update-email-template.function.d.ts.map +1 -1
  319. package/dist/src/functions/update-email-template.function.js +1 -0
  320. package/dist/src/functions/update-email-template.function.js.map +1 -1
  321. package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
  322. package/dist/src/functions/update-function-body.function.js +1 -0
  323. package/dist/src/functions/update-function-body.function.js.map +1 -1
  324. package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
  325. package/dist/src/functions/update-function-config.function.js +1 -0
  326. package/dist/src/functions/update-function-config.function.js.map +1 -1
  327. package/dist/src/lib/addon-readiness.d.ts +26 -0
  328. package/dist/src/lib/addon-readiness.d.ts.map +1 -0
  329. package/dist/src/lib/addon-readiness.js +82 -0
  330. package/dist/src/lib/addon-readiness.js.map +1 -0
  331. package/dist/src/lib/addon-readiness.test.d.ts +2 -0
  332. package/dist/src/lib/addon-readiness.test.d.ts.map +1 -0
  333. package/dist/src/lib/addon-readiness.test.js +118 -0
  334. package/dist/src/lib/addon-readiness.test.js.map +1 -0
  335. package/dist/src/lib/audit-exec.d.ts +2 -2
  336. package/dist/src/lib/audit-exec.d.ts.map +1 -1
  337. package/dist/src/lib/audit-exec.js.map +1 -1
  338. package/dist/src/lib/derive-instance-overrides.d.ts +6 -0
  339. package/dist/src/lib/derive-instance-overrides.d.ts.map +1 -1
  340. package/dist/src/lib/derive-instance-overrides.js +35 -2
  341. package/dist/src/lib/derive-instance-overrides.js.map +1 -1
  342. package/dist/src/lib/derive-instance-overrides.test.js +27 -1
  343. package/dist/src/lib/derive-instance-overrides.test.js.map +1 -1
  344. package/dist/src/lib/resolve-audit-users.d.ts +1 -1
  345. package/dist/src/lib/resolve-audit-users.js +1 -1
  346. package/dist/src/scopes.js +113 -13
  347. package/dist/src/scopes.js.map +1 -1
  348. package/dist/src/services/addon-readiness.service.d.ts +14 -0
  349. package/dist/src/services/addon-readiness.service.d.ts.map +1 -0
  350. package/dist/src/services/addon-readiness.service.js +15 -0
  351. package/dist/src/services/addon-readiness.service.js.map +1 -0
  352. package/dist/src/services/addon.service.d.ts +5 -5
  353. package/dist/src/services/addon.service.d.ts.map +1 -1
  354. package/dist/src/services/code-edit.service.test.js +2 -2
  355. package/dist/src/services/db-schema.service.d.ts +1 -1
  356. package/dist/src/services/db-schema.service.d.ts.map +1 -1
  357. package/dist/src/services/wiring.service.d.ts +7 -6
  358. package/dist/src/services/wiring.service.d.ts.map +1 -1
  359. package/dist/src/services/wiring.service.js.map +1 -1
  360. package/dist/src/services.d.ts.map +1 -1
  361. package/dist/src/services.js +7 -4
  362. package/dist/src/services.js.map +1 -1
  363. package/dist/types/application-types.d.ts +3 -1
  364. package/package.json +6 -6
@@ -1,4 +1,42 @@
1
1
  {
2
+ "addonReadiness": {
3
+ "pikkuFuncId": "addonReadiness",
4
+ "functionType": "user",
5
+ "funcWrapper": "pikkuFunc",
6
+ "sessionless": false,
7
+ "name": "addonReadiness",
8
+ "services": {
9
+ "optimized": true,
10
+ "services": [
11
+ "metaService",
12
+ "addonReadinessService"
13
+ ]
14
+ },
15
+ "inputSchemaName": "AddonReadinessInput",
16
+ "outputSchemaName": "AddonReadinessOutput",
17
+ "inputs": [
18
+ "AddonReadinessInput"
19
+ ],
20
+ "outputs": [
21
+ "AddonReadinessOutput"
22
+ ],
23
+ "expose": true,
24
+ "auth": true,
25
+ "scopes": [
26
+ "pikku:console:addons:read"
27
+ ],
28
+ "implementationHash": "c57f9df68bebb3a8",
29
+ "title": "Addon Readiness",
30
+ "description": "Reports which of an installed addon instance secrets and variables are still unset. Requires an admin session.",
31
+ "isDirectFunction": false,
32
+ "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/addon-readiness.function.ts",
33
+ "exportedName": "addonReadiness",
34
+ "bodyStart": 24,
35
+ "bodyEnd": 57,
36
+ "contractHash": "162d3e14f19e9063",
37
+ "inputHash": "13f8a989",
38
+ "outputHash": "16e04aca"
39
+ },
2
40
  "agentCredentialCheck": {
3
41
  "pikkuFuncId": "agentCredentialCheck",
4
42
  "functionType": "user",
@@ -27,14 +65,17 @@
27
65
  "AgentCredentialCheckOutput"
28
66
  ],
29
67
  "expose": true,
30
- "implementationHash": "4ae243f8ce4235da",
68
+ "scopes": [
69
+ "pikku:console:credentials:read"
70
+ ],
71
+ "implementationHash": "2eb907cc29e4bbf1",
31
72
  "title": "Agent Credential Check",
32
73
  "description": "Checks which OAuth credentials an agent needs and whether the authenticated user has connected them.",
33
74
  "isDirectFunction": false,
34
75
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/agent-credential-check.function.ts",
35
76
  "exportedName": "agentCredentialCheck",
36
- "bodyStart": 26,
37
- "bodyEnd": 73,
77
+ "bodyStart": 27,
78
+ "bodyEnd": 74,
38
79
  "contractHash": "07bf36af4e1b26cd",
39
80
  "inputHash": "5b191655",
40
81
  "outputHash": "eeff398a"
@@ -60,14 +101,17 @@
60
101
  "CredentialDeleteOutput"
61
102
  ],
62
103
  "expose": true,
63
- "implementationHash": "c1adc37855c0b0e1",
104
+ "scopes": [
105
+ "pikku:console:credentials:manage"
106
+ ],
107
+ "implementationHash": "a8b0a6bef7315d21",
64
108
  "title": "Delete Credential",
65
109
  "description": "Deletes a credential, optionally scoped to a user.",
66
110
  "isDirectFunction": false,
67
111
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-delete.function.ts",
68
112
  "exportedName": "credentialDelete",
69
- "bodyStart": 11,
70
- "bodyEnd": 12,
113
+ "bodyStart": 12,
114
+ "bodyEnd": 13,
71
115
  "contractHash": "c0c0129a197c5bed",
72
116
  "inputHash": "e5f90226",
73
117
  "outputHash": "d380569d"
@@ -93,14 +137,17 @@
93
137
  "CredentialGetOutput"
94
138
  ],
95
139
  "expose": true,
96
- "implementationHash": "35bcfa960b0d439e",
140
+ "scopes": [
141
+ "pikku:console:credentials:read"
142
+ ],
143
+ "implementationHash": "d10a1a3e78198017",
97
144
  "title": "Get Credential",
98
145
  "description": "Retrieves a credential value, optionally scoped to a user.",
99
146
  "isDirectFunction": false,
100
147
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-get.function.ts",
101
148
  "exportedName": "credentialGet",
102
- "bodyStart": 11,
103
- "bodyEnd": 12,
149
+ "bodyStart": 12,
150
+ "bodyEnd": 13,
104
151
  "contractHash": "20ae6fc72986b883",
105
152
  "inputHash": "1162de3d",
106
153
  "outputHash": "7f6b0ebf"
@@ -125,14 +172,17 @@
125
172
  "CredentialListUsersOutput"
126
173
  ],
127
174
  "expose": true,
128
- "implementationHash": "96315b9ae55ee8bd",
175
+ "scopes": [
176
+ "pikku:console:credentials:read"
177
+ ],
178
+ "implementationHash": "5ae54268a8679eca",
129
179
  "title": "List Credential Users",
130
180
  "description": "Lists all users and their credential status for each declared credential.",
131
181
  "isDirectFunction": false,
132
182
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-list-users.function.ts",
133
183
  "exportedName": "credentialListUsers",
134
- "bodyStart": 17,
135
- "bodyEnd": 35,
184
+ "bodyStart": 18,
185
+ "bodyEnd": 36,
136
186
  "contractHash": "0b3e0e99cc0fe325",
137
187
  "inputHash": "13b79bd2",
138
188
  "outputHash": "5bf6ba22"
@@ -158,14 +208,17 @@
158
208
  "CredentialSetOutput"
159
209
  ],
160
210
  "expose": true,
161
- "implementationHash": "75a1560247e99655",
211
+ "scopes": [
212
+ "pikku:console:credentials:manage"
213
+ ],
214
+ "implementationHash": "8cb65ff7ad057612",
162
215
  "title": "Set Credential",
163
216
  "description": "Stores a credential value, optionally scoped to a user.",
164
217
  "isDirectFunction": false,
165
218
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-set.function.ts",
166
219
  "exportedName": "credentialSet",
167
- "bodyStart": 11,
168
- "bodyEnd": 12,
220
+ "bodyStart": 12,
221
+ "bodyEnd": 13,
169
222
  "contractHash": "1cf24418020be4f5",
170
223
  "inputHash": "411710ba",
171
224
  "outputHash": "d17478ee"
@@ -191,14 +244,17 @@
191
244
  "CredentialStatusOutput"
192
245
  ],
193
246
  "expose": true,
194
- "implementationHash": "18e0af3ea331ec7a",
247
+ "scopes": [
248
+ "pikku:console:credentials:read"
249
+ ],
250
+ "implementationHash": "dc7a4a408c270885",
195
251
  "title": "Credential Status",
196
252
  "description": "Checks which of the given credential names are configured. Optionally scoped to a user.",
197
253
  "isDirectFunction": false,
198
254
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-status.function.ts",
199
255
  "exportedName": "credentialStatus",
200
- "bodyStart": 12,
201
- "bodyEnd": 16,
256
+ "bodyStart": 13,
257
+ "bodyEnd": 17,
202
258
  "contractHash": "54c549aa89a51ad1",
203
259
  "inputHash": "e5e1d5fa",
204
260
  "outputHash": "d90abe74"
@@ -224,14 +280,17 @@
224
280
  "CredentialUsersOutput"
225
281
  ],
226
282
  "expose": true,
227
- "implementationHash": "e8ce71c17b4e2253",
283
+ "scopes": [
284
+ "pikku:console:credentials:read"
285
+ ],
286
+ "implementationHash": "26ed1bba9a3526f6",
228
287
  "title": "Credential Users",
229
288
  "description": "Lists all user IDs that have a specific credential configured.",
230
289
  "isDirectFunction": false,
231
290
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/credential-users.function.ts",
232
291
  "exportedName": "credentialUsers",
233
- "bodyStart": 11,
234
- "bodyEnd": 12,
292
+ "bodyStart": 12,
293
+ "bodyEnd": 13,
235
294
  "contractHash": "3978cc43086f3ba9",
236
295
  "inputHash": "3ece4aca",
237
296
  "outputHash": "ad9afc4a"
@@ -257,14 +316,17 @@
257
316
  "DeleteAgentThreadOutput"
258
317
  ],
259
318
  "expose": true,
260
- "implementationHash": "458d54717e1ba2cb",
319
+ "scopes": [
320
+ "pikku:console:agents:manage"
321
+ ],
322
+ "implementationHash": "fbf377f15a449d80",
261
323
  "title": "Delete Agent Thread",
262
324
  "description": "Deletes an AI agent thread and all its associated messages and runs via cascade.",
263
325
  "isDirectFunction": false,
264
326
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/delete-agent-thread.function.ts",
265
327
  "exportedName": "deleteAgentThread",
266
- "bodyStart": 12,
267
- "bodyEnd": 13,
328
+ "bodyStart": 13,
329
+ "bodyEnd": 14,
268
330
  "contractHash": "4a965a6fb8ee9447",
269
331
  "inputHash": "a375c07d",
270
332
  "outputHash": "a2094cc1"
@@ -290,14 +352,17 @@
290
352
  "DeleteWorkflowRunOutput"
291
353
  ],
292
354
  "expose": true,
293
- "implementationHash": "ef700a005caf64a7",
355
+ "scopes": [
356
+ "pikku:console:workflows:manage"
357
+ ],
358
+ "implementationHash": "7b3d728e5dd950e7",
294
359
  "title": "Delete Workflow Run",
295
360
  "description": "Deletes a workflow run and all its associated steps and history.",
296
361
  "isDirectFunction": false,
297
362
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/delete-workflow-run.function.ts",
298
363
  "exportedName": "deleteWorkflowRun",
299
- "bodyStart": 12,
300
- "bodyEnd": 13,
364
+ "bodyStart": 13,
365
+ "bodyEnd": 14,
301
366
  "contractHash": "ad8307eecdc7ad6a",
302
367
  "inputHash": "9c70c523",
303
368
  "outputHash": "15f13ae6"
@@ -321,14 +386,17 @@
321
386
  "GetAddonCategoriesOutput"
322
387
  ],
323
388
  "expose": true,
324
- "implementationHash": "cdb84c378a117052",
389
+ "scopes": [
390
+ "pikku:console:addons:read"
391
+ ],
392
+ "implementationHash": "8f77548fad1f3c59",
325
393
  "title": "Get Addon Categories",
326
394
  "description": "Category counts across the whole addon catalogue, for the gallery category rail. Counted by the registry — deriving them from the loaded rows would undercount everything the user has not scrolled to yet.",
327
395
  "isDirectFunction": false,
328
396
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-addon-categories.function.ts",
329
397
  "exportedName": "getAddonCategories",
330
- "bodyStart": 9,
331
- "bodyEnd": 9,
398
+ "bodyStart": 10,
399
+ "bodyEnd": 10,
332
400
  "contractHash": "71fbb74fbafa3971",
333
401
  "inputHash": "671c08eb",
334
402
  "outputHash": "67a958be"
@@ -354,14 +422,17 @@
354
422
  "string"
355
423
  ],
356
424
  "expose": true,
357
- "implementationHash": "cb9396ee6d1c080c",
425
+ "scopes": [
426
+ "pikku:console:addons:read"
427
+ ],
428
+ "implementationHash": "13044e3a3700a91a",
358
429
  "title": "Get Addon Icon",
359
430
  "description": "Returns the icon for an addon from its metadata",
360
431
  "isDirectFunction": false,
361
432
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-addon-icon.function.ts",
362
433
  "exportedName": "getAddonIcon",
363
- "bodyStart": 11,
364
- "bodyEnd": 12,
434
+ "bodyStart": 9,
435
+ "bodyEnd": 10,
365
436
  "contractHash": "941bcb3964361cb3",
366
437
  "inputHash": "c9486bc8",
367
438
  "outputHash": "e7ab44d1"
@@ -385,14 +456,17 @@
385
456
  "GetAddonInstancesOutput"
386
457
  ],
387
458
  "expose": true,
388
- "implementationHash": "aaf21504c28464f8",
459
+ "scopes": [
460
+ "pikku:console:addons:read"
461
+ ],
462
+ "implementationHash": "33214b2fe956c303",
389
463
  "title": "Get Addon Instances",
390
464
  "description": "Returns the wired instances of an addon package and their per-instance overrides.",
391
465
  "isDirectFunction": false,
392
466
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-addon-instances.function.ts",
393
467
  "exportedName": "getAddonInstances",
394
- "bodyStart": 31,
395
- "bodyEnd": 42,
468
+ "bodyStart": 32,
469
+ "bodyEnd": 43,
396
470
  "contractHash": "a0f0bba74c363c18",
397
471
  "inputHash": "71254e9e",
398
472
  "outputHash": "9f2fff5a"
@@ -418,14 +492,17 @@
418
492
  "AddonMetaPage"
419
493
  ],
420
494
  "expose": true,
421
- "implementationHash": "549de5adab237e0c",
495
+ "scopes": [
496
+ "pikku:console:addons:read"
497
+ ],
498
+ "implementationHash": "298f5ec0080b58d5",
422
499
  "title": "Get Addon Metadata",
423
500
  "description": "Returns one page of the addon catalogue. Search, category and sort are applied by the registry rather than the caller, so they cover every package and not just the pages already loaded.",
424
501
  "isDirectFunction": false,
425
502
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-addon-meta.function.ts",
426
503
  "exportedName": "getAddonMeta",
427
- "bodyStart": 13,
428
- "bodyEnd": 13,
504
+ "bodyStart": 14,
505
+ "bodyEnd": 14,
429
506
  "contractHash": "a221c4d32d232590",
430
507
  "inputHash": "bc3bf42d",
431
508
  "outputHash": "02854c4f"
@@ -451,14 +528,17 @@
451
528
  "AddonPackageInfo"
452
529
  ],
453
530
  "expose": true,
454
- "implementationHash": "e5f5a6ecf3cd2c76",
531
+ "scopes": [
532
+ "pikku:console:addons:read"
533
+ ],
534
+ "implementationHash": "5743f5795e5f27e6",
455
535
  "title": "Get Community Addon Package",
456
536
  "description": "Returns the full details of a community addon by ID from the registry",
457
537
  "isDirectFunction": false,
458
538
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-addon-package.function.ts",
459
539
  "exportedName": "getAddonCommunityPackage",
460
- "bodyStart": 13,
461
- "bodyEnd": 13,
540
+ "bodyStart": 14,
541
+ "bodyEnd": 14,
462
542
  "contractHash": "d508534482688cb1",
463
543
  "inputHash": "450acb95",
464
544
  "outputHash": "6aba41a1"
@@ -472,7 +552,7 @@
472
552
  "services": {
473
553
  "optimized": true,
474
554
  "services": [
475
- "aiRunState"
555
+ "agentRunState"
476
556
  ]
477
557
  },
478
558
  "wires": {
@@ -490,7 +570,7 @@
490
570
  "GetAgentRunScoresOutput"
491
571
  ],
492
572
  "expose": true,
493
- "implementationHash": "a2011ab7077a8204",
573
+ "implementationHash": "8885314c13ee66d5",
494
574
  "title": "Get Agent Run Scores",
495
575
  "description": "Returns every grade recorded against one AI agent run, newest first. A run accumulates one row per scorer, and a re-grade appends rather than replaces — so a run may carry the same scorer more than once. A caller without the admin scope may only read the grades of runs its own session owns.",
496
576
  "isDirectFunction": false,
@@ -523,14 +603,17 @@
523
603
  "GetAgentThreadMessagesOutput"
524
604
  ],
525
605
  "expose": true,
526
- "implementationHash": "b3199103df324fb7",
606
+ "scopes": [
607
+ "pikku:console:agents:read"
608
+ ],
609
+ "implementationHash": "abdb18bb25dd7ea3",
527
610
  "title": "Get Agent Thread Messages",
528
611
  "description": "Returns all messages for a given AI agent thread, ordered by creation time.",
529
612
  "isDirectFunction": false,
530
613
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-agent-thread-messages.function.ts",
531
614
  "exportedName": "getAgentThreadMessages",
532
- "bodyStart": 9,
533
- "bodyEnd": 9,
615
+ "bodyStart": 10,
616
+ "bodyEnd": 10,
534
617
  "contractHash": "16058b8da61ea056",
535
618
  "inputHash": "1212abd3",
536
619
  "outputHash": "04960780"
@@ -562,14 +645,17 @@
562
645
  "GetAgentThreadRunsOutput"
563
646
  ],
564
647
  "expose": true,
565
- "implementationHash": "9bd26f5375e21bf4",
648
+ "scopes": [
649
+ "pikku:console:agents:read"
650
+ ],
651
+ "implementationHash": "6f757bbaece48c9c",
566
652
  "title": "Get Agent Thread Runs",
567
653
  "description": "Returns all runs for a given AI agent thread, ordered by creation time descending. A caller without the admin scope sees only the runs its own session owns.",
568
654
  "isDirectFunction": false,
569
655
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-agent-thread-runs.function.ts",
570
656
  "exportedName": "getAgentThreadRuns",
571
- "bodyStart": 13,
572
- "bodyEnd": 21,
657
+ "bodyStart": 14,
658
+ "bodyEnd": 22,
573
659
  "contractHash": "2e961f7a3c523dad",
574
660
  "inputHash": "81647ab7",
575
661
  "outputHash": "6352aca1"
@@ -601,14 +687,17 @@
601
687
  "GetAgentThreadsOutput"
602
688
  ],
603
689
  "expose": true,
604
- "implementationHash": "ff53a04a24d86a23",
690
+ "scopes": [
691
+ "pikku:console:agents:read"
692
+ ],
693
+ "implementationHash": "88298524d8d06c82",
605
694
  "title": "Get Agent Threads",
606
695
  "description": "Returns a list of AI agent threads from the database. Accepts optional filters: agentName, resourceId, limit, and offset for pagination. A caller without the admin scope sees only the threads its own session owns.",
607
696
  "isDirectFunction": false,
608
697
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-agent-threads.function.ts",
609
698
  "exportedName": "getAgentThreads",
610
- "bodyStart": 16,
611
- "bodyEnd": 25,
699
+ "bodyStart": 17,
700
+ "bodyEnd": 26,
612
701
  "contractHash": "d629208347702d27",
613
702
  "inputHash": "41f5350c",
614
703
  "outputHash": "6598bdff"
@@ -632,17 +721,20 @@
632
721
  "AllMeta"
633
722
  ],
634
723
  "expose": true,
635
- "implementationHash": "f95d5f2fceef56bb",
724
+ "scopes": [
725
+ "pikku:console:wirings:read"
726
+ ],
727
+ "implementationHash": "238e359b6a5eb3b6",
636
728
  "title": "Get All Metadata",
637
729
  "description": "Reads and returns a combined object containing metadata for every wiring type (HTTP, RPC, channels, schedulers, queues, workflows, CLI, MCP, gateways, triggers, trigger sources, services, functions, and secrets) by delegating to wiringService.readAllMeta()",
638
730
  "isDirectFunction": false,
639
731
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-all-meta.function.ts",
640
732
  "exportedName": "getAllMeta",
641
- "bodyStart": 10,
642
- "bodyEnd": 10,
643
- "contractHash": "e83303feede7423a",
733
+ "bodyStart": 11,
734
+ "bodyEnd": 11,
735
+ "contractHash": "0e22a2972b1f6667",
644
736
  "inputHash": "bf06e182",
645
- "outputHash": "b30b1312"
737
+ "outputHash": "3f50bbd2"
646
738
  },
647
739
  "getAuditFilters": {
648
740
  "pikkuFuncId": "getAuditFilters",
@@ -667,9 +759,9 @@
667
759
  ],
668
760
  "expose": true,
669
761
  "scopes": [
670
- "pikku:audit:read"
762
+ "pikku:console:audit:read"
671
763
  ],
672
- "implementationHash": "1093adb91ed54d67",
764
+ "implementationHash": "9b3445ba297cbc01",
673
765
  "title": "Get Audit Filters",
674
766
  "description": "Returns the distinct users and event types present in the audit trail, for populating the audit screen filters.",
675
767
  "isDirectFunction": false,
@@ -709,9 +801,9 @@
709
801
  ],
710
802
  "expose": true,
711
803
  "scopes": [
712
- "pikku:audit:read"
804
+ "pikku:console:audit:read"
713
805
  ],
714
- "implementationHash": "88129d345d48a487",
806
+ "implementationHash": "df26d9f8e4504540",
715
807
  "title": "Get Audits",
716
808
  "description": "Returns a page of the audit trail, newest first, optionally filtered by user, event type, and time range. Reports readable: false when the configured audit sink is write-only.",
717
809
  "isDirectFunction": false,
@@ -742,14 +834,17 @@
742
834
  "AuthProvidersMeta"
743
835
  ],
744
836
  "expose": true,
745
- "implementationHash": "28d47382959b8d6b",
837
+ "scopes": [
838
+ "pikku:console:wirings:read"
839
+ ],
840
+ "implementationHash": "ac7907560a650587",
746
841
  "title": "Get Auth Providers",
747
842
  "description": "Returns the social providers and plugins configured via pikkuBetterAuth(), read from the generated auth-meta.gen.json.",
748
843
  "isDirectFunction": false,
749
844
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-auth-providers.function.ts",
750
845
  "exportedName": "getAuthProviders",
751
- "bodyStart": 49,
752
- "bodyEnd": 49,
846
+ "bodyStart": 50,
847
+ "bodyEnd": 50,
753
848
  "contractHash": "206e6e045002b418",
754
849
  "inputHash": "1d94c8c3",
755
850
  "outputHash": "280a6c55"
@@ -776,14 +871,17 @@
776
871
  "ChannelSnippets"
777
872
  ],
778
873
  "expose": true,
779
- "implementationHash": "28466fe6c70c1f0b",
874
+ "scopes": [
875
+ "pikku:console:wirings:read"
876
+ ],
877
+ "implementationHash": "a078bcef73a356a1",
780
878
  "title": "Get Channel Snippets",
781
879
  "description": "Given a channelName, reads channel metadata from metaService, finds the matching channel, and generates code snippets (overview, handlers, actions) for that channel. Returns empty snippets if the channel is not found.",
782
880
  "isDirectFunction": false,
783
881
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-channel-snippets.function.ts",
784
882
  "exportedName": "getChannelSnippets",
785
- "bodyStart": 14,
786
- "bodyEnd": 17,
883
+ "bodyStart": 15,
884
+ "bodyEnd": 18,
787
885
  "contractHash": "f29c66bdcc7eefce",
788
886
  "inputHash": "6f60ad3f",
789
887
  "outputHash": "044e9275"
@@ -807,14 +905,17 @@
807
905
  "DbSchema"
808
906
  ],
809
907
  "expose": true,
810
- "implementationHash": "3c0db47f3d609ea1",
908
+ "scopes": [
909
+ "pikku:console:db:read"
910
+ ],
911
+ "implementationHash": "b00c39689e267566",
811
912
  "title": "Get Database Schema",
812
913
  "description": "Introspects the local development SQLite database and returns table/column metadata enriched with data-classification annotations from db/annotations.gen.json.",
813
914
  "isDirectFunction": false,
814
915
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-db-schema.function.ts",
815
916
  "exportedName": "getDbSchema",
816
- "bodyStart": 11,
817
- "bodyEnd": 14,
917
+ "bodyStart": 12,
918
+ "bodyEnd": 17,
818
919
  "contractHash": "c25846d977be35cc",
819
920
  "inputHash": "933c3d66",
820
921
  "outputHash": "665f2f0d"
@@ -838,14 +939,17 @@
838
939
  "GetFunctionsMetaOutput"
839
940
  ],
840
941
  "expose": true,
841
- "implementationHash": "67fbdf8db39fa458",
942
+ "scopes": [
943
+ "pikku:console:wirings:read"
944
+ ],
945
+ "implementationHash": "39bf1c2346ff7f96",
842
946
  "title": "Get Functions Metadata",
843
947
  "description": "Reads function metadata from metaService and returns it as a flat array of FunctionMeta objects, enriched with version history from the versions manifest if available.",
844
948
  "isDirectFunction": false,
845
949
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-functions-meta.function.ts",
846
950
  "exportedName": "getFunctionsMeta",
847
- "bodyStart": 24,
848
- "bodyEnd": 66,
951
+ "bodyStart": 22,
952
+ "bodyEnd": 64,
849
953
  "contractHash": "d96b40174d792fc2",
850
954
  "inputHash": "f42aa828",
851
955
  "outputHash": "fe1eb5c5"
@@ -869,14 +973,17 @@
869
973
  "GetInstalledAddonsOutput"
870
974
  ],
871
975
  "expose": true,
872
- "implementationHash": "eb77733a41119eb1",
976
+ "scopes": [
977
+ "pikku:console:addons:read"
978
+ ],
979
+ "implementationHash": "d3d4d76a236b471d",
873
980
  "title": "Get Installed Addons",
874
981
  "description": "Returns locally wired addons from pikkuState",
875
982
  "isDirectFunction": false,
876
983
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-installed-addons.function.ts",
877
984
  "exportedName": "getInstalledAddons",
878
- "bodyStart": 37,
879
- "bodyEnd": 52,
985
+ "bodyStart": 38,
986
+ "bodyEnd": 53,
880
987
  "contractHash": "cca7dbfcea9bf8b4",
881
988
  "inputHash": "3bc40965",
882
989
  "outputHash": "0cf9b243"
@@ -902,14 +1009,17 @@
902
1009
  "AddonPackageInfo"
903
1010
  ],
904
1011
  "expose": true,
905
- "implementationHash": "8c4aa9d56ff3351b",
1012
+ "scopes": [
1013
+ "pikku:console:addons:read"
1014
+ ],
1015
+ "implementationHash": "de325d351240eac5",
906
1016
  "title": "Get Installed Addon Package",
907
1017
  "description": "Returns the full details of a locally installed addon by reading from pikkuState and .pikku files",
908
1018
  "isDirectFunction": false,
909
1019
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-installed-package.function.ts",
910
1020
  "exportedName": "getAddonInstalledPackage",
911
- "bodyStart": 15,
912
- "bodyEnd": 131,
1021
+ "bodyStart": 16,
1022
+ "bodyEnd": 132,
913
1023
  "contractHash": "58c00e363a5d1ac3",
914
1024
  "inputHash": "84821b5a",
915
1025
  "outputHash": "00bb35ed"
@@ -933,14 +1043,17 @@
933
1043
  "KnowledgeBundle"
934
1044
  ],
935
1045
  "expose": true,
936
- "implementationHash": "9a8a721711ba9f64",
1046
+ "scopes": [
1047
+ "pikku:console:knowledge:read"
1048
+ ],
1049
+ "implementationHash": "639e588a8bf452e6",
937
1050
  "title": "Get Knowledge Base",
938
1051
  "description": "Reads the project's knowledge/ notes and returns them as a graph — each note with its links in both directions, plus the sections, tag counts, and what `pikku knowledge validate` reports.",
939
1052
  "isDirectFunction": false,
940
1053
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-knowledge.function.ts",
941
1054
  "exportedName": "getKnowledge",
942
- "bodyStart": 11,
943
- "bodyEnd": 16,
1055
+ "bodyStart": 12,
1056
+ "bodyEnd": 17,
944
1057
  "contractHash": "73958fdfa5a3f31c",
945
1058
  "inputHash": "52889dc9",
946
1059
  "outputHash": "8231f303"
@@ -999,14 +1112,17 @@
999
1112
  "GetOpenapiCategoriesOutput"
1000
1113
  ],
1001
1114
  "expose": true,
1002
- "implementationHash": "2ec0b1029e467e37",
1115
+ "scopes": [
1116
+ "pikku:console:addons:read"
1117
+ ],
1118
+ "implementationHash": "e7f0845051abdd79",
1003
1119
  "title": "Get OpenAPI Categories",
1004
1120
  "description": "Category counts across the whole OpenAPI catalogue, for the gallery category rail. Counted by the registry rather than derived from the loaded rows, which would only ever describe the pages already scrolled past.",
1005
1121
  "isDirectFunction": false,
1006
1122
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-openapi-categories.function.ts",
1007
1123
  "exportedName": "getOpenapiCategories",
1008
- "bodyStart": 9,
1009
- "bodyEnd": 9,
1124
+ "bodyStart": 10,
1125
+ "bodyEnd": 10,
1010
1126
  "contractHash": "7fa6f2cf2a77241f",
1011
1127
  "inputHash": "220060aa",
1012
1128
  "outputHash": "c6fc61e2"
@@ -1032,14 +1148,17 @@
1032
1148
  "GetOpenapiDetailOutput"
1033
1149
  ],
1034
1150
  "expose": true,
1035
- "implementationHash": "89b4e3e8f7036c5d",
1151
+ "scopes": [
1152
+ "pikku:console:addons:read"
1153
+ ],
1154
+ "implementationHash": "7727677fa06ce142",
1036
1155
  "title": "Get OpenAPI Detail",
1037
1156
  "description": "Fetches a single OpenAPI spec detail from the fabric registry by name.",
1038
1157
  "isDirectFunction": false,
1039
1158
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-openapi-detail.function.ts",
1040
1159
  "exportedName": "getOpenapiDetail",
1041
- "bodyStart": 27,
1042
- "bodyEnd": 27,
1160
+ "bodyStart": 28,
1161
+ "bodyEnd": 28,
1043
1162
  "contractHash": "ab3426b06a677b45",
1044
1163
  "inputHash": "c91b6280",
1045
1164
  "outputHash": "25720c9f"
@@ -1065,14 +1184,17 @@
1065
1184
  "GetOpenapisOutput"
1066
1185
  ],
1067
1186
  "expose": true,
1068
- "implementationHash": "23ab9d7b888a4da1",
1187
+ "scopes": [
1188
+ "pikku:console:addons:read"
1189
+ ],
1190
+ "implementationHash": "2f5bd7435fe90910",
1069
1191
  "title": "Get OpenAPI Specs",
1070
1192
  "description": "Fetches one page of the OpenAPI catalogue from the fabric registry. Search and category are applied by the registry so they cover every entry, not just the loaded pages.",
1071
1193
  "isDirectFunction": false,
1072
1194
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-openapis.function.ts",
1073
1195
  "exportedName": "getOpenapis",
1074
- "bodyStart": 27,
1075
- "bodyEnd": 27,
1196
+ "bodyStart": 28,
1197
+ "bodyEnd": 28,
1076
1198
  "contractHash": "5f015dbcdade1c8b",
1077
1199
  "inputHash": "f38fbddb",
1078
1200
  "outputHash": "b12c2699"
@@ -1098,14 +1220,17 @@
1098
1220
  "JSONSchema7"
1099
1221
  ],
1100
1222
  "expose": true,
1101
- "implementationHash": "868246c660fefb97",
1223
+ "scopes": [
1224
+ "pikku:console:wirings:read"
1225
+ ],
1226
+ "implementationHash": "b89ec033aef3f557",
1102
1227
  "title": "Get Schema",
1103
1228
  "description": "Given a schemaName string, looks up and returns the corresponding JSONSchema7 definition from metaService.getSchema(). Returns null if the schema does not exist.",
1104
1229
  "isDirectFunction": false,
1105
1230
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-schema.function.ts",
1106
1231
  "exportedName": "getSchema",
1107
- "bodyStart": 13,
1108
- "bodyEnd": 13,
1232
+ "bodyStart": 11,
1233
+ "bodyEnd": 11,
1109
1234
  "contractHash": "d2399b70dccdcda6",
1110
1235
  "inputHash": "bf5548d3",
1111
1236
  "outputHash": "01d4dd0e"
@@ -1158,14 +1283,17 @@
1158
1283
  "SecurityAuditReport"
1159
1284
  ],
1160
1285
  "expose": true,
1161
- "implementationHash": "3abe83813a17a1bb",
1286
+ "scopes": [
1287
+ "pikku:console:security:read"
1288
+ ],
1289
+ "implementationHash": "d9002cfe30ee82d2",
1162
1290
  "title": "Get Security Audit",
1163
1291
  "description": "Returns the dependency security audit (vulnerabilities + available updates) from the generated .pikku/audit.json, or null if `pikku audit` has not been run.",
1164
1292
  "isDirectFunction": false,
1165
1293
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-security-audit.function.ts",
1166
1294
  "exportedName": "getSecurityAudit",
1167
- "bodyStart": 13,
1168
- "bodyEnd": 13,
1295
+ "bodyStart": 11,
1296
+ "bodyEnd": 11,
1169
1297
  "contractHash": "34af3b4ba494005d",
1170
1298
  "inputHash": "f4342c15",
1171
1299
  "outputHash": "b360be24"
@@ -1191,14 +1319,17 @@
1191
1319
  "StateDiff"
1192
1320
  ],
1193
1321
  "expose": true,
1194
- "implementationHash": "dc2de03693128686",
1322
+ "scopes": [
1323
+ "pikku:console:wirings:read"
1324
+ ],
1325
+ "implementationHash": "f012a99ac1cec6fa",
1195
1326
  "title": "Get State Diff",
1196
1327
  "description": "Diff the current project state (ours) against a baseline `.pikku/` directory (typically a worktree at main). Returns added/removed/modified entries per category.",
1197
1328
  "isDirectFunction": false,
1198
1329
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-state-diff.function.ts",
1199
1330
  "exportedName": "getStateDiff",
1200
- "bodyStart": 13,
1201
- "bodyEnd": 16,
1331
+ "bodyStart": 14,
1332
+ "bodyEnd": 17,
1202
1333
  "contractHash": "8518cb87a93a3e1e",
1203
1334
  "inputHash": "ee2d646b",
1204
1335
  "outputHash": "6baa567b"
@@ -1224,14 +1355,17 @@
1224
1355
  "WebhookDeliveryWithAttempts"
1225
1356
  ],
1226
1357
  "expose": true,
1227
- "implementationHash": "78913ef964a87f7e",
1358
+ "scopes": [
1359
+ "pikku:console:wirings:read"
1360
+ ],
1361
+ "implementationHash": "ed7c66b8be8fb842",
1228
1362
  "title": "Get Webhook Delivery",
1229
1363
  "description": "Returns a single webhook delivery with its full attempt history.",
1230
1364
  "isDirectFunction": false,
1231
1365
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-webhook-delivery.function.ts",
1232
1366
  "exportedName": "getWebhookDelivery",
1233
- "bodyStart": 13,
1234
- "bodyEnd": 13,
1367
+ "bodyStart": 14,
1368
+ "bodyEnd": 14,
1235
1369
  "contractHash": "a8510b00844b1cfc",
1236
1370
  "inputHash": "091ce638",
1237
1371
  "outputHash": "4d68b3e3"
@@ -1257,14 +1391,17 @@
1257
1391
  "GetWorkflowMetaByIdOutput"
1258
1392
  ],
1259
1393
  "expose": true,
1260
- "implementationHash": "610083bc870fe3af",
1394
+ "scopes": [
1395
+ "pikku:console:workflows:read"
1396
+ ],
1397
+ "implementationHash": "d97d4706a533ffce",
1261
1398
  "title": "Get Workflow by ID",
1262
1399
  "description": "Given a workflowId string, reads all workflow metadata from wiringService and returns the matching workflow meta object. Returns null if no workflow matches the given ID.",
1263
1400
  "isDirectFunction": false,
1264
1401
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-meta-by-id.function.ts",
1265
1402
  "exportedName": "getWorkflowMetaById",
1266
- "bodyStart": 13,
1267
- "bodyEnd": 14,
1403
+ "bodyStart": 14,
1404
+ "bodyEnd": 15,
1268
1405
  "contractHash": "afb89ef1d31d89e7",
1269
1406
  "inputHash": "f967caf6",
1270
1407
  "outputHash": "88f4df73"
@@ -1290,14 +1427,17 @@
1290
1427
  "GetWorkflowRunHistoryOutput"
1291
1428
  ],
1292
1429
  "expose": true,
1293
- "implementationHash": "4b4ce6f3a25fb0c7",
1430
+ "scopes": [
1431
+ "pikku:console:workflows:read"
1432
+ ],
1433
+ "implementationHash": "d4e1b1251fef0421",
1294
1434
  "title": "Get Workflow Run History",
1295
1435
  "description": "Given a runId, returns the full execution history (state transitions, timestamps, errors) for a workflow run from the Postgres workflow database via workflowRunService.getRunHistory().",
1296
1436
  "isDirectFunction": false,
1297
1437
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-run-history.function.ts",
1298
1438
  "exportedName": "getWorkflowRunHistory",
1299
- "bodyStart": 9,
1300
- "bodyEnd": 9,
1439
+ "bodyStart": 10,
1440
+ "bodyEnd": 10,
1301
1441
  "contractHash": "6e2a5372a06e6c8f",
1302
1442
  "inputHash": "71adef8b",
1303
1443
  "outputHash": "d3a9b834"
@@ -1321,14 +1461,17 @@
1321
1461
  "GetWorkflowRunNamesOutput"
1322
1462
  ],
1323
1463
  "expose": true,
1324
- "implementationHash": "55fb11439545e8f6",
1464
+ "scopes": [
1465
+ "pikku:console:workflows:read"
1466
+ ],
1467
+ "implementationHash": "c0c423f656ddab10",
1325
1468
  "title": "Get Workflow Run Names",
1326
1469
  "description": "Returns an array of distinct workflow names that have at least one run in the Postgres workflow database via workflowRunService.getDistinctWorkflowNames().",
1327
1470
  "isDirectFunction": false,
1328
1471
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-run-names.function.ts",
1329
1472
  "exportedName": "getWorkflowRunNames",
1330
- "bodyStart": 9,
1331
- "bodyEnd": 9,
1473
+ "bodyStart": 10,
1474
+ "bodyEnd": 10,
1332
1475
  "contractHash": "dd70bc8a66eef689",
1333
1476
  "inputHash": "ab5ef55e",
1334
1477
  "outputHash": "f7f40084"
@@ -1354,14 +1497,17 @@
1354
1497
  "GetWorkflowRunStepsOutput"
1355
1498
  ],
1356
1499
  "expose": true,
1357
- "implementationHash": "6dd3abd61dcbfb5c",
1500
+ "scopes": [
1501
+ "pikku:console:workflows:read"
1502
+ ],
1503
+ "implementationHash": "43e66c98506496e8",
1358
1504
  "title": "Get Workflow Run Steps",
1359
1505
  "description": "Given a runId, returns an array of all execution steps for that workflow run from the Postgres workflow database via workflowRunService.getRunSteps(). Returns an empty array if workflowRunService is not configured.",
1360
1506
  "isDirectFunction": false,
1361
1507
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-run-steps.function.ts",
1362
1508
  "exportedName": "getWorkflowRunSteps",
1363
- "bodyStart": 9,
1364
- "bodyEnd": 9,
1509
+ "bodyStart": 10,
1510
+ "bodyEnd": 10,
1365
1511
  "contractHash": "81130856082620bc",
1366
1512
  "inputHash": "6dfc6243",
1367
1513
  "outputHash": "fc160067"
@@ -1387,14 +1533,17 @@
1387
1533
  "GetWorkflowRunOutput"
1388
1534
  ],
1389
1535
  "expose": true,
1390
- "implementationHash": "11f432594142a6e6",
1536
+ "scopes": [
1537
+ "pikku:console:workflows:read"
1538
+ ],
1539
+ "implementationHash": "aba04b83e04b9dfc",
1391
1540
  "title": "Get Workflow Run",
1392
1541
  "description": "Given a runId, fetches a single workflow run from workflowRunService and also fetches all its steps, returning the run object merged with a steps array. Returns null if workflowRunService is not configured or the run is not found.",
1393
1542
  "isDirectFunction": false,
1394
1543
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-run.function.ts",
1395
1544
  "exportedName": "getWorkflowRun",
1396
- "bodyStart": 12,
1397
- "bodyEnd": 15,
1545
+ "bodyStart": 13,
1546
+ "bodyEnd": 16,
1398
1547
  "contractHash": "af261ba6bbd86e3a",
1399
1548
  "inputHash": "4c364da8",
1400
1549
  "outputHash": "0e2eaa53"
@@ -1420,14 +1569,17 @@
1420
1569
  "GetWorkflowRunsOutput"
1421
1570
  ],
1422
1571
  "expose": true,
1423
- "implementationHash": "cd3da712c9261551",
1572
+ "scopes": [
1573
+ "pikku:console:workflows:read"
1574
+ ],
1575
+ "implementationHash": "05200ff18644ba69",
1424
1576
  "title": "Get Workflow Runs",
1425
1577
  "description": "Returns a list of workflow runs from the Postgres workflow database. Accepts optional filters: workflowName, status, limit, and offset for pagination. Returns an empty array if workflowRunService is not configured.",
1426
1578
  "isDirectFunction": false,
1427
1579
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-runs.function.ts",
1428
1580
  "exportedName": "getWorkflowRuns",
1429
- "bodyStart": 12,
1430
- "bodyEnd": 17,
1581
+ "bodyStart": 13,
1582
+ "bodyEnd": 18,
1431
1583
  "contractHash": "6bd77e2897f38f7c",
1432
1584
  "inputHash": "1dce44b4",
1433
1585
  "outputHash": "d91cdf81"
@@ -1453,14 +1605,17 @@
1453
1605
  "GetWorkflowVersionOutput"
1454
1606
  ],
1455
1607
  "expose": true,
1456
- "implementationHash": "fbb727ee24018217",
1608
+ "scopes": [
1609
+ "pikku:console:workflows:read"
1610
+ ],
1611
+ "implementationHash": "a7315d5d9252982d",
1457
1612
  "title": "Get Workflow Version",
1458
1613
  "description": "Given a workflow name and graphHash, looks up the specific workflow version from the Postgres workflow database via workflowRunService.getWorkflowVersion() and returns the workflow graph definition and source code. Returns null if workflowRunService is not configured or the version is not found.",
1459
1614
  "isDirectFunction": false,
1460
1615
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/get-workflow-version.function.ts",
1461
1616
  "exportedName": "getWorkflowVersion",
1462
- "bodyStart": 12,
1463
- "bodyEnd": 15,
1617
+ "bodyStart": 13,
1618
+ "bodyEnd": 16,
1464
1619
  "contractHash": "a1afa3245af186ce",
1465
1620
  "inputHash": "4733674a",
1466
1621
  "outputHash": "6b9145b1"
@@ -1474,7 +1629,8 @@
1474
1629
  "services": {
1475
1630
  "optimized": true,
1476
1631
  "services": [
1477
- "metaService"
1632
+ "metaService",
1633
+ "addonReadinessService"
1478
1634
  ]
1479
1635
  },
1480
1636
  "inputSchemaName": "InstallAddonInput",
@@ -1488,19 +1644,19 @@
1488
1644
  "expose": true,
1489
1645
  "auth": true,
1490
1646
  "scopes": [
1491
- "admin"
1647
+ "pikku:console:addons:install"
1492
1648
  ],
1493
- "implementationHash": "f968dd4687898c9c",
1649
+ "implementationHash": "28875414bb4f9cc0",
1494
1650
  "title": "Install Addon",
1495
1651
  "description": "Installs a community addon package and creates the wiring file. Requires an admin session.",
1496
1652
  "isDirectFunction": false,
1497
1653
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/install-addon.function.ts",
1498
1654
  "exportedName": "installAddon",
1499
- "bodyStart": 33,
1500
- "bodyEnd": 118,
1501
- "contractHash": "150c3c7624b8bd6d",
1655
+ "bodyStart": 46,
1656
+ "bodyEnd": 142,
1657
+ "contractHash": "847ae3c5935119c4",
1502
1658
  "inputHash": "b0a5b0d2",
1503
- "outputHash": "2d935d9a"
1659
+ "outputHash": "2b68ff64"
1504
1660
  },
1505
1661
  "installOpenapiAddon": {
1506
1662
  "pikkuFuncId": "installOpenapiAddon",
@@ -1525,9 +1681,9 @@
1525
1681
  "expose": true,
1526
1682
  "auth": true,
1527
1683
  "scopes": [
1528
- "admin"
1684
+ "pikku:console:addons:install"
1529
1685
  ],
1530
- "implementationHash": "c2dbae6855632081",
1686
+ "implementationHash": "a06c894a64ce0b68",
1531
1687
  "title": "Install OpenAPI Addon",
1532
1688
  "description": "Generates an addon from an OpenAPI spec, installs it into the workspace, and wires it up.",
1533
1689
  "isDirectFunction": false,
@@ -1560,14 +1716,17 @@
1560
1716
  "ListWebhookDeliveriesOutput"
1561
1717
  ],
1562
1718
  "expose": true,
1563
- "implementationHash": "6bcf6126fbf6336d",
1719
+ "scopes": [
1720
+ "pikku:console:wirings:read"
1721
+ ],
1722
+ "implementationHash": "02598731759a6a98",
1564
1723
  "title": "List Webhook Deliveries",
1565
1724
  "description": "Lists outgoing webhook deliveries (most recent first), optionally scoped to an organization.",
1566
1725
  "isDirectFunction": false,
1567
1726
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/list-webhook-deliveries.function.ts",
1568
1727
  "exportedName": "listWebhookDeliveries",
1569
- "bodyStart": 13,
1570
- "bodyEnd": 13,
1728
+ "bodyStart": 14,
1729
+ "bodyEnd": 14,
1571
1730
  "contractHash": "a4aa94d348d78afc",
1572
1731
  "inputHash": "c0b15c7e",
1573
1732
  "outputHash": "f679e184"
@@ -1622,14 +1781,17 @@
1622
1781
  "ReadAgentSourceOutput"
1623
1782
  ],
1624
1783
  "expose": true,
1625
- "implementationHash": "d12de0c2a94c7e5b",
1784
+ "scopes": [
1785
+ "pikku:console:agents:read"
1786
+ ],
1787
+ "implementationHash": "4bbbb677738ca28b",
1626
1788
  "title": "Read Agent Source",
1627
1789
  "description": "Reads the source code of a pikku AI agent definition and returns its config properties.",
1628
1790
  "isDirectFunction": false,
1629
1791
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/read-agent-source.function.ts",
1630
1792
  "exportedName": "readAgentSource",
1631
- "bodyStart": 13,
1632
- "bodyEnd": 18,
1793
+ "bodyStart": 14,
1794
+ "bodyEnd": 19,
1633
1795
  "contractHash": "9ce87ee2b8742dfd",
1634
1796
  "inputHash": "83d575db",
1635
1797
  "outputHash": "f79bf1de"
@@ -1655,14 +1817,17 @@
1655
1817
  "ReadFunctionBodyOutput"
1656
1818
  ],
1657
1819
  "expose": true,
1658
- "implementationHash": "f11496021f94ed0d",
1820
+ "scopes": [
1821
+ "pikku:console:wirings:read"
1822
+ ],
1823
+ "implementationHash": "1d15d5280422d06f",
1659
1824
  "title": "Read Function Body",
1660
1825
  "description": "Reads the function body (the func: async (...) => { ... } part) from a pikku function definition.",
1661
1826
  "isDirectFunction": false,
1662
1827
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/read-function-body.function.ts",
1663
1828
  "exportedName": "readFunctionBody",
1664
- "bodyStart": 13,
1665
- "bodyEnd": 22,
1829
+ "bodyStart": 14,
1830
+ "bodyEnd": 23,
1666
1831
  "contractHash": "a2287f39c1eca38b",
1667
1832
  "inputHash": "3db64982",
1668
1833
  "outputHash": "3e345ceb"
@@ -1688,14 +1853,17 @@
1688
1853
  "ReadFunctionSourceOutput"
1689
1854
  ],
1690
1855
  "expose": true,
1691
- "implementationHash": "a534d953ed940622",
1856
+ "scopes": [
1857
+ "pikku:console:wirings:read"
1858
+ ],
1859
+ "implementationHash": "efc15e41d75eeccd",
1692
1860
  "title": "Read Function Source",
1693
1861
  "description": "Reads the source code of a pikku function definition and returns its config properties and function body.",
1694
1862
  "isDirectFunction": false,
1695
1863
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/read-function-source.function.ts",
1696
1864
  "exportedName": "readFunctionSource",
1697
- "bodyStart": 13,
1698
- "bodyEnd": 18,
1865
+ "bodyStart": 14,
1866
+ "bodyEnd": 19,
1699
1867
  "contractHash": "2bbd984e00ace4ed",
1700
1868
  "inputHash": "de816393",
1701
1869
  "outputHash": "3689cc09"
@@ -1721,14 +1889,17 @@
1721
1889
  "RenderEmailPreviewOutput"
1722
1890
  ],
1723
1891
  "expose": true,
1724
- "implementationHash": "c17cf7a14f41b9f6",
1892
+ "scopes": [
1893
+ "pikku:console:emails:read"
1894
+ ],
1895
+ "implementationHash": "4c92ba0987ccf5c0",
1725
1896
  "title": "Render Email Preview",
1726
1897
  "description": "Renders an email template preview from emailTemplatesDir using a locale and variable payload.",
1727
1898
  "isDirectFunction": false,
1728
1899
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/render-email-preview.function.ts",
1729
1900
  "exportedName": "renderEmailPreview",
1730
- "bodyStart": 44,
1731
- "bodyEnd": 119,
1901
+ "bodyStart": 45,
1902
+ "bodyEnd": 120,
1732
1903
  "contractHash": "5c0010a01eac05df",
1733
1904
  "inputHash": "8bb3bf2b",
1734
1905
  "outputHash": "ccb4573c"
@@ -1752,14 +1923,17 @@
1752
1923
  "SecurityAuditReport"
1753
1924
  ],
1754
1925
  "expose": true,
1755
- "implementationHash": "1f6bfefb68cebcfe",
1926
+ "scopes": [
1927
+ "pikku:console:security:run"
1928
+ ],
1929
+ "implementationHash": "c344cd6fae3430ec",
1756
1930
  "title": "Run Security Audit",
1757
1931
  "description": "Runs `pikku audit --outdated`, regenerating .pikku/audit.json, and returns the fresh report. Mirrors the Run Tests action.",
1758
1932
  "isDirectFunction": false,
1759
1933
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/run-security-audit.function.ts",
1760
1934
  "exportedName": "runSecurityAudit",
1761
- "bodyStart": 15,
1762
- "bodyEnd": 23,
1935
+ "bodyStart": 13,
1936
+ "bodyEnd": 21,
1763
1937
  "contractHash": "6349c4e3d5494a15",
1764
1938
  "inputHash": "b49cd137",
1765
1939
  "outputHash": "1cca48c8"
@@ -1792,11 +1966,11 @@
1792
1966
  ],
1793
1967
  "expose": true,
1794
1968
  "scopes": [
1795
- "pikku:scopes:manage"
1969
+ "pikku:console:scopes:manage"
1796
1970
  ],
1797
- "implementationHash": "002c9dc1e8a4257e",
1971
+ "implementationHash": "286cf4eceeb2fa5e",
1798
1972
  "title": "Grant Scope",
1799
- "description": "Grants a scope directly to a user, outside of any role. Takes effect on their next request no re-login.",
1973
+ "description": "Grants a scope directly to a user, outside of any role. Takes effect on their next request, with no re-login — unless mapSession sets scopes itself, which is authoritative, and then this grant never applies.",
1800
1974
  "isDirectFunction": false,
1801
1975
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/scope-add-scope-to-user.function.ts",
1802
1976
  "exportedName": "scopeAddScopeToUser",
@@ -1834,11 +2008,11 @@
1834
2008
  ],
1835
2009
  "expose": true,
1836
2010
  "scopes": [
1837
- "pikku:scopes:manage"
2011
+ "pikku:console:scopes:manage"
1838
2012
  ],
1839
- "implementationHash": "e3220612ac3b71f0",
2013
+ "implementationHash": "57a3793fa5eed6b3",
1840
2014
  "title": "Grant Role",
1841
- "description": "Grants a role to a user. Takes effect on their next request no re-login.",
2015
+ "description": "Grants a role to a user. Takes effect on their next request, with no re-login — unless mapSession sets scopes itself, which is authoritative, and then this grant never applies.",
1842
2016
  "isDirectFunction": false,
1843
2017
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/scope-add-user-to-role.function.ts",
1844
2018
  "exportedName": "scopeAddUserToRole",
@@ -1870,9 +2044,9 @@
1870
2044
  ],
1871
2045
  "expose": true,
1872
2046
  "scopes": [
1873
- "pikku:scopes:manage"
2047
+ "pikku:console:scopes:manage"
1874
2048
  ],
1875
- "implementationHash": "45f25f430b016391",
2049
+ "implementationHash": "d40d98e1c6ca94d7",
1876
2050
  "title": "Create Role",
1877
2051
  "description": "Creates a role granting the given scopes.",
1878
2052
  "isDirectFunction": false,
@@ -1906,9 +2080,9 @@
1906
2080
  ],
1907
2081
  "expose": true,
1908
2082
  "scopes": [
1909
- "pikku:scopes:manage"
2083
+ "pikku:console:scopes:manage"
1910
2084
  ],
1911
- "implementationHash": "f9516dbb94675ccf",
2085
+ "implementationHash": "4d410db3bd62260f",
1912
2086
  "title": "Delete Role",
1913
2087
  "description": "Deletes a role, revoking it from every user who holds it.",
1914
2088
  "isDirectFunction": false,
@@ -1940,9 +2114,9 @@
1940
2114
  ],
1941
2115
  "expose": true,
1942
2116
  "scopes": [
1943
- "pikku:scopes:read"
2117
+ "pikku:console:scopes:read"
1944
2118
  ],
1945
- "implementationHash": "5e78c244ddf2cfc9",
2119
+ "implementationHash": "e4248392c9cd9079",
1946
2120
  "title": "List Declared Scopes",
1947
2121
  "description": "Lists the scope vocabulary a role can be composed from, flagging any that are no longer declared in code.",
1948
2122
  "isDirectFunction": false,
@@ -1974,9 +2148,9 @@
1974
2148
  ],
1975
2149
  "expose": true,
1976
2150
  "scopes": [
1977
- "pikku:scopes:read"
2151
+ "pikku:console:scopes:read"
1978
2152
  ],
1979
- "implementationHash": "33c3e6c254694e00",
2153
+ "implementationHash": "b86216d77f9aee60",
1980
2154
  "title": "List Roles",
1981
2155
  "description": "Lists every role and the scopes it grants.",
1982
2156
  "isDirectFunction": false,
@@ -2010,9 +2184,9 @@
2010
2184
  ],
2011
2185
  "expose": true,
2012
2186
  "scopes": [
2013
- "pikku:scopes:read"
2187
+ "pikku:console:scopes:read"
2014
2188
  ],
2015
- "implementationHash": "f2324450cb109255",
2189
+ "implementationHash": "87ec363bee5d597d",
2016
2190
  "title": "List User Roles",
2017
2191
  "description": "Lists the roles a user holds, the scopes granted to them directly, and the full set those resolve to.",
2018
2192
  "isDirectFunction": false,
@@ -2046,11 +2220,11 @@
2046
2220
  ],
2047
2221
  "expose": true,
2048
2222
  "scopes": [
2049
- "pikku:scopes:manage"
2223
+ "pikku:console:scopes:manage"
2050
2224
  ],
2051
- "implementationHash": "12f59a9c18110346",
2225
+ "implementationHash": "8cd16a78812cdd50",
2052
2226
  "title": "Revoke Scope",
2053
- "description": "Revokes a directly-granted scope from a user. Takes effect on their next request no re-login.",
2227
+ "description": "Revokes a directly-granted scope from a user. Takes effect on their next request, with no re-login — unless mapSession sets scopes itself, which is authoritative, and then this revoke never applies.",
2054
2228
  "isDirectFunction": false,
2055
2229
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/scope-remove-scope-from-user.function.ts",
2056
2230
  "exportedName": "scopeRemoveScopeFromUser",
@@ -2082,11 +2256,11 @@
2082
2256
  ],
2083
2257
  "expose": true,
2084
2258
  "scopes": [
2085
- "pikku:scopes:manage"
2259
+ "pikku:console:scopes:manage"
2086
2260
  ],
2087
- "implementationHash": "587c657823eb1305",
2261
+ "implementationHash": "ab21785ce8424632",
2088
2262
  "title": "Revoke Role",
2089
- "description": "Revokes a role from a user. Takes effect on their next request no re-login.",
2263
+ "description": "Revokes a role from a user. Takes effect on their next request, with no re-login — unless mapSession sets scopes itself, which is authoritative, and then this revoke never applies.",
2090
2264
  "isDirectFunction": false,
2091
2265
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/scope-remove-user-from-role.function.ts",
2092
2266
  "exportedName": "scopeRemoveUserFromRole",
@@ -2118,11 +2292,11 @@
2118
2292
  ],
2119
2293
  "expose": true,
2120
2294
  "scopes": [
2121
- "pikku:scopes:manage"
2295
+ "pikku:console:scopes:manage"
2122
2296
  ],
2123
- "implementationHash": "532b53bf687f51fb",
2297
+ "implementationHash": "896dade55f54a40f",
2124
2298
  "title": "Set Role Scopes",
2125
- "description": "Replaces the scopes a role grants. Users holding it see the change on their next request.",
2299
+ "description": "Replaces the scopes a role grants. Users holding it see the change on their next request — unless mapSession sets scopes itself, which is authoritative, and then the change never reaches them.",
2126
2300
  "isDirectFunction": false,
2127
2301
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/scope-set-role-scopes.function.ts",
2128
2302
  "exportedName": "scopeSetRoleScopes",
@@ -2288,14 +2462,17 @@
2288
2462
  "UpdateAgentConfigOutput"
2289
2463
  ],
2290
2464
  "expose": true,
2291
- "implementationHash": "cdf5448c905d79af",
2465
+ "scopes": [
2466
+ "pikku:console:agents:manage"
2467
+ ],
2468
+ "implementationHash": "965fc9a318f9cf83",
2292
2469
  "title": "Update Agent Config",
2293
2470
  "description": "Updates the config properties of a pikku AI agent definition in source code and triggers a rebuild.",
2294
2471
  "isDirectFunction": false,
2295
2472
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/update-agent-config.function.ts",
2296
2473
  "exportedName": "updateAgentConfig",
2297
- "bodyStart": 18,
2298
- "bodyEnd": 24,
2474
+ "bodyStart": 19,
2475
+ "bodyEnd": 25,
2299
2476
  "contractHash": "7914f6c21b43fab6",
2300
2477
  "inputHash": "bf627fe1",
2301
2478
  "outputHash": "bbec71d0"
@@ -2321,14 +2498,17 @@
2321
2498
  "SecurityAuditReport"
2322
2499
  ],
2323
2500
  "expose": true,
2324
- "implementationHash": "503840d691b65285",
2501
+ "scopes": [
2502
+ "pikku:console:code:write"
2503
+ ],
2504
+ "implementationHash": "553a9f8c980bcba0",
2325
2505
  "title": "Update Dependency",
2326
2506
  "description": "Bumps a dependency to the given version in package.json, runs `bun install`, re-runs `pikku audit`, and returns the refreshed report. The mechanical (free) remediation — it does NOT run the app or verify anything still works.",
2327
2507
  "isDirectFunction": false,
2328
2508
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/update-dependency.function.ts",
2329
2509
  "exportedName": "updateDependency",
2330
- "bodyStart": 55,
2331
- "bodyEnd": 80,
2510
+ "bodyStart": 62,
2511
+ "bodyEnd": 87,
2332
2512
  "contractHash": "ee4066b2bd89d13b",
2333
2513
  "inputHash": "e06e601c",
2334
2514
  "outputHash": "99d1bee1"
@@ -2355,14 +2535,17 @@
2355
2535
  "UpdateEmailTemplateOutput"
2356
2536
  ],
2357
2537
  "expose": true,
2358
- "implementationHash": "4a2441228957cd55",
2538
+ "scopes": [
2539
+ "pikku:console:emails:write"
2540
+ ],
2541
+ "implementationHash": "8d1d2db62292b01b",
2359
2542
  "title": "Update Email Template",
2360
2543
  "description": "Overwrites an email template HTML source file (templates/<name>.html) so small edits can be made from the console.",
2361
2544
  "isDirectFunction": false,
2362
2545
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/update-email-template.function.ts",
2363
2546
  "exportedName": "updateEmailTemplate",
2364
- "bodyStart": 17,
2365
- "bodyEnd": 36,
2547
+ "bodyStart": 18,
2548
+ "bodyEnd": 37,
2366
2549
  "contractHash": "46dfb6154b42f5ab",
2367
2550
  "inputHash": "906d8ace",
2368
2551
  "outputHash": "70750a6d"
@@ -2388,14 +2571,17 @@
2388
2571
  "UpdateFunctionBodyOutput"
2389
2572
  ],
2390
2573
  "expose": true,
2391
- "implementationHash": "3001bc333b44c279",
2574
+ "scopes": [
2575
+ "pikku:console:code:write"
2576
+ ],
2577
+ "implementationHash": "5171a0f668f82530",
2392
2578
  "title": "Update Function Body",
2393
2579
  "description": "Replaces the function body of a pikku function definition in source code and triggers a rebuild.",
2394
2580
  "isDirectFunction": false,
2395
2581
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/update-function-body.function.ts",
2396
2582
  "exportedName": "updateFunctionBody",
2397
- "bodyStart": 17,
2398
- "bodyEnd": 23,
2583
+ "bodyStart": 18,
2584
+ "bodyEnd": 24,
2399
2585
  "contractHash": "9dc1d4a5073b638e",
2400
2586
  "inputHash": "427fe696",
2401
2587
  "outputHash": "b13cf220"
@@ -2421,14 +2607,17 @@
2421
2607
  "UpdateFunctionConfigOutput"
2422
2608
  ],
2423
2609
  "expose": true,
2424
- "implementationHash": "48e28b2888b17755",
2610
+ "scopes": [
2611
+ "pikku:console:code:write"
2612
+ ],
2613
+ "implementationHash": "d8220f348e91c2a2",
2425
2614
  "title": "Update Function Config",
2426
2615
  "description": "Updates the config properties of a pikku function definition in source code and triggers a rebuild.",
2427
2616
  "isDirectFunction": false,
2428
2617
  "sourceFile": "/home/runner/work/pikku/pikku/packages/addon/pikku-console/src/functions/update-function-config.function.ts",
2429
2618
  "exportedName": "updateFunctionConfig",
2430
- "bodyStart": 18,
2431
- "bodyEnd": 28,
2619
+ "bodyStart": 19,
2620
+ "bodyEnd": 29,
2432
2621
  "contractHash": "2e204aca2e325395",
2433
2622
  "inputHash": "9cdb162e",
2434
2623
  "outputHash": "223c95b6"