@pikku/addon-console 0.12.38 → 0.12.41

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 (535) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +1 -1
  2. package/dist/.pikku/addon/pikku-addon-types.gen.js +1 -1
  3. package/dist/.pikku/addon/pikku-package.gen.js +4 -3
  4. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  5. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +1 -1
  6. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -2
  7. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  8. package/dist/.pikku/agent/pikku-agent-types.gen.js +3 -0
  9. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  10. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts +2 -0
  11. package/dist/.pikku/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  12. package/dist/.pikku/agent/pikku-model-aliases.gen.js +6 -0
  13. package/dist/.pikku/agent/pikku-model-aliases.gen.js.map +1 -0
  14. package/dist/.pikku/agent/pikku-scorer-names.gen.d.ts +8 -0
  15. package/dist/.pikku/auth/auth.types.d.ts +1 -1
  16. package/dist/.pikku/auth/auth.types.js +1 -1
  17. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  18. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  19. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.d.ts +10 -20
  21. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  22. package/dist/.pikku/function/pikku-function-types.gen.js +2 -2
  23. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  24. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +521 -198
  25. package/dist/.pikku/function/pikku-functions-meta.gen.js +2 -2
  26. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -1
  27. package/dist/.pikku/function/pikku-functions-meta.gen.json +368 -92
  28. package/dist/.pikku/function/pikku-functions.gen.js +11 -1
  29. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  30. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  31. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  32. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  33. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  34. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts +1 -1
  35. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js +1 -1
  36. package/dist/.pikku/pikku-bootstrap.gen.d.ts +2 -1
  37. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  38. package/dist/.pikku/pikku-bootstrap.gen.js +2 -1
  39. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  40. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  41. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  42. package/dist/.pikku/pikku-services.gen.d.ts +5 -4
  43. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  44. package/dist/.pikku/pikku-services.gen.js +3 -2
  45. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  46. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  47. package/dist/.pikku/pikku-types.gen.js +1 -1
  48. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  49. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  50. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +24 -14
  51. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +24 -14
  52. package/dist/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +19 -14
  53. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +2 -2
  54. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -1
  55. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +5 -0
  56. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js +2 -2
  57. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -1
  58. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +1 -1
  59. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js +2 -2
  60. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -1
  61. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +1 -1
  62. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +1 -1
  63. package/dist/.pikku/scenarios/schemas/register.gen.js +1 -1
  64. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  65. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  66. package/dist/.pikku/schemas/register.gen.js +19 -1
  67. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  68. package/dist/.pikku/schemas/schemas/AddonMetaPage.schema.json +1 -1
  69. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
  70. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
  71. package/dist/.pikku/schemas/schemas/GetAgentRunScoresInput.schema.json +1 -0
  72. package/dist/.pikku/schemas/schemas/GetAgentRunScoresOutput.schema.json +1 -0
  73. package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
  74. package/dist/.pikku/schemas/schemas/GetScorersOutput.schema.json +1 -0
  75. package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +1 -1
  76. package/dist/.pikku/schemas/schemas/KnowledgeBundle.schema.json +1 -1
  77. package/dist/.pikku/schemas/schemas/SecretGetInput.schema.json +1 -0
  78. package/dist/.pikku/schemas/schemas/SecretGetOutput.schema.json +1 -0
  79. package/dist/.pikku/schemas/schemas/SecretHasInput.schema.json +1 -0
  80. package/dist/.pikku/schemas/schemas/SecretHasOutput.schema.json +1 -0
  81. package/dist/.pikku/schemas/schemas/SecretSetInput.schema.json +1 -0
  82. package/dist/.pikku/schemas/schemas/SecretSetOutput.schema.json +1 -0
  83. package/dist/.pikku/scopes/pikku-personas.gen.js +1 -1
  84. package/dist/.pikku/scopes/pikku-roles.gen.d.ts +1 -1
  85. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +1 -1
  86. package/dist/.pikku/scopes/pikku-scope-types.gen.js +1 -1
  87. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +140 -14
  88. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts +2 -2
  89. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +1 -1
  90. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +1 -1
  91. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  92. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  93. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  94. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  95. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  96. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  97. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  98. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  99. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  100. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  101. package/dist/.pikku/workflow/pikku-personas.gen.d.ts +2 -1
  102. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +1 -1
  103. package/dist/.pikku/workflow/pikku-personas.gen.js +1 -1
  104. package/dist/.pikku/workflow/pikku-personas.gen.js.map +1 -1
  105. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  106. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  107. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +20 -11
  108. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  109. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  110. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  111. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
  112. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  113. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  114. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  115. package/dist/src/functions/agent-credential-check.function.d.ts +1 -1
  116. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -1
  117. package/dist/src/functions/agent-credential-check.function.js +2 -1
  118. package/dist/src/functions/agent-credential-check.function.js.map +1 -1
  119. package/dist/src/functions/credential-delete.function.d.ts +1 -1
  120. package/dist/src/functions/credential-delete.function.d.ts.map +1 -1
  121. package/dist/src/functions/credential-delete.function.js +1 -0
  122. package/dist/src/functions/credential-delete.function.js.map +1 -1
  123. package/dist/src/functions/credential-get.function.d.ts +1 -1
  124. package/dist/src/functions/credential-get.function.d.ts.map +1 -1
  125. package/dist/src/functions/credential-get.function.js +1 -0
  126. package/dist/src/functions/credential-get.function.js.map +1 -1
  127. package/dist/src/functions/credential-list-users.function.d.ts +1 -1
  128. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -1
  129. package/dist/src/functions/credential-list-users.function.js +1 -0
  130. package/dist/src/functions/credential-list-users.function.js.map +1 -1
  131. package/dist/src/functions/credential-set.function.d.ts +1 -1
  132. package/dist/src/functions/credential-set.function.d.ts.map +1 -1
  133. package/dist/src/functions/credential-set.function.js +1 -0
  134. package/dist/src/functions/credential-set.function.js.map +1 -1
  135. package/dist/src/functions/credential-status.function.d.ts +1 -1
  136. package/dist/src/functions/credential-status.function.d.ts.map +1 -1
  137. package/dist/src/functions/credential-status.function.js +1 -0
  138. package/dist/src/functions/credential-status.function.js.map +1 -1
  139. package/dist/src/functions/credential-users.function.d.ts +1 -1
  140. package/dist/src/functions/credential-users.function.d.ts.map +1 -1
  141. package/dist/src/functions/credential-users.function.js +1 -0
  142. package/dist/src/functions/credential-users.function.js.map +1 -1
  143. package/dist/src/functions/delete-agent-thread.function.d.ts +1 -1
  144. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  145. package/dist/src/functions/delete-agent-thread.function.js +1 -0
  146. package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
  147. package/dist/src/functions/delete-workflow-run.function.d.ts +1 -1
  148. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  149. package/dist/src/functions/delete-workflow-run.function.js +1 -0
  150. package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
  151. package/dist/src/functions/get-addon-categories.function.d.ts +1 -1
  152. package/dist/src/functions/get-addon-categories.function.d.ts.map +1 -1
  153. package/dist/src/functions/get-addon-categories.function.js +1 -0
  154. package/dist/src/functions/get-addon-categories.function.js.map +1 -1
  155. package/dist/src/functions/get-addon-icon.function.d.ts +1 -1
  156. package/dist/src/functions/get-addon-icon.function.d.ts.map +1 -1
  157. package/dist/src/functions/get-addon-icon.function.js +1 -0
  158. package/dist/src/functions/get-addon-icon.function.js.map +1 -1
  159. package/dist/src/functions/get-addon-instances.function.d.ts +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 +2 -1
  162. package/dist/src/functions/get-addon-instances.function.js.map +1 -1
  163. package/dist/src/functions/get-addon-meta.function.d.ts +1 -1
  164. package/dist/src/functions/get-addon-meta.function.d.ts.map +1 -1
  165. package/dist/src/functions/get-addon-meta.function.js +1 -0
  166. package/dist/src/functions/get-addon-meta.function.js.map +1 -1
  167. package/dist/src/functions/get-addon-package.function.d.ts +1 -1
  168. package/dist/src/functions/get-addon-package.function.d.ts.map +1 -1
  169. package/dist/src/functions/get-addon-package.function.js +1 -0
  170. package/dist/src/functions/get-addon-package.function.js.map +1 -1
  171. package/dist/src/functions/get-agent-run-scores.function.d.ts +8 -0
  172. package/dist/src/functions/get-agent-run-scores.function.d.ts.map +1 -0
  173. package/dist/src/functions/get-agent-run-scores.function.js +24 -0
  174. package/dist/src/functions/get-agent-run-scores.function.js.map +1 -0
  175. package/dist/src/functions/get-agent-run-scores.function.test.d.ts +2 -0
  176. package/dist/src/functions/get-agent-run-scores.function.test.d.ts.map +1 -0
  177. package/dist/src/functions/get-agent-run-scores.function.test.js +34 -0
  178. package/dist/src/functions/get-agent-run-scores.function.test.js.map +1 -0
  179. package/dist/src/functions/get-agent-thread-messages.function.d.ts +1 -1
  180. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  181. package/dist/src/functions/get-agent-thread-messages.function.js +1 -0
  182. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
  183. package/dist/src/functions/get-agent-thread-runs.function.d.ts +1 -1
  184. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  185. package/dist/src/functions/get-agent-thread-runs.function.js +15 -3
  186. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  187. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts +2 -0
  188. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts.map +1 -0
  189. package/dist/src/functions/get-agent-thread-runs.function.test.js +27 -0
  190. package/dist/src/functions/get-agent-thread-runs.function.test.js.map +1 -0
  191. package/dist/src/functions/get-agent-threads.function.d.ts +1 -1
  192. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  193. package/dist/src/functions/get-agent-threads.function.js +1 -0
  194. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  195. package/dist/src/functions/get-agent-threads.function.test.js +10 -2
  196. package/dist/src/functions/get-agent-threads.function.test.js.map +1 -1
  197. package/dist/src/functions/get-all-meta.function.d.ts +1 -1
  198. package/dist/src/functions/get-all-meta.function.d.ts.map +1 -1
  199. package/dist/src/functions/get-all-meta.function.js +1 -0
  200. package/dist/src/functions/get-all-meta.function.js.map +1 -1
  201. package/dist/src/functions/get-audit-filters.function.d.ts +1 -1
  202. package/dist/src/functions/get-audit-filters.function.d.ts.map +1 -1
  203. package/dist/src/functions/get-audit-filters.function.js +1 -1
  204. package/dist/src/functions/get-audit-filters.function.js.map +1 -1
  205. package/dist/src/functions/get-audits.function.d.ts +1 -1
  206. package/dist/src/functions/get-audits.function.d.ts.map +1 -1
  207. package/dist/src/functions/get-audits.function.js +1 -1
  208. package/dist/src/functions/get-audits.function.js.map +1 -1
  209. package/dist/src/functions/get-auth-providers.function.d.ts +1 -1
  210. package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -1
  211. package/dist/src/functions/get-auth-providers.function.js +1 -0
  212. package/dist/src/functions/get-auth-providers.function.js.map +1 -1
  213. package/dist/src/functions/get-channel-snippets.function.d.ts +1 -1
  214. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  215. package/dist/src/functions/get-channel-snippets.function.js +1 -0
  216. package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
  217. package/dist/src/functions/get-db-schema.function.d.ts +1 -1
  218. package/dist/src/functions/get-db-schema.function.d.ts.map +1 -1
  219. package/dist/src/functions/get-db-schema.function.js +1 -0
  220. package/dist/src/functions/get-db-schema.function.js.map +1 -1
  221. package/dist/src/functions/get-functions-meta.function.d.ts +1 -1
  222. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  223. package/dist/src/functions/get-functions-meta.function.js +1 -0
  224. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  225. package/dist/src/functions/get-installed-addons.function.d.ts +1 -1
  226. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  227. package/dist/src/functions/get-installed-addons.function.js +2 -1
  228. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  229. package/dist/src/functions/get-installed-package.function.d.ts +1 -1
  230. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  231. package/dist/src/functions/get-installed-package.function.js +2 -1
  232. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  233. package/dist/src/functions/get-knowledge.function.d.ts +1 -1
  234. package/dist/src/functions/get-knowledge.function.d.ts.map +1 -1
  235. package/dist/src/functions/get-knowledge.function.js +1 -0
  236. package/dist/src/functions/get-knowledge.function.js.map +1 -1
  237. package/dist/src/functions/get-my-access.function.d.ts +1 -1
  238. package/dist/src/functions/get-my-access.function.d.ts.map +1 -1
  239. package/dist/src/functions/get-openapi-categories.function.d.ts +1 -1
  240. package/dist/src/functions/get-openapi-categories.function.d.ts.map +1 -1
  241. package/dist/src/functions/get-openapi-categories.function.js +1 -0
  242. package/dist/src/functions/get-openapi-categories.function.js.map +1 -1
  243. package/dist/src/functions/get-openapi-detail.function.d.ts +1 -1
  244. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -1
  245. package/dist/src/functions/get-openapi-detail.function.js +1 -0
  246. package/dist/src/functions/get-openapi-detail.function.js.map +1 -1
  247. package/dist/src/functions/get-openapis.function.d.ts +1 -1
  248. package/dist/src/functions/get-openapis.function.d.ts.map +1 -1
  249. package/dist/src/functions/get-openapis.function.js +1 -0
  250. package/dist/src/functions/get-openapis.function.js.map +1 -1
  251. package/dist/src/functions/get-schema.function.d.ts +1 -1
  252. package/dist/src/functions/get-schema.function.d.ts.map +1 -1
  253. package/dist/src/functions/get-schema.function.js +1 -0
  254. package/dist/src/functions/get-schema.function.js.map +1 -1
  255. package/dist/src/functions/get-scorers.function.d.ts +13 -0
  256. package/dist/src/functions/get-scorers.function.d.ts.map +1 -0
  257. package/dist/src/functions/get-scorers.function.js +25 -0
  258. package/dist/src/functions/get-scorers.function.js.map +1 -0
  259. package/dist/src/functions/get-security-audit.function.d.ts +1 -1
  260. package/dist/src/functions/get-security-audit.function.d.ts.map +1 -1
  261. package/dist/src/functions/get-security-audit.function.js +1 -0
  262. package/dist/src/functions/get-security-audit.function.js.map +1 -1
  263. package/dist/src/functions/get-state-diff.function.d.ts +1 -1
  264. package/dist/src/functions/get-state-diff.function.d.ts.map +1 -1
  265. package/dist/src/functions/get-state-diff.function.js +1 -0
  266. package/dist/src/functions/get-state-diff.function.js.map +1 -1
  267. package/dist/src/functions/get-webhook-delivery.function.d.ts +1 -1
  268. package/dist/src/functions/get-webhook-delivery.function.d.ts.map +1 -1
  269. package/dist/src/functions/get-webhook-delivery.function.js +1 -0
  270. package/dist/src/functions/get-webhook-delivery.function.js.map +1 -1
  271. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +1 -1
  272. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  273. package/dist/src/functions/get-workflow-meta-by-id.function.js +1 -0
  274. package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
  275. package/dist/src/functions/get-workflow-run-history.function.d.ts +1 -1
  276. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  277. package/dist/src/functions/get-workflow-run-history.function.js +1 -0
  278. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
  279. package/dist/src/functions/get-workflow-run-names.function.d.ts +1 -1
  280. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  281. package/dist/src/functions/get-workflow-run-names.function.js +1 -0
  282. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
  283. package/dist/src/functions/get-workflow-run-steps.function.d.ts +1 -1
  284. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  285. package/dist/src/functions/get-workflow-run-steps.function.js +1 -0
  286. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
  287. package/dist/src/functions/get-workflow-run.function.d.ts +1 -1
  288. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  289. package/dist/src/functions/get-workflow-run.function.js +1 -0
  290. package/dist/src/functions/get-workflow-run.function.js.map +1 -1
  291. package/dist/src/functions/get-workflow-runs.function.d.ts +1 -1
  292. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  293. package/dist/src/functions/get-workflow-runs.function.js +1 -0
  294. package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
  295. package/dist/src/functions/get-workflow-version.function.d.ts +1 -1
  296. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  297. package/dist/src/functions/get-workflow-version.function.js +1 -0
  298. package/dist/src/functions/get-workflow-version.function.js.map +1 -1
  299. package/dist/src/functions/install-addon.function.d.ts +1 -1
  300. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  301. package/dist/src/functions/install-addon.function.js +1 -1
  302. package/dist/src/functions/install-addon.function.js.map +1 -1
  303. package/dist/src/functions/install-addon.function.test.js +8 -2
  304. package/dist/src/functions/install-addon.function.test.js.map +1 -1
  305. package/dist/src/functions/install-openapi-addon.function.d.ts +1 -1
  306. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -1
  307. package/dist/src/functions/install-openapi-addon.function.js +1 -1
  308. package/dist/src/functions/install-openapi-addon.function.js.map +1 -1
  309. package/dist/src/functions/list-webhook-deliveries.function.d.ts +1 -1
  310. package/dist/src/functions/list-webhook-deliveries.function.d.ts.map +1 -1
  311. package/dist/src/functions/list-webhook-deliveries.function.js +1 -0
  312. package/dist/src/functions/list-webhook-deliveries.function.js.map +1 -1
  313. package/dist/src/functions/ping.function.d.ts +1 -1
  314. package/dist/src/functions/ping.function.d.ts.map +1 -1
  315. package/dist/src/functions/read-agent-source.function.d.ts +1 -1
  316. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
  317. package/dist/src/functions/read-agent-source.function.js +1 -0
  318. package/dist/src/functions/read-agent-source.function.js.map +1 -1
  319. package/dist/src/functions/read-function-body.function.d.ts +1 -1
  320. package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
  321. package/dist/src/functions/read-function-body.function.js +1 -0
  322. package/dist/src/functions/read-function-body.function.js.map +1 -1
  323. package/dist/src/functions/read-function-source.function.d.ts +1 -1
  324. package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
  325. package/dist/src/functions/read-function-source.function.js +1 -0
  326. package/dist/src/functions/read-function-source.function.js.map +1 -1
  327. package/dist/src/functions/render-email-preview.function.d.ts +1 -1
  328. package/dist/src/functions/render-email-preview.function.d.ts.map +1 -1
  329. package/dist/src/functions/render-email-preview.function.js +1 -0
  330. package/dist/src/functions/render-email-preview.function.js.map +1 -1
  331. package/dist/src/functions/run-security-audit.function.d.ts +1 -1
  332. package/dist/src/functions/run-security-audit.function.d.ts.map +1 -1
  333. package/dist/src/functions/run-security-audit.function.js +1 -0
  334. package/dist/src/functions/run-security-audit.function.js.map +1 -1
  335. package/dist/src/functions/scope-add-scope-to-user.function.d.ts +1 -1
  336. package/dist/src/functions/scope-add-scope-to-user.function.d.ts.map +1 -1
  337. package/dist/src/functions/scope-add-scope-to-user.function.js +2 -2
  338. package/dist/src/functions/scope-add-scope-to-user.function.js.map +1 -1
  339. package/dist/src/functions/scope-add-user-to-role.function.d.ts +1 -1
  340. package/dist/src/functions/scope-add-user-to-role.function.d.ts.map +1 -1
  341. package/dist/src/functions/scope-add-user-to-role.function.js +2 -2
  342. package/dist/src/functions/scope-add-user-to-role.function.js.map +1 -1
  343. package/dist/src/functions/scope-create-role.function.d.ts +1 -1
  344. package/dist/src/functions/scope-create-role.function.d.ts.map +1 -1
  345. package/dist/src/functions/scope-create-role.function.js +1 -1
  346. package/dist/src/functions/scope-create-role.function.js.map +1 -1
  347. package/dist/src/functions/scope-delete-role.function.d.ts +1 -1
  348. package/dist/src/functions/scope-delete-role.function.d.ts.map +1 -1
  349. package/dist/src/functions/scope-delete-role.function.js +1 -1
  350. package/dist/src/functions/scope-delete-role.function.js.map +1 -1
  351. package/dist/src/functions/scope-list-declared.function.d.ts +1 -1
  352. package/dist/src/functions/scope-list-declared.function.d.ts.map +1 -1
  353. package/dist/src/functions/scope-list-declared.function.js +1 -1
  354. package/dist/src/functions/scope-list-declared.function.js.map +1 -1
  355. package/dist/src/functions/scope-list-roles.function.d.ts +1 -1
  356. package/dist/src/functions/scope-list-roles.function.d.ts.map +1 -1
  357. package/dist/src/functions/scope-list-roles.function.js +1 -1
  358. package/dist/src/functions/scope-list-roles.function.js.map +1 -1
  359. package/dist/src/functions/scope-list-user-roles.function.d.ts +1 -1
  360. package/dist/src/functions/scope-list-user-roles.function.d.ts.map +1 -1
  361. package/dist/src/functions/scope-list-user-roles.function.js +1 -1
  362. package/dist/src/functions/scope-list-user-roles.function.js.map +1 -1
  363. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts +1 -1
  364. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts.map +1 -1
  365. package/dist/src/functions/scope-remove-scope-from-user.function.js +2 -2
  366. package/dist/src/functions/scope-remove-scope-from-user.function.js.map +1 -1
  367. package/dist/src/functions/scope-remove-user-from-role.function.d.ts +1 -1
  368. package/dist/src/functions/scope-remove-user-from-role.function.d.ts.map +1 -1
  369. package/dist/src/functions/scope-remove-user-from-role.function.js +2 -2
  370. package/dist/src/functions/scope-remove-user-from-role.function.js.map +1 -1
  371. package/dist/src/functions/scope-set-role-scopes.function.d.ts +1 -1
  372. package/dist/src/functions/scope-set-role-scopes.function.d.ts.map +1 -1
  373. package/dist/src/functions/scope-set-role-scopes.function.js +2 -2
  374. package/dist/src/functions/scope-set-role-scopes.function.js.map +1 -1
  375. package/dist/src/functions/secret-get.function.d.ts +17 -0
  376. package/dist/src/functions/secret-get.function.d.ts.map +1 -0
  377. package/dist/src/functions/secret-get.function.js +10 -0
  378. package/dist/src/functions/secret-get.function.js.map +1 -0
  379. package/dist/src/functions/secret-has.function.d.ts +14 -0
  380. package/dist/src/functions/secret-has.function.d.ts.map +1 -0
  381. package/dist/src/functions/secret-has.function.js +11 -0
  382. package/dist/src/functions/secret-has.function.js.map +1 -0
  383. package/dist/src/functions/secret-set.function.d.ts +17 -0
  384. package/dist/src/functions/secret-set.function.d.ts.map +1 -0
  385. package/dist/src/functions/secret-set.function.js +11 -0
  386. package/dist/src/functions/secret-set.function.js.map +1 -0
  387. package/dist/src/functions/stream-workflow-run.function.d.ts +1 -1
  388. package/dist/src/functions/update-agent-config.function.d.ts +1 -1
  389. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
  390. package/dist/src/functions/update-agent-config.function.js +1 -0
  391. package/dist/src/functions/update-agent-config.function.js.map +1 -1
  392. package/dist/src/functions/update-dependency.function.d.ts +1 -1
  393. package/dist/src/functions/update-dependency.function.d.ts.map +1 -1
  394. package/dist/src/functions/update-dependency.function.js +2 -1
  395. package/dist/src/functions/update-dependency.function.js.map +1 -1
  396. package/dist/src/functions/update-email-template.function.d.ts +1 -1
  397. package/dist/src/functions/update-email-template.function.d.ts.map +1 -1
  398. package/dist/src/functions/update-email-template.function.js +1 -0
  399. package/dist/src/functions/update-email-template.function.js.map +1 -1
  400. package/dist/src/functions/update-function-body.function.d.ts +1 -1
  401. package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
  402. package/dist/src/functions/update-function-body.function.js +1 -0
  403. package/dist/src/functions/update-function-body.function.js.map +1 -1
  404. package/dist/src/functions/update-function-config.function.d.ts +1 -1
  405. package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
  406. package/dist/src/functions/update-function-config.function.js +1 -0
  407. package/dist/src/functions/update-function-config.function.js.map +1 -1
  408. package/dist/src/lib/resolve-audit-users.d.ts +1 -1
  409. package/dist/src/lib/resolve-audit-users.js +1 -1
  410. package/dist/src/scopes.js +113 -13
  411. package/dist/src/scopes.js.map +1 -1
  412. package/dist/src/services/secret-admin.service.d.ts +20 -0
  413. package/dist/src/services/secret-admin.service.d.ts.map +1 -0
  414. package/dist/src/services/secret-admin.service.js +27 -0
  415. package/dist/src/services/secret-admin.service.js.map +1 -0
  416. package/dist/src/services/secret-admin.service.test.d.ts +2 -0
  417. package/dist/src/services/secret-admin.service.test.d.ts.map +1 -0
  418. package/dist/src/services/secret-admin.service.test.js +69 -0
  419. package/dist/src/services/secret-admin.service.test.js.map +1 -0
  420. package/dist/src/services/wiring.service.d.ts +2 -1
  421. package/dist/src/services/wiring.service.d.ts.map +1 -1
  422. package/dist/src/services/wiring.service.js.map +1 -1
  423. package/dist/src/services.d.ts.map +1 -1
  424. package/dist/src/services.js +4 -1
  425. package/dist/src/services.js.map +1 -1
  426. package/dist/types/application-types.d.ts +43 -0
  427. package/package.json +9 -9
  428. package/dist/.pikku/schemas/schemas/FunctionCoverageReport.schema.json +0 -1
  429. package/dist/.pikku/schemas/schemas/GetAIWorkflowsInput.schema.json +0 -1
  430. package/dist/.pikku/schemas/schemas/GetAIWorkflowsOutput.schema.json +0 -1
  431. package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +0 -1
  432. package/dist/.pikku/schemas/schemas/GetStubCallsInput.schema.json +0 -1
  433. package/dist/.pikku/schemas/schemas/GetStubCallsOutput.schema.json +0 -1
  434. package/dist/.pikku/schemas/schemas/OauthConnectInput.schema.json +0 -1
  435. package/dist/.pikku/schemas/schemas/OauthConnectOutput.schema.json +0 -1
  436. package/dist/.pikku/schemas/schemas/OauthDisconnectInput.schema.json +0 -1
  437. package/dist/.pikku/schemas/schemas/OauthExchangeTokensInput.schema.json +0 -1
  438. package/dist/.pikku/schemas/schemas/OauthExchangeTokensOutput.schema.json +0 -1
  439. package/dist/.pikku/schemas/schemas/OauthRefreshTokenInput.schema.json +0 -1
  440. package/dist/.pikku/schemas/schemas/OauthRefreshTokenOutput.schema.json +0 -1
  441. package/dist/.pikku/schemas/schemas/OauthStatusInput.schema.json +0 -1
  442. package/dist/.pikku/schemas/schemas/OauthStatusOutput.schema.json +0 -1
  443. package/dist/.pikku/schemas/schemas/OauthTestTokenInput.schema.json +0 -1
  444. package/dist/.pikku/schemas/schemas/OauthTestTokenOutput.schema.json +0 -1
  445. package/dist/.pikku/schemas/schemas/ResetLiveCoverageOutput.schema.json +0 -1
  446. package/dist/.pikku/schemas/schemas/ResetStubsOutput.schema.json +0 -1
  447. package/dist/.pikku/schemas/schemas/StreamFunctionTestsOutput.schema.json +0 -1
  448. package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts +0 -20
  449. package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts.map +0 -1
  450. package/dist/.pikku/workflow/pikku-scenario-actors.gen.js +0 -18
  451. package/dist/.pikku/workflow/pikku-scenario-actors.gen.js.map +0 -1
  452. package/dist/src/functions/get-ai-workflows.function.d.ts +0 -20
  453. package/dist/src/functions/get-ai-workflows.function.d.ts.map +0 -1
  454. package/dist/src/functions/get-ai-workflows.function.js +0 -10
  455. package/dist/src/functions/get-ai-workflows.function.js.map +0 -1
  456. package/dist/src/functions/get-function-coverage.function.d.ts +0 -26
  457. package/dist/src/functions/get-function-coverage.function.d.ts.map +0 -1
  458. package/dist/src/functions/get-function-coverage.function.js +0 -21
  459. package/dist/src/functions/get-function-coverage.function.js.map +0 -1
  460. package/dist/src/functions/get-stub-calls.function.d.ts +0 -13
  461. package/dist/src/functions/get-stub-calls.function.d.ts.map +0 -1
  462. package/dist/src/functions/get-stub-calls.function.js +0 -11
  463. package/dist/src/functions/get-stub-calls.function.js.map +0 -1
  464. package/dist/src/functions/oauth-connect.function.d.ts +0 -20
  465. package/dist/src/functions/oauth-connect.function.d.ts.map +0 -1
  466. package/dist/src/functions/oauth-connect.function.js +0 -44
  467. package/dist/src/functions/oauth-connect.function.js.map +0 -1
  468. package/dist/src/functions/oauth-disconnect.function.d.ts +0 -8
  469. package/dist/src/functions/oauth-disconnect.function.d.ts.map +0 -1
  470. package/dist/src/functions/oauth-disconnect.function.js +0 -25
  471. package/dist/src/functions/oauth-disconnect.function.js.map +0 -1
  472. package/dist/src/functions/oauth-exchange-tokens.function.d.ts +0 -17
  473. package/dist/src/functions/oauth-exchange-tokens.function.d.ts.map +0 -1
  474. package/dist/src/functions/oauth-exchange-tokens.function.js +0 -25
  475. package/dist/src/functions/oauth-exchange-tokens.function.js.map +0 -1
  476. package/dist/src/functions/oauth-refresh-token.function.d.ts +0 -17
  477. package/dist/src/functions/oauth-refresh-token.function.d.ts.map +0 -1
  478. package/dist/src/functions/oauth-refresh-token.function.js +0 -28
  479. package/dist/src/functions/oauth-refresh-token.function.js.map +0 -1
  480. package/dist/src/functions/oauth-status.function.d.ts +0 -23
  481. package/dist/src/functions/oauth-status.function.d.ts.map +0 -1
  482. package/dist/src/functions/oauth-status.function.js +0 -44
  483. package/dist/src/functions/oauth-status.function.js.map +0 -1
  484. package/dist/src/functions/oauth-test-token.function.d.ts +0 -17
  485. package/dist/src/functions/oauth-test-token.function.d.ts.map +0 -1
  486. package/dist/src/functions/oauth-test-token.function.js +0 -27
  487. package/dist/src/functions/oauth-test-token.function.js.map +0 -1
  488. package/dist/src/functions/reset-live-coverage.function.d.ts +0 -8
  489. package/dist/src/functions/reset-live-coverage.function.d.ts.map +0 -1
  490. package/dist/src/functions/reset-live-coverage.function.js +0 -13
  491. package/dist/src/functions/reset-live-coverage.function.js.map +0 -1
  492. package/dist/src/functions/reset-stubs.function.d.ts +0 -8
  493. package/dist/src/functions/reset-stubs.function.d.ts.map +0 -1
  494. package/dist/src/functions/reset-stubs.function.js +0 -12
  495. package/dist/src/functions/reset-stubs.function.js.map +0 -1
  496. package/dist/src/functions/run-function-tests.function.d.ts +0 -3
  497. package/dist/src/functions/run-function-tests.function.d.ts.map +0 -1
  498. package/dist/src/functions/run-function-tests.function.js +0 -67
  499. package/dist/src/functions/run-function-tests.function.js.map +0 -1
  500. package/dist/src/functions/stream-function-tests.function.d.ts +0 -37
  501. package/dist/src/functions/stream-function-tests.function.d.ts.map +0 -1
  502. package/dist/src/functions/stream-function-tests.function.js +0 -258
  503. package/dist/src/functions/stream-function-tests.function.js.map +0 -1
  504. package/dist/src/functions/stream-function-tests.function.test.d.ts +0 -2
  505. package/dist/src/functions/stream-function-tests.function.test.d.ts.map +0 -1
  506. package/dist/src/functions/stream-function-tests.function.test.js +0 -238
  507. package/dist/src/functions/stream-function-tests.function.test.js.map +0 -1
  508. package/dist/src/functions/take-live-coverage.function.d.ts +0 -3
  509. package/dist/src/functions/take-live-coverage.function.d.ts.map +0 -1
  510. package/dist/src/functions/take-live-coverage.function.js +0 -27
  511. package/dist/src/functions/take-live-coverage.function.js.map +0 -1
  512. package/dist/src/lib/coverage-types.d.ts +0 -25
  513. package/dist/src/lib/coverage-types.d.ts.map +0 -1
  514. package/dist/src/lib/coverage-types.js +0 -2
  515. package/dist/src/lib/coverage-types.js.map +0 -1
  516. package/dist/src/lib/function-tests-paths.d.ts +0 -14
  517. package/dist/src/lib/function-tests-paths.d.ts.map +0 -1
  518. package/dist/src/lib/function-tests-paths.js +0 -22
  519. package/dist/src/lib/function-tests-paths.js.map +0 -1
  520. package/dist/src/lib/precise-coverage-map.d.ts +0 -30
  521. package/dist/src/lib/precise-coverage-map.d.ts.map +0 -1
  522. package/dist/src/lib/precise-coverage-map.js +0 -177
  523. package/dist/src/lib/precise-coverage-map.js.map +0 -1
  524. package/dist/src/lib/precise-coverage-map.test.d.ts +0 -2
  525. package/dist/src/lib/precise-coverage-map.test.d.ts.map +0 -1
  526. package/dist/src/lib/precise-coverage-map.test.js +0 -153
  527. package/dist/src/lib/precise-coverage-map.test.js.map +0 -1
  528. package/dist/src/services/oauth.service.d.ts +0 -17
  529. package/dist/src/services/oauth.service.d.ts.map +0 -1
  530. package/dist/src/services/oauth.service.js +0 -26
  531. package/dist/src/services/oauth.service.js.map +0 -1
  532. package/dist/src/tests/test-oauth2-client.d.ts +0 -6
  533. package/dist/src/tests/test-oauth2-client.d.ts.map +0 -1
  534. package/dist/src/tests/test-oauth2-client.js +0 -139
  535. package/dist/src/tests/test-oauth2-client.js.map +0 -1
@@ -1 +1 @@
1
- { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" } }, "context": { "$ref": "#/definitions/WorkflowContext" }, "dsl": { "type": "boolean" }, "expose": { "type": "boolean" }, "scenario": { "type": "boolean" }, "asserts": { "type": "boolean" }, "skip": { "type": "string" }, "actors": { "type": "array", "items": { "type": "string" } }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["name", "pikkuFuncId", "steps"], "definitions": { "WorkflowStepMeta": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }, { "$ref": "#/definitions/BranchStepMeta" }, { "$ref": "#/definitions/ParallelGroupStepMeta" }, { "$ref": "#/definitions/FanoutStepMeta" }, { "$ref": "#/definitions/ReturnStepMeta" }, { "$ref": "#/definitions/InlineStepMeta" }, { "$ref": "#/definitions/SleepStepMeta" }, { "$ref": "#/definitions/CancelStepMeta" }, { "$ref": "#/definitions/SuspendStepMeta" }, { "$ref": "#/definitions/ApprovalStepMeta" }, { "$ref": "#/definitions/SwitchStepMeta" }, { "$ref": "#/definitions/FilterStepMeta" }, { "$ref": "#/definitions/ArrayPredicateStepMeta" }, { "$ref": "#/definitions/SetStepMeta" }], "description": "Workflow step metadata (extracted by inspector)" }, "RpcStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "rpc", "description": "RPC form - generates queue worker" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.do)" }, "rpcName": { "type": "string", "description": "RPC to invoke" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "inputs": { "anyOf": [{ "type": "object", "additionalProperties": { "$ref": "#/definitions/InputSource" } }, { "type": "string", "const": "passthrough" }], "description": "Input source mappings, or 'passthrough' when entire data is passed" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" }, "actor": { "type": "string", "description": "Scenario actor name this step runs as ({ actor: actors.x })" }, "expectEventually": { "type": "boolean", "description": "True for workflow.expectEventually polling steps" } }, "required": ["type", "stepName", "rpcName"], "additionalProperties": false, "description": "RPC step metadata (base form)" }, "InputSource": { "anyOf": [{ "type": "object", "properties": { "from": { "type": "string", "const": "input" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "outputVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "item" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "literal" }, "value": {} }, "required": ["from", "value"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "template" }, "parts": { "type": "array", "items": { "type": "string" } }, "expressions": { "type": "array", "items": { "$ref": "#/definitions/InputSource" } } }, "required": ["from", "parts", "expressions"], "additionalProperties": false }], "description": "Input source for step arguments in DSL workflows" }, "WorkflowStepOptions": { "type": "object", "properties": { "description": { "type": "string", "description": "Display name for logs/UI (optional, doesn't affect execution)" }, "retries": { "type": "number", "description": "Number of retry attempts for failed steps (only applies to local execution)" }, "retryDelay": { "type": ["string", "number"], "description": "Delay between retry attempts (e.g., '1s', '2s', '2min')" }, "onError": { "type": "string", "description": "RPC to invoke for compensation when this step fails after exhausting its retries. Mirrors a graph node's `onError`: the handler receives `{ error: { message } }` and the original error is still thrown, so the workflow fails — this is compensation, not recovery." }, "actor": { "$ref": "#/definitions/ScenarioPersona", "description": "Run this step as an actor (scenarios). The RPC is sent through the actor's authenticated client over the REAL transport — never dispatched internally — so auth middleware and permissions are exercised end-to-end. The step is recorded durably like any RPC step." } }, "additionalProperties": false, "description": "Workflow step options" }, "ScenarioPersona": { "type": "object", "properties": { "name": { "type": "string", "description": "The id it was declared under — what a step's `actor` slot names." }, "email": { "type": "string", "description": "Their address, computed from the id. Flows use it for invites/lookups." } }, "required": ["name", "email"], "additionalProperties": false, "description": "A declared person, signed in and acting over the real transport.\n\nThe runtime half of `definePersonas()`: sign-in materialises a user row flagged `actor: true`, and everything a step or a virtual user does goes through here." }, "ScenarioStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "scenarioStep" }, "stepName": { "type": "string", "description": "Cache key (first argument), ordinal-suffixed by the engine when repeated" }, "stepFunc": { "type": "string", "description": "Registered name of the step function being run" }, "phase": { "$ref": "#/definitions/ScenarioStepPhase", "description": "Which keyword the reporter prefixes — Given, When or Then" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "inputs": { "anyOf": [{ "type": "object", "additionalProperties": { "$ref": "#/definitions/InputSource" } }, { "type": "string", "const": "passthrough" }], "description": "Input source mappings, or 'passthrough' when entire data is passed" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" }, "actor": { "type": "string", "description": "Scenario actor name this step runs as ({ actor: actors.x })" }, "surfaces": { "type": "array", "items": { "$ref": "#/definitions/ScenarioSurface" }, "description": "Mirrors the surfaces the step function declares a binding for" } }, "required": ["type", "stepName", "stepFunc", "phase"], "additionalProperties": false, "description": "Scenario step metadata — a call to `scenario.given/when/then`.\n\nDistinct from RpcStepMeta on purpose: a step runs locally through runPikkuFunc and must never be treated as dispatchable on the queue/replay path, nor registered as a callable RPC (a browser-driving step must not be network-invocable)." }, "ScenarioStepPhase": { "type": "string", "enum": ["given", "when", "then"], "description": "Which Gherkin-style keyword the reporter prefixes this step with.\n\nEvery step takes one. A scenario is read by people deciding whether it describes the behaviour they wanted, and a step that says only what it does without saying whether it is setup, action or claim is the one nobody can check — which is also why PKU680 can tell a scenario that never asserts." }, "ScenarioSurface": { "type": "string", "enum": ["browser", "cli", "default"], "description": "How an actor drives the system for one step.\n\nA step declares one implementation per surface it supports, and the runner picks between them — so the same ladder can run through a real browser, over the websocket, or entirely server-side.\n\n`default` is the floor: it is what every other surface falls back to, so it can never itself fall back." }, "BranchStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "branch" }, "branches": { "type": "array", "items": { "$ref": "#/definitions/BranchCase" }, "description": "Branches in order: first is \"if\", rest are \"else if\"" }, "elseSteps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Else branch steps (when no conditions match)" } }, "required": ["type", "branches"], "additionalProperties": false, "description": "Branch step metadata (if/else-if/else control flow)" }, "BranchCase": { "type": "object", "properties": { "condition": { "$ref": "#/definitions/Condition", "description": "Condition for this branch" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Steps to execute when condition is true" } }, "required": ["condition", "steps"], "additionalProperties": false, "description": "A single branch in an if/else-if chain" }, "Condition": { "anyOf": [{ "$ref": "#/definitions/SimpleCondition" }, { "type": "object", "properties": { "type": { "type": "string", "const": "and" }, "conditions": { "type": "array", "items": { "$ref": "#/definitions/Condition" } } }, "required": ["type", "conditions"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "or" }, "conditions": { "type": "array", "items": { "$ref": "#/definitions/Condition" } } }, "required": ["type", "conditions"], "additionalProperties": false }], "description": "Nested condition structure supporting AND/OR operations" }, "SimpleCondition": { "type": "object", "properties": { "type": { "type": "string", "const": "simple" }, "expression": { "type": "string" } }, "required": ["type", "expression"], "additionalProperties": false, "description": "Simple condition expression (leaf node)" }, "ParallelGroupStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "parallel" }, "children": { "type": "array", "items": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }] }, "description": "Child steps to execute in parallel" } }, "required": ["type", "children"], "additionalProperties": false, "description": "Parallel group step metadata (Promise.all with multiple steps)" }, "FanoutStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "fanout" }, "stepName": { "type": "string", "description": "Step name for this fanout. Optional: a fanout is not itself a cached step, and node ids are step names — borrowing a body step's name would give the loop and that step the same id, collapsing one onto the other." }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "mode": { "type": "string", "enum": ["parallel", "sequential"], "description": "Execution mode" }, "body": { "type": "array", "items": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/SleepStepMeta" }, { "$ref": "#/definitions/SuspendStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }] }, "description": "Steps to execute inline per iteration, in order" }, "timeBetween": { "type": "string", "description": "Time between iterations (sequential mode only)" } }, "required": ["type", "sourceVar", "itemVar", "mode", "body"], "additionalProperties": false, "description": "Fanout step metadata (parallel or sequential iteration)" }, "SleepStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "sleep", "description": "Sleep step" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.sleep)" }, "duration": { "type": ["string", "number"], "description": "Sleep duration" }, "expression": { "type": "string", "description": "Source text of a duration only known at runtime (e.g. a loop variable). The closure evaluates it, so it is legal DSL; it is kept separate from `duration` so regenerated code emits it raw rather than as a string literal, exactly as `expression` does on a set step." } }, "required": ["type", "stepName", "duration"], "additionalProperties": false, "description": "Sleep step metadata" }, "SuspendStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "suspend" }, "reason": { "type": "string", "description": "Reason string passed to workflow.suspend() — becomes the durable step key" } }, "required": ["type", "reason"], "additionalProperties": false, "description": "Suspend step metadata (workflow.suspend())" }, "ReturnStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "return" }, "outputs": { "type": "object", "additionalProperties": { "$ref": "#/definitions/OutputBinding" }, "description": "Output bindings" }, "spread": { "type": "array", "items": { "type": "string" }, "description": "Variables spread into the returned object (`return { ...r }`), or the sole returned variable (`return r`). Their fields are not enumerable statically, so they are recorded by name rather than expanded into `outputs`." } }, "required": ["type", "outputs"], "additionalProperties": false, "description": "Return step metadata (workflow output)" }, "OutputBinding": { "anyOf": [{ "type": "object", "properties": { "from": { "type": "string", "const": "outputVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "stateVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "input" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "literal" }, "value": {} }, "required": ["from", "value"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "expression" }, "expression": { "type": "string" } }, "required": ["from", "expression"], "additionalProperties": false }], "description": "Output binding for return statements in DSL workflows" }, "InlineStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "inline", "description": "Inline form - local execution" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.do)" }, "description": { "type": "string", "description": "Display name" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" } }, "required": ["type", "stepName"], "additionalProperties": false, "description": "Inline step metadata (legacy support)" }, "CancelStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "cancel", "description": "Cancel step" }, "reason": { "type": "string", "description": "Optional cancellation reason" } }, "required": ["type"], "additionalProperties": false, "description": "Cancel step metadata" }, "ApprovalStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "approval" }, "reason": { "type": "string", "description": "Reason string passed to workflow.approval() — becomes the durable step key" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "expiry": { "type": ["string", "number"], "description": "Expiry duration, when one was given" } }, "required": ["type", "reason"], "additionalProperties": false, "description": "Approval step metadata (workflow.approval())" }, "SwitchStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "switch" }, "expression": { "type": "string", "description": "Expression being switched on" }, "cases": { "type": "array", "items": { "$ref": "#/definitions/SwitchCaseMeta" }, "description": "Case branches" }, "defaultSteps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Default case steps (optional)" } }, "required": ["type", "expression", "cases"], "additionalProperties": false, "description": "Switch step metadata (switch/case control flow)" }, "SwitchCaseMeta": { "type": "object", "properties": { "value": { "type": ["string", "number", "boolean", "null"], "description": "Case value (literal) or expression" }, "expression": { "type": "string", "description": "Case expression (for complex cases)" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Steps to execute for this case" } }, "required": ["steps"], "additionalProperties": false, "description": "Switch case metadata" }, "FilterStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "filter" }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "condition": { "$ref": "#/definitions/Condition", "description": "Filter condition" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" } }, "required": ["type", "sourceVar", "itemVar", "condition"], "additionalProperties": false, "description": "Filter step metadata (array.filter)" }, "ArrayPredicateStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "arrayPredicate" }, "mode": { "type": "string", "enum": ["some", "every"], "description": "Predicate mode" }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "condition": { "$ref": "#/definitions/Condition", "description": "Predicate condition" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" } }, "required": ["type", "mode", "sourceVar", "itemVar", "condition"], "additionalProperties": false, "description": "Array predicate step metadata (array.some, array.every)" }, "SetStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "set", "description": "Set step" }, "variable": { "type": "string", "description": "Variable name to set (must be in context)" }, "value": { "description": "Literal value to assign. Mutually exclusive with `expression`." }, "expression": { "type": "string", "description": "Source text of a non-literal assignment (e.g. `count + 1`). Kept separate from `value` so regenerated code can emit it raw — a string `value` is a string literal, an `expression` is code." } }, "required": ["type", "variable"], "additionalProperties": false, "description": "Set step metadata (context variable assignment)" }, "WorkflowContext": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ContextVariable" } }, "ContextVariable": { "type": "object", "properties": { "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"] }, "default": {}, "description": { "type": "string" } }, "required": ["type"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }] }, "PermissionMetadata": { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false, "description": "A reference to a permission function, resolved by name. Function-scoped only: there are no wire- or tag-level permission references." } } }
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "name": { "type": "string" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" } }, "context": { "$ref": "#/definitions/WorkflowContext" }, "dsl": { "type": "boolean" }, "expose": { "type": "boolean" }, "scenario": { "type": "boolean" }, "asserts": { "type": "boolean" }, "skip": { "type": "string" }, "actors": { "type": "array", "items": { "type": "string" } }, "pikkuFuncId": { "type": "string" }, "packageName": { "type": "string" }, "title": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "summary": { "type": "string" }, "description": { "type": "string" }, "errors": { "type": "array", "items": { "type": "string" } }, "middleware": { "type": "array", "items": { "$ref": "#/definitions/MiddlewareMetadata" } }, "permissions": { "type": "array", "items": { "$ref": "#/definitions/PermissionMetadata" } } }, "required": ["name", "pikkuFuncId", "steps"], "definitions": { "WorkflowStepMeta": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }, { "$ref": "#/definitions/BranchStepMeta" }, { "$ref": "#/definitions/ParallelGroupStepMeta" }, { "$ref": "#/definitions/FanoutStepMeta" }, { "$ref": "#/definitions/ReturnStepMeta" }, { "$ref": "#/definitions/InlineStepMeta" }, { "$ref": "#/definitions/SleepStepMeta" }, { "$ref": "#/definitions/CancelStepMeta" }, { "$ref": "#/definitions/SuspendStepMeta" }, { "$ref": "#/definitions/ApprovalStepMeta" }, { "$ref": "#/definitions/SwitchStepMeta" }, { "$ref": "#/definitions/FilterStepMeta" }, { "$ref": "#/definitions/ArrayPredicateStepMeta" }, { "$ref": "#/definitions/SetStepMeta" }], "description": "Workflow step metadata (extracted by inspector)" }, "RpcStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "rpc", "description": "RPC form - generates queue worker" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.do)" }, "rpcName": { "type": "string", "description": "RPC to invoke" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "inputs": { "anyOf": [{ "type": "object", "additionalProperties": { "$ref": "#/definitions/InputSource" } }, { "type": "string", "const": "passthrough" }], "description": "Input source mappings, or 'passthrough' when entire data is passed" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" }, "actor": { "type": "string", "description": "Scenario actor name this step runs as ({ actor: actors.x })" }, "expectEventually": { "type": "boolean", "description": "True for workflow.expectEventually polling steps" } }, "required": ["type", "stepName", "rpcName"], "additionalProperties": false, "description": "RPC step metadata (base form)" }, "InputSource": { "anyOf": [{ "type": "object", "properties": { "from": { "type": "string", "const": "input" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "outputVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "item" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "literal" }, "value": {} }, "required": ["from", "value"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "template" }, "parts": { "type": "array", "items": { "type": "string" } }, "expressions": { "type": "array", "items": { "$ref": "#/definitions/InputSource" } } }, "required": ["from", "parts", "expressions"], "additionalProperties": false }], "description": "Input source for step arguments in DSL workflows" }, "WorkflowStepOptions": { "type": "object", "properties": { "description": { "type": "string", "description": "Display name for logs/UI (optional, doesn't affect execution)" }, "retries": { "type": "number", "description": "Number of retry attempts for failed steps (only applies to local execution)" }, "retryDelay": { "type": ["string", "number"], "description": "Delay between retry attempts (e.g., '1s', '2s', '2min')" }, "onError": { "type": "string", "description": "RPC to invoke for compensation when this step fails after exhausting its retries. Mirrors a graph node's `onError`: the handler receives `{ error: { message } }` and the original error is still thrown, so the workflow fails — this is compensation, not recovery." }, "actor": { "$ref": "#/definitions/ScenarioPersona", "description": "Run this step as an actor (scenarios). The RPC is sent through the actor's authenticated client over the REAL transport — never dispatched internally — so auth middleware and permissions are exercised end-to-end. The step is recorded durably like any RPC step." } }, "additionalProperties": false, "description": "Workflow step options" }, "ScenarioPersona": { "type": "object", "properties": { "name": { "type": "string", "description": "The id it was declared under — what a step's `actor` slot names." }, "email": { "type": "string", "description": "Their address, computed from the id. Flows use it for invites/lookups." } }, "required": ["name", "email"], "additionalProperties": false, "description": "A declared person, signed in and acting over the real transport.\n\nThe runtime half of `definePersonas()`: sign-in materialises a user row flagged `actor: true`, and everything a step or a virtual user does goes through here." }, "ScenarioStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "scenarioStep" }, "stepName": { "type": "string", "description": "Cache key (first argument), ordinal-suffixed by the engine when repeated" }, "stepFunc": { "type": "string", "description": "Registered name of the step function being run" }, "phase": { "$ref": "#/definitions/ScenarioStepPhase", "description": "Which keyword the reporter prefixes — Given, When or Then" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "inputs": { "anyOf": [{ "type": "object", "additionalProperties": { "$ref": "#/definitions/InputSource" } }, { "type": "string", "const": "passthrough" }], "description": "Input source mappings, or 'passthrough' when entire data is passed" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" }, "actor": { "type": "string", "description": "Scenario actor name this step runs as ({ actor: actors.x })" }, "surfaces": { "type": "array", "items": { "$ref": "#/definitions/ScenarioSurface" }, "description": "Mirrors the surfaces the step function declares a binding for" } }, "required": ["type", "stepName", "stepFunc", "phase"], "additionalProperties": false, "description": "Scenario step metadata — a call to `scenario.given/when/then`.\n\nDistinct from RpcStepMeta on purpose: a step runs locally through runPikkuFunc and must never be treated as dispatchable on the queue/replay path, nor registered as a callable RPC (a browser-driving step must not be network-invocable)." }, "ScenarioStepPhase": { "type": "string", "enum": ["given", "when", "then"], "description": "Which Gherkin-style keyword the reporter prefixes this step with.\n\nEvery step takes one. A scenario is read by people deciding whether it describes the behaviour they wanted, and a step that says only what it does without saying whether it is setup, action or claim is the one nobody can check — which is also why PKU680 can tell a scenario that never asserts." }, "ScenarioSurface": { "type": "string", "enum": ["browser", "cli", "default"], "description": "How an actor drives the system for one step.\n\nA step declares one implementation per surface it supports, and the runner picks between them — so the same ladder can run through a real browser, over the websocket, or entirely server-side.\n\n`default` is the floor: it is what every other surface falls back to, so it can never itself fall back." }, "BranchStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "branch" }, "branches": { "type": "array", "items": { "$ref": "#/definitions/BranchCase" }, "description": "Branches in order: first is \"if\", rest are \"else if\"" }, "elseSteps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Else branch steps (when no conditions match)" } }, "required": ["type", "branches"], "additionalProperties": false, "description": "Branch step metadata (if/else-if/else control flow)" }, "BranchCase": { "type": "object", "properties": { "condition": { "$ref": "#/definitions/Condition", "description": "Condition for this branch" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Steps to execute when condition is true" } }, "required": ["condition", "steps"], "additionalProperties": false, "description": "A single branch in an if/else-if chain" }, "Condition": { "anyOf": [{ "$ref": "#/definitions/SimpleCondition" }, { "type": "object", "properties": { "type": { "type": "string", "const": "and" }, "conditions": { "type": "array", "items": { "$ref": "#/definitions/Condition" } } }, "required": ["type", "conditions"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "or" }, "conditions": { "type": "array", "items": { "$ref": "#/definitions/Condition" } } }, "required": ["type", "conditions"], "additionalProperties": false }], "description": "Nested condition structure supporting AND/OR operations" }, "SimpleCondition": { "type": "object", "properties": { "type": { "type": "string", "const": "simple" }, "expression": { "type": "string" } }, "required": ["type", "expression"], "additionalProperties": false, "description": "Simple condition expression (leaf node)" }, "ParallelGroupStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "parallel" }, "children": { "type": "array", "items": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }] }, "description": "Child steps to execute in parallel" } }, "required": ["type", "children"], "additionalProperties": false, "description": "Parallel group step metadata (Promise.all with multiple steps)" }, "FanoutStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "fanout" }, "stepName": { "type": "string", "description": "Step name for this fanout. Optional: a fanout is not itself a cached step, and node ids are step names — borrowing a body step's name would give the loop and that step the same id, collapsing one onto the other." }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "mode": { "type": "string", "enum": ["parallel", "sequential"], "description": "Execution mode" }, "body": { "type": "array", "items": { "anyOf": [{ "$ref": "#/definitions/RpcStepMeta" }, { "$ref": "#/definitions/SleepStepMeta" }, { "$ref": "#/definitions/SuspendStepMeta" }, { "$ref": "#/definitions/ScenarioStepMeta" }] }, "description": "Steps to execute inline per iteration, in order" }, "timeBetween": { "type": "string", "description": "Time between iterations (sequential mode only)" } }, "required": ["type", "sourceVar", "itemVar", "mode", "body"], "additionalProperties": false, "description": "Fanout step metadata (parallel or sequential iteration)" }, "SleepStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "sleep", "description": "Sleep step" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.sleep)" }, "duration": { "type": ["string", "number"], "description": "Sleep duration" }, "expression": { "type": "string", "description": "Source text of a duration only known at runtime (e.g. a loop variable). The closure evaluates it, so it is legal DSL; it is kept separate from `duration` so regenerated code emits it raw rather than as a string literal, exactly as `expression` does on a set step." } }, "required": ["type", "stepName", "duration"], "additionalProperties": false, "description": "Sleep step metadata" }, "SuspendStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "suspend" }, "reason": { "type": "string", "description": "Reason string passed to workflow.suspend() — becomes the durable step key" } }, "required": ["type", "reason"], "additionalProperties": false, "description": "Suspend step metadata (workflow.suspend())" }, "ReturnStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "return" }, "outputs": { "type": "object", "additionalProperties": { "$ref": "#/definitions/OutputBinding" }, "description": "Output bindings" }, "spread": { "type": "array", "items": { "type": "string" }, "description": "Variables spread into the returned object (`return { ...r }`), or the sole returned variable (`return r`). Their fields are not enumerable statically, so they are recorded by name rather than expanded into `outputs`." } }, "required": ["type", "outputs"], "additionalProperties": false, "description": "Return step metadata (workflow output)" }, "OutputBinding": { "anyOf": [{ "type": "object", "properties": { "from": { "type": "string", "const": "outputVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "stateVar" }, "name": { "type": "string" }, "path": { "type": "string" } }, "required": ["from", "name"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "input" }, "path": { "type": "string" } }, "required": ["from", "path"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "literal" }, "value": {} }, "required": ["from", "value"], "additionalProperties": false }, { "type": "object", "properties": { "from": { "type": "string", "const": "expression" }, "expression": { "type": "string" } }, "required": ["from", "expression"], "additionalProperties": false }], "description": "Output binding for return statements in DSL workflows" }, "InlineStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "inline", "description": "Inline form - local execution" }, "stepName": { "type": "string", "description": "Cache key (stepName from workflow.do)" }, "description": { "type": "string", "description": "Display name" }, "options": { "$ref": "#/definitions/WorkflowStepOptions", "description": "Step options" } }, "required": ["type", "stepName"], "additionalProperties": false, "description": "Inline step metadata" }, "CancelStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "cancel", "description": "Cancel step" }, "reason": { "type": "string", "description": "Optional cancellation reason" } }, "required": ["type"], "additionalProperties": false, "description": "Cancel step metadata" }, "ApprovalStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "approval" }, "reason": { "type": "string", "description": "Reason string passed to workflow.approval() — becomes the durable step key" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" }, "expiry": { "type": ["string", "number"], "description": "Expiry duration, when one was given" }, "approvers": { "$ref": "#/definitions/WorkflowApprovalApprovers", "description": "Who may answer the gate, when the default was not used" }, "approverScope": { "type": "string", "description": "Scope the decider must hold, when one was required" } }, "required": ["type", "reason"], "additionalProperties": false, "description": "Approval step metadata (workflow.approval())" }, "WorkflowApprovalApprovers": { "type": "string", "enum": ["any", "owner", "not-initiator"], "description": "Who is allowed to answer an approval gate, relative to the user who started the run.\n\n- `any` — anyone the approve entrypoint lets through. The gate is a pause for a decision, not an authorization boundary.\n- `owner` — only the user who started the run, so a gate can be used to confirm an action against the same person who requested it.\n- `not-initiator` — anyone *except* the user who started the run: four-eyes. A run with no recorded initiator has nobody to exclude, so this degrades to requiring a signed-in decider." }, "SwitchStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "switch" }, "expression": { "type": "string", "description": "Expression being switched on" }, "cases": { "type": "array", "items": { "$ref": "#/definitions/SwitchCaseMeta" }, "description": "Case branches" }, "defaultSteps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Default case steps (optional)" } }, "required": ["type", "expression", "cases"], "additionalProperties": false, "description": "Switch step metadata (switch/case control flow)" }, "SwitchCaseMeta": { "type": "object", "properties": { "value": { "type": ["string", "number", "boolean", "null"], "description": "Case value (literal) or expression" }, "expression": { "type": "string", "description": "Case expression (for complex cases)" }, "steps": { "type": "array", "items": { "$ref": "#/definitions/WorkflowStepMeta" }, "description": "Steps to execute for this case" } }, "required": ["steps"], "additionalProperties": false, "description": "Switch case metadata" }, "FilterStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "filter" }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "condition": { "$ref": "#/definitions/Condition", "description": "Filter condition" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" } }, "required": ["type", "sourceVar", "itemVar", "condition"], "additionalProperties": false, "description": "Filter step metadata (array.filter)" }, "ArrayPredicateStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "arrayPredicate" }, "mode": { "type": "string", "enum": ["some", "every"], "description": "Predicate mode" }, "sourceVar": { "type": "string", "description": "Source array variable name" }, "itemVar": { "type": "string", "description": "Iterator variable name" }, "condition": { "$ref": "#/definitions/Condition", "description": "Predicate condition" }, "outputVar": { "type": "string", "description": "Output variable name (if assigned)" } }, "required": ["type", "mode", "sourceVar", "itemVar", "condition"], "additionalProperties": false, "description": "Array predicate step metadata (array.some, array.every)" }, "SetStepMeta": { "type": "object", "properties": { "type": { "type": "string", "const": "set", "description": "Set step" }, "variable": { "type": "string", "description": "Variable name to set (must be in context)" }, "value": { "description": "Literal value to assign. Mutually exclusive with `expression`." }, "expression": { "type": "string", "description": "Source text of a non-literal assignment (e.g. `count + 1`). Kept separate from `value` so regenerated code can emit it raw — a string `value` is a string literal, an `expression` is code." } }, "required": ["type", "variable"], "additionalProperties": false, "description": "Set step metadata (context variable assignment)" }, "WorkflowContext": { "type": "object", "additionalProperties": { "$ref": "#/definitions/ContextVariable" } }, "ContextVariable": { "type": "object", "properties": { "type": { "type": "string", "enum": ["string", "number", "boolean", "object", "array"] }, "default": {}, "description": { "type": "string" } }, "required": ["type"], "additionalProperties": false }, "MiddlewareMetadata": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "const": "http" }, "route": { "type": "string" } }, "required": ["type", "route"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "tag" }, "tag": { "type": "string" } }, "required": ["type", "tag"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false }] }, "PermissionMetadata": { "type": "object", "properties": { "type": { "type": "string", "const": "wire" }, "name": { "type": "string" }, "inline": { "type": "boolean" } }, "required": ["type", "name"], "additionalProperties": false, "description": "A reference to a permission function, resolved by name. Function-scoped only: there are no wire- or tag-level permission references." } } }
@@ -1 +1 @@
1
- { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "notes": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeGraphNote" } }, "sections": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeSection" } }, "tagCounts": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Tag → how many notes carry it, for a browsable facet." }, "stats": { "type": "object", "properties": { "notes": { "type": "number" }, "sections": { "type": "number" }, "links": { "type": "number" }, "dangling": { "type": "number" } }, "required": ["notes", "sections", "links", "dangling"], "additionalProperties": false }, "findings": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeFinding" }, "description": "What `pikku knowledge validate` would report, so the console shows the same verdict." }, "ok": { "type": "boolean" } }, "required": ["findings", "notes", "ok", "sections", "stats", "tagCounts"], "additionalProperties": false, "definitions": { "KnowledgeGraphNote": { "type": "object", "properties": { "path": { "type": "string" }, "section": { "type": "string", "description": "`''` for a note at the root of knowledge/." }, "type": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "resource": { "type": "array", "items": { "type": "string" }, "description": "The `<kind>:<id>` URIs from `resource:`, already split." }, "status": { "type": "string" }, "entities": { "type": "array", "items": { "type": "string" } }, "reserved": { "type": "string", "enum": ["index", "log"] }, "body": { "type": "string" }, "outbound": { "type": "array", "items": { "type": "string" }, "description": "Notes this one links to, as bundle-relative paths." }, "inbound": { "type": "array", "items": { "type": "string" }, "description": "Notes that link to this one." }, "dangling": { "type": "array", "items": { "type": "string" }, "description": "Link targets that resolve to no note. Legal in OKF — a note not written yet." } }, "required": ["path", "section", "title", "tags", "resource", "entities", "body", "outbound", "inbound", "dangling"], "additionalProperties": false, "description": "Declared rather than inferred, for the reason given on `KnowledgeFinding`: this shape is the body of the `getKnowledge` RPC's output, and a `z.infer<>` is not something a JSON-schema generator can walk.\n\nNote this is necessary but not sufficient for that RPC to ship an output schema — `KnowledgeBundle` reaches this type across a package boundary, and the inspector registers no type whose base is declared in another package." }, "KnowledgeSection": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "count": { "type": "number" } }, "required": ["name", "count"], "additionalProperties": false }, "KnowledgeFinding": { "type": "object", "properties": { "id": { "type": "string" }, "severity": { "type": "string", "enum": ["error", "warn", "info"] }, "message": { "type": "string" }, "path": { "type": "string" }, "fixHint": { "type": "string" } }, "required": ["id", "severity", "message", "path", "fixHint"], "additionalProperties": false, "description": "Declared, not inferred from the schema below.\n\nA finding crosses an RPC boundary as part of the `getKnowledge` payload, and a `z.infer<>` is not a type a JSON-schema generator can walk: zod's inference bottoms out in `this` types, so ts-json-schema-generator fails outright on it. An interface generates. The `satisfies` is what keeps the two from drifting — a field added to one and not the other is a compile error." } } }
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "notes": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeGraphNote" } }, "sections": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeSection" } }, "tagCounts": { "type": "object", "additionalProperties": { "type": "number" }, "description": "Tag → how many notes carry it, for a browsable facet." }, "stats": { "type": "object", "properties": { "notes": { "type": "number" }, "sections": { "type": "number" }, "links": { "type": "number" }, "dangling": { "type": "number" } }, "required": ["notes", "sections", "links", "dangling"], "additionalProperties": false }, "findings": { "type": "array", "items": { "$ref": "#/definitions/KnowledgeFinding" }, "description": "What `pikku knowledge validate` would report, so the console shows the same verdict." }, "ok": { "type": "boolean" } }, "required": ["findings", "notes", "ok", "sections", "stats", "tagCounts"], "additionalProperties": false, "definitions": { "KnowledgeGraphNote": { "type": "object", "properties": { "path": { "type": "string" }, "section": { "type": "string", "description": "`''` for a note at the root of knowledge/." }, "type": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "tags": { "type": "array", "items": { "type": "string" } }, "resource": { "type": "array", "items": { "type": "string" }, "description": "The `<kind>:<id>` URIs from `resource:`, already split." }, "status": { "type": "string" }, "statusAt": { "type": "string", "description": "When `status` last changed, for a reader asking how long it has been there." }, "entities": { "type": "array", "items": { "type": "string" } }, "reserved": { "type": "string", "enum": ["index", "log"] }, "body": { "type": "string" }, "outbound": { "type": "array", "items": { "type": "string" }, "description": "Notes this one links to, as bundle-relative paths." }, "inbound": { "type": "array", "items": { "type": "string" }, "description": "Notes that link to this one." }, "dangling": { "type": "array", "items": { "type": "string" }, "description": "Link targets that resolve to no note. Legal in OKF — a note not written yet." } }, "required": ["path", "section", "title", "tags", "resource", "entities", "body", "outbound", "inbound", "dangling"], "additionalProperties": false, "description": "Declared rather than inferred, for the reason given on `KnowledgeFinding`: this shape is the body of the `getKnowledge` RPC's output, and a `z.infer<>` is not something a JSON-schema generator can walk.\n\nNote this is necessary but not sufficient for that RPC to ship an output schema — `KnowledgeBundle` reaches this type across a package boundary, and the inspector registers no type whose base is declared in another package." }, "KnowledgeSection": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "count": { "type": "number" } }, "required": ["name", "count"], "additionalProperties": false }, "KnowledgeFinding": { "type": "object", "properties": { "id": { "type": "string" }, "severity": { "type": "string", "enum": ["error", "warn", "info"] }, "message": { "type": "string" }, "path": { "type": "string" }, "fixHint": { "type": "string" } }, "required": ["id", "severity", "message", "path", "fixHint"], "additionalProperties": false, "description": "Declared, not inferred from the schema below.\n\nA finding crosses an RPC boundary as part of the `getKnowledge` payload, and a `z.infer<>` is not a type a JSON-schema generator can walk: zod's inference bottoms out in `this` types, so ts-json-schema-generator fails outright on it. An interface generates. The `satisfies` is what keeps the two from drifting — a field added to one and not the other is a compile error." } } }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "secretId": { "type": "string" } }, "required": ["secretId"], "additionalProperties": false, "definitions": {} }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "exists": { "type": "boolean" }, "value": {} }, "required": ["exists", "value"], "additionalProperties": false, "definitions": {} }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "secretId": { "type": "string" } }, "required": ["secretId"], "additionalProperties": false, "definitions": {} }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "exists": { "type": "boolean" } }, "required": ["exists"], "additionalProperties": false, "definitions": {} }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "secretId": { "type": "string" }, "value": {} }, "required": ["secretId", "value"], "additionalProperties": false, "definitions": {} }
@@ -0,0 +1 @@
1
+ { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "success": { "type": "boolean" } }, "required": ["success"], "additionalProperties": false, "definitions": {} }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineScope } from '@pikku/core/scope';
5
5
  export type { CoreScopes, CoreScopeNode, FlatScope, ScopeDefinitionMeta, ScopeDefinitionsMeta } from '@pikku/core/scope';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineScope } from '@pikku/core/scope';
5
5
  export { defineSystemRole } from '@pikku/core/role';
@@ -46,22 +46,148 @@
46
46
  "displayName": "Pikku Console",
47
47
  "description": "The console's own administrative capabilities",
48
48
  "scopes": {
49
- "scopes": {
50
- "description": "Authorization management",
49
+ "console": {
50
+ "displayName": "Console",
51
+ "description": "Everything reachable through the console, by area",
51
52
  "scopes": {
52
- "read": {
53
- "description": "View declared scopes, roles, and who holds them"
53
+ "secrets": {
54
+ "description": "The application's secrets",
55
+ "scopes": {
56
+ "read": {
57
+ "description": "Read secret values and check whether one is set"
58
+ },
59
+ "write": {
60
+ "description": "Set and overwrite secret values"
61
+ }
62
+ }
54
63
  },
55
- "manage": {
56
- "description": "Create and delete roles, change their scopes, and grant roles to users"
57
- }
58
- }
59
- },
60
- "audit": {
61
- "description": "The audit trail",
62
- "scopes": {
63
- "read": {
64
- "description": "Read the audit trail — every recorded action, and which user took it"
64
+ "variables": {
65
+ "description": "The application's variables",
66
+ "scopes": {
67
+ "read": {
68
+ "description": "Read variable values"
69
+ },
70
+ "write": {
71
+ "description": "Set and overwrite variable values"
72
+ }
73
+ }
74
+ },
75
+ "addons": {
76
+ "description": "Installed and available addons",
77
+ "scopes": {
78
+ "read": {
79
+ "description": "Browse the addon catalogue and what this application has installed"
80
+ },
81
+ "install": {
82
+ "description": "Install an addon and write its wiring file — it runs code from the registry"
83
+ }
84
+ }
85
+ },
86
+ "credentials": {
87
+ "description": "Per-user and shared credentials",
88
+ "scopes": {
89
+ "read": {
90
+ "description": "Read credential values and who holds them"
91
+ },
92
+ "manage": {
93
+ "description": "Set and delete credentials"
94
+ }
95
+ }
96
+ },
97
+ "scopes": {
98
+ "description": "Authorization management",
99
+ "scopes": {
100
+ "read": {
101
+ "description": "View declared scopes, roles, and who holds them"
102
+ },
103
+ "manage": {
104
+ "description": "Create and delete roles, change their scopes, and grant roles to users"
105
+ }
106
+ }
107
+ },
108
+ "audit": {
109
+ "description": "The audit trail",
110
+ "scopes": {
111
+ "read": {
112
+ "description": "Read the audit trail — every recorded action, and which user took it"
113
+ }
114
+ }
115
+ },
116
+ "wirings": {
117
+ "description": "Wiring metadata and function source",
118
+ "scopes": {
119
+ "read": {
120
+ "description": "Read routes, channels, schemas, webhook deliveries and function source"
121
+ }
122
+ }
123
+ },
124
+ "security": {
125
+ "description": "The security audit",
126
+ "scopes": {
127
+ "read": {
128
+ "description": "Read the last security audit"
129
+ },
130
+ "run": {
131
+ "description": "Run the security audit"
132
+ }
133
+ }
134
+ },
135
+ "workflows": {
136
+ "description": "Workflow runs",
137
+ "scopes": {
138
+ "read": {
139
+ "description": "Read workflow runs and their steps"
140
+ },
141
+ "manage": {
142
+ "description": "Delete workflow runs"
143
+ }
144
+ }
145
+ },
146
+ "agents": {
147
+ "description": "AI agents and their threads",
148
+ "scopes": {
149
+ "read": {
150
+ "description": "Read agent threads, runs, and source"
151
+ },
152
+ "manage": {
153
+ "description": "Delete threads and change agent configuration"
154
+ }
155
+ }
156
+ },
157
+ "db": {
158
+ "description": "The database schema",
159
+ "scopes": {
160
+ "read": {
161
+ "description": "Read the schema the application runs on"
162
+ }
163
+ }
164
+ },
165
+ "knowledge": {
166
+ "description": "The knowledge notes",
167
+ "scopes": {
168
+ "read": {
169
+ "description": "Read the knowledge notes"
170
+ }
171
+ }
172
+ },
173
+ "emails": {
174
+ "description": "Email templates",
175
+ "scopes": {
176
+ "read": {
177
+ "description": "Render a template preview"
178
+ },
179
+ "write": {
180
+ "description": "Edit email templates"
181
+ }
182
+ }
183
+ },
184
+ "code": {
185
+ "description": "Editing the application source",
186
+ "scopes": {
187
+ "write": {
188
+ "description": "Rewrite function bodies and configuration, and change dependencies"
189
+ }
190
+ }
65
191
  }
66
192
  }
67
193
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * This file was generated by the @pikku/cli
@@ -12,7 +12,7 @@ import type { FlatScope } from '@pikku/core/scope';
12
12
  * matched against this by `verifyScopes` — `admin:*` on a session satisfies
13
13
  * any `admin:...` requirement.
14
14
  */
15
- export type ScopeId = 'admin' | 'admin:*' | 'admin:credentials' | 'admin:credentials:*' | 'admin:credentials:link' | 'admin:impersonate' | 'admin:users' | 'admin:users:*' | 'admin:users:ban' | 'admin:users:create' | 'admin:users:list' | 'admin:users:password' | 'admin:users:remove' | 'admin:users:sessions' | 'pikku' | 'pikku:*' | 'pikku:audit' | 'pikku:audit:*' | 'pikku:audit:read' | 'pikku:scopes' | 'pikku:scopes:*' | 'pikku:scopes:manage' | 'pikku:scopes:read';
15
+ export type ScopeId = 'admin' | 'admin:*' | 'admin:credentials' | 'admin:credentials:*' | 'admin:credentials:link' | 'admin:impersonate' | 'admin:users' | 'admin:users:*' | 'admin:users:ban' | 'admin:users:create' | 'admin:users:list' | 'admin:users:password' | 'admin:users:remove' | 'admin:users:sessions' | 'pikku' | 'pikku:*' | 'pikku:console' | 'pikku:console:*' | 'pikku:console:addons' | 'pikku:console:addons:*' | 'pikku:console:addons:install' | 'pikku:console:addons:read' | 'pikku:console:agents' | 'pikku:console:agents:*' | 'pikku:console:agents:manage' | 'pikku:console:agents:read' | 'pikku:console:audit' | 'pikku:console:audit:*' | 'pikku:console:audit:read' | 'pikku:console:code' | 'pikku:console:code:*' | 'pikku:console:code:write' | 'pikku:console:credentials' | 'pikku:console:credentials:*' | 'pikku:console:credentials:manage' | 'pikku:console:credentials:read' | 'pikku:console:db' | 'pikku:console:db:*' | 'pikku:console:db:read' | 'pikku:console:emails' | 'pikku:console:emails:*' | 'pikku:console:emails:read' | 'pikku:console:emails:write' | 'pikku:console:knowledge' | 'pikku:console:knowledge:*' | 'pikku:console:knowledge:read' | 'pikku:console:scopes' | 'pikku:console:scopes:*' | 'pikku:console:scopes:manage' | 'pikku:console:scopes:read' | 'pikku:console:secrets' | 'pikku:console:secrets:*' | 'pikku:console:secrets:read' | 'pikku:console:secrets:write' | 'pikku:console:security' | 'pikku:console:security:*' | 'pikku:console:security:read' | 'pikku:console:security:run' | 'pikku:console:variables' | 'pikku:console:variables:*' | 'pikku:console:variables:read' | 'pikku:console:variables:write' | 'pikku:console:wirings' | 'pikku:console:wirings:*' | 'pikku:console:wirings:read' | 'pikku:console:workflows' | 'pikku:console:workflows:*' | 'pikku:console:workflows:manage' | 'pikku:console:workflows:read';
16
16
  export interface ScopeMeta {
17
17
  id: ScopeId;
18
18
  displayName?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,mBAAmB,GACnB,qBAAqB,GACrB,wBAAwB,GACxB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,OAAO,GACP,SAAS,GACT,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,cAAc,GACd,gBAAgB,GAChB,qBAAqB,GACrB,mBAAmB,CAAA;AAEvB,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAOD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
1
+ {"version":3,"file":"pikku-scopes.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AACH,OAAO,KAAK,EAAE,SAAS,EAAwB,MAAM,mBAAmB,CAAA;AAIxE;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,mBAAmB,GACnB,qBAAqB,GACrB,wBAAwB,GACxB,mBAAmB,GACnB,aAAa,GACb,eAAe,GACf,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,OAAO,GACP,SAAS,GACT,eAAe,GACf,iBAAiB,GACjB,sBAAsB,GACtB,wBAAwB,GACxB,8BAA8B,GAC9B,2BAA2B,GAC3B,sBAAsB,GACtB,wBAAwB,GACxB,6BAA6B,GAC7B,2BAA2B,GAC3B,qBAAqB,GACrB,uBAAuB,GACvB,0BAA0B,GAC1B,oBAAoB,GACpB,sBAAsB,GACtB,0BAA0B,GAC1B,2BAA2B,GAC3B,6BAA6B,GAC7B,kCAAkC,GAClC,gCAAgC,GAChC,kBAAkB,GAClB,oBAAoB,GACpB,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,GACxB,2BAA2B,GAC3B,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAC3B,8BAA8B,GAC9B,sBAAsB,GACtB,wBAAwB,GACxB,6BAA6B,GAC7B,2BAA2B,GAC3B,uBAAuB,GACvB,yBAAyB,GACzB,4BAA4B,GAC5B,6BAA6B,GAC7B,wBAAwB,GACxB,0BAA0B,GAC1B,6BAA6B,GAC7B,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAC3B,8BAA8B,GAC9B,+BAA+B,GAC/B,uBAAuB,GACvB,yBAAyB,GACzB,4BAA4B,GAC5B,yBAAyB,GACzB,2BAA2B,GAC3B,gCAAgC,GAChC,8BAA8B,CAAA;AAElC,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,SAAS,EAE7B,CAAA;AAOD,2EAA2E;AAC3E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAWjD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAwC5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B;IAC5C,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,eAAe;CACzB,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}
1
+ {"version":3,"file":"pikku-scopes.gen.js","sourceRoot":"","sources":["../../../.pikku/scopes/pikku-scopes.gen.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,WAAW,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAsF5E;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,MAAM,GAAgB,uBAAuB,CACxD,MAAM,CAAC,MAAM,CAAC,WAAmC,CAAC,CACnD,CAAA;AAED,MAAM,aAAa,GAA2B;IAC5C,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,eAAe;CACzB,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,WAAW,GAA8B,MAAM,CAAC,WAAW,CACtE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE;IACR;QACE,EAAE,EAAE,KAAK,CAAC,EAAa;QACvB,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE;YAC1C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE;CACF,CAAC,CACH,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
5
5
  export type { CoreSecret, SecretDefinitionMeta, SecretDefinitionsMeta } from '@pikku/core/secret';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineSecret } from '@pikku/core/secret';
5
5
  //# sourceMappingURL=pikku-secret-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import type { SecretService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  import { TypedSecretService as CoreTypedSecretService } from '@pikku/core/services';
5
5
  import secretsMeta from './pikku-secrets-meta.gen.json' with { type: 'json' };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * Trigger-specific type definitions for tree-shaking optimization
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  export type { CoreVariable, VariableDefinitionMeta, VariableDefinitionsMeta } from '@pikku/core/variable';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  export { defineVariable } from '@pikku/core/variable';
5
5
  //# sourceMappingURL=pikku-variable-types.gen.js.map
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import type { VariablesService } from '@pikku/core/services';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  import { TypedVariablesService as CoreTypedVariablesService } from '@pikku/core/services';
5
5
  import variablesMeta from './pikku-variables-meta.gen.json' with { type: 'json' };
@@ -1,4 +1,5 @@
1
- import type { HttpPersonasConfig, ScenarioPersona, ResolvedPersona } from '@pikku/core/services';
1
+ import type { HttpPersonasConfig } from '@pikku/core/persona';
2
+ import type { ScenarioPersona, ResolvedPersona } from '@pikku/core/services';
2
3
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js';
3
4
  import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.gen.d.js';
4
5
  export declare const personaConfigs: {};
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,cAAc,IAAwD,CAAA;AAEnF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,EAAkC,CAAA;AAE3E,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,CAC5C,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,SAAS,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,KAC5C,aAIkB,CAAA"}
1
+ {"version":3,"file":"pikku-personas.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAE5E,eAAO,MAAM,cAAc,IAAwD,CAAA;AAEnF,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,cAAc,CAAA;AAErD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,EAAkC,CAAA;AAE3E,MAAM,MAAM,SAAS,GAAG,MAAM,QAAQ,GAAG,MAAM,CAAA;AAC/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,WAAW,EACX,eAAe,CAAC,SAAS,EAAE,eAAe,CAAC,CAC5C,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,SAAS,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,KAC5C,aAIkB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /** Personas declared with definePersonas() */
5
5
  import { createHttpPersonas } from '@pikku/core/persona';
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8CAA8C;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AASxD,MAAM,CAAC,MAAM,cAAc,GAAG,EAAqD,CAAA;AAInF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAQ3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA6C,EAC9B,EAAE,CACjB,kBAAkB,CAAC;IACjB,GAAG,OAAO;IACV,QAAQ,EAAE,cAAc;CACzB,CAAkB,CAAA"}
1
+ {"version":3,"file":"pikku-personas.gen.js","sourceRoot":"","sources":["../../../.pikku/workflow/pikku-personas.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,8CAA8C;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAMxD,MAAM,CAAC,MAAM,cAAc,GAAG,EAAqD,CAAA;AAInF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAsB,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAQ3E,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA6C,EAC9B,EAAE,CACjB,kBAAkB,CAAC;IACjB,GAAG,OAAO;IACV,QAAQ,EAAE,cAAc;CACzB,CAAkB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * Scenario step map: the names `scenario.given/when/then` accepts, with
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.99
2
+ * This file was generated by @pikku/cli@0.12.104
3
3
  */
4
4
  /**
5
5
  * Workflow type map with input/output types for each workflow