@pikku/addon-meta-conversions 0.1.3 → 0.1.5

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 (480) hide show
  1. package/dist/.pikku/addon/agent/index.d.ts +8 -0
  2. package/dist/.pikku/addon/agent/index.d.ts.map +1 -0
  3. package/dist/.pikku/addon/agent/index.js +8 -0
  4. package/dist/.pikku/addon/agent/index.js.map +1 -0
  5. package/dist/.pikku/addon/agent/index.ts +8 -0
  6. package/dist/.pikku/addon/agent/pikku-agent-map.gen.d.ts +4 -0
  7. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts +54 -0
  8. package/dist/.pikku/addon/agent/pikku-agent-types.gen.d.ts.map +1 -0
  9. package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.js +5 -3
  10. package/dist/.pikku/addon/agent/pikku-agent-types.gen.js.map +1 -0
  11. package/dist/.pikku/{agent → addon/agent}/pikku-agent-types.gen.ts +28 -21
  12. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts +2 -0
  13. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.d.ts.map +1 -0
  14. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js +6 -0
  15. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.js.map +1 -0
  16. package/dist/.pikku/addon/agent/pikku-model-aliases.gen.ts +6 -0
  17. package/dist/.pikku/addon/agent/pikku-scorer-names.gen.d.ts +8 -0
  18. package/dist/.pikku/addon/auth/index.d.ts +8 -0
  19. package/dist/.pikku/addon/auth/index.d.ts.map +1 -0
  20. package/dist/.pikku/addon/auth/index.js +8 -0
  21. package/dist/.pikku/addon/auth/index.js.map +1 -0
  22. package/dist/.pikku/addon/auth/index.ts +8 -0
  23. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts +119 -0
  24. package/dist/.pikku/addon/auth/pikku-auth-types.gen.d.ts.map +1 -0
  25. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js +93 -0
  26. package/dist/.pikku/addon/auth/pikku-auth-types.gen.js.map +1 -0
  27. package/dist/.pikku/addon/auth/pikku-auth-types.gen.ts +156 -0
  28. package/dist/.pikku/addon/channel/index.d.ts +8 -0
  29. package/dist/.pikku/addon/channel/index.d.ts.map +1 -0
  30. package/dist/.pikku/addon/channel/index.js +8 -0
  31. package/dist/.pikku/addon/channel/index.js.map +1 -0
  32. package/dist/.pikku/addon/channel/index.ts +8 -0
  33. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.d.ts +5 -26
  34. package/dist/.pikku/addon/channel/pikku-channel-types.gen.d.ts.map +1 -0
  35. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.js +2 -19
  36. package/dist/.pikku/addon/channel/pikku-channel-types.gen.js.map +1 -0
  37. package/dist/.pikku/{channel → addon/channel}/pikku-channel-types.gen.ts +7 -49
  38. package/dist/.pikku/addon/error/index.d.ts +8 -0
  39. package/dist/.pikku/addon/error/index.d.ts.map +1 -0
  40. package/dist/.pikku/addon/error/index.js +8 -0
  41. package/dist/.pikku/addon/error/index.js.map +1 -0
  42. package/dist/.pikku/addon/error/index.ts +8 -0
  43. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts +8 -0
  44. package/dist/.pikku/addon/error/pikku-error-types.gen.d.ts.map +1 -0
  45. package/dist/.pikku/addon/error/pikku-error-types.gen.js +8 -0
  46. package/dist/.pikku/addon/error/pikku-error-types.gen.js.map +1 -0
  47. package/dist/.pikku/addon/error/pikku-error-types.gen.ts +8 -0
  48. package/dist/.pikku/addon/function/index.d.ts +8 -0
  49. package/dist/.pikku/addon/function/index.d.ts.map +1 -0
  50. package/dist/.pikku/addon/function/index.js +8 -0
  51. package/dist/.pikku/addon/function/index.js.map +1 -0
  52. package/dist/.pikku/addon/function/index.ts +8 -0
  53. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts +270 -0
  54. package/dist/.pikku/addon/function/pikku-function-types.gen.d.ts.map +1 -0
  55. package/dist/.pikku/addon/function/pikku-function-types.gen.js +117 -0
  56. package/dist/.pikku/addon/function/pikku-function-types.gen.js.map +1 -0
  57. package/{.pikku → dist/.pikku/addon}/function/pikku-function-types.gen.ts +65 -381
  58. package/dist/.pikku/addon/function/pikku-functions-meta.gen.d.ts.map +1 -0
  59. package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.js +2 -2
  60. package/dist/.pikku/addon/function/pikku-functions-meta.gen.js.map +1 -0
  61. package/dist/.pikku/addon/function/pikku-functions-meta.gen.ts +7 -0
  62. package/dist/.pikku/addon/function/pikku-functions.gen.d.ts.map +1 -0
  63. package/dist/.pikku/{function → addon/function}/pikku-functions.gen.js +2 -2
  64. package/dist/.pikku/addon/function/pikku-functions.gen.js.map +1 -0
  65. package/dist/.pikku/{function → addon/function}/pikku-functions.gen.ts +2 -2
  66. package/dist/.pikku/addon/http/index.d.ts +8 -0
  67. package/dist/.pikku/addon/http/index.d.ts.map +1 -0
  68. package/dist/.pikku/addon/http/index.js +8 -0
  69. package/dist/.pikku/addon/http/index.js.map +1 -0
  70. package/dist/.pikku/addon/http/index.ts +8 -0
  71. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts +50 -0
  72. package/dist/.pikku/addon/http/pikku-http-types.gen.d.ts.map +1 -0
  73. package/dist/.pikku/addon/http/pikku-http-types.gen.js +11 -0
  74. package/dist/.pikku/addon/http/pikku-http-types.gen.js.map +1 -0
  75. package/dist/.pikku/addon/http/pikku-http-types.gen.ts +62 -0
  76. package/dist/.pikku/addon/mcp/index.d.ts +8 -0
  77. package/dist/.pikku/addon/mcp/index.d.ts.map +1 -0
  78. package/dist/.pikku/addon/mcp/index.js +8 -0
  79. package/dist/.pikku/addon/mcp/index.js.map +1 -0
  80. package/dist/.pikku/addon/mcp/index.ts +8 -0
  81. package/dist/.pikku/{mcp → addon/mcp}/pikku-mcp-types.gen.d.ts +7 -36
  82. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  83. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js +16 -0
  84. package/dist/.pikku/addon/mcp/pikku-mcp-types.gen.js.map +1 -0
  85. package/{.pikku → dist/.pikku/addon}/mcp/pikku-mcp-types.gen.ts +6 -50
  86. package/dist/.pikku/addon/middleware/index.d.ts +8 -0
  87. package/dist/.pikku/addon/middleware/index.d.ts.map +1 -0
  88. package/dist/.pikku/addon/middleware/index.js +8 -0
  89. package/dist/.pikku/addon/middleware/index.js.map +1 -0
  90. package/dist/.pikku/addon/middleware/index.ts +8 -0
  91. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts +118 -0
  92. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.d.ts.map +1 -0
  93. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js +109 -0
  94. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.js.map +1 -0
  95. package/dist/.pikku/addon/middleware/pikku-middleware-types.gen.ts +167 -0
  96. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.d.ts → addon/pikku-bootstrap-scenarios.gen.d.ts} +1 -1
  97. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.d.ts.map +1 -0
  98. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.js → addon/pikku-bootstrap-scenarios.gen.js} +1 -1
  99. package/dist/.pikku/addon/pikku-bootstrap-scenarios.gen.js.map +1 -0
  100. package/dist/.pikku/{pikku-bootstrap-scenarios.gen.ts → addon/pikku-bootstrap-scenarios.gen.ts} +1 -1
  101. package/dist/.pikku/{pikku-bootstrap.gen.d.ts → addon/pikku-bootstrap.gen.d.ts} +3 -2
  102. package/dist/.pikku/addon/pikku-bootstrap.gen.d.ts.map +1 -0
  103. package/dist/.pikku/{pikku-bootstrap.gen.js → addon/pikku-bootstrap.gen.js} +3 -2
  104. package/dist/.pikku/addon/pikku-bootstrap.gen.js.map +1 -0
  105. package/dist/.pikku/addon/pikku-bootstrap.gen.ts +9 -0
  106. package/dist/.pikku/addon/pikku-package.gen.js +3 -2
  107. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  108. package/dist/.pikku/addon/pikku-package.gen.ts +4 -2
  109. package/dist/.pikku/{pikku-services.gen.d.ts → addon/pikku-services.gen.d.ts} +9 -8
  110. package/dist/.pikku/addon/pikku-services.gen.d.ts.map +1 -0
  111. package/dist/.pikku/{pikku-services.gen.js → addon/pikku-services.gen.js} +5 -4
  112. package/dist/.pikku/addon/pikku-services.gen.js.map +1 -0
  113. package/{.pikku → dist/.pikku/addon}/pikku-services.gen.ts +9 -8
  114. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.gen.d.ts +6 -11
  115. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.internal.gen.d.ts +6 -11
  116. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-map.remote.gen.d.ts +6 -11
  117. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
  118. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.js +2 -2
  119. package/dist/.pikku/addon/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
  120. package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.ts +2 -2
  121. package/dist/.pikku/addon/scenarios/index.d.ts +8 -0
  122. package/dist/.pikku/addon/scenarios/index.d.ts.map +1 -0
  123. package/dist/.pikku/addon/scenarios/index.js +8 -0
  124. package/dist/.pikku/addon/scenarios/index.js.map +1 -0
  125. package/dist/.pikku/addon/scenarios/index.ts +8 -0
  126. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.d.ts +3 -1
  127. package/dist/.pikku/addon/scenarios/pikku-personas.gen.d.ts.map +1 -0
  128. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.js +1 -1
  129. package/dist/.pikku/addon/scenarios/pikku-personas.gen.js.map +1 -0
  130. package/dist/.pikku/{workflow → addon/scenarios}/pikku-personas.gen.ts +4 -6
  131. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +1 -0
  132. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.js +2 -2
  133. package/dist/.pikku/addon/scenarios/pikku-scenario-functions-meta.gen.js.map +1 -0
  134. package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-functions-meta.gen.ts +3 -3
  135. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts +5 -0
  136. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.d.ts.map +1 -0
  137. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.js.map +1 -0
  138. package/dist/.pikku/addon/scenarios/pikku-scenario-functions.gen.ts +4 -0
  139. package/dist/.pikku/{workflow/pikku-workflow-types.gen.d.ts → addon/scenarios/pikku-scenario-types.gen.d.ts} +79 -107
  140. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.d.ts.map +1 -0
  141. package/dist/.pikku/{workflow/pikku-workflow-types.gen.js → addon/scenarios/pikku-scenario-types.gen.js} +9 -16
  142. package/dist/.pikku/addon/scenarios/pikku-scenario-types.gen.js.map +1 -0
  143. package/dist/.pikku/{workflow/pikku-workflow-types.gen.ts → addon/scenarios/pikku-scenario-types.gen.ts} +119 -210
  144. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +1 -0
  145. package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.js +2 -2
  146. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings-meta.gen.js.map +1 -0
  147. package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-wirings-meta.gen.ts +3 -3
  148. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts +5 -0
  149. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.d.ts.map +1 -0
  150. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.js.map +1 -0
  151. package/dist/.pikku/addon/scenarios/pikku-scenario-wirings.gen.ts +4 -0
  152. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts +5 -0
  153. package/dist/.pikku/addon/scenarios/schemas/register.gen.d.ts.map +1 -0
  154. package/dist/.pikku/addon/scenarios/schemas/register.gen.js +5 -0
  155. package/dist/.pikku/addon/scenarios/schemas/register.gen.js.map +1 -0
  156. package/dist/.pikku/addon/scenarios/schemas/register.gen.ts +4 -0
  157. package/dist/.pikku/addon/schemas/register.gen.d.ts.map +1 -0
  158. package/dist/.pikku/{schemas → addon/schemas}/register.gen.js +1 -1
  159. package/dist/.pikku/addon/schemas/register.gen.js.map +1 -0
  160. package/dist/.pikku/{schemas → addon/schemas}/register.gen.ts +1 -1
  161. package/dist/.pikku/addon/scopes/index.d.ts +8 -0
  162. package/dist/.pikku/addon/scopes/index.d.ts.map +1 -0
  163. package/dist/.pikku/addon/scopes/index.js +8 -0
  164. package/dist/.pikku/addon/scopes/index.js.map +1 -0
  165. package/dist/.pikku/addon/scopes/index.ts +8 -0
  166. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.d.ts +5 -13
  167. package/dist/.pikku/addon/scopes/pikku-personas.gen.d.ts.map +1 -0
  168. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.js +1 -1
  169. package/dist/.pikku/addon/scopes/pikku-personas.gen.js.map +1 -0
  170. package/dist/.pikku/{scopes → addon/scopes}/pikku-personas.gen.ts +5 -16
  171. package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.d.ts +1 -1
  172. package/dist/.pikku/addon/scopes/pikku-roles.gen.d.ts.map +1 -0
  173. package/dist/.pikku/addon/scopes/pikku-roles.gen.js.map +1 -0
  174. package/{.pikku → dist/.pikku/addon}/scopes/pikku-roles.gen.ts +1 -1
  175. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts +6 -0
  176. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.d.ts.map +1 -0
  177. package/dist/.pikku/{scopes → addon/scopes}/pikku-scope-types.gen.js +1 -1
  178. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.js.map +1 -0
  179. package/dist/.pikku/addon/scopes/pikku-scope-types.gen.ts +5 -0
  180. package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.d.ts +1 -1
  181. package/dist/.pikku/addon/scopes/pikku-scopes.gen.d.ts.map +1 -0
  182. package/dist/.pikku/addon/scopes/pikku-scopes.gen.js.map +1 -0
  183. package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.ts +1 -1
  184. package/dist/.pikku/addon/secrets/index.d.ts +9 -0
  185. package/dist/.pikku/addon/secrets/index.d.ts.map +1 -0
  186. package/dist/.pikku/addon/secrets/index.js +9 -0
  187. package/dist/.pikku/addon/secrets/index.js.map +1 -0
  188. package/dist/.pikku/addon/secrets/index.ts +9 -0
  189. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts +5 -0
  190. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.d.ts.map +1 -0
  191. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js +5 -0
  192. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.js.map +1 -0
  193. package/dist/.pikku/addon/secrets/pikku-secret-types.gen.ts +4 -0
  194. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts +22 -0
  195. package/dist/.pikku/addon/secrets/pikku-secrets.gen.d.ts.map +1 -0
  196. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js +21 -0
  197. package/dist/.pikku/addon/secrets/pikku-secrets.gen.js.map +1 -0
  198. package/dist/.pikku/addon/secrets/pikku-secrets.gen.ts +30 -0
  199. package/dist/.pikku/{pikku-meta-service.gen.d.ts → addon/services/pikku-meta-service.gen.d.ts} +1 -1
  200. package/dist/.pikku/addon/services/pikku-meta-service.gen.d.ts.map +1 -0
  201. package/dist/.pikku/{pikku-meta-service.gen.js → addon/services/pikku-meta-service.gen.js} +2 -2
  202. package/dist/.pikku/addon/services/pikku-meta-service.gen.js.map +1 -0
  203. package/dist/.pikku/{pikku-meta-service.gen.ts → addon/services/pikku-meta-service.gen.ts} +2 -2
  204. package/dist/.pikku/addon/setup/index.d.ts +9 -0
  205. package/dist/.pikku/addon/setup/index.d.ts.map +1 -0
  206. package/dist/.pikku/addon/setup/index.js +9 -0
  207. package/dist/.pikku/addon/setup/index.js.map +1 -0
  208. package/dist/.pikku/addon/setup/index.ts +9 -0
  209. package/dist/.pikku/addon/{pikku-addon-types.gen.d.ts → setup/pikku-addon-setup-types.gen.d.ts} +7 -6
  210. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.d.ts.map +1 -0
  211. package/dist/.pikku/addon/{pikku-addon-types.gen.js → setup/pikku-addon-setup-types.gen.js} +3 -3
  212. package/dist/.pikku/addon/setup/pikku-addon-setup-types.gen.js.map +1 -0
  213. package/{.pikku/addon/pikku-addon-types.gen.ts → dist/.pikku/addon/setup/pikku-addon-setup-types.gen.ts} +6 -5
  214. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts +67 -0
  215. package/dist/.pikku/addon/setup/pikku-setup-types.gen.d.ts.map +1 -0
  216. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js +88 -0
  217. package/dist/.pikku/addon/setup/pikku-setup-types.gen.js.map +1 -0
  218. package/dist/.pikku/addon/setup/pikku-setup-types.gen.ts +105 -0
  219. package/dist/.pikku/addon/surface-usage.gen.json +1702 -0
  220. package/dist/.pikku/addon/trigger/index.d.ts +8 -0
  221. package/dist/.pikku/addon/trigger/index.d.ts.map +1 -0
  222. package/dist/.pikku/addon/trigger/index.js +8 -0
  223. package/dist/.pikku/addon/trigger/index.js.map +1 -0
  224. package/dist/.pikku/addon/trigger/index.ts +8 -0
  225. package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.d.ts +6 -37
  226. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
  227. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js +13 -0
  228. package/dist/.pikku/addon/trigger/pikku-trigger-types.gen.js.map +1 -0
  229. package/dist/.pikku/{trigger → addon/trigger}/pikku-trigger-types.gen.ts +9 -45
  230. package/dist/.pikku/addon/variables/index.d.ts +9 -0
  231. package/dist/.pikku/addon/variables/index.d.ts.map +1 -0
  232. package/dist/.pikku/addon/variables/index.js +9 -0
  233. package/dist/.pikku/addon/variables/index.js.map +1 -0
  234. package/dist/.pikku/addon/variables/index.ts +9 -0
  235. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts +5 -0
  236. package/dist/.pikku/addon/variables/pikku-variable-types.gen.d.ts.map +1 -0
  237. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js +5 -0
  238. package/dist/.pikku/addon/variables/pikku-variable-types.gen.js.map +1 -0
  239. package/dist/.pikku/addon/variables/pikku-variable-types.gen.ts +4 -0
  240. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts +19 -0
  241. package/dist/.pikku/addon/variables/pikku-variables.gen.d.ts.map +1 -0
  242. package/dist/.pikku/addon/variables/pikku-variables.gen.js +19 -0
  243. package/dist/.pikku/addon/variables/pikku-variables.gen.js.map +1 -0
  244. package/dist/.pikku/addon/variables/pikku-variables.gen.ts +30 -0
  245. package/dist/.pikku/addon/workflow/index.d.ts +8 -0
  246. package/dist/.pikku/addon/workflow/index.d.ts.map +1 -0
  247. package/dist/.pikku/addon/workflow/index.js +8 -0
  248. package/dist/.pikku/addon/workflow/index.js.map +1 -0
  249. package/dist/.pikku/addon/workflow/index.ts +8 -0
  250. package/dist/.pikku/{workflow → addon/workflow}/pikku-scenario-step-map.gen.d.ts +2 -2
  251. package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-map.gen.d.ts +1 -1
  252. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts +106 -0
  253. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
  254. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js +16 -0
  255. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.js.map +1 -0
  256. package/dist/.pikku/addon/workflow/pikku-workflow-types.gen.ts +200 -0
  257. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
  258. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
  259. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
  260. package/dist/.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
  261. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
  262. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
  263. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js +5 -0
  264. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.js.map +1 -0
  265. package/dist/.pikku/addon/workflow/pikku-workflow-wirings.gen.ts +3 -0
  266. package/dist/src/functions/events/send.function.d.ts +4 -4
  267. package/dist/src/functions/events/send.function.d.ts.map +1 -1
  268. package/dist/src/functions/events/send.function.js +1 -1
  269. package/dist/src/functions/events/send.function.js.map +1 -1
  270. package/dist/src/services.d.ts +1 -1
  271. package/dist/src/services.d.ts.map +1 -1
  272. package/dist/src/services.js +2 -2
  273. package/dist/src/services.js.map +1 -1
  274. package/dist/types/application-types.d.ts +12 -0
  275. package/package.json +8 -8
  276. package/.pikku/addon/pikku-package.gen.ts +0 -11
  277. package/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  278. package/.pikku/agent/pikku-agent-types.gen.ts +0 -84
  279. package/.pikku/channel/pikku-channel-types.gen.ts +0 -177
  280. package/.pikku/console/pikku-node-types.gen.ts +0 -8
  281. package/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  282. package/.pikku/function/pikku-functions.gen.ts +0 -8
  283. package/.pikku/http/pikku-http-types.gen.ts +0 -119
  284. package/.pikku/pikku-bootstrap-scenarios.gen.ts +0 -9
  285. package/.pikku/pikku-bootstrap.gen.ts +0 -8
  286. package/.pikku/pikku-meta-service.gen.ts +0 -10
  287. package/.pikku/pikku-types.gen.ts +0 -24
  288. package/.pikku/queue/pikku-queue-types.gen.ts +0 -27
  289. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +0 -135
  290. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +0 -136
  291. package/.pikku/rpc/pikku-rpc-wirings-map.remote.gen.d.ts +0 -135
  292. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -6
  293. package/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
  294. package/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
  295. package/.pikku/scenarios/schemas/register.gen.ts +0 -4
  296. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
  297. package/.pikku/schemas/register.gen.ts +0 -15
  298. package/.pikku/scopes/pikku-personas.gen.ts +0 -52
  299. package/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
  300. package/.pikku/scopes/pikku-scopes.gen.ts +0 -58
  301. package/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  302. package/.pikku/secrets/pikku-secrets.gen.ts +0 -36
  303. package/.pikku/trigger/pikku-trigger-types.gen.ts +0 -160
  304. package/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  305. package/.pikku/variables/pikku-variables.gen.ts +0 -34
  306. package/.pikku/workflow/pikku-personas.gen.ts +0 -38
  307. package/.pikku/workflow/pikku-scenario-step-map.gen.d.ts +0 -18
  308. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +0 -38
  309. package/.pikku/workflow/pikku-workflow-types.gen.ts +0 -591
  310. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  311. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
  312. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +0 -1
  313. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +0 -1
  314. package/dist/.pikku/addon/pikku-addon-types.gen.ts +0 -105
  315. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +0 -4
  316. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +0 -49
  317. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +0 -1
  318. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +0 -1
  319. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +0 -1
  320. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +0 -1
  321. package/dist/.pikku/console/pikku-addon-meta.gen.json +0 -36
  322. package/dist/.pikku/console/pikku-node-types.gen.d.ts +0 -7
  323. package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +0 -1
  324. package/dist/.pikku/console/pikku-node-types.gen.js +0 -2
  325. package/dist/.pikku/console/pikku-node-types.gen.js.map +0 -1
  326. package/dist/.pikku/console/pikku-node-types.gen.ts +0 -8
  327. package/dist/.pikku/function/pikku-function-types.gen.d.ts +0 -506
  328. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +0 -1
  329. package/dist/.pikku/function/pikku-function-types.gen.js +0 -351
  330. package/dist/.pikku/function/pikku-function-types.gen.js.map +0 -1
  331. package/dist/.pikku/function/pikku-function-types.gen.ts +0 -797
  332. package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +0 -33
  333. package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +0 -1
  334. package/dist/.pikku/function/pikku-functions-meta.gen.js.map +0 -1
  335. package/dist/.pikku/function/pikku-functions-meta.gen.json +0 -27
  336. package/dist/.pikku/function/pikku-functions-meta.gen.ts +0 -7
  337. package/dist/.pikku/function/pikku-functions.gen.d.ts.map +0 -1
  338. package/dist/.pikku/function/pikku-functions.gen.js.map +0 -1
  339. package/dist/.pikku/http/pikku-http-types.gen.d.ts +0 -98
  340. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +0 -1
  341. package/dist/.pikku/http/pikku-http-types.gen.js +0 -50
  342. package/dist/.pikku/http/pikku-http-types.gen.js.map +0 -1
  343. package/dist/.pikku/http/pikku-http-types.gen.ts +0 -119
  344. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +0 -1
  345. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +0 -38
  346. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +0 -1
  347. package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +0 -183
  348. package/dist/.pikku/pikku-bootstrap-scenarios.gen.d.ts.map +0 -1
  349. package/dist/.pikku/pikku-bootstrap-scenarios.gen.js.map +0 -1
  350. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +0 -1
  351. package/dist/.pikku/pikku-bootstrap.gen.js.map +0 -1
  352. package/dist/.pikku/pikku-bootstrap.gen.ts +0 -8
  353. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +0 -1
  354. package/dist/.pikku/pikku-meta-service.gen.js.map +0 -1
  355. package/dist/.pikku/pikku-services.gen.d.ts.map +0 -1
  356. package/dist/.pikku/pikku-services.gen.js.map +0 -1
  357. package/dist/.pikku/pikku-services.gen.ts +0 -50
  358. package/dist/.pikku/pikku-types.gen.d.ts +0 -13
  359. package/dist/.pikku/pikku-types.gen.d.ts.map +0 -1
  360. package/dist/.pikku/pikku-types.gen.js +0 -19
  361. package/dist/.pikku/pikku-types.gen.js.map +0 -1
  362. package/dist/.pikku/pikku-types.gen.ts +0 -24
  363. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +0 -24
  364. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +0 -1
  365. package/dist/.pikku/queue/pikku-queue-types.gen.js +0 -17
  366. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +0 -1
  367. package/dist/.pikku/queue/pikku-queue-types.gen.ts +0 -27
  368. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +0 -1
  369. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +0 -1
  370. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -3
  371. package/dist/.pikku/scenarios/features.gen.json +0 -1
  372. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.d.ts.map +0 -1
  373. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.js.map +0 -1
  374. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.json +0 -1
  375. package/dist/.pikku/scenarios/pikku-scenario-functions-meta.gen.ts +0 -12
  376. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts +0 -5
  377. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.d.ts.map +0 -1
  378. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.js.map +0 -1
  379. package/dist/.pikku/scenarios/pikku-scenario-functions.gen.ts +0 -4
  380. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.d.ts.map +0 -1
  381. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.js.map +0 -1
  382. package/dist/.pikku/scenarios/pikku-scenario-wirings-meta.gen.ts +0 -15
  383. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts +0 -5
  384. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.d.ts.map +0 -1
  385. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.js.map +0 -1
  386. package/dist/.pikku/scenarios/pikku-scenario-wirings.gen.ts +0 -4
  387. package/dist/.pikku/scenarios/schemas/register.gen.d.ts +0 -5
  388. package/dist/.pikku/scenarios/schemas/register.gen.d.ts.map +0 -1
  389. package/dist/.pikku/scenarios/schemas/register.gen.js +0 -5
  390. package/dist/.pikku/scenarios/schemas/register.gen.js.map +0 -1
  391. package/dist/.pikku/scenarios/schemas/register.gen.ts +0 -4
  392. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +0 -22
  393. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +0 -1
  394. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +0 -17
  395. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +0 -1
  396. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +0 -25
  397. package/dist/.pikku/schemas/register.gen.d.ts.map +0 -1
  398. package/dist/.pikku/schemas/register.gen.js.map +0 -1
  399. package/dist/.pikku/schemas/schemas/EventSendInput.schema.json +0 -1
  400. package/dist/.pikku/schemas/schemas/EventSendOutput.schema.json +0 -1
  401. package/dist/.pikku/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -1
  402. package/dist/.pikku/scopes/pikku-personas-meta.gen.json +0 -1
  403. package/dist/.pikku/scopes/pikku-personas.gen.d.ts.map +0 -1
  404. package/dist/.pikku/scopes/pikku-personas.gen.js.map +0 -1
  405. package/dist/.pikku/scopes/pikku-roles-meta.gen.json +0 -1
  406. package/dist/.pikku/scopes/pikku-roles.gen.d.ts.map +0 -1
  407. package/dist/.pikku/scopes/pikku-roles.gen.js.map +0 -1
  408. package/dist/.pikku/scopes/pikku-roles.gen.ts +0 -41
  409. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts +0 -8
  410. package/dist/.pikku/scopes/pikku-scope-types.gen.d.ts.map +0 -1
  411. package/dist/.pikku/scopes/pikku-scope-types.gen.js.map +0 -1
  412. package/dist/.pikku/scopes/pikku-scope-types.gen.ts +0 -7
  413. package/dist/.pikku/scopes/pikku-scopes-meta.gen.json +0 -1
  414. package/dist/.pikku/scopes/pikku-scopes.gen.d.ts.map +0 -1
  415. package/dist/.pikku/scopes/pikku-scopes.gen.js.map +0 -1
  416. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +0 -6
  417. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +0 -1
  418. package/dist/.pikku/secrets/pikku-secret-types.gen.js +0 -5
  419. package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +0 -1
  420. package/dist/.pikku/secrets/pikku-secret-types.gen.ts +0 -5
  421. package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +0 -10
  422. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +0 -25
  423. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +0 -1
  424. package/dist/.pikku/secrets/pikku-secrets.gen.js +0 -23
  425. package/dist/.pikku/secrets/pikku-secrets.gen.js.map +0 -1
  426. package/dist/.pikku/secrets/pikku-secrets.gen.ts +0 -36
  427. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +0 -1
  428. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +0 -34
  429. package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +0 -1
  430. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +0 -6
  431. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +0 -1
  432. package/dist/.pikku/variables/pikku-variable-types.gen.js +0 -5
  433. package/dist/.pikku/variables/pikku-variable-types.gen.js.map +0 -1
  434. package/dist/.pikku/variables/pikku-variable-types.gen.ts +0 -5
  435. package/dist/.pikku/variables/pikku-variables-meta.gen.json +0 -1
  436. package/dist/.pikku/variables/pikku-variables.gen.d.ts +0 -22
  437. package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +0 -1
  438. package/dist/.pikku/variables/pikku-variables.gen.js +0 -21
  439. package/dist/.pikku/variables/pikku-variables.gen.js.map +0 -1
  440. package/dist/.pikku/variables/pikku-variables.gen.ts +0 -34
  441. package/dist/.pikku/workflow/personas.gen.json +0 -1
  442. package/dist/.pikku/workflow/pikku-personas.gen.d.ts.map +0 -1
  443. package/dist/.pikku/workflow/pikku-personas.gen.js.map +0 -1
  444. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +0 -1
  445. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +0 -1
  446. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +0 -1
  447. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +0 -7
  448. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +0 -1
  449. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +0 -9
  450. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +0 -5
  451. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +0 -1
  452. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +0 -5
  453. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +0 -1
  454. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +0 -3
  455. /package/{.pikku → dist/.pikku/addon}/console/pikku-addon-meta.gen.json +0 -0
  456. /package/{.pikku → dist/.pikku/addon}/function/pikku-functions-meta-verbose.gen.json +0 -0
  457. /package/dist/.pikku/{function → addon/function}/pikku-functions-meta.gen.d.ts +0 -0
  458. /package/{.pikku → dist/.pikku/addon}/function/pikku-functions-meta.gen.json +0 -0
  459. /package/dist/.pikku/{function → addon/function}/pikku-functions.gen.d.ts +0 -0
  460. /package/dist/.pikku/{rpc → addon/rpc}/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -0
  461. /package/{.pikku → dist/.pikku/addon}/rpc/pikku-rpc-wirings-meta.internal.gen.json +0 -0
  462. /package/{.pikku → dist/.pikku/addon}/scenarios/features.gen.json +0 -0
  463. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions-meta.gen.d.ts +0 -0
  464. /package/{.pikku → dist/.pikku/addon}/scenarios/pikku-scenario-functions-meta.gen.json +0 -0
  465. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-functions.gen.js +0 -0
  466. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings-meta.gen.d.ts +0 -0
  467. /package/dist/.pikku/{scenarios → addon/scenarios}/pikku-scenario-wirings.gen.js +0 -0
  468. /package/dist/.pikku/{schemas → addon/schemas}/register.gen.d.ts +0 -0
  469. /package/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendInput.schema.json +0 -0
  470. /package/{.pikku → dist/.pikku/addon}/schemas/schemas/EventSendOutput.schema.json +0 -0
  471. /package/{.pikku → dist/.pikku/addon}/schemas/schemas/SecretSchema_metaConversions.schema.json +0 -0
  472. /package/{.pikku → dist/.pikku/addon}/scopes/pikku-personas-meta.gen.json +0 -0
  473. /package/{.pikku → dist/.pikku/addon}/scopes/pikku-roles-meta.gen.json +0 -0
  474. /package/dist/.pikku/{scopes → addon/scopes}/pikku-roles.gen.js +0 -0
  475. /package/{.pikku → dist/.pikku/addon}/scopes/pikku-scopes-meta.gen.json +0 -0
  476. /package/dist/.pikku/{scopes → addon/scopes}/pikku-scopes.gen.js +0 -0
  477. /package/{.pikku → dist/.pikku/addon}/secrets/pikku-secrets-meta.gen.json +0 -0
  478. /package/{.pikku → dist/.pikku/addon}/variables/pikku-variables-meta.gen.json +0 -0
  479. /package/{.pikku → dist/.pikku/addon}/workflow/personas.gen.json +0 -0
  480. /package/dist/.pikku/{workflow → addon/workflow}/pikku-workflow-wirings-meta.gen.d.ts +0 -0
@@ -0,0 +1,200 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.107
3
+ */
4
+ import { WorkflowCancelledException } from '@pikku/core/workflow'
5
+ import { pikkuWorkflowGraph as corePikkuWorkflowGraph } from '@pikku/core/workflow'
6
+ import type {
7
+ PikkuWorkflowGraphConfig,
8
+ PikkuWorkflowGraphResult,
9
+ } from '@pikku/core/workflow'
10
+ import type {
11
+ PikkuWorkflowWire,
12
+ WorkflowStepOptions,
13
+ } from '@pikku/core/workflow'
14
+
15
+ export { WorkflowCancelledException }
16
+ import type { PikkuFunctionSessionless, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
17
+ import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.d.js'
18
+ import type { FlattenedWorkflowMap } from './pikku-workflow-map.gen.d.js'
19
+ import type { AgentMap as FlattenedAgentMap } from '../agent/pikku-agent-map.gen.d.js'
20
+
21
+ export interface TypedWorkflow extends PikkuWorkflowWire {
22
+ do<K extends keyof FlattenedRPCMap>(
23
+ stepName: string,
24
+ rpcName: K,
25
+ data: FlattenedRPCMap[K]['input'],
26
+ options?: WorkflowStepOptions
27
+ ): Promise<FlattenedRPCMap[K]['output']>
28
+
29
+ do<K extends keyof FlattenedWorkflowMap>(
30
+ stepName: string,
31
+ workflowName: K,
32
+ data: FlattenedWorkflowMap[K]['input'],
33
+ options?: WorkflowStepOptions
34
+ ): Promise<FlattenedWorkflowMap[K]['output']>
35
+
36
+ do<T>(
37
+ stepName: string,
38
+ fn: () => T | Promise<T>,
39
+ options?: WorkflowStepOptions
40
+ ): Promise<T>
41
+ }
42
+
43
+ import type { StandardSchemaV1 } from '@standard-schema/spec'
44
+ import type { InferSchemaOutput, NodeConfig, PikkuApprovalDescription } from '../function/pikku-function-types.gen.js'
45
+ import type { PikkuPermission } from '../auth/pikku-auth-types.gen.js'
46
+ import type { PikkuMiddleware } from '../middleware/pikku-middleware-types.gen.js'
47
+ import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
48
+ import { PikkuError } from '@pikku/core/errors'
49
+ import type { CorePermissionGroup } from '@pikku/core/function'
50
+
51
+ export type PikkuFunctionWorkflow<
52
+ In = unknown,
53
+ Out = never
54
+ > = PikkuFunctionSessionless<In, Out, 'workflow'>
55
+
56
+ type PikkuWorkflowConfigWithSchema<
57
+ InputSchema extends StandardSchemaV1 | undefined = undefined,
58
+ OutputSchema extends StandardSchemaV1 | undefined = undefined
59
+ > = {
60
+ title?: string
61
+ description?: string
62
+ tags?: string[]
63
+ expose?: boolean
64
+ internal?: boolean
65
+ override?: string
66
+ version?: number
67
+ remote?: boolean
68
+ mcp?: boolean
69
+ readonly?: boolean
70
+ approvalRequired?: boolean
71
+ approvalDescription?: InputSchema extends StandardSchemaV1 ? PikkuApprovalDescription<InferSchemaOutput<InputSchema>> : never
72
+ middleware?: PikkuMiddleware[]
73
+ input?: InputSchema
74
+ output?: OutputSchema
75
+ node?: NodeConfig
76
+ errors?: Array<typeof PikkuError>
77
+ inline?: boolean
78
+ func: PikkuFunctionWorkflow<
79
+ InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown,
80
+ OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown
81
+ >
82
+ auth?: boolean
83
+ /**
84
+ * Scopes the session must hold to run this workflow. All of them are required
85
+ * (AND), and they are checked before `permissions`.
86
+ */
87
+ scopes?: ScopeId[]
88
+ permissions?: InputSchema extends StandardSchemaV1 ? CorePermissionGroup<PikkuPermission<InferSchemaOutput<InputSchema>>> : undefined
89
+ }
90
+
91
+ export function pikkuWorkflowFunc<
92
+ InputSchema extends StandardSchemaV1 | undefined = undefined,
93
+ OutputSchema extends StandardSchemaV1 | undefined = undefined
94
+ >(
95
+ config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>
96
+ ): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
97
+ export function pikkuWorkflowFunc<In, Out = unknown>(
98
+ func:
99
+ | PikkuFunctionWorkflow<In, Out>
100
+ | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>
101
+ ): PikkuFunctionConfig<In, Out, 'workflow'>
102
+ export function pikkuWorkflowFunc(func: any) {
103
+ return typeof func === 'function' ? { func } : func
104
+ }
105
+
106
+ export function pikkuWorkflowComplexFunc<
107
+ InputSchema extends StandardSchemaV1 | undefined = undefined,
108
+ OutputSchema extends StandardSchemaV1 | undefined = undefined
109
+ >(
110
+ config: PikkuWorkflowConfigWithSchema<InputSchema, OutputSchema>
111
+ ): PikkuFunctionConfig<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown, 'workflow', PikkuFunctionWorkflow<InputSchema extends StandardSchemaV1 ? InferSchemaOutput<InputSchema> : unknown, OutputSchema extends StandardSchemaV1 ? InferSchemaOutput<OutputSchema> : unknown>, InputSchema, OutputSchema>
112
+ export function pikkuWorkflowComplexFunc<In, Out = unknown>(
113
+ func:
114
+ | PikkuFunctionWorkflow<In, Out>
115
+ | PikkuFunctionConfig<In, Out, 'workflow', PikkuFunctionWorkflow<In, Out>>
116
+ ): PikkuFunctionConfig<In, Out, 'workflow'>
117
+ export function pikkuWorkflowComplexFunc(func: any) {
118
+ return typeof func === 'function' ? { func } : func
119
+ }
120
+
121
+ type TypedRef<T> = { $ref: string; path?: string } & { __phantomType?: T }
122
+
123
+ type TemplateString = {
124
+ $template: {
125
+ parts: string[]
126
+ expressions: Array<{ $ref: string; path?: string }>
127
+ }
128
+ } & { __brand: 'TemplateString' }
129
+
130
+ type InputWithRefs<T> = {
131
+ [K in keyof T]?: T[K] | TypedRef<T[K]> | TypedRef<unknown> | TemplateString
132
+ }
133
+
134
+ type NodeInputType<FuncMap extends Record<string, string>, K extends keyof FuncMap> =
135
+ FuncMap[K] extends keyof FlattenedRPCMap
136
+ ? InputWithRefs<FlattenedRPCMap[FuncMap[K]]['input']>
137
+ : FuncMap[K] extends keyof FlattenedWorkflowMap
138
+ ? InputWithRefs<FlattenedWorkflowMap[FuncMap[K]]['input']>
139
+ : Record<string, unknown>
140
+
141
+ type NodeOutputKeys<FuncMap extends Record<string, string>, N extends string> =
142
+ N extends keyof FuncMap
143
+ ? FuncMap[N] extends keyof FlattenedRPCMap
144
+ ? keyof FlattenedRPCMap[FuncMap[N]]['output'] & string
145
+ : FuncMap[N] extends keyof FlattenedWorkflowMap
146
+ ? keyof FlattenedWorkflowMap[FuncMap[N]]['output'] & string
147
+ : FuncMap[N] extends keyof FlattenedAgentMap
148
+ ? keyof FlattenedAgentMap[FuncMap[N]]['output'] & string
149
+ : string
150
+ : string
151
+
152
+ type RefFunction<FuncMap extends Record<string, string>> = {
153
+ <N extends Extract<keyof FuncMap, string>>(
154
+ nodeId: N,
155
+ path: NodeOutputKeys<FuncMap, N>
156
+ ): TypedRef<unknown>
157
+ <N extends Extract<keyof FuncMap, string>>(nodeId: N): TypedRef<unknown>
158
+ (nodeId: 'trigger' | '$item', path?: string): TypedRef<unknown>
159
+ }
160
+
161
+ type TemplateFunction = (templateStr: string, refs: TypedRef<unknown>[]) => TemplateString
162
+
163
+ type ItemFunction = (path?: string) => TypedRef<unknown>
164
+
165
+ type ForEachConfig<FuncMap extends Record<string, string>> =
166
+ | Extract<keyof FuncMap, string>
167
+ | ((ref: RefFunction<FuncMap>) => TypedRef<unknown>)
168
+
169
+ type GraphNodeConfigMap<FuncMap extends Record<string, string>> = {
170
+ [K in Extract<keyof FuncMap, string>]?: {
171
+ next?: NextConfig<Extract<keyof FuncMap, string>>
172
+ /** Run this node once per element of an upstream array. Its result becomes the ordered array of per-item results. */
173
+ forEach?: ForEachConfig<FuncMap>
174
+ /** How the per-item instances of a forEach node run. Defaults to 'parallel'. */
175
+ mode?: 'parallel' | 'sequential'
176
+ input?:
177
+ | NodeInputType<FuncMap, K>
178
+ | (() => NodeInputType<FuncMap, K>)
179
+ | ((ref: RefFunction<FuncMap>, template: TemplateFunction, $item: ItemFunction) => NodeInputType<FuncMap, K>)
180
+ onError?: Extract<keyof FuncMap, string> | Extract<keyof FuncMap, string>[]
181
+ /** Free-text node documentation. Non-semantic — excluded from graphHash. */
182
+ notes?: string
183
+ }
184
+ }
185
+
186
+ type NextConfig<NodeIds extends string> = NodeIds | NodeIds[] | { if: string; then: NodeIds; else?: NodeIds }
187
+
188
+ export function pikkuWorkflowGraph<
189
+ const FuncMap extends Record<
190
+ string,
191
+ | (keyof FlattenedRPCMap & string)
192
+ | (keyof FlattenedWorkflowMap & string)
193
+ | (keyof FlattenedAgentMap & string)
194
+ >
195
+ >(
196
+ config: PikkuWorkflowGraphConfig<FuncMap, GraphNodeConfigMap<FuncMap>>
197
+ ): PikkuWorkflowGraphResult {
198
+ return corePikkuWorkflowGraph(config as any)
199
+ }
200
+
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-workflow-wirings-meta.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.107
3
+ */
4
+ import { pikkuState } from '@pikku/core/state';
5
+ const workflowsMeta = {};
6
+ pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta', workflowsMeta);
7
+ //# sourceMappingURL=pikku-workflow-wirings-meta.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-workflow-wirings-meta.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/workflow/pikku-workflow-wirings-meta.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAG9C,MAAM,aAAa,GAAyB,EAAE,CAAA;AAE9C,UAAU,CAAC,+BAA+B,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.107
3
+ */
4
+ import { pikkuState } from '@pikku/core/state'
5
+ import type { WorkflowsRuntimeMeta } from '@pikku/core/workflow'
6
+
7
+ const workflowsMeta: WorkflowsRuntimeMeta = {}
8
+
9
+ pikkuState('@pikku/addon-meta-conversions', 'workflows', 'meta', workflowsMeta)
@@ -0,0 +1,5 @@
1
+ export {};
2
+ /**
3
+ * This file was generated by @pikku/cli@0.12.107
4
+ */
5
+ //# sourceMappingURL=pikku-workflow-wirings.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-workflow-wirings.gen.d.ts","sourceRoot":"","sources":["../../../../.pikku/addon/workflow/pikku-workflow-wirings.gen.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,5 @@
1
+ export {};
2
+ /**
3
+ * This file was generated by @pikku/cli@0.12.107
4
+ */
5
+ //# sourceMappingURL=pikku-workflow-wirings.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-workflow-wirings.gen.js","sourceRoot":"","sources":["../../../../.pikku/addon/workflow/pikku-workflow-wirings.gen.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.107
3
+ */
@@ -57,7 +57,7 @@ export declare const EventSendOutput: z.ZodObject<{
57
57
  messages: z.ZodArray<z.ZodString>;
58
58
  fbtrace_id: z.ZodString;
59
59
  }, z.core.$strip>;
60
- export declare const eventSend: import("#pikku").PikkuFunctionConfig<{
60
+ export declare const eventSend: import("#pikku/addon/function").PikkuFunctionConfig<{
61
61
  data: {
62
62
  event_name: string;
63
63
  event_time: number;
@@ -73,7 +73,7 @@ export declare const eventSend: import("#pikku").PikkuFunctionConfig<{
73
73
  events_received: number;
74
74
  messages: string[];
75
75
  fbtrace_id: string;
76
- }, "rpc" | "session", import("#pikku").PikkuFunctionSessionless<{
76
+ }, "rpc" | "session", import("#pikku/addon/function").PikkuFunctionSessionless<{
77
77
  data: {
78
78
  event_name: string;
79
79
  event_time: number;
@@ -89,7 +89,7 @@ export declare const eventSend: import("#pikku").PikkuFunctionConfig<{
89
89
  events_received: number;
90
90
  messages: string[];
91
91
  fbtrace_id: string;
92
- }, "rpc" | "session", import("#pikku").WiredServices> | import("#pikku").PikkuFunction<{
92
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices, unknown> | import("#pikku/addon/function").PikkuFunction<{
93
93
  data: {
94
94
  event_name: string;
95
95
  event_time: number;
@@ -105,5 +105,5 @@ export declare const eventSend: import("#pikku").PikkuFunctionConfig<{
105
105
  events_received: number;
106
106
  messages: string[];
107
107
  fbtrace_id: string;
108
- }, "rpc" | "session", import("#pikku").WiredServices>, undefined, undefined>;
108
+ }, "rpc" | "session", import("#pikku/addon/function").WiredServices>, undefined, undefined>;
109
109
  //# sourceMappingURL=send.function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send.function.d.ts","sourceRoot":"","sources":["../../../../src/functions/events/send.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAA;AAEF,eAAO,MAAM,cAAc,uFACoH,CAAA;AAE/I,eAAO,MAAM,gBAAgB,wCAC2E,CAAA;AAExG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;iBAS1B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;iBAGzB,CAAA;AAEF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAYpB,CAAA"}
1
+ {"version":3,"file":"send.function.d.ts","sourceRoot":"","sources":["../../../../src/functions/events/send.function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAA;AAEF,eAAO,MAAM,cAAc,uFACoH,CAAA;AAE/I,eAAO,MAAM,gBAAgB,wCAC2E,CAAA;AAExG,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;iBAS1B,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;iBAGzB,CAAA;AAEF,eAAO,MAAM,eAAe;;;;iBAI1B,CAAA;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FAYpB,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { pikkuSessionlessFunc } from '#pikku';
2
+ import { pikkuSessionlessFunc } from '#pikku/addon/function';
3
3
  export const ActionSourceEnum = z.enum([
4
4
  'website', 'email', 'app', 'phone_call', 'chat',
5
5
  'physical_store', 'system_generated', 'other',
@@ -1 +1 @@
1
- {"version":3,"file":"send.function.js","sourceRoot":"","sources":["../../../../src/functions/events/send.function.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"send.function.js","sourceRoot":"","sources":["../../../../src/functions/events/send.function.ts"],"names":[],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- export declare const createSingletonServices: (config: import("../types/application-types.js").Config, existingServices?: Partial<import("#pikku").SingletonServices>) => Promise<import("../.pikku/pikku-services.gen.js").RequiredSingletonServices>;
1
+ export declare const createSingletonServices: (config: import("#pikku/addon/setup").Config, existingServices?: Partial<import("../types/application-types.js").SingletonServices>) => Promise<import("../.pikku/addon/pikku-services.gen.js").RequiredSingletonServices>;
2
2
  //# sourceMappingURL=services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,0MAQlC,CAAA"}
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,4NAQlC,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { MetaConversionsService } from './meta-conversions-api.service.js';
2
- import { pikkuAddonServices } from '#pikku';
2
+ import { pikkuAddonServices } from '#pikku/addon/setup';
3
3
  export const createSingletonServices = pikkuAddonServices(async (config, { secrets }) => {
4
- const creds = await secrets.getSecret('META_CONVERSIONS_CREDENTIALS');
4
+ const creds = (await secrets.getSecret('META_CONVERSIONS_CREDENTIALS')).reveal();
5
5
  const metaConversions = new MetaConversionsService(creds);
6
6
  return { metaConversions };
7
7
  });
@@ -1 +1 @@
1
- {"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAE3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,KAAK,EAC7D,MAAM,EACN,EAAE,OAAO,EAAE,EACX,EAAE;IACF,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAA;IACrE,MAAM,eAAe,GAAG,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAA;IAEzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAC5B,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC,KAAK,EAC7D,MAAM,EACN,EAAE,OAAO,EAAE,EACX,EAAE;IACF,MAAM,KAAK,GAAG,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAC,CAAC,MAAM,EAAE,CAAA;IAChF,MAAM,eAAe,GAAG,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAA;IAEzD,OAAO,EAAE,eAAe,EAAE,CAAA;AAC5B,CAAC,CAAC,CAAA"}
@@ -0,0 +1,12 @@
1
+ import type { CoreConfig, CoreServices, CoreSingletonServices, CoreUserSession } from '@pikku/core/types'
2
+ import type { MetaConversionsService } from '../src/meta-conversions-api.service.js'
3
+
4
+ export interface Config extends CoreConfig {}
5
+
6
+ export interface UserSession extends CoreUserSession {}
7
+
8
+ export interface SingletonServices extends CoreSingletonServices<Config> {
9
+ metaConversions: MetaConversionsService
10
+ }
11
+
12
+ export interface Services extends CoreServices<SingletonServices> {}
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@pikku/addon-meta-conversions",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "imports": {
6
- "#pikku": "./dist/.pikku/pikku-types.gen.js"
6
+ "#pikku/*.gen.js": "./.pikku/*.gen.ts",
7
+ "#pikku/*": "./.pikku/*/index.ts"
7
8
  },
8
9
  "exports": {
9
10
  ".": {
@@ -17,21 +18,20 @@
17
18
  }
18
19
  },
19
20
  "files": [
20
- "dist",
21
- ".pikku"
21
+ "dist"
22
22
  ],
23
23
  "scripts": {
24
24
  "prebuild": "pikku all",
25
- "build": "tsc && cp -r .pikku dist/",
25
+ "build": "tsc && cp -r .pikku types dist/",
26
26
  "pikku": "pikku all"
27
27
  },
28
28
  "peerDependencies": {
29
- "@pikku/core": "^0.12.74",
29
+ "@pikku/core": "^0.12.86",
30
30
  "zod": "^4"
31
31
  },
32
32
  "devDependencies": {
33
- "@pikku/cli": "^0.12.96",
34
- "@pikku/core": "^0.12.74",
33
+ "@pikku/cli": "^0.12.107",
34
+ "@pikku/core": "^0.12.86",
35
35
  "typescript": "^5.7.2",
36
36
  "zod": "^4"
37
37
  }
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import { pikkuState } from '@pikku/core/internal'
5
- import { createSingletonServices as createSingletonServices } from '../../src/services.js'
6
-
7
- pikkuState('@pikku/addon-meta-conversions', 'package', 'factories', {
8
- createSingletonServices,
9
- })
10
-
11
- pikkuState('@pikku/addon-meta-conversions', 'package', 'requiredParentServices', ["secrets"])
@@ -1,4 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- export type AgentMap = {}
@@ -1,84 +0,0 @@
1
- /**
2
- * This file was generated by @pikku/cli@0.12.96
3
- */
4
- import {
5
- CoreAIAgent,
6
- PikkuAIMiddlewareHooks,
7
- } from '@pikku/core/ai-agent'
8
- import {
9
- agent as coreAgent,
10
- agentStream as coreAgentStream,
11
- agentResume as coreAgentResume,
12
- agentApprove as coreAgentApprove,
13
- } from '@pikku/core/ai-agent'
14
- import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
15
- import type { StandardSchemaV1 } from '@standard-schema/spec'
16
- import type { AIAgentMemoryConfig, AIAgentInput } from '@pikku/core/ai-agent'
17
- import type { AgentMap } from './pikku-agent-map.gen.d.js'
18
- import type { ScopeId } from '../scopes/pikku-scopes.gen.js'
19
-
20
- type AIAgentConfig<
21
- InputSchema extends StandardSchemaV1 | undefined = undefined,
22
- OutputSchema extends StandardSchemaV1 | undefined = undefined
23
- > = Omit<CoreAIAgent<PikkuPermission, PikkuMiddleware, ScopeId>, 'tools' | 'agents' | 'workflows' | 'memory' | 'input' | 'output'> & {
24
- input?: InputSchema
25
- output?: OutputSchema
26
- memory?: Omit<AIAgentMemoryConfig, 'workingMemory'> & { workingMemory?: StandardSchemaV1 }
27
- tools?: object[]
28
- agents?: AIAgentConfig<StandardSchemaV1 | undefined, StandardSchemaV1 | undefined>[]
29
- workflows?: object[]
30
- }
31
-
32
- export const pikkuAIAgent = <
33
- InputSchema extends StandardSchemaV1 | undefined = undefined,
34
- OutputSchema extends StandardSchemaV1 | undefined = undefined
35
- >(
36
- agent: AIAgentConfig<InputSchema, OutputSchema>
37
- ) => {
38
- return agent
39
- }
40
-
41
- export const pikkuAIMiddleware = <
42
- State extends Record<string, unknown> = Record<string, unknown>,
43
- RequiredServices extends Services = Services,
44
- >(
45
- hooks: PikkuAIMiddlewareHooks<State, RequiredServices>
46
- ): PikkuAIMiddlewareHooks<State, RequiredServices> => hooks
47
-
48
- export const agent = <Name extends keyof AgentMap>(
49
- agentName: Name
50
- ) => {
51
- return coreAgent<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
52
- AIAgentInput,
53
- { runId: string; result: AgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } },
54
- 'session' | 'rpc'
55
- >
56
- }
57
-
58
- export const agentStream = <Name extends keyof AgentMap>(
59
- agentName?: Name
60
- ) => {
61
- return coreAgentStream<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
62
- { agentName?: string; message: string; threadId: string; resourceId: string },
63
- void,
64
- 'session' | 'rpc'
65
- >
66
- }
67
-
68
- export const agentResume = () => {
69
- return coreAgentResume() as PikkuFunctionConfig<
70
- { runId: string; toolCallId: string; approved: boolean },
71
- void,
72
- 'session' | 'rpc'
73
- >
74
- }
75
-
76
- export const agentApprove = <Name extends keyof AgentMap>(
77
- agentName: Name
78
- ) => {
79
- return coreAgentApprove<AgentMap>(agentName as string & keyof AgentMap) as PikkuFunctionConfig<
80
- { runId: string; approvals: { toolCallId: string; approved: boolean }[] },
81
- unknown,
82
- 'session' | 'rpc'
83
- >
84
- }