@pikku/cli 0.11.0 → 0.11.1

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 (113) hide show
  1. package/.pikku/channel/pikku-channel-types.gen.ts +1 -1
  2. package/.pikku/channel/pikku-channels-map.gen.d.ts +2 -2
  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 +92 -0
  6. package/.pikku/cli/pikku-cli-client.gen.ts +56 -0
  7. package/.pikku/cli/pikku-cli-types.gen.ts +1 -1
  8. package/.pikku/cli/pikku-cli-wirings-meta.gen.ts +127 -4
  9. package/.pikku/cli/pikku-cli-wirings.gen.ts +3 -2
  10. package/.pikku/cli/pikku-cli.gen.ts +41 -0
  11. package/.pikku/function/pikku-function-types.gen.ts +1 -1
  12. package/.pikku/function/pikku-functions-meta.gen.ts +156 -156
  13. package/.pikku/function/pikku-functions-meta.min.gen.ts +36 -36
  14. package/.pikku/function/pikku-functions.gen.ts +1 -1
  15. package/.pikku/http/pikku-http-types.gen.ts +1 -1
  16. package/.pikku/http/pikku-http-wirings-map.gen.d.ts +2 -2
  17. package/.pikku/http/pikku-http-wirings-meta.gen.ts +1 -1
  18. package/.pikku/http/pikku-http-wirings.gen.ts +1 -1
  19. package/.pikku/mcp/pikku-mcp-types.gen.ts +1 -1
  20. package/.pikku/mcp/pikku-mcp-wirings-meta.gen.ts +1 -1
  21. package/.pikku/mcp/pikku-mcp-wirings.gen.ts +1 -1
  22. package/.pikku/pikku-bootstrap.gen.ts +1 -1
  23. package/.pikku/pikku-services.gen.ts +3 -3
  24. package/.pikku/pikku-types.gen.ts +1 -1
  25. package/.pikku/pikku-websocket.gen.ts +1 -1
  26. package/.pikku/queue/pikku-queue-types.gen.ts +1 -1
  27. package/.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts +2 -2
  28. package/.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts +1 -1
  29. package/.pikku/queue/pikku-queue-workers-wirings.gen.ts +1 -1
  30. package/.pikku/rpc/pikku-remote-rpc-workers.gen.ts +1 -1
  31. package/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +2 -2
  32. package/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +9 -9
  33. package/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +8 -8
  34. package/.pikku/scheduler/pikku-scheduler-types.gen.ts +1 -1
  35. package/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts +1 -1
  36. package/.pikku/scheduler/pikku-schedulers-wirings.gen.ts +1 -1
  37. package/.pikku/schemas/register.gen.ts +5 -5
  38. package/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
  39. package/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
  40. package/.pikku/workflow/pikku-workflow-map.gen.d.ts +2 -2
  41. package/.pikku/workflow/pikku-workflow-types.gen.ts +1 -1
  42. package/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +1 -1
  43. package/.pikku/workflow/pikku-workflow-wirings.gen.ts +1 -1
  44. package/CHANGELOG.md +6 -1
  45. package/bin/pikku.ts +20 -20
  46. package/build.sh +1 -1
  47. package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +1 -1
  48. package/dist/.pikku/channel/pikku-channel-types.gen.js +1 -1
  49. package/dist/.pikku/channel/pikku-channels-meta.gen.js +1 -1
  50. package/dist/.pikku/channel/pikku-channels.gen.d.ts +1 -1
  51. package/dist/.pikku/channel/pikku-channels.gen.js +1 -1
  52. package/dist/.pikku/cli/pikku-cli-channel.d.ts +1 -0
  53. package/dist/.pikku/cli/pikku-cli-channel.js +91 -0
  54. package/dist/.pikku/cli/pikku-cli-client.gen.d.ts +10 -0
  55. package/dist/.pikku/cli/pikku-cli-client.gen.js +46 -0
  56. package/dist/.pikku/cli/pikku-cli-types.gen.d.ts +1 -1
  57. package/dist/.pikku/cli/pikku-cli-types.gen.js +1 -1
  58. package/dist/.pikku/cli/pikku-cli-wirings-meta.gen.js +127 -4
  59. package/dist/.pikku/cli/pikku-cli-wirings.gen.d.ts +2 -1
  60. package/dist/.pikku/cli/pikku-cli-wirings.gen.js +2 -1
  61. package/dist/.pikku/cli/pikku-cli.gen.d.ts +10 -0
  62. package/dist/.pikku/cli/pikku-cli.gen.js +38 -0
  63. package/dist/.pikku/function/pikku-function-types.gen.d.ts +1 -1
  64. package/dist/.pikku/function/pikku-function-types.gen.js +1 -1
  65. package/dist/.pikku/function/pikku-functions-meta.gen.js +156 -156
  66. package/dist/.pikku/function/pikku-functions-meta.min.gen.js +36 -36
  67. package/dist/.pikku/function/pikku-functions.gen.js +1 -1
  68. package/dist/.pikku/http/pikku-http-types.gen.d.ts +1 -1
  69. package/dist/.pikku/http/pikku-http-types.gen.js +1 -1
  70. package/dist/.pikku/http/pikku-http-wirings-meta.gen.js +1 -1
  71. package/dist/.pikku/http/pikku-http-wirings.gen.d.ts +1 -1
  72. package/dist/.pikku/http/pikku-http-wirings.gen.js +1 -1
  73. package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +1 -1
  74. package/dist/.pikku/mcp/pikku-mcp-types.gen.js +1 -1
  75. package/dist/.pikku/mcp/pikku-mcp-wirings-meta.gen.js +1 -1
  76. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.d.ts +1 -1
  77. package/dist/.pikku/mcp/pikku-mcp-wirings.gen.js +1 -1
  78. package/dist/.pikku/pikku-bootstrap.gen.d.ts +1 -1
  79. package/dist/.pikku/pikku-bootstrap.gen.js +1 -1
  80. package/dist/.pikku/pikku-services.gen.d.ts +3 -3
  81. package/dist/.pikku/pikku-services.gen.js +1 -1
  82. package/dist/.pikku/pikku-types.gen.d.ts +1 -1
  83. package/dist/.pikku/pikku-types.gen.js +1 -1
  84. package/dist/.pikku/pikku-websocket.gen.d.ts +1 -1
  85. package/dist/.pikku/pikku-websocket.gen.js +1 -1
  86. package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +1 -1
  87. package/dist/.pikku/queue/pikku-queue-types.gen.js +1 -1
  88. package/dist/.pikku/queue/pikku-queue-workers-wirings-meta.gen.js +1 -1
  89. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.d.ts +1 -1
  90. package/dist/.pikku/queue/pikku-queue-workers-wirings.gen.js +1 -1
  91. package/dist/.pikku/rpc/pikku-remote-rpc-workers.gen.js +1 -1
  92. package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +8 -8
  93. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +1 -1
  94. package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +1 -1
  95. package/dist/.pikku/scheduler/pikku-schedulers-wirings-meta.gen.js +1 -1
  96. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.d.ts +1 -1
  97. package/dist/.pikku/scheduler/pikku-schedulers-wirings.gen.js +1 -1
  98. package/dist/.pikku/schemas/register.gen.js +3 -3
  99. package/dist/.pikku/schemas/schemas/PikkuChannelsOutput.schema.json +1 -1
  100. package/dist/.pikku/schemas/schemas/PikkuSchemasOutput.schema.json +1 -1
  101. package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +1 -1
  102. package/dist/.pikku/workflow/pikku-workflow-types.gen.js +1 -1
  103. package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +1 -1
  104. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +1 -1
  105. package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +1 -1
  106. package/dist/bin/pikku.js +18 -20
  107. package/dist/src/cli.wiring.js +109 -107
  108. package/dist/src/services/cli-logger-forwarder.service.d.ts +3 -0
  109. package/dist/src/services/cli-logger-forwarder.service.js +8 -1
  110. package/dist/tsconfig.tsbuildinfo +1 -1
  111. package/package.json +1 -1
  112. package/src/cli.wiring.ts +111 -106
  113. package/src/services/cli-logger-forwarder.service.ts +10 -1
@@ -1 +1 @@
1
- {"root":["../bin/pikku.ts","../src/cli.wiring.ts","../src/services.ts","../src/functions/commands/all.ts","../src/functions/commands/bootstrap.ts","../src/functions/commands/watch.ts","../src/functions/runtimes/nextjs/pikku-command-nextjs.ts","../src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts","../src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts","../src/functions/wirings/channels/pikku-channels.ts","../src/functions/wirings/channels/pikku-command-channel-types.ts","../src/functions/wirings/channels/pikku-command-channels-map.ts","../src/functions/wirings/channels/pikku-command-channels.ts","../src/functions/wirings/channels/pikku-command-websocket-typed.ts","../src/functions/wirings/channels/serialize-channel-types.ts","../src/functions/wirings/channels/serialize-typed-channel-map.ts","../src/functions/wirings/channels/serialize-websocket-wrapper.ts","../src/functions/wirings/cli/pikku-command-cli-entry.ts","../src/functions/wirings/cli/pikku-command-cli-types.ts","../src/functions/wirings/cli/pikku-command-cli.ts","../src/functions/wirings/cli/serialize-channel-cli-client.ts","../src/functions/wirings/cli/serialize-channel-cli.ts","../src/functions/wirings/cli/serialize-cli-types.ts","../src/functions/wirings/cli/serialize-local-cli-bootstrap.ts","../src/functions/wirings/fetch/index.ts","../src/functions/wirings/functions/pikku-command-function-types-split.ts","../src/functions/wirings/functions/pikku-command-function-types.ts","../src/functions/wirings/functions/pikku-command-functions.ts","../src/functions/wirings/functions/pikku-command-services.ts","../src/functions/wirings/functions/pikku-function-types.ts","../src/functions/wirings/functions/schemas.ts","../src/functions/wirings/functions/serialize-function-imports.ts","../src/functions/wirings/functions/serialize-function-types.ts","../src/functions/wirings/functions/serialize-pikku-types-hub.ts","../src/functions/wirings/http/openapi-spec-generator.ts","../src/functions/wirings/http/pikku-command-http-map.ts","../src/functions/wirings/http/pikku-command-http-routes.ts","../src/functions/wirings/http/pikku-command-http-types.ts","../src/functions/wirings/http/pikku-command-openapi.ts","../src/functions/wirings/http/pikku-http-routes.ts","../src/functions/wirings/http/serialize-fetch-wrapper.ts","../src/functions/wirings/http/serialize-http-types.ts","../src/functions/wirings/http/serialize-typed-http-map.ts","../src/functions/wirings/mcp/pikku-command-mcp-json.ts","../src/functions/wirings/mcp/pikku-command-mcp-types.ts","../src/functions/wirings/mcp/pikku-command-mcp.ts","../src/functions/wirings/mcp/serialize-mcp-json.ts","../src/functions/wirings/mcp/serialize-mcp-types.ts","../src/functions/wirings/middleware/pikku-command-middleware.ts","../src/functions/wirings/middleware/serialize-middleware-groups-meta.ts","../src/functions/wirings/middleware/serialize-middleware-imports.ts","../src/functions/wirings/permissions/pikku-command-permissions.ts","../src/functions/wirings/permissions/serialize-permissions-imports.ts","../src/functions/wirings/queue/pikku-command-queue-map.ts","../src/functions/wirings/queue/pikku-command-queue-service.ts","../src/functions/wirings/queue/pikku-command-queue-types.ts","../src/functions/wirings/queue/pikku-command-queue.ts","../src/functions/wirings/queue/pikku-queue-map.ts","../src/functions/wirings/queue/pikku-queue.ts","../src/functions/wirings/queue/serialize-queue-map.ts","../src/functions/wirings/queue/serialize-queue-meta.ts","../src/functions/wirings/queue/serialize-queue-types.ts","../src/functions/wirings/queue/serialize-queue-wrapper.ts","../src/functions/wirings/rpc/pikku-command-public-rpc.ts","../src/functions/wirings/rpc/pikku-command-remote-rpc.ts","../src/functions/wirings/rpc/pikku-command-rpc-client.ts","../src/functions/wirings/rpc/pikku-command-rpc-map.ts","../src/functions/wirings/rpc/pikku-command-rpc.ts","../src/functions/wirings/rpc/serialize-public-rpc.ts","../src/functions/wirings/rpc/serialize-remote-rpc.ts","../src/functions/wirings/rpc/serialize-rpc-wrapper.ts","../src/functions/wirings/rpc/serialize-typed-rpc-map.ts","../src/functions/wirings/scheduler/pikku-command-scheduler-types.ts","../src/functions/wirings/scheduler/pikku-command-scheduler.ts","../src/functions/wirings/scheduler/serialize-scheduler-meta.ts","../src/functions/wirings/scheduler/serialize-scheduler-types.ts","../src/functions/wirings/workflow/pikku-command-workflow-map.ts","../src/functions/wirings/workflow/pikku-command-workflow-types.ts","../src/functions/wirings/workflow/pikku-command-workflow.ts","../src/functions/wirings/workflow/serialize-workflow-map.ts","../src/functions/wirings/workflow/serialize-workflow-meta.ts","../src/functions/wirings/workflow/serialize-workflow-types.ts","../src/functions/wirings/workflow/serialize-workflow-workers.ts","../src/middleware/log-command-info-and-time.ts","../src/services/cli-logger-forwarder.service.ts","../src/services/cli-logger.service.ts","../src/utils/check-required-types.ts","../src/utils/command-summary.ts","../src/utils/custom-types-generator.ts","../src/utils/file-import-path.ts","../src/utils/file-imports-serializer.ts","../src/utils/file-writer.ts","../src/utils/generate-bootstrap-file.ts","../src/utils/get-cli-version.ts","../src/utils/pikku-cli-config.ts","../src/utils/pikku-files-and-methods.ts","../src/utils/schema-generator.ts","../src/utils/serialize-import-map.ts","../.pikku/pikku-bootstrap.gen.ts","../.pikku/pikku-services.gen.ts","../.pikku/pikku-types.gen.ts","../.pikku/pikku-websocket.gen.ts","../.pikku/channel/pikku-channel-types.gen.ts","../.pikku/channel/pikku-channels-map.gen.d.ts","../.pikku/channel/pikku-channels-meta.gen.ts","../.pikku/channel/pikku-channels.gen.ts","../.pikku/cli/pikku-cli-types.gen.ts","../.pikku/cli/pikku-cli-wirings-meta.gen.ts","../.pikku/cli/pikku-cli-wirings.gen.ts","../.pikku/function/pikku-function-types.gen.ts","../.pikku/function/pikku-functions-meta.gen.ts","../.pikku/function/pikku-functions-meta.min.gen.ts","../.pikku/function/pikku-functions.gen.ts","../.pikku/http/pikku-http-types.gen.ts","../.pikku/http/pikku-http-wirings-map.gen.d.ts","../.pikku/http/pikku-http-wirings-meta.gen.ts","../.pikku/http/pikku-http-wirings.gen.ts","../.pikku/mcp/pikku-mcp-types.gen.ts","../.pikku/mcp/pikku-mcp-wirings-meta.gen.ts","../.pikku/mcp/pikku-mcp-wirings.gen.ts","../.pikku/queue/pikku-queue-types.gen.ts","../.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts","../.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts","../.pikku/queue/pikku-queue-workers-wirings.gen.ts","../.pikku/rpc/pikku-remote-rpc-workers.gen.ts","../.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts","../.pikku/scheduler/pikku-scheduler-types.gen.ts","../.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts","../.pikku/scheduler/pikku-schedulers-wirings.gen.ts","../.pikku/schemas/register.gen.ts","../.pikku/workflow/pikku-workflow-map.gen.d.ts","../.pikku/workflow/pikku-workflow-types.gen.ts","../.pikku/workflow/pikku-workflow-wirings-meta.gen.ts","../.pikku/workflow/pikku-workflow-wirings.gen.ts","../types/application-types.d.ts","../types/config.d.ts"],"version":"5.9.3"}
1
+ {"root":["../bin/pikku.ts","../src/cli.wiring.ts","../src/services.ts","../src/functions/commands/all.ts","../src/functions/commands/bootstrap.ts","../src/functions/commands/watch.ts","../src/functions/runtimes/nextjs/pikku-command-nextjs.ts","../src/functions/runtimes/nextjs/serialize-nextjs-backend-wrapper.ts","../src/functions/runtimes/nextjs/serialize-nextjs-http-wrapper.ts","../src/functions/wirings/channels/pikku-channels.ts","../src/functions/wirings/channels/pikku-command-channel-types.ts","../src/functions/wirings/channels/pikku-command-channels-map.ts","../src/functions/wirings/channels/pikku-command-channels.ts","../src/functions/wirings/channels/pikku-command-websocket-typed.ts","../src/functions/wirings/channels/serialize-channel-types.ts","../src/functions/wirings/channels/serialize-typed-channel-map.ts","../src/functions/wirings/channels/serialize-websocket-wrapper.ts","../src/functions/wirings/cli/pikku-command-cli-entry.ts","../src/functions/wirings/cli/pikku-command-cli-types.ts","../src/functions/wirings/cli/pikku-command-cli.ts","../src/functions/wirings/cli/serialize-channel-cli-client.ts","../src/functions/wirings/cli/serialize-channel-cli.ts","../src/functions/wirings/cli/serialize-cli-types.ts","../src/functions/wirings/cli/serialize-local-cli-bootstrap.ts","../src/functions/wirings/fetch/index.ts","../src/functions/wirings/functions/pikku-command-function-types-split.ts","../src/functions/wirings/functions/pikku-command-function-types.ts","../src/functions/wirings/functions/pikku-command-functions.ts","../src/functions/wirings/functions/pikku-command-services.ts","../src/functions/wirings/functions/pikku-function-types.ts","../src/functions/wirings/functions/schemas.ts","../src/functions/wirings/functions/serialize-function-imports.ts","../src/functions/wirings/functions/serialize-function-types.ts","../src/functions/wirings/functions/serialize-pikku-types-hub.ts","../src/functions/wirings/http/openapi-spec-generator.ts","../src/functions/wirings/http/pikku-command-http-map.ts","../src/functions/wirings/http/pikku-command-http-routes.ts","../src/functions/wirings/http/pikku-command-http-types.ts","../src/functions/wirings/http/pikku-command-openapi.ts","../src/functions/wirings/http/pikku-http-routes.ts","../src/functions/wirings/http/serialize-fetch-wrapper.ts","../src/functions/wirings/http/serialize-http-types.ts","../src/functions/wirings/http/serialize-typed-http-map.ts","../src/functions/wirings/mcp/pikku-command-mcp-json.ts","../src/functions/wirings/mcp/pikku-command-mcp-types.ts","../src/functions/wirings/mcp/pikku-command-mcp.ts","../src/functions/wirings/mcp/serialize-mcp-json.ts","../src/functions/wirings/mcp/serialize-mcp-types.ts","../src/functions/wirings/middleware/pikku-command-middleware.ts","../src/functions/wirings/middleware/serialize-middleware-groups-meta.ts","../src/functions/wirings/middleware/serialize-middleware-imports.ts","../src/functions/wirings/permissions/pikku-command-permissions.ts","../src/functions/wirings/permissions/serialize-permissions-imports.ts","../src/functions/wirings/queue/pikku-command-queue-map.ts","../src/functions/wirings/queue/pikku-command-queue-service.ts","../src/functions/wirings/queue/pikku-command-queue-types.ts","../src/functions/wirings/queue/pikku-command-queue.ts","../src/functions/wirings/queue/pikku-queue-map.ts","../src/functions/wirings/queue/pikku-queue.ts","../src/functions/wirings/queue/serialize-queue-map.ts","../src/functions/wirings/queue/serialize-queue-meta.ts","../src/functions/wirings/queue/serialize-queue-types.ts","../src/functions/wirings/queue/serialize-queue-wrapper.ts","../src/functions/wirings/rpc/pikku-command-public-rpc.ts","../src/functions/wirings/rpc/pikku-command-remote-rpc.ts","../src/functions/wirings/rpc/pikku-command-rpc-client.ts","../src/functions/wirings/rpc/pikku-command-rpc-map.ts","../src/functions/wirings/rpc/pikku-command-rpc.ts","../src/functions/wirings/rpc/serialize-public-rpc.ts","../src/functions/wirings/rpc/serialize-remote-rpc.ts","../src/functions/wirings/rpc/serialize-rpc-wrapper.ts","../src/functions/wirings/rpc/serialize-typed-rpc-map.ts","../src/functions/wirings/scheduler/pikku-command-scheduler-types.ts","../src/functions/wirings/scheduler/pikku-command-scheduler.ts","../src/functions/wirings/scheduler/serialize-scheduler-meta.ts","../src/functions/wirings/scheduler/serialize-scheduler-types.ts","../src/functions/wirings/workflow/pikku-command-workflow-map.ts","../src/functions/wirings/workflow/pikku-command-workflow-types.ts","../src/functions/wirings/workflow/pikku-command-workflow.ts","../src/functions/wirings/workflow/serialize-workflow-map.ts","../src/functions/wirings/workflow/serialize-workflow-meta.ts","../src/functions/wirings/workflow/serialize-workflow-types.ts","../src/functions/wirings/workflow/serialize-workflow-workers.ts","../src/middleware/log-command-info-and-time.ts","../src/services/cli-logger-forwarder.service.ts","../src/services/cli-logger.service.ts","../src/utils/check-required-types.ts","../src/utils/command-summary.ts","../src/utils/custom-types-generator.ts","../src/utils/file-import-path.ts","../src/utils/file-imports-serializer.ts","../src/utils/file-writer.ts","../src/utils/generate-bootstrap-file.ts","../src/utils/get-cli-version.ts","../src/utils/pikku-cli-config.ts","../src/utils/pikku-files-and-methods.ts","../src/utils/schema-generator.ts","../src/utils/serialize-import-map.ts","../.pikku/pikku-bootstrap.gen.ts","../.pikku/pikku-services.gen.ts","../.pikku/pikku-types.gen.ts","../.pikku/pikku-websocket.gen.ts","../.pikku/channel/pikku-channel-types.gen.ts","../.pikku/channel/pikku-channels-map.gen.d.ts","../.pikku/channel/pikku-channels-meta.gen.ts","../.pikku/channel/pikku-channels.gen.ts","../.pikku/cli/pikku-cli-channel.ts","../.pikku/cli/pikku-cli-client.gen.ts","../.pikku/cli/pikku-cli-types.gen.ts","../.pikku/cli/pikku-cli-wirings-meta.gen.ts","../.pikku/cli/pikku-cli-wirings.gen.ts","../.pikku/cli/pikku-cli.gen.ts","../.pikku/function/pikku-function-types.gen.ts","../.pikku/function/pikku-functions-meta.gen.ts","../.pikku/function/pikku-functions-meta.min.gen.ts","../.pikku/function/pikku-functions.gen.ts","../.pikku/http/pikku-http-types.gen.ts","../.pikku/http/pikku-http-wirings-map.gen.d.ts","../.pikku/http/pikku-http-wirings-meta.gen.ts","../.pikku/http/pikku-http-wirings.gen.ts","../.pikku/mcp/pikku-mcp-types.gen.ts","../.pikku/mcp/pikku-mcp-wirings-meta.gen.ts","../.pikku/mcp/pikku-mcp-wirings.gen.ts","../.pikku/queue/pikku-queue-types.gen.ts","../.pikku/queue/pikku-queue-workers-wirings-map.gen.d.ts","../.pikku/queue/pikku-queue-workers-wirings-meta.gen.ts","../.pikku/queue/pikku-queue-workers-wirings.gen.ts","../.pikku/rpc/pikku-remote-rpc-workers.gen.ts","../.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts","../.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts","../.pikku/scheduler/pikku-scheduler-types.gen.ts","../.pikku/scheduler/pikku-schedulers-wirings-meta.gen.ts","../.pikku/scheduler/pikku-schedulers-wirings.gen.ts","../.pikku/schemas/register.gen.ts","../.pikku/workflow/pikku-workflow-map.gen.d.ts","../.pikku/workflow/pikku-workflow-types.gen.ts","../.pikku/workflow/pikku-workflow-wirings-meta.gen.ts","../.pikku/workflow/pikku-workflow-wirings.gen.ts","../types/application-types.d.ts","../types/config.d.ts"],"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pikku/cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "MIT",
6
6
  "bin": {
package/src/cli.wiring.ts CHANGED
@@ -1,107 +1,112 @@
1
- // import { pikkuSchemas } from './functions/wirings/functions/schemas.js'
2
- // import { pikkuFetch } from './functions/wirings/fetch/index.js'
3
- // import { pikkuWebSocketTyped } from './functions/wirings/channels/pikku-command-websocket-typed.js'
4
- // import { pikkuRPCClient } from './functions/wirings/rpc/pikku-command-rpc-client.js'
5
- // import { pikkuQueueService } from './functions/wirings/queue/pikku-command-queue-service.js'
6
- // import { pikkuOpenAPI } from './functions/wirings/http/pikku-command-openapi.js'
7
- // import { pikkuNext } from './functions/runtimes/nextjs/pikku-command-nextjs.js'
8
- // import { pikkuCLICommand, wireCLI } from '../.pikku/cli/pikku-cli-types.gen.js'
9
- // import { all } from './functions/commands/all.js'
10
- // import { bootstrap } from './functions/commands/bootstrap.js'
11
- // import { clientCLIRenderer } from './services.js'
1
+ import { pikkuSchemas } from './functions/wirings/functions/schemas.js'
2
+ import { pikkuFetch } from './functions/wirings/fetch/index.js'
3
+ import { pikkuWebSocketTyped } from './functions/wirings/channels/pikku-command-websocket-typed.js'
4
+ import { pikkuRPCClient } from './functions/wirings/rpc/pikku-command-rpc-client.js'
5
+ import { pikkuQueueService } from './functions/wirings/queue/pikku-command-queue-service.js'
6
+ import { pikkuOpenAPI } from './functions/wirings/http/pikku-command-openapi.js'
7
+ import { pikkuNext } from './functions/runtimes/nextjs/pikku-command-nextjs.js'
8
+ import { pikkuCLICommand, wireCLI } from '../.pikku/cli/pikku-cli-types.gen.js'
9
+ import { all } from './functions/commands/all.js'
10
+ import { bootstrap } from './functions/commands/bootstrap.js'
11
+ import { watch } from './functions/commands/watch.js'
12
+ import { clientCLIRenderer } from './services.js'
12
13
 
13
- // wireCLI({
14
- // program: 'pikku',
15
- // description:
16
- // 'Pikku CLI - Code generation tool for type-safe backend development',
17
- // render: clientCLIRenderer,
18
- // options: {
19
- // config: {
20
- // description: 'Path to pikku.config.json file',
21
- // short: 'c',
22
- // },
23
- // logLevel: {
24
- // description: 'Set log level',
25
- // default: 'info' as const,
26
- // short: 'l',
27
- // },
28
- // userSessionType: {
29
- // description:
30
- // 'Specify which UserSession type to use (when multiple exist)',
31
- // },
32
- // singletonServicesFactoryType: {
33
- // description: 'Specify which singleton services factory to use',
34
- // },
35
- // sessionServicesFactoryType: {
36
- // description: 'Specify which session services factory to use',
37
- // },
38
- // stateOutput: {
39
- // description: 'Save inspector state to JSON file for reuse',
40
- // },
41
- // stateInput: {
42
- // description: 'Load inspector state from JSON file (skips inspection)',
43
- // },
44
- // },
45
- // commands: {
46
- // all: pikkuCLICommand({
47
- // func: all,
48
- // description: 'Generate all Pikku files (types, schemas, wirings, etc.)',
49
- // isDefault: true,
50
- // options: {
51
- // tags: {
52
- // description: 'Filter functions by tags (comma-separated)',
53
- // short: 't',
54
- // },
55
- // types: {
56
- // description: 'Filter functions by types (comma-separated)',
57
- // },
58
- // directories: {
59
- // description: 'Filter functions by directories (comma-separated)',
60
- // short: 'd',
61
- // },
62
- // httpMethods: {
63
- // description: 'Filter HTTP routes by methods (comma-separated)',
64
- // },
65
- // httpRoutes: {
66
- // description: 'Filter HTTP routes by route patterns (comma-separated)',
67
- // },
68
- // names: {
69
- // description: 'Filter functions by name patterns (supports wildcards)',
70
- // short: 'n',
71
- // },
72
- // },
73
- // }),
74
- // bootstrap: pikkuCLICommand({
75
- // func: bootstrap,
76
- // description: 'Generate only type files (setup phase only)',
77
- // }),
78
- // schemas: pikkuCLICommand({
79
- // func: pikkuSchemas,
80
- // description: 'Generate JSON schemas for function input/output types',
81
- // }),
82
- // fetch: pikkuCLICommand({
83
- // func: pikkuFetch,
84
- // description: 'Generate type-safe HTTP fetch client',
85
- // }),
86
- // websocket: pikkuCLICommand({
87
- // func: pikkuWebSocketTyped,
88
- // description: 'Generate type-safe WebSocket client',
89
- // }),
90
- // rpc: pikkuCLICommand({
91
- // func: pikkuRPCClient,
92
- // description: 'Generate RPC client wrappers',
93
- // }),
94
- // 'queue-service': pikkuCLICommand({
95
- // func: pikkuQueueService,
96
- // description: 'Generate queue service wrapper',
97
- // }),
98
- // openapi: pikkuCLICommand({
99
- // func: pikkuOpenAPI,
100
- // description: 'Generate OpenAPI specification from HTTP routes',
101
- // }),
102
- // nextjs: pikkuCLICommand({
103
- // func: pikkuNext,
104
- // description: 'Generate Next.js backend and HTTP wrappers',
105
- // }),
106
- // },
107
- // })
14
+ wireCLI({
15
+ program: 'pikku',
16
+ description:
17
+ 'Pikku CLI - Code generation tool for type-safe backend development',
18
+ render: clientCLIRenderer,
19
+ options: {
20
+ config: {
21
+ description: 'Path to pikku.config.json file',
22
+ short: 'c',
23
+ },
24
+ logLevel: {
25
+ description: 'Set log level',
26
+ default: 'info' as const,
27
+ short: 'l',
28
+ },
29
+ userSessionType: {
30
+ description:
31
+ 'Specify which UserSession type to use (when multiple exist)',
32
+ },
33
+ singletonServicesFactoryType: {
34
+ description: 'Specify which singleton services factory to use',
35
+ },
36
+ sessionServicesFactoryType: {
37
+ description: 'Specify which session services factory to use',
38
+ },
39
+ stateOutput: {
40
+ description: 'Save inspector state to JSON file for reuse',
41
+ },
42
+ stateInput: {
43
+ description: 'Load inspector state from JSON file (skips inspection)',
44
+ },
45
+ },
46
+ commands: {
47
+ all: pikkuCLICommand({
48
+ func: all,
49
+ description: 'Generate all Pikku files (types, schemas, wirings, etc.)',
50
+ isDefault: true,
51
+ options: {
52
+ tags: {
53
+ description: 'Filter functions by tags (comma-separated)',
54
+ short: 't',
55
+ },
56
+ types: {
57
+ description: 'Filter functions by types (comma-separated)',
58
+ },
59
+ directories: {
60
+ description: 'Filter functions by directories (comma-separated)',
61
+ short: 'd',
62
+ },
63
+ httpMethods: {
64
+ description: 'Filter HTTP routes by methods (comma-separated)',
65
+ },
66
+ httpRoutes: {
67
+ description: 'Filter HTTP routes by route patterns (comma-separated)',
68
+ },
69
+ names: {
70
+ description: 'Filter functions by name patterns (supports wildcards)',
71
+ short: 'n',
72
+ },
73
+ },
74
+ }),
75
+ bootstrap: pikkuCLICommand({
76
+ func: bootstrap,
77
+ description: 'Generate only type files (setup phase only)',
78
+ }),
79
+ watch: pikkuCLICommand({
80
+ func: watch,
81
+ description: 'Watch for file changes and regenerate automatically',
82
+ }),
83
+ schemas: pikkuCLICommand({
84
+ func: pikkuSchemas,
85
+ description: 'Generate JSON schemas for function input/output types',
86
+ }),
87
+ fetch: pikkuCLICommand({
88
+ func: pikkuFetch,
89
+ description: 'Generate type-safe HTTP fetch client',
90
+ }),
91
+ websocket: pikkuCLICommand({
92
+ func: pikkuWebSocketTyped,
93
+ description: 'Generate type-safe WebSocket client',
94
+ }),
95
+ rpc: pikkuCLICommand({
96
+ func: pikkuRPCClient,
97
+ description: 'Generate RPC client wrappers',
98
+ }),
99
+ 'queue-service': pikkuCLICommand({
100
+ func: pikkuQueueService,
101
+ description: 'Generate queue service wrapper',
102
+ }),
103
+ openapi: pikkuCLICommand({
104
+ func: pikkuOpenAPI,
105
+ description: 'Generate OpenAPI specification from HTTP routes',
106
+ }),
107
+ nextjs: pikkuCLICommand({
108
+ func: pikkuNext,
109
+ description: 'Generate Next.js backend and HTTP wrappers',
110
+ }),
111
+ },
112
+ })
@@ -17,6 +17,7 @@ export interface ForwardedLogMessage {
17
17
  */
18
18
  export class CLILoggerForwarder implements Logger {
19
19
  private level: LogLevel = LogLevel.info
20
+ private silent: boolean = false
20
21
 
21
22
  constructor(
22
23
  private logger: Logger,
@@ -27,13 +28,21 @@ export class CLILoggerForwarder implements Logger {
27
28
  this.level = level
28
29
  }
29
30
 
31
+ setSilent(silent: boolean): void {
32
+ this.silent = silent
33
+ }
34
+
35
+ isSilent(): boolean {
36
+ return this.silent
37
+ }
38
+
30
39
  private log(
31
40
  level: ForwardedLogMessage['level'],
32
41
  logLevel: LogLevel,
33
42
  messageOrObj: string | Record<string, any> | Error,
34
43
  type?: string
35
44
  ) {
36
- if (this.level > logLevel) return
45
+ if (this.level > logLevel || this.silent) return
37
46
 
38
47
  let message: string
39
48