@pikku/cli 0.11.1 → 0.11.2

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 (257) hide show
  1. package/.pikku/channel/pikku-channel-types.gen.ts +11 -12
  2. package/.pikku/channel/pikku-channels-map.gen.d.ts +8 -8
  3. package/.pikku/channel/pikku-channels-meta.gen.ts +1 -1
  4. package/.pikku/channel/pikku-channels.gen.ts +1 -1
  5. package/.pikku/cli/pikku-cli-channel.ts +2 -2
  6. package/.pikku/cli/pikku-cli-client.gen.ts +1 -3
  7. package/.pikku/cli/pikku-cli-types.gen.ts +3 -3
  8. package/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
  9. package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +4 -157
  10. package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -3
  11. package/.pikku/cli/pikku-cli.gen.ts +3 -3
  12. package/.pikku/function/pikku-function-types.gen.ts +49 -63
  13. package/.pikku/function/pikku-functions-meta.gen.json +988 -0
  14. package/.pikku/function/pikku-functions-meta.gen.ts +4 -970
  15. package/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
  16. package/.pikku/function/pikku-functions-meta.min.gen.ts +4 -209
  17. package/.pikku/http/pikku-http-types.gen.ts +2 -2
  18. package/.pikku/http/pikku-http-wirings-map.gen.d.ts +8 -8
  19. package/.pikku/http/pikku-http-wirings-meta.gen.ts +1 -1
  20. package/.pikku/http/pikku-http-wirings.gen.ts +1 -1
  21. package/.pikku/mcp/pikku-mcp-types.gen.ts +13 -13
  22. package/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
  23. package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +6 -4
  24. package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
  25. package/.pikku/pikku-bootstrap.gen.ts +1 -4
  26. package/.pikku/pikku-services.gen.ts +4 -6
  27. package/.pikku/pikku-types.gen.ts +1 -1
  28. package/.pikku/pikku-websocket.gen.ts +1 -1
  29. package/.pikku/queue/pikku-queue-types.gen.ts +2 -2
  30. package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +8 -8
  31. package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
  32. package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +5 -7
  33. package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
  34. package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +2 -2
  35. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +8 -8
  36. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +34 -33
  37. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +2 -2
  38. package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
  39. package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +5 -2
  40. package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
  41. package/.pikku/schemas/register.gen.ts +25 -25
  42. package/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
  43. package/.pikku/services/config.gen.json +99 -0
  44. package/.pikku/services/getInspectorState.gen.json +10 -0
  45. package/.pikku/services/jwt.gen.json +13 -0
  46. package/.pikku/services/logger.gen.json +25 -0
  47. package/.pikku/services/queueService.gen.json +14 -0
  48. package/.pikku/services/schedulerService.gen.json +17 -0
  49. package/.pikku/services/schema.gen.json +14 -0
  50. package/.pikku/services/variables.gen.json +13 -0
  51. package/.pikku/services/workflowService.gen.json +31 -0
  52. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +8 -8
  53. package/.pikku/workflow/pikku-workflow-types.gen.ts +36 -31
  54. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
  55. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +5 -2
  56. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +6 -2
  57. package/CHANGELOG.md +21 -0
  58. package/bin/pikku.ts +6 -32
  59. package/build.sh +53 -31
  60. package/cli.schema.json +1 -1
  61. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +6 -7
  62. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  63. package/dist/.pikku/channel/pikku-channels-meta.gen.js +1 -1
  64. package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
  65. package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
  66. package/dist/.pikku/cli/pikku-cli-channel.js +2 -2
  67. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  68. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -3
  69. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +3 -3
  70. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  71. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +3 -157
  72. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +146 -0
  73. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -2
  74. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -2
  75. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  76. package/dist/.pikku/cli/pikku-cli.gen.js +3 -3
  77. package/dist/.pikku/function/pikku-function-types.gen.d.ts +29 -79
  78. package/dist/.pikku/function/pikku-function-types.gen.js +19 -15
  79. package/dist/.pikku/function/pikku-functions-meta.gen.js +3 -969
  80. package/dist/.pikku/function/pikku-functions-meta.gen.json +988 -0
  81. package/dist/.pikku/function/pikku-functions-meta.min.gen.js +3 -208
  82. package/dist/.pikku/function/pikku-functions-meta.min.gen.json +212 -0
  83. package/dist/.pikku/http/pikku-http-types.gen.d.ts +2 -2
  84. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  85. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  86. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  87. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  88. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +13 -13
  89. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  90. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +5 -4
  91. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.json +5 -0
  92. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
  93. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
  94. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -4
  95. package/dist/.pikku/pikku-bootstrap.gen.js +1 -4
  96. package/dist/.pikku/pikku-services.gen.d.ts +3 -6
  97. package/dist/.pikku/pikku-services.gen.js +2 -5
  98. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  99. package/dist/.pikku/pikku-types.gen.js +1 -1
  100. package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
  101. package/dist/.pikku/pikku-websocket.gen.js +1 -1
  102. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +2 -2
  103. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  104. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +3 -7
  105. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +1 -0
  106. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  107. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  108. package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.d.ts +6 -9
  109. package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +2 -2
  110. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +2 -2
  111. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  112. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +3 -2
  113. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.json +1 -0
  114. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
  115. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
  116. package/dist/.pikku/schemas/register.gen.js +15 -15
  117. package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
  118. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +29 -25
  119. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +22 -8
  120. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +3 -2
  121. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.json +1 -0
  122. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +6 -2
  123. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +6 -3
  124. package/dist/bin/pikku.js +5 -26
  125. package/dist/src/cli.wiring.js +4 -4
  126. package/dist/src/functions/commands/all.js +82 -42
  127. package/dist/src/functions/commands/bootstrap.js +22 -10
  128. package/dist/src/functions/commands/watch.js +6 -3
  129. package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.js +12 -7
  130. package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.d.ts +1 -1
  131. package/dist/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.js +42 -4
  132. package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.d.ts +1 -1
  133. package/dist/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.js +40 -2
  134. package/dist/src/functions/wirings/channels/pikku-channels.js +9 -2
  135. package/dist/src/functions/wirings/channels/serialize-channel-types.js +10 -11
  136. package/dist/src/functions/wirings/cli/pikku-command-cli-entry.js +4 -4
  137. package/dist/src/functions/wirings/cli/pikku-command-cli-types.js +1 -1
  138. package/dist/src/functions/wirings/cli/pikku-command-cli.js +9 -3
  139. package/dist/src/functions/wirings/cli/serialize-channel-cli.js +1 -1
  140. package/dist/src/functions/wirings/cli/serialize-cli-types.js +2 -2
  141. package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.d.ts +1 -1
  142. package/dist/src/functions/wirings/cli/serialize-local-cli-bootstrap.js +4 -4
  143. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.js +4 -4
  144. package/dist/src/functions/wirings/functions/pikku-command-functions.js +15 -5
  145. package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
  146. package/dist/src/functions/wirings/functions/pikku-command-services.js +23 -23
  147. package/dist/src/functions/wirings/functions/schemas.js +1 -1
  148. package/dist/src/functions/wirings/functions/serialize-function-types.d.ts +1 -1
  149. package/dist/src/functions/wirings/functions/serialize-function-types.js +50 -64
  150. package/dist/src/functions/wirings/http/openapi-spec-generator.js +4 -4
  151. package/dist/src/functions/wirings/http/pikku-http-routes.js +9 -2
  152. package/dist/src/functions/wirings/http/serialize-http-types.js +1 -1
  153. package/dist/src/functions/wirings/mcp/pikku-command-mcp.js +18 -4
  154. package/dist/src/functions/wirings/mcp/serialize-mcp-types.js +12 -12
  155. package/dist/src/functions/wirings/middleware/pikku-command-middleware.js +26 -2
  156. package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.d.ts +5 -2
  157. package/dist/src/functions/wirings/middleware/serialize-middleware-groups-meta.js +5 -13
  158. package/dist/src/functions/wirings/queue/pikku-command-queue.js +9 -3
  159. package/dist/src/functions/wirings/queue/pikku-queue.js +9 -3
  160. package/dist/src/functions/wirings/queue/serialize-queue-meta.d.ts +2 -1
  161. package/dist/src/functions/wirings/queue/serialize-queue-meta.js +10 -1
  162. package/dist/src/functions/wirings/queue/serialize-queue-types.js +1 -1
  163. package/dist/src/functions/wirings/rpc/pikku-command-rpc.js +9 -2
  164. package/dist/src/functions/wirings/rpc/serialize-public-rpc.js +11 -4
  165. package/dist/src/functions/wirings/rpc/serialize-remote-rpc.js +1 -1
  166. package/dist/src/functions/wirings/rpc/serialize-rpc-wrapper.js +3 -3
  167. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.js +6 -3
  168. package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.d.ts +2 -1
  169. package/dist/src/functions/wirings/scheduler/serialize-scheduler-meta.js +11 -1
  170. package/dist/src/functions/wirings/scheduler/serialize-scheduler-types.js +1 -1
  171. package/dist/src/functions/wirings/services/pikku-command-service-metadata.d.ts +1 -0
  172. package/dist/src/functions/wirings/services/pikku-command-service-metadata.js +22 -0
  173. package/dist/src/functions/wirings/workflow/pikku-command-workflow-types.js +3 -1
  174. package/dist/src/functions/wirings/workflow/pikku-command-workflow.js +12 -8
  175. package/dist/src/functions/wirings/workflow/serialize-workflow-meta.d.ts +2 -1
  176. package/dist/src/functions/wirings/workflow/serialize-workflow-meta.js +11 -1
  177. package/dist/src/functions/wirings/workflow/serialize-workflow-types.d.ts +1 -1
  178. package/dist/src/functions/wirings/workflow/serialize-workflow-types.js +36 -31
  179. package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.d.ts +8 -0
  180. package/dist/src/functions/wirings/workflow/serialize-workflow-wirings.js +30 -0
  181. package/dist/src/functions/wirings/workflow/serialize-workflow-workers.js +2 -2
  182. package/dist/src/middleware/log-command-info-and-time.d.ts +2 -2
  183. package/dist/src/middleware/log-command-info-and-time.js +1 -4
  184. package/dist/src/services/cli-logger-forwarder.service.js +1 -1
  185. package/dist/src/services.d.ts +2 -7
  186. package/dist/src/services.js +14 -12
  187. package/dist/src/utils/check-required-types.d.ts +2 -2
  188. package/dist/src/utils/check-required-types.js +2 -3
  189. package/dist/src/utils/pikku-cli-config.js +35 -2
  190. package/dist/src/utils/pikku-files-and-methods.d.ts +2 -2
  191. package/dist/src/utils/pikku-files-and-methods.js +4 -4
  192. package/dist/src/utils/schema-generator.d.ts +1 -1
  193. package/dist/src/utils/schema-generator.js +1 -1
  194. package/dist/tsconfig.tsbuildinfo +1 -1
  195. package/package.json +7 -8
  196. package/src/cli.wiring.ts +4 -4
  197. package/src/functions/commands/all.ts +94 -45
  198. package/src/functions/commands/bootstrap.ts +25 -10
  199. package/src/functions/commands/watch.ts +6 -3
  200. package/src/functions/runtimes/nextjs/pikku-command-nextjs.ts +26 -5
  201. package/src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts +43 -4
  202. package/src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts +40 -1
  203. package/src/functions/wirings/channels/pikku-channels.ts +27 -3
  204. package/src/functions/wirings/channels/serialize-channel-types.ts +10 -11
  205. package/src/functions/wirings/cli/pikku-command-cli-entry.ts +4 -4
  206. package/src/functions/wirings/cli/pikku-command-cli-types.ts +1 -1
  207. package/src/functions/wirings/cli/pikku-command-cli.ts +26 -3
  208. package/src/functions/wirings/cli/serialize-channel-cli.ts +1 -1
  209. package/src/functions/wirings/cli/serialize-cli-types.ts +2 -2
  210. package/src/functions/wirings/cli/serialize-local-cli-bootstrap.ts +5 -5
  211. package/src/functions/wirings/functions/pikku-command-function-types-split.ts +6 -6
  212. package/src/functions/wirings/functions/pikku-command-functions.ts +39 -4
  213. package/src/functions/wirings/functions/pikku-command-services.ts +25 -25
  214. package/src/functions/wirings/functions/schemas.ts +2 -2
  215. package/src/functions/wirings/functions/serialize-function-types.ts +51 -65
  216. package/src/functions/wirings/http/openapi-spec-generator.ts +14 -5
  217. package/src/functions/wirings/http/pikku-http-routes.ts +28 -2
  218. package/src/functions/wirings/http/serialize-http-types.ts +1 -1
  219. package/src/functions/wirings/mcp/pikku-command-mcp.ts +30 -4
  220. package/src/functions/wirings/mcp/serialize-mcp-types.ts +12 -12
  221. package/src/functions/wirings/middleware/pikku-command-middleware.ts +35 -2
  222. package/src/functions/wirings/middleware/serialize-middleware-groups-meta.ts +4 -19
  223. package/src/functions/wirings/permissions/pikku-command-permissions.ts +2 -2
  224. package/src/functions/wirings/queue/pikku-command-queue.ts +27 -2
  225. package/src/functions/wirings/queue/pikku-queue.ts +27 -2
  226. package/src/functions/wirings/queue/serialize-queue-meta.ts +15 -1
  227. package/src/functions/wirings/queue/serialize-queue-types.ts +1 -1
  228. package/src/functions/wirings/rpc/pikku-command-rpc.ts +25 -2
  229. package/src/functions/wirings/rpc/serialize-public-rpc.ts +11 -4
  230. package/src/functions/wirings/rpc/serialize-remote-rpc.ts +1 -1
  231. package/src/functions/wirings/rpc/serialize-rpc-wrapper.ts +3 -3
  232. package/src/functions/wirings/scheduler/pikku-command-scheduler.ts +30 -4
  233. package/src/functions/wirings/scheduler/serialize-scheduler-meta.ts +20 -1
  234. package/src/functions/wirings/scheduler/serialize-scheduler-types.ts +1 -1
  235. package/src/functions/wirings/services/pikku-command-service-metadata.ts +25 -0
  236. package/src/functions/wirings/workflow/pikku-command-workflow-types.ts +8 -1
  237. package/src/functions/wirings/workflow/pikku-command-workflow.ts +36 -8
  238. package/src/functions/wirings/workflow/serialize-workflow-meta.ts +18 -1
  239. package/src/functions/wirings/workflow/serialize-workflow-types.ts +39 -31
  240. package/src/functions/wirings/workflow/serialize-workflow-wirings.ts +47 -0
  241. package/src/functions/wirings/workflow/serialize-workflow-workers.ts +2 -2
  242. package/src/middleware/log-command-info-and-time.ts +3 -6
  243. package/src/services/cli-logger-forwarder.service.ts +1 -1
  244. package/src/services.ts +15 -15
  245. package/src/utils/check-required-types.ts +4 -7
  246. package/src/utils/pikku-cli-config.ts +69 -2
  247. package/src/utils/pikku-files-and-methods.ts +10 -13
  248. package/src/utils/schema-generator.ts +2 -2
  249. package/types/application-types.d.ts +1 -1
  250. package/types/config.d.ts +12 -1
  251. package/.pikku/function/pikku-functions.gen.ts +0 -84
  252. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +0 -47
  253. package/dist/.pikku/function/pikku-functions.gen.d.ts +0 -1
  254. package/dist/.pikku/function/pikku-functions.gen.js +0 -83
  255. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +0 -1
  256. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +0 -47
  257. package/dist/.pikku/schemas/schemas/PikkuRemoteInternalRPCInput.schema.json +0 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of Queue workers and their input/output types
@@ -10,19 +10,19 @@
10
10
  // Custom types are those that are defined directly within generics
11
11
  // or are broken into simpler types
12
12
  export type PikkuSchemasOutput = false | true
13
- export type PikkuChannelsOutput = false | true
14
- export type PikkuCLIOutput = false | true
15
13
  export type PikkuFunctionsOutput = false | true
16
- export type PikkuHTTPOutput = false | true
17
- export type PikkuMCPOutput = false | true
18
14
  export type PikkuMiddlewareOutput = false | true
19
15
  export type PikkuPermissionsOutput = false | true
20
- export type PikkuQueueOutput = false | true
21
- export type PikkuPublicRPCOutput = false | true
22
- export type PikkuRemoteRPCOutput = false | true
23
16
  export type PikkuRPCOutput = false | true
17
+ export type PikkuPublicRPCOutput = false | true
18
+ export type PikkuHTTPOutput = false | true
24
19
  export type PikkuSchedulerOutput = false | true
25
20
  export type PikkuWorkflowOutput = false | true
21
+ export type PikkuRemoteRPCOutput = false | true
22
+ export type PikkuQueueOutput = false | true
23
+ export type PikkuChannelsOutput = false | true
24
+ export type PikkuMCPOutput = false | true
25
+ export type PikkuCLIOutput = false | true
26
26
 
27
27
  import type { QueueJob } from '@pikku/core/queue'
28
28
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  import { pikkuState } from '@pikku/core'
5
- pikkuState('queue', 'meta', {
6
- "pikku-remote-internal-rpc": {
7
- "pikkuFuncName": "pikkuRemoteInternalRPC",
8
- "queueName": "pikku-remote-internal-rpc"
9
- }
10
- })
5
+ import { QueueWorkersMeta } from '@pikku/core/queue'
6
+ import metaData from './pikku-queue-workers-wirings-meta.gen.json' with { type: 'json' }
7
+
8
+ pikkuState('queue', 'meta', metaData as QueueWorkersMeta)
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /* The files with an addQueueWorkers function call */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /**
5
5
  * Auto-generated remote internal RPC queue worker and HTTP endpoint
@@ -15,7 +15,7 @@ export const pikkuRemoteInternalRPC = pikkuSessionlessFunc<
15
15
  { rpcName: string, data?: any },
16
16
  any
17
17
  >({
18
- func: async ({ rpc }, { rpcName, data }) => {
18
+ func: async (_services, { rpcName, data }, { rpc }) => {
19
19
  return await (rpc.invoke as any)(rpcName, data)
20
20
  },
21
21
  internal: true,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -10,19 +10,19 @@
10
10
  // Custom types are those that are defined directly within generics
11
11
  // or are broken into simpler types
12
12
  export type PikkuSchemasOutput = false | true
13
- export type PikkuChannelsOutput = false | true
14
- export type PikkuCLIOutput = false | true
15
13
  export type PikkuFunctionsOutput = false | true
16
- export type PikkuHTTPOutput = false | true
17
- export type PikkuMCPOutput = false | true
18
14
  export type PikkuMiddlewareOutput = false | true
19
15
  export type PikkuPermissionsOutput = false | true
20
- export type PikkuQueueOutput = false | true
21
- export type PikkuPublicRPCOutput = false | true
22
- export type PikkuRemoteRPCOutput = false | true
23
16
  export type PikkuRPCOutput = false | true
17
+ export type PikkuPublicRPCOutput = false | true
18
+ export type PikkuHTTPOutput = false | true
24
19
  export type PikkuSchedulerOutput = false | true
25
20
  export type PikkuWorkflowOutput = false | true
21
+ export type PikkuRemoteRPCOutput = false | true
22
+ export type PikkuQueueOutput = false | true
23
+ export type PikkuChannelsOutput = false | true
24
+ export type PikkuMCPOutput = false | true
25
+ export type PikkuCLIOutput = false | true
26
26
 
27
27
  interface RPCHandler<I, O> {
28
28
  input: I;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /**
5
5
  * This provides the structure needed for typescript to be aware of RPCs and their return types
@@ -10,19 +10,19 @@
10
10
  // Custom types are those that are defined directly within generics
11
11
  // or are broken into simpler types
12
12
  export type PikkuSchemasOutput = false | true
13
- export type PikkuChannelsOutput = false | true
14
- export type PikkuCLIOutput = false | true
15
13
  export type PikkuFunctionsOutput = false | true
16
- export type PikkuHTTPOutput = false | true
17
- export type PikkuMCPOutput = false | true
18
14
  export type PikkuMiddlewareOutput = false | true
19
15
  export type PikkuPermissionsOutput = false | true
20
- export type PikkuQueueOutput = false | true
21
- export type PikkuPublicRPCOutput = false | true
22
- export type PikkuRemoteRPCOutput = false | true
23
16
  export type PikkuRPCOutput = false | true
17
+ export type PikkuPublicRPCOutput = false | true
18
+ export type PikkuHTTPOutput = false | true
24
19
  export type PikkuSchedulerOutput = false | true
25
20
  export type PikkuWorkflowOutput = false | true
21
+ export type PikkuRemoteRPCOutput = false | true
22
+ export type PikkuQueueOutput = false | true
23
+ export type PikkuChannelsOutput = false | true
24
+ export type PikkuMCPOutput = false | true
25
+ export type PikkuCLIOutput = false | true
26
26
 
27
27
  interface RPCHandler<I, O> {
28
28
  input: I;
@@ -37,40 +37,41 @@ export type RPCMap = {
37
37
  readonly 'pikkuQueueService': RPCHandler<null, null>,
38
38
  readonly 'pikkuOpenAPI': RPCHandler<null, null>,
39
39
  readonly 'pikkuNext': RPCHandler<null, null>,
40
- readonly 'all': RPCHandler<null, null>,
41
- readonly 'bootstrap': RPCHandler<null, null>,
42
- readonly 'watch': RPCHandler<null, null>,
43
- readonly 'pikkuChannels': RPCHandler<null, PikkuChannelsOutput>,
44
- readonly 'pikkuChannelTypes': RPCHandler<null, null>,
45
- readonly 'pikkuChannelsMap': RPCHandler<null, null>,
46
- readonly 'pikkuCLIEntry': RPCHandler<null, null>,
47
- readonly 'pikkuCLITypes': RPCHandler<null, null>,
48
- readonly 'pikkuCLI': RPCHandler<null, PikkuCLIOutput>,
49
- readonly 'pikkuFunctionTypesSplit': RPCHandler<null, null>,
50
40
  readonly 'pikkuFunctionTypes': RPCHandler<null, null>,
51
- readonly 'pikkuFunctions': RPCHandler<null, PikkuFunctionsOutput>,
52
- readonly 'pikkuServices': RPCHandler<null, null>,
53
- readonly 'pikkuHTTPMap': RPCHandler<null, null>,
54
- readonly 'pikkuHTTP': RPCHandler<null, PikkuHTTPOutput>,
41
+ readonly 'pikkuFunctionTypesSplit': RPCHandler<null, null>,
55
42
  readonly 'pikkuHTTPTypes': RPCHandler<null, null>,
56
- readonly 'pikkuMCPJSON': RPCHandler<null, null>,
43
+ readonly 'pikkuChannelTypes': RPCHandler<null, null>,
44
+ readonly 'pikkuSchedulerTypes': RPCHandler<null, null>,
45
+ readonly 'pikkuQueueTypes': RPCHandler<null, null>,
46
+ readonly 'pikkuWorkflowTypes': RPCHandler<null, null>,
57
47
  readonly 'pikkuMCPTypes': RPCHandler<null, null>,
58
- readonly 'pikkuMCP': RPCHandler<null, PikkuMCPOutput>,
48
+ readonly 'pikkuCLITypes': RPCHandler<null, null>,
49
+ readonly 'pikkuFunctions': RPCHandler<null, PikkuFunctionsOutput>,
59
50
  readonly 'pikkuMiddleware': RPCHandler<null, PikkuMiddlewareOutput>,
60
51
  readonly 'pikkuPermissions': RPCHandler<null, PikkuPermissionsOutput>,
61
- readonly 'pikkuQueueMap': RPCHandler<null, null>,
62
- readonly 'pikkuQueueTypes': RPCHandler<null, null>,
63
- readonly 'pikkuQueue': RPCHandler<null, PikkuQueueOutput>,
64
- readonly 'pikkuPublicRPC': RPCHandler<null, PikkuPublicRPCOutput>,
65
- readonly 'pikkuRemoteRPC': RPCHandler<null, PikkuRemoteRPCOutput>,
52
+ readonly 'pikkuServices': RPCHandler<null, null>,
53
+ readonly 'pikkuServiceMetadata': RPCHandler<null, null>,
54
+ readonly 'pikkuRPC': RPCHandler<null, PikkuRPCOutput>,
66
55
  readonly 'pikkuRPCInternalMap': RPCHandler<null, null>,
67
56
  readonly 'pikkuRPCExposedMap': RPCHandler<null, null>,
68
- readonly 'pikkuRPC': RPCHandler<null, PikkuRPCOutput>,
69
- readonly 'pikkuSchedulerTypes': RPCHandler<null, null>,
57
+ readonly 'pikkuPublicRPC': RPCHandler<null, PikkuPublicRPCOutput>,
58
+ readonly 'pikkuHTTP': RPCHandler<null, PikkuHTTPOutput>,
59
+ readonly 'pikkuHTTPMap': RPCHandler<null, null>,
70
60
  readonly 'pikkuScheduler': RPCHandler<null, PikkuSchedulerOutput>,
71
- readonly 'pikkuWorkflowMap': RPCHandler<null, null>,
72
- readonly 'pikkuWorkflowTypes': RPCHandler<null, null>,
73
61
  readonly 'pikkuWorkflow': RPCHandler<null, PikkuWorkflowOutput>,
62
+ readonly 'pikkuRemoteRPC': RPCHandler<null, PikkuRemoteRPCOutput>,
63
+ readonly 'pikkuWorkflowMap': RPCHandler<null, null>,
64
+ readonly 'pikkuQueue': RPCHandler<null, PikkuQueueOutput>,
65
+ readonly 'pikkuQueueMap': RPCHandler<null, null>,
66
+ readonly 'pikkuChannels': RPCHandler<null, null>,
67
+ readonly 'pikkuChannelsMap': RPCHandler<null, null>,
68
+ readonly 'pikkuMCP': RPCHandler<null, PikkuMCPOutput>,
69
+ readonly 'pikkuMCPJSON': RPCHandler<null, null>,
70
+ readonly 'pikkuCLI': RPCHandler<null, PikkuCLIOutput>,
71
+ readonly 'pikkuCLIEntry': RPCHandler<null, null>,
72
+ readonly 'all': RPCHandler<null, null>,
73
+ readonly 'bootstrap': RPCHandler<null, null>,
74
+ readonly 'watch': RPCHandler<null, null>,
74
75
  };
75
76
 
76
77
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /**
5
5
  * Scheduler-specific type definitions for tree-shaking optimization
@@ -12,7 +12,7 @@ import type { PikkuFunctionConfig, PikkuMiddleware } from '../function/pikku-fun
12
12
  * Type definition for scheduled tasks that run at specified intervals.
13
13
  * These are sessionless functions that execute based on cron expressions.
14
14
  */
15
- type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void>, PikkuMiddleware>
15
+ type SchedulerWiring = CoreScheduledTask<PikkuFunctionConfig<void, void, 'session' | 'rpc'>, PikkuMiddleware>
16
16
 
17
17
  /**
18
18
  * Registers a scheduled task with the Pikku framework.
@@ -1,5 +1,8 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  import { pikkuState } from '@pikku/core'
5
- pikkuState('scheduler', 'meta', {})
5
+ import { ScheduledTasksMeta } from '@pikku/core/scheduler'
6
+ import metaData from './pikku-schedulers-wirings-meta.gen.json' with { type: 'json' }
7
+
8
+ pikkuState('scheduler', 'meta', metaData as ScheduledTasksMeta)
@@ -1,4 +1,4 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  /* The files with an addScheduledTasks function call */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.11.1
2
+ * This file was generated by @pikku/cli@0.11.2
3
3
  */
4
4
  import { addSchema } from '@pikku/core/schema'
5
5
 
@@ -7,26 +7,10 @@ import * as PikkuSchemasOutput from './schemas/PikkuSchemasOutput.schema.json' w
7
7
  addSchema('PikkuSchemasOutput', PikkuSchemasOutput)
8
8
 
9
9
 
10
- import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' }
11
- addSchema('PikkuChannelsOutput', PikkuChannelsOutput)
12
-
13
-
14
- import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' }
15
- addSchema('PikkuCLIOutput', PikkuCLIOutput)
16
-
17
-
18
10
  import * as PikkuFunctionsOutput from './schemas/PikkuFunctionsOutput.schema.json' with { type: 'json' }
19
11
  addSchema('PikkuFunctionsOutput', PikkuFunctionsOutput)
20
12
 
21
13
 
22
- import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' }
23
- addSchema('PikkuHTTPOutput', PikkuHTTPOutput)
24
-
25
-
26
- import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' }
27
- addSchema('PikkuMCPOutput', PikkuMCPOutput)
28
-
29
-
30
14
  import * as PikkuMiddlewareOutput from './schemas/PikkuMiddlewareOutput.schema.json' with { type: 'json' }
31
15
  addSchema('PikkuMiddlewareOutput', PikkuMiddlewareOutput)
32
16
 
@@ -35,20 +19,16 @@ import * as PikkuPermissionsOutput from './schemas/PikkuPermissionsOutput.schema
35
19
  addSchema('PikkuPermissionsOutput', PikkuPermissionsOutput)
36
20
 
37
21
 
38
- import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' }
39
- addSchema('PikkuQueueOutput', PikkuQueueOutput)
22
+ import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' }
23
+ addSchema('PikkuRPCOutput', PikkuRPCOutput)
40
24
 
41
25
 
42
26
  import * as PikkuPublicRPCOutput from './schemas/PikkuPublicRPCOutput.schema.json' with { type: 'json' }
43
27
  addSchema('PikkuPublicRPCOutput', PikkuPublicRPCOutput)
44
28
 
45
29
 
46
- import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' }
47
- addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput)
48
-
49
-
50
- import * as PikkuRPCOutput from './schemas/PikkuRPCOutput.schema.json' with { type: 'json' }
51
- addSchema('PikkuRPCOutput', PikkuRPCOutput)
30
+ import * as PikkuHTTPOutput from './schemas/PikkuHTTPOutput.schema.json' with { type: 'json' }
31
+ addSchema('PikkuHTTPOutput', PikkuHTTPOutput)
52
32
 
53
33
 
54
34
  import * as PikkuSchedulerOutput from './schemas/PikkuSchedulerOutput.schema.json' with { type: 'json' }
@@ -59,5 +39,25 @@ import * as PikkuWorkflowOutput from './schemas/PikkuWorkflowOutput.schema.json'
59
39
  addSchema('PikkuWorkflowOutput', PikkuWorkflowOutput)
60
40
 
61
41
 
42
+ import * as PikkuRemoteRPCOutput from './schemas/PikkuRemoteRPCOutput.schema.json' with { type: 'json' }
43
+ addSchema('PikkuRemoteRPCOutput', PikkuRemoteRPCOutput)
44
+
45
+
46
+ import * as PikkuQueueOutput from './schemas/PikkuQueueOutput.schema.json' with { type: 'json' }
47
+ addSchema('PikkuQueueOutput', PikkuQueueOutput)
48
+
49
+
50
+ import * as PikkuMCPOutput from './schemas/PikkuMCPOutput.schema.json' with { type: 'json' }
51
+ addSchema('PikkuMCPOutput', PikkuMCPOutput)
52
+
53
+
54
+ import * as PikkuCLIOutput from './schemas/PikkuCLIOutput.schema.json' with { type: 'json' }
55
+ addSchema('PikkuCLIOutput', PikkuCLIOutput)
56
+
57
+
58
+ import * as PikkuChannelsOutput from './schemas/PikkuChannelsOutput.schema.json' with { type: 'json' }
59
+ addSchema('PikkuChannelsOutput', PikkuChannelsOutput)
60
+
61
+
62
62
  import * as PikkuCLIConfig from './schemas/PikkuCLIConfig.schema.json' with { type: 'json' }
63
63
  addSchema('PikkuCLIConfig', PikkuCLIConfig)
@@ -1 +1 @@
1
- {"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"outDir":{"type":"string"},"schemaDirectory":{"type":"string"},"typesDeclarationFile":{"type":"string"},"functionsFile":{"type":"string"},"functionsMetaFile":{"type":"string"},"functionsMetaMinFile":{"type":"string"},"functionTypesFile":{"type":"string"},"httpWiringsFile":{"type":"string"},"httpWiringMetaFile":{"type":"string"},"httpMapDeclarationFile":{"type":"string"},"httpTypesFile":{"type":"string"},"channelsWiringFile":{"type":"string"},"channelsWiringMetaFile":{"type":"string"},"channelsMapDeclarationFile":{"type":"string"},"channelsTypesFile":{"type":"string"},"rpcInternalWiringMetaFile":{"type":"string"},"rpcInternalMapDeclarationFile":{"type":"string"},"rpcMapDeclarationFile":{"type":"string"},"schedulersWiringFile":{"type":"string"},"schedulersWiringMetaFile":{"type":"string"},"schedulersTypesFile":{"type":"string"},"queueWorkersWiringFile":{"type":"string"},"queueWorkersWiringMetaFile":{"type":"string"},"queueMapDeclarationFile":{"type":"string"},"queueTypesFile":{"type":"string"},"workflowsWiringFile":{"type":"string"},"workflowsWiringMetaFile":{"type":"string"},"workflowsWorkersFile":{"type":"string"},"workflowMapDeclarationFile":{"type":"string"},"workflowTypesFile":{"type":"string"},"mcpWiringsFile":{"type":"string"},"mcpWiringsMetaFile":{"type":"string"},"mcpTypesFile":{"type":"string"},"cliWiringsFile":{"type":"string"},"cliWiringMetaFile":{"type":"string"},"cliBootstrapFile":{"type":"string"},"cliTypesFile":{"type":"string"},"servicesFile":{"type":"string"},"middlewareFile":{"type":"string"},"middlewareGroupsMetaFile":{"type":"string"},"permissionsFile":{"type":"string"},"bootstrapFile":{"type":"string"},"$schema":{"type":"string"},"extends":{"type":"string"},"rootDir":{"type":"string"},"srcDirectories":{"type":"array","items":{"type":"string"}},"ignoreFiles":{"type":"array","items":{"type":"string"}},"packageMappings":{"type":"object","additionalProperties":{"type":"string"}},"configFile":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"userSessionType":{"type":"string"},"singletonServicesFactoryType":{"type":"string"},"sessionServicesFactoryType":{"type":"string"},"configDir":{"type":"string"},"tsconfig":{"type":"string"},"nextBackendFile":{"type":"string"},"nextHTTPFile":{"type":"string"},"fetchFile":{"type":"string"},"websocketFile":{"type":"string"},"rpcWiringsFile":{"type":"string"},"queueWiringsFile":{"type":"string"},"mcpJsonFile":{"type":"string"},"openAPI":{"type":"object","properties":{"outputFile":{"type":"string"},"additionalInfo":{"$ref":"#/definitions/OpenAPISpecInfo"}},"required":["outputFile","additionalInfo"],"additionalProperties":false},"schema":{"type":"object","properties":{"additionalProperties":{"type":"boolean"},"supportsImportAttributes":{"type":"boolean"}},"additionalProperties":false},"cli":{"type":"object","properties":{"entrypoints":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false}]}}]}}},"additionalProperties":false},"workflows":{"anyOf":[{"type":"object","properties":{"singleQueue":{"type":"boolean","const":true},"path":{"type":"string"},"orchestratorQueue":{"type":"string"},"workerQueue":{"type":"string"}},"required":["singleQueue","path"],"additionalProperties":false},{"type":"object","properties":{"singleQueue":{"type":"boolean","const":false},"dir":{"type":"string"},"orchestratorQueuePrefix":{"type":"string"},"workerQueuePrefix":{"type":"string"}},"required":["singleQueue","dir"],"additionalProperties":false}]},"rpc":{"type":"object","properties":{"remoteRpcWorkersPath":{"type":"string"},"publicRpcPath":{"type":"string"}},"additionalProperties":false},"forceRequiredServices":{"type":"array","items":{"type":"string"}},"schemasFromTypes":{"type":"array","items":{"type":"string"}},"stateOutput":{"type":"string"},"stateInput":{"type":"string"},"filters":{"$ref":"#/definitions/InspectorFilters"}},"required":["bootstrapFile","channelsMapDeclarationFile","channelsTypesFile","channelsWiringFile","channelsWiringMetaFile","cliBootstrapFile","cliTypesFile","cliWiringMetaFile","cliWiringsFile","configDir","filters","functionTypesFile","functionsFile","functionsMetaFile","functionsMetaMinFile","httpMapDeclarationFile","httpTypesFile","httpWiringMetaFile","httpWiringsFile","mcpTypesFile","mcpWiringsFile","mcpWiringsMetaFile","middlewareFile","middlewareGroupsMetaFile","outDir","packageMappings","permissionsFile","queueMapDeclarationFile","queueTypesFile","queueWorkersWiringFile","queueWorkersWiringMetaFile","rootDir","rpcInternalMapDeclarationFile","rpcInternalWiringMetaFile","rpcMapDeclarationFile","schedulersTypesFile","schedulersWiringFile","schedulersWiringMetaFile","schemaDirectory","servicesFile","srcDirectories","tsconfig","typesDeclarationFile","workflowMapDeclarationFile","workflowTypesFile","workflowsWiringFile","workflowsWiringMetaFile","workflowsWorkersFile"],"definitions":{"OpenAPISpecInfo":{"type":"object","properties":{"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"additionalProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"],"additionalProperties":false}},"required":["title","version","description"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"}},"required":["url"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"],"additionalProperties":false}},"externalDocs":{"type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["url"],"additionalProperties":false},"securitySchemes":{"type":"object"},"security":{"type":"array","items":{"type":"object","additionalProperties":{"type":"array","items":{}}}}},"required":["info","servers"],"additionalProperties":false},"InspectorFilters":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"directories":{"type":"array","items":{"type":"string"}},"httpRoutes":{"type":"array","items":{"type":"string"}},"httpMethods":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}
1
+ {"$schema":"http://json-schema.org/draft-07/schema#","type":"object","additionalProperties":false,"properties":{"outDir":{"type":"string"},"schemaDirectory":{"type":"string"},"typesDeclarationFile":{"type":"string"},"functionsFile":{"type":"string"},"functionsMetaFile":{"type":"string"},"functionsMetaJsonFile":{"type":"string"},"functionsMetaMinFile":{"type":"string"},"functionsMetaMinJsonFile":{"type":"string"},"functionTypesFile":{"type":"string"},"httpWiringsFile":{"type":"string"},"httpWiringMetaFile":{"type":"string"},"httpWiringMetaJsonFile":{"type":"string"},"httpMapDeclarationFile":{"type":"string"},"httpTypesFile":{"type":"string"},"channelsWiringFile":{"type":"string"},"channelsWiringMetaFile":{"type":"string"},"channelsWiringMetaJsonFile":{"type":"string"},"channelsMapDeclarationFile":{"type":"string"},"channelsTypesFile":{"type":"string"},"rpcInternalWiringMetaFile":{"type":"string"},"rpcInternalWiringMetaJsonFile":{"type":"string"},"rpcInternalMapDeclarationFile":{"type":"string"},"rpcMapDeclarationFile":{"type":"string"},"schedulersWiringFile":{"type":"string"},"schedulersWiringMetaFile":{"type":"string"},"schedulersWiringMetaJsonFile":{"type":"string"},"schedulersTypesFile":{"type":"string"},"queueWorkersWiringFile":{"type":"string"},"queueWorkersWiringMetaFile":{"type":"string"},"queueWorkersWiringMetaJsonFile":{"type":"string"},"queueMapDeclarationFile":{"type":"string"},"queueTypesFile":{"type":"string"},"workflowsWiringFile":{"type":"string"},"workflowsWiringMetaFile":{"type":"string"},"workflowsWiringMetaJsonFile":{"type":"string"},"workflowsWorkersFile":{"type":"string"},"workflowMapDeclarationFile":{"type":"string"},"workflowTypesFile":{"type":"string"},"mcpWiringsFile":{"type":"string"},"mcpWiringsMetaFile":{"type":"string"},"mcpWiringsMetaJsonFile":{"type":"string"},"mcpTypesFile":{"type":"string"},"cliWiringsFile":{"type":"string"},"cliWiringMetaFile":{"type":"string"},"cliWiringMetaJsonFile":{"type":"string"},"cliBootstrapFile":{"type":"string"},"cliTypesFile":{"type":"string"},"servicesFile":{"type":"string"},"middlewareFile":{"type":"string"},"middlewareGroupsMetaFile":{"type":"string"},"middlewareGroupsMetaJsonFile":{"type":"string"},"permissionsFile":{"type":"string"},"bootstrapFile":{"type":"string"},"$schema":{"type":"string"},"extends":{"type":"string"},"rootDir":{"type":"string"},"srcDirectories":{"type":"array","items":{"type":"string"}},"ignoreFiles":{"type":"array","items":{"type":"string"}},"packageMappings":{"type":"object","additionalProperties":{"type":"string"}},"configFile":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"userSessionType":{"type":"string"},"singletonServicesFactoryType":{"type":"string"},"wireServicesFactoryType":{"type":"string"},"configDir":{"type":"string"},"tsconfig":{"type":"string"},"nextBackendFile":{"type":"string"},"nextHTTPFile":{"type":"string"},"fetchFile":{"type":"string"},"websocketFile":{"type":"string"},"rpcWiringsFile":{"type":"string"},"queueWiringsFile":{"type":"string"},"mcpJsonFile":{"type":"string"},"openAPI":{"type":"object","properties":{"outputFile":{"type":"string"},"additionalInfo":{"$ref":"#/definitions/OpenAPISpecInfo"}},"required":["outputFile","additionalInfo"],"additionalProperties":false},"schema":{"type":"object","properties":{"additionalProperties":{"type":"boolean"},"supportsImportAttributes":{"type":"boolean"}},"additionalProperties":false},"cli":{"type":"object","properties":{"entrypoints":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false},{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"object","properties":{"type":{"type":"string","const":"local"},"path":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"channel"},"name":{"type":"string"},"route":{"type":"string"},"wirePath":{"type":"string"},"path":{"type":"string"}},"required":["type","wirePath"],"additionalProperties":false}]}}]}}},"additionalProperties":false},"workflows":{"anyOf":[{"type":"object","properties":{"singleQueue":{"type":"boolean","const":true},"path":{"type":"string"},"orchestratorQueue":{"type":"string"},"workerQueue":{"type":"string"}},"required":["singleQueue","path"],"additionalProperties":false},{"type":"object","properties":{"singleQueue":{"type":"boolean","const":false},"dir":{"type":"string"},"orchestratorQueuePrefix":{"type":"string"},"workerQueuePrefix":{"type":"string"}},"required":["singleQueue","dir"],"additionalProperties":false}]},"rpc":{"type":"object","properties":{"remoteRpcWorkersPath":{"type":"string"},"publicRpcPath":{"type":"string"}},"additionalProperties":false},"forceRequiredServices":{"type":"array","items":{"type":"string"}},"schemasFromTypes":{"type":"array","items":{"type":"string"}},"stateOutput":{"type":"string"},"stateInput":{"type":"string"},"filters":{"$ref":"#/definitions/InspectorFilters"}},"required":["bootstrapFile","channelsMapDeclarationFile","channelsTypesFile","channelsWiringFile","channelsWiringMetaFile","channelsWiringMetaJsonFile","cliBootstrapFile","cliTypesFile","cliWiringMetaFile","cliWiringMetaJsonFile","cliWiringsFile","configDir","filters","functionTypesFile","functionsFile","functionsMetaFile","functionsMetaJsonFile","functionsMetaMinFile","functionsMetaMinJsonFile","httpMapDeclarationFile","httpTypesFile","httpWiringMetaFile","httpWiringMetaJsonFile","httpWiringsFile","mcpTypesFile","mcpWiringsFile","mcpWiringsMetaFile","mcpWiringsMetaJsonFile","middlewareFile","middlewareGroupsMetaFile","middlewareGroupsMetaJsonFile","outDir","packageMappings","permissionsFile","queueMapDeclarationFile","queueTypesFile","queueWorkersWiringFile","queueWorkersWiringMetaFile","queueWorkersWiringMetaJsonFile","rootDir","rpcInternalMapDeclarationFile","rpcInternalWiringMetaFile","rpcInternalWiringMetaJsonFile","rpcMapDeclarationFile","schedulersTypesFile","schedulersWiringFile","schedulersWiringMetaFile","schedulersWiringMetaJsonFile","schemaDirectory","servicesFile","srcDirectories","tsconfig","typesDeclarationFile","workflowMapDeclarationFile","workflowTypesFile","workflowsWiringFile","workflowsWiringMetaFile","workflowsWiringMetaJsonFile","workflowsWorkersFile"],"definitions":{"OpenAPISpecInfo":{"type":"object","properties":{"info":{"type":"object","properties":{"title":{"type":"string"},"version":{"type":"string"},"description":{"type":"string"},"termsOfService":{"type":"string"},"contact":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"},"email":{"type":"string"}},"additionalProperties":false},"license":{"type":"object","properties":{"name":{"type":"string"},"url":{"type":"string"}},"required":["name"],"additionalProperties":false}},"required":["title","version","description"],"additionalProperties":false},"servers":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"}},"required":["url"],"additionalProperties":false}},"tags":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"}},"required":["name"],"additionalProperties":false}},"externalDocs":{"type":"object","properties":{"description":{"type":"string"},"url":{"type":"string"}},"required":["url"],"additionalProperties":false},"securitySchemes":{"type":"object"},"security":{"type":"array","items":{"type":"object","additionalProperties":{"type":"array","items":{}}}}},"required":["info","servers"],"additionalProperties":false},"InspectorFilters":{"type":"object","properties":{"names":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"types":{"type":"array","items":{"type":"string"}},"directories":{"type":"array","items":{"type":"string"}},"httpRoutes":{"type":"array","items":{"type":"string"}},"httpMethods":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}
@@ -0,0 +1,99 @@
1
+ {
2
+ "name": "config",
3
+ "summary": "",
4
+ "description": "",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "export interface Config extends CoreConfig<PikkuCLIConfig> {\n // Preloaded inspector state from stateInput file (if provided)\n preloadedInspectorState?: Omit<InspectorState, 'typesLookup'>\n}",
9
+ "expandedProperties": {
10
+ "preloadedInspectorState": "Omit<InspectorState, \"typesLookup\"> | undefined",
11
+ "logLevel": "LogLevel | undefined",
12
+ "secrets": "{} | undefined",
13
+ "workflow": "WorkflowServiceConfig | undefined",
14
+ "$schema": "string | undefined",
15
+ "extends": "string | undefined",
16
+ "rootDir": "string",
17
+ "srcDirectories": "string[]",
18
+ "ignoreFiles": "string[] | undefined",
19
+ "packageMappings": "Record<string, string>",
20
+ "configFile": "string | undefined",
21
+ "tags": "string[] | undefined",
22
+ "types": "string[] | undefined",
23
+ "userSessionType": "string | undefined",
24
+ "singletonServicesFactoryType": "string | undefined",
25
+ "wireServicesFactoryType": "string | undefined",
26
+ "configDir": "string",
27
+ "tsconfig": "string",
28
+ "nextBackendFile": "string | undefined",
29
+ "nextHTTPFile": "string | undefined",
30
+ "fetchFile": "string | undefined",
31
+ "websocketFile": "string | undefined",
32
+ "rpcWiringsFile": "string | undefined",
33
+ "queueWiringsFile": "string | undefined",
34
+ "mcpJsonFile": "string | undefined",
35
+ "openAPI": "{ outputFile: string; additionalInfo: OpenAPISpecInfo; } | undefined",
36
+ "schema": "{ additionalProperties?: boolean; supportsImportAttributes?: boolean; } | undefined",
37
+ "cli": "{ entrypoints?: Record<string, string | { type: \"local\"; path: string; } | { type: \"channel\"; name?: string; route?: string; wirePath: string; path?: string; } | Array<string | { type: \"local\"; path: string; } | { type: \"channel\"; name?: string; route?: string; wirePath: string; path?: string; }>>; } | undefined",
38
+ "workflows": "{ singleQueue: true; path: string; orchestratorQueue?: string; workerQueue?: string; } | { singleQueue: false; dir: string; orchestratorQueuePrefix?: string; workerQueuePrefix?: string; } | undefined",
39
+ "rpc": "{ remoteRpcWorkersPath?: string; publicRpcPath?: string; } | undefined",
40
+ "forceRequiredServices": "string[] | undefined",
41
+ "schemasFromTypes": "string[] | undefined",
42
+ "stateOutput": "string | undefined",
43
+ "stateInput": "string | undefined",
44
+ "filters": "InspectorFilters",
45
+ "outDir": "string",
46
+ "schemaDirectory": "string",
47
+ "typesDeclarationFile": "string",
48
+ "functionsFile": "string",
49
+ "functionsMetaFile": "string",
50
+ "functionsMetaJsonFile": "string",
51
+ "functionsMetaMinFile": "string",
52
+ "functionsMetaMinJsonFile": "string",
53
+ "functionTypesFile": "string",
54
+ "httpWiringsFile": "string",
55
+ "httpWiringMetaFile": "string",
56
+ "httpWiringMetaJsonFile": "string",
57
+ "httpMapDeclarationFile": "string",
58
+ "httpTypesFile": "string",
59
+ "channelsWiringFile": "string",
60
+ "channelsWiringMetaFile": "string",
61
+ "channelsWiringMetaJsonFile": "string",
62
+ "channelsMapDeclarationFile": "string",
63
+ "channelsTypesFile": "string",
64
+ "rpcInternalWiringMetaFile": "string",
65
+ "rpcInternalWiringMetaJsonFile": "string",
66
+ "rpcInternalMapDeclarationFile": "string",
67
+ "rpcMapDeclarationFile": "string",
68
+ "schedulersWiringFile": "string",
69
+ "schedulersWiringMetaFile": "string",
70
+ "schedulersWiringMetaJsonFile": "string",
71
+ "schedulersTypesFile": "string",
72
+ "queueWorkersWiringFile": "string",
73
+ "queueWorkersWiringMetaFile": "string",
74
+ "queueWorkersWiringMetaJsonFile": "string",
75
+ "queueMapDeclarationFile": "string",
76
+ "queueTypesFile": "string",
77
+ "workflowsWiringFile": "string",
78
+ "workflowsWiringMetaFile": "string",
79
+ "workflowsWiringMetaJsonFile": "string",
80
+ "workflowsWorkersFile": "string",
81
+ "workflowMapDeclarationFile": "string",
82
+ "workflowTypesFile": "string",
83
+ "mcpWiringsFile": "string",
84
+ "mcpWiringsMetaFile": "string",
85
+ "mcpWiringsMetaJsonFile": "string",
86
+ "mcpTypesFile": "string",
87
+ "cliWiringsFile": "string",
88
+ "cliWiringMetaFile": "string",
89
+ "cliWiringMetaJsonFile": "string",
90
+ "cliBootstrapFile": "string",
91
+ "cliTypesFile": "string",
92
+ "servicesFile": "string",
93
+ "middlewareFile": "string",
94
+ "middlewareGroupsMetaFile": "string",
95
+ "middlewareGroupsMetaJsonFile": "string",
96
+ "permissionsFile": "string",
97
+ "bootstrapFile": "string"
98
+ }
99
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "getInspectorState",
3
+ "summary": "",
4
+ "description": "",
5
+ "package": "@pikku/cli",
6
+ "path": "home/runner/work/pikku/pikku/packages/cli/types/application-types.d.ts",
7
+ "version": "0.11.2",
8
+ "interface": "(refresh?: boolean, setupOnly?: boolean, bootstrapMode?: boolean) => Promise<InspectorState>",
9
+ "expandedProperties": {}
10
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "jwt",
3
+ "summary": "Interface for handling JSON Web Tokens (JWT).",
4
+ "description": "",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "export interface JWTService {\n /**\n * Encodes a payload into a JWT.\n * @param expiresIn - The expiration time of the token.\n * @param payload - The payload to encode.\n * @returns A promise that resolves to the encoded JWT.\n */\n encode: <T extends any>(expiresIn: RelativeTimeInput, payload: T) => Promise<string>;\n /**\n * Decodes a JWT into its payload.\n * @param hash - The JWT to decode.\n * @param invalidHashError - An optional error to throw if the hash is invalid.\n * @param debug - An optional flag for debugging.\n * @returns A promise that resolves to the decoded payload.\n */\n decode: <T>(hash: string, invalidHashError?: Error, debug?: boolean) => Promise<T>;\n}",
9
+ "expandedProperties": {
10
+ "encode": "<T extends unknown>(expiresIn: RelativeTimeInput, payload: T) => Promise<string>",
11
+ "decode": "<T>(hash: string, invalidHashError?: Error, debug?: boolean) => Promise<T>"
12
+ }
13
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "logger",
3
+ "summary": "",
4
+ "description": "",
5
+ "package": "@pikku/cli",
6
+ "path": "home/runner/work/pikku/pikku/packages/cli/types/application-types.d.ts",
7
+ "version": "0.11.2",
8
+ "interface": "class CLILogger {\n constructor({\n logLogo,\n silent = false,\n }: {\n logLogo: boolean\n silent?: boolean\n });\n setLevel(level: LogLevel): void;\n setSilent(silent: boolean): void;\n isSilent(): boolean;\n info(message: string | { message: string; type?: string }): void;\n error(message: string): void;\n warn(message: string): void;\n debug(message: string | { message: string; type?: string }): void;\n critical(code: ErrorCode, message: string): void;\n hasCriticalErrors(): boolean;\n logLogo(): void;\n}",
9
+ "expandedProperties": {
10
+ "silent": "boolean",
11
+ "level": "LogLevel",
12
+ "criticalErrors": "string[]",
13
+ "setLevel": "(level: LogLevel) => void",
14
+ "setSilent": "(silent: boolean) => void",
15
+ "isSilent": "() => boolean",
16
+ "info": "(message: string | { message: string; type?: string; }) => void",
17
+ "error": "(message: string) => void",
18
+ "warn": "(message: string) => void",
19
+ "debug": "(message: string | { message: string; type?: string; }) => void",
20
+ "critical": "(code: ErrorCode, message: string) => void",
21
+ "hasCriticalErrors": "() => boolean",
22
+ "logLogo": "() => void",
23
+ "primary": "(message: string) => void"
24
+ }
25
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "queueService",
3
+ "summary": "Queue provider interface for job publishing operations",
4
+ "description": "",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "export interface QueueService {\n /** Whether this queue provider supports job results */\n readonly supportsResults: boolean;\n /** Add a job to the queue with type safety */\n add<T>(queueName: string, data: T, options?: JobOptions): Promise<string>;\n /** Get job status and result */\n getJob<T, R>(queueName: string, jobId: string): Promise<QueueJob<T, R> | null>;\n}",
9
+ "expandedProperties": {
10
+ "supportsResults": "boolean",
11
+ "add": "<T>(queueName: string, data: T, options?: JobOptions) => Promise<string>",
12
+ "getJob": "<T, R>(queueName: string, jobId: string) => Promise<QueueJob<T, R> | null>"
13
+ }
14
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "schedulerService",
3
+ "summary": "Abstract scheduler service for persistent scheduled task management",
4
+ "description": "Implementations use queue backends (pg-boss, BullMQ) for distributed scheduling",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "class SchedulerService {\n init(): Promise<void>;\n scheduleRPC(delay: number | string, rpcName: string, data?: any, session?: CoreUserSession): Promise<string>;\n unschedule(taskId: string): Promise<boolean>;\n getTask(taskId: string): Promise<ScheduledTaskInfo | null>;\n getAllTasks(): Promise<ScheduledTaskSummary[]>;\n close(): Promise<void>;\n}",
9
+ "expandedProperties": {
10
+ "init": "() => Promise<void>",
11
+ "scheduleRPC": "(delay: number | string, rpcName: string, data?: any, session?: CoreUserSession) => Promise<string>",
12
+ "unschedule": "(taskId: string) => Promise<boolean>",
13
+ "getTask": "(taskId: string) => Promise<ScheduledTaskInfo | null>",
14
+ "getAllTasks": "() => Promise<ScheduledTaskSummary[]>",
15
+ "close": "() => Promise<void>"
16
+ }
17
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "schema",
3
+ "summary": "Interface for a schema service that handles schema compilation, validation, and management.",
4
+ "description": "",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "export interface SchemaService {\n /**\n * Compiles a schema with the provided name and value, making it available for use.\n * @param {string} name - The unique name for the schema.\n * @param {any} value - The schema definition or configuration to be compiled.\n * @returns {Promise<void> | void} A promise if asynchronous, or void if synchronous.\n */\n compileSchema: (name: string, value: any) => Promise<void> | void;\n /**\n * Validates data against a specified schema.\n * @param {string} schema - The name of the schema to validate against.\n * @param {any} data - The data to validate against the schema.\n * @returns {Promise<void> | void} A promise if asynchronous, or void if synchronous.\n */\n validateSchema: (schema: string, data: any) => Promise<void> | void;\n /**\n * Retrieves a set of all registered schema names.\n * @returns {Set<string>} A set containing the names of all available schemas.\n */\n getSchemaNames: () => Set<string>;\n}",
9
+ "expandedProperties": {
10
+ "compileSchema": "(name: string, value: any) => Promise<void> | void",
11
+ "validateSchema": "(schema: string, data: any) => Promise<void> | void",
12
+ "getSchemaNames": "() => Set<string>"
13
+ }
14
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "variables",
3
+ "summary": "",
4
+ "description": "",
5
+ "package": "@pikku/core",
6
+ "path": "home/runner/work/pikku/pikku/packages/core/dist/types/core.types.d.ts",
7
+ "version": "0.11.1",
8
+ "interface": "export interface VariablesService {\n get: (name: string) => Promise<string | undefined> | string | undefined;\n getAll: () => Promise<Record<string, string | undefined>> | Record<string, string | undefined>;\n}",
9
+ "expandedProperties": {
10
+ "get": "(name: string) => Promise<string | undefined> | string | undefined",
11
+ "getAll": "() => Promise<Record<string, string | undefined>> | Record<string, string | undefined>"
12
+ }
13
+ }