@pikku/core 0.12.82 → 0.12.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (364) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +1 -1
  3. package/dist/ecosystem/agent-scorer.d.ts +12 -0
  4. package/dist/ecosystem/agent-scorer.js +5 -0
  5. package/dist/ecosystem/agent.d.ts +18 -0
  6. package/dist/ecosystem/agent.js +6 -0
  7. package/dist/ecosystem/ai-agent.d.ts +18 -0
  8. package/dist/ecosystem/ai-agent.js +6 -0
  9. package/dist/ecosystem/ai-scorer.d.ts +12 -0
  10. package/dist/ecosystem/ai-scorer.js +5 -0
  11. package/dist/ecosystem/channel/local.d.ts +1 -0
  12. package/dist/ecosystem/channel/local.js +1 -0
  13. package/dist/ecosystem/channel.d.ts +12 -0
  14. package/dist/ecosystem/channel.js +4 -0
  15. package/dist/ecosystem/cli/channel.d.ts +16 -0
  16. package/dist/ecosystem/cli/channel.js +2 -0
  17. package/dist/ecosystem/cli.d.ts +9 -0
  18. package/dist/ecosystem/cli.js +2 -0
  19. package/dist/ecosystem/credential.d.ts +9 -0
  20. package/dist/ecosystem/credential.js +1 -0
  21. package/dist/ecosystem/dev.d.ts +8 -0
  22. package/dist/ecosystem/dev.js +1 -0
  23. package/dist/ecosystem/function.d.ts +13 -0
  24. package/dist/ecosystem/function.js +2 -0
  25. package/dist/ecosystem/gateway.d.ts +1 -0
  26. package/dist/ecosystem/gateway.js +1 -0
  27. package/dist/ecosystem/hmac.d.ts +1 -0
  28. package/dist/ecosystem/hmac.js +1 -0
  29. package/dist/ecosystem/http.d.ts +11 -0
  30. package/dist/ecosystem/http.js +3 -0
  31. package/dist/ecosystem/mcp.d.ts +3 -0
  32. package/dist/ecosystem/mcp.js +2 -0
  33. package/dist/ecosystem/middleware.d.ts +17 -0
  34. package/dist/ecosystem/middleware.js +6 -0
  35. package/dist/ecosystem/node-host-resolver.d.ts +1 -0
  36. package/dist/ecosystem/node-host-resolver.js +1 -0
  37. package/dist/ecosystem/node.d.ts +1 -0
  38. package/dist/ecosystem/node.js +1 -0
  39. package/dist/ecosystem/oauth2.d.ts +1 -0
  40. package/dist/ecosystem/oauth2.js +1 -0
  41. package/dist/ecosystem/persona.d.ts +15 -0
  42. package/dist/ecosystem/persona.js +4 -0
  43. package/dist/ecosystem/queue.d.ts +11 -0
  44. package/dist/ecosystem/queue.js +2 -0
  45. package/dist/ecosystem/remote.d.ts +8 -0
  46. package/dist/ecosystem/remote.js +1 -0
  47. package/dist/ecosystem/role.d.ts +3 -0
  48. package/dist/ecosystem/role.js +2 -0
  49. package/dist/ecosystem/rpc.d.ts +4 -0
  50. package/dist/ecosystem/rpc.js +2 -0
  51. package/dist/ecosystem/safe-fetch.d.ts +7 -0
  52. package/dist/ecosystem/safe-fetch.js +1 -0
  53. package/dist/ecosystem/scenario.d.ts +15 -0
  54. package/dist/ecosystem/scenario.js +4 -0
  55. package/dist/ecosystem/scheduler.d.ts +2 -0
  56. package/dist/ecosystem/scheduler.js +1 -0
  57. package/dist/ecosystem/schema.d.ts +1 -0
  58. package/dist/ecosystem/schema.js +1 -0
  59. package/dist/ecosystem/scope.d.ts +3 -0
  60. package/dist/ecosystem/scope.js +2 -0
  61. package/dist/ecosystem/secret.d.ts +9 -0
  62. package/dist/ecosystem/secret.js +1 -0
  63. package/dist/ecosystem/services/istanbul-coverage.d.ts +1 -0
  64. package/dist/ecosystem/services/istanbul-coverage.js +1 -0
  65. package/dist/ecosystem/services/local-content-request-handler.d.ts +9 -0
  66. package/dist/ecosystem/services/local-content-request-handler.js +1 -0
  67. package/dist/ecosystem/services/local-content.d.ts +1 -0
  68. package/dist/ecosystem/services/local-content.js +1 -0
  69. package/dist/ecosystem/services/v8-coverage.d.ts +1 -0
  70. package/dist/ecosystem/services/v8-coverage.js +1 -0
  71. package/dist/ecosystem/services.d.ts +28 -0
  72. package/dist/ecosystem/services.js +6 -0
  73. package/dist/ecosystem/testing.d.ts +7 -0
  74. package/dist/ecosystem/testing.js +1 -0
  75. package/dist/ecosystem/trigger.d.ts +1 -0
  76. package/dist/ecosystem/trigger.js +1 -0
  77. package/dist/ecosystem/types.d.ts +9 -0
  78. package/dist/ecosystem/types.js +5 -0
  79. package/dist/ecosystem/variable.d.ts +8 -0
  80. package/dist/ecosystem/variable.js +1 -0
  81. package/dist/ecosystem/virtual-user.d.ts +21 -0
  82. package/dist/ecosystem/virtual-user.js +5 -0
  83. package/dist/ecosystem/workflow.d.ts +18 -0
  84. package/dist/ecosystem/workflow.js +4 -0
  85. package/dist/index.d.ts +8 -8
  86. package/dist/index.js +3 -3
  87. package/dist/middleware/auth-apikey.d.ts +1 -1
  88. package/dist/middleware/auth-bearer.d.ts +1 -1
  89. package/dist/middleware/auth-cookie.d.ts +1 -1
  90. package/dist/middleware/cors.d.ts +1 -1
  91. package/dist/middleware/remote-auth.d.ts +1 -1
  92. package/dist/middleware/telemetry.d.ts +2 -2
  93. package/dist/services/agent-run-state-service.d.ts +29 -0
  94. package/dist/services/agent-run-state-service.js +1 -0
  95. package/dist/services/agent-runner-service.d.ts +220 -0
  96. package/dist/services/agent-runner-service.js +1 -0
  97. package/dist/services/agent-storage-service.d.ts +18 -0
  98. package/dist/services/agent-storage-service.js +1 -0
  99. package/dist/services/http-personas.d.ts +1 -1
  100. package/dist/services/http-personas.js +3 -3
  101. package/dist/services/in-memory-agent-run-state-service.d.ts +19 -0
  102. package/dist/services/in-memory-agent-run-state-service.js +54 -0
  103. package/dist/services/index.d.ts +9 -10
  104. package/dist/services/index.js +3 -3
  105. package/dist/services/meta-service.d.ts +5 -4
  106. package/dist/testing/service-tests/agent-run-service-tests.d.ts +1 -1
  107. package/dist/testing/service-tests/agent-run-service-tests.js +3 -3
  108. package/dist/testing/service-tests/agent-storage-service-tests.d.ts +3 -0
  109. package/dist/testing/service-tests/agent-storage-service-tests.js +302 -0
  110. package/dist/testing/service-tests.d.ts +4 -4
  111. package/dist/testing/service-tests.js +4 -4
  112. package/dist/types/core.types.d.ts +12 -11
  113. package/dist/types/core.types.js +1 -1
  114. package/dist/types/state.types.d.ts +11 -6
  115. package/dist/wirings/actor-flow/run-conversation.d.ts +2 -2
  116. package/dist/wirings/agent/agent-agui.d.ts +79 -0
  117. package/dist/wirings/agent/agent-agui.js +327 -0
  118. package/dist/wirings/agent/agent-finalize.d.ts +58 -0
  119. package/dist/wirings/agent/agent-finalize.js +138 -0
  120. package/dist/wirings/agent/agent-helpers.d.ts +35 -0
  121. package/dist/wirings/agent/agent-helpers.js +47 -0
  122. package/dist/wirings/agent/agent-interrupt.d.ts +153 -0
  123. package/dist/wirings/agent/agent-interrupt.js +257 -0
  124. package/dist/wirings/agent/agent-memory.d.ts +42 -0
  125. package/dist/wirings/agent/agent-memory.js +333 -0
  126. package/dist/wirings/agent/agent-model-config.d.ts +16 -0
  127. package/dist/wirings/agent/agent-model-config.js +51 -0
  128. package/dist/wirings/agent/agent-prepare.d.ts +117 -0
  129. package/dist/wirings/agent/agent-prepare.js +728 -0
  130. package/dist/wirings/agent/agent-registry.d.ts +16 -0
  131. package/dist/wirings/agent/agent-registry.js +51 -0
  132. package/dist/wirings/agent/agent-rpc.d.ts +15 -0
  133. package/dist/wirings/agent/agent-rpc.js +53 -0
  134. package/dist/wirings/agent/agent-runner.d.ts +7 -0
  135. package/dist/wirings/agent/agent-runner.js +580 -0
  136. package/dist/wirings/agent/agent-stream.d.ts +41 -0
  137. package/dist/wirings/agent/agent-stream.js +1029 -0
  138. package/dist/wirings/agent/agent-turn.d.ts +57 -0
  139. package/dist/wirings/agent/agent-turn.js +82 -0
  140. package/dist/wirings/agent/agent-utils.d.ts +1 -0
  141. package/dist/wirings/agent/agent-utils.js +1 -0
  142. package/dist/wirings/agent/agent.types.d.ts +625 -0
  143. package/dist/wirings/agent/agent.types.js +1 -0
  144. package/dist/wirings/agent/index.d.ts +12 -0
  145. package/dist/wirings/agent/index.js +10 -0
  146. package/dist/wirings/agent/voice-input.d.ts +69 -0
  147. package/dist/wirings/agent/voice-input.js +150 -0
  148. package/dist/wirings/agent/voice-output.d.ts +85 -0
  149. package/dist/wirings/agent/voice-output.js +196 -0
  150. package/dist/wirings/agent-scorer/agent-scorer-grade.d.ts +26 -0
  151. package/dist/wirings/agent-scorer/agent-scorer-grade.js +33 -0
  152. package/dist/wirings/agent-scorer/agent-scorer-judge.d.ts +17 -0
  153. package/dist/wirings/agent-scorer/agent-scorer-judge.js +92 -0
  154. package/dist/wirings/agent-scorer/agent-scorer-live.d.ts +15 -0
  155. package/dist/wirings/agent-scorer/agent-scorer-live.js +38 -0
  156. package/dist/wirings/agent-scorer/agent-scorer-registry.d.ts +18 -0
  157. package/dist/wirings/agent-scorer/agent-scorer-registry.js +46 -0
  158. package/dist/wirings/agent-scorer/agent-scorer-sampling.d.ts +8 -0
  159. package/dist/wirings/agent-scorer/agent-scorer-sampling.js +31 -0
  160. package/dist/wirings/agent-scorer/agent-scorer-snapshots.d.ts +10 -0
  161. package/dist/wirings/agent-scorer/agent-scorer-snapshots.js +40 -0
  162. package/dist/wirings/agent-scorer/agent-scorer-worker.d.ts +15 -0
  163. package/dist/wirings/agent-scorer/agent-scorer-worker.js +60 -0
  164. package/dist/wirings/agent-scorer/agent-scorer.d.ts +39 -0
  165. package/dist/wirings/agent-scorer/agent-scorer.js +40 -0
  166. package/dist/wirings/agent-scorer/agent-scorer.types.d.ts +90 -0
  167. package/dist/wirings/agent-scorer/agent-scorer.types.js +4 -0
  168. package/dist/wirings/agent-scorer/index.d.ts +6 -0
  169. package/dist/wirings/agent-scorer/index.js +5 -0
  170. package/dist/wirings/ai-agent/ai-agent-prepare.js +2 -0
  171. package/dist/wirings/ai-agent/voice-output.d.ts +1 -2
  172. package/dist/wirings/channel/channel-rpc.types.d.ts +2 -2
  173. package/dist/wirings/rpc/addon-runner.d.ts +4 -0
  174. package/dist/wirings/rpc/addon-runner.js +14 -2
  175. package/dist/wirings/rpc/rpc-runner.d.ts +1 -1
  176. package/dist/wirings/rpc/rpc-runner.js +4 -2
  177. package/dist/wirings/rpc/rpc-types.d.ts +5 -1
  178. package/dist/wirings/rpc/wire-addon.d.ts +12 -0
  179. package/dist/wirings/rpc/wire-addon.js +4 -0
  180. package/dist/wirings/virtual-user/prepare-virtual-user-run.js +1 -1
  181. package/dist/wirings/virtual-user/virtual-user-agents.d.ts +1 -1
  182. package/dist/wirings/workflow/feature.d.ts +2 -1
  183. package/dist/wirings/workflow/index.d.ts +3 -14
  184. package/dist/wirings/workflow/index.js +0 -8
  185. package/dist/wirings/workflow/pikku-scenario-service.d.ts +10 -0
  186. package/dist/wirings/workflow/pikku-scenario-service.js +9 -0
  187. package/dist/wirings/workflow/run-timeline.d.ts +1 -2
  188. package/dist/wirings/workflow/scenario.types.d.ts +37 -0
  189. package/dist/wirings/workflow/scenario.types.js +1 -0
  190. package/dist/wirings/workflow/workflow.types.d.ts +2 -37
  191. package/knowledge/decisions/internals/{a-non-streaming-agent-run-registers-with-airunstate-too.md → a-non-streaming-agent-run-registers-with-agentrunstate-too.md} +6 -6
  192. package/knowledge/decisions/internals/a-resumed-agent-turn-is-as-interruptible-as-the-first.md +1 -1
  193. package/knowledge/decisions/internals/actor-flow-drives-the-target-through-a-transport-seam.md +1 -1
  194. package/knowledge/decisions/internals/{ai-agent-agui-bridge-obeys-the-client-ordering-contract.md → agent-agui-bridge-obeys-the-client-ordering-contract.md} +5 -5
  195. package/knowledge/decisions/internals/{ai-agent-audio-chunks-carry-the-format-the-provider-returned.md → agent-audio-chunks-carry-the-format-the-provider-returned.md} +2 -2
  196. package/knowledge/decisions/internals/agent-context-waits-for-a-tool-result-still-being-written.md +1 -1
  197. package/knowledge/decisions/internals/{ai-agent-credential-suspensions-hide-the-tool-result.md → agent-credential-suspensions-hide-the-tool-result.md} +2 -2
  198. package/knowledge/decisions/internals/{ai-agent-delegate-and-supervise-hide-different-text.md → agent-delegate-and-supervise-hide-different-text.md} +4 -4
  199. package/knowledge/decisions/internals/{ai-agent-llm-tool-arguments-have-nulls-stripped.md → agent-llm-tool-arguments-have-nulls-stripped.md} +3 -3
  200. package/knowledge/decisions/internals/{ai-agent-model-config-stays-a-single-resolution-seam.md → agent-model-config-stays-a-single-resolution-seam.md} +3 -3
  201. package/knowledge/decisions/internals/{ai-agent-onerror-hooks-cannot-change-the-failure.md → agent-onerror-hooks-cannot-change-the-failure.md} +6 -6
  202. package/knowledge/decisions/internals/{ai-agent-runner-methods-must-keep-their-receiver.md → agent-runner-methods-must-keep-their-receiver.md} +4 -4
  203. package/knowledge/decisions/internals/agent-speech-travels-as-a-custom-agui-event.md +1 -1
  204. package/knowledge/decisions/internals/{ai-agent-stream-persistence-is-best-effort.md → agent-stream-persistence-is-best-effort.md} +4 -4
  205. package/knowledge/decisions/internals/{ai-agent-sub-agents-inherit-the-parent-context-block.md → agent-sub-agents-inherit-the-parent-context-block.md} +3 -3
  206. package/knowledge/decisions/internals/{ai-agent-tool-execute-failures-are-logged-unconditionally.md → agent-tool-execute-failures-are-logged-unconditionally.md} +3 -3
  207. package/knowledge/decisions/internals/{ai-agent-voice-input-transcribes-audio-parts-in-place.md → agent-voice-input-transcribes-audio-parts-in-place.md} +2 -2
  208. package/knowledge/decisions/internals/{ai-agent-working-memory-is-persisted-only-when-valid.md → agent-working-memory-is-persisted-only-when-valid.md} +2 -2
  209. package/knowledge/decisions/internals/an-agent-interrupt-is-not-a-failure.md +2 -2
  210. package/knowledge/decisions/internals/an-agent-run-owned-by-another-instance-says-so.md +3 -3
  211. package/knowledge/decisions/internals/an-agent-stream-send-must-return-the-inner-sends-promise.md +2 -2
  212. package/knowledge/decisions/internals/an-empty-text-part-is-omitted-from-an-agent-message.md +1 -1
  213. package/knowledge/decisions/internals/an-empty-transcript-is-not-recorded.md +1 -1
  214. package/knowledge/decisions/internals/speech-synthesis-picks-a-voice-per-sentence-and-warns-once.md +1 -1
  215. package/knowledge/decisions/internals/the-agent-done-event-goes-through-the-middleware-and-is-awaited.md +1 -1
  216. package/knowledge/decisions/internals/the-embedding-model-is-pinned-per-service-and-doc-query-embedding-is-split.md +1 -1
  217. package/knowledge/decisions/internals/the-per-invocation-rpc-view-is-a-class.md +5 -5
  218. package/knowledge/decisions/internals/the-transcript-event-is-sent-ahead-of-the-run.md +2 -2
  219. package/knowledge/decisions/internals/thread-history-records-the-transcript-not-the-audio.md +2 -2
  220. package/knowledge/decisions/internals/voice-output-speaks-unless-voice-input-explicitly-says-otherwise.md +1 -1
  221. package/knowledge/decisions/security/{ai-agent-approval-forwarding-requires-a-symbol-brand.md → agent-approval-forwarding-requires-a-symbol-brand.md} +3 -3
  222. package/knowledge/decisions/security/{ai-agent-credential-requests-are-symbol-branded.md → agent-credential-requests-are-symbol-branded.md} +4 -4
  223. package/knowledge/decisions/security/{ai-agent-gate-requires-a-session-only-when-auth-is-true.md → agent-gate-requires-a-session-only-when-auth-is-true.md} +3 -3
  224. package/knowledge/decisions/security/{ai-agent-ownership-failures-never-echo-the-resource.md → agent-ownership-failures-never-echo-the-resource.md} +2 -2
  225. package/knowledge/decisions/security/{ai-agent-resume-re-runs-the-authorization-gate.md → agent-resume-re-runs-the-authorization-gate.md} +4 -4
  226. package/knowledge/decisions/security/{ai-agent-sessionless-deployments-have-no-thread-ownership.md → agent-sessionless-deployments-have-no-thread-ownership.md} +5 -5
  227. package/knowledge/decisions/security/{ai-agent-thread-ownership-composes-the-session-principal.md → agent-thread-ownership-composes-the-session-principal.md} +2 -2
  228. package/knowledge/decisions/security/{ai-agent-tool-filtering-reads-the-live-function-config.md → agent-tool-filtering-reads-the-live-function-config.md} +2 -2
  229. package/knowledge/decisions/security/an-agent-approval-is-claimed-before-the-tool-runs.md +3 -3
  230. package/knowledge/decisions/security/an-empty-owners-constraint-matches-nothing.md +3 -3
  231. package/knowledge/decisions/security/console-addon-privileged-functions-gate-themselves.md +20 -13
  232. package/knowledge/decisions/security/index.md +1 -2
  233. package/package.json +4 -4
  234. package/scripts/generate-api-report.mts +32 -8
  235. package/src/agent-naming.test.ts +68 -0
  236. package/src/ecosystem/agent-scorer.ts +24 -0
  237. package/src/ecosystem/agent.ts +42 -0
  238. package/src/ecosystem/channel/local.ts +1 -0
  239. package/src/ecosystem/channel.ts +22 -0
  240. package/src/ecosystem/cli/channel.ts +25 -0
  241. package/src/ecosystem/cli.ts +21 -0
  242. package/src/ecosystem/credential.ts +10 -0
  243. package/src/ecosystem/dev.ts +12 -0
  244. package/src/ecosystem/function.ts +28 -0
  245. package/src/ecosystem/gateway.ts +4 -0
  246. package/src/ecosystem/hmac.ts +1 -0
  247. package/src/ecosystem/http.ts +22 -0
  248. package/src/ecosystem/mcp.ts +17 -0
  249. package/src/ecosystem/middleware.ts +27 -0
  250. package/src/ecosystem/node-host-resolver.ts +1 -0
  251. package/src/ecosystem/node.ts +5 -0
  252. package/src/ecosystem/oauth2.ts +4 -0
  253. package/src/ecosystem/persona.ts +30 -0
  254. package/src/ecosystem/queue.ts +23 -0
  255. package/src/ecosystem/remote.ts +9 -0
  256. package/src/ecosystem/role.ts +13 -0
  257. package/src/ecosystem/rpc.ts +7 -0
  258. package/src/ecosystem/safe-fetch.ts +8 -0
  259. package/src/ecosystem/scenario.ts +32 -0
  260. package/src/ecosystem/scheduler.ts +5 -0
  261. package/src/ecosystem/schema.ts +1 -0
  262. package/src/ecosystem/scope.ts +14 -0
  263. package/src/ecosystem/secret.ts +15 -0
  264. package/src/ecosystem/services/istanbul-coverage.ts +1 -0
  265. package/src/ecosystem/services/local-content-request-handler.ts +16 -0
  266. package/src/ecosystem/services/local-content.ts +1 -0
  267. package/src/ecosystem/services/v8-coverage.ts +1 -0
  268. package/src/ecosystem/services.ts +82 -0
  269. package/src/ecosystem/testing.ts +8 -0
  270. package/src/ecosystem/trigger.ts +7 -0
  271. package/src/ecosystem/types.ts +34 -0
  272. package/src/ecosystem/variable.ts +14 -0
  273. package/src/ecosystem/virtual-user.ts +48 -0
  274. package/src/ecosystem/workflow.ts +68 -0
  275. package/src/index.ts +8 -19
  276. package/src/pikku-state.ts +3 -3
  277. package/src/public-surface.json +183 -91
  278. package/src/public-surface.json.README +20 -2
  279. package/src/public-surface.test.ts +31 -3
  280. package/src/services/{ai-run-state-service.ts → agent-run-state-service.ts} +5 -5
  281. package/src/services/{ai-agent-runner-service.ts → agent-runner-service.ts} +18 -18
  282. package/src/services/{ai-storage-service.ts → agent-storage-service.ts} +7 -7
  283. package/src/services/http-personas-converse.test.ts +3 -3
  284. package/src/services/http-personas.ts +4 -4
  285. package/src/services/{in-memory-ai-run-state-service.ts → in-memory-agent-run-state-service.ts} +7 -7
  286. package/src/services/index.ts +13 -24
  287. package/src/services/meta-service.ts +5 -7
  288. package/src/testing/service-tests/agent-run-service-tests.ts +4 -4
  289. package/src/testing/service-tests/{ai-storage-service-tests.ts → agent-storage-service-tests.ts} +8 -8
  290. package/src/testing/service-tests.ts +10 -8
  291. package/src/types/core.types.ts +13 -13
  292. package/src/types/state.types.ts +11 -10
  293. package/src/wirings/actor-flow/run-conversation.test.ts +2 -2
  294. package/src/wirings/actor-flow/run-conversation.ts +7 -9
  295. package/src/wirings/{ai-agent/ai-agent-agui.test.ts → agent/agent-agui.test.ts} +126 -105
  296. package/src/wirings/{ai-agent/ai-agent-agui.ts → agent/agent-agui.ts} +7 -7
  297. package/src/wirings/{ai-agent/ai-agent-authorization.test.ts → agent/agent-authorization.test.ts} +6 -6
  298. package/src/wirings/{ai-agent/ai-agent-finalize.test.ts → agent/agent-finalize.test.ts} +17 -16
  299. package/src/wirings/{ai-agent/ai-agent-finalize.ts → agent/agent-finalize.ts} +22 -22
  300. package/src/wirings/{ai-agent/ai-agent-helpers.test.ts → agent/agent-helpers.test.ts} +1 -1
  301. package/src/wirings/{ai-agent/ai-agent-helpers.ts → agent/agent-helpers.ts} +1 -1
  302. package/src/wirings/{ai-agent/ai-agent-interrupt.test.ts → agent/agent-interrupt.test.ts} +67 -77
  303. package/src/wirings/{ai-agent/ai-agent-interrupt.ts → agent/agent-interrupt.ts} +5 -5
  304. package/src/wirings/{ai-agent/ai-agent-memory.test.ts → agent/agent-memory.test.ts} +12 -12
  305. package/src/wirings/{ai-agent/ai-agent-memory.ts → agent/agent-memory.ts} +36 -36
  306. package/src/wirings/{ai-agent/ai-agent-model-config.test.ts → agent/agent-model-config.test.ts} +2 -5
  307. package/src/wirings/{ai-agent/ai-agent-model-config.ts → agent/agent-model-config.ts} +1 -1
  308. package/src/wirings/{ai-agent/ai-agent-prepare.test.ts → agent/agent-prepare.test.ts} +18 -18
  309. package/src/wirings/{ai-agent/ai-agent-prepare.ts → agent/agent-prepare.ts} +54 -51
  310. package/src/wirings/{ai-agent/ai-agent-registry.test.ts → agent/agent-registry.test.ts} +49 -43
  311. package/src/wirings/{ai-agent/ai-agent-registry.ts → agent/agent-registry.ts} +14 -14
  312. package/src/wirings/{ai-agent/ai-agent-resume-authorization.test.ts → agent/agent-resume-authorization.test.ts} +18 -18
  313. package/src/wirings/{ai-agent → agent}/agent-rpc.ts +16 -20
  314. package/src/wirings/{ai-agent/ai-agent-runner.test.ts → agent/agent-runner.test.ts} +105 -106
  315. package/src/wirings/{ai-agent/ai-agent-runner.ts → agent/agent-runner.ts} +90 -80
  316. package/src/wirings/{ai-agent/ai-agent-stream-output-hooks.test.ts → agent/agent-stream-output-hooks.test.ts} +25 -25
  317. package/src/wirings/{ai-agent/ai-agent-stream.test.ts → agent/agent-stream.test.ts} +147 -143
  318. package/src/wirings/{ai-agent/ai-agent-stream.ts → agent/agent-stream.ts} +147 -146
  319. package/src/wirings/{ai-agent/ai-agent-thread-ownership.test.ts → agent/agent-thread-ownership.test.ts} +24 -28
  320. package/src/wirings/{ai-agent/ai-agent-turn.test.ts → agent/agent-turn.test.ts} +3 -5
  321. package/src/wirings/{ai-agent/ai-agent-turn.ts → agent/agent-turn.ts} +7 -7
  322. package/src/wirings/{ai-agent/ai-agent.types.ts → agent/agent.types.ts} +51 -48
  323. package/src/wirings/agent/index.ts +56 -0
  324. package/src/wirings/{ai-agent → agent}/voice-input.test.ts +15 -15
  325. package/src/wirings/{ai-agent → agent}/voice-input.ts +11 -11
  326. package/src/wirings/{ai-agent → agent}/voice-output.test.ts +23 -23
  327. package/src/wirings/{ai-agent → agent}/voice-output.ts +11 -11
  328. package/src/wirings/{ai-scorer/ai-scorer-grade.test.ts → agent-scorer/agent-scorer-grade.test.ts} +8 -8
  329. package/src/wirings/{ai-scorer/ai-scorer-grade.ts → agent-scorer/agent-scorer-grade.ts} +9 -9
  330. package/src/wirings/{ai-scorer/ai-scorer-judge.test.ts → agent-scorer/agent-scorer-judge.test.ts} +11 -14
  331. package/src/wirings/{ai-scorer/ai-scorer-judge.ts → agent-scorer/agent-scorer-judge.ts} +11 -11
  332. package/src/wirings/{ai-scorer/ai-scorer-live.test.ts → agent-scorer/agent-scorer-live.test.ts} +11 -11
  333. package/src/wirings/{ai-scorer/ai-scorer-live.ts → agent-scorer/agent-scorer-live.ts} +3 -3
  334. package/src/wirings/{ai-scorer/ai-scorer-registry.ts → agent-scorer/agent-scorer-registry.ts} +11 -8
  335. package/src/wirings/{ai-scorer/ai-scorer-sampling.test.ts → agent-scorer/agent-scorer-sampling.test.ts} +1 -1
  336. package/src/wirings/{ai-scorer/ai-scorer-snapshots.test.ts → agent-scorer/agent-scorer-snapshots.test.ts} +2 -2
  337. package/src/wirings/{ai-scorer/ai-scorer-snapshots.ts → agent-scorer/agent-scorer-snapshots.ts} +1 -1
  338. package/src/wirings/{ai-scorer/ai-scorer-worker.test.ts → agent-scorer/agent-scorer-worker.test.ts} +15 -15
  339. package/src/wirings/{ai-scorer/ai-scorer-worker.ts → agent-scorer/agent-scorer-worker.ts} +9 -7
  340. package/src/wirings/{ai-scorer/ai-scorer.ts → agent-scorer/agent-scorer.ts} +7 -7
  341. package/src/wirings/{ai-scorer/ai-scorer.types.ts → agent-scorer/agent-scorer.types.ts} +6 -6
  342. package/src/wirings/agent-scorer/index.ts +22 -0
  343. package/src/wirings/channel/channel-rpc.types.ts +2 -2
  344. package/src/wirings/rpc/addon-runner.ts +31 -3
  345. package/src/wirings/rpc/addon-secrets.test.ts +130 -0
  346. package/src/wirings/rpc/rpc-runner.ts +4 -2
  347. package/src/wirings/rpc/rpc-types.ts +5 -1
  348. package/src/wirings/rpc/wire-addon.ts +16 -0
  349. package/src/wirings/virtual-user/prepare-virtual-user-run.ts +1 -1
  350. package/src/wirings/virtual-user/run-virtual-user.test.ts +2 -2
  351. package/src/wirings/virtual-user/run-virtual-user.ts +3 -3
  352. package/src/wirings/virtual-user/virtual-user-agents.ts +1 -1
  353. package/src/wirings/workflow/feature.ts +2 -5
  354. package/src/wirings/workflow/index.ts +1 -49
  355. package/src/wirings/workflow/pikku-scenario-service.ts +21 -1
  356. package/src/wirings/workflow/run-timeline.ts +1 -1
  357. package/src/wirings/workflow/scenario.types.ts +63 -0
  358. package/src/wirings/workflow/workflow.types.ts +1 -54
  359. package/src/wirings-stay-decoupled.test.ts +3 -3
  360. package/tsconfig.tsbuildinfo +1 -1
  361. package/src/wirings/ai-agent/index.ts +0 -65
  362. package/src/wirings/ai-scorer/index.ts +0 -24
  363. /package/src/wirings/{ai-agent/ai-agent-utils.ts → agent/agent-utils.ts} +0 -0
  364. /package/src/wirings/{ai-scorer/ai-scorer-sampling.ts → agent-scorer/agent-scorer-sampling.ts} +0 -0
@@ -0,0 +1,68 @@
1
+ import { describe, test } from 'node:test'
2
+ import assert from 'node:assert/strict'
3
+ import { readFileSync } from 'node:fs'
4
+ import { fileURLToPath } from 'node:url'
5
+ import { join, dirname } from 'node:path'
6
+
7
+ const packageRoot = join(dirname(fileURLToPath(import.meta.url)), '..')
8
+ const reportPath = join(packageRoot, 'api-report.md')
9
+
10
+ /**
11
+ * `AI` described the model provider, never the agent runtime, so #596 renamed
12
+ * every agent symbol to `Agent`. The names below are the ones that survived,
13
+ * because each really does wrap a provider call.
14
+ *
15
+ * Listing them here is what makes the rule checkable: anything else exported as
16
+ * `AI*` is a symbol that slipped back to the old naming, and this fails rather
17
+ * than letting it reach a consumer.
18
+ */
19
+ const PROVIDER_SYMBOLS = new Set([
20
+ 'AIEmbeddingService',
21
+ 'AIEmbedManyParams',
22
+ 'AIEmbedManyResult',
23
+ 'AIEmbedParams',
24
+ 'AIEmbedResult',
25
+ 'AIGenerateImageParams',
26
+ 'AIGenerateImagePrompt',
27
+ 'AIGenerateImageResult',
28
+ 'AIGenerateSpeechParams',
29
+ 'AIGenerateSpeechResult',
30
+ 'AIProviderAuthError',
31
+ 'AIProviderNotConfiguredError',
32
+ 'AIProviderOptions',
33
+ 'AIRerankParams',
34
+ 'AIRerankResult',
35
+ 'AITranscriptionParams',
36
+ 'AITranscriptionResult',
37
+ ])
38
+
39
+ describe('the agent runtime is not exported under the AI name', () => {
40
+ test('every AI* symbol in the public surface is a provider wrapper', () => {
41
+ const report = readFileSync(reportPath, 'utf-8')
42
+ const found = new Set(report.match(/\bAI[A-Z][A-Za-z]*/g) ?? [])
43
+
44
+ const strays = [...found].filter((name) => !PROVIDER_SYMBOLS.has(name))
45
+
46
+ assert.deepEqual(
47
+ strays,
48
+ [],
49
+ 'these are exported as `AI*` but are not provider wrappers — rename them ' +
50
+ 'to `Agent*`, or add them to PROVIDER_SYMBOLS if they genuinely wrap a ' +
51
+ 'model provider call'
52
+ )
53
+ })
54
+
55
+ test('the agent entry points are the renamed ones', () => {
56
+ const { exports } = JSON.parse(
57
+ readFileSync(join(packageRoot, 'package.json'), 'utf-8')
58
+ )
59
+
60
+ assert.ok(exports['./agent'], 'expected the ./agent entry point')
61
+ assert.ok(
62
+ exports['./agent-scorer'],
63
+ 'expected the ./agent-scorer entry point'
64
+ )
65
+ assert.equal(exports['./ai-agent'], undefined)
66
+ assert.equal(exports['./ai-scorer'], undefined)
67
+ })
68
+ })
@@ -0,0 +1,24 @@
1
+ export { gradeRun } from '../wirings/agent-scorer/agent-scorer-grade.js'
2
+ export { addAgentScorer } from '../wirings/agent-scorer/agent-scorer-registry.js'
3
+ export {
4
+ enableScoreSnapshots,
5
+ getScoreSnapshot,
6
+ } from '../wirings/agent-scorer/agent-scorer-snapshots.js'
7
+ export { wireAgentScorerQueueWorkers } from '../wirings/agent-scorer/agent-scorer-worker.js'
8
+ export {
9
+ pikkuAgentJudge,
10
+ pikkuAgentScorer,
11
+ } from '../wirings/agent-scorer/agent-scorer.js'
12
+ export type { ScorerMeta } from '../wirings/agent-scorer/agent-scorer.types.js'
13
+
14
+ /**
15
+ * Types the exports above mention but do not themselves export. Without
16
+ * them a consumer's declaration emit has no name for the type it infers,
17
+ * and fails with TS2883 rather than reaching for the original entry point.
18
+ */
19
+ export type {
20
+ PikkuAgentScorer,
21
+ ScoreJob,
22
+ ScorerInput,
23
+ ScorerOutput,
24
+ } from '../wirings/agent-scorer/agent-scorer.types.js'
@@ -0,0 +1,42 @@
1
+ export {
2
+ agent,
3
+ agentApprove,
4
+ agentResume,
5
+ agentStream,
6
+ } from '../wirings/agent/agent-helpers.js'
7
+ export { resolveModelAlias } from '../wirings/agent/agent-model-config.js'
8
+ export {
9
+ canAccessThread,
10
+ isOwnedByPrincipal,
11
+ threadOwnerConstraint,
12
+ } from '../wirings/agent/agent-prepare.js'
13
+ export { addAgent } from '../wirings/agent/agent-registry.js'
14
+ export type {
15
+ AgentInput,
16
+ AgentMemoryConfig,
17
+ AgentsMeta,
18
+ AgentStep,
19
+ AgentContentPart,
20
+ AgentRunRow,
21
+ AgentRunService,
22
+ CoreAgent,
23
+ PendingApproval,
24
+ PikkuAgentMiddlewareHooks,
25
+ } from '../wirings/agent/agent.types.js'
26
+ export { voiceInput } from '../wirings/agent/voice-input.js'
27
+ export { voiceOutput } from '../wirings/agent/voice-output.js'
28
+
29
+ /**
30
+ * Types the exports above mention but do not themselves export. Without
31
+ * them a consumer's declaration emit has no name for the type it infers,
32
+ * and fails with TS2883 rather than reaching for the original entry point.
33
+ */
34
+ export type { LogLevel } from '../services/logger.js'
35
+ export type { WebhookServiceConfig } from '../services/webhook-service.js'
36
+ export type {
37
+ CoreSingletonServices,
38
+ PostgresConfig,
39
+ } from '../types/core.types.js'
40
+ export type { SpeakableScripts } from '../wirings/agent/voice-output.js'
41
+ export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js'
42
+ export type { VoiceOutputState } from '../wirings/agent/voice-output.js'
@@ -0,0 +1 @@
1
+ export { PikkuLocalChannelHandler } from '../../wirings/channel/local/local-channel-handler.js'
@@ -0,0 +1,22 @@
1
+ export { addChannelMiddleware } from '../wirings/channel/channel-middleware-runner.js'
2
+ export type { Capabilities } from '../wirings/channel/channel-rpc.types.js'
3
+ export type {
4
+ BinaryData,
5
+ ChannelMessageMeta,
6
+ ChannelMeta,
7
+ ChannelsMeta,
8
+ CoreChannel,
9
+ CorePikkuChannelMiddleware,
10
+ CorePikkuChannelMiddlewareFactory,
11
+ PikkuChannelHandlerFactory,
12
+ } from '../wirings/channel/channel.types.js'
13
+ export { EventHubStore } from '../wirings/channel/eventhub-store.js'
14
+ export { logChannels } from '../wirings/channel/log-channels.js'
15
+ export { PikkuAbstractChannelHandler } from '../wirings/channel/pikku-abstract-channel-handler.js'
16
+
17
+ /**
18
+ * Types the exports above mention but do not themselves export. Without
19
+ * them a consumer's declaration emit has no name for the type it infers,
20
+ * and fails with TS2883 rather than reaching for the original entry point.
21
+ */
22
+ export type { Logger } from '../services/logger.js'
@@ -0,0 +1,25 @@
1
+ export { handleRawCLI } from '../../wirings/cli/channel/cli-raw-channel-runner.js'
2
+ export type { RawCLIFrame } from '../../wirings/cli/channel/cli-raw-channel-runner.js'
3
+ export { executeRawCLIViaChannel } from '../../wirings/cli/channel/cli-raw-client-runner.js'
4
+ export type { CorePikkuCLIClientRender } from '../../wirings/cli/channel/cli-raw-client-runner.js'
5
+
6
+ /**
7
+ * Types the exports above mention but do not themselves export. Without
8
+ * them a consumer's declaration emit has no name for the type it infers,
9
+ * and fails with TS2883 rather than reaching for the original entry point.
10
+ */
11
+ export type { LogLevel } from '../../services/logger.js'
12
+ export type { WebhookServiceConfig } from '../../services/webhook-service.js'
13
+ export type {
14
+ CoreSingletonServices,
15
+ CoreUserSession,
16
+ CreateWireServices,
17
+ PostgresConfig,
18
+ } from '../../types/core.types.js'
19
+ export type {
20
+ ApprovalRequester,
21
+ Capabilities,
22
+ } from '../../wirings/channel/channel-rpc.types.js'
23
+ export type { PikkuChannel } from '../../wirings/channel/channel.types.js'
24
+ export type { RawCLIResult } from '../../wirings/cli/channel/cli-raw-channel-runner.js'
25
+ export type { WorkflowServiceConfig } from '../../wirings/workflow/workflow.types.js'
@@ -0,0 +1,21 @@
1
+ export { CLIError, executeCLI } from '../wirings/cli/cli-runner.js'
2
+ export type {
3
+ CLICommandMeta,
4
+ CLIMeta,
5
+ CLIProgramMeta,
6
+ CoreCLI,
7
+ CoreCLICommandConfig,
8
+ CorePikkuCLIRender,
9
+ } from '../wirings/cli/cli.types.js'
10
+ export { generateCommandHelp } from '../wirings/cli/command-parser.js'
11
+
12
+ /**
13
+ * Types the exports above mention but do not themselves export. Without
14
+ * them a consumer's declaration emit has no name for the type it infers,
15
+ * and fails with TS2883 rather than reaching for the original entry point.
16
+ */
17
+ export type {
18
+ CreateConfig,
19
+ CreateSingletonServices,
20
+ CreateWireServices,
21
+ } from '../types/core.types.js'
@@ -0,0 +1,10 @@
1
+ export type { CredentialDefinitions } from '../wirings/credential/credential.types.js'
2
+ export { validateAndBuildCredentialDefinitionsMeta } from '../wirings/credential/validate-credential-definitions.js'
3
+
4
+ /**
5
+ * Types the exports above mention but do not themselves export. Without
6
+ * them a consumer's declaration emit has no name for the type it infers,
7
+ * and fails with TS2883 rather than reaching for the original entry point.
8
+ */
9
+ export type { SchemaRefLike } from '../types/core.types.js'
10
+ export type { CredentialDefinitionsMeta } from '../wirings/credential/credential.types.js'
@@ -0,0 +1,12 @@
1
+ export {
2
+ reconcileAddonRegistry,
3
+ reloadGeneratedMeta,
4
+ } from '../dev/reload-meta.js'
5
+
6
+ /**
7
+ * Types the exports above mention but do not themselves export. Without
8
+ * them a consumer's declaration emit has no name for the type it infers,
9
+ * and fails with TS2883 rather than reaching for the original entry point.
10
+ */
11
+ export type { ReloadGeneratedMetaOptions } from '../dev/reload-meta.js'
12
+ export type { Logger } from '../services/logger.js'
@@ -0,0 +1,28 @@
1
+ export { getAllFunctionNames } from '../function/function-runner.js'
2
+ export { pikkuAuth } from '../function/functions.types.js'
3
+ export type {
4
+ CorePikkuAuth,
5
+ CorePikkuAuthConfig,
6
+ CorePikkuFunction,
7
+ CorePikkuFunctionConfig,
8
+ CorePikkuFunctionSessionless,
9
+ CorePikkuPermission,
10
+ CorePikkuSessionlessFunctionConfig,
11
+ } from '../function/functions.types.js'
12
+ export type { ListInput, ListOutput } from '../function/list.types.js'
13
+
14
+ /**
15
+ * Types the exports above mention but do not themselves export. Without
16
+ * them a consumer's declaration emit has no name for the type it infers,
17
+ * and fails with TS2883 rather than reaching for the original entry point.
18
+ */
19
+ export type { LogLevel } from '../services/logger.js'
20
+ export type { WebhookServiceConfig } from '../services/webhook-service.js'
21
+ export type {
22
+ CoreSecretlessSingletonServices,
23
+ CoreSingletonServices,
24
+ CoreUserSession,
25
+ PostgresConfig,
26
+ SecretlessServices,
27
+ } from '../types/core.types.js'
28
+ export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js'
@@ -0,0 +1,4 @@
1
+ export type {
2
+ GatewayTransportType,
3
+ GatewaysMeta,
4
+ } from '../wirings/gateway/gateway.types.js'
@@ -0,0 +1 @@
1
+ export { hmacSha256Hex, timingSafeStringEqual } from '../utils/hmac.js'
@@ -0,0 +1,22 @@
1
+ export type {
2
+ AssertHTTPWiringParams,
3
+ CoreHTTPFunctionWiring,
4
+ HTTPMethod,
5
+ HTTPRouteBaseConfig,
6
+ HTTPWiringsMeta,
7
+ PikkuHTTP,
8
+ PikkuHTTPResponse,
9
+ PikkuQuery,
10
+ RunHTTPWiringOptions,
11
+ } from '../wirings/http/http.types.js'
12
+ export { logRoutes } from '../wirings/http/log-http-routes.js'
13
+ export { DEFAULT_MAX_BODY_SIZE } from '../wirings/http/pikku-fetch-http-request.js'
14
+ export { toWebRequest } from '../wirings/http/web-request.js'
15
+
16
+ /**
17
+ * Types the exports above mention but do not themselves export. Without
18
+ * them a consumer's declaration emit has no name for the type it infers,
19
+ * and fails with TS2883 rather than reaching for the original entry point.
20
+ */
21
+ export type { Logger } from '../services/logger.js'
22
+ export type { PikkuHTTPRequest } from '../wirings/http/http.types.js'
@@ -0,0 +1,17 @@
1
+ export { MCPEndpointRegistry } from '../wirings/mcp/mcp-endpoint-registry.js'
2
+ export {
3
+ MCPError,
4
+ getMCPPromptsMeta,
5
+ getMCPResourcesMeta,
6
+ getMCPToolsMeta,
7
+ } from '../wirings/mcp/mcp-runner.js'
8
+ export type {
9
+ AssertMCPResourceURIParams,
10
+ CoreMCPPrompt,
11
+ CoreMCPResource,
12
+ MCPPromptMeta,
13
+ MCPResourceMeta,
14
+ MCPToolMeta,
15
+ MCPToolResponse,
16
+ PikkuMCP,
17
+ } from '../wirings/mcp/mcp.types.js'
@@ -0,0 +1,27 @@
1
+ export { runMiddleware } from '../middleware-runner.js'
2
+ export { authAPIKey } from '../middleware/auth-apikey.js'
3
+ export { authCookie } from '../middleware/auth-cookie.js'
4
+ export { pikkuRemoteAuthMiddleware } from '../middleware/remote-auth.js'
5
+ export { telemetryInner, telemetryOuter } from '../middleware/telemetry.js'
6
+ export { addGlobalPermission } from '../permissions.js'
7
+
8
+ /**
9
+ * Types the exports above mention but do not themselves export. Without
10
+ * them a consumer's declaration emit has no name for the type it infers,
11
+ * and fails with TS2883 rather than reaching for the original entry point.
12
+ */
13
+ export type {
14
+ CorePermissionGroup,
15
+ CorePikkuPermission,
16
+ } from '../function/functions.types.js'
17
+ export type { LogLevel } from '../services/logger.js'
18
+ export type { WebhookServiceConfig } from '../services/webhook-service.js'
19
+ export type { RelativeTimeInput } from '../time-utils.js'
20
+ export type {
21
+ CorePikkuMiddleware,
22
+ CorePikkuMiddlewareFactory,
23
+ CoreSingletonServices,
24
+ CoreUserSession,
25
+ PostgresConfig,
26
+ } from '../types/core.types.js'
27
+ export type { WorkflowServiceConfig } from '../wirings/workflow/workflow.types.js'
@@ -0,0 +1 @@
1
+ export { installNodeHostResolver } from '../utils/node-host-resolver.js'
@@ -0,0 +1,5 @@
1
+ export type {
2
+ CoreNodeConfig,
3
+ NodeType,
4
+ NodesMeta,
5
+ } from '../wirings/node/node.types.js'
@@ -0,0 +1,4 @@
1
+ export type {
2
+ OAuth2AppCredential,
3
+ OAuth2Token,
4
+ } from '../wirings/oauth2/oauth2.types.js'
@@ -0,0 +1,30 @@
1
+ export { HttpPersona, createHttpPersonas } from '../services/http-personas.js'
2
+ export type { HttpPersonasConfig } from '../services/http-personas.js'
3
+ export { personaEmails } from '../wirings/persona/persona-email.js'
4
+ export {
5
+ personaEnvironmentErrors,
6
+ personaEnvironmentRefusal,
7
+ } from '../wirings/persona/persona-environments.js'
8
+ export type {
9
+ CorePersona,
10
+ PersonaAccountMeta,
11
+ PersonaDefinitions,
12
+ } from '../wirings/persona/persona.types.js'
13
+ export {
14
+ roleMismatchMessage,
15
+ validateAndBuildPersonasMeta,
16
+ verifyPersonaRoles,
17
+ } from '../wirings/persona/validate-personas.js'
18
+
19
+ /**
20
+ * Types the exports above mention but do not themselves export. Without
21
+ * them a consumer's declaration emit has no name for the type it infers,
22
+ * and fails with TS2883 rather than reaching for the original entry point.
23
+ */
24
+ export type { ScenarioPersonas } from '../services/personas-service.js'
25
+ export type {
26
+ PersonaEnvironment,
27
+ PersonaEnvironmentSubject,
28
+ } from '../wirings/persona/persona-environments.js'
29
+ export type { PersonasMeta } from '../wirings/persona/persona.types.js'
30
+ export type { RoleVerification } from '../wirings/persona/validate-personas.js'
@@ -0,0 +1,23 @@
1
+ export {
2
+ QueueJobDiscardedError,
3
+ QueueJobFailedError,
4
+ } from '../wirings/queue/queue-runner.js'
5
+ export type {
6
+ ConfigValidationResult,
7
+ CoreQueueWorker,
8
+ JobOptions,
9
+ PikkuJobConfig,
10
+ PikkuWorkerConfig,
11
+ QueueWorkers,
12
+ QueueWorkersMeta,
13
+ } from '../wirings/queue/queue.types.js'
14
+ export { registerQueueWorkers } from '../wirings/queue/register-queue-helper.js'
15
+ export type { QueueConfigMapping } from '../wirings/queue/validate-worker-config.js'
16
+
17
+ /**
18
+ * Types the exports above mention but do not themselves export. Without
19
+ * them a consumer's declaration emit has no name for the type it infers,
20
+ * and fails with TS2883 rather than reaching for the original entry point.
21
+ */
22
+ export type { Logger } from '../services/logger.js'
23
+ export type { QueueRegistrationCallback } from '../wirings/queue/register-queue-helper.js'
@@ -0,0 +1,9 @@
1
+ export { buildRemoteHeaders } from '../remote.js'
2
+
3
+ /**
4
+ * Types the exports above mention but do not themselves export. Without
5
+ * them a consumer's declaration emit has no name for the type it infers,
6
+ * and fails with TS2883 rather than reaching for the original entry point.
7
+ */
8
+ export type { JWTService } from '../services/jwt-service.js'
9
+ export type { SecretService } from '../services/secret-service.js'
@@ -0,0 +1,13 @@
1
+ export { defineSystemRole } from '../wirings/role/define-system-role.js'
2
+ export type {
3
+ CoreSystemRole,
4
+ CoreSystemRoles,
5
+ SystemRole,
6
+ SystemRoleDefinitionMeta,
7
+ SystemRoleDefinitions,
8
+ SystemRoleDefinitionsMeta,
9
+ } from '../wirings/role/role.types.js'
10
+ export {
11
+ flattenSystemRoleDefinitions,
12
+ validateAndBuildSystemRoleDefinitionsMeta,
13
+ } from '../wirings/role/validate-role-definitions.js'
@@ -0,0 +1,7 @@
1
+ export { wireAddon } from '../wirings/rpc/wire-addon.js'
2
+ export type { WireAddonConfig } from '../wirings/rpc/wire-addon.js'
3
+ export { wireRemoteAddon } from '../wirings/rpc/wire-remote-addon.js'
4
+ export type {
5
+ RemoteAddonAuth,
6
+ WireRemoteAddonConfig,
7
+ } from '../wirings/rpc/wire-remote-addon.js'
@@ -0,0 +1,8 @@
1
+ export { safeFetch } from '../utils/safe-fetch.js'
2
+
3
+ /**
4
+ * Types the exports above mention but do not themselves export. Without
5
+ * them a consumer's declaration emit has no name for the type it infers,
6
+ * and fails with TS2883 rather than reaching for the original entry point.
7
+ */
8
+ export type { SafeFetchOptions } from '../utils/safe-fetch.js'
@@ -0,0 +1,32 @@
1
+ export type {
2
+ PikkuScenarioWire,
3
+ ScenarioStepMeta,
4
+ } from '../wirings/workflow/dsl/workflow-dsl.types.js'
5
+ export {
6
+ addFeature,
7
+ resolveFeatureScenarios,
8
+ } from '../wirings/workflow/feature.js'
9
+ export { PikkuScenarioService } from '../wirings/workflow/pikku-scenario-service.js'
10
+ export { composeStepProse } from '../wirings/workflow/scenario-prose.js'
11
+ export { SCENARIO_SURFACES } from '../wirings/workflow/scenario-step.types.js'
12
+ export type {
13
+ PikkuBrowserWire,
14
+ ScenarioBrowserFailure,
15
+ ScenarioBrowserProvider,
16
+ ScenarioStepKind,
17
+ ScenarioStepOptions,
18
+ ScenarioStepPhase,
19
+ } from '../wirings/workflow/scenario-step.types.js'
20
+ export type {
21
+ CoreFeature,
22
+ FeaturesMeta,
23
+ } from '../wirings/workflow/scenario.types.js'
24
+
25
+ /**
26
+ * Types the exports above mention but do not themselves export. Without
27
+ * them a consumer's declaration emit has no name for the type it infers,
28
+ * and fails with TS2883 rather than reaching for the original entry point.
29
+ */
30
+ export type { ScenarioSurface } from '../wirings/workflow/scenario-step.types.js'
31
+ export type { FeaturePlanEntry } from '../wirings/workflow/scenario.types.js'
32
+ export type { CoreWorkflow } from '../wirings/workflow/workflow.types.js'
@@ -0,0 +1,5 @@
1
+ export { getScheduledTasks } from '../wirings/scheduler/scheduler-runner.js'
2
+ export type {
3
+ CoreScheduledTask,
4
+ ScheduledTasksMeta,
5
+ } from '../wirings/scheduler/scheduler.types.js'
@@ -0,0 +1 @@
1
+ export { addSchema } from '../schema.js'
@@ -0,0 +1,14 @@
1
+ export { defineScope } from '../wirings/scope/define-scope.js'
2
+ export type {
3
+ CoreScopeNode,
4
+ CoreScopes,
5
+ FlatScope,
6
+ ScopeDefinitionMeta,
7
+ ScopeDefinitions,
8
+ ScopeDefinitionsMeta,
9
+ ScopeNodeMeta,
10
+ } from '../wirings/scope/scope.types.js'
11
+ export {
12
+ flattenScopeDefinitions,
13
+ validateAndBuildScopeDefinitionsMeta,
14
+ } from '../wirings/scope/validate-scope-definitions.js'
@@ -0,0 +1,15 @@
1
+ export type {
2
+ CoreSecret,
3
+ OAuth2CredentialConfig,
4
+ SecretDefinitionMeta,
5
+ SecretDefinitions,
6
+ } from '../wirings/secret/secret.types.js'
7
+ export { validateAndBuildSecretDefinitionsMeta } from '../wirings/secret/validate-secret-definitions.js'
8
+
9
+ /**
10
+ * Types the exports above mention but do not themselves export. Without
11
+ * them a consumer's declaration emit has no name for the type it infers,
12
+ * and fails with TS2883 rather than reaching for the original entry point.
13
+ */
14
+ export type { SchemaRefLike } from '../types/core.types.js'
15
+ export type { SecretDefinitionsMeta } from '../wirings/secret/secret.types.js'
@@ -0,0 +1 @@
1
+ export { IstanbulCoverageService } from '../../services/istanbul-coverage-service.js'
@@ -0,0 +1,16 @@
1
+ export {
2
+ createLocalContentRequestHandler,
3
+ verifySignedContentRequest,
4
+ } from '../../services/local-content-request-handler.js'
5
+ export type { LocalContentRequestHandler } from '../../services/local-content-request-handler.js'
6
+
7
+ /**
8
+ * Types the exports above mention but do not themselves export. Without
9
+ * them a consumer's declaration emit has no name for the type it infers,
10
+ * and fails with TS2883 rather than reaching for the original entry point.
11
+ */
12
+ export type { JWTService } from '../../services/jwt-service.js'
13
+ export type {
14
+ LocalContentRequestHandlerOptions,
15
+ SignedContentVerification,
16
+ } from '../../services/local-content-request-handler.js'
@@ -0,0 +1 @@
1
+ export { signedContentPath } from '../../services/local-content.js'
@@ -0,0 +1 @@
1
+ export { V8CoverageService } from '../../services/v8-coverage-service.js'
@@ -0,0 +1,82 @@
1
+ export type {
2
+ AuditDurability,
3
+ AuditEvent,
4
+ AuditEventBatch,
5
+ } from '../services/audit-service.js'
6
+ export type {
7
+ DeploymentConfig,
8
+ DeploymentService,
9
+ DeploymentServiceConfig,
10
+ } from '../services/deployment-service.js'
11
+ export { InMemoryAgentRunStateService } from '../services/in-memory-agent-run-state-service.js'
12
+ export type {
13
+ AgentMeta,
14
+ AgentsMeta,
15
+ EmailTemplateMeta,
16
+ EmailsMeta,
17
+ GroupMeta,
18
+ MCPMeta,
19
+ MetaService,
20
+ MiddlewareDefinitionMeta,
21
+ MiddlewareGroupsMeta,
22
+ MiddlewareInstanceMeta,
23
+ PermissionDefinitionMeta,
24
+ PermissionsGroupsMeta,
25
+ RPCMetaRecord,
26
+ ServiceMeta,
27
+ ServicesMetaRecord,
28
+ } from '../services/meta-service.js'
29
+ export type {
30
+ ResolvedPersona,
31
+ ScenarioPersonas,
32
+ } from '../services/personas-service.js'
33
+ export { pikkuWebhookWorkerFunc } from '../services/queue-webhook-service.js'
34
+ export type {
35
+ ScheduledTaskInfo,
36
+ ScheduledTaskSummary,
37
+ } from '../services/scheduler-service.js'
38
+ export type { Role } from '../services/scope-service.js'
39
+ export { getStubTracker, spy } from '../services/stub-tracker.js'
40
+ export type { CredentialMetaInfo } from '../services/typed-credential-service.js'
41
+ export type { CredentialMeta } from '../services/typed-secret-service.js'
42
+ export { TypedVariablesService } from '../services/typed-variables-service.js'
43
+ export type { VariableMeta } from '../services/typed-variables-service.js'
44
+ export {
45
+ PikkuSessionService,
46
+ createMiddlewareSessionWireProps,
47
+ } from '../services/user-session-service.js'
48
+ export type {
49
+ CoverageFunctionMeta,
50
+ CoverageService,
51
+ FunctionCoverageEntry,
52
+ FunctionCoverageReport,
53
+ ScriptCoverage,
54
+ } from '../services/v8-coverage-service.js'
55
+ export { PIKKU_OUTGOING_WEBHOOK_QUEUE_NAME } from '../services/webhook-service.js'
56
+ export type {
57
+ SendWebhookInput,
58
+ SendWebhookResult,
59
+ WebhookAttemptResult,
60
+ WebhookDeliveryRecord,
61
+ WebhookDeliveryWithAttempts,
62
+ } from '../services/webhook-service.js'
63
+ export type {
64
+ FunctionMeta,
65
+ FunctionsMeta,
66
+ MiddlewareMetadata as MiddlewareMeta,
67
+ PermissionMetadata as PermissionMeta,
68
+ } from '../types/core.types.js'
69
+
70
+ /**
71
+ * Types the exports above mention but do not themselves export. Without
72
+ * them a consumer's declaration emit has no name for the type it infers,
73
+ * and fails with TS2883 rather than reaching for the original entry point.
74
+ */
75
+ export type { Logger } from '../services/logger.js'
76
+ export type { StubTracker } from '../services/stub-tracker.js'
77
+ export type { SessionService } from '../services/user-session-service.js'
78
+ export type {
79
+ WebhookJobData,
80
+ WebhookService,
81
+ } from '../services/webhook-service.js'
82
+ export type { CoreUserSession } from '../types/core.types.js'