@pikku/addon-console 0.12.6 → 0.12.7

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 (303) hide show
  1. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +3 -3
  2. package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -1
  3. package/dist/.pikku/addon/pikku-addon-types.gen.js +6 -2
  4. package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -1
  5. package/dist/.pikku/addon/pikku-package.gen.js +2 -1
  6. package/dist/.pikku/addon/pikku-package.gen.js.map +1 -1
  7. package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +2 -14
  8. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +6 -6
  9. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -1
  10. package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -1
  11. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
  12. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
  13. package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
  14. package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
  15. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +78 -0
  16. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts.map +1 -0
  17. package/dist/.pikku/cli/pikku-cli-types.gen.js +61 -0
  18. package/dist/.pikku/cli/pikku-cli-types.gen.js.map +1 -0
  19. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  20. package/dist/.pikku/function/pikku-function-types.gen.d.ts +28 -31
  21. package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -1
  22. package/dist/.pikku/function/pikku-function-types.gen.js +15 -19
  23. package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -1
  24. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  25. package/dist/.pikku/function/pikku-functions-meta.gen.json +505 -184
  26. package/dist/.pikku/function/pikku-functions.gen.js +36 -2
  27. package/dist/.pikku/function/pikku-functions.gen.js.map +1 -1
  28. package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
  29. package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
  30. package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
  31. package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
  32. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
  33. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
  34. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
  35. package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
  36. package/dist/.pikku/pikku-bootstrap.gen.d.ts +3 -2
  37. package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -1
  38. package/dist/.pikku/pikku-bootstrap.gen.js +1 -10
  39. package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -1
  40. package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
  41. package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
  42. package/dist/.pikku/pikku-meta-service.gen.js +10 -0
  43. package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
  44. package/dist/.pikku/pikku-services.gen.d.ts +12 -10
  45. package/dist/.pikku/pikku-services.gen.d.ts.map +1 -1
  46. package/dist/.pikku/pikku-services.gen.js +11 -8
  47. package/dist/.pikku/pikku-services.gen.js.map +1 -1
  48. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  49. package/dist/.pikku/pikku-types.gen.js +1 -1
  50. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
  51. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
  52. package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
  53. package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
  54. package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +103 -40
  55. package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +103 -40
  56. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  57. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +31 -14
  58. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
  59. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
  60. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
  61. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
  62. package/dist/.pikku/schemas/register.gen.js +109 -43
  63. package/dist/.pikku/schemas/register.gen.js.map +1 -1
  64. package/dist/.pikku/schemas/schemas/AddonPackageInfo.schema.json +1 -1
  65. package/dist/.pikku/schemas/schemas/AgentCredentialCheckInput.schema.json +1 -0
  66. package/dist/.pikku/schemas/schemas/AgentCredentialCheckOutput.schema.json +1 -0
  67. package/dist/.pikku/schemas/schemas/AllMeta.schema.json +1 -1
  68. package/dist/.pikku/schemas/schemas/CredentialDeleteInput.schema.json +1 -0
  69. package/dist/.pikku/schemas/schemas/CredentialDeleteOutput.schema.json +1 -0
  70. package/dist/.pikku/schemas/schemas/CredentialGetInput.schema.json +1 -0
  71. package/dist/.pikku/schemas/schemas/CredentialGetOutput.schema.json +1 -0
  72. package/dist/.pikku/schemas/schemas/CredentialListUsersOutput.schema.json +1 -0
  73. package/dist/.pikku/schemas/schemas/CredentialSetInput.schema.json +1 -0
  74. package/dist/.pikku/schemas/schemas/CredentialSetOutput.schema.json +1 -0
  75. package/dist/.pikku/schemas/schemas/CredentialStatusInput.schema.json +1 -0
  76. package/dist/.pikku/schemas/schemas/CredentialStatusOutput.schema.json +1 -0
  77. package/dist/.pikku/schemas/schemas/CredentialUsersInput.schema.json +1 -0
  78. package/dist/.pikku/schemas/schemas/CredentialUsersOutput.schema.json +1 -0
  79. package/dist/.pikku/schemas/schemas/GetAddonMetaOutput.schema.json +1 -1
  80. package/dist/.pikku/schemas/schemas/GetFunctionsMetaOutput.schema.json +1 -1
  81. package/dist/.pikku/schemas/schemas/GetOpenapiDetailInput.schema.json +1 -0
  82. package/dist/.pikku/schemas/schemas/GetOpenapiDetailOutput.schema.json +1 -0
  83. package/dist/.pikku/schemas/schemas/GetOpenapisInput.schema.json +1 -0
  84. package/dist/.pikku/schemas/schemas/GetOpenapisOutput.schema.json +1 -0
  85. package/dist/.pikku/schemas/schemas/GetWorkflowMetaByIdOutput.schema.json +1 -1
  86. package/dist/.pikku/schemas/schemas/InstallAddonInput.schema.json +1 -0
  87. package/dist/.pikku/schemas/schemas/InstallAddonOutput.schema.json +1 -0
  88. package/dist/.pikku/schemas/schemas/InstallOpenapiAddonInput.schema.json +1 -0
  89. package/dist/.pikku/schemas/schemas/InstallOpenapiAddonOutput.schema.json +1 -0
  90. package/dist/.pikku/schemas/schemas/OauthConnectInput.schema.json +1 -1
  91. package/dist/.pikku/schemas/schemas/ReadAgentSourceInput.schema.json +1 -0
  92. package/dist/.pikku/schemas/schemas/ReadAgentSourceOutput.schema.json +1 -0
  93. package/dist/.pikku/schemas/schemas/ReadFunctionBodyInput.schema.json +1 -0
  94. package/dist/.pikku/schemas/schemas/ReadFunctionBodyOutput.schema.json +1 -0
  95. package/dist/.pikku/schemas/schemas/ReadFunctionSourceInput.schema.json +1 -0
  96. package/dist/.pikku/schemas/schemas/ReadFunctionSourceOutput.schema.json +1 -0
  97. package/dist/.pikku/schemas/schemas/UpdateAgentConfigInput.schema.json +1 -0
  98. package/dist/.pikku/schemas/schemas/UpdateAgentConfigOutput.schema.json +1 -0
  99. package/dist/.pikku/schemas/schemas/UpdateFunctionBodyInput.schema.json +1 -0
  100. package/dist/.pikku/schemas/schemas/UpdateFunctionBodyOutput.schema.json +1 -0
  101. package/dist/.pikku/schemas/schemas/UpdateFunctionConfigInput.schema.json +1 -0
  102. package/dist/.pikku/schemas/schemas/UpdateFunctionConfigOutput.schema.json +1 -0
  103. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  104. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  105. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  106. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  107. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  108. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  109. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  110. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  111. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  112. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  113. package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
  114. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +36 -27
  115. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -1
  116. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +5 -18
  117. package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -1
  118. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  119. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  120. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  121. package/dist/src/functions/agent-credential-check.function.d.ts +26 -0
  122. package/dist/src/functions/agent-credential-check.function.d.ts.map +1 -0
  123. package/dist/src/functions/agent-credential-check.function.js +48 -0
  124. package/dist/src/functions/agent-credential-check.function.js.map +1 -0
  125. package/dist/src/functions/credential-delete.function.d.ts +17 -0
  126. package/dist/src/functions/credential-delete.function.d.ts.map +1 -0
  127. package/dist/src/functions/credential-delete.function.js +15 -0
  128. package/dist/src/functions/credential-delete.function.js.map +1 -0
  129. package/dist/src/functions/credential-get.function.d.ts +17 -0
  130. package/dist/src/functions/credential-get.function.d.ts.map +1 -0
  131. package/dist/src/functions/credential-get.function.js +15 -0
  132. package/dist/src/functions/credential-get.function.js.map +1 -0
  133. package/dist/src/functions/credential-list-users.function.d.ts +12 -0
  134. package/dist/src/functions/credential-list-users.function.d.ts.map +1 -0
  135. package/dist/src/functions/credential-list-users.function.js +25 -0
  136. package/dist/src/functions/credential-list-users.function.js.map +1 -0
  137. package/dist/src/functions/credential-set.function.d.ts +20 -0
  138. package/dist/src/functions/credential-set.function.d.ts.map +1 -0
  139. package/dist/src/functions/credential-set.function.js +15 -0
  140. package/dist/src/functions/credential-set.function.js.map +1 -0
  141. package/dist/src/functions/credential-status.function.d.ts +17 -0
  142. package/dist/src/functions/credential-status.function.d.ts.map +1 -0
  143. package/dist/src/functions/credential-status.function.js +18 -0
  144. package/dist/src/functions/credential-status.function.js.map +1 -0
  145. package/dist/src/functions/credential-users.function.d.ts +14 -0
  146. package/dist/src/functions/credential-users.function.d.ts.map +1 -0
  147. package/dist/src/functions/credential-users.function.js +15 -0
  148. package/dist/src/functions/credential-users.function.js.map +1 -0
  149. package/dist/src/functions/delete-agent-thread.function.d.ts.map +1 -1
  150. package/dist/src/functions/delete-agent-thread.function.js +2 -1
  151. package/dist/src/functions/delete-agent-thread.function.js.map +1 -1
  152. package/dist/src/functions/delete-workflow-run.function.d.ts.map +1 -1
  153. package/dist/src/functions/delete-workflow-run.function.js +2 -1
  154. package/dist/src/functions/delete-workflow-run.function.js.map +1 -1
  155. package/dist/src/functions/get-agent-thread-messages.function.d.ts.map +1 -1
  156. package/dist/src/functions/get-agent-thread-messages.function.js +2 -1
  157. package/dist/src/functions/get-agent-thread-messages.function.js.map +1 -1
  158. package/dist/src/functions/get-agent-thread-runs.function.d.ts.map +1 -1
  159. package/dist/src/functions/get-agent-thread-runs.function.js +2 -1
  160. package/dist/src/functions/get-agent-thread-runs.function.js.map +1 -1
  161. package/dist/src/functions/get-agent-threads.function.d.ts.map +1 -1
  162. package/dist/src/functions/get-agent-threads.function.js +2 -1
  163. package/dist/src/functions/get-agent-threads.function.js.map +1 -1
  164. package/dist/src/functions/get-ai-workflows.function.d.ts.map +1 -1
  165. package/dist/src/functions/get-ai-workflows.function.js +5 -4
  166. package/dist/src/functions/get-ai-workflows.function.js.map +1 -1
  167. package/dist/src/functions/get-channel-snippets.function.d.ts.map +1 -1
  168. package/dist/src/functions/get-channel-snippets.function.js +3 -3
  169. package/dist/src/functions/get-channel-snippets.function.js.map +1 -1
  170. package/dist/src/functions/get-functions-meta.function.js +3 -3
  171. package/dist/src/functions/get-functions-meta.function.js.map +1 -1
  172. package/dist/src/functions/get-installed-addons.function.d.ts.map +1 -1
  173. package/dist/src/functions/get-installed-addons.function.js +9 -9
  174. package/dist/src/functions/get-installed-addons.function.js.map +1 -1
  175. package/dist/src/functions/get-installed-package.function.d.ts.map +1 -1
  176. package/dist/src/functions/get-installed-package.function.js +39 -51
  177. package/dist/src/functions/get-installed-package.function.js.map +1 -1
  178. package/dist/src/functions/get-openapi-detail.function.d.ts +53 -0
  179. package/dist/src/functions/get-openapi-detail.function.d.ts.map +1 -0
  180. package/dist/src/functions/get-openapi-detail.function.js +17 -0
  181. package/dist/src/functions/get-openapi-detail.function.js.map +1 -0
  182. package/dist/src/functions/get-openapis.function.d.ts +56 -0
  183. package/dist/src/functions/get-openapis.function.d.ts.map +1 -0
  184. package/dist/src/functions/get-openapis.function.js +20 -0
  185. package/dist/src/functions/get-openapis.function.js.map +1 -0
  186. package/dist/src/functions/get-schema.function.js +3 -3
  187. package/dist/src/functions/get-schema.function.js.map +1 -1
  188. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts +6 -0
  189. package/dist/src/functions/get-workflow-meta-by-id.function.d.ts.map +1 -1
  190. package/dist/src/functions/get-workflow-meta-by-id.function.js +4 -4
  191. package/dist/src/functions/get-workflow-meta-by-id.function.js.map +1 -1
  192. package/dist/src/functions/get-workflow-run-history.function.d.ts.map +1 -1
  193. package/dist/src/functions/get-workflow-run-history.function.js +2 -1
  194. package/dist/src/functions/get-workflow-run-history.function.js.map +1 -1
  195. package/dist/src/functions/get-workflow-run-names.function.d.ts.map +1 -1
  196. package/dist/src/functions/get-workflow-run-names.function.js +2 -1
  197. package/dist/src/functions/get-workflow-run-names.function.js.map +1 -1
  198. package/dist/src/functions/get-workflow-run-steps.function.d.ts.map +1 -1
  199. package/dist/src/functions/get-workflow-run-steps.function.js +2 -1
  200. package/dist/src/functions/get-workflow-run-steps.function.js.map +1 -1
  201. package/dist/src/functions/get-workflow-run.function.d.ts.map +1 -1
  202. package/dist/src/functions/get-workflow-run.function.js +2 -1
  203. package/dist/src/functions/get-workflow-run.function.js.map +1 -1
  204. package/dist/src/functions/get-workflow-runs.function.d.ts.map +1 -1
  205. package/dist/src/functions/get-workflow-runs.function.js +2 -1
  206. package/dist/src/functions/get-workflow-runs.function.js.map +1 -1
  207. package/dist/src/functions/get-workflow-version.function.d.ts.map +1 -1
  208. package/dist/src/functions/get-workflow-version.function.js +2 -1
  209. package/dist/src/functions/get-workflow-version.function.js.map +1 -1
  210. package/dist/src/functions/install-addon.function.d.ts +23 -0
  211. package/dist/src/functions/install-addon.function.d.ts.map +1 -0
  212. package/dist/src/functions/install-addon.function.js +78 -0
  213. package/dist/src/functions/install-addon.function.js.map +1 -0
  214. package/dist/src/functions/install-openapi-addon.function.d.ts +23 -0
  215. package/dist/src/functions/install-openapi-addon.function.d.ts.map +1 -0
  216. package/dist/src/functions/install-openapi-addon.function.js +112 -0
  217. package/dist/src/functions/install-openapi-addon.function.js.map +1 -0
  218. package/dist/src/functions/oauth-connect.function.d.ts +3 -0
  219. package/dist/src/functions/oauth-connect.function.d.ts.map +1 -1
  220. package/dist/src/functions/oauth-connect.function.js +16 -6
  221. package/dist/src/functions/oauth-connect.function.js.map +1 -1
  222. package/dist/src/functions/oauth-disconnect.function.d.ts.map +1 -1
  223. package/dist/src/functions/oauth-disconnect.function.js +11 -5
  224. package/dist/src/functions/oauth-disconnect.function.js.map +1 -1
  225. package/dist/src/functions/oauth-exchange-tokens.function.d.ts.map +1 -1
  226. package/dist/src/functions/oauth-exchange-tokens.function.js +9 -4
  227. package/dist/src/functions/oauth-exchange-tokens.function.js.map +1 -1
  228. package/dist/src/functions/oauth-refresh-token.function.d.ts.map +1 -1
  229. package/dist/src/functions/oauth-refresh-token.function.js +4 -3
  230. package/dist/src/functions/oauth-refresh-token.function.js.map +1 -1
  231. package/dist/src/functions/oauth-status.function.d.ts.map +1 -1
  232. package/dist/src/functions/oauth-status.function.js +16 -6
  233. package/dist/src/functions/oauth-status.function.js.map +1 -1
  234. package/dist/src/functions/oauth-test-token.function.d.ts.map +1 -1
  235. package/dist/src/functions/oauth-test-token.function.js +4 -3
  236. package/dist/src/functions/oauth-test-token.function.js.map +1 -1
  237. package/dist/src/functions/read-agent-source.function.d.ts +17 -0
  238. package/dist/src/functions/read-agent-source.function.d.ts.map +1 -0
  239. package/dist/src/functions/read-agent-source.function.js +15 -0
  240. package/dist/src/functions/read-agent-source.function.js.map +1 -0
  241. package/dist/src/functions/read-function-body.function.d.ts +17 -0
  242. package/dist/src/functions/read-function-body.function.d.ts.map +1 -0
  243. package/dist/src/functions/read-function-body.function.js +16 -0
  244. package/dist/src/functions/read-function-body.function.js.map +1 -0
  245. package/dist/src/functions/read-function-source.function.d.ts +23 -0
  246. package/dist/src/functions/read-function-source.function.d.ts.map +1 -0
  247. package/dist/src/functions/read-function-source.function.js +15 -0
  248. package/dist/src/functions/read-function-source.function.js.map +1 -0
  249. package/dist/src/functions/stream-workflow-run.function.d.ts.map +1 -1
  250. package/dist/src/functions/stream-workflow-run.function.js +2 -1
  251. package/dist/src/functions/stream-workflow-run.function.js.map +1 -1
  252. package/dist/src/functions/update-agent-config.function.d.ts +21 -0
  253. package/dist/src/functions/update-agent-config.function.d.ts.map +1 -0
  254. package/dist/src/functions/update-agent-config.function.js +16 -0
  255. package/dist/src/functions/update-agent-config.function.js.map +1 -0
  256. package/dist/src/functions/update-function-body.function.d.ts +20 -0
  257. package/dist/src/functions/update-function-body.function.d.ts.map +1 -0
  258. package/dist/src/functions/update-function-body.function.js +16 -0
  259. package/dist/src/functions/update-function-body.function.js.map +1 -0
  260. package/dist/src/functions/update-function-config.function.d.ts +21 -0
  261. package/dist/src/functions/update-function-config.function.d.ts.map +1 -0
  262. package/dist/src/functions/update-function-config.function.js +16 -0
  263. package/dist/src/functions/update-function-config.function.js.map +1 -0
  264. package/dist/src/services/code-edit.service.d.ts +51 -0
  265. package/dist/src/services/code-edit.service.d.ts.map +1 -0
  266. package/dist/src/services/code-edit.service.js +299 -0
  267. package/dist/src/services/code-edit.service.js.map +1 -0
  268. package/dist/src/services/code-edit.service.test.d.ts +2 -0
  269. package/dist/src/services/code-edit.service.test.d.ts.map +1 -0
  270. package/dist/src/services/code-edit.service.test.js +375 -0
  271. package/dist/src/services/code-edit.service.test.js.map +1 -0
  272. package/dist/src/services/oauth.service.d.ts +1 -0
  273. package/dist/src/services/oauth.service.d.ts.map +1 -1
  274. package/dist/src/services/oauth.service.js.map +1 -1
  275. package/dist/src/services/wiring.service.d.ts +12 -222
  276. package/dist/src/services/wiring.service.d.ts.map +1 -1
  277. package/dist/src/services/wiring.service.js +30 -334
  278. package/dist/src/services/wiring.service.js.map +1 -1
  279. package/dist/src/services.d.ts.map +1 -1
  280. package/dist/src/services.js +16 -11
  281. package/dist/src/services.js.map +1 -1
  282. package/package.json +8 -10
  283. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts +0 -2
  284. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.d.ts.map +0 -1
  285. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js +0 -7
  286. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.js.map +0 -1
  287. package/dist/.pikku/agent/pikku-agent-wirings-meta.gen.json +0 -3
  288. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts +0 -5
  289. package/dist/.pikku/agent/pikku-agent-wirings.gen.d.ts.map +0 -1
  290. package/dist/.pikku/agent/pikku-agent-wirings.gen.js +0 -5
  291. package/dist/.pikku/agent/pikku-agent-wirings.gen.js.map +0 -1
  292. package/dist/src/index.d.ts +0 -16
  293. package/dist/src/index.d.ts.map +0 -1
  294. package/dist/src/index.js +0 -15
  295. package/dist/src/index.js.map +0 -1
  296. package/dist/src/services/file-watcher.service.d.ts +0 -13
  297. package/dist/src/services/file-watcher.service.d.ts.map +0 -1
  298. package/dist/src/services/file-watcher.service.js +0 -31
  299. package/dist/src/services/file-watcher.service.js.map +0 -1
  300. package/dist/src/services/schema.service.d.ts +0 -10
  301. package/dist/src/services/schema.service.d.ts.map +0 -1
  302. package/dist/src/services/schema.service.js +0 -35
  303. package/dist/src/services/schema.service.js.map +0 -1
@@ -2,26 +2,29 @@
2
2
  export const requiredSingletonServices = {
3
3
  'addonService': true,
4
4
  'agentRunService': true,
5
- 'aiAgentRunner': false,
6
- 'aiRunState': false,
7
- 'aiStorage': false,
5
+ 'aiAgentRunner': true,
6
+ 'aiRunState': true,
7
+ 'aiStorage': true,
8
+ 'codeEditService': true,
8
9
  'config': true,
9
10
  'content': false,
10
- 'deploymentService': false,
11
- 'fileWatcherService': false,
11
+ 'credentialService': true,
12
+ 'deploymentService': true,
12
13
  'jwt': false,
13
14
  'logger': true,
15
+ 'metaService': true,
14
16
  'oauthService': true,
15
17
  'queueService': false,
16
- 'schedulerService': false,
18
+ 'schedulerService': true,
17
19
  'schema': true,
18
- 'schemaService': true,
19
20
  'secrets': true,
20
21
  'variables': true,
21
22
  'wiringService': true,
22
23
  'workflowRunService': true,
23
- 'workflowService': false,
24
+ 'workflowService': true,
24
25
  };
25
26
  // Wire services map: true if required, false if available but unused
26
27
  export const requiredWireServices = {};
28
+ // Services this addon needs from the parent project
29
+ export const requiredParentServices = ["variables", "metaService", "aiAgentRunner", "schedulerService", "agentRunService", "workflowService", "workflowRunService", "aiStorage", "aiRunState", "deploymentService", "credentialService"];
27
30
  //# sourceMappingURL=pikku-services.gen.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,KAAK;IACtB,YAAY,EAAE,KAAK;IACnB,WAAW,EAAE,KAAK;IAClB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,KAAK;IAC1B,oBAAoB,EAAE,KAAK;IAC3B,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,KAAK;IACzB,QAAQ,EAAE,IAAI;IACd,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAC1B,iBAAiB,EAAE,KAAK;CAChB,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA"}
1
+ {"version":3,"file":"pikku-services.gen.js","sourceRoot":"","sources":["../../.pikku/pikku-services.gen.ts"],"names":[],"mappings":"AAMA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,cAAc,EAAE,IAAI;IACpB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,YAAY,EAAE,IAAI;IAClB,WAAW,EAAE,IAAI;IACjB,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,KAAK;IAChB,mBAAmB,EAAE,IAAI;IACzB,mBAAmB,EAAE,IAAI;IACzB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,cAAc,EAAE,IAAI;IACpB,cAAc,EAAE,KAAK;IACrB,kBAAkB,EAAE,IAAI;IACxB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,oBAAoB,EAAE,IAAI;IAC1B,iBAAiB,EAAE,IAAI;CACf,CAAA;AAEV,qEAAqE;AACrE,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAC1B,CAAA;AAOV,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,WAAW,EAAC,aAAa,EAAC,eAAe,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,oBAAoB,EAAC,WAAW,EAAC,YAAY,EAAC,mBAAmB,EAAC,mBAAmB,CAAU,CAAA"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.3
2
+ * This file was generated by @pikku/cli@0.12.16
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.3
2
+ * This file was generated by @pikku/cli@0.12.16
3
3
  */
4
4
  /**
5
5
  * Main type export hub - re-exports all wiring-specific types
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.16
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { CoreQueueWorker } from '@pikku/core/queue';
8
+ import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
9
+ /**
10
+ * Type definition for queue workers that process background jobs.
11
+ *
12
+ * @template In - Input type for the queue job
13
+ * @template Out - Output type for the queue job
14
+ */
15
+ type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>;
16
+ /**
17
+ * Registers a queue worker with the Pikku framework.
18
+ * Workers process background jobs from queues.
19
+ *
20
+ * @param queueWorker - Queue worker definition with job handler
21
+ */
22
+ export declare const wireQueueWorker: (queueWorker: QueueWiring<any, any>) => void;
23
+ export {};
24
+ //# sourceMappingURL=pikku-queue-types.gen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.d.ts","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAE,eAAe,EAA0C,MAAM,mBAAmB,CAAA;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAElF;;;;;GAKG;AACH,KAAK,WAAW,CAAC,EAAE,EAAE,GAAG,IAAI,eAAe,CAAC,mBAAmB,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC,CAAA;AAE5F;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,aAAa,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,SAEjE,CAAA"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was generated by @pikku/cli@0.12.16
3
+ */
4
+ /**
5
+ * Queue-specific type definitions for tree-shaking optimization
6
+ */
7
+ import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
8
+ /**
9
+ * Registers a queue worker with the Pikku framework.
10
+ * Workers process background jobs from queues.
11
+ *
12
+ * @param queueWorker - Queue worker definition with job handler
13
+ */
14
+ export const wireQueueWorker = (queueWorker) => {
15
+ wireQueueWorkerCore(queueWorker);
16
+ };
17
+ //# sourceMappingURL=pikku-queue-types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
@@ -1,40 +1,43 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.3
2
+ * This file was generated by @pikku/cli@0.12.16
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
6
6
  */
7
7
 
8
8
 
9
- import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
9
+ import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
10
+ import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
10
11
  import type { AddonPackageInfo } from '../../src/services/addon.service.js'
11
- import type { FunctionMeta, AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
12
- import type { CommonWireMeta, MiddlewareMetadata, PermissionMetadata } from '../../../../core/dist/types/core.types.d.js'
12
+ import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
13
+ import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
13
14
  import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
14
15
  import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
16
+ import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
17
+ import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
15
18
  import type { JSONSchema7 } from 'json-schema'
16
19
 
17
- export type GetInstalledAddonsOutput = InstalledAddon[]
18
- export type GetChannelSnippetsInput = { channelName: string; }
19
- export type GetAddonIconInput = { alias: string; }
20
- export type GetAddonMetaOutput = AddonPackageInfo[]
21
- export type GetAddonCommunityPackageInput = { id: string; }
22
- export type GetAddonInstalledPackageInput = { packageName: string; }
23
- export type GetFunctionsMetaOutput = FunctionMeta[]
24
- export type GetSchemaInput = { schemaName: string; }
25
- export type GetWorkflowMetaByIdInput = { workflowId: string; }
26
- export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; }
27
- export type OauthConnectInput = { credentialName: string; callbackUrl?: string; }
28
- export type OauthConnectOutput = { authUrl: string; }
29
- export type OauthDisconnectInput = { credentialName: string; }
30
- export type OauthExchangeTokensInput = { code: string; state: string; }
31
- export type OauthExchangeTokensOutput = { credentialName: string; }
32
- export type OauthStatusInput = { credentialName: string; }
33
- export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
20
+ export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
21
+ export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
22
+ export type CredentialDeleteInput = { name: string; userId?: string; }
23
+ export type CredentialDeleteOutput = { success: boolean; }
24
+ export type CredentialGetInput = { name: string; userId?: string; }
25
+ export type CredentialGetOutput = { value: unknown; }
26
+ export type CredentialListUsersOutput = { users: CredentialUserEntry[]; }
27
+ export type CredentialSetInput = { name: string; value: unknown; userId?: string; }
28
+ export type CredentialSetOutput = { success: boolean; }
29
+ export type CredentialStatusInput = { names: string[]; userId?: string; }
30
+ export type CredentialStatusOutput = { statuses: Record<string, boolean>; }
31
+ export type CredentialUsersInput = { name: string; }
32
+ export type CredentialUsersOutput = { userIds: string[]; }
34
33
  export type DeleteAgentThreadInput = { threadId: string; }
35
34
  export type DeleteAgentThreadOutput = { deleted: boolean; }
36
35
  export type DeleteWorkflowRunInput = { runId: string; }
37
36
  export type DeleteWorkflowRunOutput = { deleted: boolean; }
37
+ export type GetAddonCommunityPackageInput = { id: string; }
38
+ export type GetAddonIconInput = { alias: string; }
39
+ export type GetAddonInstalledPackageInput = { packageName: string; }
40
+ export type GetAddonMetaOutput = AddonPackageInfo[]
38
41
  export type GetAgentThreadMessagesInput = { threadId: string; }
39
42
  export type GetAgentThreadMessagesOutput = any[]
40
43
  export type GetAgentThreadRunsInput = { threadId: string; }
@@ -43,23 +46,56 @@ export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?
43
46
  export type GetAgentThreadsOutput = any[]
44
47
  export type GetAIWorkflowsInput = { agentName?: string; }
45
48
  export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
49
+ export type GetChannelSnippetsInput = { channelName: string; }
50
+ export type GetFunctionsMetaOutput = FunctionMeta[]
51
+ export type GetInstalledAddonsOutput = InstalledAddon[]
52
+ export type GetOpenapiDetailInput = { name: string; }
53
+ export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
54
+ export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
55
+ export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
56
+ export type GetSchemaInput = { schemaName: string; }
57
+ export type GetWorkflowMetaByIdInput = { workflowId: string; }
58
+ export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
46
59
  export type GetWorkflowRunHistoryInput = { runId: string; }
47
60
  export type GetWorkflowRunHistoryOutput = any[]
48
- export type GetWorkflowRunNamesOutput = string[]
49
- export type GetWorkflowRunStepsInput = { runId: string; }
50
- export type GetWorkflowRunStepsOutput = any[]
51
61
  export type GetWorkflowRunInput = { runId: string; }
62
+ export type GetWorkflowRunNamesOutput = string[]
52
63
  export type GetWorkflowRunOutput = Record<string, unknown>
53
64
  export type GetWorkflowRunsInput = { workflowName?: string; status?: string; limit?: number; offset?: number; }
54
65
  export type GetWorkflowRunsOutput = any[]
66
+ export type GetWorkflowRunStepsInput = { runId: string; }
67
+ export type GetWorkflowRunStepsOutput = any[]
55
68
  export type GetWorkflowVersionInput = { name: string; graphHash: string; }
56
69
  export type GetWorkflowVersionOutput = { graph: any; source: string; }
70
+ export type InstallAddonInput = { packageName: string; namespace: string; version?: string; }
71
+ export type InstallAddonOutput = { success: boolean; message: string; }
72
+ export type InstallOpenapiAddonInput = { name: string; swaggerUrl: string; credential?: "apikey" | "bearer" | "oauth2"; }
73
+ export type InstallOpenapiAddonOutput = { success: boolean; message: string; }
74
+ export type OauthConnectInput = { credentialName: string; callbackUrl?: string; userId?: string; }
75
+ export type OauthConnectOutput = { authUrl: string; }
76
+ export type OauthDisconnectInput = { credentialName: string; }
77
+ export type OauthExchangeTokensInput = { code: string; state: string; }
78
+ export type OauthExchangeTokensOutput = { credentialName: string; }
57
79
  export type OauthRefreshTokenInput = { credentialName: string; }
58
80
  export type OauthRefreshTokenOutput = { success: boolean; error?: string; }
81
+ export type OauthStatusInput = { credentialName: string; }
82
+ export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
59
83
  export type OauthTestTokenInput = { credentialName: string; }
60
84
  export type OauthTestTokenOutput = { valid: boolean; error?: string; }
61
85
  export type PingOutput = { pong: true; }
86
+ export type ReadAgentSourceInput = { sourceFile: string; exportedName: string; }
87
+ export type ReadAgentSourceOutput = { config: Record<string, unknown>; }
88
+ export type ReadFunctionBodyInput = { sourceFile: string; exportedName: string; }
89
+ export type ReadFunctionBodyOutput = { body: string; }
90
+ export type ReadFunctionSourceInput = { sourceFile: string; exportedName: string; }
91
+ export type ReadFunctionSourceOutput = { config: Record<string, unknown>; body: string; wrapperName: string; }
62
92
  export type StreamWorkflowRunInput = { runId: string; }
93
+ export type UpdateAgentConfigInput = { sourceFile: string; exportedName: string; changes: AgentConfigChanges; }
94
+ export type UpdateAgentConfigOutput = { success: boolean; }
95
+ export type UpdateFunctionBodyInput = { sourceFile: string; exportedName: string; body: string; }
96
+ export type UpdateFunctionBodyOutput = { success: boolean; }
97
+ export type UpdateFunctionConfigInput = { sourceFile: string; exportedName: string; changes: FunctionConfigChanges; }
98
+ export type UpdateFunctionConfigOutput = { success: boolean; }
63
99
 
64
100
  interface RPCHandler<I, O> {
65
101
  input: I;
@@ -67,35 +103,52 @@ interface RPCHandler<I, O> {
67
103
  }
68
104
 
69
105
  export type RPCMap = {
70
- readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
71
- readonly 'getAllMeta': RPCHandler<null, AllMeta>,
72
- readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
106
+ readonly 'agentCredentialCheck': RPCHandler<AgentCredentialCheckInput, AgentCredentialCheckOutput>,
107
+ readonly 'credentialDelete': RPCHandler<CredentialDeleteInput, CredentialDeleteOutput>,
108
+ readonly 'credentialGet': RPCHandler<CredentialGetInput, CredentialGetOutput>,
109
+ readonly 'credentialListUsers': RPCHandler<null, CredentialListUsersOutput>,
110
+ readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
111
+ readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
112
+ readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
113
+ readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
114
+ readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
73
115
  readonly 'getAddonIcon': RPCHandler<GetAddonIconInput, string>,
74
116
  readonly 'getAddonMeta': RPCHandler<null, GetAddonMetaOutput>,
75
117
  readonly 'getAddonCommunityPackage': RPCHandler<GetAddonCommunityPackageInput, AddonPackageInfo>,
76
- readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
77
- readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
78
- readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
79
- readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
80
- readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
81
- readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
82
- readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
83
- readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
84
- readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
85
- readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
86
118
  readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
87
119
  readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
88
120
  readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
89
121
  readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
122
+ readonly 'getAllMeta': RPCHandler<null, AllMeta>,
123
+ readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
124
+ readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
125
+ readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
126
+ readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
127
+ readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
128
+ readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
129
+ readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
130
+ readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
90
131
  readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
91
132
  readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
92
133
  readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
93
134
  readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
94
135
  readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
95
136
  readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
137
+ readonly 'installAddon': RPCHandler<InstallAddonInput, InstallAddonOutput>,
138
+ readonly 'installOpenapiAddon': RPCHandler<InstallOpenapiAddonInput, InstallOpenapiAddonOutput>,
139
+ readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
140
+ readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
141
+ readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
96
142
  readonly 'oauthRefreshToken': RPCHandler<OauthRefreshTokenInput, OauthRefreshTokenOutput>,
143
+ readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
97
144
  readonly 'oauthTestToken': RPCHandler<OauthTestTokenInput, OauthTestTokenOutput>,
98
145
  readonly 'ping': RPCHandler<null, PingOutput>,
146
+ readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
147
+ readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
148
+ readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
149
+ readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
150
+ readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
151
+ readonly 'updateFunctionConfig': RPCHandler<UpdateFunctionConfigInput, UpdateFunctionConfigOutput>,
99
152
  };
100
153
 
101
154
 
@@ -114,7 +167,7 @@ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
114
167
  data: FlattenedRPCMap[Name]['input']
115
168
  ) => Promise<FlattenedRPCMap[Name]['output']>
116
169
 
117
- import type { WorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
170
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
118
171
 
119
172
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
120
173
 
@@ -130,12 +183,22 @@ interface AIAgentInput {
130
183
  resourceId: string
131
184
  }
132
185
 
133
- export type TypedStartWorkflow = <Name extends keyof WorkflowMap>(
186
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
134
187
  name: Name,
135
- input: WorkflowMap[Name]['input'],
188
+ input: FlattenedWorkflowMap[Name]['input'],
136
189
  options?: { startNode?: string }
137
190
  ) => Promise<{ runId: string }>
138
191
 
192
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
193
+ name: Name,
194
+ input: FlattenedWorkflowMap[Name]['input']
195
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
196
+
197
+ export type TypedWorkflowStatus = (
198
+ workflowName: string,
199
+ runId: string
200
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
201
+
139
202
  type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
140
203
  ? (name: string, input: AIAgentInput) => Promise<any>
141
204
  : <Name extends keyof FlattenedAgentMap>(
@@ -1,40 +1,43 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.3
2
+ * This file was generated by @pikku/cli@0.12.16
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
6
6
  */
7
7
 
8
8
 
9
- import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
9
+ import type { AgentCredentialRequirement } from '../../src/functions/agent-credential-check.function.js'
10
+ import type { CredentialUserEntry } from '../../src/functions/credential-list-users.function.js'
10
11
  import type { AddonPackageInfo } from '../../src/services/addon.service.js'
11
- import type { FunctionMeta, AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
12
- import type { CommonWireMeta, MiddlewareMetadata, PermissionMetadata } from '../../../../core/dist/types/core.types.d.js'
12
+ import type { FunctionMeta, FunctionRuntimeMeta, FunctionServicesMeta, FunctionWiresMeta, MiddlewareMetadata, PermissionMetadata, CommonWireMeta } from '../../../../core/dist/types/core.types.d.js'
13
+ import type { InstalledAddon } from '../../src/functions/get-installed-addons.function.js'
13
14
  import type { WorkflowStepMeta, RpcStepMeta, BranchStepMeta, ParallelGroupStepMeta, FanoutStepMeta, ReturnStepMeta, InlineStepMeta, SleepStepMeta, CancelStepMeta, SwitchStepMeta, FilterStepMeta, ArrayPredicateStepMeta, SetStepMeta } from '../../../../core/dist/wirings/workflow/dsl/workflow-dsl.types.d.js'
14
15
  import type { WorkflowContext } from '../../../../core/dist/wirings/workflow/workflow.types.d.js'
16
+ import type { AgentConfigChanges, FunctionConfigChanges } from '../../src/services/code-edit.service.js'
17
+ import type { AllMeta, ChannelSnippets } from '../../src/services/wiring.service.js'
15
18
  import type { JSONSchema7 } from 'json-schema'
16
19
 
17
- export type GetInstalledAddonsOutput = InstalledAddon[]
18
- export type GetChannelSnippetsInput = { channelName: string; }
19
- export type GetAddonIconInput = { alias: string; }
20
- export type GetAddonMetaOutput = AddonPackageInfo[]
21
- export type GetAddonCommunityPackageInput = { id: string; }
22
- export type GetAddonInstalledPackageInput = { packageName: string; }
23
- export type GetFunctionsMetaOutput = FunctionMeta[]
24
- export type GetSchemaInput = { schemaName: string; }
25
- export type GetWorkflowMetaByIdInput = { workflowId: string; }
26
- export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; }
27
- export type OauthConnectInput = { credentialName: string; callbackUrl?: string; }
28
- export type OauthConnectOutput = { authUrl: string; }
29
- export type OauthDisconnectInput = { credentialName: string; }
30
- export type OauthExchangeTokensInput = { code: string; state: string; }
31
- export type OauthExchangeTokensOutput = { credentialName: string; }
32
- export type OauthStatusInput = { credentialName: string; }
33
- export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
20
+ export type AgentCredentialCheckInput = { agentName: string; userId?: string; }
21
+ export type AgentCredentialCheckOutput = { requirements: AgentCredentialRequirement[]; allConnected: boolean; }
22
+ export type CredentialDeleteInput = { name: string; userId?: string; }
23
+ export type CredentialDeleteOutput = { success: boolean; }
24
+ export type CredentialGetInput = { name: string; userId?: string; }
25
+ export type CredentialGetOutput = { value: unknown; }
26
+ export type CredentialListUsersOutput = { users: CredentialUserEntry[]; }
27
+ export type CredentialSetInput = { name: string; value: unknown; userId?: string; }
28
+ export type CredentialSetOutput = { success: boolean; }
29
+ export type CredentialStatusInput = { names: string[]; userId?: string; }
30
+ export type CredentialStatusOutput = { statuses: Record<string, boolean>; }
31
+ export type CredentialUsersInput = { name: string; }
32
+ export type CredentialUsersOutput = { userIds: string[]; }
34
33
  export type DeleteAgentThreadInput = { threadId: string; }
35
34
  export type DeleteAgentThreadOutput = { deleted: boolean; }
36
35
  export type DeleteWorkflowRunInput = { runId: string; }
37
36
  export type DeleteWorkflowRunOutput = { deleted: boolean; }
37
+ export type GetAddonCommunityPackageInput = { id: string; }
38
+ export type GetAddonIconInput = { alias: string; }
39
+ export type GetAddonInstalledPackageInput = { packageName: string; }
40
+ export type GetAddonMetaOutput = AddonPackageInfo[]
38
41
  export type GetAgentThreadMessagesInput = { threadId: string; }
39
42
  export type GetAgentThreadMessagesOutput = any[]
40
43
  export type GetAgentThreadRunsInput = { threadId: string; }
@@ -43,23 +46,56 @@ export type GetAgentThreadsInput = { agentName?: string; limit?: number; offset?
43
46
  export type GetAgentThreadsOutput = any[]
44
47
  export type GetAIWorkflowsInput = { agentName?: string; }
45
48
  export type GetAIWorkflowsOutput = { workflowName: string; graphHash: string; graph: any; }[]
49
+ export type GetChannelSnippetsInput = { channelName: string; }
50
+ export type GetFunctionsMetaOutput = FunctionMeta[]
51
+ export type GetInstalledAddonsOutput = InstalledAddon[]
52
+ export type GetOpenapiDetailInput = { name: string; }
53
+ export type GetOpenapiDetailOutput = { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; swaggerYamlUrl?: string; logo?: string; categories: string[]; tags: string[]; added?: string; updated?: string; }
54
+ export type GetOpenapisInput = { limit: number; offset: number; search?: string; }
55
+ export type GetOpenapisOutput = { apis: { name: string; version: string; provider: string; service: string; title: string; description: string; openapiVer: string; swaggerUrl: string; logo?: string; }[]; total: number; nextCursor: number; }
56
+ export type GetSchemaInput = { schemaName: string; }
57
+ export type GetWorkflowMetaByIdInput = { workflowId: string; }
58
+ export type GetWorkflowMetaByIdOutput = CommonWireMeta & { name: string; steps: WorkflowStepMeta[]; context?: WorkflowContext; dsl?: boolean; inline?: boolean; expose?: boolean; }
46
59
  export type GetWorkflowRunHistoryInput = { runId: string; }
47
60
  export type GetWorkflowRunHistoryOutput = any[]
48
- export type GetWorkflowRunNamesOutput = string[]
49
- export type GetWorkflowRunStepsInput = { runId: string; }
50
- export type GetWorkflowRunStepsOutput = any[]
51
61
  export type GetWorkflowRunInput = { runId: string; }
62
+ export type GetWorkflowRunNamesOutput = string[]
52
63
  export type GetWorkflowRunOutput = Record<string, unknown>
53
64
  export type GetWorkflowRunsInput = { workflowName?: string; status?: string; limit?: number; offset?: number; }
54
65
  export type GetWorkflowRunsOutput = any[]
66
+ export type GetWorkflowRunStepsInput = { runId: string; }
67
+ export type GetWorkflowRunStepsOutput = any[]
55
68
  export type GetWorkflowVersionInput = { name: string; graphHash: string; }
56
69
  export type GetWorkflowVersionOutput = { graph: any; source: string; }
70
+ export type InstallAddonInput = { packageName: string; namespace: string; version?: string; }
71
+ export type InstallAddonOutput = { success: boolean; message: string; }
72
+ export type InstallOpenapiAddonInput = { name: string; swaggerUrl: string; credential?: "apikey" | "bearer" | "oauth2"; }
73
+ export type InstallOpenapiAddonOutput = { success: boolean; message: string; }
74
+ export type OauthConnectInput = { credentialName: string; callbackUrl?: string; userId?: string; }
75
+ export type OauthConnectOutput = { authUrl: string; }
76
+ export type OauthDisconnectInput = { credentialName: string; }
77
+ export type OauthExchangeTokensInput = { code: string; state: string; }
78
+ export type OauthExchangeTokensOutput = { credentialName: string; }
57
79
  export type OauthRefreshTokenInput = { credentialName: string; }
58
80
  export type OauthRefreshTokenOutput = { success: boolean; error?: string; }
81
+ export type OauthStatusInput = { credentialName: string; }
82
+ export type OauthStatusOutput = { connected: boolean; hasRefreshToken?: boolean; expiresAt?: number; isExpired?: boolean; }
59
83
  export type OauthTestTokenInput = { credentialName: string; }
60
84
  export type OauthTestTokenOutput = { valid: boolean; error?: string; }
61
85
  export type PingOutput = { pong: true; }
86
+ export type ReadAgentSourceInput = { sourceFile: string; exportedName: string; }
87
+ export type ReadAgentSourceOutput = { config: Record<string, unknown>; }
88
+ export type ReadFunctionBodyInput = { sourceFile: string; exportedName: string; }
89
+ export type ReadFunctionBodyOutput = { body: string; }
90
+ export type ReadFunctionSourceInput = { sourceFile: string; exportedName: string; }
91
+ export type ReadFunctionSourceOutput = { config: Record<string, unknown>; body: string; wrapperName: string; }
62
92
  export type StreamWorkflowRunInput = { runId: string; }
93
+ export type UpdateAgentConfigInput = { sourceFile: string; exportedName: string; changes: AgentConfigChanges; }
94
+ export type UpdateAgentConfigOutput = { success: boolean; }
95
+ export type UpdateFunctionBodyInput = { sourceFile: string; exportedName: string; body: string; }
96
+ export type UpdateFunctionBodyOutput = { success: boolean; }
97
+ export type UpdateFunctionConfigInput = { sourceFile: string; exportedName: string; changes: FunctionConfigChanges; }
98
+ export type UpdateFunctionConfigOutput = { success: boolean; }
63
99
 
64
100
  interface RPCHandler<I, O> {
65
101
  input: I;
@@ -67,36 +103,53 @@ interface RPCHandler<I, O> {
67
103
  }
68
104
 
69
105
  export type RPCMap = {
70
- readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
71
- readonly 'getAllMeta': RPCHandler<null, AllMeta>,
72
- readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
106
+ readonly 'agentCredentialCheck': RPCHandler<AgentCredentialCheckInput, AgentCredentialCheckOutput>,
107
+ readonly 'credentialDelete': RPCHandler<CredentialDeleteInput, CredentialDeleteOutput>,
108
+ readonly 'credentialGet': RPCHandler<CredentialGetInput, CredentialGetOutput>,
109
+ readonly 'credentialListUsers': RPCHandler<null, CredentialListUsersOutput>,
110
+ readonly 'credentialSet': RPCHandler<CredentialSetInput, CredentialSetOutput>,
111
+ readonly 'credentialStatus': RPCHandler<CredentialStatusInput, CredentialStatusOutput>,
112
+ readonly 'credentialUsers': RPCHandler<CredentialUsersInput, CredentialUsersOutput>,
113
+ readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
114
+ readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
73
115
  readonly 'getAddonIcon': RPCHandler<GetAddonIconInput, string>,
74
116
  readonly 'getAddonMeta': RPCHandler<null, GetAddonMetaOutput>,
75
117
  readonly 'getAddonCommunityPackage': RPCHandler<GetAddonCommunityPackageInput, AddonPackageInfo>,
76
- readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
77
- readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
78
- readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
79
- readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
80
- readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
81
- readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
82
- readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
83
- readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
84
- readonly 'deleteAgentThread': RPCHandler<DeleteAgentThreadInput, DeleteAgentThreadOutput>,
85
- readonly 'deleteWorkflowRun': RPCHandler<DeleteWorkflowRunInput, DeleteWorkflowRunOutput>,
86
118
  readonly 'getAgentThreadMessages': RPCHandler<GetAgentThreadMessagesInput, GetAgentThreadMessagesOutput>,
87
119
  readonly 'getAgentThreadRuns': RPCHandler<GetAgentThreadRunsInput, GetAgentThreadRunsOutput>,
88
120
  readonly 'getAgentThreads': RPCHandler<GetAgentThreadsInput, GetAgentThreadsOutput>,
89
121
  readonly 'getAIWorkflows': RPCHandler<GetAIWorkflowsInput, GetAIWorkflowsOutput>,
122
+ readonly 'getAllMeta': RPCHandler<null, AllMeta>,
123
+ readonly 'getChannelSnippets': RPCHandler<GetChannelSnippetsInput, ChannelSnippets>,
124
+ readonly 'getFunctionsMeta': RPCHandler<null, GetFunctionsMetaOutput>,
125
+ readonly 'getInstalledAddons': RPCHandler<null, GetInstalledAddonsOutput>,
126
+ readonly 'getAddonInstalledPackage': RPCHandler<GetAddonInstalledPackageInput, AddonPackageInfo>,
127
+ readonly 'getOpenapiDetail': RPCHandler<GetOpenapiDetailInput, GetOpenapiDetailOutput>,
128
+ readonly 'getOpenapis': RPCHandler<GetOpenapisInput, GetOpenapisOutput>,
129
+ readonly 'getSchema': RPCHandler<GetSchemaInput, JSONSchema7>,
130
+ readonly 'getWorkflowMetaById': RPCHandler<GetWorkflowMetaByIdInput, GetWorkflowMetaByIdOutput>,
90
131
  readonly 'getWorkflowRunHistory': RPCHandler<GetWorkflowRunHistoryInput, GetWorkflowRunHistoryOutput>,
91
132
  readonly 'getWorkflowRunNames': RPCHandler<null, GetWorkflowRunNamesOutput>,
92
133
  readonly 'getWorkflowRunSteps': RPCHandler<GetWorkflowRunStepsInput, GetWorkflowRunStepsOutput>,
93
134
  readonly 'getWorkflowRun': RPCHandler<GetWorkflowRunInput, GetWorkflowRunOutput>,
94
135
  readonly 'getWorkflowRuns': RPCHandler<GetWorkflowRunsInput, GetWorkflowRunsOutput>,
95
136
  readonly 'getWorkflowVersion': RPCHandler<GetWorkflowVersionInput, GetWorkflowVersionOutput>,
137
+ readonly 'installAddon': RPCHandler<InstallAddonInput, InstallAddonOutput>,
138
+ readonly 'installOpenapiAddon': RPCHandler<InstallOpenapiAddonInput, InstallOpenapiAddonOutput>,
139
+ readonly 'oauthConnect': RPCHandler<OauthConnectInput, OauthConnectOutput>,
140
+ readonly 'oauthDisconnect': RPCHandler<OauthDisconnectInput, null>,
141
+ readonly 'oauthExchangeTokens': RPCHandler<OauthExchangeTokensInput, OauthExchangeTokensOutput>,
96
142
  readonly 'oauthRefreshToken': RPCHandler<OauthRefreshTokenInput, OauthRefreshTokenOutput>,
143
+ readonly 'oauthStatus': RPCHandler<OauthStatusInput, OauthStatusOutput>,
97
144
  readonly 'oauthTestToken': RPCHandler<OauthTestTokenInput, OauthTestTokenOutput>,
98
145
  readonly 'ping': RPCHandler<null, PingOutput>,
146
+ readonly 'readAgentSource': RPCHandler<ReadAgentSourceInput, ReadAgentSourceOutput>,
147
+ readonly 'readFunctionBody': RPCHandler<ReadFunctionBodyInput, ReadFunctionBodyOutput>,
148
+ readonly 'readFunctionSource': RPCHandler<ReadFunctionSourceInput, ReadFunctionSourceOutput>,
99
149
  readonly 'streamWorkflowRun': RPCHandler<StreamWorkflowRunInput, null>,
150
+ readonly 'updateAgentConfig': RPCHandler<UpdateAgentConfigInput, UpdateAgentConfigOutput>,
151
+ readonly 'updateFunctionBody': RPCHandler<UpdateFunctionBodyInput, UpdateFunctionBodyOutput>,
152
+ readonly 'updateFunctionConfig': RPCHandler<UpdateFunctionConfigInput, UpdateFunctionConfigOutput>,
100
153
  };
101
154
 
102
155
 
@@ -115,7 +168,7 @@ export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
115
168
  data: FlattenedRPCMap[Name]['input']
116
169
  ) => Promise<FlattenedRPCMap[Name]['output']>
117
170
 
118
- import type { WorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
171
+ import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
119
172
 
120
173
  import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
121
174
 
@@ -131,12 +184,22 @@ interface AIAgentInput {
131
184
  resourceId: string
132
185
  }
133
186
 
134
- export type TypedStartWorkflow = <Name extends keyof WorkflowMap>(
187
+ export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
135
188
  name: Name,
136
- input: WorkflowMap[Name]['input'],
189
+ input: FlattenedWorkflowMap[Name]['input'],
137
190
  options?: { startNode?: string }
138
191
  ) => Promise<{ runId: string }>
139
192
 
193
+ export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
194
+ name: Name,
195
+ input: FlattenedWorkflowMap[Name]['input']
196
+ ) => Promise<FlattenedWorkflowMap[Name]['output']>
197
+
198
+ export type TypedWorkflowStatus = (
199
+ workflowName: string,
200
+ runId: string
201
+ ) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
202
+
140
203
  type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
141
204
  ? (name: string, input: AIAgentInput) => Promise<any>
142
205
  : <Name extends keyof FlattenedAgentMap>(
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.3
2
+ * This file was generated by @pikku/cli@0.12.16
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-rpc-wirings-meta.internal.gen.json' with { type: 'json' };