@pikku/addon-console 0.12.38 → 0.12.40

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 (400) 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 +191 -18
  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 +141 -15
  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.gen.d.ts +1 -1
  88. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  89. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  90. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  91. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  92. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  93. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  94. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  95. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  96. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  97. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  98. package/dist/.pikku/workflow/pikku-personas.gen.js +1 -1
  99. package/dist/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +1 -1
  100. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +1 -1
  101. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +18 -10
  102. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  103. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  104. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  105. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +2 -2
  106. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -1
  107. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  108. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  109. package/dist/src/functions/agent-credential-check.function.d.ts +1 -1
  110. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -1
  111. package/dist/src/functions/agent-credential-check.function.js +1 -1
  112. package/dist/src/functions/agent-credential-check.function.js.map +1 -1
  113. package/dist/src/functions/credential-delete.function.d.ts +1 -1
  114. package/dist/src/functions/credential-delete.function.d.ts.map +1 -1
  115. package/dist/src/functions/credential-get.function.d.ts +1 -1
  116. package/dist/src/functions/credential-get.function.d.ts.map +1 -1
  117. package/dist/src/functions/credential-list-users.function.d.ts +1 -1
  118. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -1
  119. package/dist/src/functions/credential-set.function.d.ts +1 -1
  120. package/dist/src/functions/credential-set.function.d.ts.map +1 -1
  121. package/dist/src/functions/credential-status.function.d.ts +1 -1
  122. package/dist/src/functions/credential-status.function.d.ts.map +1 -1
  123. package/dist/src/functions/credential-users.function.d.ts +1 -1
  124. package/dist/src/functions/credential-users.function.d.ts.map +1 -1
  125. package/dist/src/functions/delete-agent-thread.function.d.ts +1 -1
  126. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  127. package/dist/src/functions/delete-workflow-run.function.d.ts +1 -1
  128. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  129. package/dist/src/functions/get-addon-categories.function.d.ts +1 -1
  130. package/dist/src/functions/get-addon-categories.function.d.ts.map +1 -1
  131. package/dist/src/functions/get-addon-icon.function.d.ts +1 -1
  132. package/dist/src/functions/get-addon-icon.function.d.ts.map +1 -1
  133. package/dist/src/functions/get-addon-instances.function.d.ts +1 -1
  134. package/dist/src/functions/get-addon-instances.function.d.ts.map +1 -1
  135. package/dist/src/functions/get-addon-instances.function.js +1 -1
  136. package/dist/src/functions/get-addon-instances.function.js.map +1 -1
  137. package/dist/src/functions/get-addon-meta.function.d.ts +1 -1
  138. package/dist/src/functions/get-addon-meta.function.d.ts.map +1 -1
  139. package/dist/src/functions/get-addon-package.function.d.ts +1 -1
  140. package/dist/src/functions/get-addon-package.function.d.ts.map +1 -1
  141. package/dist/src/functions/get-agent-run-scores.function.d.ts +8 -0
  142. package/dist/src/functions/get-agent-run-scores.function.d.ts.map +1 -0
  143. package/dist/src/functions/get-agent-run-scores.function.js +24 -0
  144. package/dist/src/functions/get-agent-run-scores.function.js.map +1 -0
  145. package/dist/src/functions/get-agent-run-scores.function.test.d.ts +2 -0
  146. package/dist/src/functions/get-agent-run-scores.function.test.d.ts.map +1 -0
  147. package/dist/src/functions/get-agent-run-scores.function.test.js +34 -0
  148. package/dist/src/functions/get-agent-run-scores.function.test.js.map +1 -0
  149. package/dist/src/functions/get-agent-thread-messages.function.d.ts +1 -1
  150. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  151. package/dist/src/functions/get-agent-thread-runs.function.d.ts +1 -1
  152. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  153. package/dist/src/functions/get-agent-thread-runs.function.js +14 -3
  154. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  155. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts +2 -0
  156. package/dist/src/functions/get-agent-thread-runs.function.test.d.ts.map +1 -0
  157. package/dist/src/functions/get-agent-thread-runs.function.test.js +27 -0
  158. package/dist/src/functions/get-agent-thread-runs.function.test.js.map +1 -0
  159. package/dist/src/functions/get-agent-threads.function.d.ts +1 -1
  160. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  161. package/dist/src/functions/get-all-meta.function.d.ts +1 -1
  162. package/dist/src/functions/get-all-meta.function.d.ts.map +1 -1
  163. package/dist/src/functions/get-audit-filters.function.d.ts +1 -1
  164. package/dist/src/functions/get-audit-filters.function.d.ts.map +1 -1
  165. package/dist/src/functions/get-audits.function.d.ts +1 -1
  166. package/dist/src/functions/get-audits.function.d.ts.map +1 -1
  167. package/dist/src/functions/get-auth-providers.function.d.ts +1 -1
  168. package/dist/src/functions/get-auth-providers.function.d.ts.map +1 -1
  169. package/dist/src/functions/get-channel-snippets.function.d.ts +1 -1
  170. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  171. package/dist/src/functions/get-db-schema.function.d.ts +1 -1
  172. package/dist/src/functions/get-db-schema.function.d.ts.map +1 -1
  173. package/dist/src/functions/get-functions-meta.function.d.ts +1 -1
  174. package/dist/src/functions/get-functions-meta.function.d.ts.map +1 -1
  175. package/dist/src/functions/get-installed-addons.function.d.ts +1 -1
  176. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  177. package/dist/src/functions/get-installed-addons.function.js +1 -1
  178. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  179. package/dist/src/functions/get-installed-package.function.d.ts +1 -1
  180. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  181. package/dist/src/functions/get-installed-package.function.js +1 -1
  182. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  183. package/dist/src/functions/get-knowledge.function.d.ts +1 -1
  184. package/dist/src/functions/get-knowledge.function.d.ts.map +1 -1
  185. package/dist/src/functions/get-my-access.function.d.ts +1 -1
  186. package/dist/src/functions/get-my-access.function.d.ts.map +1 -1
  187. package/dist/src/functions/get-openapi-categories.function.d.ts +1 -1
  188. package/dist/src/functions/get-openapi-categories.function.d.ts.map +1 -1
  189. package/dist/src/functions/get-openapi-detail.function.d.ts +1 -1
  190. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -1
  191. package/dist/src/functions/get-openapis.function.d.ts +1 -1
  192. package/dist/src/functions/get-openapis.function.d.ts.map +1 -1
  193. package/dist/src/functions/get-schema.function.d.ts +1 -1
  194. package/dist/src/functions/get-schema.function.d.ts.map +1 -1
  195. package/dist/src/functions/get-scorers.function.d.ts +13 -0
  196. package/dist/src/functions/get-scorers.function.d.ts.map +1 -0
  197. package/dist/src/functions/get-scorers.function.js +25 -0
  198. package/dist/src/functions/get-scorers.function.js.map +1 -0
  199. package/dist/src/functions/get-security-audit.function.d.ts +1 -1
  200. package/dist/src/functions/get-security-audit.function.d.ts.map +1 -1
  201. package/dist/src/functions/get-state-diff.function.d.ts +1 -1
  202. package/dist/src/functions/get-state-diff.function.d.ts.map +1 -1
  203. package/dist/src/functions/get-webhook-delivery.function.d.ts +1 -1
  204. package/dist/src/functions/get-webhook-delivery.function.d.ts.map +1 -1
  205. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +1 -1
  206. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  207. package/dist/src/functions/get-workflow-run-history.function.d.ts +1 -1
  208. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  209. package/dist/src/functions/get-workflow-run-names.function.d.ts +1 -1
  210. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  211. package/dist/src/functions/get-workflow-run-steps.function.d.ts +1 -1
  212. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  213. package/dist/src/functions/get-workflow-run.function.d.ts +1 -1
  214. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  215. package/dist/src/functions/get-workflow-runs.function.d.ts +1 -1
  216. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  217. package/dist/src/functions/get-workflow-version.function.d.ts +1 -1
  218. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  219. package/dist/src/functions/install-addon.function.d.ts +1 -1
  220. package/dist/src/functions/install-addon.function.d.ts.map +1 -1
  221. package/dist/src/functions/install-openapi-addon.function.d.ts +1 -1
  222. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -1
  223. package/dist/src/functions/list-webhook-deliveries.function.d.ts +1 -1
  224. package/dist/src/functions/list-webhook-deliveries.function.d.ts.map +1 -1
  225. package/dist/src/functions/ping.function.d.ts +1 -1
  226. package/dist/src/functions/ping.function.d.ts.map +1 -1
  227. package/dist/src/functions/read-agent-source.function.d.ts +1 -1
  228. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -1
  229. package/dist/src/functions/read-function-body.function.d.ts +1 -1
  230. package/dist/src/functions/read-function-body.function.d.ts.map +1 -1
  231. package/dist/src/functions/read-function-source.function.d.ts +1 -1
  232. package/dist/src/functions/read-function-source.function.d.ts.map +1 -1
  233. package/dist/src/functions/render-email-preview.function.d.ts +1 -1
  234. package/dist/src/functions/render-email-preview.function.d.ts.map +1 -1
  235. package/dist/src/functions/run-security-audit.function.d.ts +1 -1
  236. package/dist/src/functions/run-security-audit.function.d.ts.map +1 -1
  237. package/dist/src/functions/scope-add-scope-to-user.function.d.ts +1 -1
  238. package/dist/src/functions/scope-add-scope-to-user.function.d.ts.map +1 -1
  239. package/dist/src/functions/scope-add-user-to-role.function.d.ts +1 -1
  240. package/dist/src/functions/scope-add-user-to-role.function.d.ts.map +1 -1
  241. package/dist/src/functions/scope-create-role.function.d.ts +1 -1
  242. package/dist/src/functions/scope-create-role.function.d.ts.map +1 -1
  243. package/dist/src/functions/scope-delete-role.function.d.ts +1 -1
  244. package/dist/src/functions/scope-delete-role.function.d.ts.map +1 -1
  245. package/dist/src/functions/scope-list-declared.function.d.ts +1 -1
  246. package/dist/src/functions/scope-list-declared.function.d.ts.map +1 -1
  247. package/dist/src/functions/scope-list-roles.function.d.ts +1 -1
  248. package/dist/src/functions/scope-list-roles.function.d.ts.map +1 -1
  249. package/dist/src/functions/scope-list-user-roles.function.d.ts +1 -1
  250. package/dist/src/functions/scope-list-user-roles.function.d.ts.map +1 -1
  251. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts +1 -1
  252. package/dist/src/functions/scope-remove-scope-from-user.function.d.ts.map +1 -1
  253. package/dist/src/functions/scope-remove-user-from-role.function.d.ts +1 -1
  254. package/dist/src/functions/scope-remove-user-from-role.function.d.ts.map +1 -1
  255. package/dist/src/functions/scope-set-role-scopes.function.d.ts +1 -1
  256. package/dist/src/functions/scope-set-role-scopes.function.d.ts.map +1 -1
  257. package/dist/src/functions/secret-get.function.d.ts +17 -0
  258. package/dist/src/functions/secret-get.function.d.ts.map +1 -0
  259. package/dist/src/functions/secret-get.function.js +10 -0
  260. package/dist/src/functions/secret-get.function.js.map +1 -0
  261. package/dist/src/functions/secret-has.function.d.ts +14 -0
  262. package/dist/src/functions/secret-has.function.d.ts.map +1 -0
  263. package/dist/src/functions/secret-has.function.js +11 -0
  264. package/dist/src/functions/secret-has.function.js.map +1 -0
  265. package/dist/src/functions/secret-set.function.d.ts +17 -0
  266. package/dist/src/functions/secret-set.function.d.ts.map +1 -0
  267. package/dist/src/functions/secret-set.function.js +11 -0
  268. package/dist/src/functions/secret-set.function.js.map +1 -0
  269. package/dist/src/functions/stream-workflow-run.function.d.ts +1 -1
  270. package/dist/src/functions/update-agent-config.function.d.ts +1 -1
  271. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -1
  272. package/dist/src/functions/update-dependency.function.d.ts +1 -1
  273. package/dist/src/functions/update-dependency.function.d.ts.map +1 -1
  274. package/dist/src/functions/update-email-template.function.d.ts +1 -1
  275. package/dist/src/functions/update-email-template.function.d.ts.map +1 -1
  276. package/dist/src/functions/update-function-body.function.d.ts +1 -1
  277. package/dist/src/functions/update-function-body.function.d.ts.map +1 -1
  278. package/dist/src/functions/update-function-config.function.d.ts +1 -1
  279. package/dist/src/functions/update-function-config.function.d.ts.map +1 -1
  280. package/dist/src/services/secret-admin.service.d.ts +20 -0
  281. package/dist/src/services/secret-admin.service.d.ts.map +1 -0
  282. package/dist/src/services/secret-admin.service.js +27 -0
  283. package/dist/src/services/secret-admin.service.js.map +1 -0
  284. package/dist/src/services/secret-admin.service.test.d.ts +2 -0
  285. package/dist/src/services/secret-admin.service.test.d.ts.map +1 -0
  286. package/dist/src/services/secret-admin.service.test.js +69 -0
  287. package/dist/src/services/secret-admin.service.test.js.map +1 -0
  288. package/dist/src/services.d.ts.map +1 -1
  289. package/dist/src/services.js +4 -1
  290. package/dist/src/services.js.map +1 -1
  291. package/dist/types/application-types.d.ts +43 -0
  292. package/package.json +9 -9
  293. package/dist/.pikku/schemas/schemas/FunctionCoverageReport.schema.json +0 -1
  294. package/dist/.pikku/schemas/schemas/GetAIWorkflowsInput.schema.json +0 -1
  295. package/dist/.pikku/schemas/schemas/GetAIWorkflowsOutput.schema.json +0 -1
  296. package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +0 -1
  297. package/dist/.pikku/schemas/schemas/GetStubCallsInput.schema.json +0 -1
  298. package/dist/.pikku/schemas/schemas/GetStubCallsOutput.schema.json +0 -1
  299. package/dist/.pikku/schemas/schemas/OauthConnectInput.schema.json +0 -1
  300. package/dist/.pikku/schemas/schemas/OauthConnectOutput.schema.json +0 -1
  301. package/dist/.pikku/schemas/schemas/OauthDisconnectInput.schema.json +0 -1
  302. package/dist/.pikku/schemas/schemas/OauthExchangeTokensInput.schema.json +0 -1
  303. package/dist/.pikku/schemas/schemas/OauthExchangeTokensOutput.schema.json +0 -1
  304. package/dist/.pikku/schemas/schemas/OauthRefreshTokenInput.schema.json +0 -1
  305. package/dist/.pikku/schemas/schemas/OauthRefreshTokenOutput.schema.json +0 -1
  306. package/dist/.pikku/schemas/schemas/OauthStatusInput.schema.json +0 -1
  307. package/dist/.pikku/schemas/schemas/OauthStatusOutput.schema.json +0 -1
  308. package/dist/.pikku/schemas/schemas/OauthTestTokenInput.schema.json +0 -1
  309. package/dist/.pikku/schemas/schemas/OauthTestTokenOutput.schema.json +0 -1
  310. package/dist/.pikku/schemas/schemas/ResetLiveCoverageOutput.schema.json +0 -1
  311. package/dist/.pikku/schemas/schemas/ResetStubsOutput.schema.json +0 -1
  312. package/dist/.pikku/schemas/schemas/StreamFunctionTestsOutput.schema.json +0 -1
  313. package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts +0 -20
  314. package/dist/.pikku/workflow/pikku-scenario-actors.gen.d.ts.map +0 -1
  315. package/dist/.pikku/workflow/pikku-scenario-actors.gen.js +0 -18
  316. package/dist/.pikku/workflow/pikku-scenario-actors.gen.js.map +0 -1
  317. package/dist/src/functions/get-ai-workflows.function.d.ts +0 -20
  318. package/dist/src/functions/get-ai-workflows.function.d.ts.map +0 -1
  319. package/dist/src/functions/get-ai-workflows.function.js +0 -10
  320. package/dist/src/functions/get-ai-workflows.function.js.map +0 -1
  321. package/dist/src/functions/get-function-coverage.function.d.ts +0 -26
  322. package/dist/src/functions/get-function-coverage.function.d.ts.map +0 -1
  323. package/dist/src/functions/get-function-coverage.function.js +0 -21
  324. package/dist/src/functions/get-function-coverage.function.js.map +0 -1
  325. package/dist/src/functions/get-stub-calls.function.d.ts +0 -13
  326. package/dist/src/functions/get-stub-calls.function.d.ts.map +0 -1
  327. package/dist/src/functions/get-stub-calls.function.js +0 -11
  328. package/dist/src/functions/get-stub-calls.function.js.map +0 -1
  329. package/dist/src/functions/oauth-connect.function.d.ts +0 -20
  330. package/dist/src/functions/oauth-connect.function.d.ts.map +0 -1
  331. package/dist/src/functions/oauth-connect.function.js +0 -44
  332. package/dist/src/functions/oauth-connect.function.js.map +0 -1
  333. package/dist/src/functions/oauth-disconnect.function.d.ts +0 -8
  334. package/dist/src/functions/oauth-disconnect.function.d.ts.map +0 -1
  335. package/dist/src/functions/oauth-disconnect.function.js +0 -25
  336. package/dist/src/functions/oauth-disconnect.function.js.map +0 -1
  337. package/dist/src/functions/oauth-exchange-tokens.function.d.ts +0 -17
  338. package/dist/src/functions/oauth-exchange-tokens.function.d.ts.map +0 -1
  339. package/dist/src/functions/oauth-exchange-tokens.function.js +0 -25
  340. package/dist/src/functions/oauth-exchange-tokens.function.js.map +0 -1
  341. package/dist/src/functions/oauth-refresh-token.function.d.ts +0 -17
  342. package/dist/src/functions/oauth-refresh-token.function.d.ts.map +0 -1
  343. package/dist/src/functions/oauth-refresh-token.function.js +0 -28
  344. package/dist/src/functions/oauth-refresh-token.function.js.map +0 -1
  345. package/dist/src/functions/oauth-status.function.d.ts +0 -23
  346. package/dist/src/functions/oauth-status.function.d.ts.map +0 -1
  347. package/dist/src/functions/oauth-status.function.js +0 -44
  348. package/dist/src/functions/oauth-status.function.js.map +0 -1
  349. package/dist/src/functions/oauth-test-token.function.d.ts +0 -17
  350. package/dist/src/functions/oauth-test-token.function.d.ts.map +0 -1
  351. package/dist/src/functions/oauth-test-token.function.js +0 -27
  352. package/dist/src/functions/oauth-test-token.function.js.map +0 -1
  353. package/dist/src/functions/reset-live-coverage.function.d.ts +0 -8
  354. package/dist/src/functions/reset-live-coverage.function.d.ts.map +0 -1
  355. package/dist/src/functions/reset-live-coverage.function.js +0 -13
  356. package/dist/src/functions/reset-live-coverage.function.js.map +0 -1
  357. package/dist/src/functions/reset-stubs.function.d.ts +0 -8
  358. package/dist/src/functions/reset-stubs.function.d.ts.map +0 -1
  359. package/dist/src/functions/reset-stubs.function.js +0 -12
  360. package/dist/src/functions/reset-stubs.function.js.map +0 -1
  361. package/dist/src/functions/run-function-tests.function.d.ts +0 -3
  362. package/dist/src/functions/run-function-tests.function.d.ts.map +0 -1
  363. package/dist/src/functions/run-function-tests.function.js +0 -67
  364. package/dist/src/functions/run-function-tests.function.js.map +0 -1
  365. package/dist/src/functions/stream-function-tests.function.d.ts +0 -37
  366. package/dist/src/functions/stream-function-tests.function.d.ts.map +0 -1
  367. package/dist/src/functions/stream-function-tests.function.js +0 -258
  368. package/dist/src/functions/stream-function-tests.function.js.map +0 -1
  369. package/dist/src/functions/stream-function-tests.function.test.d.ts +0 -2
  370. package/dist/src/functions/stream-function-tests.function.test.d.ts.map +0 -1
  371. package/dist/src/functions/stream-function-tests.function.test.js +0 -238
  372. package/dist/src/functions/stream-function-tests.function.test.js.map +0 -1
  373. package/dist/src/functions/take-live-coverage.function.d.ts +0 -3
  374. package/dist/src/functions/take-live-coverage.function.d.ts.map +0 -1
  375. package/dist/src/functions/take-live-coverage.function.js +0 -27
  376. package/dist/src/functions/take-live-coverage.function.js.map +0 -1
  377. package/dist/src/lib/coverage-types.d.ts +0 -25
  378. package/dist/src/lib/coverage-types.d.ts.map +0 -1
  379. package/dist/src/lib/coverage-types.js +0 -2
  380. package/dist/src/lib/coverage-types.js.map +0 -1
  381. package/dist/src/lib/function-tests-paths.d.ts +0 -14
  382. package/dist/src/lib/function-tests-paths.d.ts.map +0 -1
  383. package/dist/src/lib/function-tests-paths.js +0 -22
  384. package/dist/src/lib/function-tests-paths.js.map +0 -1
  385. package/dist/src/lib/precise-coverage-map.d.ts +0 -30
  386. package/dist/src/lib/precise-coverage-map.d.ts.map +0 -1
  387. package/dist/src/lib/precise-coverage-map.js +0 -177
  388. package/dist/src/lib/precise-coverage-map.js.map +0 -1
  389. package/dist/src/lib/precise-coverage-map.test.d.ts +0 -2
  390. package/dist/src/lib/precise-coverage-map.test.d.ts.map +0 -1
  391. package/dist/src/lib/precise-coverage-map.test.js +0 -153
  392. package/dist/src/lib/precise-coverage-map.test.js.map +0 -1
  393. package/dist/src/services/oauth.service.d.ts +0 -17
  394. package/dist/src/services/oauth.service.d.ts.map +0 -1
  395. package/dist/src/services/oauth.service.js +0 -26
  396. package/dist/src/services/oauth.service.js.map +0 -1
  397. package/dist/src/tests/test-oauth2-client.d.ts +0 -6
  398. package/dist/src/tests/test-oauth2-client.d.ts.map +0 -1
  399. package/dist/src/tests/test-oauth2-client.js +0 -139
  400. package/dist/src/tests/test-oauth2-client.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"reset-live-coverage.function.js","sourceRoot":"","sources":["../../../src/functions/reset-live-coverage.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAElC,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAA6B;IACrE,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EACT,sMAAsM;IACxM,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,EAAE;QAClC,IAAI,CAAC,eAAe;YAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;QAC/C,MAAM,eAAe,CAAC,KAAK,EAAE,CAAA;QAC7B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC1B,CAAC;CACF,CAAC,CAAA"}
@@ -1,8 +0,0 @@
1
- export declare const resetStubs: import("#pikku").PikkuFunctionConfig<null, {
2
- enabled: boolean;
3
- }, "rpc" | "session", import("#pikku").PikkuFunction<null, {
4
- enabled: boolean;
5
- }, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<null, {
6
- enabled: boolean;
7
- }, "rpc" | "session", import("#pikku").Services>, undefined, undefined>;
8
- //# sourceMappingURL=reset-stubs.function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reset-stubs.function.d.ts","sourceRoot":"","sources":["../../../src/functions/reset-stubs.function.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;aAA8B,OAAO;;aAAP,OAAO;;aAAP,OAAO;uEAS1D,CAAA"}
@@ -1,12 +0,0 @@
1
- import { pikkuFunc } from '#pikku';
2
- import { getStubTracker, isTestRun } from '@pikku/core/services';
3
- export const resetStubs = pikkuFunc({
4
- title: 'Reset Stubs',
5
- description: 'Clears recorded stub calls so the next getStubCalls result is attributable to a single scenario run. Reports enabled: false when the server was not started in test mode.',
6
- expose: true,
7
- func: async () => {
8
- getStubTracker().reset();
9
- return { enabled: isTestRun() };
10
- },
11
- });
12
- //# sourceMappingURL=reset-stubs.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"reset-stubs.function.js","sourceRoot":"","sources":["../../../src/functions/reset-stubs.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAA6B;IAC9D,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,2KAA2K;IAC7K,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,cAAc,EAAE,CAAC,KAAK,EAAE,CAAA;QACxB,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAA;IACjC,CAAC;CACF,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { FunctionCoverageReport } from './get-function-coverage.function.js';
2
- export declare const runFunctionTests: import("#pikku").PikkuFunctionConfig<null, FunctionCoverageReport | null, "rpc" | "session", import("#pikku").PikkuFunction<null, FunctionCoverageReport | null, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunctionSessionless<null, FunctionCoverageReport | null, "rpc" | "session", import("#pikku").Services>, undefined, undefined>;
3
- //# sourceMappingURL=run-function-tests.function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-function-tests.function.d.ts","sourceRoot":"","sources":["../../../src/functions/run-function-tests.function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAejF,eAAO,MAAM,gBAAgB,sWAwD3B,CAAA"}
@@ -1,67 +0,0 @@
1
- import { existsSync, readFileSync } from 'node:fs';
2
- import { join, dirname } from 'node:path';
3
- import { spawn } from 'node:child_process';
4
- import { pikkuFunc } from '#pikku';
5
- import { NotFoundError } from '@pikku/core';
6
- import { resolveFunctionsDir } from '../lib/function-tests-paths.js';
7
- function findBin(name, searchFrom) {
8
- let dir = searchFrom;
9
- for (let i = 0; i < 6; i++) {
10
- const candidate = join(dir, 'node_modules', '.bin', name);
11
- if (existsSync(candidate))
12
- return candidate;
13
- const parent = dirname(dir);
14
- if (parent === dir)
15
- break;
16
- dir = parent;
17
- }
18
- return name;
19
- }
20
- export const runFunctionTests = pikkuFunc({
21
- title: 'Run Function Tests',
22
- description: 'Runs the function-tests suite under c8 and returns the updated coverage report.',
23
- expose: true,
24
- func: async ({ metaService }) => {
25
- if (!metaService?.basePath) {
26
- throw new Error('Meta service is not configured. Ensure the console addon is set up with a MetaService.');
27
- }
28
- const functionsDir = resolveFunctionsDir(metaService.basePath);
29
- const ftestDir = join(functionsDir, 'tests');
30
- if (!existsSync(ftestDir)) {
31
- throw new NotFoundError('No tests found. Add a tests directory to your project first — see the test-harness template for an example.');
32
- }
33
- const pikku = findBin('pikku', functionsDir);
34
- const spawnEnv = { ...process.env };
35
- const envFile = join(ftestDir, '.env.test');
36
- if (existsSync(envFile)) {
37
- for (const line of readFileSync(envFile, 'utf8').split('\n')) {
38
- const trimmed = line.trim();
39
- if (!trimmed || trimmed.startsWith('#'))
40
- continue;
41
- const eq = trimmed.indexOf('=');
42
- if (eq < 0)
43
- continue;
44
- spawnEnv[trimmed.slice(0, eq).trim()] = trimmed
45
- .slice(eq + 1)
46
- .trim()
47
- .replace(/^['"]|['"]$/g, '');
48
- }
49
- }
50
- await new Promise((resolve, reject) => {
51
- const proc = spawn(process.execPath, [pikku, 'tests', 'coverage'], {
52
- cwd: functionsDir,
53
- env: spawnEnv,
54
- stdio: 'ignore',
55
- });
56
- proc.on('close', (code) => code === 0
57
- ? resolve()
58
- : reject(new Error(`tests failed (exit ${code})`)));
59
- proc.on('error', reject);
60
- });
61
- const outFile = join(ftestDir, '.coverage', 'function-coverage.json');
62
- if (!existsSync(outFile))
63
- return null;
64
- return JSON.parse(readFileSync(outFile, 'utf-8'));
65
- },
66
- });
67
- //# sourceMappingURL=run-function-tests.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"run-function-tests.function.js","sourceRoot":"","sources":["../../../src/functions/run-function-tests.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM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AI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;QAC1B,CAAC,CAAC,CAAA;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,wBAAwB,CAAC,CAAA;QACrE,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAAE,OAAO,IAAI,CAAA;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAA2B,CAAA;IAC7E,CAAC;CACF,CAAC,CAAA"}
@@ -1,37 +0,0 @@
1
- import type { FunctionCoverageReport } from './get-function-coverage.function.js';
2
- type CucumberStatus = 'PASSED' | 'FAILED' | 'SKIPPED' | 'PENDING' | 'UNDEFINED' | 'AMBIGUOUS';
3
- export type TestStreamEvent = {
4
- type: 'run-start';
5
- scenarios: Array<{
6
- id: string;
7
- name: string;
8
- uri: string;
9
- steps: string[];
10
- }>;
11
- } | {
12
- type: 'scenario-start';
13
- id: string;
14
- name: string;
15
- uri: string;
16
- } | {
17
- type: 'step';
18
- scenarioId: string;
19
- step: string;
20
- status: CucumberStatus;
21
- duration: number;
22
- message?: string;
23
- } | {
24
- type: 'scenario-done';
25
- id: string;
26
- name: string;
27
- status: CucumberStatus;
28
- } | {
29
- type: 'done';
30
- coverage: FunctionCoverageReport | null;
31
- } | {
32
- type: 'error';
33
- message: string;
34
- };
35
- export declare const streamFunctionTests: import("#pikku").PikkuFunctionConfig<null, TestStreamEvent, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<null, TestStreamEvent, "rpc" | "session", import("#pikku").Services> | import("#pikku").PikkuFunction<null, TestStreamEvent, "rpc" | "session", import("#pikku").Services>, undefined, undefined>;
36
- export {};
37
- //# sourceMappingURL=stream-function-tests.function.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream-function-tests.function.d.ts","sourceRoot":"","sources":["../../../src/functions/stream-function-tests.function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAejF,KAAK,cAAc,GACf,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,CAAA;AAef,MAAM,MAAM,eAAe,GACvB;IACE,IAAI,EAAE,WAAW,CAAA;IACjB,SAAS,EAAE,KAAK,CAAC;QACf,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,EAAE,MAAM,EAAE,CAAA;KAChB,CAAC,CAAA;CACH,GACD;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACjE;IACE,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,cAAc,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,GACD;IAAE,IAAI,EAAE,eAAe,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,cAAc,CAAA;CAAE,GAC3E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAAA;CAAE,GACzD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAA;AAEtC,eAAO,MAAM,mBAAmB,4TAoQ9B,CAAA"}
@@ -1,258 +0,0 @@
1
- import { existsSync, readFileSync } from 'node:fs';
2
- import { join, dirname } from 'node:path';
3
- import { spawn } from 'node:child_process';
4
- import { pikkuSessionlessFunc } from '#pikku';
5
- import { NotFoundError } from '@pikku/core';
6
- import { resolveFunctionsDir } from '../lib/function-tests-paths.js';
7
- function findBin(name, searchFrom) {
8
- let dir = searchFrom;
9
- for (let i = 0; i < 6; i++) {
10
- const candidate = join(dir, 'node_modules', '.bin', name);
11
- if (existsSync(candidate))
12
- return candidate;
13
- const parent = dirname(dir);
14
- if (parent === dir)
15
- break;
16
- dir = parent;
17
- }
18
- return name;
19
- }
20
- const STATUS_RANK = {
21
- PASSED: 0,
22
- SKIPPED: 1,
23
- PENDING: 2,
24
- UNDEFINED: 3,
25
- AMBIGUOUS: 4,
26
- FAILED: 5,
27
- };
28
- function worstStatus(a, b) {
29
- return STATUS_RANK[a] >= STATUS_RANK[b] ? a : b;
30
- }
31
- export const streamFunctionTests = pikkuSessionlessFunc({
32
- title: 'Stream Function Tests',
33
- description: 'SSE stream of structured per-scenario test events and final coverage report.',
34
- expose: false,
35
- auth: false,
36
- func: async ({ metaService }, _, { channel }) => {
37
- if (!channel)
38
- return;
39
- if (!metaService?.basePath) {
40
- channel.send({
41
- type: 'error',
42
- message: 'Meta service is not configured.',
43
- });
44
- channel.close();
45
- return;
46
- }
47
- const functionsDir = resolveFunctionsDir(metaService.basePath);
48
- const ftestDir = join(functionsDir, 'tests');
49
- if (!existsSync(ftestDir)) {
50
- throw new NotFoundError('No tests found. Add a tests directory to your project first — see the test-harness template for an example.');
51
- }
52
- const pikku = findBin('pikku', functionsDir);
53
- const c8 = findBin('c8', ftestDir);
54
- const cucumber = findBin('cucumber-js', ftestDir);
55
- const spawnEnv = { ...process.env };
56
- const envFile = join(ftestDir, '.env.test');
57
- if (existsSync(envFile)) {
58
- for (const line of readFileSync(envFile, 'utf8').split('\n')) {
59
- const trimmed = line.trim();
60
- if (!trimmed || trimmed.startsWith('#'))
61
- continue;
62
- const eq = trimmed.indexOf('=');
63
- if (eq < 0)
64
- continue;
65
- spawnEnv[trimmed.slice(0, eq).trim()] = trimmed
66
- .slice(eq + 1)
67
- .trim()
68
- .replace(/^['"]|['"]$/g, '');
69
- }
70
- }
71
- // State for correlating Cucumber message protocol envelopes
72
- const astStepKeywords = new Map();
73
- const pickles = new Map();
74
- const testCases = new Map();
75
- const activeScenarios = new Map();
76
- let runStartEmitted = false;
77
- await new Promise((resolve) => {
78
- const proc = spawn(process.execPath, [
79
- c8,
80
- '--src',
81
- 'src',
82
- '--include',
83
- 'src/**',
84
- '--report-dir',
85
- '.coverage',
86
- '--reporter',
87
- 'json',
88
- cucumber,
89
- '--require-module',
90
- 'tsx',
91
- '--require',
92
- 'tests/tests/support/**/*.ts',
93
- 'tests/tests/features/**/*.feature',
94
- '--format',
95
- 'message',
96
- // Also persist the HTML report so scenarios survive past the live
97
- // run — readAllMeta() parses it to attach tests to each function.
98
- '--format',
99
- 'html:tests/tests/reports/cucumber-report.html',
100
- ], { cwd: functionsDir, env: spawnEnv, stdio: ['ignore', 'pipe', 'pipe'] });
101
- proc.stderr.resume();
102
- let stdoutBuf = '';
103
- proc.stdout.on('data', (chunk) => {
104
- stdoutBuf += chunk.toString();
105
- let nl;
106
- while ((nl = stdoutBuf.indexOf('\n')) !== -1) {
107
- const line = stdoutBuf.slice(0, nl).trim();
108
- stdoutBuf = stdoutBuf.slice(nl + 1);
109
- if (!line)
110
- continue;
111
- let envelope;
112
- try {
113
- envelope = JSON.parse(line);
114
- }
115
- catch {
116
- continue;
117
- }
118
- if ('gherkinDocument' in envelope) {
119
- const walk = (nodes) => {
120
- for (const node of nodes ?? []) {
121
- for (const step of node?.scenario?.steps ??
122
- node?.background?.steps ??
123
- []) {
124
- if (step.id)
125
- astStepKeywords.set(step.id, (step.keyword ?? '').trimEnd());
126
- }
127
- walk(node?.rule?.children ?? []);
128
- }
129
- };
130
- walk(envelope.gherkinDocument?.feature?.children ?? []);
131
- }
132
- else if ('pickle' in envelope) {
133
- const p = envelope.pickle;
134
- const steps = new Map();
135
- for (const s of p.steps ?? []) {
136
- const keyword = s.astNodeIds?.[0]
137
- ? astStepKeywords.get(s.astNodeIds[0])
138
- : undefined;
139
- steps.set(s.id, keyword ? `${keyword} ${s.text}` : s.text);
140
- }
141
- pickles.set(p.id, { name: p.name, uri: p.uri ?? '', steps });
142
- }
143
- else if ('testCase' in envelope) {
144
- const tc = envelope.testCase;
145
- const stepIds = new Map();
146
- for (const s of tc.testSteps ?? []) {
147
- if (s.pickleStepId)
148
- stepIds.set(s.id, s.pickleStepId);
149
- }
150
- testCases.set(tc.id, { pickleId: tc.pickleId, stepIds });
151
- }
152
- else if ('testCaseStarted' in envelope) {
153
- const tcs = envelope.testCaseStarted;
154
- const tc = testCases.get(tcs.testCaseId);
155
- const pickle = tc ? pickles.get(tc.pickleId) : undefined;
156
- if (!runStartEmitted) {
157
- runStartEmitted = true;
158
- const allScenarios = Array.from(testCases.entries()).map(([, c]) => {
159
- const p = pickles.get(c.pickleId);
160
- return {
161
- id: c.pickleId,
162
- name: p?.name ?? '',
163
- uri: p?.uri ?? '',
164
- steps: p ? Array.from(p.steps.values()) : [],
165
- };
166
- });
167
- channel.send({ type: 'run-start', scenarios: allScenarios });
168
- }
169
- if (pickle) {
170
- activeScenarios.set(tcs.id, {
171
- testCaseId: tcs.testCaseId,
172
- worstStatus: 'PASSED',
173
- });
174
- channel.send({
175
- type: 'scenario-start',
176
- id: tcs.id,
177
- name: pickle.name,
178
- uri: pickle.uri,
179
- });
180
- }
181
- }
182
- else if ('testStepFinished' in envelope) {
183
- const tsf = envelope.testStepFinished;
184
- const active = activeScenarios.get(tsf.testCaseStartedId);
185
- if (active) {
186
- const tc = testCases.get(active.testCaseId);
187
- const pickle = tc ? pickles.get(tc.pickleId) : undefined;
188
- const pickleStepId = tc?.stepIds.get(tsf.testStepId);
189
- const stepText = pickleStepId && pickle
190
- ? pickle.steps.get(pickleStepId)
191
- : undefined;
192
- if (stepText) {
193
- const status = tsf.testStepResult?.status ?? 'UNDEFINED';
194
- const durationNanos = (tsf.testStepResult?.duration?.seconds ?? 0) * 1e9 +
195
- (tsf.testStepResult?.duration?.nanos ?? 0);
196
- active.worstStatus = worstStatus(active.worstStatus, status);
197
- channel.send({
198
- type: 'step',
199
- scenarioId: tsf.testCaseStartedId,
200
- step: stepText,
201
- status,
202
- duration: Math.round(durationNanos / 1e6),
203
- message: tsf.testStepResult?.message,
204
- });
205
- }
206
- }
207
- }
208
- else if ('testCaseFinished' in envelope) {
209
- const tcf = envelope.testCaseFinished;
210
- const active = activeScenarios.get(tcf.testCaseStartedId);
211
- if (active) {
212
- const tc = testCases.get(active.testCaseId);
213
- const pickle = tc ? pickles.get(tc.pickleId) : undefined;
214
- if (pickle) {
215
- channel.send({
216
- type: 'scenario-done',
217
- id: tcf.testCaseStartedId,
218
- name: pickle.name,
219
- status: active.worstStatus,
220
- });
221
- }
222
- activeScenarios.delete(tcf.testCaseStartedId);
223
- }
224
- }
225
- }
226
- });
227
- proc.on('error', (err) => {
228
- channel.send({ type: 'error', message: err.message });
229
- channel.close();
230
- resolve();
231
- });
232
- proc.on('close', () => resolve());
233
- });
234
- // Run the coverage analysis on the data c8 already generated
235
- await new Promise((resolve) => {
236
- const proc = spawn(process.execPath, [pikku, 'tests', 'coverage', '--no-run'], {
237
- cwd: functionsDir,
238
- env: spawnEnv,
239
- stdio: 'ignore',
240
- });
241
- proc.on('close', () => resolve());
242
- proc.on('error', () => resolve());
243
- });
244
- const outFile = join(ftestDir, '.coverage', 'function-coverage.json');
245
- let coverage = null;
246
- if (existsSync(outFile)) {
247
- try {
248
- coverage = JSON.parse(readFileSync(outFile, 'utf-8'));
249
- }
250
- catch {
251
- coverage = null;
252
- }
253
- }
254
- channel.send({ type: 'done', coverage });
255
- channel.close();
256
- },
257
- });
258
- //# sourceMappingURL=stream-function-tests.function.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream-function-tests.function.js","sourceRoot":"","sources":["../../../src/functions/stream-function-tests.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,KAAK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 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=stream-function-tests.function.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stream-function-tests.function.test.d.ts","sourceRoot":"","sources":["../../../src/functions/stream-function-tests.function.test.ts"],"names":[],"mappings":""}