@pikku/cli 0.12.54 → 0.12.56

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 (267) hide show
  1. package/cli.schema.json +1 -1
  2. package/console-app/assets/{index-DYnbceYg.js → index-xN8LW0II.js} +155 -155
  3. package/console-app/index.html +1 -1
  4. package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +1 -1
  5. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +3 -3
  6. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  7. package/dist/.pikku/cli/pikku-cli-channel.d.ts +6 -6
  8. package/dist/.pikku/cli/pikku-cli-channel.js +11 -1
  9. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +1 -1
  10. package/dist/.pikku/cli/pikku-cli-client.gen.js +1 -1
  11. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.d.ts +1 -1
  12. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.js +1 -1
  13. package/dist/.pikku/cli/pikku-cli-contracts-meta.gen.json +14 -0
  14. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  15. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  16. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +1 -1
  17. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.json +29 -0
  18. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +1 -1
  19. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +1 -1
  20. package/dist/.pikku/cli/pikku-cli.gen.d.ts +1 -1
  21. package/dist/.pikku/cli/pikku-cli.gen.js +1 -1
  22. package/dist/.pikku/console/pikku-node-types.gen.d.ts +1 -1
  23. package/dist/.pikku/function/pikku-function-types.gen.d.ts +8 -31
  24. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  25. package/dist/.pikku/function/pikku-functions-meta.gen.js +1 -1
  26. package/dist/.pikku/function/pikku-functions-meta.gen.json +1420 -1384
  27. package/dist/.pikku/function/pikku-functions.gen.js +3 -1
  28. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  29. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  30. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  31. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  32. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  33. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  34. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  35. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  36. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  37. package/dist/.pikku/pikku-meta-service.gen.d.ts +1 -1
  38. package/dist/.pikku/pikku-meta-service.gen.js +1 -1
  39. package/dist/.pikku/pikku-services.gen.d.ts +4 -2
  40. package/dist/.pikku/pikku-services.gen.js +2 -0
  41. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  42. package/dist/.pikku/pikku-types.gen.js +1 -1
  43. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  44. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  45. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  46. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.json +0 -248
  47. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  48. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  49. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +1 -1
  50. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +69 -67
  51. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  52. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  53. package/dist/.pikku/schemas/register.gen.js +191 -185
  54. package/dist/.pikku/schemas/schemas/FabricAddonVerifyInput.schema.json +1 -0
  55. package/dist/.pikku/schemas/schemas/FabricAddonVerifyOutput.schema.json +1 -0
  56. package/dist/.pikku/schemas/schemas/PikkuAuthInput.schema.json +1 -0
  57. package/dist/.pikku/schemas/schemas/PikkuCLIConfig.schema.json +1 -1
  58. package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +1 -1
  59. package/dist/.pikku/secrets/pikku-secret-types.gen.js +1 -1
  60. package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +1 -1
  61. package/dist/.pikku/secrets/pikku-secrets.gen.js +1 -1
  62. package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +1 -1
  63. package/dist/.pikku/trigger/pikku-trigger-types.gen.js +1 -1
  64. package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +1 -1
  65. package/dist/.pikku/variables/pikku-variable-types.gen.js +1 -1
  66. package/dist/.pikku/variables/pikku-variables.gen.d.ts +1 -1
  67. package/dist/.pikku/variables/pikku-variables.gen.js +1 -1
  68. package/dist/.pikku/workflow/meta/allWorkflow.gen.json +9 -3
  69. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  70. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  71. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  72. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  73. package/dist/bin/pikku-bin.mjs +2 -2
  74. package/dist/src/cli.wiring.js +15 -1
  75. package/dist/src/deploy/analyzer/analyzer.d.ts +6 -0
  76. package/dist/src/deploy/analyzer/analyzer.js +5 -4
  77. package/dist/src/deploy/build-pipeline.d.ts +5 -1
  78. package/dist/src/deploy/build-pipeline.js +5 -5
  79. package/dist/src/deploy/bundler/bun-bundler.d.ts +14 -0
  80. package/dist/src/deploy/bundler/bun-bundler.js +121 -0
  81. package/dist/src/deploy/bundler/bundler.d.ts +25 -30
  82. package/dist/src/deploy/bundler/bundler.interface.d.ts +54 -0
  83. package/dist/src/deploy/bundler/bundler.interface.js +11 -0
  84. package/dist/src/deploy/bundler/bundler.js +120 -190
  85. package/dist/src/deploy/bundler/dep-extractor.d.ts +11 -3
  86. package/dist/src/deploy/bundler/dep-extractor.js +12 -6
  87. package/dist/src/deploy/bundler/index.d.ts +5 -2
  88. package/dist/src/deploy/bundler/index.js +4 -2
  89. package/dist/src/deploy/bundler/node-bundler.d.ts +13 -0
  90. package/dist/src/deploy/bundler/node-bundler.js +80 -0
  91. package/dist/src/deploy/provider-adapter.d.ts +11 -0
  92. package/dist/src/deploy/server-entry.js +3 -1
  93. package/dist/src/fabric/fabric-commands.d.ts +109 -72
  94. package/dist/src/fabric/fabric-commands.js +8 -0
  95. package/dist/src/fabric/functions/add.function.d.ts +3 -3
  96. package/dist/src/fabric/functions/addon-verify.function.d.ts +54 -0
  97. package/dist/src/fabric/functions/addon-verify.function.js +153 -0
  98. package/dist/src/fabric/functions/db-schema.function.d.ts +3 -3
  99. package/dist/src/fabric/functions/deploy-list.function.d.ts +3 -3
  100. package/dist/src/fabric/functions/deploy-units.function.d.ts +3 -3
  101. package/dist/src/fabric/functions/deploy.function.d.ts +6 -6
  102. package/dist/src/fabric/functions/domains-add.function.d.ts +3 -3
  103. package/dist/src/fabric/functions/domains-list.function.d.ts +3 -3
  104. package/dist/src/fabric/functions/domains-remove.function.d.ts +3 -3
  105. package/dist/src/fabric/functions/errors.function.d.ts +3 -3
  106. package/dist/src/fabric/functions/init.function.d.ts +3 -3
  107. package/dist/src/fabric/functions/link.function.d.ts +3 -3
  108. package/dist/src/fabric/functions/llm-key.function.d.ts +3 -3
  109. package/dist/src/fabric/functions/llm-key.function.js +1 -1
  110. package/dist/src/fabric/functions/login.function.d.ts +3 -3
  111. package/dist/src/fabric/functions/logs.function.d.ts +3 -3
  112. package/dist/src/fabric/functions/metrics.function.d.ts +3 -3
  113. package/dist/src/fabric/functions/publish.function.d.ts +3 -3
  114. package/dist/src/fabric/functions/publish.function.js +8 -3
  115. package/dist/src/fabric/functions/rollback.function.d.ts +3 -3
  116. package/dist/src/fabric/functions/secrets-list.function.d.ts +3 -3
  117. package/dist/src/fabric/functions/secrets-set.function.d.ts +3 -3
  118. package/dist/src/fabric/functions/smoke.function.d.ts +3 -3
  119. package/dist/src/fabric/functions/status.function.d.ts +3 -3
  120. package/dist/src/fabric/functions/trace.function.d.ts +3 -3
  121. package/dist/src/fabric/functions/validate.function.d.ts +3 -3
  122. package/dist/src/functions/commands/all.d.ts +1 -1
  123. package/dist/src/functions/commands/all.js +19 -2
  124. package/dist/src/functions/commands/binary.d.ts +3 -3
  125. package/dist/src/functions/commands/bootstrap.d.ts +1 -1
  126. package/dist/src/functions/commands/bootstrap.js +3 -0
  127. package/dist/src/functions/commands/console.d.ts +3 -3
  128. package/dist/src/functions/commands/db-audit.d.ts +1 -1
  129. package/dist/src/functions/commands/db-generate.d.ts +1 -1
  130. package/dist/src/functions/commands/db-migrate.d.ts +1 -1
  131. package/dist/src/functions/commands/db-reset.d.ts +1 -1
  132. package/dist/src/functions/commands/db-seed.d.ts +1 -1
  133. package/dist/src/functions/commands/deploy-apply.d.ts +3 -3
  134. package/dist/src/functions/commands/deploy-apply.js +32 -1
  135. package/dist/src/functions/commands/deploy-info.d.ts +1 -1
  136. package/dist/src/functions/commands/deploy-plan.d.ts +3 -3
  137. package/dist/src/functions/commands/deploy-plan.js +3 -1
  138. package/dist/src/functions/commands/dev.d.ts +3 -3
  139. package/dist/src/functions/commands/dev.js +17 -45
  140. package/dist/src/functions/commands/emails-init.d.ts +1 -1
  141. package/dist/src/functions/commands/enable.d.ts +6 -5
  142. package/dist/src/functions/commands/enable.js +4 -0
  143. package/dist/src/functions/commands/info.d.ts +4 -4
  144. package/dist/src/functions/commands/login.d.ts +7 -7
  145. package/dist/src/functions/commands/meta.d.ts +31 -31
  146. package/dist/src/functions/commands/new-addon.d.ts +3 -3
  147. package/dist/src/functions/commands/new-function.d.ts +3 -3
  148. package/dist/src/functions/commands/new-middleware.d.ts +3 -3
  149. package/dist/src/functions/commands/new-permission.d.ts +3 -3
  150. package/dist/src/functions/commands/new-wiring.d.ts +3 -3
  151. package/dist/src/functions/commands/pikku-command-bootstrap.d.ts +1 -1
  152. package/dist/src/functions/commands/pikku-command-summary.d.ts +1 -1
  153. package/dist/src/functions/commands/pikku-command-summary.js +6 -1
  154. package/dist/src/functions/commands/skills.d.ts +6 -6
  155. package/dist/src/functions/commands/tests-coverage.d.ts +3 -3
  156. package/dist/src/functions/commands/tests-init.d.ts +3 -3
  157. package/dist/src/functions/commands/versions-check.d.ts +1 -1
  158. package/dist/src/functions/commands/versions-init.d.ts +3 -3
  159. package/dist/src/functions/commands/versions-update.d.ts +1 -1
  160. package/dist/src/functions/commands/watch.d.ts +3 -3
  161. package/dist/src/functions/commands/workspace-validate.d.ts +3 -3
  162. package/dist/src/functions/db/db-codegen.js +14 -0
  163. package/dist/src/functions/db/sqlite/sqlite-runtime-bun.js +10 -0
  164. package/dist/src/functions/runtimes/fetch/index.d.ts +1 -1
  165. package/dist/src/functions/runtimes/nextjs/pikku-command-nextjs.d.ts +1 -1
  166. package/dist/src/functions/runtimes/tanstack-start/pikku-command-tanstack-start.d.ts +1 -1
  167. package/dist/src/functions/runtimes/websocket/pikku-command-websocket-typed.d.ts +1 -1
  168. package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent-types.d.ts +1 -1
  169. package/dist/src/functions/wirings/ai-agent/pikku-command-ai-agent.d.ts +1 -1
  170. package/dist/src/functions/wirings/ai-agent/pikku-command-public-agent.d.ts +1 -1
  171. package/dist/src/functions/wirings/auth/pikku-command-auth.d.ts +7 -1
  172. package/dist/src/functions/wirings/auth/pikku-command-auth.js +14 -2
  173. package/dist/src/functions/wirings/auth/serialize-auth-types.d.ts +10 -0
  174. package/dist/src/functions/wirings/auth/serialize-auth-types.js +15 -0
  175. package/dist/src/functions/wirings/channels/pikku-channels.d.ts +1 -1
  176. package/dist/src/functions/wirings/channels/pikku-command-channel-types.d.ts +1 -1
  177. package/dist/src/functions/wirings/channels/pikku-command-channels-map.d.ts +1 -1
  178. package/dist/src/functions/wirings/channels/pikku-command-channels.d.ts +1 -1
  179. package/dist/src/functions/wirings/cli/pikku-command-cli-entry.d.ts +1 -1
  180. package/dist/src/functions/wirings/cli/pikku-command-cli-types.d.ts +1 -1
  181. package/dist/src/functions/wirings/cli/pikku-command-cli.d.ts +1 -1
  182. package/dist/src/functions/wirings/console/pikku-command-console-functions.d.ts +1 -1
  183. package/dist/src/functions/wirings/console/pikku-command-node-types.d.ts +1 -1
  184. package/dist/src/functions/wirings/console/pikku-command-nodes-meta.d.ts +1 -1
  185. package/dist/src/functions/wirings/credentials/pikku-command-credentials.d.ts +1 -1
  186. package/dist/src/functions/wirings/emails/pikku-command-emails.d.ts +1 -1
  187. package/dist/src/functions/wirings/functions/pikku-command-addon-types.d.ts +1 -1
  188. package/dist/src/functions/wirings/functions/pikku-command-function-types-split.d.ts +3 -3
  189. package/dist/src/functions/wirings/functions/pikku-command-function-types.d.ts +3 -3
  190. package/dist/src/functions/wirings/functions/pikku-command-function-types.js +10 -3
  191. package/dist/src/functions/wirings/functions/pikku-command-functions.d.ts +1 -1
  192. package/dist/src/functions/wirings/functions/pikku-command-services.d.ts +1 -1
  193. package/dist/src/functions/wirings/functions/schemas.d.ts +1 -1
  194. package/dist/src/functions/wirings/functions/serialize-function-types.js +6 -29
  195. package/dist/src/functions/wirings/gateway/pikku-command-gateway.d.ts +1 -1
  196. package/dist/src/functions/wirings/http/pikku-command-http-map.d.ts +1 -1
  197. package/dist/src/functions/wirings/http/pikku-command-http-routes.d.ts +1 -1
  198. package/dist/src/functions/wirings/http/pikku-command-http-types.d.ts +1 -1
  199. package/dist/src/functions/wirings/http/pikku-command-openapi.d.ts +1 -1
  200. package/dist/src/functions/wirings/http/pikku-http-routes.d.ts +1 -1
  201. package/dist/src/functions/wirings/mcp/pikku-command-mcp-json.d.ts +1 -1
  202. package/dist/src/functions/wirings/mcp/pikku-command-mcp-types.d.ts +1 -1
  203. package/dist/src/functions/wirings/mcp/pikku-command-mcp.d.ts +1 -1
  204. package/dist/src/functions/wirings/middleware/pikku-command-middleware.d.ts +1 -1
  205. package/dist/src/functions/wirings/package/pikku-command-package-types.d.ts +2 -2
  206. package/dist/src/functions/wirings/package/pikku-command-package.d.ts +1 -1
  207. package/dist/src/functions/wirings/permissions/pikku-command-permissions.d.ts +1 -1
  208. package/dist/src/functions/wirings/queue/pikku-command-queue-map.d.ts +1 -1
  209. package/dist/src/functions/wirings/queue/pikku-command-queue-service.d.ts +1 -1
  210. package/dist/src/functions/wirings/queue/pikku-command-queue-types.d.ts +1 -1
  211. package/dist/src/functions/wirings/queue/pikku-command-queue.d.ts +1 -1
  212. package/dist/src/functions/wirings/queue/pikku-queue-map.d.ts +1 -1
  213. package/dist/src/functions/wirings/queue/pikku-queue.d.ts +1 -1
  214. package/dist/src/functions/wirings/realtime/pikku-command-events-scaffold.d.ts +1 -1
  215. package/dist/src/functions/wirings/realtime/pikku-command-realtime.d.ts +1 -1
  216. package/dist/src/functions/wirings/rpc/pikku-command-public-rpc.d.ts +1 -1
  217. package/dist/src/functions/wirings/rpc/pikku-command-react-query.d.ts +1 -1
  218. package/dist/src/functions/wirings/rpc/pikku-command-remote-rpc.d.ts +1 -1
  219. package/dist/src/functions/wirings/rpc/pikku-command-rpc-client.d.ts +1 -1
  220. package/dist/src/functions/wirings/rpc/pikku-command-rpc-map.d.ts +2 -2
  221. package/dist/src/functions/wirings/rpc/pikku-command-rpc.d.ts +1 -1
  222. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler-types.d.ts +1 -1
  223. package/dist/src/functions/wirings/scheduler/pikku-command-scheduler.d.ts +1 -1
  224. package/dist/src/functions/wirings/secrets/pikku-command-secrets.d.ts +1 -1
  225. package/dist/src/functions/wirings/triggers/pikku-command-trigger-types.d.ts +3 -3
  226. package/dist/src/functions/wirings/triggers/pikku-command-trigger.d.ts +1 -1
  227. package/dist/src/functions/wirings/variables/pikku-command-variables.d.ts +1 -1
  228. package/dist/src/functions/wirings/workflow/pikku-command-workflow-routes.d.ts +1 -1
  229. package/dist/src/functions/wirings/workflow/pikku-command-workflow.d.ts +1 -1
  230. package/dist/src/functions/workflows/all.workflow.js +6 -1
  231. package/dist/src/scaffold/rpc-remote.gen.d.ts +3 -3
  232. package/dist/src/scaffold/rpc-remote.gen.js +1 -1
  233. package/dist/src/server/bun-server-runner.d.ts +17 -0
  234. package/dist/src/server/bun-server-runner.js +25 -0
  235. package/dist/src/server/dev-server-runner.interface.d.ts +31 -0
  236. package/dist/src/server/dev-server-runner.interface.js +11 -0
  237. package/dist/src/server/node-server-runner.d.ts +12 -0
  238. package/dist/src/server/node-server-runner.js +30 -0
  239. package/dist/src/services/cli-logger.service.js +7 -1
  240. package/dist/src/services.js +18 -0
  241. package/dist/src/utils/detect-better-auth.d.ts +7 -0
  242. package/dist/src/utils/detect-better-auth.js +29 -0
  243. package/dist/src/utils/parse-cli-filters.d.ts +1 -0
  244. package/dist/src/utils/parse-cli-filters.js +1 -0
  245. package/dist/src/utils/pikku-cli-config.js +1 -1
  246. package/dist/src/utils/serialize-schemas.js +5 -1
  247. package/dist/tsconfig.tsbuildinfo +1 -1
  248. package/package.json +4 -4
  249. package/skills/pikku-addon/SKILL.md +25 -117
  250. package/skills/pikku-addon/references/addon-package-manifest.md +63 -0
  251. package/skills/pikku-cli/SKILL.md +7 -93
  252. package/skills/pikku-cli/references/complete-example.md +82 -0
  253. package/skills/pikku-concepts/SKILL.md +17 -69
  254. package/skills/pikku-concepts/references/concept-mapping.md +37 -13
  255. package/skills/pikku-concepts/references/packages.md +29 -0
  256. package/skills/pikku-http/SKILL.md +14 -105
  257. package/skills/pikku-http/references/http-options.md +57 -0
  258. package/skills/pikku-middleware/SKILL.md +11 -68
  259. package/skills/pikku-middleware/references/middleware-patterns.md +61 -0
  260. package/skills/pikku-realtime/SKILL.md +56 -105
  261. package/skills/pikku-realtime/references/other-routes.md +23 -0
  262. package/skills/pikku-services/SKILL.md +25 -108
  263. package/skills/pikku-services/references/audit-wire-service.md +34 -0
  264. package/skills/pikku-testing/SKILL.md +51 -359
  265. package/skills/pikku-testing/references/cucumber-bdd-testing.md +176 -0
  266. package/skills/pikku-workflow/SKILL.md +93 -259
  267. package/skills/pikku-workflow/references/workflow-reference.md +63 -0
@@ -21,7 +21,7 @@
21
21
  }
22
22
  } catch (e) {}
23
23
  </script>
24
- <script type="module" crossorigin src="/assets/index-DYnbceYg.js"></script>
24
+ <script type="module" crossorigin src="/assets/index-xN8LW0II.js"></script>
25
25
  <link rel="stylesheet" crossorigin href="/assets/index-DwyRdRuZ.css">
26
26
  </head>
27
27
  <body>
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import { CoreAIAgent, PikkuAIMiddlewareHooks } from '@pikku/core/ai-agent';
5
5
  import type { PikkuPermission, PikkuMiddleware, Services, PikkuFunctionConfig } from '../function/pikku-function-types.gen.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -30,7 +30,7 @@ type ChannelWiring<ChannelData, Channel extends string> = CoreChannel<ChannelDat
30
30
  * @param func - Function definition, either direct function or configuration object
31
31
  * @returns The normalized configuration object
32
32
  */
33
- export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "session" | "channel" | "rpc">;
33
+ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunctionSessionless<void, Out, "channel" | "session" | "rpc"> | PikkuFunctionConfig<void, Out, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, Out, "channel" | "rpc" | "session">;
34
34
  /**
35
35
  * Creates a function that handles WebSocket channel disconnections.
36
36
  * Called when a client disconnects from a channel.
@@ -38,7 +38,7 @@ export declare const pikkuChannelConnectionFunc: <Out = unknown>(func: PikkuFunc
38
38
  * @param func - Function definition, either direct function or configuration object
39
39
  * @returns The normalized configuration object
40
40
  */
41
- export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "channel" | "rpc">;
41
+ export declare const pikkuChannelDisconnectionFunc: (func: PikkuFunctionSessionless<void, void, "channel"> | PikkuFunctionConfig<void, void, "channel" | "session" | "rpc">) => PikkuFunctionConfig<void, void, "channel" | "rpc" | "session">;
42
42
  /**
43
43
  * Configuration object for channel functions with Zod schema validation.
44
44
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
  * Channel-specific type definitions for tree-shaking optimization
@@ -2,31 +2,31 @@ export declare const cliHelp: import("../function/pikku-function-types.gen.js").
2
2
  args?: string[];
3
3
  }, {
4
4
  help: string;
5
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
5
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
6
6
  args?: string[];
7
7
  }, {
8
8
  help: string;
9
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
9
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
10
10
  args?: string[];
11
11
  }, {
12
12
  help: string;
13
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
13
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
14
14
  export declare const cliRaw: import("../function/pikku-function-types.gen.js").PikkuFunctionConfig<{
15
15
  args: string[];
16
16
  }, {
17
17
  help?: string;
18
18
  result?: unknown;
19
19
  error?: string;
20
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
20
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").PikkuFunctionSessionless<{
21
21
  args: string[];
22
22
  }, {
23
23
  help?: string;
24
24
  result?: unknown;
25
25
  error?: string;
26
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
26
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services> | import("../function/pikku-function-types.gen.js").PikkuFunction<{
27
27
  args: string[];
28
28
  }, {
29
29
  help?: string;
30
30
  result?: unknown;
31
31
  error?: string;
32
- }, "session" | "rpc", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
32
+ }, "rpc" | "session", import("../function/pikku-function-types.gen.js").Services>, undefined, undefined>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
  * WebSocket channel backend for 'pikku' CLI commands
@@ -31,6 +31,7 @@ import { FabricSmoke } from '../../src/fabric/functions/smoke.function.js';
31
31
  import { FabricLogin } from '../../src/fabric/functions/login.function.js';
32
32
  import { FabricInit } from '../../src/fabric/functions/init.function.js';
33
33
  import { FabricLink } from '../../src/fabric/functions/link.function.js';
34
+ import { FabricAddonVerify } from '../../src/fabric/functions/addon-verify.function.js';
34
35
  import { FabricPublish } from '../../src/fabric/functions/publish.function.js';
35
36
  import { FabricAdd } from '../../src/fabric/functions/add.function.js';
36
37
  import { FabricDeployPlan } from '../../src/fabric/functions/deploy.function.js';
@@ -64,6 +65,7 @@ import { enableConsole } from '../../src/functions/commands/enable.js';
64
65
  import { enableAgent } from '../../src/functions/commands/enable.js';
65
66
  import { enableWorkflow } from '../../src/functions/commands/enable.js';
66
67
  import { enableEvents } from '../../src/functions/commands/enable.js';
68
+ import { enableRemoteRpc } from '../../src/functions/commands/enable.js';
67
69
  import { pikkuNewFunction } from '../../src/functions/commands/new-function.js';
68
70
  import { pikkuNewWiring } from '../../src/functions/commands/new-wiring.js';
69
71
  import { pikkuNewMiddleware } from '../../src/functions/commands/new-middleware.js';
@@ -247,6 +249,10 @@ wireChannel({
247
249
  func: FabricLink,
248
250
  middleware: [cliCloseOnComplete],
249
251
  },
252
+ 'fabric.addon.verify': {
253
+ func: FabricAddonVerify,
254
+ middleware: [cliCloseOnComplete],
255
+ },
250
256
  'fabric.addon.publish': {
251
257
  func: FabricPublish,
252
258
  middleware: [cliCloseOnComplete],
@@ -379,6 +385,10 @@ wireChannel({
379
385
  func: enableEvents,
380
386
  middleware: [cliCloseOnComplete],
381
387
  },
388
+ 'enable.remote-rpc': {
389
+ func: enableRemoteRpc,
390
+ middleware: [cliCloseOnComplete],
391
+ },
382
392
  'new.function': {
383
393
  func: pikkuNewFunction,
384
394
  middleware: [cliCloseOnComplete],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import '../pikku-bootstrap.gen.js';
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import { executeCLIViaChannel } from '@pikku/core/cli/channel';
5
5
  import { CorePikkuWebsocket } from '@pikku/websocket';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json';
5
5
  export default contractsMeta;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import contractsMeta from './pikku-cli-contracts-meta.gen.json' with { type: 'json' };
5
5
  export default contractsMeta;
@@ -89,6 +89,19 @@
89
89
  "options": {},
90
90
  "description": "Publish and install Fabric community-registry addons",
91
91
  "subcommands": {
92
+ "verify": {
93
+ "pikkuFuncId": "FabricAddonVerify",
94
+ "positionals": [
95
+ {
96
+ "name": "dir",
97
+ "required": false
98
+ }
99
+ ],
100
+ "options": {},
101
+ "parameters": "[dir]",
102
+ "description": "Verify an addon directory is correctly built and ready to publish",
103
+ "renderName": "renderAddonVerify"
104
+ },
92
105
  "publish": {
93
106
  "pikkuFuncId": "FabricPublish",
94
107
  "positionals": [
@@ -103,6 +116,7 @@
103
116
  }
104
117
  },
105
118
  "parameters": "[dir]",
119
+ "renderName": "renderAddonVerify",
106
120
  "description": "Publish the addon in this directory to the community registry (pack + upload)"
107
121
  },
108
122
  "add": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-cli-wirings-meta.gen.json' with { type: 'json' };
@@ -342,6 +342,19 @@
342
342
  "options": {},
343
343
  "description": "Publish and install Fabric community-registry addons",
344
344
  "subcommands": {
345
+ "verify": {
346
+ "pikkuFuncId": "FabricAddonVerify",
347
+ "positionals": [
348
+ {
349
+ "name": "dir",
350
+ "required": false
351
+ }
352
+ ],
353
+ "options": {},
354
+ "parameters": "[dir]",
355
+ "description": "Verify an addon directory is correctly built and ready to publish",
356
+ "renderName": "renderAddonVerify"
357
+ },
345
358
  "publish": {
346
359
  "pikkuFuncId": "FabricPublish",
347
360
  "positionals": [
@@ -356,6 +369,7 @@
356
369
  }
357
370
  },
358
371
  "parameters": "[dir]",
372
+ "renderName": "renderAddonVerify",
359
373
  "description": "Publish the addon in this directory to the community registry (pack + upload)"
360
374
  },
361
375
  "add": {
@@ -839,6 +853,17 @@
839
853
  }
840
854
  },
841
855
  "description": "Enable the realtime events channel + SSE stream (scaffolds events.gen.ts)"
856
+ },
857
+ "remote-rpc": {
858
+ "pikkuFuncId": "enableRemoteRpc",
859
+ "positionals": [],
860
+ "options": {
861
+ "noAuth": {
862
+ "description": "Disable auth requirement",
863
+ "default": false
864
+ }
865
+ },
866
+ "description": "Enable the remote internal RPC queue worker + HTTP endpoint (scaffolds rpc-remote.gen.ts)"
842
867
  }
843
868
  }
844
869
  },
@@ -1461,6 +1486,10 @@
1461
1486
  "default": false,
1462
1487
  "short": "j"
1463
1488
  },
1489
+ "security": {
1490
+ "description": "Run the data-classification security lint (scans function return types for Private/Pii/Secret leaks). Off by default — it forces expensive return-type inference on every function. Combine with --fail-on-error to gate a build/CI.",
1491
+ "default": false
1492
+ },
1464
1493
  "failOnError": {
1465
1494
  "description": "Fail the build on error-severity diagnostics (e.g. data-classification leaks). Default: only critical diagnostics fail.",
1466
1495
  "default": false
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import '../../src/cli.wiring.js';
5
5
  import '../../src/services.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /* The files with an wireCLI function call */
5
5
  import '../../src/cli.wiring.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import '../pikku-bootstrap.gen.js';
5
5
  export declare function PikkuCLI(args: string[]): Promise<void>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import { executeCLI, CLIError } from '@pikku/core/cli';
5
5
  import { createConfig as createConfig } from '../../src/services.js';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import type { FlattenedRPCMap } from '../rpc/pikku-rpc-wirings-map.internal.gen.js';
5
5
  export type NodeCategory = never;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
  * Core function, middleware, and permission types for all wirings
@@ -259,26 +259,14 @@ export type PikkuFunctionConfigWithSchema<InputSchema extends StandardSchemaV1 |
259
259
  * Creates a Pikku function that can be either session-aware or sessionless.
260
260
  * This is the main function wrapper for creating API endpoints.
261
261
  *
262
- * Supports two patterns:
263
- * 1. Generic types: `pikkuFunc<Input, Output>({ func: ... })`
264
- * 2. Zod schemas: `pikkuFunc({ input: z.object(...), output: z.object(...), func: ... })`
262
+ * Define the input and output with Zod schemas — the function's types are
263
+ * inferred from them, and the schemas double as runtime validation.
265
264
  *
266
- * @template In - Input type for the function (inferred from schema if provided)
267
- * @template Out - Output type for the function (inferred from schema if provided)
268
- * @param func - Function definition, either direct function or configuration object
265
+ * @param config - Function definition with `input`/`output` Zod schemas and `func`.
269
266
  * @returns The normalized configuration object
270
267
  *
271
268
  * @example
272
269
  * ```typescript
273
- * // Pattern 1: Using generic types
274
- * const createUser = pikkuFunc<{name: string, email: string}, {id: number}>({
275
- * func: async ({db}, input) => {
276
- * const user = await db.users.create(input)
277
- * return { id: user.id }
278
- * }
279
- * })
280
- *
281
- * // Pattern 2: Using Zod schemas (types inferred automatically)
282
270
  * const createUserInput = z.object({ name: z.string(), email: z.string() })
283
271
  * const createUserOutput = z.object({ id: z.number() })
284
272
  *
@@ -315,25 +303,14 @@ export type PikkuFunctionSessionlessConfigWithSchema<InputSchema extends Standar
315
303
  * Creates a sessionless Pikku function that doesn't require user authentication.
316
304
  * Use this for public endpoints, webhooks, or background tasks.
317
305
  *
318
- * Supports two patterns:
319
- * 1. Generic types: `pikkuSessionlessFunc<Input, Output>({ func: ... })`
320
- * 2. Zod schemas: `pikkuSessionlessFunc({ input: z.object(...), func: ... })`
306
+ * Define the input and output with Zod schemas — the function's types are
307
+ * inferred from them, and the schemas double as runtime validation.
321
308
  *
322
- * @template In - Input type for the function (inferred from schema if provided)
323
- * @template Out - Output type for the function (inferred from schema if provided)
324
- * @param func - Function definition, either direct function or configuration object
309
+ * @param config - Function definition with `input`/`output` Zod schemas and `func`.
325
310
  * @returns The normalized configuration object
326
311
  *
327
312
  * @example
328
313
  * ```typescript
329
- * // Pattern 1: Using generic types
330
- * const healthCheck = pikkuSessionlessFunc<void, {status: string}>({
331
- * func: async ({logger}) => {
332
- * return { status: 'healthy' }
333
- * }
334
- * })
335
- *
336
- * // Pattern 2: Using Zod schemas
337
314
  * const greetInput = z.object({ name: z.string() })
338
315
  * const greetOutput = z.object({ message: z.string() })
339
316
  *
@@ -364,7 +341,7 @@ export declare function pikkuSessionlessFunc<In, Out = unknown>(func: PikkuFunct
364
341
  * })
365
342
  * ```
366
343
  */
367
- export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "session" | "rpc", PikkuFunctionSessionless<void, void, "session" | "rpc", Services> | PikkuFunction<void, void, "session" | "rpc", Services>, undefined, undefined>;
344
+ export declare const pikkuVoidFunc: (func: PikkuFunctionSessionless<void, void, "session" | "rpc"> | PikkuFunctionConfig<void, void, "session" | "rpc">) => PikkuFunctionConfig<void, void, "rpc" | "session", PikkuFunctionSessionless<void, void, "rpc" | "session", Services> | PikkuFunction<void, void, "rpc" | "session", Services>, undefined, undefined>;
368
345
  /**
369
346
  * References a registered function by name for use in any wiring.
370
347
  * Works for both local and addon functions — resolves via RPC at runtime.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  /**
5
5
  * Core function, middleware, and permission types for all wirings
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was generated by @pikku/cli@0.12.54
2
+ * This file was generated by @pikku/cli@0.12.56
3
3
  */
4
4
  import { pikkuState } from '@pikku/core/internal';
5
5
  import metaData from './pikku-functions-meta.gen.json' with { type: 'json' };